hash: Don't refer to deprecated interfaces.
[gnulib.git] / ChangeLog
1 2011-11-19  Simon Josefsson  <simon@josefsson.org>
2
3         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
4         not hash_insert0.
5         (hash_insert_if_absent): Doc fix.
6
7 2011-11-19  Simon Josefsson  <simon@josefsson.org>
8
9         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
10
11 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
12
13         test-getcwd: disambiguate exit status
14         * tests/test-getcwd.c (test_long_name): Return 0..7.
15         (main): Exit with an unambiguous exit status.  The old
16         code yielded a mysterious mixture of two failure codes.
17
18         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
19         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
20         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
21         rpl_fstatat or fstatat.  This should fix the other problem
22         reported by Kai Habel in
23         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
24         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
25         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
26         and I reproduced it on a Solaris 8 host we still have in production.
27
28 2011-11-18  Jim Meyering  <meyering@redhat.com>
29
30         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
31         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
32         Add a sentence to the comment.
33         (hash_insert0): New function that simply calls hash_insert_if_absent.
34         * lib/hash.h (hash_insert_if_absent): Declare it.
35         (hash_insert0): Add deprecation attribute.
36         (_GL_ATTRIBUTE_DEPRECATED): Define.
37         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
38         not hash_insert0.
39         * NEWS: Mention it, even though it's not really an incompatible change.
40
41 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
42
43         openat: avoid compilation failure due to lack of <errno.h> inclusion
44         * lib/openat.c: Include <errno.h>.
45
46 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
47
48         * modules/getcwd (Depends-on): Add fdopendir.
49         This fixes one of the two problems reported by Kai Habel in
50         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
51
52         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
53         stdalign problem reported by Ian Beckwith in
54         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
55         * modules/crypto/gc-arcfour (Depends-on):
56         Depend conditionally on crypto/arcfour.
57         * modules/crypto/gc-arctwo (Depends-on):
58         Depend conditionally on crypto/arctwo.
59         * modules/crypto/gc-des (Depends-on):
60         Depend conditionally on crypto/des.
61         * modules/crypto/gc-hmac-md5 (Depends-on):
62         Depend conditionally on crypto/hmac-md5.
63         * modules/crypto/gc-hmac-sha1 (Depends-on):
64         Depend conditionally on crypto/hmac-sha1.
65         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
66         * modules/crypto/gc-md4 (Depends-on):
67         Depend conditionally on crypto/md4.
68         * modules/crypto/gc-md5 (Depends-on):
69         Depend conditionally on crypto/md5.
70         * modules/crypto/gc-rijndael (Depends-on):
71         Depend conditionally on crypto/rijndael.
72         * modules/crypto/gc-sha1 (Depends-on):
73         Depend conditionally on crypto/sha1.
74         * modules/crypto/gc-arcfour:
75         * modules/crypto/gc-arctwo:
76         * modules/crypto/gc-des:
77         * modules/crypto/gc-hmac-md5:
78         * modules/crypto/gc-hmac-sha1:
79         * modules/crypto/gc-md2:
80         * modules/crypto/gc-md4:
81         * modules/crypto/gc-md5:
82         * modules/crypto/gc-rijndael:
83         * modules/crypto/gc-sha1:
84         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
85         now that the conditional dependencies do the work for us.
86
87 2011-11-17  Jim Meyering  <meyering@redhat.com>
88
89         tests: factor st_ctime-comparison out of two headers
90         * tests/test-utimens-common.h (ctime_compare): Define.
91         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
92         * tests/test-lutimens.h (test_lutimens): Likewise.
93         * tests/test-utimens.h (test_utimens): Likewise.
94
95         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
96         Invoke the test program via an init.sh-using wrapper.
97         * tests/test-getcwd.sh: New file.
98         * modules/getcwd-tests (Files): Add it.
99         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
100
101 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
102
103         gitlog-to-changelog: support multi-author commits.
104         The FSF cares about keeping track of all authors of patches to its
105         projects, but Git doesn't provide obvious support for multi-author
106         changesets. Consensus seems to be forming around the use of extra
107         Signed-off-by inspired lines in the log message formatted as
108         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
109         multi-author commits between version control systems.
110         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
111         log message and output in standard ChangeLog multi-author format.
112         Reported by Peter Rosin <peda@lysator.liu.se>
113
114 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
115             Bruno Haible  <bruno@clisp.org>
116
117         Fix some modules' file list.
118         * modules/fstatat (Files): Add m4/lstat.m4.
119         * modules/openat (Files): Likewise.
120         * modules/unlinkat (Files): Likewise.
121
122 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
123
124         maint.mk: fix tight-scope.mk generation in VPATH builds.
125         * top/maint.mk (tight-scope.mk): Make sure to prefix file
126         reference with $(srcdir) so that the file is found correctly even
127         when running `make syntax-check' in a VPATH build.
128
129 2011-11-13  Bruno Haible  <bruno@clisp.org>
130             Jim Meyering  <meyering@redhat.com>
131
132         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
133         * tests/init.sh (compare): Remove "No differences encountered" or
134         synonymous output from the 'diff' program.
135
136 2011-11-13  Bruno Haible  <bruno@clisp.org>
137
138         Makefile: Tweak indentation.
139         * Makefile: Use tab as first character in every line that contains rule
140         commands.
141
142 2011-11-13  Bruno Haible  <bruno@clisp.org>
143
144         Syntax check for copyright statements.
145         * check-copyright: New file.
146         * Makefile (sc_check_copyright): New rule.
147
148 2011-11-13  Simon Josefsson  <simon@josefsson.org>
149
150         * build-aux/git-version-gen: Add --prefix to configure the tag
151         match string.
152
153 2011-11-13  Simon Josefsson  <simon@josefsson.org>
154
155         * build-aux/git-version-gen: Add --help and --version.
156
157 2011-11-12  Jim Meyering  <meyering@redhat.com>
158
159         revamp the other test-exclude?.sh scripts to use init.sh, too
160         * tests/test-exclude1.sh: Use init.sh.
161         * tests/test-exclude2.sh: Likewise.
162         * tests/test-exclude3.sh: Likewise.
163         * tests/test-exclude4.sh: Likewise.
164         * tests/test-exclude5.sh: Likewise.
165         * tests/test-exclude6.sh: Likewise.
166         * tests/test-exclude7.sh: Likewise.
167         * tests/test-exclude8.sh: Likewise.
168         * modules/exclude-tests (Files): List init.sh.
169
170         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
171         These shell scripts ignored failure of the binary test-exclude,
172         so making the latter return 77 didn't cause them to be skipped.
173         * tests/test-exclude5.sh: Exit with test-exclude's error status
174         when that program fails.  Revamp to use init.sh.
175         * tests/test-exclude2.sh: Likewise.
176
177         test-exclude: fix a typo
178         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
179
180 2011-11-11  Bruno Haible  <bruno@clisp.org>
181
182         obstack: Fix compilation error on MSVC 9.
183         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
184
185 2011-11-11  Jim Meyering  <meyering@redhat.com>
186
187         test-exclude: skip tests rather than failing on deficient systems
188         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
189         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
190         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
191         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
192
193 2011-11-10  Bruno Haible  <bruno@clisp.org>
194
195         ptsname_r test: Avoid gcc warning on glibc systems.
196         * tests/test-ptsname_r.c (null_ptr): New function.
197         (test_errors): Use it.
198
199 2011-11-10  Bruno Haible  <bruno@clisp.org>
200
201         ptsname_r: Avoid compilation error on OSF/1 5.1.
202         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
203         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
204         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
205         function is not declared or incompatibly declared.
206         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
207         * modules/ptsname_r (Depends-on, configure.ac): Update.
208         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
209
210 2011-11-10  Bruno Haible  <bruno@clisp.org>
211
212         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
213         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
214         When cross-compiling, guess yes on all platforms except AIX.
215         Reported by Ludovic Courtès <ludo@gnu.org>.
216
217 2011-11-09  Bruno Haible  <bruno@clisp.org>
218
219         ptsname_r tests: Fix bugs.
220         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
221         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
222
223 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
224
225         fstatat: work with cross-compilation
226         Problem reported by Ludovic Courtès in
227         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
228         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
229         "cross-compiling" and assume the bug is present.  Replace
230         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
231         an inverted sense, to be more conservative about our assumptions.
232         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
233
234 2011-11-09  Bruno Haible  <bruno@clisp.org>
235
236         Improve MODULES.html output.
237         * modules/mkfifoat (Description): Use the word "function".
238         * modules/readlinkat (Description): Likewise.
239         * modules/symlinkat (Description): Likewise.
240
241 2011-11-09  Eric Blake  <eblake@redhat.com>
242
243         ptsname_r-tests: new test module
244         * modules/ptsname_r-tests: New module.
245         * tests/test-ptsname_r.c: New file.
246
247         ptsname_r: new module
248         * modules/ptsname_r: New module.
249         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
250         * lib/ptsname.c (__ptsname_r): Split...
251         * lib/ptsname_r.c: ...into new file.
252         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
253         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
254         * modules/stdlib (Makefile.am): Substitute witnesses.
255         * lib/stdlib.in.h (ptsname_r): Declare it.
256         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
257         * MODULES.html.sh (Misc): Likewise.
258         * modules/ptsname (Depends-on): Alter dependency.
259         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
260
261 2011-11-09  Jim Meyering  <meyering@redhat.com>
262
263         announce-gen: be more concise when there's only one URL+tarball
264         * build-aux/announce-gen (get_tool_versions): When you distribute
265         only one type of tarball, combine the first two "Here are..."
266         sections and make the key-checking grammar independent of
267         how many tarballs there are.
268
269 2011-11-09  Eric Blake  <eblake@redhat.com>
270
271         openpty: provide a stub on mingw
272         * lib/pty.in.h (includes): Provide forward declarations.
273         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
274
275         raise: fix mingw handling of SIGPIPE
276         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
277
278 2011-11-08  Bruno Haible  <bruno@clisp.org>
279
280         More conditional dependencies.
281         * modules/faccessat (Depends-on): Add conditions.
282         * modules/fchmodat (Depends-on): Likewise.
283         * modules/fchownat (Depends-on): Likewise.
284         * modules/fstatat (Depends-on): Likewise.
285         * modules/mkfifoat (Depends-on): Likewise.
286         * modules/readlinkat (Depends-on): Likewise.
287         * modules/symlinkat (Depends-on): Likewise.
288         * modules/unlinkat (Depends-on): Likewise.
289         * modules/utimensat (Depends-on): Likewise.
290         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
291         * modules/linkat (Depends-on): Refine the conditions.
292         * modules/renameat (Depends-on): Likewise.
293
294 2011-11-08  Bruno Haible  <bruno@clisp.org>
295
296         faccessat: Move AC_LIBOBJ invocation to module description.
297         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
298         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
299         invocation from here...
300         * modules/faccessat (configure.ac): ... to here. Invoke
301         gl_PREREQ_FACCESSAT.
302
303 2011-11-08  Bruno Haible  <bruno@clisp.org>
304
305         faccessat: Simplify autoconf macro.
306         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
307         gl_FUNC_EUIDACCESS.
308
309 2011-11-08  Bruno Haible  <bruno@clisp.org>
310
311         renameat: Fix dependencies.
312         * modules/renameat (Depends-on): Add stdbool.
313
314 2011-11-08  Bruno Haible  <bruno@clisp.org>
315
316         mkfifoat: Fix module description.
317         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
318         not gl_UNISTD_MODULE_INDICATOR.
319
320 2011-11-08  Bruno Haible  <bruno@clisp.org>
321
322         fstatat: Remove unused dependency.
323         * modules/fstatat (Depends-on): Remove fstat.
324
325 2011-11-08  Simon Josefsson  <simon@josefsson.org>
326
327         GNUmakefile: behave when Makefile is missing.
328         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
329
330 2011-11-08  Bruno Haible  <bruno@clisp.org>
331
332         openat: Conditionalize dependencies.
333         * lib/openat.c: Reduce the scope of some #includes.
334         * modules/openat (Depends-on): Add conditions.
335
336 2011-11-07  Jim Meyering  <meyering@redhat.com>
337
338         maint.mk: extract GPG key ID without using a temporary file
339         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
340         without using a temporary file.  Based on a suggestion from Werner Koch
341         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
342
343 2011-11-07  Eric Blake  <eblake@redhat.com>
344
345         grantpt: fix typo
346         * lib/stdlib.in.h (grantpt): Check correct function.
347
348         maint.mk: silence new syntax check
349         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
350
351 2011-11-06  Bruno Haible  <bruno@clisp.org>
352
353         Doc about floating-point and math API.
354         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
355         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
356
357 2011-11-06  Bruno Haible  <bruno@clisp.org>
358
359         stdalign tests: Skip the test when compiled by Sun C.
360         * tests/test-stdalign.c (main): Skip the test on Sun C.
361
362 2011-11-06  Bruno Haible  <bruno@clisp.org>
363
364         ansi-c++-opt: Complete the 2011-06-05 change.
365         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
366         does not support namespaces, set the variable to "no", not to ":".
367
368 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
369
370         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
371
372 2011-11-06  Bruno Haible  <bruno@clisp.org>
373
374         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
375         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
376         (minus_zerol) [HP-UX]: New macro.
377         (unary_minus) [HP-UX]: New function.
378         (copysignl) [HP-UX]: Use unary_minus function.
379
380 2011-11-06  Bruno Haible  <bruno@clisp.org>
381
382         ldexp, ldexpf, ldexpl: Enhance tests.
383         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
384         and tests/test-ldexpl.c.
385         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
386         LDEXP, MIN_EXP, MAX_EXP): New macros.
387         Include test-ldexp.h.
388         (main): Just call test_function.
389         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
390         infinity.h, nan.h.
391         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
392         MAX_EXP): New macros.
393         Include test-ldexp.h.
394         (x, y): Remove variables.
395         (main): Just call test_function.
396         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
397         infinity.h, nan.h.
398         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
399         MAX_EXP): New macros.
400         Include test-ldexp.h.
401         (x, y): Remove variables.
402         (main): Just call test_function.
403         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
404         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
405         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
406         (Depends-on): Add isnand-nolibm, signbit, float.
407         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
408         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
409         (Depends-on): Add isnanf-nolibm, signbit, float.
410
411 2011-11-06  Bruno Haible  <bruno@clisp.org>
412
413         math tests: Cosmetics.
414         * tests/test-math-c++.cc: Reorder declarations.
415
416 2011-11-05  Bruno Haible  <bruno@clisp.org>
417
418         fma*: Simplify test.
419         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
420         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
421
422         Tests for module 'fmal'.
423         * modules/fmal-tests: New file.
424         * tests/test-fmal1.c: New file.
425         * tests/test-fmal2.c: New file.
426
427         New module 'fmal'.
428         * lib/math.in.h (fmal): New declaration.
429         * lib/fmal.c: New file.
430         * m4/fmal.m4: New file.
431         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
432         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
433         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
434         REPLACE_FMAL.
435         * modules/fmal: New file.
436         * doc/posix-functions/fmal.texi: Mention the new module and the various
437         bugs.
438
439         Tests for module 'fmaf'.
440         * modules/fmaf-tests: New file.
441         * tests/test-fmaf1.c: New file.
442         * tests/test-fmaf2.c: New file.
443
444         New module 'fmaf'.
445         * lib/math.in.h (fmaf): New declaration.
446         * lib/fmaf.c: New file.
447         * m4/fmaf.m4: New file.
448         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
449         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
450         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
451         REPLACE_FMAF.
452         * modules/fmaf: New file.
453         * doc/posix-functions/fmaf.texi: Mention the new module and the various
454         bugs.
455
456         Tests for module 'fma'.
457         * modules/fma-tests: New file.
458         * tests/test-fma1.c: New file.
459         * tests/test-fma1.h: New file.
460         * tests/test-fma2.c: New file.
461         * tests/test-fma2.h: New file.
462
463         New module 'fma'.
464         * lib/math.in.h (fma): New declaration.
465         * lib/fma.c: New file.
466         * m4/fma.m4: New file.
467         * m4/fegetround.m4: New file.
468         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
469         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
470         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
471         REPLACE_FMA.
472         * modules/fma: New file.
473         * doc/posix-functions/fma.texi: Mention the new module and the various
474         bugs.
475
476         Extend gl_MATHFUNC.
477         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
478         Support 'void' as argument type.
479         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
480
481 2011-11-05  Jim Meyering  <meyering@redhat.com>
482
483         maint.mk: also prohibit inclusion of dirent.h without use
484         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
485
486 2011-11-05  Bruno Haible  <bruno@clisp.org>
487
488         ldexpl tests: Avoid test failure on MSVC 9.
489         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
490         value. Needed in order to enforce the conversion from a value greater
491         than LDBL_MAX to Infinity.
492
493 2011-11-05  Bruno Haible  <bruno@clisp.org>
494
495         New modules 'at-internal', 'openat-h', split off from module 'openat'.
496         * modules/at-internal: New file, extracted from modules/openat.
497         * modules/openat-h: New file.
498         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
499         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
500         * modules/openat (Description): Add reference to POSIX function.
501         (Files): Remove lib/openat.h, lib/openat-proc.c.
502         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
503         intprops, unistd.
504         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
505         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
506         gl_FCNTL_MODULE_INDICATOR.
507         (Include): Remove unistd.h, openat.h.
508         * modules/areadlinkat (Files): Add lib/at-func.c.
509         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
510         openat-die, openat-h, save-cwd.
511         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
512         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
513         openat-die, openat-h, save-cwd, unistd.
514         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
515         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
516         openat-h, save-cwd. Remove fcntl-h, openat.
517         * modules/fchmodat (Files): Remove lib/openat.h.
518         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
519         openat, stdbool, unistd.
520         * modules/fchownat (Files): Remove lib/openat.h.
521         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
522         openat, stdbool, sys_stat.
523         * modules/fdopendir (Files): Remove lib/openat-priv.h,
524         lib/openat-proc.c.
525         (Depends-on): Add at-internal.
526         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
527         * modules/fstatat (Files): Remove lib/openat.h.
528         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
529         stdbool, unistd.
530         * modules/fts (Depends-on): Add openat-h.
531         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
532         openat.
533         * modules/mkdirat (Files): Remove lib/openat.h.
534         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
535         openat, stdbool, sys_stat.
536         * modules/mkfifoat (Files): Add lib/at-func.c.
537         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
538         openat-h, save-cwd. Remove fcntl-h, openat.
539         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
540         * modules/readlinkat (Files): Add lib/at-func.c.
541         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
542         openat-h, save-cwd. Remove fcntl-h, openat.
543         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
544         openat.
545         * modules/selinux-at (Files): Add lib/at-func.c.
546         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
547         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
548         * modules/symlinkat (Files): Add lib/at-func.c.
549         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
550         openat-h, save-cwd. Remove fcntl-h, openat.
551         * modules/unlinkat (Files): Remove lib/openat.h.
552         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
553         stdbool.
554         * modules/utimensat (Files): Add lib/at-func.c.
555         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
556         openat-die, openat-h, save-cwd.
557         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
558         * modules/fdutimensat-tests (Depends-on): Add openat.
559         * modules/fstatat-tests (Depends-on): Add openat-h.
560         * modules/readlinkat-tests (Depends-on): Add openat.
561         * modules/symlinkat-tests (Depends-on): Add openat.
562
563 2011-11-05  Bruno Haible  <bruno@clisp.org>
564
565         openat: Include <stdbool.h>.
566         * lib/openat.c: Include <stdbool.h>.
567
568 2011-11-04  Bruno Haible  <bruno@clisp.org>
569
570         fchownat, renameat, unlinkat: Fix dependencies.
571         * modules/fchownat (Depends-on): Add fstatat.
572         * modules/renameat (Depends-on): Likewise.
573         * modules/unlinkat (Depends-on): Likewise.
574
575 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
576
577         openat: remove direct dependency on dirent
578         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
579         and hasn't been needed ever since fdopendir was split into its own
580         module on 2009-08-31.
581         * modules/openat (Depends-on): Remove dirent.
582
583 2011-11-04  Bruno Haible  <bruno@clisp.org>
584
585         renameat: Optimize code size.
586         * modules/renameat (configure.ac): Don't compile at-func2.c if
587         REPLACE_RENAMEAT is 1.
588
589 2011-11-04  Bruno Haible  <bruno@clisp.org>
590
591         openat tests: Fix file list.
592         * modules/openat-tests (Files): Add tests/test-open.h.
593
594 2011-11-04  Bruno Haible  <bruno@clisp.org>
595
596         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
597         * modules/fchmodat (Depends-on): Add openat-die.
598         * modules/fchownat (Depends-on): Likewise.
599         * modules/linkat (Depends-on): Likewise.
600         * modules/renameat (Depends-on): Likewise.
601         * modules/openat (Depends-on): Add dirent.
602
603 2011-11-04  Jim Meyering  <meyering@redhat.com>
604
605         at-func*.c: fix comments
606         * lib/at-func2.c: Correct/improve first-line comment.
607         * lib/at-func.c: Correct grammar in first-line comment.
608
609 2011-11-04  Bruno Haible  <bruno@clisp.org>
610
611         New module 'mkdirat', split off from module 'openat'.
612         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
613         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
614         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
615         * modules/mkdirat: New file, extracted from modules/openat.
616         * modules/openat (Files): Remove lib/mkdirat.c.
617         (Depends-on): Remove mkdir.
618         (configure.ac): Remove AC_LIBOBJ of mkdirat.
619         (Include): Remove <sys/stat.h>.
620         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
621         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
622         tests/test-mkdir.h.
623         (Depends-on): Remove ignore-value.
624         (Makefile.am): Remove rules for test-mkdirat.
625         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
626         of module 'openat'.
627         * NEWS: Mention the change.
628
629 2011-11-04  Bruno Haible  <bruno@clisp.org>
630
631         closedir: Avoid warning on mingw.
632         * lib/closedir.c: Include <unistd.h>.
633
634 2011-11-04  Bruno Haible  <bruno@clisp.org>
635
636         New module 'fstatat', split off from module 'openat'.
637         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
638         defined.
639         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
640         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
641         gl_FUNC_FSTATAT.
642         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
643         * modules/fstatat: New file, extracted from modules/openat.
644         * modules/openat (Files): Remove lib/fstatat.c.
645         (Depends-on): Remove lstat.
646         (configure.ac): Remove AC_LIBOBJ of fstatat.
647         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
648         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
649         tests/test-lstat.h, tests/test-stat.h.
650         (Depends-on): Remove getcwd-lgpl.
651         (Makefile.am): Remove rules for test-fstatat.
652         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
653         of module 'openat'.
654         * NEWS: Mention the change.
655         * modules/getcwd (Depends-on): Add fstatat.
656         * modules/linkat (Depends-on): Likewise.
657         * modules/mkfifoat-tests (Depends-on): Likewise.
658         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
659
660 2011-11-03  Bruno Haible  <bruno@clisp.org>
661
662         New module 'unlinkat', split off from module 'openat'.
663         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
664         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
665         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
666         * modules/unlinkat: New file, extracted from modules/openat. Correct
667         the dependency conditions.
668         * modules/openat (Files): Remove lib/unlinkat.c.
669         (Depends-on): Remove rmdir, unlink.
670         (configure.ac): Remove AC_LIBOBJ of unlinkat.
671         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
672         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
673         tests/test-rmdir.h, tests/test-unlink.h.
674         (Depends-on): Remove unlinkdir.
675         (Makefile.am): Remove rules for test-unlinkat.
676         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
677         of module 'openat'.
678         * NEWS: Mention the change.
679         * modules/linkat-tests (Depends-on): Add unlinkat.
680         * modules/mkfifoat-tests (Depends-on): Likewise.
681         * modules/readlinkat-tests (Depends-on): Likewise.
682
683 2011-11-02  Bruno Haible  <bruno@clisp.org>
684
685         New module 'fchmodat', split off from module 'openat'.
686         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
687         defined.
688         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
689         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
690         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
691         * modules/fchmodat: New file, extracted from modules/openat.
692         * modules/openat (Files): Remove lib/fchmodat.c.
693         (configure.ac): Remove AC_LIBOBJ of fchmodat.
694         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
695         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
696         (Makefile.am): Remove rules for test-fchmodat.
697         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
698         of module 'openat'.
699         * NEWS: Mention the change.
700
701 2011-11-02  Jim Meyering  <meyering@redhat.com>
702
703         putenv: indent #definition of "environ" to placate cppi
704         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
705
706         gitlog-to-changelog: provide a ChangeLog-repair mechanism
707         Git logs are often treated as immutable, because editing them
708         changes the SHA1 checksums of all descendants.  Thus, errors in
709         git logs tend to stay there forever.  However, when we generate
710         a ChangeLog file -- typically for distribution -- from that git log,
711         we can actually make corrections in the generated file.  The key
712         lies in recording in machine-readable/applicable form the desired
713         corrections.  See --help for description and an example.
714         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
715         (usage): Describe it; alphabetize option descriptions.
716         (main): Honor the new option, carefully.
717
718 2011-11-01  Jim Meyering  <meyering@redhat.com>
719
720         gitlog-to-changelog: avoid an infloop
721         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
722         that ends up being empty.
723
724 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
725
726         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
727         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
728         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
729         contains (possibly-quoted) backslashes.  This should avoid
730         all-too-common shell bugs if COMPLICATED contains backslashes in
731         the "wrong" places.  Reported by David Evans in
732         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
733         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
734         because we want ASCII ranges.  Is there some reason we don't use
735         the C locale everywhere in this script?
736         (func_module, top level): Avoid unwanted pathname expansion when
737         $repo_url_prefix or $repo_url_suffix_repl contain shell
738         metacharacters like '?' and '*'.
739
740 2011-11-01  Bruno Haible  <bruno@clisp.org>
741
742         fchownat: Improve description.
743         * modules/fchownat (Description): Add link to function.
744
745 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
746
747         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
748         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
749         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
750         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
751
752 2011-11-01  Bruno Haible  <bruno@clisp.org>
753
754         alignof: Avoid collision with stdalign module.
755         * lib/alignof.h (alignof): Remove macro.
756         * NEWS: Mention the change.
757         Reported by Paul Eggert.
758
759 2011-11-01  Bruno Haible  <bruno@clisp.org>
760
761         New module 'fchownat', split off from module 'openat'.
762         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
763         defined.
764         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
765         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
766         invoke gl_FUNC_FCHOWNAT.
767         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
768         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
769         * modules/fchownat: New file, extracted from modules/openat.
770         * modules/openat (Files): Remove lib/fchownat.c.
771         (Depends-on): Remove lchown.
772         (configure.ac): Remove AC_LIBOBJ of fchownat.
773         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
774         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
775         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
776         (Depends-on): Remove mgetgroups, usleep, stat-time.
777         (configure.ac): Remove test for getegid.
778         (Makefile.am): Remove rules for test-fchownat.
779         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
780         of module 'openat'.
781         * NEWS: Mention the change.
782
783 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
784
785         stdalign: port better to MSVC and to Sun C 5.11
786         This fixes some of the problems reported by Bruno Haible in
787         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
788         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
789         shortcomings of MSVC and of Sun C 5.11.
790         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
791         around __declspec arg.
792         * modules/stdalign-tests (Files): Add tests/macros.h.
793         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
794         Include macros.h, for ASSERT.
795         (DECLARE_ALIGNED): Remove.
796         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
797         to catch bug), and to 1 if not (simplifies the rest of the code).
798         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
799         (CHECK_AUTO): Remove.
800         (CHECK_ALIGNED): Check only the alignment of the static vars,
801         since auto var alignment isn't supported by Sun C 5.11.
802         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
803         ASSERT failures are easier to diagnose.
804
805 2011-10-31  Bruno Haible  <bruno@clisp.org>
806
807         doc about some IRIX 5.3 problems.
808         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
809         on IRIX 5.3.
810         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
811         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
812         5.3.
813         * doc/posix-functions/grantpt.texi: Likewise.
814         * doc/posix-functions/unlockpt.texi: Likewise.
815         * doc/posix-functions/lgamma.texi: Likewise.
816         * doc/posix-functions/nextafter.texi: Likewise.
817         * doc/posix-functions/remainder.texi: Likewise.
818         * doc/posix-functions/select.texi: Mention misplaced declaration on
819         IRIX 5.3.
820         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
821
822 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
823
824         gitlog-to-changelog: fix git-log invocation.
825         git-log mishandles date strings before 1970-01-01 UTC, and there is
826         no use to specify --since=1970-01-01 by default anyway.
827         * build-aux/gitlog-to-changelog: By default, when no --since option
828         was given, do not specify explicit --since option to git-log.
829
830 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
831
832         gitlog-to-changelog: new option --append-dot.
833         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
834         first non-blank line of each commit message terminated with a dot.
835
836 2011-10-30  Bruno Haible  <bruno@clisp.org>
837
838         ffsl, ffsll: Avoid compilation error due to 'restrict'.
839         * lib/ffsl.h: Include <config.h>.
840         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
841
842 2011-10-30  Jim Meyering  <meyering@redhat.com>
843
844         GNUmakefile: reenable "make syntax-check" for most projects
845         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
846         build-aux variable", "syntax-check" would do nothing but succeed with
847         the "No version control files detected..." diagnostic (unless you
848         happened to override _build-aux via cfg.mk).
849         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
850         to precede inclusion of maint.mk.  Otherwise, these variables would
851         be used undefined in any project that does not override the default.
852
853 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
854
855         gitlog-to-changelog: treat a message with only blank lines as empty.
856         * build-aux/gitlog-to-changelog: Move the code that removes leading and
857         trailing blank lines before the code that issues a warning about an
858         empty commit message.
859
860 2011-10-30  Jim Meyering  <meyering@redhat.com>
861
862         test-parse-datetime.c: avoid new DST-related false positive test failure
863         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
864         based on the time/date we'll convert, not the current time.
865         Otherwise, the moment we cross a DST boundary like today's in
866         Europe, (CEST to CET), that offset ends up being one hour off.
867
868 2011-10-27  Bruno Haible  <bruno@clisp.org>
869
870         fstat: Tweak documentation.
871         * modules/fstat (Description): More precise description.
872
873 2011-10-27  Bruno Haible  <bruno@clisp.org>
874
875         Update documentation regarding 'largefile' module.
876         * doc/posix-functions/fstat.texi: Tweak wording.
877         * doc/posix-functions/opendir.texi: Mention that the module fixes the
878         problems with huge directories and/or small ino_t types.
879         * doc/posix-functions/readdir.texi: Likewise.
880         * doc/posix-functions/rewinddir.texi: Likewise.
881
882 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
883
884         maint.mk: don't maintain a second build-aux variable.
885         * maint.mk (build_aux): Removed.  The maintainer-makefile module
886         depends on GNUmakefile, which already maintains a cfg.mk
887         overridable $(_build-aux) for projects with a non-standard
888         build-aux directory location, although without the $(srcdir)
889         prefix.  Use that variable consistently instead of introducing a
890         second one.  Adjust all call sites.
891
892 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
893
894         Add stdalign module and use it in other modules.
895         This is based on a previous proposal by Bruno Haible
896         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
897
898         stdalign: new module
899         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
900         * modules/stdalign: New files.
901         * MODULES.html.sh (c1x_core_properties): Add stdalign.
902         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
903
904         stdalign-tests: new module
905         * modules/stdalign-tests, tests/test-stdalign.c: New files.
906
907         argp: use stdalign
908         * lib/argp-parse.c: Include <stdalign.h>.
909         (alignof): Remove.
910         * modules/argp (Depends-on): Add stdalign.
911
912         crypto libraries: use stdalign
913         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
914         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
915         Do not include <stdlib.h> twice, in md4.c.
916         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
917         because we are accessing a pointer's bit-pattern, not a size.
918         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
919         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
920         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
921         * modules/crypto/sha512: Likewise.
922
923         sys_socket: use stdalign, not alignof
924         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
925         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
926
927 2011-10-27  Bruno Haible  <bruno@clisp.org>
928
929         raise test: Avoid a test failure on Linux/MIPS.
930         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
931         because 99 is a valid signal on Linux/MIPS.
932
933 2011-10-27  Bruno Haible  <bruno@clisp.org>
934
935         nonblocking tests: Fix test failure on Linux/MIPS.
936         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
937         Set to 270000.
938
939 2011-10-27  Bruno Haible  <bruno@clisp.org>
940
941         utimensat: Work around problem on Linux/hppa.
942         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
943         values.
944         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
945
946 2011-10-25  Jim Meyering  <meyering@redhat.com>
947
948         maint.mk: fix a bug in sc_prohibit_stddef_without_use
949         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
950         after symbols like NULL, size_t, etc.
951         Reported by Alfred M. Szmidt.
952
953         maint.mk: exempt ENODATA from a syntax-check rule
954         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
955         from the sc_prohibit_always-defined_macros syntax-check rule.
956         Add a comment.  See this for more details:
957         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
958
959 2011-10-23  Jim Meyering  <meyering@redhat.com>
960
961         fts: close parent dir FD before returning from post-traversal fts_read
962         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
963         unlink A, even though an FD open on A remained.  This is suboptimal
964         (holding a file descriptor open longer than needed), but otherwise not
965         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
966         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
967         that represents a real problem: it causes the removal of A to fail
968         with e.g., "rm: cannot remove `A': Device or resource busy"
969
970         fts visits each directory twice and keeps a cache (fts_fd_ring) of
971         directory file descriptors.  After completing the final, FTS_DP,
972         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
973         cache, but then proceeded to add a new FD to it via the subsequent
974         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
975         final file descriptor would be closed only via fts_close's call to
976         fd_ring_clear.  Now, it is usually closed earlier, via the final
977         FTS_DP-returning fts_read call.
978         * lib/fts.c (restore_initial_cwd): New function, converted from
979         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
980         Update callers.
981         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
982         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
983
984 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
985             Bruno Haible  <bruno@clisp.org>
986             Jim Meyering  <jim@meyering.net>
987
988         readme-release: improve safety of release prep instructions.
989         * README-release: Don't git pull all branches when only master
990         is needed for the release process.
991         Run make maintainer-clean before changing trees and merging.
992         Don't try to run ./configure right after git pull in case files
993         that influence the bootstrap process have changed, move the
994         ./configure step to after running ./bootstrap.
995         Don't bootstrap "one last time"... it's the first time!
996
997 2011-10-22  Bruno Haible  <bruno@clisp.org>
998
999         errno, strerror-override: Support for MSVC 10.
1000         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
1001         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
1002         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
1003         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
1004         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
1005         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
1006         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
1007         Assign values compatible with MSVC 10.
1008         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
1009         New macros.
1010         (GNULIB_defined_EWINSOCK): New macro.
1011         * lib/strerror-override.c (strerror_override): Update accordingly.
1012         * lib/strerror-override.h: Likewise.
1013         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
1014         longer equal to the corresponding errno value.
1015         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
1016
1017 2011-10-22  Bruno Haible  <bruno@clisp.org>
1018
1019         perror: Recognize when test program crashes.
1020         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
1021         strerror, set gl_cv_func_perror_works to no.
1022         Reported by Daniel Richard G. <skunk@iskunk.org>.
1023
1024         perror: Fix indentation.
1025         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
1026
1027 2011-10-22  Bruno Haible  <bruno@clisp.org>
1028
1029         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
1030         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
1031         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
1032         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
1033         functions, not as a macro.
1034         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
1035         macros.
1036         (isfinite, isinf, isnan, signbit): Check overloaded functions and
1037         absence of macro.
1038         Suggested by Eric Blake.
1039         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
1040
1041 2011-10-21  Bruno Haible  <bruno@clisp.org>
1042
1043         relocatable-prog-wrapper: Don't leave object files behind.
1044         * build-aux/install-reloc: Re-synchronize list of .o files to be
1045         removed with list of compilation units.
1046
1047 2011-10-20  Bruno Haible  <bruno@clisp.org>
1048
1049         openpty, posix_openpt: Remove code duplication.
1050         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
1051         * lib/openpty.c: Include <stdlib.h>.
1052         (openpty): Use posix_openpt on all platforms except IRIX.
1053         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
1054
1055 2011-10-20  Bruno Haible  <bruno@clisp.org>
1056
1057         unlockpt: Detect invalid argument.
1058         * lib/unlockpt.c: Include <fcntl.h>.
1059         (unlockpt): Check whether fd is valid, using fcntl().
1060         * modules/unlockpt (Depends-on): Add fcntl-h.
1061
1062 2011-10-20  Bruno Haible  <bruno@clisp.org>
1063
1064         openpty: Avoid compilation error on AIX 6.1.
1065         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
1066
1067 2011-10-20  Bruno Haible  <bruno@clisp.org>
1068
1069         posix_openpt: Support for OpenBSD.
1070         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
1071         (posix_openpt) [OpenBSD]: New code.
1072         * lib/grantpt.c: Include <fcntl.h>.
1073         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
1074         * modules/grantpt (Depends-on): Add fcntl-h.
1075
1076 2011-10-20  Bruno Haible  <bruno@clisp.org>
1077
1078         posix_openpt test: Coding style.
1079         * tests/test-posix_openpt.c: Use GNU coding style.
1080
1081 2011-10-20  Bruno Haible  <bruno@clisp.org>
1082
1083         grantpt: Support --avoid=pt_chown.
1084         * modules/grantpt (Files): Add lib/pty-private.h.
1085
1086 2011-10-20  Bruno Haible  <bruno@clisp.org>
1087
1088         posix_openpt: Fix autoconf macro.
1089         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
1090         unneeded check for _getpty.
1091
1092 2011-10-20  Bruno Haible  <bruno@clisp.org>
1093
1094         openpty: Update comments.
1095         * lib/openpty.c: Add comments about Minix.
1096
1097 2011-10-19  Eric Blake  <eblake@redhat.com>
1098
1099         openpty: relax license
1100         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
1101
1102         pt_chown: use configmake to simplify build
1103         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
1104
1105         ptsname and others: relax license
1106         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
1107         * modules/unlockpt (License): Likewise.
1108         * modules/pt_chown (License): Likewise.
1109         * modules/ptsname (License): Likewise.
1110         * modules/ttyname_r (License): Likewise.
1111
1112 2011-10-19  Jim Meyering  <meyering@redhat.com>
1113
1114         posix_openpt: remove spurious #endif
1115         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
1116
1117 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
1118
1119         maint.mk: Respect $(build_aux) in web-manual rule.
1120         * top/maint.mk (web-manual): Find gen-announce script in user's
1121         $(build_aux) directory instead of hard-coding 'build-aux'.
1122
1123 2011-10-19  Bruno Haible  <bruno@clisp.org>
1124
1125         posix_openpt: Fix compilation error.
1126         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
1127         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
1128         Mention the openpty module as an alternative.
1129
1130 2011-10-19  Bruno Haible  <bruno@clisp.org>
1131
1132         Support for old NeXTstep 3.3 frexp().
1133         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
1134         execution time of the test to 5 seconds.
1135         Reported by Daniel Richard G. <skunk@iskunk.org>.
1136
1137 2011-10-19  Bruno Haible  <bruno@clisp.org>
1138
1139         Support for old NeXTstep 3.3 sed.
1140         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
1141         part, use /.../, not \|...|. Escape periods in the header file name.
1142         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
1143         Reported by Daniel Richard G. <skunk@iskunk.org>.
1144
1145 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
1146
1147         Support for old NeXTstep 3.3 gcc.
1148         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
1149         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
1150         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
1151         * lib/spawn.in.h (_Restrict_arr_): Likewise.
1152         * lib/regex.h (_Restrict_arr_): Likewise.
1153         * lib/regex_internal.h (re_token_t): Likewise.
1154         * lib/regexec.c (check_node_accept_bytes): Likewise.
1155         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
1156
1157 2011-10-18  Eric Blake  <eblake@redhat.com>
1158
1159         posix_openpt: new module
1160         * modules/posix_openpt: New module.
1161         * m4/posix_openpt.m4: New file.
1162         * lib/posix_openpt.c: Likewise.
1163         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
1164         (gl_STDLIB_H_DEFAULTS): Set defaults.
1165         * modules/stdlib (Makefile.am): Substitute macros.
1166         * lib/stdlib.in.h (posix_openpt): Declare.
1167         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
1168         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
1169         * modules/posix_openpt-tests: New test module.
1170         * tests/test-posix_openpt.c: New test.
1171
1172 2011-10-15  Bruno Haible  <bruno@clisp.org>
1173
1174         xstrtoll: Fix compilation failure.
1175         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
1176         from lib/strtol.c.
1177         * doc/posix-headers/limits.texi: Mention missing numerical limits on
1178         some platforms.
1179         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1180
1181 2011-10-15  Bruno Haible  <bruno@clisp.org>
1182
1183         vasnprintf: Optimize bit search operation.
1184         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
1185         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
1186         gl_DOUBLE_EXPONENT_LOCATION.
1187         * modules/vasnprintf (Files): Add m4/exponentd.m4.
1188         * modules/unistdio/u8-vasnprintf (Files): Likewise.
1189         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
1190         * modules/unistdio/u16-vasnprintf (Files): Likewise.
1191         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
1192         * modules/unistdio/u32-vasnprintf (Files): Likewise.
1193         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
1194         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
1195         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
1196
1197 2011-10-15  Bruno Haible  <bruno@clisp.org>
1198
1199         vasnprintf: Fix comments.
1200         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
1201
1202 2011-10-14  Bruno Haible  <bruno@clisp.org>
1203
1204         Tests for module 'integer_length_ll'.
1205         * modules/integer_length_ll-tests: New file.
1206         * tests/test-integer_length_ll.c: New file.
1207
1208         New module 'integer_length_ll'.
1209         * lib/integer_length_ll.c: New file.
1210         * modules/integer_length_ll: New file.
1211
1212 2011-10-14  Bruno Haible  <bruno@clisp.org>
1213
1214         Tests for module 'integer_length_l'.
1215         * modules/integer_length_l-tests: New file.
1216         * tests/test-integer_length_l.c: New file.
1217
1218         New module 'integer_length_l'.
1219         * lib/integer_length_l.c: New file.
1220         * modules/integer_length_l: New file.
1221
1222 2011-10-14  Bruno Haible  <bruno@clisp.org>
1223
1224         Tests for module 'integer_length'.
1225         * modules/integer_length-tests: New file.
1226         * tests/test-integer_length.c: New file.
1227
1228         New module 'integer_length'.
1229         * lib/integer_length.h: New file.
1230         * lib/integer_length.c: New file.
1231         * modules/integer_length: New file.
1232
1233 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
1234
1235         popen: Fix dependency conditions.
1236         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
1237
1238 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
1239
1240         perror: Fix autoconf test.
1241         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
1242         <stdlib.h> and <string.h>.
1243
1244 2011-10-14  Bruno Haible  <bruno@clisp.org>
1245
1246         ffsl: Optimize on 64-bit platforms.
1247         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
1248         unrolling.
1249
1250 2011-10-13  Bruno Haible  <bruno@clisp.org>
1251
1252         ffsl: Optimize on 32-bit platforms.
1253         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
1254         use ffs() without a loop.
1255
1256         ffsl, ffsll: Optimize for GCC.
1257         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
1258         * lib/ffsl.c (GCC_BUILTIN): New macro.
1259         * lib/ffsll.c (GCC_BUILTIN): Likewise.
1260
1261 2011-10-13  Bruno Haible  <bruno@clisp.org>
1262
1263         ffs, bcopy, memset: Support symbol renaming via config.h.
1264         * lib/ffs.c: Include <config.h>.
1265         * lib/bcopy.c: Likewise.
1266         * lib/memset.c: Likewise.
1267
1268 2011-10-10  Bruno Haible  <bruno@clisp.org>
1269
1270         atanl: Simplify for platforms where 'long double' == 'double'.
1271         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1272         alternative implementation.
1273         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1274         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1275         * modules/atanl (Depends-on): Add atan. Update conditions.
1276
1277 2011-10-10  Bruno Haible  <bruno@clisp.org>
1278
1279         acosl: Simplify for platforms where 'long double' == 'double'.
1280         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1281         alternative implementation.
1282         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1283         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1284         * modules/acosl (Depends-on): Add acos. Update conditions.
1285
1286 2011-10-10  Bruno Haible  <bruno@clisp.org>
1287
1288         asinl: Simplify for platforms where 'long double' == 'double'.
1289         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1290         alternative implementation.
1291         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1292         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1293         * modules/asinl (Depends-on): Add asin. Update conditions.
1294
1295 2011-10-10  Bruno Haible  <bruno@clisp.org>
1296
1297         tanl: Simplify for platforms where 'long double' == 'double'.
1298         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1299         implementation.
1300         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1301         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1302         * modules/tanl (Depends-on): Add tan. Update conditions.
1303         (configure.ac): Don't compile trigl.c if
1304         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1305
1306 2011-10-10  Bruno Haible  <bruno@clisp.org>
1307
1308         cosl: Simplify for platforms where 'long double' == 'double'.
1309         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1310         implementation.
1311         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1312         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1313         * modules/cosl (Depends-on): Add cos. Update conditions.
1314         (configure.ac): Don't compile sincosl.c and trigl.c if
1315         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1316
1317 2011-10-10  Bruno Haible  <bruno@clisp.org>
1318
1319         sinl: Simplify for platforms where 'long double' == 'double'.
1320         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1321         implementation.
1322         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1323         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1324         * modules/sinl (Depends-on): Add sin. Update conditions.
1325         (configure.ac): Don't compile sincosl.c and trigl.c if
1326         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1327
1328 2011-10-10  Bruno Haible  <bruno@clisp.org>
1329
1330         logl: Simplify for platforms where 'long double' == 'double'.
1331         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1332         implementation.
1333         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1334         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1335         * modules/logl (Depends-on): Add log. Update conditions.
1336
1337 2011-10-10  Bruno Haible  <bruno@clisp.org>
1338
1339         expl: Simplify for platforms where 'long double' == 'double'.
1340         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1341         implementation.
1342         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1343         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1344         * modules/expl (Depends-on): Add exp. Update conditions.
1345
1346 2011-10-10  Bruno Haible  <bruno@clisp.org>
1347
1348         sqrtl: Simplify for platforms where 'long double' == 'double'.
1349         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1350         alternative implementation.
1351         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1352         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1353         * modules/sqrtl (Depends-on): Update conditions.
1354
1355 2011-10-10  Bruno Haible  <bruno@clisp.org>
1356
1357         ldexpl: Simplify for platforms where 'long double' == 'double'.
1358         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1359         alternative implementation.
1360         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1361         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1362         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
1363
1364 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
1365
1366         ffsll: set correct witness
1367         * modules/ffsll (configure.ac): Fix typo.
1368
1369 2011-10-10  Bruno Haible  <bruno@clisp.org>
1370
1371         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
1372         * lib/printf-frexpl.c: Include <config.h>.
1373         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1374         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
1375         second time.
1376         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
1377         gl_LONG_DOUBLE_VS_DOUBLE.
1378         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
1379         conditions.
1380
1381 2011-10-10  Bruno Haible  <bruno@clisp.org>
1382
1383         frexpl: Simplify for platforms where 'long double' == 'double'.
1384         * lib/frexpl.c: Include <config.h>.
1385         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1386         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1387         time.
1388         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1389         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1390         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
1391         * modules/frexpl (Depends-on): Add frexp. Update conditions.
1392         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
1393         conditions.
1394
1395 2011-10-10  Jim Meyering  <meyering@redhat.com>
1396
1397         test-renameat: don't leave behind a temporary file
1398         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
1399           ERROR: files left in build directory after distclean:
1400           ./gltests/test-renameat.too
1401           make[1]: *** [distcleancheck] Error 1
1402         Reported by Tom G. Christensen.
1403
1404 2011-10-09  Bruno Haible  <bruno@clisp.org>
1405
1406         rint: Determine RINT_LIBM correctly on AIX 7.
1407         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
1408         directly, not only through a function pointer. Also accept an optional
1409         4th argument with extra code.
1410         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
1411         rintf() call by gcc when optimizing.
1412
1413         mathfunc.m4: Refactor.
1414         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
1415         m4 variable.
1416
1417 2011-10-09  Bruno Haible  <bruno@clisp.org>
1418
1419         rintl: Simplify for platforms where 'long double' == 'double'.
1420         * lib/rintl.c: Include <config.h>.
1421         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1422         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1423         time.
1424         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1425         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1426         * modules/rintl (Depends-on): Add rint. Update conditions.
1427
1428 2011-10-09  Bruno Haible  <bruno@clisp.org>
1429
1430         roundl: Simplify for platforms where 'long double' == 'double'.
1431         * lib/roundl.c: Include <config.h>.
1432         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1433         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1434         time.
1435         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1436         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1437         * modules/roundl (Depends-on): Add round. Update conditions.
1438
1439 2011-10-09  Bruno Haible  <bruno@clisp.org>
1440
1441         truncl: Simplify for platforms where 'long double' == 'double'.
1442         * lib/truncl.c: Include <config.h>.
1443         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1444         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1445         time.
1446         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1447         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1448         * modules/truncl (Depends-on): Add trunc. Update conditions.
1449
1450 2011-10-09  Bruno Haible  <bruno@clisp.org>
1451
1452         ceill: Simplify for platforms where 'long double' == 'double'.
1453         * lib/ceill.c: Include <config.h>.
1454         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1455         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1456         time.
1457         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1458         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1459         * modules/ceill (Depends-on): Add ceil. Update conditions.
1460
1461 2011-10-09  Bruno Haible  <bruno@clisp.org>
1462
1463         floorl: Simplify for platforms where 'long double' == 'double'.
1464         * lib/floorl.c: Include <config.h>.
1465         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1466         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1467         time.
1468         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1469         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1470         * modules/floorl (Depends-on): Add floor. Update conditions.
1471
1472 2011-10-09  Bruno Haible  <bruno@clisp.org>
1473
1474         rint: Fix ordering constraints.
1475         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
1476         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
1477         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
1478
1479 2011-10-09  Bruno Haible  <bruno@clisp.org>
1480
1481         copysignl: Simplify for platforms where 'long double' == 'double'.
1482         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1483         alternative.
1484         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1485         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1486         * modules/copysignl (Depends-on): Add copysign. Update conditions.
1487
1488 2011-10-09  Bruno Haible  <bruno@clisp.org>
1489
1490         Tests for module 'rintl'.
1491         * modules/rintl-tests: New file.
1492         * tests/test-rintl.c: New file.
1493
1494         New module 'rintl'.
1495         * lib/math.in.h (rintl): New declaration.
1496         * lib/rintl.c: New file.
1497         * m4/rintl.m4: New file.
1498         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
1499         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
1500         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
1501         * modules/rintl: New file.
1502         * tests/test-math-c++.cc: Check the declaration of rintl.
1503         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
1504         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
1505         * doc/posix-functions/rintl.texi: Mention the new module.
1506
1507 2011-10-09  Bruno Haible  <bruno@clisp.org>
1508
1509         Tests for module 'rintf'.
1510         * modules/rintf-tests: New file.
1511         * tests/test-rintf.c: New file.
1512
1513         New module 'rintf'.
1514         * lib/math.in.h (rintf): New declaration.
1515         * lib/rintf.c: New file.
1516         * m4/rintf.m4: New file.
1517         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
1518         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
1519         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
1520         * modules/rintf: New file.
1521         * tests/test-math-c++.cc: Check the declaration of rintf.
1522         * doc/posix-functions/rintf.texi: Mention the new module.
1523
1524 2011-10-09  Bruno Haible  <bruno@clisp.org>
1525
1526         rint: Support for MSVC.
1527         * lib/math.in.h (rint): New declaration.
1528         * lib/rint.c: New file.
1529         * m4/rint.m4: New file.
1530         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
1531         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
1532         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
1533         * modules/rint (Description): Fix.
1534         (Files): Add lib/rint.c, m4/rint.m4.
1535         (Depends-on): Add math.
1536         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
1537         gl_MATH_MODULE_INDICATOR.
1538         * tests/test-math-c++.cc: Check the declaration of rint.
1539         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
1540         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
1541         * doc/posix-functions/rint.texi: Mention the replacement provided by
1542         the module.
1543
1544         rint tests: More tests.
1545         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
1546         minus-zero.h, infinity.h, nan.h.
1547         (main): Skip the test if the current rounding mode is not standard. Add
1548         tests for negative numbers, minus zero, infinity, NaN.
1549         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
1550         tests/nan.h.
1551         (Depends-on): Add isnand-nolibm.
1552
1553 2011-10-09  Bruno Haible  <bruno@clisp.org>
1554
1555         Tests for module 'copysignl'.
1556         * modules/copysignl-tests: New file.
1557         * tests/test-copysignl.c: New file.
1558
1559         New module 'copysignl'.
1560         * lib/math.in.h (copysignl): New declaration.
1561         * lib/copysignl.c: New file.
1562         * m4/copysignl.m4: New file.
1563         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
1564         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
1565         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
1566         HAVE_COPYSIGNL.
1567         * modules/copysignl: New file.
1568         * tests/test-math-c++.cc: Check the declaration of copysignl.
1569         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
1570         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
1571         * doc/posix-functions/copysignl.texi: Mention the new module.
1572
1573 2011-10-09  Bruno Haible  <bruno@clisp.org>
1574
1575         Tests for module 'copysignf'.
1576         * modules/copysignf-tests: New file.
1577         * tests/test-copysignf.c: New file.
1578
1579         New module 'copysignf'.
1580         * lib/math.in.h (copysignf): New declaration.
1581         * lib/copysignf.c: New file.
1582         * m4/copysignf.m4: New file.
1583         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
1584         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
1585         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
1586         HAVE_COPYSIGNF.
1587         * modules/copysignf: New file.
1588         * tests/test-math-c++.cc: Check the declaration of copysignf.
1589         * doc/posix-functions/copysignf.texi: Mention the new module.
1590
1591 2011-10-09  Bruno Haible  <bruno@clisp.org>
1592
1593         Ensure that HAVE_* variables are set to 1 before they are set to 0.
1594         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
1595         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
1596         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
1597         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
1598         gl_SIGNAL_H_DEFAULTS.
1599
1600 2011-10-09  Bruno Haible  <bruno@clisp.org>
1601
1602         poll: Make macro safer.
1603         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
1604         ac_cv_header_poll_h is not set.
1605
1606 2011-10-09  Bruno Haible  <bruno@clisp.org>
1607
1608         copysign: Provide replacement.
1609         * lib/math.in.h (copysign): New declaration.
1610         * lib/copysign.c: New file.
1611         * m4/copysign.m4: New file.
1612         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
1613         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
1614         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
1615         HAVE_COPYSIGN.
1616         * modules/copysign (Description): Clarify.
1617         (Files): Add lib/copysign.c, m4/copysign.m4.
1618         (Depends-on): Add math, signbit.
1619         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
1620         gl_MATH_MODULE_INDICATOR.
1621         * tests/test-math-c++.cc: Check the declaration of copysign.
1622         * doc/posix-functions/copysign.texi: Mention the effects of the module
1623         on Minix and MSVC.
1624
1625 2011-10-09  Bruno Haible  <bruno@clisp.org>
1626
1627         isinf: Ensure macro on AIX 5.1.
1628         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
1629         macro.
1630         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
1631
1632 2011-10-09  Bruno Haible  <bruno@clisp.org>
1633
1634         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
1635         * modules/snprintf-posix-tests (configure.ac): Require
1636         gl_LONG_DOUBLE_VS_DOUBLE.
1637         * modules/sprintf-posix-tests (configure.ac): Likewise.
1638         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
1639         * modules/vasprintf-posix-tests (configure.ac): Likewise.
1640         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
1641         * modules/vsprintf-posix-tests (configure.ac): Likewise.
1642         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
1643         tests on platforms where 'long double' is the same as 'double'.
1644         * tests/test-sprintf-posix.h (test_function): Likewise.
1645         * tests/test-vasnprintf-posix.c (test_function): Likewise.
1646         * tests/test-vasprintf-posix.c (test_function): Likewise.
1647
1648         *printf: Fix for platforms where 'long double' == 'double'.
1649         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
1650         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
1651         * modules/dprintf-posix (Files): Add m4/math_h.m4.
1652         * modules/fprintf-posix (Files): Likewise.
1653         * modules/obstack-printf-posix (Files): Likewise.
1654         * modules/snprintf-posix (Files): Likewise.
1655         * modules/sprintf-posix (Files): Likewise.
1656         * modules/vasnprintf (Files): Likewise.
1657         * modules/vasnprintf-posix (Files): Likewise.
1658         * modules/vasprintf-posix (Files): Likewise.
1659         * modules/vdprintf-posix (Files): Likewise.
1660         * modules/vfprintf-posix (Files): Likewise.
1661         * modules/vsnprintf-posix (Files): Likewise.
1662         * modules/vsprintf-posix (Files): Likewise.
1663         * modules/unistdio/u8-vasnprintf (Files): Likewise.
1664         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
1665         * modules/unistdio/u16-vasnprintf (Files): Likewise.
1666         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
1667         * modules/unistdio/u32-vasnprintf (Files): Likewise.
1668         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
1669         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
1670
1671         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
1672         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
1673         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1674         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
1675         'long double'.
1676         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
1677
1678         isinf: Fix for platforms where 'long double' == 'double'.
1679         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
1680         Don't blindly assume 80-bit 'long double'.
1681
1682         isfinite: Fix for platforms where 'long double' == 'double'.
1683         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
1684         Don't blindly assume 80-bit 'long double'.
1685
1686         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
1687         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
1688         * modules/isfinite-tests (configure.ac): Require
1689         gl_LONG_DOUBLE_VS_DOUBLE.
1690         * modules/isinf-tests (configure.ac): Likewise.
1691         * modules/isnan-tests (configure.ac): Likewise.
1692         * modules/isnanl-tests (configure.ac): Likewise.
1693         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
1694         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
1695         tests on platforms where 'long double' is the same as 'double'.
1696         * tests/test-isinf.c (test_isinfl): Likewise.
1697         * tests/test-isnan.c (test_long_double): Likewise.
1698         * tests/test-isnanl.h (main): Likewise.
1699
1700 2011-10-08  Bruno Haible  <bruno@clisp.org>
1701
1702         Tests for module 'tanhf'.
1703         * modules/tanhf-tests: New file.
1704         * tests/test-tanhf.c: New file.
1705
1706         New module 'tanhf'.
1707         * lib/math.in.h (tanhf): New declaration.
1708         * lib/tanhf.c: New file.
1709         * m4/tanhf.m4: New file.
1710         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
1711         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
1712         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
1713         * modules/tanhf: New file.
1714         * tests/test-math-c++.cc: Check the declaration of tanhf.
1715         * doc/posix-functions/tanhf.texi: Mention the new module.
1716
1717         tanh: Use a .m4 file.
1718         * m4/tanh.m4: New file.
1719         * modules/tanh (Files): Add it.
1720         (configure.ac): Just invoke gl_FUNC_TANH.
1721
1722 2011-10-08  Bruno Haible  <bruno@clisp.org>
1723
1724         Tests for module 'coshf'.
1725         * modules/coshf-tests: New file.
1726         * tests/test-coshf.c: New file.
1727
1728         New module 'coshf'.
1729         * lib/math.in.h (coshf): New declaration.
1730         * lib/coshf.c: New file.
1731         * m4/coshf.m4: New file.
1732         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
1733         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
1734         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
1735         * modules/coshf: New file.
1736         * tests/test-math-c++.cc: Check the declaration of coshf.
1737         * doc/posix-functions/coshf.texi: Mention the new module.
1738
1739         cosh: Use a .m4 file.
1740         * m4/cosh.m4: New file.
1741         * modules/cosh (Files): Add it.
1742         (configure.ac): Just invoke gl_FUNC_COSH.
1743
1744 2011-10-08  Bruno Haible  <bruno@clisp.org>
1745
1746         Tests for module 'sinhf'.
1747         * modules/sinhf-tests: New file.
1748         * tests/test-sinhf.c: New file.
1749
1750         New module 'sinhf'.
1751         * lib/math.in.h (sinhf): New declaration.
1752         * lib/sinhf.c: New file.
1753         * m4/sinhf.m4: New file.
1754         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
1755         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
1756         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
1757         * modules/sinhf: New file.
1758         * tests/test-math-c++.cc: Check the declaration of sinhf.
1759         * doc/posix-functions/sinhf.texi: Mention the new module.
1760
1761         sinh: Use a .m4 file.
1762         * m4/sinh.m4: New file.
1763         * modules/sinh (Files): Add it.
1764         (configure.ac): Just invoke gl_FUNC_SINH.
1765
1766 2011-10-08  Bruno Haible  <bruno@clisp.org>
1767
1768         Tests for module 'atan2f'.
1769         * modules/atan2f-tests: New file.
1770         * tests/test-atan2f.c: New file.
1771
1772         New module 'atan2f'.
1773         * lib/math.in.h (atan2f): New declaration.
1774         * lib/atan2f.c: New file.
1775         * m4/atan2f.m4: New file.
1776         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
1777         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
1778         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
1779         * modules/atan2f: New file.
1780         * tests/test-math-c++.cc: Check the declaration of atan2f.
1781         * doc/posix-functions/atan2f.texi: Mention the new module.
1782
1783         atan2: Use a .m4 file.
1784         * m4/atan2.m4: New file.
1785         * modules/atan2 (Files): Add it.
1786         (configure.ac): Just invoke gl_FUNC_ATAN2.
1787
1788 2011-10-08  Bruno Haible  <bruno@clisp.org>
1789
1790         Tests for module 'atanf'.
1791         * modules/atanf-tests: New file.
1792         * tests/test-atanf.c: New file.
1793
1794         New module 'atanf'.
1795         * lib/math.in.h (atanf): New declaration.
1796         * lib/atanf.c: New file.
1797         * m4/atanf.m4: New file.
1798         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
1799         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
1800         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
1801         * modules/atanf: New file.
1802         * tests/test-math-c++.cc: Check the declaration of atanf.
1803         * doc/posix-functions/atanf.texi: Mention the new module.
1804
1805         atan: Use a .m4 file.
1806         * m4/atan.m4: New file.
1807         * modules/atan (Files): Add it.
1808         (configure.ac): Just invoke gl_FUNC_ATAN.
1809
1810 2011-10-08  Bruno Haible  <bruno@clisp.org>
1811
1812         Tests for module 'acosf'.
1813         * modules/acosf-tests: New file.
1814         * tests/test-acosf.c: New file.
1815
1816         New module 'acosf'.
1817         * lib/math.in.h (acosf): New declaration.
1818         * lib/acosf.c: New file.
1819         * m4/acosf.m4: New file.
1820         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
1821         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
1822         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
1823         * modules/acosf: New file.
1824         * tests/test-math-c++.cc: Check the declaration of acosf.
1825         * doc/posix-functions/acosf.texi: Mention the new module.
1826
1827         acos: Use a .m4 file.
1828         * m4/acos.m4: New file.
1829         * modules/acos (Files): Add it.
1830         (configure.ac): Just invoke gl_FUNC_ACOS.
1831
1832 2011-10-08  Bruno Haible  <bruno@clisp.org>
1833
1834         Tests for module 'asinf'.
1835         * modules/asinf-tests: New file.
1836         * tests/test-asinf.c: New file.
1837
1838         New module 'asinf'.
1839         * lib/math.in.h (asinf): New declaration.
1840         * lib/asinf.c: New file.
1841         * m4/asinf.m4: New file.
1842         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
1843         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
1844         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
1845         * modules/asinf: New file.
1846         * tests/test-math-c++.cc: Check the declaration of asinf.
1847         * doc/posix-functions/asinf.texi: Mention the new module.
1848
1849         asin: Use a .m4 file.
1850         * m4/asin.m4: New file.
1851         * modules/asin (Files): Add it.
1852         (configure.ac): Just invoke gl_FUNC_ASIN.
1853
1854 2011-10-08  Bruno Haible  <bruno@clisp.org>
1855
1856         Tests for module 'tanf'.
1857         * modules/tanf-tests: New file.
1858         * tests/test-tanf.c: New file.
1859
1860         New module 'tanf'.
1861         * lib/math.in.h (tanf): New declaration.
1862         * lib/tanf.c: New file.
1863         * m4/tanf.m4: New file.
1864         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
1865         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
1866         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
1867         * modules/tanf: New file.
1868         * tests/test-math-c++.cc: Check the declaration of tanf.
1869         * doc/posix-functions/tanf.texi: Mention the new module.
1870
1871         tan: Use a .m4 file.
1872         * m4/tan.m4: New file.
1873         * modules/tan (Files): Add it.
1874         (configure.ac): Just invoke gl_FUNC_TAN.
1875
1876 2011-10-08  Bruno Haible  <bruno@clisp.org>
1877
1878         Tests for module 'cosf'.
1879         * modules/cosf-tests: New file.
1880         * tests/test-cosf.c: New file.
1881
1882         New module 'cosf'.
1883         * lib/math.in.h (cosf): New declaration.
1884         * lib/cosf.c: New file.
1885         * m4/cosf.m4: New file.
1886         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
1887         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
1888         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
1889         * modules/cosf: New file.
1890         * tests/test-math-c++.cc: Check the declaration of cosf.
1891         * doc/posix-functions/cosf.texi: Mention the new module.
1892
1893         cos: Use a .m4 file.
1894         * m4/cos.m4: New file.
1895         * modules/cos (Files): Add it.
1896         (configure.ac): Just invoke gl_FUNC_COS.
1897
1898 2011-10-08  Bruno Haible  <bruno@clisp.org>
1899
1900         Tests for module 'sinf'.
1901         * modules/sinf-tests: New file.
1902         * tests/test-sinf.c: New file.
1903
1904         New module 'sinf'.
1905         * lib/math.in.h (sinf): New declaration.
1906         * lib/sinf.c: New file.
1907         * m4/sinf.m4: New file.
1908         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
1909         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
1910         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
1911         * modules/sinf: New file.
1912         * tests/test-math-c++.cc: Check the declaration of sinf.
1913         * doc/posix-functions/sinf.texi: Mention the new module.
1914
1915         sin: Use a .m4 file.
1916         * m4/sin.m4: New file.
1917         * modules/sin (Files): Add it.
1918         (configure.ac): Just invoke gl_FUNC_SIN.
1919
1920 2011-10-08  Bruno Haible  <bruno@clisp.org>
1921
1922         Tests for module 'powf'.
1923         * modules/powf-tests: New file.
1924         * tests/test-powf.c: New file.
1925
1926         New module 'powf'.
1927         * lib/math.in.h (powf): New declaration.
1928         * lib/powf.c: New file.
1929         * m4/powf.m4: New file.
1930         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
1931         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
1932         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
1933         * modules/powf: New file.
1934         * tests/test-math-c++.cc: Check the declaration of powf.
1935         * doc/posix-functions/powf.texi: Mention the new module.
1936
1937         pow: Use a .m4 file.
1938         * m4/pow.m4: New file.
1939         * modules/pow (Files): Add it.
1940         (configure.ac): Just invoke gl_FUNC_POW.
1941
1942 2011-10-08  Bruno Haible  <bruno@clisp.org>
1943
1944         Tests for module 'log10f'.
1945         * modules/log10f-tests: New file.
1946         * tests/test-log10f.c: New file.
1947
1948         New module 'log10f'.
1949         * lib/math.in.h (log10f): New declaration.
1950         * lib/log10f.c: New file.
1951         * m4/log10f.m4: New file.
1952         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
1953         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
1954         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
1955         * modules/log10f: New file.
1956         * tests/test-math-c++.cc: Check the declaration of log10f.
1957         * doc/posix-functions/log10f.texi: Mention the new module.
1958
1959         log10: Use a .m4 file.
1960         * m4/log10.m4: New file.
1961         * modules/log10 (Files): Add it.
1962         (configure.ac): Just invoke gl_FUNC_LOG10.
1963
1964 2011-10-08  Bruno Haible  <bruno@clisp.org>
1965
1966         Tests for module 'logf'.
1967         * modules/logf-tests: New file.
1968         * tests/test-logf.c: New file.
1969
1970         New module 'logf'.
1971         * lib/math.in.h (logf): New declaration.
1972         * lib/logf.c: New file.
1973         * m4/logf.m4: New file.
1974         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
1975         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
1976         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
1977         * modules/logf: New file.
1978         * tests/test-math-c++.cc: Check the declaration of logf.
1979         * doc/posix-functions/logf.texi: Mention the new module.
1980
1981         log: Use a .m4 file.
1982         * m4/log.m4: New file.
1983         * modules/log (Files): Add it.
1984         (configure.ac): Just invoke gl_FUNC_LOG.
1985
1986 2011-10-08  Bruno Haible  <bruno@clisp.org>
1987
1988         Tests for module 'expf'.
1989         * modules/expf-tests: New file.
1990         * tests/test-expf.c: New file.
1991
1992         New module 'expf'.
1993         * lib/math.in.h (expf): New declaration.
1994         * lib/expf.c: New file.
1995         * m4/expf.m4: New file.
1996         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
1997         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
1998         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
1999         * modules/expf: New file.
2000         * tests/test-math-c++.cc: Check the declaration of expf.
2001         * doc/posix-functions/expf.texi: Mention the new module.
2002
2003         exp: Use a .m4 file.
2004         * m4/exp.m4: New file.
2005         * modules/exp (Files): Add it.
2006         (configure.ac): Just invoke gl_FUNC_EXP.
2007
2008 2011-10-08  Bruno Haible  <bruno@clisp.org>
2009
2010         Tests for module 'sqrtf'.
2011         * modules/sqrtf-tests: New file.
2012         * tests/test-sqrtf.c: New file.
2013
2014         New module 'sqrtf'.
2015         * lib/math.in.h (sqrtf): New declaration.
2016         * lib/sqrtf.c: New file.
2017         * m4/sqrtf.m4: New file.
2018         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
2019         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
2020         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
2021         * modules/sqrtf: New file.
2022         * tests/test-math-c++.cc: Check the declaration of sqrtf.
2023         * doc/posix-functions/sqrtf.texi: Mention the new module.
2024
2025 2011-10-08  Bruno Haible  <bruno@clisp.org>
2026
2027         Tests: Avoid link failures w.r.t. libintl.
2028         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
2029         $(LIBINTL).
2030         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
2031         $(LIBINTL).
2032         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
2033         against $(LIBINTL).
2034         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
2035         $(LIBINTL).
2036         * modules/openat-tests (Makefile.am): Link test-fchmodat against
2037         $(LIBINTL).
2038         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
2039
2040 2011-10-08  Bruno Haible  <bruno@clisp.org>
2041
2042         pow tests: Defeat compiler optimizations.
2043         * tests/test-pow.c (main): Assign arguments to x and y before use.
2044
2045 2011-10-08  Bruno Haible  <bruno@clisp.org>
2046
2047         gnulib-tool: Improve last commit.
2048         * gnulib-tool (func_modules_transitive_closure): Simplify code.
2049         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
2050         ignore dependencies that are not among the modules list.
2051
2052 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
2053
2054         gnulib-tool: don't follow dependencies to avoided modules
2055         This fixes a bug that is related to the previous one.
2056         * gnulib-tool (func_modules_transitive_closure)
2057         (func_emit_autoconf_snippets):
2058         Check whether a dependency is acceptable before using it.
2059         (--extract-dependencies): Report an error if --avoid is also used,
2060         since this combination of options is not yet supported.
2061
2062         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
2063         Problem reported by Peter Dyballa in
2064         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
2065         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
2066         when echoing "$condition".
2067
2068 2011-10-07  Bruno Haible  <bruno@clisp.org>
2069
2070         Fix documentation about math functions on MacOS X.
2071         * doc/posix-functions/exp2.texi: Don't say the function is missing on
2072         MacOS X 10.5.
2073         * doc/posix-functions/fdim.texi: Likewise.
2074         * doc/posix-functions/feclearexcept.texi: Likewise.
2075         * doc/posix-functions/fegetenv.texi: Likewise.
2076         * doc/posix-functions/fegetround.texi: Likewise.
2077         * doc/posix-functions/feholdexcept.texi: Likewise.
2078         * doc/posix-functions/feraiseexcept.texi: Likewise.
2079         * doc/posix-functions/fesetenv.texi: Likewise.
2080         * doc/posix-functions/fesetround.texi: Likewise.
2081         * doc/posix-functions/fetestexcept.texi: Likewise.
2082         * doc/posix-functions/feupdateenv.texi: Likewise.
2083         * doc/posix-functions/fmax.texi: Likewise.
2084         * doc/posix-functions/fmin.texi: Likewise.
2085         * doc/posix-functions/log2.texi: Likewise.
2086         * doc/posix-functions/modff.texi: Likewise.
2087         * doc/posix-functions/nan.texi: Likewise.
2088         * doc/posix-functions/nanf.texi: Likewise.
2089         * doc/posix-functions/nextafterf.texi: Likewise.
2090         * doc/posix-functions/remquo.texi: Likewise.
2091
2092 2011-10-07  Bruno Haible  <bruno@clisp.org>
2093
2094         modff: Drop assumption about library that defines modff.
2095         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
2096         AC_CHECK_FUNCS.
2097         * modules/modff (Files): Add m4/mathfunc.m4.
2098
2099 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
2100
2101         raise tests: Avoid a GCC warning.
2102         * tests/test-raise.c (handler): Use _Noreturn.
2103
2104 2011-10-07  Bruno Haible  <bruno@clisp.org>
2105
2106         Tests for module 'ldexpf'.
2107         * modules/ldexpf-tests: New file.
2108         * tests/test-ldexpf.c: New file.
2109
2110         New module 'ldexpf'.
2111         * lib/math.in.h (ldexpf): New declaration.
2112         * lib/ldexpf.c: New file.
2113         * m4/ldexpf.m4: New file.
2114         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
2115         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
2116         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
2117         * modules/ldexpf: New file.
2118         * tests/test-math-c++.cc: Check the declaration of ldexpf.
2119         * doc/posix-functions/ldexpf.texi: Mention the new module.
2120
2121 2011-10-06  Bruno Haible  <bruno@clisp.org>
2122
2123         frexpf: Work around problems on IRIX and mingw.
2124         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
2125         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
2126         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
2127         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
2128         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
2129         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
2130         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
2131
2132 2011-10-06  Bruno Haible  <bruno@clisp.org>
2133
2134         fabsf: Drop assumption about library that defines fabsf.
2135         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
2136         AC_CHECK_FUNCS.
2137         * modules/fabsf (Files): Add m4/mathfunc.m4.
2138
2139 2011-10-06  Bruno Haible  <bruno@clisp.org>
2140
2141         frexpf: Drop assumption about library that defines frexpf.
2142         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
2143         'int *', 'float *', 'long double *', 'float', 'long double'.
2144         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
2145         AC_CHECK_FUNCS.
2146         * modules/frexpf (Files): Add m4/mathfunc.m4.
2147
2148         Tests for module 'frexpf'.
2149         * modules/frexpf-tests: New file.
2150         * tests/test-frexpf.c: New file.
2151
2152         New module 'frexpf'.
2153         * lib/math.in.h (frexpf): New declaration.
2154         * lib/frexpf.c: New file.
2155         * m4/frexpf.m4: New file.
2156         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
2157         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
2158         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
2159         * modules/frexpf: New file.
2160         * tests/test-math-c++.cc: Check the declaration of frexpf.
2161         * doc/posix-functions/frexpf.texi: Mention the new module.
2162
2163 2011-10-06  Bruno Haible  <bruno@clisp.org>
2164
2165         math: Sort function declarations of math.in.h.
2166         * lib/math.in.h (frexp, logb): Move declarations.
2167
2168 2011-10-05  Bruno Haible  <bruno@clisp.org>
2169
2170         Tests for module 'modff'.
2171         * modules/modff-tests: New file.
2172         * tests/test-modff.c: New file.
2173
2174         New module 'modff'.
2175         * lib/math.in.h (modff): New declaration.
2176         * lib/modff.c: New file.
2177         * m4/modff.m4: New file.
2178         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
2179         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
2180         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
2181         * modules/modff: New file.
2182         * tests/test-math-c++.cc: Check the declaration of modff.
2183         * doc/posix-functions/modff.texi: Mention the new module.
2184
2185         modf tests: Make test sharper.
2186         * tests/test-modf.c (main): Strengthen upper bound.
2187
2188         modf: Use a .m4 file.
2189         * m4/modf.m4: New file.
2190         * modules/modf (Files): Add it.
2191         (configure.ac): Just invoke gl_FUNC_MODF.
2192
2193 2011-10-05  Bruno Haible  <bruno@clisp.org>
2194
2195         Tests for module 'fmodf'.
2196         * modules/fmodf-tests: New file.
2197         * tests/test-fmodf.c: New file.
2198
2199         New module 'fmodf'.
2200         * lib/math.in.h (fmodf): New declaration.
2201         * lib/fmodf.c: New file.
2202         * m4/fmodf.m4: New file.
2203         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
2204         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
2205         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
2206         * modules/fmodf: New file.
2207         * tests/test-math-c++.cc: Check the declaration of fmodf.
2208         * doc/posix-functions/fmodf.texi: Mention the new module.
2209
2210         fmod: Use a .m4 file.
2211         * m4/fmod.m4: New file.
2212         * modules/fmod (Files): Add it.
2213         (configure.ac): Just invoke gl_FUNC_FMOD.
2214
2215 2011-10-05  Bruno Haible  <bruno@clisp.org>
2216
2217         Tests for module 'fabsf'.
2218         * modules/fabsf-tests: New file.
2219         * tests/test-fabsf.c: New file.
2220
2221         New module 'fabsf'.
2222         * lib/math.in.h (fabsf): New declaration.
2223         * lib/fabsf.c: New file.
2224         * m4/fabsf.m4: New file.
2225         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
2226         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
2227         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
2228         * modules/fabsf: New file.
2229         * tests/test-math-c++.cc: Check the declaration of fabsf.
2230         * doc/posix-functions/fabsf.texi: Mention the new module.
2231
2232         fabs: Use a .m4 file.
2233         * m4/fabs.m4: New file.
2234         * modules/fabs (Files): Add it.
2235         (configure.ac): Just invoke gl_FUNC_FABS.
2236
2237 2011-10-05  Jim Meyering  <meyering@redhat.com>
2238
2239         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
2240         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
2241         ls -lL regression introduced in coreutils-8.12, it does so at the
2242         cost of an additional stat call in the common case.  Besides, now
2243         that the kernel change that prompted commit 95f7c57f has been reverted
2244         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
2245         we have no use for commit 95f7c57f, "file-has-acl: use
2246         acl_extended_file_nofollow if available".
2247
2248 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
2249
2250         file-has-acl: revert unintended change in behavior of ls -L
2251         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
2252         derived from...
2253         (file_has_acl): ...code here.  Call it.
2254         This problem was introduced with 2011-07-22 commit 95f7c57f,
2255         "file-has-acl: use acl_extended_file_nofollow if available".
2256         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
2257
2258 2011-10-03  Bruno Haible  <bruno@clisp.org>
2259
2260         poll: Avoid link errors on MSVC.
2261         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
2262         * modules/poll (Depends-on): Add sockets.
2263         (Link): New section.
2264         * NEWS: Mention the change.
2265         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
2266         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
2267         $(LIB_POLL) instead of $(LIBSOCKET).
2268
2269 2011-10-03  Bruno Haible  <bruno@clisp.org>
2270
2271         sys_select tests: Fix link error on MSVC 9.
2272         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
2273         with $(LIB_SELECT) instead of $(LIBSOCKET).
2274
2275 2011-10-03  Bruno Haible  <bruno@clisp.org>
2276
2277         sys_select: Fix compilation error on mingw.
2278         * lib/sys_select.in.h: On native Windows, include <io.h>.
2279
2280 2011-10-03  Bruno Haible  <bruno@clisp.org>
2281
2282         wmemset: Support for MSVC.
2283         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
2284         whether wmemset() exists.
2285
2286 2011-10-03  Bruno Haible  <bruno@clisp.org>
2287
2288         wmemmove: Support for MSVC.
2289         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
2290         whether wmemmove() exists.
2291
2292 2011-10-03  Bruno Haible  <bruno@clisp.org>
2293
2294         wmemcpy: Support for MSVC.
2295         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
2296         whether wmemcpy() exists.
2297
2298 2011-10-03  Bruno Haible  <bruno@clisp.org>
2299
2300         wmemcmp: Support for MSVC.
2301         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
2302         whether wmemcmp() exists.
2303
2304 2011-10-03  Bruno Haible  <bruno@clisp.org>
2305
2306         wmemchr: Support for MSVC.
2307         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
2308         whether wmemchr() exists.
2309
2310 2011-10-03  Bruno Haible  <bruno@clisp.org>
2311
2312         glthread/*, strsignal: Support for MSVC.
2313         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
2314         including <winsock.h> on MSVC 9.
2315         * lib/glthread/lock.h: Likewise.
2316         * lib/glthread/thread.h: Likewise.
2317         * lib/glthread/tls.h: Likewise.
2318         * lib/glthread/yield.h: Likewise.
2319         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
2320         if HAVE_UNISTD_H is false.
2321         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
2322
2323 2011-10-03  Bruno Haible  <bruno@clisp.org>
2324
2325         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
2326         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
2327         Set to 100000.
2328
2329 2011-10-03  Bruno Haible  <bruno@clisp.org>
2330
2331         acl: Fix specification.
2332         * lib/file-has-acl.c (file_has_acl): Fix specification.
2333
2334 2011-10-03  Bruno Haible  <bruno@clisp.org>
2335
2336         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
2337         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
2338         (compute_curr_prefix, shared_library_fullname,
2339         find_shared_library_fullname, get_shared_library_fullname, relocate):
2340         Use it together with PIC && INSTALLDIR.
2341         Reported by <jojelino@gmail.com>
2342         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
2343
2344 2011-10-01  Jim Meyering  <meyering@redhat.com>
2345
2346         maint.mk: adjust a release-related rule not to require use of gzip
2347         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
2348         Instead, check each file in $(DIST_ARCHIVES).  This is better for
2349         projects that build only .tar.xz files.  Also fix an erroneous test.
2350
2351         test-linkat: don't leave behind a temporary file
2352         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
2353         Otherwise, coreutils' "make distcheck" would fail with this:
2354           Only in /c/cu/tests/torture/coreutils/test/\
2355             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
2356           make[2]: *** [my-distcheck] Error 1
2357
2358         float, math: add omitted file
2359         * lib/itold.c: Add file, required for yesterday's float change.
2360
2361 2011-10-01  Bruno Haible  <bruno@clisp.org>
2362
2363         isinf: Fix for OpenBSD/x86.
2364         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
2365         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
2366         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
2367
2368 2011-10-01  Bruno Haible  <bruno@clisp.org>
2369
2370         isfinite: Fix syntax error in configure test.
2371         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
2372
2373         isfinite: Fix typo.
2374         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
2375         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
2376
2377 2011-10-01  Bruno Haible  <bruno@clisp.org>
2378
2379         nonblocking tests: Fix test failure on Linux/IA-64.
2380         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
2381         Set to 270000.
2382
2383 2011-10-01  Bruno Haible  <bruno@clisp.org>
2384
2385         mkfifoat tests: Fix a test failure on mingw.
2386         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
2387         with error ENOSYS.
2388
2389 2011-09-30  Bruno Haible  <bruno@clisp.org>
2390
2391         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
2392         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
2393         'long double'. Set REPLACE_ITOLD.
2394         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
2395         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
2396         * lib/itold.c: New file.
2397         * modules/float (Files): Add lib/itold.c.
2398         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
2399         (Makefile.am): Substitute REPLACE_ITOLD.
2400         * modules/math (Depends-on): Add float.
2401         (Makefile.am): Substitute REPLACE_ITOLD.
2402         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
2403         * doc/posix-headers/math.texi: Likewise.
2404         * doc/posix-functions/logl.texi: Likewise.
2405
2406 2011-09-30  Bruno Haible  <bruno@clisp.org>
2407
2408         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
2409         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
2410         Set to 140000.
2411
2412 2011-09-30  Bruno Haible  <bruno@clisp.org>
2413
2414         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
2415         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
2416         invocation, say "right after AC_PROG_CC_STDC", not "right after
2417         AC_PROG_CC".
2418         Reported by Gary V. Vaughan <gary@gnu.org>.
2419
2420 2011-09-30  Bruno Haible  <bruno@clisp.org>
2421
2422         Centralize C99 requirement.
2423         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
2424         * modules/stdarg (configure.ac-early): Invoke it instead of
2425         AC_PROG_CC_STDC.
2426         Reported by Gary V. Vaughan and Paul Eggert.
2427
2428 2011-09-29  Bruno Haible  <bruno@clisp.org>
2429
2430         float: Fix LDBL_MAX value on Linux/PowerPC.
2431         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
2432         on Linux/PowerPC.
2433         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
2434         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
2435         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
2436         platform.
2437         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
2438
2439 2011-09-29  Bruno Haible  <bruno@clisp.org>
2440
2441         doc: Improve doc about gl_EARLY.
2442         * doc/gnulib-tool.texi (Initial import): Mention where to place an
2443         AC_PROG_CC_STDC invocation.
2444         Reported by Gary V. Vaughan <gary@gnu.org>.
2445
2446 2011-09-28  Bruno Haible  <bruno@clisp.org>
2447
2448         fgetc, fputc, fread, fwrite tests: Fix link error.
2449         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
2450         on non-MSVC platforms.
2451         * tests/test-fputc.c (main): Likewise.
2452         * tests/test-fread.c (main): Likewise.
2453         * tests/test-fwrite.c (main): Likewise.
2454         Reported by Jim Meyering.
2455
2456 2011-09-27  Bruno Haible  <bruno@clisp.org>
2457
2458         fputc, fwrite tests: Avoid test failure on MSVC.
2459         * tests/test-fgetc.c: Include msvc-inval.h.
2460         (main): Invoke gl_msvc_inval_ensure_handler.
2461         * tests/test-fputc.c: Include msvc-inval.h.
2462         (main): Invoke gl_msvc_inval_ensure_handler.
2463         * tests/test-fread.c: Include msvc-inval.h.
2464         (main): Invoke gl_msvc_inval_ensure_handler.
2465         * tests/test-fwrite.c: Include msvc-inval.h.
2466         (main): Invoke gl_msvc_inval_ensure_handler.
2467         * modules/fgetc-tests (Depends-on): Add msvc-inval.
2468         * modules/fputc-tests (Depends-on): Likewise.
2469         * modules/fread-tests (Depends-on): Likewise.
2470         * modules/fwrite-tests (Depends-on): Likewise.
2471
2472 2011-09-27  Bruno Haible  <bruno@clisp.org>
2473
2474         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
2475         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
2476         (raise): Remove older, duplicated declaration.
2477         (_gl_raise_SIGPIPE): New declaration.
2478         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
2479         (rpl_raise): Remove function.
2480         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
2481         a gnulib-defined SIGPIPE here.
2482         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
2483         'sigprocmask' has detected missing signal-blocking and the module
2484         'sigpipe' is enabled.
2485         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
2486
2487 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
2488
2489         base64-tests: avoid memory leak
2490         * tests/test-base64.c (main): Plug memory leak.
2491
2492         base32: new module
2493         * modules/base32: New module.
2494         * lib/base32.c: New file.
2495         * lib/base32.h: Likewise.
2496         * m4/base32.m4: Likewise.
2497         * modules/base32-tests: New test.
2498         * tests/test-base32.c: Likewise.
2499         * MODULES.html.sh (Misc): Mention it.
2500
2501 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
2502
2503         gnulib: use more-standard license notice wording
2504         * gnulib-tool (func_emit_copyright_notice): When emitting a
2505         license notice into a file, use the standard wording as suggested
2506         by the current information for GNU maintainers, except say "file"
2507         rather than "program".  The new wording gives a license version
2508         number, which addresses an issue raised by Glenn Morris in
2509         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
2510         * m4/onceonly.m4: Use that same wording here, too.
2511
2512         dup2: minor simplification
2513         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
2514         as lib/dup2.c no longer uses 'inline'.
2515
2516 2011-09-25  Bruno Haible  <bruno@clisp.org>
2517
2518         strings: Fix compilation error on MSVC.
2519         * lib/strings.in.h: Include <stddef.h> for size_t.
2520
2521 2011-09-25  Bruno Haible  <bruno@clisp.org>
2522
2523         fflush et al.: Document limitation on MSVC.
2524         * doc/posix-functions/fflush.texi: Document possible crash in handling
2525         mode other than DEFAULT_HANDLING.
2526         * doc/posix-functions/fgetc.texi: Likewise.
2527         * doc/posix-functions/fputc.texi: Likewise.
2528         * doc/posix-functions/fread.texi: Likewise.
2529         * doc/posix-functions/fwrite.texi: Likewise.
2530
2531 2011-09-25  Bruno Haible  <bruno@clisp.org>
2532
2533         msvc-inval: Allow three invalid parameter handling modes.
2534         * lib/msvc-inval.h: Don't include <stdlib.h> here.
2535         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
2536         macros.
2537         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
2538         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
2539         SANE_LIBRARY_HANDLING as a no-op.
2540         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
2541         <stdlib.h>.
2542         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
2543
2544 2011-09-25  Bruno Haible  <bruno@clisp.org>
2545
2546         msvc-inval: Make handler multithread-safe.
2547         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
2548         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
2549         declarations.
2550         (gl_msvc_inval_current): New declaration.
2551         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
2552         Operate on the structure returned by gl_msvc_inval_current().
2553         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
2554         Remove varaiables.
2555         (tls_index, tls_initialized): New variables.
2556         (not_per_thread): New variable.
2557         (gl_msvc_inval_current): New function.
2558         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
2559         returned by gl_msvc_inval_current().
2560
2561 2011-09-25  Bruno Haible  <bruno@clisp.org>
2562
2563         msvc-inval: Install handler globally.
2564         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
2565         !_MSC_VER.
2566         (gl_msvc_invalid_parameter_handler): Remove declaration.
2567         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
2568         declarations.
2569         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
2570         Install the handler globally, don't uninstall it.
2571         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
2572         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
2573         currently valid, call RaiseException instead.
2574         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
2575         for !_MSC_VER.
2576
2577 2011-09-25  Bruno Haible  <bruno@clisp.org>
2578
2579         strerror_r-posix: Fix for MSVC 9.
2580         * lib/strerror_r.c (local_snprintf): New function.
2581         (snprintf): Define to local_snprintf, not to _snprintf.
2582
2583 2011-09-25  Bruno Haible  <bruno@clisp.org>
2584
2585         ftruncate: Support for MSVC 9.
2586         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
2587         (chsize_nothrow): New function.
2588         (chsize): Redefine as a macro.
2589         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
2590         * modules/ftruncate (Depends-on): Add msvc-inval.
2591
2592 2011-09-25  Bruno Haible  <bruno@clisp.org>
2593
2594         New module 'fstat'.
2595         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
2596         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
2597         * lib/fchdir.c (rpl_fstat): Remove function.
2598         * m4/fstat.m4: New file.
2599         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
2600         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
2601         declared.
2602         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
2603         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
2604         * modules/fstat: New file.
2605         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
2606         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
2607         is set.
2608         * doc/posix-functions/fstat.texi: Mention the new module and the
2609         problem on MSVC.
2610         * NEWS: Mention the change.
2611         * modules/acl (Depends-on): Add fstat.
2612         * modules/chdir-safer (Depends-on): Likewise.
2613         * modules/chown (Depends-on): Likewise.
2614         * modules/copy-file (Depends-on): Likewise.
2615         * modules/fchdir (Depends-on): Likewise.
2616         * modules/fdopendir (Depends-on): Likewise.
2617         * modules/fopen (Depends-on): Likewise.
2618         * modules/fts (Depends-on): Likewise.
2619         * modules/getcwd (Depends-on): Likewise.
2620         * modules/isapipe (Depends-on): Likewise.
2621         * modules/linkat (Depends-on): Likewise.
2622         * modules/lseek (Depends-on): Likewise.
2623         * modules/mkdir-p (Depends-on): Likewise.
2624         * modules/open (Depends-on): Likewise.
2625         * modules/openat (Depends-on): Likewise.
2626         * modules/read-file (Depends-on): Likewise.
2627         * modules/renameat (Depends-on): Likewise.
2628         * modules/utimens (Depends-on): Likewise.
2629
2630 2011-09-25  Bruno Haible  <bruno@clisp.org>
2631
2632         linkat: Fix compilation on MSVC 9.
2633         * lib/linkat.c: Don't include <stdint.h>.
2634
2635 2011-09-25  Bruno Haible  <bruno@clisp.org>
2636
2637         fclose: Support for MSVC 9.
2638         * lib/fclose.c: Include msvc-inval.h.
2639         (fclose_nothrow): New function.
2640         (rpl_fclose): Use it.
2641         * modules/fclose (Depends-on): Add msvc-inval.
2642         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
2643
2644 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
2645
2646         dup2: minor simplifications
2647         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
2648         that it's a performance win.
2649         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
2650         ! defined __CYGWIN__)" to "ifdef F_GETFL".
2651
2652 2011-09-24  Jim Meyering  <meyering@redhat.com>
2653
2654         test-futimens: avoid a warning from gcc -Wshadow
2655         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
2656         to avoid a shadowing warning.
2657
2658 2011-09-24  Bruno Haible  <bruno@clisp.org>
2659
2660         fdopen: Support for MSVC 9.
2661         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
2662         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
2663         * lib/fdopen.c: Include msvc-inval.h.
2664         (fdopen_nothrow): New function.
2665         (rpl_fdopen): Use it.
2666         * modules/fdopen (Depends-on): Add msvc-inval.
2667         * modules/fclose-tests (Depends-on): Add fdopen.
2668         * modules/fflush-tests (Depends-on): Likewise.
2669         * modules/fgetc-tests (Depends-on): Likewise.
2670         * modules/fputc-tests (Depends-on): Likewise.
2671         * modules/fread-tests (Depends-on): Likewise.
2672         * modules/freopen-tests (Depends-on): Likewise.
2673         * modules/fseeko-tests (Depends-on): Likewise.
2674         * modules/ftello-tests (Depends-on): Likewise.
2675         * modules/fwrite-tests  (Depends-on): Likewise.
2676         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
2677
2678 2011-09-24  Bruno Haible  <bruno@clisp.org>
2679
2680         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
2681         * modules/fgetc-tests (Depends-on): Add unistd.
2682         * modules/fputc-tests (Depends-on): Likewise.
2683         * modules/fread-tests (Depends-on): Likewise.
2684         * modules/fwrite-tests (Depends-on): Likewise.
2685
2686 2011-09-24  Bruno Haible  <bruno@clisp.org>
2687
2688         dup: Simplify autoconf test.
2689         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
2690         on gl_MSVC_INVAL's result.
2691
2692 2011-09-24  Bruno Haible  <bruno@clisp.org>
2693
2694         Tests for function fwrite().
2695         * modules/fwrite-tests: New file.
2696         * tests/test-fwrite.c: New file.
2697         * modules/stdio-tests (Depends-on): Add fwrite-tests.
2698
2699         Tests for function fread().
2700         * modules/fread-tests: New file.
2701         * tests/test-fread.c: New file.
2702         * modules/stdio-tests (Depends-on): Add fread-tests.
2703
2704         Activate fputc tests.
2705         * modules/stdio-tests (Depends-on): Add fputc-tests.
2706
2707         Enhance fgetc, fputc tests.
2708         * tests/test-fgetc.c (main): Also test the stream's error indicator.
2709         * tests/test-fputc.c (main): Likewise.
2710
2711 2011-09-24  Bruno Haible  <bruno@clisp.org>
2712
2713         write: Support for MSVC 9.
2714         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
2715         is not 1.
2716         * lib/write.c (write_nothrow): New function.
2717         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
2718         not 1. Use write_nothrow.
2719         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
2720         invalid parameter handler.
2721         (gl_PREREQ_WRITE): New macro.
2722         * modules/write (Depends-on): Add msvc-inval.
2723         (configure.ac): Invoke gl_PREREQ_WRITE.
2724         * doc/posix-functions/write.texi: Mention the problem on MSVC.
2725
2726 2011-09-24  Bruno Haible  <bruno@clisp.org>
2727
2728         read: Fix last commit.
2729         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
2730
2731 2011-09-24  Bruno Haible  <bruno@clisp.org>
2732
2733         dup2: Fix last commit.
2734         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
2735         (rpl_dup2): Disable fcntl workaround on native Windows.
2736
2737         sigprocmask: Make code safer.
2738         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
2739         section that changes macro definitions for this compilation unit.
2740
2741 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
2742
2743         dup2: clarify by coalescing Windows-specific material
2744         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
2745         "msvc-nothrow.h"' to the Windows-specific section, so that the
2746         Emacs source need not contain these include files.
2747         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
2748         Windows-specific fixes into this function rather than just the
2749         nothrow fix, as this shortens and clarifies the code.  Always
2750         define as a function, as that's a bit cleaner than having it be
2751         sometimes a function and sometimes a macro.
2752         (rpl_dup2): Move the Windows-specific stuff out of here and into
2753         ms_windows_dup2.  Don't protect the Haiku-related fix with
2754         "#if !defined __linux__", as the same code also works around
2755         a Linux kernel bug, and it doesn't add any system calls on any
2756         platform.  Add comment about FreeBSD 6.1.
2757
2758         sigprocmask: move #include directive
2759         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
2760         Windows-specific section, so that the Emacs source need not
2761         contain msvc-inval.h.
2762
2763 2011-09-23  Bruno Haible  <bruno@clisp.org>
2764
2765         read: Support for MSVC 9.
2766         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
2767         is not 1.
2768         * lib/read.c (read_nothrow): New function.
2769         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
2770         read_nothrow.
2771         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
2772         invalid parameter handler.
2773         (gl_PREREQ_READ): New macro.
2774         * modules/read (Depends-on): Add msvc-inval.
2775         (configure.ac): Invoke gl_PREREQ_READ.
2776         * doc/posix-functions/read.texi: Mention the problem on MSVC.
2777
2778 2011-09-23  Bruno Haible  <bruno@clisp.org>
2779
2780         close: Support for MSVC 9.
2781         * lib/close.c: Include <errno.h>, msvc-inval.h.
2782         (close_nothrow): New function.
2783         (rpl_close): Use it.
2784         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
2785         invalid parameter handler.
2786         * modules/close (Depends-on): Add msvc-inval.
2787         * modules/dup2-tests (Depends-on): Add close.
2788         * modules/dup3-tests (Depends-on): Likewise.
2789         * modules/fcntl-tests (Depends-on): Likewise.
2790         * modules/spawn-pipe-tests (Depends-on): Likewise.
2791         * modules/unistd-safer-tests (Depends-on): Likewise.
2792         * doc/posix-functions/close.texi: Mention the problem on MSVC.
2793
2794 2011-09-23  Bruno Haible  <bruno@clisp.org>
2795
2796         New module 'dup'.
2797         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
2798         Allow replacement.
2799         * lib/dup.c: New file.
2800         * lib/fchdir.c (rpl_dup): Remove function.
2801         * m4/dup.m4: New file.
2802         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
2803         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
2804         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
2805         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
2806         * modules/dup: New file.
2807         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
2808         'dup' module is in use.
2809         * modules/fdopendir (Depends-on): Add dup.
2810         * modules/fdutimensat-tests (Depends-on): Likewise.
2811         * modules/fts (Depends-on): Likewise.
2812         * modules/futimens-tests (Depends-on): Likewise.
2813         * modules/posix_spawnp-tests (Depends-on): Likewise.
2814         * modules/unistd-safer-tests (Depends-on): Likewise.
2815         * modules/utimens-tests (Depends-on): Likewise.
2816         * doc/posix-functions/dup.texi: Mention the new module and the problem
2817         on MSVC.
2818
2819 2011-09-23  Bruno Haible  <bruno@clisp.org>
2820
2821         getdtablesize: Support for MSVC 9.
2822         * lib/getdtablesize.c: Include msvc-inval.h.
2823         (_setmaxstdio_nothrow): New function.
2824         (_setmaxstdio): Redefine it.
2825         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
2826         * modules/getdtablesize (Depends-on): Add msvc-inval.
2827         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
2828
2829 2011-09-23  Bruno Haible  <bruno@clisp.org>
2830
2831         signal-h: Rename from signal.
2832         * modules/signal-h: Renamed from modules/signal.
2833         * modules/pthread_sigmask (Depends-on): Update.
2834         * modules/raise (Depends-on): Likewise.
2835         * modules/sigaction (Depends-on): Likewise.
2836         * modules/sigpipe (Depends-on): Likewise.
2837         * modules/sigprocmask (Depends-on): Likewise.
2838         * modules/sys_select (Depends-on): Likewise.
2839         * modules/signal-h-tests: Renamed from modules/signal-tests.
2840         (Files, Depends-on, Makefile.am): Update.
2841         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
2842         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
2843         (Files, Makefile.am): Update.
2844         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
2845         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
2846         * modules/signal: New placeholder file.
2847         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
2848         * doc/posix-headers/signal.texi: Update.
2849         * NEWS: Mention the change.
2850
2851 2011-09-23  Bruno Haible  <bruno@clisp.org>
2852
2853         sigprocmask: Avoid crashes through signal() on MSVC 9.
2854         * lib/sigprocmask.c: Include msvc-inval.h.
2855         (signal_nothrow): New function.
2856         (signal): Redefine it.
2857         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
2858         * modules/sigprocmask (Depends-on): Add msvc-inval.
2859         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
2860
2861 2011-09-23  Bruno Haible  <bruno@clisp.org>
2862
2863         Tests for module 'raise'.
2864         * modules/raise-tests: New file.
2865         * tests/test-raise.c: New file.
2866
2867         raise: Support for MSVC.
2868         * lib/signal.in.h (raise): New declaration.
2869         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
2870         for native Windows platforms.
2871         * m4/raise.m4: New file.
2872         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
2873         HAVE_RAISE, REPLACE_RAISE.
2874         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
2875         REPLACE_RAISE.
2876         * modules/raise (Status, Notice): Remove fields.
2877         (Files): Add m4/raise.m4.
2878         (Depends-on): Add signal, msvc-inval.
2879         (configure.ac): Use the common idioms.
2880         (Maintainer): Add me.
2881         * tests/test-signal-c++.cc: Check the signature of raise.
2882         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
2883
2884 2011-09-23  Bruno Haible  <bruno@clisp.org>
2885
2886         pipe2: Fix compilation on pre-C99 compilers.
2887         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
2888
2889 2011-09-23  Bruno Haible  <bruno@clisp.org>
2890
2891         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
2892         * lib/msvc-nothrow.h: New file.
2893         * lib/msvc-nothrow.c: New file.
2894         * m4/msvc-nothrow.m4: New file.
2895         * modules/msvc-nothrow: New file.
2896         * lib/dup2.c: Include msvc-nothrow.h.
2897         (rpl_dup2): No need to protect _get_osfhandle call here.
2898         * lib/accept4.c: Include msvc-nothrow.h.
2899         * lib/error.c: Likewise.
2900         * lib/fcntl.c: Likewise.
2901         * lib/lseek.c: Likewise.
2902         * lib/nonblocking.c: Likewise.
2903         * lib/poll.c: Likewise.
2904         * lib/read.c: Likewise.
2905         * lib/select.c: Likewise.
2906         * lib/sockets.h: Likewise.
2907         * lib/sockets.c: Likewise.
2908         * lib/stdio-read.c: Likewise.
2909         * lib/stdio-write.c: Likewise.
2910         * lib/write.c: Likewise.
2911         * lib/w32sock.h: Likewise.
2912         * lib/w32spawn.h: Likewise.
2913         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
2914         * lib/fsync.c: Likewise.
2915         * lib/isapipe.c: Likewise.
2916         * modules/dup2 (Depends-on): Add msvc-nothrow.
2917         * modules/accept4 (Depends-on): Likewise.
2918         * modules/error (Depends-on): Likewise.
2919         * modules/fcntl (Depends-on): Likewise.
2920         * modules/lseek (Depends-on): Likewise.
2921         * modules/nonblocking (Depends-on): Likewise.
2922         * modules/poll (Depends-on): Likewise.
2923         * modules/read (Depends-on): Likewise.
2924         * modules/select (Depends-on): Likewise.
2925         * modules/sockets (Depends-on): Likewise.
2926         * modules/sigpipe (Depends-on): Likewise.
2927         * modules/write (Depends-on): Likewise.
2928         * modules/accept (Depends-on): Likewise.
2929         * modules/bind (Depends-on): Likewise.
2930         * modules/connect (Depends-on): Likewise.
2931         * modules/gethostname (Depends-on): Likewise.
2932         * modules/getpeername (Depends-on): Likewise.
2933         * modules/getsockname (Depends-on): Likewise.
2934         * modules/getsockopt (Depends-on): Likewise.
2935         * modules/ioctl (Depends-on): Likewise.
2936         * modules/listen (Depends-on): Likewise.
2937         * modules/recv (Depends-on): Likewise.
2938         * modules/recvfrom (Depends-on): Likewise.
2939         * modules/send (Depends-on): Likewise.
2940         * modules/sendto (Depends-on): Likewise.
2941         * modules/setsockopt (Depends-on): Likewise.
2942         * modules/shutdown (Depends-on): Likewise.
2943         * modules/socket (Depends-on): Likewise.
2944         * modules/execute (Depends-on): Likewise.
2945         * modules/spawn-pipe (Depends-on): Likewise.
2946         * modules/flock (Depends-on): Likewise.
2947         * modules/fsync (Depends-on): Likewise.
2948         * modules/isapipe (Depends-on): Likewise.
2949         * tests/test-cloexec.c: Include msvc-nothrow.h.
2950         * tests/test-dup-safer.c: Likewise.
2951         * tests/test-dup2.c: Likewise.
2952         * tests/test-dup3.c: Likewise.
2953         * tests/test-fcntl.c: Likewise.
2954         * tests/test-pipe.c: Likewise.
2955         * tests/test-pipe2.c: Likewise.
2956         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
2957         * modules/unistd-safer-tests (Depends-on): Likewise.
2958         * modules/dup2-tests (Depends-on): Likewise.
2959         * modules/dup3-tests (Depends-on): Likewise.
2960         * modules/fcntl-tests (Depends-on): Likewise.
2961         * modules/pipe-posix-tests (Depends-on): Likewise.
2962         * modules/pipe2-tests (Depends-on): Likewise.
2963
2964 2011-09-23  Bruno Haible  <bruno@clisp.org>
2965
2966         dup2: Make code more maintainable.
2967         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
2968         (rpl_dup2): Use it.
2969         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
2970         * modules/dup2 (configure.ac): Invoke it.
2971         Reported by Paul Eggert.
2972
2973 2011-09-23  Bruno Haible  <bruno@clisp.org>
2974
2975         msvc-inval: Fix compilation error.
2976         * lib/msvc-inval.h: Include <excpt.h>.
2977
2978 2011-09-23  Bruno Haible  <bruno@clisp.org>
2979
2980         mkdir: Tweak for MSVC 9.
2981         * lib/sys_stat.in.h: Update comments.
2982         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
2983
2984         Tests for module 'chdir'.
2985         * modules/chdir-tests: New file.
2986         * tests/test-chdir.c: New file.
2987
2988         New module 'chdir'.
2989         * modules/chdir: New file.
2990         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
2991         (chdir): New declaration.
2992         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
2993         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
2994         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
2995         * tests/test-unistd-c++.cc: Check signature of chdir.
2996         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
2997         * modules/chdir-long (Depends-on): Add chdir.
2998         * modules/fchdir (Depends-on): Likewise.
2999         * modules/rename (Depends-on): Likewise.
3000         * modules/savewd (Depends-on): Likewise.
3001
3002         rmdir: Support for mingw, MSVC 9.
3003         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
3004         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
3005
3006         getcwd: Tweak for MSVC 9.
3007         * lib/unistd.in.h: Update comments.
3008         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
3009
3010 2011-09-22  Bruno Haible  <bruno@clisp.org>
3011
3012         strerror_r-posix: Avoid a link error on MSVC.
3013         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
3014         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
3015
3016 2011-09-22  Bruno Haible  <bruno@clisp.org>
3017
3018         select: Avoid link errors on MSVC.
3019         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
3020         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
3021         * modules/pselect (Link): Likewise.
3022         * NEWS: Mention the change.
3023         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
3024         test-select-stdin against $(LIB_SELECT).
3025         * modules/pselect-tests (Makefile.am): Link test-pselect against
3026         $(LIB_SELECT).
3027
3028 2011-09-22  Bruno Haible  <bruno@clisp.org>
3029
3030         select: Avoid compilation error on MSVC.
3031         * lib/select.c: Don't include <stdbool.h>.
3032
3033 2011-09-21  Bruno Haible  <bruno@clisp.org>
3034
3035         Consolidate all uses of PATH_MAX in *.m4 files.
3036         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
3037         macros.
3038         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
3039         and gl_PATHMAX_SNIPPET.
3040         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
3041         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
3042         * modules/chdir-long (Files): Add m4/pathmax.m4.
3043         * modules/getcwd (Files): Likewise.
3044
3045 2011-09-21  Bruno Haible  <bruno@clisp.org>
3046
3047         ftruncate: Un-deprecate, concentrate on Win32 support.
3048         * modules/ftruncate (Status, Notice): Remove sections.
3049         (Depends-on): Add largefile.
3050         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
3051         non-mingw platforms.
3052         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
3053         include <io.h>.
3054         * modules/perror-tests (Depends-on): Add ftruncate.
3055         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
3056         'ftruncate' module.
3057
3058 2011-09-21  Bruno Haible  <bruno@clisp.org>
3059
3060         Add dependencies to new dirent related modules.
3061         * modules/opendir (Depends-on): Add closedir.
3062         * modules/getcwd (Depends-on): Add opendir, closedir.
3063         * modules/dirent-safer-tests (Depends-on): Likewise.
3064         * modules/fdopendir-tests (Depends-on): Likewise.
3065         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
3066         * modules/renameat-tests (Depends-on): Likewise.
3067
3068 2011-09-21  Bruno Haible  <bruno@clisp.org>
3069
3070         opendir: Avoid compilation error on mingw.
3071         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
3072         * modules/opendir (Depends-on): Add unistd.
3073
3074 2011-09-21  Bruno Haible  <bruno@clisp.org>
3075
3076         ftruncate tests: Avoid a test failure on mingw.
3077         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
3078
3079 2011-09-21  Bruno Haible  <bruno@clisp.org>
3080
3081         select tests: Avoid test failures on OSF/1 5.1 and mingw.
3082         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
3083         native Windows.
3084
3085 2011-09-21  Bruno Haible  <bruno@clisp.org>
3086
3087         New module 'fdopen'.
3088         * lib/stdio.in.h (fdopen): New declaration.
3089         * lib/fdopen.c: New file.
3090         * m4/fdopen.m4: New file.
3091         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
3092         REPLACE_FDOPEN.
3093         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
3094         REPLACE_FDOPEN.
3095         * modules/fdopen: New file.
3096         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
3097         * tests/test-stdio-c++.cc: Check signature of fdopen.
3098         * doc/posix-functions/fdopen.texi: Mention the new module.
3099
3100 2011-09-21  Bruno Haible  <bruno@clisp.org>
3101
3102         unlockpt tests: Avoid test failure on NetBSD 5.1.
3103         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
3104         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
3105
3106 2011-09-21  Bruno Haible  <bruno@clisp.org>
3107
3108         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
3109         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
3110         * tests/test-getlogin_r.c (main): Likewise.
3111
3112 2011-09-20  Bruno Haible  <bruno@clisp.org>
3113
3114         time tests: Don't require pid_t.
3115         * doc/posix-headers/time.texi: Revert last change.
3116         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
3117         * tests/test-time.c: Comment out the check for pid_t.
3118
3119 2011-09-20  Bruno Haible  <bruno@clisp.org>
3120
3121         fsync tests: Avoid a test failure on mingw.
3122         * tests/test-fsync.c (main): Allow a failure with EIO.
3123
3124 2011-09-20  Bruno Haible  <bruno@clisp.org>
3125
3126         euidaccess: Update comments.
3127         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
3128
3129 2011-09-20  Bruno Haible  <bruno@clisp.org>
3130
3131         Ensure EBADF returns for socket functions on mingw.
3132         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
3133         descriptor is invalid.
3134         * lib/bind.c (rpl_bind): Likewise.
3135         * lib/connect.c (rpl_connect): Likewise.
3136         * lib/getpeername.c (rpl_getpeername): Likewise.
3137         * lib/getsockname.c (rpl_getsockname): Likewise.
3138         * lib/getsockopt.c (rpl_getsockopt): Likewise.
3139         * lib/listen.c (rpl_listen): Likewise.
3140         * lib/recv.c (rpl_recv): Likewise.
3141         * lib/recvfrom.c (rpl_recvfrom): Likewise.
3142         * lib/send.c (rpl_send): Likewise.
3143         * lib/sendto.c (rpl_sendto): Likewise.
3144         * lib/setsockopt.c (rpl_setsockopt): Likewise.
3145         * lib/shutdown.c (rpl_shutdown): Likewise.
3146
3147 2011-09-20  Bruno Haible  <bruno@clisp.org>
3148
3149         select tests: EBADF tests.
3150         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
3151         test_bad_fd): New functions.
3152         (test_function): Invoke also test_bad_fd.
3153
3154 2011-09-20  Bruno Haible  <bruno@clisp.org>
3155
3156         Tests for module 'posix_spawn_file_actions_addopen.
3157         * modules/posix_spawn_file_actions_addopen-tests: New file.
3158         * tests/test-posix_spawn_file_actions_addopen.c: New file.
3159
3160         Tests for module 'posix_spawn_file_actions_adddup2'.
3161         * modules/posix_spawn_file_actions_adddup2-tests: New file.
3162         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
3163
3164         Tests for module 'posix_spawn_file_actions_addclose'.
3165         * modules/posix_spawn_file_actions_addclose-tests: New file.
3166         * tests/test-posix_spawn_file_actions_addclose.c: New file.
3167
3168 2011-09-20  Bruno Haible  <bruno@clisp.org>
3169
3170         Tests for module 'unlockpt'.
3171         * modules/unlockpt-tests: New file.
3172         * tests/test-unlockpt.c: New file.
3173         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
3174
3175         Tests for module 'grantpt'.
3176         * modules/grantpt-tests: New file.
3177         * tests/test-grantpt.c: New file.
3178         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
3179
3180 2011-09-20  Bruno Haible  <bruno@clisp.org>
3181
3182         freopen tests: EBADF tests.
3183         * tests/test-freopen.c: Include errno.h, unistd.h.
3184         (main): Add tests for EBADF, commented out for the moment.
3185
3186         fclose tests: EBADF tests.
3187         * tests/test-fclose.c (main): Add tests for EBADF.
3188
3189         fflush tests: EBADF tests.
3190         * tests/test-fflush.c: Include errno.h, macros.h.
3191         (main): Add tests for EBADF.
3192
3193         ftello tests: EBADF tests.
3194         * tests/test-ftello4.sh: New file.
3195         * tests/test-ftello4.c: New file.
3196         * modules/ftello-tests (Files): Add them.
3197         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
3198
3199         fseeko tests: EBADF tests.
3200         * tests/test-fseeko4.sh: New file.
3201         * tests/test-fseeko4.c: New file.
3202         * modules/fseeko-tests (Files): Add them.
3203         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
3204
3205         Tests for function fputc().
3206         * modules/fputc-tests: New file.
3207         * tests/test-fputc.c: New file.
3208         * modules/stdio-tests (Depends-on): Add fputc-tests.
3209
3210         Tests for function fgetc().
3211         * modules/fgetc-tests: New file.
3212         * tests/test-fgetc.c: New file.
3213         * modules/stdio-tests (Depends-on): Add fgetc-tests.
3214
3215         Tests for function fdopen().
3216         * modules/fdopen-tests: New file.
3217         * tests/test-fdopen.c: New file.
3218         * modules/stdio-tests (Depends-on): Add fdopen-tests.
3219
3220         Tests for module 'vdprintf'.
3221         * modules/vdprintf-tests: New file.
3222         * tests/test-vdprintf.c: New file.
3223
3224         Tests for module 'dprintf'.
3225         * modules/dprintf-tests: New file.
3226         * tests/test-dprintf.c: New file.
3227
3228 2011-09-20  Bruno Haible  <bruno@clisp.org>
3229
3230         Tests for module 'ioctl'.
3231         * modules/ioctl-tests: New file.
3232         * tests/test-ioctl.c: New file.
3233
3234 2011-09-20  Bruno Haible  <bruno@clisp.org>
3235
3236         fcntl tests: EBADF tests.
3237         * tests/test-fcntl.c (main): Add more tests for EBADF.
3238
3239 2011-09-20  Bruno Haible  <bruno@clisp.org>
3240
3241         utimensat tests: EBADF tests.
3242         * tests/test-utimensat.c (main): Add tests for EBADF.
3243
3244         renameat tests: EBADF tests.
3245         * tests/test-renameat.c (main): Add tests for EBADF.
3246
3247         mkfifoat tests: EBADF tests.
3248         * tests/test-mkfifoat.c (main): Add tests for EBADF.
3249
3250         readlinkat tests: EBADF tests.
3251         * tests/test-readlinkat.c (main): Add tests for EBADF.
3252
3253         symlinkat tests: EBADF tests.
3254         * tests/test-symlinkat.c (main): Add tests for EBADF.
3255
3256         linkat tests: EBADF tests.
3257         * tests/test-linkat.c (main): Add tests for EBADF.
3258
3259         Tests for module 'faccessat'.
3260         * modules/faccessat-tests: New file.
3261         * tests/test-faccessat.c: New file.
3262
3263         fdopendir tests: EBADF tests.
3264         * tests/test-fdopendir.c (main): Add more tests for EBADF.
3265
3266         openat tests: EBADF tests.
3267         * tests/test-fchownat.c (main): Add tests for EBADF.
3268         * tests/test-fstatat.c (main): Likewise.
3269         * tests/test-mkdirat.c (main): Likewise.
3270         * tests/test-openat.c (main): Likewise.
3271         * tests/test-unlinkat.c (main): Likewise.
3272         * tests/test-fchmodat.c: New file.
3273         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
3274         (Makefile.am): Also run 'test-fchmodat'.
3275
3276 2011-09-20  Bruno Haible  <bruno@clisp.org>
3277
3278         utimens, futimens, fdutimensat tests: EBADF tests.
3279         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
3280
3281         Tests for function fstat().
3282         * modules/fstat-tests: New file.
3283         * tests/test-fstat.c: New file.
3284         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
3285
3286 2011-09-20  Bruno Haible  <bruno@clisp.org>
3287
3288         test-ttyname_r tests: EBADF tests.
3289         * tests/test-ttyname_r.c (main): Add tests for EBADF.
3290
3291         Tests for module 'isatty'.
3292         * modules/isatty-tests: New file.
3293         * tests/test-isatty.c: New file.
3294
3295         Tests for module 'write'.
3296         * modules/write-tests: New file.
3297         * tests/test-write.c: New file.
3298
3299         Tests for module 'read'.
3300         * modules/read-tests: New file.
3301         * tests/test-read.c: New file.
3302
3303         pwrite tests: EBADF tests.
3304         * tests/test-pwrite.c (main): Add tests for EBADF.
3305
3306         pread tests: EBADF tests.
3307         * tests/test-pread.c (main): Add tests for EBADF.
3308
3309         lseek tests: EBADF tests.
3310         * tests/test-lseek.c (main): Add more tests for EBADF.
3311
3312         Tests for module 'ftruncate'.
3313         * modules/ftruncate-tests: New file.
3314         * tests/test-ftruncate.sh: New file.
3315         * tests/test-ftruncate.c: New file.
3316
3317         fsync tests: EBADF tests.
3318         * tests/test-fsync.c (main): Add more tests for EBADF.
3319
3320         fdatasync tests: EBADF tests.
3321         * tests/test-fdatasync.c (main): Add more tests for EBADF.
3322
3323         Tests for module 'fchown'.
3324         * modules/fchown-tests: New file.
3325         * tests/test-fchown.c: New file.
3326
3327         Tests for module 'fchmod'.
3328         * modules/fchmod-tests: New file.
3329         * tests/test-fchmod.c: New file.
3330
3331         fchdir tests: EBADF tests.
3332         * tests/test-fchdir.c (main): Add more tests for EBADF.
3333
3334         dup2 tests: EBADF tests.
3335         * tests/test-dup2.c (main): Add more tests for EBADF.
3336
3337         Tests for module 'dup'.
3338         * modules/dup-tests: New file.
3339         * tests/test-dup.c: New file.
3340
3341         Tests for module 'close'.
3342         * modules/close-tests: New file.
3343         * tests/test-close.c: New file.
3344
3345 2011-09-20  Bruno Haible  <bruno@clisp.org>
3346
3347         Tests for module 'shutdown'.
3348         * modules/shutdown-tests: New file.
3349         * tests/test-shutdown.c: New file.
3350
3351         Tests for module 'setsockopt'.
3352         * modules/setsockopt-tests: New file.
3353         * tests/test-setsockopt.c: New file.
3354
3355         Tests for module 'sendto'.
3356         * modules/sendto-tests: New file.
3357         * tests/test-sendto.c: New file.
3358
3359         Tests for module 'send'.
3360         * modules/send-tests: New file.
3361         * tests/test-send.c: New file.
3362
3363         Tests for module 'recvfrom'.
3364         * modules/recvfrom-tests: New file.
3365         * tests/test-recvfrom.c: New file.
3366
3367         Tests for module 'recv'.
3368         * modules/recv-tests: New file.
3369         * tests/test-recv.c: New file.
3370
3371         Tests for module 'listen'.
3372         * modules/listen-tests: New file.
3373         * tests/test-listen.c: New file.
3374
3375         Tests for module 'getsockopt'.
3376         * modules/getsockopt-tests: New file.
3377         * tests/test-getsockopt.c: New file.
3378
3379         Tests for module 'getsockname'.
3380         * modules/getsockname-tests: New file.
3381         * tests/test-getsockname.c: New file.
3382
3383         Tests for module 'getpeername'.
3384         * modules/getpeername-tests: New file.
3385         * tests/test-getpeername.c: New file.
3386
3387         Tests for module 'connect'.
3388         * modules/connect-tests: New file.
3389         * tests/test-connect.c: New file.
3390
3391         Tests for module 'bind'.
3392         * modules/bind-tests: New file.
3393         * tests/test-bind.c: New file.
3394
3395         accept4 tests: Fix for native Windows.
3396         * tests/test-accept4.c: Include sockets.h.
3397         (main): Invoke gl_sockets_startup.
3398         * modules/accept4-tests (Depends-on): Add sockets.
3399
3400         accept tests: Fix for native Windows.
3401         * tests/test-accept.c: Include sockets.h.
3402         (main): Invoke gl_sockets_startup.
3403         * modules/accept-tests (Depends-on): Add sockets.
3404
3405 2011-09-19  Bruno Haible  <bruno@clisp.org>
3406
3407         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
3408         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
3409         do...while(0).
3410         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
3411         Suggested by Paul Eggert.
3412
3413 2011-09-19  Bruno Haible  <bruno@clisp.org>
3414
3415         sched: Ensure pid_t is defined.
3416         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
3417         not define pid_t.
3418         * lib/sched.in.h: Include <sys/types.h>.
3419         * doc/posix-headers/sched.texi: Mention the pid_t problem.
3420         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3421
3422 2011-09-19  Bruno Haible  <bruno@clisp.org>
3423
3424         msvc-inval: Ensure the entire expansion is a single statement.
3425         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
3426         of braces.
3427
3428 2011-09-19  Jim Meyering  <meyering@redhat.com>
3429
3430         tests: use printf, not echo in init.sh's warn_ function
3431         * tests/init.sh (warn_): Use printf, not echo.  The latter would
3432         misbehave when given strings containing a backslash or starting
3433         with e.g., -n.  James Youngman suggested setting IFS.
3434
3435 2011-09-19  Eric Blake  <eblake@redhat.com>
3436
3437         futimens: enhance test
3438         * tests/test-futimens.h (test_futimens): Also check for EBADF on
3439         closed non-negative fd.
3440
3441         date: accept 'hence' as opposite of 'ago'
3442         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
3443         * tests/test-parse-datetime.c (main): Enhance test.
3444         Suggested by Jesse Wilson.
3445
3446 2011-09-19  Jim Meyering  <meyering@redhat.com>
3447
3448         getcwd: don't fail in a deep directory on a system without openat
3449         Before this change, getcwd would fail when called from a directory
3450         of depth PATH_MAX / 3 or greater.  That was due to the fact that
3451         the non-openat implementation used "..", "../..", "../../..", etc.
3452         to access ancestor directories.  With too many, that string would
3453         be longer than PATH_MAX.
3454         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
3455         using gnulib's openat replacement.
3456         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
3457         we're using the replacement function.
3458
3459 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
3460
3461         maint.mk: avoid warnings from perl about missing files
3462         * top/maint.mk (def_sym_regex): Ignore files listed in
3463         $(gl_other_headers_) that do not exist, say because a project
3464         does not use a corresponding module.
3465
3466 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
3467
3468         stat: use pathmax.h only if needed
3469         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
3470         This is better for Emacs, which does not have a mingw port and
3471         therefore can avoid the pathmax module.
3472
3473         utimens: remove dependency on dup2
3474         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
3475         to work around the Linux kernel bug.
3476         * modules/utimens (Depends-on): Remove dup2.
3477
3478 2011-09-18  Bruno Haible  <bruno@clisp.org>
3479
3480         inet_ntop, inet_pton: Look for it also in libresolv.
3481         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
3482         libnsl, search for it in libresolv.
3483         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
3484         Needed on Solaris 7.
3485
3486 2011-09-18  Bruno Haible  <bruno@clisp.org>
3487
3488         accept, accept4 tests: Avoid link error on Solaris.
3489         * modules/accept-tests (Makefile.am): Link test-accept against
3490         $(LIBSOCKET).
3491         * modules/accept4-tests (Makefile.am): Link test-accept4 against
3492         $(LIBSOCKET).
3493
3494         accept4: Avoid link error on Solaris.
3495         * modules/accept4 (Link): New section.
3496
3497         socket functions: Avoid link errors on Solaris.
3498         * modules/accept (Depends-on): Add socketlib.
3499         (Link): New section.
3500         * modules/bind (Depends-on): Add socketlib.
3501         (Link): New section.
3502         * modules/connect (Depends-on): Add socketlib.
3503         (Link): New section.
3504         * modules/getpeername (Depends-on): Add socketlib.
3505         (Link): New section.
3506         * modules/getsockname (Depends-on): Add socketlib.
3507         (Link): New section.
3508         * modules/getsockopt (Depends-on): Add socketlib.
3509         (Link): New section.
3510         * modules/listen (Depends-on): Add socketlib.
3511         (Link): New section.
3512         * modules/recv (Depends-on): Add socketlib.
3513         (Link): New section.
3514         * modules/recvfrom (Depends-on): Add socketlib.
3515         (Link): New section.
3516         * modules/send (Depends-on): Add socketlib.
3517         (Link): New section.
3518         * modules/sendto (Depends-on): Add socketlib.
3519         (Link): New section.
3520         * modules/setsockopt (Depends-on): Add socketlib.
3521         (Link): New section.
3522         * modules/shutdown (Depends-on): Add socketlib.
3523         (Link): New section.
3524         * modules/socket (Depends-on): Add socketlib.
3525         (Link): New section.
3526
3527 2011-09-18  Bruno Haible  <bruno@clisp.org>
3528
3529         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
3530         * tests/test-ptsname.c (main): Terminate the test if it takes longer
3531         than 5 seconds.
3532         * modules/ptsname-tests (configure.ac): Test for alarm.
3533
3534 2011-09-18  Bruno Haible  <bruno@clisp.org>
3535
3536         posix_spawn_file_actions_add*: Fix module dependencies.
3537         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
3538         posix_spawn_file_actions_init.
3539         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
3540         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
3541
3542 2011-09-18  Bruno Haible  <bruno@clisp.org>
3543
3544         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
3545         * tests/test-rename.h (test_rename): Allow error code EEXIST.
3546         * tests/test-renameat.c (main): Likewise.
3547
3548 2011-09-18  Bruno Haible  <bruno@clisp.org>
3549
3550         Tests for module 'accept4'.
3551         * modules/accept4-tests: New file.
3552         * tests/test-accept4.c: New file.
3553
3554 2011-09-18  Bruno Haible  <bruno@clisp.org>
3555
3556         Tests for module 'accept'.
3557         * modules/accept-tests: New file.
3558         * tests/test-accept.c: New file.
3559
3560 2011-09-18  Bruno Haible  <bruno@clisp.org>
3561
3562         dup2: Support for MSVC.
3563         * lib/dup2.c: Include msvc-inval.h.
3564         (rpl_dup2): Handle invalid parameter notifications during dup2 and
3565         _get_osfhandle calls.
3566         * modules/dup2 (Depends-on): Add msvc-inval.
3567         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
3568
3569         New module 'msvc-inval'.
3570         * lib/msvc-inval.h: New file.
3571         * lib/msvc-inval.c: New file.
3572         * m4/msvc-inval.m4: New file.
3573         * modules/msvc-inval: New file.
3574
3575 2011-09-17  Bruno Haible  <bruno@clisp.org>
3576
3577         Tests for module 'pclose'.
3578         * modules/pclose-tests: New file.
3579
3580         New module 'pclose'.
3581         * lib/stdio.in.h (pclose): New declaration.
3582         * lib/pclose.c: New file.
3583         * m4/pclose.m4: New file.
3584         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
3585         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
3586         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
3587         * modules/pclose: New file.
3588         * modules/popen-tests (Depends-on): Add pclose.
3589         * modules/popen-safer-tests (Depends-on): Likewise.
3590         * doc/posix-functions/pclose.texi: Mention the new module.
3591
3592 2011-09-17  Bruno Haible  <bruno@clisp.org>
3593
3594         popen: Support for MSVC.
3595         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
3596         * lib/popen.c (popen): Provide alternate definition for native Windows.
3597         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
3598         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
3599         * modules/popen (Depends-on, configure.ac): Update condition.
3600         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
3601         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
3602         fixed.
3603
3604 2011-09-17  Bruno Haible  <bruno@clisp.org>
3605
3606         isnanl, isnand, isnanf: Work around MSVC bug.
3607         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
3608
3609 2011-09-17  Bruno Haible  <bruno@clisp.org>
3610
3611         sys_socket tests: Fix recent mistake.
3612         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
3613
3614 2011-09-17  Bruno Haible  <bruno@clisp.org>
3615
3616         putenv: Support for MSVC.
3617         * modules/putenv (Depends-on): Add environ.
3618         * lib/putenv.c (environ): Disable declaration.
3619         * lib/unistd.in.h: Update comment.
3620
3621 2011-09-17  Bruno Haible  <bruno@clisp.org>
3622
3623         math: Avoid macro redefinition warnings on MSVC.
3624         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
3625         Undefine before redefining.
3626
3627 2011-09-17  Bruno Haible  <bruno@clisp.org>
3628
3629         doc: Mention functions which are declared as macros.
3630         * doc/posix-functions/*[fl].texi: Mention that some functions are
3631         defined as macros with arguments only.
3632
3633 2011-09-17  Bruno Haible  <bruno@clisp.org>
3634
3635         Add dependencies to new dirent related modules.
3636         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
3637         * modules/fts (Depends-on): Likewise.
3638         * modules/glob (Depends-on): Likewise.
3639         * modules/savedir (Depends-on): Likewise.
3640         * modules/scandir (Depends-on): Likewise.
3641         * modules/dirent-safer (Depends-on): Add opendir, closedir.
3642         * modules/fdopendir (Depends-on): Add opendir.
3643
3644 2011-09-17  Bruno Haible  <bruno@clisp.org>
3645
3646         inet_pton: Support for MSVC on Windows Vista or newer.
3647         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
3648         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
3649         HAVE_DECL_INET_PTON is defined.
3650         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
3651         On platforms with <winsock2.h>, test whether inet_pton is declared in
3652         <ws2tcpip.h>. If so, arrange to replace it.
3653         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
3654         REPLACE_INET_PTON.
3655         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
3656         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
3657         (Depends-on, configure.ac): Update condition.
3658         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
3659
3660 2011-09-17  Bruno Haible  <bruno@clisp.org>
3661
3662         inet_ntop: Support for MSVC on Windows Vista or newer.
3663         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
3664         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
3665         HAVE_DECL_INET_NTOP is defined.
3666         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
3667         On platforms with <winsock2.h>, test whether inet_ntop is declared in
3668         <ws2tcpip.h>. If so, arrange to replace it.
3669         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
3670         REPLACE_INET_NTOP.
3671         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
3672         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
3673         (Depends-on, configure.ac): Update condition.
3674         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
3675
3676 2011-09-16  Eric Blake  <eblake@redhat.com>
3677
3678         test-fsync: yet another enhancement
3679         * tests/test-fsync.c (main): Also test behavior on read-only text
3680         file.
3681
3682 2011-09-16  Bruno Haible  <bruno@clisp.org>
3683
3684         Enhance fsync, fdatasync tests.
3685         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
3686         * tests/test-fdatasync.c (main): Likewise.
3687
3688 2011-09-16  Bruno Haible  <bruno@clisp.org>
3689
3690         Support for MSVC compiler: Ensure mode_t gets defined.
3691         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
3692         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
3693         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
3694         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
3695         * tests/test-fcntl-h.c: Check that mode_t is defined.
3696         * tests/test-sys_stat.c: Likewise.
3697         * tests/test-sys_types.c: Likewise.
3698         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
3699         * doc/posix-headers/sys_stat.texi: Likewise.
3700         * doc/posix-headers/sys_types.texi: Likewise.
3701
3702 2011-09-16  Bruno Haible  <bruno@clisp.org>
3703
3704         sys_stat: Support for MSVC.
3705         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
3706         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
3707         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
3708         MSVC.
3709
3710 2011-09-16  Bruno Haible  <bruno@clisp.org>
3711
3712         Support for MSVC compiler: Ensure off_t gets defined.
3713         * lib/unistd.in.h: Include <sys/types.h>.
3714         * tests/test-fcntl-h.c: Check that off_t is defined.
3715         * tests/test-sys_stat.c: Likewise.
3716         * tests/test-sys_types.c: Likewise.
3717
3718 2011-09-16  Eric Blake  <eblake@redhat.com>
3719
3720         fdatasync: port to Solaris
3721         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
3722         * modules/fdatasync (Link): Document it.
3723         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
3724
3725         fdatasync: port to MacOS X 10.7
3726         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
3727         declared.
3728         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
3729         * modules/unistd (Makefile.am): Substitute it.
3730         * lib/unistd.in.h (fdatasync): Declare on MacOS.
3731         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
3732
3733         fdatasync: minor improvements
3734         * modules/fdatasync (Depends-on): Add condition for fsync.
3735         * lib/fdatasync.c (fdatasync): Add comment.
3736         * tests/test-unistd-c++.cc: Test fdatasync.
3737
3738         unistd: update refs to newer POSIX
3739         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
3740         Suggested by Bruno Haible.
3741
3742         fdatasync: new module
3743         * modules/fsync (Description): Document difference to fdatasync.
3744         * modules/fdatasync: New module.
3745         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
3746         * lib/fdatasync.c (fdatasync): Likewise.
3747         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
3748         defaults.
3749         * modules/unistd (Makefile.am): Set witnesses.
3750         * lib/unistd.in.h (fdatasync): Declare.
3751         * MODULES.html.sh: Document it.
3752         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
3753         * modules/fdatasync-tests: New test.
3754         * tests/test-fdatasync.c: Likewise.
3755
3756 2011-09-16  Eric Blake  <eblake@redhat.com>
3757
3758         test-fsync: enhance tests
3759         * modules/fsync-tests (Depends-on): Add errno, for mingw.
3760         * tests/test-fsync.c (main): Enhance test.
3761
3762 2011-09-15  Bruno Haible  <bruno@clisp.org>
3763
3764         Support for MSVC compiler: Ensure ssize_t gets defined.
3765         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
3766         * doc/posix-headers/stdio.texi: Likewise.
3767         * modules/stdio (Depends-on): Add ssize_t.
3768         * modules/sys_socket (Depends-on): Likewise.
3769         * modules/sys_types (Depends-on): Likewise.
3770         * modules/sys_uio (Depends-on): Likewise.
3771         * modules/unistd (Depends-on): Likewise.
3772         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
3773         * tests/test-sys_types.c: Check that ssize_t is defined.
3774
3775 2011-09-14  Bruno Haible  <bruno@clisp.org>
3776
3777         Avoid using #, the m4 comment starter character, near brackets.
3778         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
3779         delimiter character in sed expressions.
3780         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
3781         Suggested by Eric Blake.
3782
3783         Properly quote AC_CHECK_DECLS' 4th argument.
3784         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
3785         argument.
3786         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
3787         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
3788         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
3789         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
3790         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
3791         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
3792         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
3793         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
3794         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
3795         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
3796         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
3797         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
3798         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
3799         * m4/isinf.m4 (gl_ISINF): Likewise.
3800         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
3801         * m4/readutmp.m4 (gl_READUTMP): Likewise.
3802         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
3803         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
3804         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
3805         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
3806         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
3807         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
3808         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
3809         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
3810         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
3811         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
3812         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
3813         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
3814         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
3815         Reported by Eric Blake.
3816
3817         Properly quote AC_CHECK_DECL's 4th argument.
3818         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
3819         argument.
3820         * m4/argp.m4 (gl_ARGP): Likewise.
3821         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
3822         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
3823         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
3824         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
3825         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
3826         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
3827         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
3828         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
3829         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
3830         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
3831         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
3832         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
3833         Reported by Eric Blake.
3834
3835 2011-09-14  Eric Blake  <eblake@redhat.com>
3836
3837         opendir: avoid compile warning
3838         * lib/opendir.c (includes): Always include errno.h.
3839         Reported by Tatsuro MATSUOKA.
3840
3841 2011-09-14  Jim Meyering  <meyering@redhat.com>
3842
3843         maint.mk: sc_tight_scope: propagate failure from sub-make
3844         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
3845         Reported by Martin von Gagern.
3846
3847 2011-09-13  Bruno Haible  <bruno@clisp.org>
3848
3849         tempname: Support for MSVC.
3850         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
3851         MSVC.
3852         * modules/tempname (Depends-on): Add fcntl-h.
3853
3854 2011-09-13  Bruno Haible  <bruno@clisp.org>
3855
3856         sys_time: Support for MSVC.
3857         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
3858         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
3859         include <winsock2.h>.
3860         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
3861         function declarations that collide with POSIX.
3862         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
3863         (Makefile.am): Substitute HAVE_WINSOCK2_H.
3864
3865 2011-09-13  Bruno Haible  <bruno@clisp.org>
3866
3867         stat: Support for MSVC.
3868         * lib/stat.c: Include pathmax.h.
3869         * modules/stat (Depends-on): Add pathmax.
3870
3871         pathmax: Support for native Windows.
3872         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
3873
3874 2011-09-12  Bruno Haible  <bruno@clisp.org>
3875
3876         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
3877         * lib/dirent.in.h (struct dirent): New type.
3878         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
3879         DT_WHT): New macros.
3880         (DIR): New type.
3881         (opendir, closedir): Declare only if the module 'opendir' is enabled.
3882         (readdir, rewinddir): New declarations.
3883         * lib/dirent-private.h: New file.
3884         * lib/opendir.c: New file.
3885         * lib/readdir.c: New file.
3886         * lib/rewinddir.c: New file.
3887         * lib/closedir.c: New file.
3888         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
3889         * m4/opendir.m4: New file.
3890         * m4/readdir.m4: New file.
3891         * m4/rewinddir.m4: New file.
3892         * m4/closedir.m4: New file.
3893         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
3894         REPLACE_CLOSEDIR here.
3895         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
3896         readdir, rewinddir are declared.
3897         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
3898         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
3899         HAVE_REWINDDIR, HAVE_CLOSEDIR.
3900         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
3901         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
3902         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
3903         * modules/opendir: New file.
3904         * modules/readdir: New file.
3905         * modules/rewinddir: New file.
3906         * modules/closedir: New file.
3907         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
3908         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
3909         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
3910         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
3911         * NEWS: Mention the 'fchdir' change.
3912
3913 2011-09-11  Bruno Haible  <bruno@clisp.org>
3914
3915         asm-underscore.m4: Support for MSVC.
3916         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
3917         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
3918
3919 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
3920
3921         Doc about crypt functions.
3922         * doc/posix-functions/crypt.texi: Expand range of glibc versions
3923         needing for _GNU_SOURCE to get crypt.
3924         * doc/posix-functions/encrypt.texi: Likewise.
3925         * doc/posix-functions/setkey.texi: Likewise.
3926
3927 2011-09-11  Bruno Haible  <bruno@clisp.org>
3928
3929         doc: Update regarding MSVC 9.
3930         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
3931         tested".
3932         * doc/posix-functions/*.texi: Update with info about MSVC 9.
3933         * doc/posix-headers/*.texi: Likewise.
3934         * doc/pastposix-functions/*.texi: Likewise.
3935         * doc/glibc-functions/*.texi: Likewise.
3936         * doc/glibc-headers/*.texi: Likewise.
3937
3938 2011-09-11  Bruno Haible  <bruno@clisp.org>
3939
3940         unistd et al.: Don't assume <unistd.h> exists.
3941         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
3942         does not exist.
3943         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
3944         exist. But include <stdlib.h>.
3945         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
3946         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
3947         symlink() does not exist.
3948         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
3949         include <io.h> instead.
3950         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
3951         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
3952         include <direct.h> instead.
3953         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
3954         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
3955         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
3956         <io.h> instead.
3957         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
3958         correctly if the system does not have hard links.
3959         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
3960         <direct.h> instead.
3961         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
3962         it when looking for function declarations.
3963         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
3964         <direct.h> and <io.h> instead.
3965         * doc/posix-headers/unistd.texi: More details about MSVC problem.
3966
3967 2011-09-11  Bruno Haible  <bruno@clisp.org>
3968
3969         strcase: Support for MSVC.
3970         * modules/strcase (Status, Notice): Remove obsoletion mark.
3971         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
3972         * doc/posix-functions/strncasecmp.texi: Likewise.
3973
3974         strings: Don't assume <strings.h> exists.
3975         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
3976         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
3977         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
3978         * doc/posix-headers/strings.texi: Mention the MSVC problem.
3979
3980 2011-09-11  Bruno Haible  <bruno@clisp.org>
3981
3982         dirent: Don't assume <dirent.h> exists.
3983         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
3984         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
3985         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
3986         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
3987
3988 2011-09-11  Bruno Haible  <bruno@clisp.org>
3989
3990         Fix wint_t on MSVC.
3991         * lib/wchar.in.h (wint_t): On MSVC, override it.
3992         * lib/wctype.in.h (wint_t): Likewise.
3993         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
3994         MSVC.
3995         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
3996         * doc/posix-headers/wctype.texi: Likewise.
3997
3998 2011-09-11  Bruno Haible  <bruno@clisp.org>
3999
4000         sys_types: Fix typo.
4001         * lib/sys_types.in.h: Fix typo in comment.
4002         Reported by Paul Eggert.
4003
4004         Support for MSVC compiler: Ensure size_t gets defined.
4005         * modules/strings (Depends-on): Add 'sys_types'.
4006         * modules/sys_uio (Depends-on): Likewise.
4007         * lib/sys_uio.in.h: Update comment.
4008
4009         C++ tests for module 'sys_types'.
4010         * modules/sys_types-c++-tests: New file.
4011         * tests/test-sys_types-c++.cc: New file.
4012
4013         Tests for module 'sys_types'.
4014         * modules/sys_types-tests: New file.
4015         * tests/test-sys_types.c: New file.
4016
4017         New module 'sys_types'.
4018         * lib/sys_types.in.h: New file.
4019         * m4/sys_types_h.m4: New file.
4020         * modules/sys_types: New file.
4021         * doc/posix-headers/sys_types.texi: Mention the new module and the
4022         size_t problem on MSVC 9.
4023
4024 2011-09-11  Bruno Haible  <bruno@clisp.org>
4025
4026         Support for MSVC compiler: Avoid division by a literal 0.
4027         * lib/math.in.h (NAN): Define through a function call also on MSVC.
4028         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
4029         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
4030         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
4031         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
4032         * tests/infinity.h: New file.
4033         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
4034         on MSVC.
4035         * tests/test-ceilf1.c: Include infinity.h.
4036         (main): Use Infinityf.
4037         * tests/test-ceil1.c: Include infinity.h.
4038         (main): Use Infinityd.
4039         * tests/test-ceill.c: Include infinity.h.
4040         (main): Use Infinityl.
4041         * tests/test-dprintf-posix.c: Include infinity.h.
4042         (test_function): Use Infinityd.
4043         * tests/test-floorf1.c: Include infinity.h.
4044         (main): Use Infinityf.
4045         * tests/test-floor1.c: Include infinity.h.
4046         (main): Use Infinityd.
4047         * tests/test-floorl.c: Include infinity.h.
4048         (main): Use Infinityl.
4049         * tests/test-fprintf-posix.c: Include infinity.h.
4050         (test_function): Use Infinityd.
4051         * tests/test-frexp.c: Include infinity.h.
4052         (main): Use Infinityd.
4053         * tests/test-frexpl.c: Include infinity.h.
4054         (main): Use Infinityl.
4055         * tests/test-isfinite.c: Include infinity.h.
4056         (test_isfinitef): Use Infinityf.
4057         (test_isfinited): Use Infinityd.
4058         (test_isfinitel): Use Infinityl.
4059         * tests/test-isinf.c: Include infinity.h.
4060         (test_isinff): Use Infinityf.
4061         (test_isinfd): Use Infinityd.
4062         (test_isinfl): Use Infinityl.
4063         * tests/test-isnan.c: Include infinity.h.
4064         (test_float): Use Infinityf.
4065         (test_double): Use Infinityd.
4066         (test_long_double): Use Infinityl.
4067         * tests/test-isnanf.h: Include infinity.h.
4068         (main): Use Infinityf.
4069         * tests/test-isnand.h: Include infinity.h.
4070         (main): Use Infinityd.
4071         * tests/test-isnanl.h: Include infinity.h.
4072         (main): Use Infinityl.
4073         * tests/test-ldexpl.c: Include infinity.h.
4074         (main): Use Infinityl.
4075         * tests/test-printf-posix.h: Include infinity.h.
4076         (test_function): Use Infinityd.
4077         * tests/test-roundf1.c: Include infinity.h.
4078         (main): Use Infinityf.
4079         * tests/test-round1.c: Include infinity.h.
4080         (main): Use Infinityd.
4081         * tests/test-roundl.c: Include infinity.h.
4082         (main): Use Infinityl.
4083         * tests/test-signbit.c: Include infinity.h.
4084         (test_signbitf): Use Infinityf.
4085         (test_signbitd): Use Infinityd.
4086         (test_signbitl): Use Infinityl.
4087         * tests/test-snprintf-posix.h: Include infinity.h.
4088         (test_function): Use Infinityd, Infinityl.
4089         * tests/test-sprintf-posix.h: Include infinity.h.
4090         (test_function): Use Infinityd, Infinityl.
4091         * tests/test-truncf1.c: Include infinity.h.
4092         (main): Use Infinityf.
4093         * tests/test-trunc1.c: Include infinity.h.
4094         (main): Use Infinityd.
4095         * tests/test-truncl.c: Include infinity.h.
4096         (main): Use Infinityl.
4097         * tests/test-vasnprintf-posix.c: Include infinity.h.
4098         (test_function): Use Infinityd, Infinityl.
4099         * tests/test-vasprintf-posix.c: Include infinity.h.
4100         (test_function): Use Infinityd, Infinityl.
4101         * modules/ceilf-tests (Files): Add tests/infinity.h.
4102         * modules/ceil-tests (Files): Likewise.
4103         * modules/ceill-tests (Files): Likewise.
4104         * modules/dprintf-posix-tests (Files): Likewise.
4105         * modules/floorf-tests (Files): Likewise.
4106         * modules/floor-tests (Files): Likewise.
4107         * modules/floorl-tests (Files): Likewise.
4108         * modules/fprintf-posix-tests (Files): Likewise.
4109         * modules/frexp-tests (Files): Likewise.
4110         * modules/frexp-nolibm-tests (Files): Likewise.
4111         * modules/frexpl-tests (Files): Likewise.
4112         * modules/frexpl-nolibm-tests (Files): Likewise.
4113         * modules/isfinite-tests (Files): Likewise.
4114         * modules/isinf-tests (Files): Likewise.
4115         * modules/isnan-tests (Files): Likewise.
4116         * modules/isnanf-tests (Files): Likewise.
4117         * modules/isnanf-nolibm-tests (Files): Likewise.
4118         * modules/isnand-tests (Files): Likewise.
4119         * modules/isnand-nolibm-tests (Files): Likewise.
4120         * modules/isnanl-tests (Files): Likewise.
4121         * modules/isnanl-nolibm-tests (Files): Likewise.
4122         * modules/ldexpl-tests (Files): Likewise.
4123         * modules/printf-posix-tests (Files): Likewise.
4124         * modules/roundf-tests (Files): Likewise.
4125         * modules/round-tests (Files): Likewise.
4126         * modules/roundl-tests (Files): Likewise.
4127         * modules/signbit-tests (Files): Likewise.
4128         * modules/snprintf-posix-tests (Files): Likewise.
4129         * modules/sprintf-posix-tests (Files): Likewise.
4130         * modules/truncf-tests (Files): Likewise.
4131         * modules/trunc-tests (Files): Likewise.
4132         * modules/truncl-tests (Files): Likewise.
4133         * modules/vasnprintf-posix-tests (Files): Likewise.
4134         * modules/vasprintf-posix-tests (Files): Likewise.
4135         * modules/vdprintf-posix-tests (Files): Likewise.
4136         * modules/vfprintf-posix-tests (Files): Likewise.
4137         * modules/vprintf-posix-tests (Files): Likewise.
4138         * modules/vsnprintf-posix-tests (Files): Likewise.
4139         * modules/vsprintf-posix-tests (Files): Likewise.
4140         * modules/xprintf-posix-tests (Files): Likewise.
4141
4142 2011-09-11  Bruno Haible  <bruno@clisp.org>
4143
4144         Ensure pid_t gets defined.
4145         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
4146         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
4147         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
4148         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
4149         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
4150         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
4151         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
4152         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
4153         * tests/test-fcntl-h.c: Check that pid_t is defined.
4154         * tests/test-sched.c: Likewise.
4155         * tests/test-termios.c: Likewise.
4156         * tests/test-time.c: Likewise.
4157         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
4158         * doc/posix-headers/signal.texi: Likewise.
4159         * doc/posix-headers/sys_types.texi: Likewise.
4160         * doc/posix-headers/time.texi: Likewise.
4161
4162 2011-09-11  Bruno Haible  <bruno@clisp.org>
4163
4164         acl: Fix compilation on Solaris 10 (older version).
4165         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
4166         of ACE_EVERYONE.
4167         * lib/set-mode-acl.c (qset_acl): Likewise.
4168         Reported by Christian Jullien <eligis@orange.fr>.
4169
4170 2011-09-10  Bruno Haible  <bruno@clisp.org>
4171
4172         iconv, unsetenv: Add support for MSVC compiler.
4173         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
4174         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
4175
4176 2011-09-10  Bruno Haible  <bruno@clisp.org>
4177
4178         *printf: Add support for MSVC compiler.
4179         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
4180         handles the exception caused by the %n directive. When cross-compiling,
4181         guess no on native Windows.
4182         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
4183         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
4184         emulate it through vsnprintf.
4185         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
4186         * doc/posix-functions/dprintf.texi: Update documentation regarding
4187         MSVC 9.
4188         * doc/posix-functions/fprintf.texi: Likewise.
4189         * doc/posix-functions/printf.texi: Likewise.
4190         * doc/posix-functions/snprintf.texi: Likewise.
4191         * doc/posix-functions/sprintf.texi: Likewise.
4192         * doc/posix-functions/swprintf.texi: Likewise.
4193         * doc/posix-functions/vdprintf.texi: Likewise.
4194         * doc/posix-functions/vfprintf.texi: Likewise.
4195         * doc/posix-functions/vprintf.texi: Likewise.
4196         * doc/posix-functions/vsnprintf.texi: Likewise.
4197         * doc/posix-functions/vsprintf.texi: Likewise.
4198         * doc/glibc-functions/asprintf.texi: Likewise.
4199         * doc/glibc-functions/obstack_printf.texi: Likewise.
4200         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
4201         * doc/glibc-functions/vasprintf.texi: Likewise.
4202
4203 2011-09-10  Bruno Haible  <bruno@clisp.org>
4204
4205         nocrash: Add support for native Windows.
4206         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
4207
4208 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
4209             Bruno Haible  <bruno@clisp.org>
4210
4211         absolute-header, include-next: Add support for MSVC compiler.
4212         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
4213         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
4214         directory separator in #line directives.
4215         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
4216         recognize also backslash as directory separator in #line directives.
4217
4218 2011-09-08  Jim Meyering  <meyering@redhat.com>
4219
4220         maint.mk: mark the post-release commit log with "maint: " prefix
4221         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
4222         one-line commit-log summary.
4223
4224 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
4225             Bruno Haible  <bruno@clisp.org>
4226
4227         Doc about crypt functions.
4228         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
4229         systems.
4230         * doc/posix-functions/encrypt.texi: Likewise.
4231         * doc/posix-functions/setkey.texi: Likewise.
4232
4233 2011-09-08  Simon Josefsson  <simon@josefsson.org>
4234
4235         * lib/gc.h: Fix copyright header.
4236
4237 2011-09-07  Bruno Haible  <bruno@clisp.org>
4238
4239         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
4240         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
4241         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
4242
4243 2011-09-07  Bruno Haible  <bruno@clisp.org>
4244
4245         openat: Work around compilation error with OSF/1 5.1 DTK cc.
4246         * lib/fopen.c: Use different syntax for include of <stdio.h>.
4247         * lib/freopen.c: Likewise.
4248         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
4249         * lib/lstat.c: Likewise.
4250         * lib/stat.c: Likewise.
4251         * lib/open.c: Use different syntax for include of <fcntl.h>.
4252         * lib/openat.c: Include fcntl.h again, explicitly.
4253
4254 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
4255
4256         parse-datetime: document the newly accepted format
4257         * doc/parse-datetime.texi (Combined date and time of day items):
4258         New section.
4259
4260 2011-09-06  Bruno Haible  <bruno@clisp.org>
4261
4262         acl: Fix a test failure on newer Solaris 10 with ZFS.
4263         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
4264         ENOSYS as no ACL.
4265         Reported by Jim Meyering.
4266
4267 2011-09-06  Bruno Haible  <bruno@clisp.org>
4268
4269         acl: Update for AIX >= 5.3 with NFS.
4270         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
4271         ENOSYS as no ACL.
4272
4273         acl: Fix a test failure on AIX >= 5.3 with NFS.
4274         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
4275         as no ACL.
4276
4277 2011-09-06  Bruno Haible  <bruno@clisp.org>
4278
4279         acl: Fix a test failure on IRIX 6.5 with NFS.
4280         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
4281         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
4282         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
4283         * lib/copy-acl.c (qcopy_acl): Likewise.
4284
4285 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
4286
4287         openat: port to AIX 7.1 with large files
4288         AIX 7.1 does a "#define openat open64at" if large files are in use,
4289         so we can't simply #undef openat.  Use the orig_openat trick (similar
4290         to orig_open in lib/open.c) to work around the problem.  Problem
4291         reported by Kevin Brott for GNU tar, in the thread containing
4292         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
4293         * lib/openat.c (__need_system_fcntl_h): Define first.
4294         Include <fcntl.h> and <sys/types.h> before undefining.
4295         (orig_openat) [HAVE_OPENAT]: New inline function.
4296         (openat) [HAVE_OPENAT]: Do not undef.
4297         (rpl_openat): Use orig_openat, not openat.
4298
4299 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
4300             Bruno Haible  <bruno@clisp.org>
4301
4302         acl: Avoid errors on NonStop Kernel.
4303         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
4304         ENOTSUP errors.
4305
4306 2011-09-05  Bruno Haible  <bruno@clisp.org>
4307
4308         acl: Clean up Solaris code.
4309         * lib/acl-internal.h: Remove no-op #if.
4310         * lib/file-has-acl.c: Likewise.
4311         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
4312         * lib/copy-acl.c (qcopy_acl): Likewise.
4313
4314 2011-09-05  Bruno Haible  <bruno@clisp.org>
4315
4316         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
4317         binaries built on the original Solaris 10.
4318         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
4319         trivial.
4320
4321 2011-09-05  Bruno Haible  <bruno@clisp.org>
4322
4323         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
4324         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
4325         10.
4326         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
4327         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
4328         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
4329         instead of acl_get, facl_get, acl_set, facl_set.
4330
4331 2011-09-05  Bruno Haible  <bruno@clisp.org>
4332
4333         copy-file: Try unit tests on more file systems.
4334         * tests/test-copy-file-1.sh: New file.
4335         * tests/test-copy-file-2.sh: New file.
4336         * modules/copy-file-tests (Files): Add them.
4337         (Makefile.am): Add them to TESTS.
4338
4339         acl: Try unit tests on more file systems.
4340         * tests/test-file-has-acl-1.sh: New file.
4341         * tests/test-file-has-acl-2.sh: New file.
4342         * tests/test-set-mode-acl-1.sh: New file.
4343         * tests/test-set-mode-acl-2.sh: New file.
4344         * tests/test-copy-acl-1.sh: New file.
4345         * tests/test-copy-acl-2.sh: New file.
4346         * modules/acl-tests (Files): Add them.
4347         (Makefile.am): Add them to TESTS.
4348
4349 2011-09-04  Bruno Haible  <bruno@clisp.org>
4350
4351         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
4352         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
4353         10.
4354         (OLD_ALLOW, OLD_DENY): New macros.
4355         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
4356         ACE_ACCESS_ALLOWED_ACE_TYPE.
4357         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
4358         ACE_ACCESS_DENIED_ACE_TYPE.
4359         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
4360         (NEW_ACE_EXECUTE): Fix value.
4361         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
4362         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
4363         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
4364         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
4365         NEW_ACE_SYNCHRONIZE): New macros.
4366         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
4367         instead of acl_fromtext, acl_set, facl_set.
4368         Fixes a coreutils/tests/cp/perm failure.
4369
4370 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
4371
4372         openat: test for fstatat (..., 0) bug
4373         Further testing with tar suggests that fstatat (..., 0)
4374         does not work in general, on AIX 7.1; see
4375         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
4376         So, give up entirely on AIX 7.1's fstatat, and fall back on our
4377         replacement fstatat (which is what older AIX releases were using
4378         anyway).
4379         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
4380         use is now changed to orig_fstatat.  This was probably the right
4381         thing to do anyway.
4382         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
4383         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
4384         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
4385         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
4386         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
4387         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
4388         if the bug is found.
4389
4390         openat: test for fstatat (AT_FDCWD, ..., 0) bug
4391         This tests for another fstatat bug on AIX 7.1:
4392         fstatat (AT_FDCWD, ..., 0) does not work.  See
4393         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
4394         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
4395         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
4396         (rpl_fstatat): Adjust so that it works around either (or both)
4397         bugs if present.
4398         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
4399
4400 2011-09-03  Karl Berry  <karl@gnu.org>
4401
4402         * doc/regex.texi (Character Class Operators): Avoid literal ":"
4403         in index entries.
4404
4405 2011-09-02  Bruno Haible  <bruno@clisp.org>
4406
4407         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
4408         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
4409         values of AR, ARFLAGS, RANLIB.
4410         Reported by John W. Eaton <jwe@gnu.org> for Octave.
4411
4412 2011-09-02  Bruno Haible  <bruno@clisp.org>
4413
4414         Find 'ar' program that fits with --host argument.
4415         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
4416
4417 2011-09-02  Bruno Haible  <bruno@clisp.org>
4418
4419         tests: init.sh: Support any non-GNU diff.
4420         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
4421         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
4422         Solaris 8.
4423
4424 2011-09-02  Bruno Haible  <bruno@clisp.org>
4425
4426         tests: init.sh: work also with any non-GNU diff that supports -u
4427         * tests/init.sh: Relax check for diff -u support.
4428         Rather than checking for GNU diff via --version, simply check
4429         for support for -u itself.  Useful at least on OpenBSD 4.9,
4430         AIX 7.1, IRIX 6.5, and Solaris 10.
4431
4432 2011-09-01  Bruno Haible  <bruno@clisp.org>
4433
4434         strtoimax, strtoumax: Document problem on HP-UX 11.
4435         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
4436         * doc/posix-functions/strtoumax.texi: Likewise.
4437
4438 2011-09-01  Bruno Haible  <bruno@clisp.org>
4439
4440         strtoumax: Avoid link error on OSF/1 with DTK cc.
4441         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
4442         defined as a function.
4443         * modules/strtoumax (Depends-on, configure.ac): Test only whether
4444         strtoumax is defined, not whether it is declared.
4445
4446 2011-09-01  Bruno Haible  <bruno@clisp.org>
4447
4448         strtoimax: Avoid link error on OSF/1 with DTK cc.
4449         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
4450         defined as a function.
4451         * modules/strtoimax (Depends-on, configure.ac): Test only whether
4452         strtoimax is defined, not whether it is declared.
4453
4454 2011-09-01  Bruno Haible  <bruno@clisp.org>
4455
4456         imaxdiv: Avoid link error on OSF/1 with DTK cc.
4457         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
4458         as a function.
4459         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
4460         whether it is declared.
4461
4462 2011-09-01  Bruno Haible  <bruno@clisp.org>
4463
4464         imaxabs: Avoid link error on OSF/1 with DTK cc.
4465         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
4466         as a function.
4467         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
4468         whether it is declared.
4469
4470 2011-09-01  Bruno Haible  <bruno@clisp.org>
4471
4472         Tests for module 'strtoumax'.
4473         * modules/strtoumax-tests: New file.
4474         * tests/test-strtoumax.c: New file.
4475
4476         Tests for module 'strtoimax'.
4477         * modules/strtoimax-tests: New file.
4478         * tests/test-strtoimax.c: New file.
4479
4480         Tests for module 'imaxdiv'.
4481         * modules/imaxdiv-tests: New file.
4482         * tests/test-imaxdiv.c: New file.
4483
4484         Tests for module 'imaxabs'.
4485         * modules/imaxabs-tests: New file.
4486         * tests/test-imaxabs.c: New file.
4487
4488 2011-09-01  Bruno Haible  <bruno@clisp.org>
4489
4490         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
4491         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
4492         pthread_create.
4493
4494 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
4495
4496         openat: work around AIX 7.1 fstatat issue
4497         This should fix the problem that was not properly fixed
4498         in the previous change, dated 2011-08-30.
4499         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
4500         __need_system_stat_h defined.
4501         (orig_fstatat) [HAVE_FSTATAT]: New function.
4502         (rpl_fstatat): Go back to the old way of doing things,
4503         except call orig_fstatat instead of fstatat.
4504         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
4505         Remove unnecessary check whether fstatat fills in st_size etc.
4506
4507 2011-09-01  Bruno Haible  <bruno@clisp.org>
4508
4509         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
4510         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
4511         just include the system's header.
4512
4513 2011-08-31  Jim Meyering  <meyering@redhat.com>
4514
4515         tests: avoid spurious assertion failure in test-float.c on ppc64
4516         * tests/test-float.c (test_long_double): Comment out an assertion,
4517         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
4518         with gcc-4.4.4.
4519
4520         maint: indent with spaces, not TABs
4521         I need to get in the habit of running gnulib's "make check".
4522         Both of these would have been caught.
4523         * m4/largefile.m4: Indent with spaces, not TABs.
4524         * lib/parse-datetime.y (iso_8601_time): Likewise.
4525         Spotted by Pádraig Brady.
4526
4527         test-parse-datetime.c: accommodate a relatively strict gcc warning
4528         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
4529         to avoid a warning from gcc's -Werror=missing-declarations.
4530         Insert a few spaces-before-funcall-parenthesis.
4531
4532 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
4533
4534         parse-datetime: accept ISO 8601 date and time rep with "T" separator
4535         The parser now accepts ISO 8601 date-time strings with "T" as the
4536         separator.  It has long parsed dates like "2004-02-29 16:21:42"
4537         with a space between the date and time strings.  Now it also parses
4538         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
4539         variants like "2004-02-29T16:21:42.333-07:00"
4540         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
4541         of day representation using the 'T' separator character.
4542         * doc/parse-datetime.texi (General date syntax): replace use of
4543         deprecated --iso-8601 option with --rfc-3339 in example of date
4544         command output formats that can be parsed.
4545         * tests/test-parse-datetime.c (tm_diff): New function, taken from
4546         lib/parse-datetime.y.
4547         (gmt_offset): New function.
4548         (main): Add additional test cases to validate ISO8601 extended
4549         date and time of day parsing.
4550
4551 2011-08-31  Bruno Haible  <bruno@clisp.org>
4552
4553         freopen: Documentation.
4554         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
4555         name.
4556         Reported by Claudio Bley <claudio.bley@gmail.com>.
4557
4558 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
4559
4560         freopen: Don't crash if the filename argument is NULL.
4561         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
4562         NULL.
4563
4564 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
4565
4566         openat: work around AIX 7.1 fstatat bug
4567         Problem reported by Kevin Brott for GNU tar, in the thread containing
4568         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
4569         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
4570         FSTATAT_ST_SIZE_ETC_BROKEN.
4571         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
4572         rpl_fstatat.
4573         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
4574         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
4575         AC_CHECK_FUNCS_ONCE for fstatat.
4576         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
4577         fchmodat, mkdirat, openat and unlinkat.
4578
4579 2011-08-30  Bruno Haible  <bruno@clisp.org>
4580
4581         Avoid endless recursions if config.h includes some header files.
4582         * lib/fopen.c (__need_FILE): Define already before including config.h.
4583         * lib/freopen.c (__need_FILE): Likewise.
4584         * lib/open.c (__need_system_fcntl_h): Likewise.
4585         * lib/stat.c (__need_system_sys_stat_h): Likewise.
4586         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
4587         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
4588
4589 2011-08-25  Karl Berry  <karl@gnu.org>
4590
4591         * config/srclist.txt (ylwrap): new try.
4592         * build-aux/ylwrap: new file.
4593
4594 2011-08-23  Bruno Haible  <bruno@clisp.org>
4595
4596         tmpdir: Use a good default directory on native Windows.
4597         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
4598         (P_tmpdir): Default to _P_tmpdir on native Windows.
4599         (path_search): On native Windows, try the value returned by GetTempPath
4600         before trying P_tmpdir.
4601         * modules/tmpdir (Depends-on): Add pathmax.
4602         Suggested by John Darrington <john@darrington.wattle.id.au>.
4603
4604 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
4605
4606         doc: fix typo in README-release
4607         * top/README-release: Capitalize first word of a sentence.
4608
4609 2011-08-19  Jim Meyering  <meyering@redhat.com>
4610
4611         fts: do not exhaust memory when processing million-entry directories
4612         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
4613         directory would require about 256*N bytes of memory.  Thus, it was
4614         easy to construct a directory too large to be processed by any of
4615         those tools.  With this change, fts' maximum memory utilization is
4616         now limited to around 30MB.
4617         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
4618         (fts_read): When we've processed the final entry (i.e., when
4619         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
4620         using the parent entry to read any remaining entries.  Dispatch
4621         depending on what fts_build returns:
4622         - NULL+stop, aka failure: stop
4623         - NULL otherwise: move up in the dir hierarchy
4624         - non-NULL: handle this new entry
4625         (fts_build): Declare and use new local, continue_readdir.
4626         Prepare to be called from fts_read, when the entries
4627         from a partially-read directory have just been exhausted.
4628         In that case, we'll skip the opendir and instead use the parent's
4629         fts_dirp and derive dir_fd from that.
4630         Finally, in the readdir loop, if we read max_entries entries,
4631         exit the loop ensuring *not* to call closedir.  This is required
4632         so that fts_dirp can be reused on a subsequent call.
4633         Prompted by Ben England's report of memory exhaustion in find
4634         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
4635
4636         maint: fts: move decl of `dp' down into while loop; split a long line
4637         * lib/fts.c (fts_build): No semantic change.
4638
4639         fts: add/use new struct member, fts_dirp
4640         We are about to use this to manage any directory with
4641         too many entries to read all of them into memory at once.
4642         To do that, we'll need to save the DIR* pointer in each
4643         affected FTSENT struct.
4644         * lib/fts_.h: Include <dirent.h>.
4645         (struct FTSENT) [fts_dirp]: New member.
4646         * lib/fts.c (closedir_and_clear): Define.
4647         Use it in place of closedir so that we are sure to
4648         clear the new fts_dirp member when done with it.
4649         (fts_alloc): Initialize the new member.
4650         (fts_lfree): Free, if needed.
4651
4652         maint: fts: give __opendir2 a new parameter and rename
4653         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
4654         than surreptitiously using sole caller's "dir_fd".
4655         (fts_opendir): Rename from __opendir2.
4656
4657         maint: fts.c: remove __opendir2's now-unused parameter, oflag
4658         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
4659
4660         maint: fts.c: correct off-by-one indentation
4661         * lib/fts.c (fts_build): Correct indentation, change style
4662         of a couple of block comments, and bracing style.
4663
4664         maint: fts.c: move __opendir2 #define "up" out of function body
4665         * lib/fts.c (__opendir2): Move "up".  No semantic change.
4666
4667         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
4668         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
4669         out for a long time and besides was useful only on BSD systems.
4670
4671 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
4672
4673         regex: port to Stratus OpenVOS
4674         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
4675         define to empty, rather than attempting nonportable optimizations.
4676         Problem reported by Paul Green in:
4677         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
4678         and fix suggested by Eric Blake in:
4679         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
4680
4681 2011-08-17  Eric Blake  <eblake@redhat.com>
4682
4683         getcwd: fix test failures on mingw
4684         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
4685         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
4686         test if long directory cannot be created, and allow mingw errno.
4687
4688         getcwd-lgpl: fix m4 to match relaxed test for BSD
4689         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
4690         (gl_FUNC_GETCWD_SIGNATURE): New macro.
4691         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
4692         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
4693         signature problem.
4694
4695         getcwd: fix compilation on mingw64
4696         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
4697         getcwd.
4698         Reported by Marc-André Lureau.
4699
4700         pipe2: silence compiler warning
4701         * lib/pipe2.c (pipe2): Hide label if it is not used.
4702
4703 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
4704
4705         relocatable-prog: fix link error
4706         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
4707         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
4708         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
4709         into modules/relocatable-lib without noticing that
4710         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
4711         also needs to build relocatable.c.
4712
4713 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
4714
4715         getaddrinfo: fix sh typo in gai_strerrorA decl checking
4716         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
4717         shell code: it contained a 'break' that was not in a loop.
4718         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
4719         via a shell-language loop; this may have been true in old Autoconf
4720         versions, but it's not true in Autoconf 2.68.  I found this bug
4721         when testing coreutils git on Solaris 8, whose shell complains
4722         about the syntax error.
4723
4724 2011-08-12  Simon Josefsson  <simon@josefsson.org>
4725
4726         * lib/base64.c: Fix comment to reference RFC 4648.
4727         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
4728         <gvtulder@gmail.com>.
4729
4730 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
4731
4732         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
4733
4734         po/Makefile.in.in: fix make -q problem
4735         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
4736         rule, since there's no file named 'check-macro-version' and its
4737         use as a file breaks make -q.
4738         (all): Don't depend on check-macro-version.
4739         (CHECK_MACRO_VERSION): New macro.
4740         (stamp-po): Use it.
4741
4742         configmake: fix make -q problem
4743         * modules/configmake (configmake.h): Update configmake.h's time stamp
4744         even if the file does not change.  Otherwise, 'make -q' fails.
4745         Problem reported by Simon Josefsson in
4746         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
4747
4748 2011-08-11  Jim Meyering  <meyering@redhat.com>
4749
4750         git-version-gen: correct the advice in a comment
4751         * build-aux/git-version-gen: Correct comment.
4752         Don't recommend to list .tarball-version in .gitignore.
4753
4754 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
4755
4756         base64: fix off-by-one buffer size bug
4757         Problem and (trivial) fix reported by Gijs van Tulder in
4758         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
4759         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
4760         * tests/test-base64.c (main): Catch the bug.
4761
4762 2011-08-10  Eric Blake  <eblake@redhat.com>
4763
4764         closein: correct comments
4765         * lib/closein.c (close_stdin): Improve comments.
4766
4767 2011-08-09  Bruno Haible  <bruno@clisp.org>
4768
4769         More tests for 'fseeko'.
4770         * tests/test-fseeko3.c: New file, from Eric Blake.
4771         * tests/test-fseeko3.sh: New file.
4772         * modules/fseeko-tests (Files): Add them.
4773         (TESTS): Add test-fseeko3.sh.
4774         (check_PROGRAMS): Add test-fseeko3.
4775
4776 2011-08-09  Eric Blake  <eblake@redhat.com>
4777
4778         fseeko: remove unneeded hack
4779         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
4780
4781         fseeko: fix bug on glibc
4782         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
4783         Reported by John W. Eaton.
4784
4785 2011-08-08  Bruno Haible  <bruno@clisp.org>
4786
4787         unictype/base: Fix interoperability with preinstalled libunistring.
4788         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
4789         Reported by Simon Josefsson.
4790
4791 2011-08-08  Bruno Haible  <bruno@clisp.org>
4792
4793         iswblank: Detect declaration correctly.
4794         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
4795         AC_CHECK_DECLS invocation.
4796
4797 2011-08-08  Bruno Haible  <bruno@clisp.org>
4798
4799         tcgetsid: Detect declaration correctly.
4800         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
4801         AC_CHECK_DECLS invocation.
4802         Reported by Simon Josefsson.
4803
4804 2011-08-08  Eric Blake  <eblake@redhat.com>
4805
4806         largefile: fix typo that regressed large file support
4807         * modules/largefile (configure.ac-early): Fix section name.
4808
4809 2011-08-06  Karl Berry  <karl@gnu.org>
4810
4811         * MODULES.html.sh (func_all_files): _Noreturn is no longer
4812         a separate module.
4813
4814 2011-08-05  Simon Josefsson  <simon@josefsson.org>
4815
4816         openat: Fix warnings and commens when building unlinkat.c on Hurd.
4817         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
4818         get prototype for free.
4819
4820 2011-08-04  Bruno Haible  <bruno@clisp.org>
4821
4822         Tests for module 'pathmax'.
4823         * modules/pathmax-tests: New file.
4824         * tests/test-pathmax.c: New file.
4825
4826         canonicalize-lgpl: Support larger filenames on the Hurd.
4827         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
4828         Reported by Paul Eggert.
4829
4830         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
4831         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
4832         * lib/chdir-long.h: Include pathmax.h.
4833         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
4834         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
4835         (PATH_MAX): Remove code that is done by pathmax.h.
4836         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
4837         * lib/tmpfile.c: Add a comment.
4838         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
4839         * modules/chdir-long (Depends-on): Add pathmax.
4840         * modules/getcwd (Depends-on): Add pathmax.
4841         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
4842         is not defined.
4843         * doc/posix-headers/limits.texi: Mention the pathmax module.
4844         * NEWS: Mention the change.
4845
4846 2011-08-02  Bruno Haible  <bruno@clisp.org>
4847
4848         pthread_sigmask: Actually use results of gl_THREADLIB.
4849         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
4850         gl_THREADLIB, not gl_[]THREADLIB.
4851         Reported by Eric Blake.
4852
4853 2011-08-02  Jim Meyering  <meyering@redhat.com>
4854
4855         maint.mk: relax the default _gl_TS_function_match regexp
4856         * top/maint.mk (_gl_TS_function_match): Don't require at least one
4857         space between function name and "(" in an "extern" declaration.
4858         That would fail to match a decl with no space there: extern void foo();
4859
4860 2011-07-31  Iain Nicol  <iain@thenicols.net>
4861
4862         git-version-gen: document that EXTRA_DIST must include .version
4863         * build-aux/git-version-gen: In the how-to-use comment, document
4864         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
4865         will fail when run from an unpacked distribution tarball.
4866
4867 2011-08-01  Bruno Haible  <bruno@clisp.org>
4868
4869         wctype-h: Fix last change.
4870         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
4871         REPLACE_TOWLOWER to 0.
4872         Reported by Sam Steingold <sds@gnu.org>.
4873
4874 2011-07-31  Bruno Haible  <bruno@clisp.org>
4875
4876         frexpl: Update autoconf test.
4877         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
4878         according to changes of 2011-06-20.
4879
4880 2011-07-31  Bruno Haible  <bruno@clisp.org>
4881
4882         sys_utsname: Add support for Minix.
4883         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
4884         <sys/utsname.h>.
4885         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
4886         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
4887
4888 2011-07-31  Bruno Haible  <bruno@clisp.org>
4889
4890         strings: Add support for Minix.
4891         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
4892         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
4893         * doc/posix-headers/strings.texi: Document the Minix problem.
4894
4895 2011-07-31  Bruno Haible  <bruno@clisp.org>
4896
4897         wctype-h: Add support for Minix.
4898         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
4899         REPLACE_TOWLOWER.
4900         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
4901         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
4902         REPLACE_ISWCNTRL.
4903
4904 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
4905
4906         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
4907         This is a performance improvement for 64-bit hosts: it causes the
4908         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
4909
4910 2011-07-31  Bruno Haible  <bruno@clisp.org>
4911
4912         stdioext: Add support for Minix.
4913         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
4914         * lib/fpurge.c (fpurge): Likewise.
4915         * lib/freadahead.c (freadahead): Likewise.
4916         * lib/freadable.c (freadable): Likewise.
4917         * lib/freading.c (freading): Likewise.
4918         * lib/freadptr.c (freadptr): Likewise.
4919         * lib/freadseek.c (freadptrinc): Likewise.
4920         * lib/fseeko.c (rpl_fseeko): Likewise.
4921         * lib/fseterr.c (fseterr): Likewise.
4922         * lib/fwritable.c (fwritable): Likewise.
4923         * lib/fwriting.c (fwriting): Likewise.
4924         * lib/fflush.c (clear_ungetc_buffer): Update comment.
4925         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
4926
4927 2011-07-31  Bruno Haible  <bruno@clisp.org>
4928
4929         errno: Port to Minix.
4930         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
4931         ECONNABORTED are defined.
4932         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
4933         GNULIB_defined_ECONNABORTED): New macros.
4934         * lib/strerror-override.h (strerror_override): Test also
4935         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
4936         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
4937         ECONNABORTED.
4938         * doc/posix-headers/errno.texi: Mention the Minix problem.
4939
4940 2011-07-31  Bruno Haible  <bruno@clisp.org>
4941
4942         Work around declaration collisions on Minix.
4943         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
4944         defined, set REPLACE_MBSINIT.
4945         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
4946         defined, set REPLACE_MBRTOWC.
4947         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
4948         set REPLACE_MBRLEN.
4949         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
4950         defined, set REPLACE_MBSRTOWCS.
4951         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
4952         defined, set REPLACE_WCRTOMB.
4953         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
4954         defined, set REPLACE_WCSRTOMBS.
4955
4956 2011-07-31  Bruno Haible  <bruno@clisp.org>
4957
4958         Add support for Minix with ACK compiler.
4959         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
4960         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
4961         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
4962
4963 2011-07-31  Bruno Haible  <bruno@clisp.org>
4964
4965         Documentation about Minix.
4966         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
4967         * doc/glibc-headers/*.texi: Likewise.
4968         * doc/posix-functions/*.texi: Likewise.
4969         * doc/glibc-functions/*.texi: Likewise.
4970
4971 2011-07-31  Bruno Haible  <bruno@clisp.org>
4972
4973         snippet/warn-on-use: Fix indentation.
4974         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
4975
4976 2011-07-25  Jim Meyering  <meyering@redhat.com>
4977
4978         tests: test-update-copyright.sh: remove unnecessary "rm" commands
4979         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
4980         commands.
4981
4982 2011-07-27  Jim Meyering  <meyering@redhat.com>
4983
4984         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
4985         * top/maint.mk (gl_extract_significant_defines_): Now that
4986         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
4987         gnulib/lib/signal.in.h, and now that we recommend to
4988         define-if-undefined those two symbols in application code,
4989         we must filter them out of the "significant" list.
4990         This avoids a "make syntax-check" failure in coreutils.
4991
4992 2011-07-26  Eric Blake  <eblake@redhat.com>
4993
4994         warnings: add comments about previous patch
4995         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
4996         * m4/include_next.m4: Likewise.
4997         * m4/warn-on-use.m4: Likewise.
4998         * m4/warnings.m4: Likewise, and simplify use.
4999         Suggested by Stefano Lattarini.
5000
5001         include-next, warnings: support older autoconf
5002         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
5003         AS_VAR_PUSHDEF in a way that works with older autoconf.
5004         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
5005         Reported by Daniel P. Berrange.
5006
5007 2011-07-25  Bruno Haible  <bruno@clisp.org>
5008
5009         fseek, ftell: Fix doc.
5010         * doc/posix-functions/fseek.texi: Reword statement about
5011         AC_SYS_LARGEFILE.
5012         * doc/posix-functions/ftell.texi: Likewise.
5013
5014 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
5015             Bruno Haible  <bruno@clisp.org>
5016
5017         Add dependencies to the 'largefile' module.
5018         * modules/fopen (Depends-on): Add 'largefile'.
5019         * modules/freopen (Depends-on): Likewise.
5020         * modules/fseeko (Depends-on): Likewise.
5021         * modules/ftello (Depends-on): Likewise.
5022         * modules/glob (Depends-on): Likewise.
5023         * modules/lseek (Depends-on): Likewise.
5024         * modules/lstat (Depends-on): Likewise.
5025         * modules/mkostemp (Depends-on): Likewise.
5026         * modules/mkostemps (Depends-on): Likewise.
5027         * modules/mkstemp (Depends-on): Likewise.
5028         * modules/mkstemps (Depends-on): Likewise.
5029         * modules/open (Depends-on): Likewise.
5030         * modules/openat (Depends-on): Likewise.
5031         * modules/pread (Depends-on): Likewise.
5032         * modules/pwrite (Depends-on): Likewise.
5033         * modules/scandir (Depends-on): Likewise.
5034         * modules/stat (Depends-on): Likewise.
5035         * modules/tmpfile (Depends-on): Likewise.
5036         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
5037         since the containing module now depends on the largefile module.
5038         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
5039         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
5040         off_t is fixed by gnulib.
5041         * doc/posix-functions/freopen.texi: Likewise.
5042         * doc/posix-functions/fseeko.texi: Likewise.
5043         * doc/posix-functions/fstatat.texi: Likewise.
5044         * doc/posix-functions/ftello.texi: Likewise.
5045         * doc/posix-functions/glob.texi: Likewise.
5046         * doc/posix-functions/lseek.texi: Likewise.
5047         * doc/posix-functions/lstat.texi: Likewise.
5048         * doc/posix-functions/mkstemp.texi: Likewise.
5049         * doc/posix-functions/open.texi: Likewise.
5050         * doc/posix-functions/openat.texi: Likewise.
5051         * doc/posix-functions/pread.texi: Likewise.
5052         * doc/posix-functions/pwrite.texi: Likewise.
5053         * doc/posix-functions/scandir.texi: Likewise.
5054         * doc/posix-functions/stat.texi: Likewise.
5055         * doc/posix-functions/tmpfile.texi: Likewise.
5056         * doc/glibc-functions/mkostemp.texi: Likewise.
5057         * doc/glibc-functions/mkostemps.texi: Likewise.
5058         * doc/glibc-functions/mkstemps.texi: Likewise.
5059
5060 2011-07-25  Bruno Haible  <bruno@clisp.org>
5061
5062         fcntl: Move AC_LIBOBJ invocation to module description.
5063         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
5064         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
5065
5066         fcntl: Remove call-in from fchdir.m4.
5067         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
5068         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
5069
5070         dup3: Remove potential call-in from fchdir.m4.
5071         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
5072         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
5073
5074         dup2: Move AC_LIBOBJ invocation to module description.
5075         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
5076         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
5077         Don't invoke AC_LIBOBJ.
5078         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
5079
5080         dup2: Remove call-in from fchdir.m4.
5081         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
5082         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
5083
5084         fclose: Move AC_LIBOBJ invocation to module description.
5085         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
5086         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
5087         to 1.
5088         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
5089
5090         fclose: Remove call-in from close.m4.
5091         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
5092         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
5093
5094         close: Move AC_LIBOBJ invocation to module description.
5095         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
5096         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
5097         1.
5098         * modules/close (configure.ac): Invoke AC_LIBOBJ.
5099
5100         close: Remove call-in from fchdir.m4.
5101         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
5102         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
5103
5104         open: Move AC_LIBOBJ invocation to module description.
5105         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
5106         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
5107         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
5108
5109         open: Remove call-in from fchdir.m4.
5110         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
5111         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
5112
5113         fchdir: Start to remove gl_REPLACE_* idiom.
5114         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
5115         (gl_FUNC_FCHDIR): Invoke it.
5116
5117 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
5118
5119         * lib/ftell.c (ftell): Comment out cast.
5120
5121         close: use gl_REPLACE_FCLOSE only if defined
5122         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
5123         is defined.  The close module doesn't depend on the fclose module
5124         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
5125         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
5126         I reproduced the problem with "./gnulib-tool --test close sys_socket".
5127
5128 2011-07-24  Jim Meyering  <meyering@redhat.com>
5129
5130         test-select.h: avoid warning when using gcc's -Wmissing-declarations
5131         * tests/test-select.h (test_function): Declare as "static".
5132
5133 2011-07-24  Bruno Haible  <bruno@clisp.org>
5134
5135         doc: Mention the effects of AC_SYS_LARGEFILE.
5136         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
5137         on this function.
5138         * doc/posix-functions/aio_error.texi: Likewise.
5139         * doc/posix-functions/aio_fsync.texi: Likewise.
5140         * doc/posix-functions/aio_read.texi: Likewise.
5141         * doc/posix-functions/aio_return.texi: Likewise.
5142         * doc/posix-functions/aio_suspend.texi: Likewise.
5143         * doc/posix-functions/aio_write.texi: Likewise.
5144         * doc/posix-functions/fgetpos.texi: Likewise.
5145         * doc/posix-functions/fopen.texi: Likewise.
5146         * doc/posix-functions/freopen.texi: Likewise.
5147         * doc/posix-functions/fsetpos.texi: Likewise.
5148         * doc/posix-functions/fstatvfs.texi: Likewise.
5149         * doc/posix-functions/ftruncate.texi: Likewise.
5150         * doc/posix-functions/ftw.texi: Likewise.
5151         * doc/posix-functions/getrlimit.texi: Likewise.
5152         * doc/posix-functions/glob.texi: Likewise.
5153         * doc/posix-functions/lio_listio.texi: Likewise.
5154         * doc/posix-functions/lockf.texi: Likewise.
5155         * doc/posix-functions/mkstemp.texi: Likewise.
5156         * doc/posix-functions/mmap.texi: Likewise.
5157         * doc/posix-functions/nftw.texi: Likewise.
5158         * doc/posix-functions/openat.texi: Likewise.
5159         * doc/posix-functions/opendir.texi: Likewise.
5160         * doc/posix-functions/posix_fadvise.texi: Likewise.
5161         * doc/posix-functions/posix_fallocate.texi: Likewise.
5162         * doc/posix-functions/pread.texi: Likewise.
5163         * doc/posix-functions/pwrite.texi: Likewise.
5164         * doc/posix-functions/readdir.texi: Likewise.
5165         * doc/posix-functions/readdir_r.texi: Likewise.
5166         * doc/posix-functions/rewinddir.texi: Likewise.
5167         * doc/posix-functions/scandir.texi: Likewise.
5168         * doc/posix-functions/seekdir.texi: Likewise.
5169         * doc/posix-functions/setrlimit.texi: Likewise.
5170         * doc/posix-functions/statvfs.texi: Likewise.
5171         * doc/posix-functions/telldir.texi: Likewise.
5172         * doc/posix-functions/tmpfile.texi: Likewise.
5173         * doc/posix-functions/truncate.texi: Likewise.
5174         * doc/glibc-functions/fallocate.texi: Likewise.
5175         * doc/glibc-functions/fstatfs.texi: Likewise.
5176         * doc/glibc-functions/fts_children.texi: Likewise.
5177         * doc/glibc-functions/fts_read.texi: Likewise.
5178         * doc/glibc-functions/getdirentries.texi: Likewise.
5179         * doc/glibc-functions/mkostemp.texi: Likewise.
5180         * doc/glibc-functions/mkostemps.texi: Likewise.
5181         * doc/glibc-functions/mkstemps.texi: Likewise.
5182         * doc/glibc-functions/preadv.texi: Likewise.
5183         * doc/glibc-functions/pwritev.texi: Likewise.
5184         * doc/glibc-functions/sendfile.texi: Likewise.
5185         * doc/glibc-functions/statfs.texi: Likewise.
5186
5187 2011-07-24  Bruno Haible  <bruno@clisp.org>
5188
5189         doc: Fix typo.
5190         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
5191
5192 2011-07-24  Bruno Haible  <bruno@clisp.org>
5193
5194         doc: Mention fsusage.
5195         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
5196
5197 2011-07-24  Bruno Haible  <bruno@clisp.org>
5198
5199         doc: Mention new glibc headers and functions.
5200         * doc/glibc-headers/gshadow.texi: New file.
5201         * doc/glibc-functions/endsgent.texi: New file.
5202         * doc/glibc-functions/fgetsgent.texi: New file.
5203         * doc/glibc-functions/fgetsgent_r.texi: New file.
5204         * doc/glibc-functions/getsgent.texi: New file.
5205         * doc/glibc-functions/getsgent_r.texi: New file.
5206         * doc/glibc-functions/getsgnam.texi: New file.
5207         * doc/glibc-functions/getsgnam_r.texi: New file.
5208         * doc/glibc-functions/putsgent.texi: New file.
5209         * doc/glibc-functions/setsgent.texi: New file.
5210         * doc/glibc-functions/sgetsgent.texi: New file.
5211         * doc/glibc-functions/sgetsgent_r.texi: New file.
5212         * doc/glibc-functions/malloc_info.texi: New file.
5213         * doc/glibc-functions/preadv.texi: New file.
5214         * doc/glibc-functions/pwritev.texi: New file.
5215         * doc/glibc-functions/register_printf_modifier.texi: New file.
5216         * doc/glibc-functions/register_printf_specifier.texi: New file.
5217         * doc/glibc-functions/register_printf_type.texi: New file.
5218         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
5219         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
5220         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
5221         * doc/glibc-functions/pthread_getname_np.texi: New file.
5222         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
5223         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
5224         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
5225         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
5226         * doc/glibc-functions/pthread_setname_np.texi: New file.
5227         * doc/glibc-functions/pthread_sigqueue.texi: New file.
5228         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
5229         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
5230         * doc/glibc-functions/qsort_r.texi: New file.
5231         * doc/glibc-functions/quick_exit.texi: New file.
5232         * doc/glibc-functions/syncfs.texi: New file.
5233         * doc/gnulib.texi: Include them.
5234         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
5235         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
5236         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
5237         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
5238         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
5239         * doc/glibc-functions/execvpe.texi: Likewise.
5240
5241 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
5242
5243         ftell: don't include <unistd.h>
5244         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
5245         guaranteed to define off_t, and the ftell module depends on the
5246         stdio module.
5247
5248         ftell: do not assume wraparound signed arithmetic
5249         * lib/ftell.c: Include <limits.h>.
5250         (ftell): Don't assume wraparound signed arithmetic.
5251
5252 2011-07-24  Bruno Haible  <bruno@clisp.org>
5253
5254         close: No longer depend on module 'fclose'.
5255         * modules/close (Depends-on): Remove fclose.
5256         * NEWS: Mention the change.
5257         Suggested by Sam Steingold <sds@gnu.org>.
5258
5259 2011-07-24  Bruno Haible  <bruno@clisp.org>
5260
5261         fsusage: Enable large volume support on AIX >= 5.2.
5262         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
5263         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
5264         instead of STAT_STATVFS.
5265         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
5266
5267         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
5268         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
5269         f_blocks field only on MacOS X.
5270
5271         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
5272         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
5273         * modules/fsusage (Depends-on): Add largefile.
5274
5275 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
5276
5277         * README: Modernize discussion of signed integers.
5278         Assuming overflow wraparound is no longer safe.
5279         Mention ones' complement and signed magnitude.
5280
5281 2011-07-22  Bruno Haible  <bruno@clisp.org>
5282
5283         select tests, pselect tests: Refactor.
5284         * tests/test-select.h: New file, extracted from tests/test-select.c.
5285         (select_fn): New type.
5286         (test, do_select, do_select_nowait, do_select_wait, test_tty,
5287         test_connect_first, test_accept_first, test_pair, test_socket_pair,
5288         test_pipe): Add my_select argument.
5289         (test_function): Renamed from main. Add my_select argument.
5290         * tests/test-select.c: Move most code to tests/test-select.h. Include
5291         test-select.h.
5292         * modules/select-tests (Files): Add tests/test-select.h.
5293         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
5294         (my_select, main): New functions.
5295         * modules/pselect-tests (Files): Add tests/test-select.h,
5296         tests/macros.h, tests/signature.h.
5297         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
5298         (configure.ac): Check for <sys/wait.h>.
5299
5300 2011-07-22  Bruno Haible  <bruno@clisp.org>
5301
5302         sys_select tests: Check the signature of FD_*.
5303         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
5304         signature tests from here...
5305         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
5306         here.
5307         * modules/sys_select-tests (Files): Add tests/signature.h.
5308
5309 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
5310
5311         largefile: new module, replacing large-inode
5312         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
5313         * MODULES.html.sh: Add largefile, remove large-inode.
5314         * modules/largefile, m4/largefile.m4: New files.
5315         * modules/large-inode, m4/large-inode.m4: Remove.
5316
5317         fsusage: port to MacOS X 10.7 with 4 TiB file systems
5318         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
5319         implementations that use only 32 bits to count blocks.
5320         On typical hosts with 1024-byte blocks, this fails with file
5321         systems as small as 4 TiB.  Problem reported by Herb Wartens
5322         <http://debbugs.gnu.org/9140> and this should also fix a similar
5323         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
5324
5325         large-inode: New module
5326         * MODULES.html.sh: Add it.
5327         * modules/large-inode, m4/large-inode.m4: New files.
5328
5329         extensions: Enable extensions on MacOS X 10.5 and later.
5330         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
5331
5332 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
5333
5334         file-has-acl: use acl_extended_file_nofollow if available
5335         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
5336         (acl_extended_file): New macro.
5337         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
5338         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
5339
5340 2011-07-21  Bruno Haible  <bruno@clisp.org>
5341
5342         Declare system functions in a way that works with C++.
5343         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
5344         declare fdopendir as extern "C".
5345         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
5346         declare frexpl as extern "C".
5347         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
5348         declare gai_strerror as extern "C".
5349         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
5350         programs, declare gai_strerror as extern "C".
5351         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
5352         declare getlogin_r as extern "C".
5353         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
5354         as extern "C".
5355         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
5356         declare ldexpl as extern "C".
5357         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
5358         as extern "C".
5359         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
5360         program, declare getmntinfo as extern "C".
5361         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
5362         stpncpy as extern "C".
5363         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
5364         program, declare __xpg_strerror_r as extern "C".
5365         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
5366         strndup as extern "C".
5367         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
5368         declare memset and bzero as extern "C".
5369         Reported by Sam Steingold <sds@gnu.org>.
5370
5371 2011-07-12  Jim Meyering  <meyering@redhat.com>
5372
5373         maint.mk: prohibit inclusion of "verify.h" without use
5374         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
5375
5376 2011-07-19  Pádraig Brady  <P@draigBrady.com>
5377
5378         timer-time: A new module to check for timer_settime()
5379         * m4/timer_time.m4: Check for the posix function.
5380         * modules/timer-time: Add the new module.
5381         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
5382         Mention it.
5383
5384 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
5385             Bruno Haible  <bruno@clisp.org>
5386
5387         pthread_sigmask: assume POSIX threads if --avoid=threadlib
5388         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
5389         not defined, assume POSIX threads and look for pthread_sigmask in
5390         $LIBS, without changing $CPPFLAGS.
5391
5392 2011-07-19  Bruno Haible  <bruno@clisp.org>
5393
5394         strstr: Update cross-compilation guess.
5395         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
5396         CPUs, guess no, in view of glibc
5397         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
5398         Suggested by Eric Blake. Reported by Reuben Thomas.
5399
5400 2011-07-19  Pádraig Brady  <P@draigBrady.com>
5401
5402         getopt-gnu: suppress core dumps from detection code
5403         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
5404         to suppress core dumps that may well occur on glibc systems.
5405         * modules/getopt-gnu: Depend on nocrash.
5406
5407 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
5408
5409         pthread_sigmask: ensure usleep is declared
5410         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
5411         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
5412
5413 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
5414
5415         doc: Document NonStop portability issues.
5416         * doc/posix-functions/sigaction.texi (sigaction):
5417         * doc/posix-headers/signal.texi (signal.h):
5418         Document NonStop.  See Joachim Schmitz in
5419         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
5420
5421 2011-07-15  Bruno Haible  <bruno@clisp.org>
5422
5423         ffsl, ffsll: Avoid unportable behaviour.
5424         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
5425
5426 2011-07-15  Bruno Haible  <bruno@clisp.org>
5427
5428         ffs: More tests.
5429         * tests/test-ffs.c (NBITS): New macro.
5430         (main): Add more tests.
5431         * tests/test-ffsl.c (NBITS): New macro.
5432         (main): Add more tests.
5433         * tests/test-ffsll.c (NBITS): New macro.
5434         (main): Add more tests.
5435
5436 2011-07-15  Eric Blake  <eblake@redhat.com>
5437
5438         ffsl, ffsll: new modules
5439         * modules/ffsl: New file.
5440         * modules/ffsll: Likewise.
5441         * m4/ffsl.m4: Likewise.
5442         * m4/ffsll.m4: Likewise.
5443         * lib/ffsl.c: Likewise.
5444         * lib/ffsl.h: Likewise.
5445         * lib/ffsll.c: Likewise.
5446         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
5447         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
5448         * modules/string (Makefile.am): Substitute witnesses.
5449         * lib/strings.in.h (ffsl, ffsll): Declare.
5450         * modules/ffsl-tests: New test file.
5451         * modules/ffsll-tests: Likewise.
5452         * tests/test-ffsl.c: Likewise.
5453         * tests/test-ffsll.c: Likewise.
5454         * MODULES.html.sh (Integer arithmetic functions): Mention it.
5455         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
5456         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
5457
5458         ffs: fix m4 prerequisite
5459         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
5460
5461         ffs: avoid undefined behavior
5462         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
5463         * tests/test-ffs.c (naive, main): Avoid signed shifts.
5464         Reported by Bruno Haible.
5465
5466 2011-07-12  Bruno Haible  <bruno@clisp.org>
5467
5468         pthread_sigmask: Rely on module 'threadlib'.
5469         * modules/pthread_sigmask (Depends-on): Add threadlib.
5470         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
5471         is defined.
5472
5473 2011-07-12  Bruno Haible  <bruno@clisp.org>
5474
5475         regex: Depend on module 'strcase'.
5476         * modules/regex (Depends-on): Add strcase, for strcasecmp().
5477
5478 2011-07-12  Jim Meyering  <meyering@redhat.com>
5479
5480         warn-on-use: fix typo in file name
5481         * modules/snippet/warn-on-use (Files): Correct file name:
5482         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
5483
5484 2011-07-12  Bruno Haible  <bruno@clisp.org>
5485
5486         strings: Document module.
5487         * doc/posix-headers/strings.texi: Mention module 'strings'.
5488
5489 2011-07-12  Bruno Haible  <bruno@clisp.org>
5490
5491         Rename module '_Noreturn' to 'snippet/_Noreturn'.
5492         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
5493         (Files, Makefile.am): Update.
5494         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
5495         * modules/stdlib (Depends-on): Update.
5496
5497 2011-07-12  Bruno Haible  <bruno@clisp.org>
5498
5499         * NEWS: Mention the changes.
5500
5501         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
5502         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
5503         (Files, Makefile.am): Update.
5504         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
5505         * modules/arpa_inet (Depends-on): Update.
5506         * modules/ctype (Depends-on): Update.
5507         * modules/dirent (Depends-on): Update.
5508         * modules/fcntl-h (Depends-on): Update.
5509         * modules/glob (Depends-on): Update.
5510         * modules/iconv-h (Depends-on): Update.
5511         * modules/inttypes-incomplete (Depends-on): Update.
5512         * modules/langinfo (Depends-on): Update.
5513         * modules/locale (Depends-on): Update.
5514         * modules/math (Depends-on): Update.
5515         * modules/netdb (Depends-on): Update.
5516         * modules/poll-h (Depends-on): Update.
5517         * modules/pty (Depends-on): Update.
5518         * modules/search (Depends-on): Update.
5519         * modules/signal (Depends-on): Update.
5520         * modules/spawn (Depends-on): Update.
5521         * modules/stdio (Depends-on): Update.
5522         * modules/stdlib (Depends-on): Update.
5523         * modules/string (Depends-on): Update.
5524         * modules/strings (Depends-on): Update.
5525         * modules/sys_file (Depends-on): Update.
5526         * modules/sys_ioctl (Depends-on): Update.
5527         * modules/sys_select (Depends-on): Update.
5528         * modules/sys_socket (Depends-on): Update.
5529         * modules/sys_stat (Depends-on): Update.
5530         * modules/sys_time (Depends-on): Update.
5531         * modules/sys_times (Depends-on): Update.
5532         * modules/sys_utsname (Depends-on): Update.
5533         * modules/sys_wait (Depends-on): Update.
5534         * modules/termios (Depends-on): Update.
5535         * modules/time (Depends-on): Update.
5536         * modules/unistd (Depends-on): Update.
5537         * modules/wchar (Depends-on): Update.
5538         * modules/wctype-h (Depends-on): Update.
5539         * MODULES.html.sh (Support for building libraries and executables):
5540         Update.
5541
5542         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
5543         * modules/snippet/unused-parameter: Renamed from
5544         modules/unused-parameter.
5545         (Files, Makefile.am): Update.
5546         * build-aux/snippet/unused-parameter.h: Renamed from
5547         build-aux/unused-parameter.h.
5548         * modules/selinux-h (Depends-on): Update.
5549         * modules/unistr/base (Depends-on): Update.
5550         * MODULES.html.sh (Core language properties): Update.
5551
5552         Rename module 'link-warning' to 'snippet/link-warning'.
5553         * modules/snippet/link-warning: Renamed from modules/link-warning.
5554         (Files, Makefile.am): Update.
5555         * build-aux/snippet/link-warning.h: Renamed from
5556         build-aux/link-warning.h.
5557         * MODULES.html.sh (Support for building libraries and executables):
5558         Update.
5559
5560         Rename module 'c++defs' to 'snippet/c++defs'.
5561         * modules/snippet/c++defs: Renamed from modules/c++defs.
5562         (Files, Makefile.am): Update.
5563         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
5564         * modules/arpa_inet (Depends-on): Update.
5565         * modules/ctype (Depends-on): Update.
5566         * modules/dirent (Depends-on): Update.
5567         * modules/fcntl-h (Depends-on): Update.
5568         * modules/glob (Depends-on): Update.
5569         * modules/iconv-h (Depends-on): Update.
5570         * modules/langinfo (Depends-on): Update.
5571         * modules/locale (Depends-on): Update.
5572         * modules/math (Depends-on): Update.
5573         * modules/netdb (Depends-on): Update.
5574         * modules/poll-h (Depends-on): Update.
5575         * modules/pty (Depends-on): Update.
5576         * modules/search (Depends-on): Update.
5577         * modules/signal (Depends-on): Update.
5578         * modules/spawn (Depends-on): Update.
5579         * modules/stdio (Depends-on): Update.
5580         * modules/stdlib (Depends-on): Update.
5581         * modules/string (Depends-on): Update.
5582         * modules/strings (Depends-on): Update.
5583         * modules/sys_ioctl (Depends-on): Update.
5584         * modules/sys_select (Depends-on): Update.
5585         * modules/sys_socket (Depends-on): Update.
5586         * modules/sys_stat (Depends-on): Update.
5587         * modules/sys_time (Depends-on): Update.
5588         * modules/sys_wait (Depends-on): Update.
5589         * modules/termios (Depends-on): Update.
5590         * modules/time (Depends-on): Update.
5591         * modules/unistd (Depends-on): Update.
5592         * modules/wchar (Depends-on): Update.
5593         * modules/wctype-h (Depends-on): Update.
5594
5595         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
5596         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
5597         (Files, Makefile.am): Update.
5598         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
5599         * modules/argv-iter (Depends-on): Update.
5600         * modules/arpa_inet (Depends-on): Update.
5601         * modules/dirent (Depends-on): Update.
5602         * modules/fcntl-h (Depends-on): Update.
5603         * modules/fnmatch (Depends-on): Update.
5604         * modules/getopt-posix (Depends-on): Update.
5605         * modules/glob (Depends-on): Update.
5606         * modules/iconv-h (Depends-on): Update.
5607         * modules/inttypes-incomplete (Depends-on): Update.
5608         * modules/locale (Depends-on): Update.
5609         * modules/math (Depends-on): Update.
5610         * modules/netdb (Depends-on): Update.
5611         * modules/search (Depends-on): Update.
5612         * modules/signal (Depends-on): Update.
5613         * modules/spawn (Depends-on): Update.
5614         * modules/stdio (Depends-on): Update.
5615         * modules/stdlib (Depends-on): Update.
5616         * modules/string (Depends-on): Update.
5617         * modules/strings (Depends-on): Update.
5618         * modules/sys_socket (Depends-on): Update.
5619         * modules/sys_stat (Depends-on): Update.
5620         * modules/sys_time (Depends-on): Update.
5621         * modules/sys_times (Depends-on): Update.
5622         * modules/sys_utsname (Depends-on): Update.
5623         * modules/time (Depends-on): Update.
5624         * modules/unistd (Depends-on): Update.
5625         * modules/wchar (Depends-on): Update.
5626         * MODULES.html.sh (Support for building libraries and executables):
5627         Update.
5628
5629 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
5630
5631         Improvements on _Noreturn and related modules.
5632
5633         modules/_Exit-tests: test _Noreturn too
5634         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
5635         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
5636         (main): Use them.
5637
5638         stdnoreturn, stdnoreturn-tests: remove modules
5639         They're not needed here and a bit premature for use elsewhere.  See
5640         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
5641         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
5642         * tests/test-stdnoreturn.c: Remove files.
5643         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
5644         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
5645         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
5646         and using noreturn.
5647         * modules/openat, modules/sigpipe-die, modules/xalloc:
5648         * modules/xmemdup0, modules/xstrtol:
5649         Remove dependency on stdnoreturn.
5650
5651         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
5652         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
5653         Reparenthesize to avoid GCC warning.
5654         Support Microsoft's syntax.
5655         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
5656
5657         _Noreturn-tests: remove module
5658         * modules/_Noreturn-tests: Remove.
5659         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
5660         * tests/test-_Noreturn.c: Remove.
5661         * tests/test-stdnoreturn.c: Merge from the old
5662         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
5663
5664 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
5665
5666         _Noreturn, stdnoreturn, and related modules.
5667
5668         * top/maint.mk: Adjust to new noreturn support.
5669         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
5670         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
5671
5672         xalloc: use stdnoreturn.h
5673         * lib/xalloc.h: Include <stdnoreturn.h>.
5674         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
5675         * modules/xalloc (Depends-on): Add stdnoreturn.
5676
5677         xstrtol: use stdnoreturn.h
5678         * lib/xstrtol.h: Include <stdnoreturn.h>.
5679         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
5680         * modules/xstrtol (Depends-on): Add stdnoreturn.
5681
5682         xmemdup0: use stdnoreturn.h
5683         * lib/xmemdup0.h: Include <stdnoreturn.h>.
5684         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
5685         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
5686
5687         sigpipe-die: use stdnoreturn.h
5688         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
5689         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
5690         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
5691
5692         openat: use stdnoreturn.h
5693         * lib/openat.h: Include <stdnoreturn.h>.
5694         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
5695         * modules/openat (Depends-on): Add stdnoreturn.
5696
5697         * lib/openat-die.c (openat_save_fail): Modernize comment.
5698
5699         * lib/xalloc-die.c (xalloc_die): Modernize comment.
5700
5701         * lib/glthread/thread.h: Modernize comment.
5702
5703         obstack: use _Noreturn
5704         * lib/obstack.c (__attribute__): Remove macro.
5705         (print_and_abort): Use _Noreturn.
5706
5707         c-stack: use _Noreturn
5708         * lib/c-stack.c (die, overflow_handler, segv_handler):
5709         Use _Noreturn rather than __attribute__((noreturn)).
5710
5711         argmatch-tests, exclude_tests: use _Noreturn
5712         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
5713         Remove.
5714         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
5715
5716         stdlib: use _Noreturn
5717         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
5718         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
5719         * modules/stdlib (Depends-on): Add _Noreturn.
5720         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
5721
5722         stdnoreturn-tests: new module
5723         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
5724
5725         stdnoreturn: new module
5726         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
5727         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
5728
5729         _Noreturn-tests: new module
5730         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
5731
5732         _Noreturn: new module
5733         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
5734         New section, mentioning it.
5735         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
5736
5737         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
5738
5739 2011-07-11  Eric Blake  <eblake@redhat.com>
5740
5741         ffs: new module
5742         * modules/ffs: New file.
5743         * m4/ffs.m4: Likewise.
5744         * lib/ffs.c: Likewise.
5745         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
5746         * modules/strings (Makefile.am): Substitute witness.
5747         (Depends-on): Add c++defs.
5748         * lib/strings.in.h (ffs): Declare.
5749         * modules/ffs-tests: New test file.
5750         * tests/test-ffs.c: Test new module.
5751         * MODULES.html.sh (Integer arithmetic functions): Mention it.
5752         * doc/posix-functions/ffs.texi (ffs): Likewise.
5753
5754         regex: avoid compiler warning
5755         * lib/regex.c (includes): Include <strings.h>, for use of
5756         strcasecmp in regcomp.c.
5757         Reported by Joachim Schmitz.
5758
5759 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
5760
5761         stdint: respect system's intmax_t if INTMAX_MAX
5762         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
5763         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
5764         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
5765         long but int64_t is long long, and where we will clash with the
5766         system intmax_t if we override it.  See
5767         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
5768         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
5769         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
5770         similarly for UINTMAX_C.
5771
5772 2011-07-08  Bruno Haible  <bruno@clisp.org>
5773
5774         pthread_sigmask tests: Avoid a compiler warning.
5775         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
5776         non-zero.
5777
5778         sigprocmask tests: A better way to avoid a compiler warning.
5779         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
5780         (main): Complain if system() returns non-zero.
5781         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
5782
5783 2011-07-08  Bruno Haible  <bruno@clisp.org>
5784
5785         pthread_sigmask: Work around IRIX bug.
5786         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
5787         bug.
5788         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
5789         there may be unblocked pending signals.
5790         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
5791
5792 2011-07-08  Bruno Haible  <bruno@clisp.org>
5793
5794         pthread_sigmask: Work around Cygwin bug.
5795         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
5796         bug.
5797         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
5798         the system's pthread_sigmask function.
5799         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
5800
5801 2011-07-08  Bruno Haible  <bruno@clisp.org>
5802
5803         pthread_sigmask: Work around bug in single-threaded implementation.
5804         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
5805         FreeBSD, HP-UX, Solaris bug.
5806         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
5807         * lib/pthread_sigmask.c: Include <stddef.h>.
5808         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
5809         the system's pthread_sigmask function.
5810         * modules/pthread_sigmask (configure.ac): Invoke
5811         gl_PREREQ_PTHREAD_SIGMASK.
5812         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
5813         HP-UX, Solaris.
5814
5815 2011-07-08  Eric Blake  <eblake@redhat.com>
5816
5817         test-sigprocmask: avoid compiler warning
5818         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
5819         * tests/test-sigprocmask.c (main): Use it to silence warning.
5820         Reported by Jim Meyering.
5821
5822         test-snprintf: avoid compiler warning
5823         * tests/test-snprintf.c (main): Avoid shadowed declaration.
5824         * tests/test-vsnprintf.c (main): Likewise.
5825         Reported by Jim Meyering.
5826
5827 2011-07-08  Bruno Haible  <bruno@clisp.org>
5828
5829         Tests for module 'pthread_sigmask'.
5830         * modules/pthread_sigmask-tests: New file.
5831         * tests/test-pthread_sigmask1.c: New file, based on
5832         tests/test-sigprocmask.c.
5833         * tests/test-pthread_sigmask2.c: New file.
5834
5835 2011-07-08  Jim Meyering  <meyering@redhat.com>
5836
5837         test-getopt.h: avoid warning about an unused variable
5838         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
5839
5840 2011-07-07  Jim Meyering  <meyering@redhat.com>
5841
5842         maint: reduce list of files exempt from sc_prohibit_leading_TABs
5843         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
5844         now that it no longer contains leading TABs.
5845         Remove unused "url=FIXME" statement.
5846
5847 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
5848
5849         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
5850         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
5851         When gl_THREADLIB is not in use, assume that the POSIX sematics
5852         are desired.  This is better for Emacs, which uses POSIX semantics
5853         on GNUish and/or POSIXish platforms, and does not use threads at
5854         all otherwise.
5855
5856         pthread_sigmask: fix typo when testing for libraries
5857         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
5858         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
5859
5860 2011-07-08  Eric Blake  <eblake@redhat.com>
5861
5862         fts: introduce FTS_NOATIME
5863         * lib/fts_.h (FTS_NOATIME): New bit flag.
5864         (FTS_OPTIONMASK): Adjust.
5865         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
5866         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
5867
5868 2011-07-08  Bruno Haible  <bruno@clisp.org>
5869
5870         Tests for module 'thread'.
5871         * modules/thread-tests: New file.
5872         * tests/test-thread_self.c: New file.
5873         * tests/test-thread_create.cc: New file.
5874
5875 2011-07-08  Bruno Haible  <bruno@clisp.org>
5876
5877         thread: Avoid gcc warnings when using gl_thread_self().
5878         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
5879         'void *'.
5880         (gl_thread_self_pointer): Update.
5881
5882 2011-07-07  Bruno Haible  <bruno@clisp.org>
5883
5884         signal-c++-tests: Check declaration of pthread_sigmask.
5885         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
5886         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
5887         $(LIB_PTHREAD_SIGMASK).
5888
5889 2011-07-07  Bruno Haible  <bruno@clisp.org>
5890
5891         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
5892         * lib/signal.in.h (pthread_sigmask): Override if
5893         REPLACE_PTHREAD_SIGMASK is 1.
5894         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
5895         REPLACE_PTHREAD_SIGMASK.
5896         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
5897         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
5898         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
5899         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
5900         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
5901
5902 2011-07-07  Bruno Haible  <bruno@clisp.org>
5903
5904         pthread_sigmask: Ensure declaration in <signal.h>.
5905         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
5906         include <pthread.h>.
5907         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
5908         problem.
5909
5910 2011-07-07  Bruno Haible  <bruno@clisp.org>
5911
5912         pthread_sigmask: Document the module.
5913         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
5914
5915 2011-07-07  Bruno Haible  <bruno@clisp.org>
5916
5917         pthread_sigmask: Follow gnulib conventions.
5918         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
5919         gl_PTHREAD_SIGMASK.
5920         * modules/pthread_sigmask (configure.ac): Update.
5921
5922 2011-07-07  Bruno Haible  <bruno@clisp.org>
5923
5924         pthread_sigmask: Make declaration C++ safe.
5925         * lib/signal.in.h: In two special conditions, just do an #include_next.
5926         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
5927         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
5928         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
5929         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
5930         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
5931         not REPLACE_PTHREAD_MASK.
5932         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
5933         not REPLACE_PTHREAD_MASK.
5934         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
5935
5936 2011-07-07  Bruno Haible  <bruno@clisp.org>
5937
5938         pthread_sigmask: Fix return value.
5939         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
5940         * lib/pthread_sigmask.c: New file.
5941         * modules/pthread_sigmask (Files): Add it.
5942         (configure.ac): Invoke AC_LIBOBJ.
5943
5944 2011-07-07  Eric Blake  <eblake@redhat.com>
5945
5946         getopt: more portable argv creation
5947         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
5948         const, use char arrays rather than strings.
5949         Suggested by Paul Eggert.
5950
5951 2011-07-07  Bruno Haible  <bruno@clisp.org>
5952
5953         Tests for module 'sigprocmask'.
5954         * modules/sigprocmask-tests: New file.
5955         * tests/test-sigprocmask.c: New file.
5956
5957 2011-07-07  Bruno Haible  <bruno@clisp.org>
5958
5959         float tests: Tweak.
5960         * tests/test-float.c (main): Tweak skip message.
5961
5962 2011-07-07  Eric Blake  <eblake@redhat.com>
5963
5964         getopt: avoid compiler warning during configure
5965         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
5966         assigning string literals to non-const pointer.
5967
5968         getopt-gnu: avoid crash in glibc getopt
5969         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
5970         * tests/test-getopt.h (test_getopt): Enhance test.
5971         * tests/test-getopt_long.h (test_getopt_long): Likewise.
5972         * doc/posix-functions/getopt.texi (getopt): Document it.
5973         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
5974         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
5975         Likewise.
5976
5977 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
5978
5979         getopt: handle W; without long options in getopt [BZ #12922]
5980         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
5981         but no long options are defined, just return 'W'.
5982
5983 2011-07-07  Bruno Haible  <bruno@clisp.org>
5984
5985         Avoid literal tabs.
5986         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
5987         variable containing a tab instead of a literal tab.
5988         Reported by Jim Meyering.
5989
5990 2011-07-07  Bruno Haible  <bruno@clisp.org>
5991
5992         Comments.
5993         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
5994
5995 2011-07-06  Bruno Haible  <bruno@clisp.org>
5996
5997         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
5998         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
5999         <winsock2.h>.
6000         (rpl_fd_isset, FD_ISSET): New definitions, copied from
6001         lib/sys_socket.in.h.
6002         (close, gethostname): Hide declarations from <winsock2.h>.
6003         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
6004         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
6005         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
6006         (select): Don't override if gnulib's <sys/select.h> was already
6007         included.
6008         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
6009         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
6010         setsockopt, shutdown, select): Tweak indentation.
6011
6012 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
6013
6014         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
6015         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
6016         in an application that does not use the sys_select module.
6017
6018 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
6019
6020         poll: do not return 0 on timeout=-1
6021         * lib/poll.c: Loop with yield if no events occured
6022
6023 2011-07-06  Eric Blake  <eblake@redhat.com>
6024
6025         pthread_sigmask: always replace when not using pthread
6026         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
6027         replacement when using some threading other than pthread.  Fix
6028         logic bug.
6029
6030 2011-07-06  Bruno Haible  <bruno@clisp.org>
6031
6032         Comments.
6033         * m4/printf.m4: Update comments about mingw.
6034
6035 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
6036
6037         sys_select: define sigset_t more portably
6038         * lib/sys_select.in.h: Always include <sys/types.h>, since
6039         we now need sigset_t and mingw defines it there.
6040         Include <signal.h> before split inclusion guard, to avoid
6041         mishaps on Solaris, whose <signal.h> eventually includes us.
6042         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
6043         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
6044         which come from ...
6045         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
6046         gl_CHECK_TYPE_SIGSET_T.
6047         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
6048         does the real work.
6049         * modules/sys_select (Depends-on): Add 'signal'.
6050
6051         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
6052         Suggested by Bruno Haible.
6053
6054         pselect: Use pthread_sigmask, not sigprocmask.
6055         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
6056         multithreaded apps better than sigprocmask does.
6057         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
6058         sigprocmask directly.
6059
6060 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
6061
6062         * lib/pselect.c (pselect): Use plain name, without "rpl_".
6063         Don't #undef,  since we don't need any underlying pselect.
6064         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
6065         (Depends-on): Add select.
6066         (Link): Add $(LIBSOCKET).
6067         These changes suggested by Bruno Haible.
6068
6069         pselect: document better
6070         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
6071         * doc/posix-functions/pselect.texi (pselect): Document new module.
6072
6073         pthread_sigmask: new module
6074         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
6075         * doc/posix-functions/pthread_sigmask.texi: Document new module.
6076         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
6077         This is done only as a macro; I don't know how well that'll
6078         work for C++.  Move <sys/types.h> include before the include_next,
6079         to avoid mishap on Solaris.
6080         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
6081         * modules/signal (Makefile.am): Substitute the check's results.
6082         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
6083
6084         test-pselect: new module
6085         * modules/pselect-tests, tests/test-pselect.c: New files.
6086         * tests/test-select.c, tests/test-sys_select-c++.cc:
6087         If TEST_PSELECT is defined, test pselect instead of testing select.
6088
6089         * tests/test-sys_select.c (sigset_t): Test for it, too.
6090         Suggested by Bruno Haible.
6091
6092 2011-07-05  Eric Blake  <eblake@redhat.com>
6093
6094         snprintf: guarantee %1$d, for libintl
6095         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
6096         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
6097         * doc/posix-functions/snprintf.texi (snprintf): Update.
6098         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
6099         * tests/test-snprintf.c (main): Enhance test.
6100         * tests/test-vsnprintf.c (main): Likewise.
6101
6102 2011-07-05  Jim Meyering  <meyering@redhat.com>
6103
6104         maint: exempt stdio-read.c and stdio-write.c from the cppi check
6105         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
6106         per Bruno's request, to accommodate this idiom (no space after "#")
6107         even when the function is inside an #if block:
6108         char *
6109         gets (char *s)
6110         #undef gets
6111         {
6112           ...
6113         }
6114
6115 2011-07-04  Jim Meyering  <meyering@redhat.com>
6116
6117         maint: indent with spaces, not TABs, and add a rule to check this
6118         * tests/test-userspec.c: Indent with spaces, not TABs.
6119         * tests/test-argp.c: Likewise.
6120         * tests/test-c-stack2.sh: Likewise.
6121         * tests/test-parse-duration.sh: Likewise
6122         * m4/strtod.m4: Likewise.
6123         * m4/alloca.m4: Likewise.
6124         * m4/pselect.m4: Likewise.
6125         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
6126
6127 2011-07-03  Jim Meyering  <meyering@redhat.com>
6128
6129         maint.mk: correct omissions in prohibit_argmatch_without_use check
6130         This rule would mistakenly report that argmatch.h is included without
6131         use even when both the argmatch and invalid_arg macro were used.
6132         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
6133         of argmatch and invalid_arg.
6134
6135 2011-07-03  Bruno Haible  <bruno@clisp.org>
6136
6137         Comments about EINTR.
6138         * lib/safe-read.h: Explain the purpose of this module.
6139         * lib/safe-write.h: Likewise.
6140         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
6141         module.
6142         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
6143         module.
6144         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
6145
6146 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
6147
6148         xnanosleep: Rewrite to use new dtotimespec module.
6149         It has the conversion code that used to be in xnanosleep.
6150         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
6151         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
6152         (TIME_T_MAX): Remove.
6153         (xnanosleep): Rewrite in terms of dtotimespec.
6154         * modules/xnanosleep (Depends-on): Add dtotimespec.
6155         Remove intprops, stdbool.
6156
6157         timespec-add, timespec-sub: new modules
6158         * lib/timespec.h (timespec_add, timespec_sub): New decls.
6159         * lib/timespec-add.c, lib/timespec-sub.c:
6160         * modules/timespec-add, modules/timespec-sub: New files.
6161
6162         dtotimespec: new module
6163         * lib/timespec.h (dtotimespec): New decl.
6164         * lib/dtotimespec.c, modules/dtotimespec: New files.
6165
6166         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
6167
6168         pselect: new module
6169         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
6170         (pselect): New decls.
6171         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
6172         since the standard pselect decl uses 'restrict'.
6173         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
6174         HAVE_PSELECT, REPLACE_PSELECT.
6175         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
6176         HAVE_PSELECT, REPLACE_PSELECT.
6177         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
6178
6179         sys_select: don't depend on sys_socket
6180         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
6181         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
6182         This fix works on GNU and GNU-like platforms, but has not been tested
6183         on native Windows.
6184         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
6185         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
6186         gl_HEADER_SYS_SOCKET.
6187         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
6188         gl_PREREQ_SYS_H_WINSOCK2.
6189
6190 2011-06-29  Eric Blake  <eblake@redhat.com>
6191
6192         pipe2: fix C89 compile problem
6193         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
6194         Reported by Bruno Haible.
6195
6196         pipe, pipe2: don't corrupt fd on error
6197         * lib/pipe.c (pipe): Leave fd unchanged on error.
6198         * lib/pipe2.c (pipe2): Likewise.
6199         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
6200         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
6201
6202 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
6203
6204         mmap-anon: do not use regular expressions inadvertently
6205         * m4/mmap-anon.m4: Remove trailing period from strings sought
6206         in the output.
6207
6208 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
6209
6210         nanosleep: fix integer overflow problem
6211         * lib/nanosleep.c (my_usleep): Don't assume signed integer
6212         arithmetic wraps around on overflow.
6213
6214         nanosleep: simplify carrying
6215         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
6216         first call to the underyling nanosleep, not for the last one.
6217         This doesn't fix any bugs, but it simplifies the computation of
6218         the remaining delay.  Found while auditing integer overflow issues.
6219
6220         dup2: remove test for existence of fcntl
6221         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
6222         "#if HAVE_FCNTL", in the configure-time test program.
6223         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
6224         and therefore speeds up "configure" a bit.  Found while
6225         adding the dup2 module to Emacs.
6226
6227 2011-06-24  Eric Blake  <eblake@redhat.com>
6228
6229         maint.mk: enhance useless header checks
6230         * top/maint.mk (_sc_header_without_use): Check both include
6231         styles.
6232         (sc_prohibit_assert_without_use)
6233         (sc_prohibit_close_stream_without_use)
6234         (sc_prohibit_getopt_without_use)
6235         (sc_prohibit_quotearg_without_use)
6236         (sc_prohibit_quote_without_use)
6237         (sc_prohibit_long_options_without_use)
6238         (sc_prohibit_inttostr_without_use)
6239         (sc_prohibit_ignore_value_without_use)
6240         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
6241         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
6242         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
6243         (sc_prohibit_hash_pjw_without_use)
6244         (sc_prohibit_safe_read_without_use)
6245         (sc_prohibit_argmatch_without_use)
6246         (sc_prohibit_canonicalize_without_use)
6247         (sc_prohibit_root_dev_ino_without_use)
6248         (sc_prohibit_openat_without_use)
6249         (sc_prohibit_c_ctype_without_use)
6250         (sc_prohibit_signal_without_use)
6251         (sc_prohibit_stdio--_without_use)
6252         (sc_prohibit_stdio-safer_without_use)
6253         (sc_prohibit_strings_without_use)
6254         (sc_prohibit_intprops_without_use)
6255         (sc_prohibit_stddef_without_use)
6256         (sc_prohibit_xfreopen_without_use): Update clients.
6257
6258 2011-06-24  Jim Meyering  <meyering@redhat.com>
6259
6260         syntax-check: keep one maint.mk rule in sync with its header
6261         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
6262         of the bug Eric has just fixed, with today's commit 25e4c2ec.
6263         I prefer to avoid temporary files here, so use <(...), but that
6264         is not supported by /bin/sh, so...
6265         (SHELL): Define to /bin/bash.
6266
6267 2011-06-24  Eric Blake  <eblake@redhat.com>
6268
6269         maint.mk: update sc_prohibit_intprops_without_use
6270         * top/maint.mk (_intprops_names): Match recent changes.
6271
6272 2011-06-24  Bruno Haible  <bruno@clisp.org>
6273
6274         strerror-override: No-op tweak.
6275         * lib/strerror-override.h (strerror_override): Reorder conditions,
6276         for consistency with lib/strerror-override.c.
6277
6278 2011-06-23  Eric Blake  <eblake@redhat.com>
6279
6280         maint.mk: test further PATH_MAX issues
6281         * top/maint.mk (sc_prohibit_path_max_array): Rename...
6282         (sc_prohibit_path_max_allocation): ...and also test alloca.
6283         Suggested by Jim Meyering.
6284
6285 2011-06-22  Eric Blake  <eblake@redhat.com>
6286
6287         maint.mk: add syntax-check to avoid char[PATH_MAX]
6288         * top/maint.mk (sc_prohibit_path_max_array): New rule.
6289
6290         stat: be robust to PATH_MAX definition
6291         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
6292         * modules/stat (Depends-on): Add verify.
6293
6294         link: work around IRIX bug
6295         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
6296         * lib/link.c (rpl_link): Work around it.
6297         * tests/test-link.h (test_link): Enhance test.
6298         * doc/posix-functions/link.texi (link): Document the bug.
6299
6300         getopt: silence clang warning
6301         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
6302         dereference.
6303         Reported by Gustavo Martin Domato.
6304
6305 2011-06-22  Jim Meyering  <meyering@redhat.com>
6306
6307         bootstrap: do not insert a blank line into each .gitignore file
6308         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
6309
6310 2011-06-21  Eric Blake  <eblake@redhat.com>
6311
6312         perror: test for output mismatch
6313         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
6314         perror on IRIX.
6315
6316         strerror_r: fix OpenBSD behavior on out-of-range
6317         * lib/strerror_r.c (strerror_r): Always use maximal string.
6318         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
6319
6320         strerror_r: fix OpenBSD behavior on 0
6321         * lib/strerror-override.c (strerror_override): Also override 0
6322         when needed.
6323         * lib/strerror-override.h (strerror_override): Likewise.
6324         * lib/strerror.c (strerror): Simplify, now that 0 override is done
6325         earlier.
6326         * lib/strerror_r.c (strerror_r): Likewise.
6327         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
6328         behavior...
6329         (gl_FUNC_STRERROR_0): ...into new macro.
6330         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
6331         is overridden.
6332         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
6333         * modules/strerror-override (Files): Add strerror.m4.
6334         (configure.ac): Also provide override for 0 when needed.
6335         * doc/posix-functions/strerror.texi (strerror): Document this.
6336         * doc/posix-functions/perror.texi (perror): Likewise.
6337
6338         perror: adjust array size
6339         * modules/perror (Depends-on): Add strerror-override.
6340         * lib/perror.c (perror): Use it to avoid magic number.
6341
6342         strerror-override: reduce size
6343         * lib/strerror-override.c (strerror_override): Use fewer lines.
6344
6345 2011-06-20  Bruno Haible  <bruno@clisp.org>
6346
6347         pathmax: Ensure correct value for PATH_MAX on HP-UX.
6348         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
6349
6350 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
6351
6352         alloca: port to compilers that can optimize like GCC 4.6.0
6353         * lib/alloca.c (find_stack_direction): New signature, taken from
6354         Autoconf git.  This works with GCC 4.6.0.  This code should never
6355         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
6356         be used with other compilers that optimize as well as GCC 4.6.0 does.
6357         (alloca): Adjust to new signature.
6358         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
6359         New macro, which patches Autoconf in a similar way.
6360
6361         c-stack: stop worrying about stack direction
6362         * lib/c-stack.c (find_stack_direction): Remove.
6363         (segv_handler): Don't worry about stack direction growth, as it's
6364         too much of a pain to configure this correctly, given how compilers
6365         are optimizing-away our stack-growth detection code.  Instead, assume
6366         that any access to just before or just after the stack is OK.
6367         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
6368         Don't require AC_FUNC_ALLOCA; no longer needed.
6369
6370 2011-06-20  Eric Blake  <eblake@redhat.com>
6371
6372         test-stat: don't allocate PATH_MAX bytes
6373         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
6374         PATH_MAX-sized buffer.
6375         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
6376         * modules/stat-tests (Depends-on): Likewise.
6377         * tests/test-fstatat.c (includes): Drop pathmax.h.
6378         * tests/test-stat.c (includes): Likewise.
6379         Reported by Bruno Haible.
6380
6381 2011-06-20  Bruno Haible  <bruno@clisp.org>
6382
6383         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
6384         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
6385         * lib/float.c: New file.
6386         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
6387         REPLACE_FLOAT_LDBL.
6388         * modules/float (Files): Add lib/float.c.
6389         (configure.ac): Invoke AC_LIBOBJ.
6390         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
6391
6392 2011-06-20  Bruno Haible  <bruno@clisp.org>
6393
6394         Tests for module 'float'.
6395         * modules/float-tests: New file.
6396         * tests/test-float.c: New file.
6397
6398 2011-06-19  Bruno Haible  <bruno@clisp.org>
6399
6400         isinf: Coding style.
6401         * lib/isinf.c: Use GNU coding style.
6402
6403 2011-06-19  Bruno Haible  <bruno@clisp.org>
6404
6405         linkat test: Avoid test failure on AIX 7.1.
6406         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
6407         * tests/test-link.h (test_link): Likewise.
6408
6409 2011-06-19  Bruno Haible  <bruno@clisp.org>
6410
6411         pread test: Avoid test failure on OpenBSD 4.9.
6412         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
6413
6414 2011-06-19  Bruno Haible  <bruno@clisp.org>
6415
6416         sprintf-posix: Fix test failure on AIX 7.1.
6417         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
6418         * doc/posix-functions/dprintf.texi: Mention limited precision problem
6419         on AIX.
6420         * doc/posix-functions/fprintf.texi: Likewise.
6421         * doc/posix-functions/printf.texi: Likewise.
6422         * doc/posix-functions/snprintf.texi: Likewise.
6423         * doc/posix-functions/sprintf.texi: Likewise.
6424         * doc/posix-functions/vdprintf.texi: Likewise.
6425         * doc/posix-functions/vfprintf.texi: Likewise.
6426         * doc/posix-functions/vprintf.texi: Likewise.
6427         * doc/posix-functions/vsnprintf.texi: Likewise.
6428         * doc/posix-functions/vsprintf.texi: Likewise.
6429
6430 2011-06-19  Bruno Haible  <bruno@clisp.org>
6431
6432         roundl-ieee: Fix test failure on AIX 7.1.
6433         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
6434         * doc/posix-functions/roundl.texi: Mention problem with negative
6435         arguments.
6436
6437 2011-06-19  Bruno Haible  <bruno@clisp.org>
6438
6439         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
6440         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
6441         * doc/posix-functions/round.texi: Mention problem with negative
6442         arguments.
6443         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
6444
6445 2011-06-19  Bruno Haible  <bruno@clisp.org>
6446
6447         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
6448         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
6449         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
6450         * doc/posix-functions/roundf.texi: Mention problem with negative
6451         arguments.
6452         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
6453
6454 2011-06-19  Bruno Haible  <bruno@clisp.org>
6455
6456         ceilf-ieee: Work around bug on MacOS X 10.5.
6457         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
6458
6459         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
6460         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
6461         IEEE compliant, avoid compiler optimizations.
6462         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
6463         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
6464         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
6465         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
6466         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
6467         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
6468         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
6469         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
6470         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
6471         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
6472
6473 2011-06-19  Bruno Haible  <bruno@clisp.org>
6474
6475         ceilf-ieee: Work around bug on AIX 7.1.
6476         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
6477         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
6478
6479 2011-06-19  Bruno Haible  <bruno@clisp.org>
6480
6481         ceil-ieee: Work around bug on AIX 7.1.
6482         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
6483         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
6484
6485 2011-06-18  Bruno Haible  <bruno@clisp.org>
6486
6487         fsync test: Avoid test failure on MacOS X and AIX.
6488         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
6489         EINVAL.
6490
6491 2011-06-18  Bruno Haible  <bruno@clisp.org>
6492
6493         openat, fdopendir tests: Fix link errors.
6494         * modules/openat-tests (Depends-on): Add progname.
6495         * modules/fdopendir-tests (Depends-on): Likewise.
6496         * tests/test-fchownat.c: Include progname.h.
6497         (main): Call set_program_name.
6498         * tests/test-fstatat.c: Include progname.h.
6499         (main): Call set_program_name.
6500         * tests/test-mkdirat.c: Include progname.h.
6501         (main): Call set_program_name.
6502         * tests/test-openat.c: Include progname.h.
6503         (main): Call set_program_name.
6504         * tests/test-unlinkat.c: Include progname.h.
6505         (main): Call set_program_name.
6506         * tests/test-fdopendir.c: Include progname.h.
6507         (main): Call set_program_name.
6508
6509 2011-06-18  Bruno Haible  <bruno@clisp.org>
6510
6511         Doc update.
6512         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
6513         HP-UX.
6514         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
6515
6516 2011-06-18  Bruno Haible  <bruno@clisp.org>
6517
6518         getcwd tests: Avoid compilation error on HP-UX 11.31.
6519         * modules/getcwd-tests (Depends-on): Add pathmax.
6520         * tests/test-getcwd.c: Include pathmax.h.
6521
6522 2011-06-18  Bruno Haible  <bruno@clisp.org>
6523
6524         isfinite, isinf: Fix link error on AIX 6 and 7.
6525         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
6526         needed, also test the macro with a 'float' argument.
6527         * m4/isinf.m4 (gl_ISINF): Likewise.
6528
6529 2011-06-18  Bruno Haible  <bruno@clisp.org>
6530
6531         getloadavg: Don't clobber LIBS. Regression from previous commit.
6532         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
6533         AC_CHECK_LIB from here...
6534         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
6535         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
6536         gl_func_getloadavg_done.
6537         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6538
6539 2011-06-18  Bruno Haible  <bruno@clisp.org>
6540
6541         clean-temp: Improve documentation.
6542         * lib/clean-temp.h: Explain better how to use this module.
6543         Reported by John Darrington <john@darrington.wattle.id.au>.
6544
6545 2011-06-17  Bruno Haible  <bruno@clisp.org>
6546
6547         pread, pwrite: Avoid cc warning on AIX.
6548         * lib/unistd.in.h (pread): Undefine before defining as a macro.
6549         (pwrite): Likewise.
6550
6551 2011-06-17  Bruno Haible  <bruno@clisp.org>
6552
6553         spawn-pipe tests: Fix link error.
6554         * tests/test-spawn-pipe-child.c: Undefine fprintf.
6555         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6556
6557 2011-06-17  Bruno Haible  <bruno@clisp.org>
6558
6559         Tests: Remove unnecessary dependency.
6560         * modules/canonicalize-tests (Depends-on): Remove progname.
6561         * modules/chown-tests (Depends-on): Likewise.
6562         * modules/dirname-tests (Depends-on): Likewise.
6563         * modules/fdopendir-tests (Depends-on): Likewise.
6564         * modules/fdutimensat-tests (Depends-on): Likewise.
6565         * modules/hash-tests (Depends-on): Likewise.
6566         * modules/lchown-tests (Depends-on): Likewise.
6567         * modules/linkat-tests (Depends-on): Likewise.
6568         * modules/renameat-tests (Depends-on): Likewise.
6569         * modules/spawn-pipe-tests (Depends-on): Likewise.
6570         * modules/utimensat-tests (Depends-on): Likewise.
6571
6572 2011-06-17  Bruno Haible  <bruno@clisp.org>
6573
6574         spawn-pipe tests: Fix link error.
6575         * tests/test-spawn-pipe-child.c: Undefine fflush.
6576
6577 2011-06-17  Bruno Haible  <bruno@clisp.org>
6578
6579         Fix tests link errors.
6580         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
6581         * modules/chown-tests (Makefile.am): Don't link test-chown with
6582         LIBINTL.
6583         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
6584         LIBINTL.
6585         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
6586         LIBINTL.
6587         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
6588         LIBINTL.
6589
6590 2011-06-16  Bruno Haible  <bruno@clisp.org>
6591
6592         crypto/gc-sha1: Fix recent regression.
6593         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
6594         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
6595
6596         crypto/gc-md5: Fix recent regression.
6597         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
6598
6599         crypto/gc-md4: Fix recent regression.
6600         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
6601         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
6602
6603         crypto/gc-arctwo: Fix recent regression.
6604         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
6605         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
6606
6607         crypto/gc-rijndael: Fix recent regression.
6608         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
6609         (configure.ac): Invoke AC_LIBOBJ here.
6610         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
6611         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6612
6613         crypto/gc-hmac-sha1: Fix recent regression.
6614         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
6615         (configure.ac): Invoke AC_LIBOBJ here.
6616         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
6617         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6618
6619         crypto/gc-hmac-md5: Fix recent regression.
6620         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
6621         (configure.ac): Invoke AC_LIBOBJ here.
6622         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
6623         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6624
6625         crypto/gc-des: Fix recent regression.
6626         * modules/crypto/gc-des (Files): Remove m4/des.m4.
6627         (configure.ac): Invoke AC_LIBOBJ here.
6628         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
6629         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6630
6631         crypto/gc-arcfour: Fix recent regression.
6632         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
6633         (configure.ac): Invoke AC_LIBOBJ here.
6634         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
6635         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6636
6637 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
6638
6639         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
6640         After the 2011-05-21 change, this macro requires
6641         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
6642         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
6643
6644 2011-06-16  Bruno Haible  <bruno@clisp.org>
6645
6646         fprintftime: Move AC_LIBOBJ invocations to module description.
6647         * m4/fprintftime.m4: Remove file.
6648         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
6649         (configure.ac): Remove gl_FPRINTFTIME call.
6650         (Makefile.am): Augment lib_SOURCES.
6651         Reported by Jim Meyering.
6652
6653 2011-06-16  Bruno Haible  <bruno@clisp.org>
6654
6655         tmpfile-safer: Finish 2011-05-23 commit.
6656         * m4/stdio-safer.m4: Really remove file.
6657         Reported by Jim Meyering.
6658
6659 2011-06-16  Bruno Haible  <bruno@clisp.org>
6660
6661         syntax-check: Fix typo.
6662         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
6663         printf-posix.m4.
6664         Reported by Jim Meyering.
6665
6666 2011-06-13  Jim Meyering  <meyering@redhat.com>
6667
6668         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
6669         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
6670
6671 2011-05-23  Bruno Haible  <bruno@clisp.org>
6672
6673         yesno: Move AC_LIBOBJ invocations to module description.
6674         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
6675         * modules/yesno (Makefile.am): Augment lib_SOURCES.
6676
6677 2011-05-23  Bruno Haible  <bruno@clisp.org>
6678
6679         xstrtol: Move AC_LIBOBJ invocations to module description.
6680         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
6681         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
6682
6683 2011-05-23  Bruno Haible  <bruno@clisp.org>
6684
6685         xstrtold: Move AC_LIBOBJ invocations to module description.
6686         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
6687         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
6688
6689 2011-05-23  Bruno Haible  <bruno@clisp.org>
6690
6691         xstrtod: Move AC_LIBOBJ invocations to module description.
6692         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
6693         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
6694
6695 2011-05-23  Bruno Haible  <bruno@clisp.org>
6696
6697         xnanosleep: Move AC_LIBOBJ invocations to module description.
6698         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
6699         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
6700
6701 2011-05-23  Bruno Haible  <bruno@clisp.org>
6702
6703         xgetcwd: Move AC_LIBOBJ invocations to module description.
6704         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
6705         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
6706
6707 2011-05-23  Bruno Haible  <bruno@clisp.org>
6708
6709         xalloc: Move AC_LIBOBJ invocations to module description.
6710         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
6711         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
6712
6713 2011-05-23  Bruno Haible  <bruno@clisp.org>
6714
6715         write-any-file: Move AC_LIBOBJ invocations to module description.
6716         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
6717         invocation.
6718         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
6719
6720 2011-05-23  Bruno Haible  <bruno@clisp.org>
6721
6722         utimens: Move AC_LIBOBJ invocations to module description.
6723         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
6724         * modules/utimens (Makefile.am): Augment lib_SOURCES.
6725
6726 2011-05-23  Bruno Haible  <bruno@clisp.org>
6727
6728         utimecmp: Move AC_LIBOBJ invocations to module description.
6729         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
6730         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
6731
6732 2011-05-23  Bruno Haible  <bruno@clisp.org>
6733
6734         userspec: Move AC_LIBOBJ invocations to module description.
6735         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
6736         * modules/userspec (Makefile.am): Augment lib_SOURCES.
6737
6738 2011-05-23  Bruno Haible  <bruno@clisp.org>
6739
6740         unlinkdir: Move AC_LIBOBJ invocations to module description.
6741         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
6742         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
6743
6744 2011-05-23  Bruno Haible  <bruno@clisp.org>
6745
6746         unistd-safer: Move AC_LIBOBJ invocations to module description.
6747         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
6748         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
6749
6750 2011-05-23  Bruno Haible  <bruno@clisp.org>
6751
6752         tempname: Move AC_LIBOBJ invocations to module description.
6753         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
6754         * modules/tempname (Makefile.am): Augment lib_SOURCES.
6755
6756 2011-05-23  Bruno Haible  <bruno@clisp.org>
6757
6758         strftime: Move AC_LIBOBJ invocations to module description.
6759         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
6760         * modules/strftime (Makefile.am): Augment lib_SOURCES.
6761
6762 2011-05-23  Bruno Haible  <bruno@clisp.org>
6763
6764         stdlib-safer: Move AC_LIBOBJ invocations to module description.
6765         * m4/stdlib-safer.m4: Remove file.
6766         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
6767         (configure.ac): Remove gl_STDLIB_SAFER call.
6768         (Makefile.am): Augment lib_SOURCES.
6769
6770 2011-05-23  Bruno Haible  <bruno@clisp.org>
6771
6772         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
6773         * m4/stdio-safer.m4: Remove file.
6774         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
6775         (configure.ac): Remove gl_TMPFILE_SAFER call.
6776         (Makefile.am): Augment lib_SOURCES.
6777
6778 2011-05-23  Bruno Haible  <bruno@clisp.org>
6779
6780         popen-safer: Move AC_LIBOBJ invocations to module description.
6781         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
6782         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
6783         (configure.ac): Remove gl_POPEN_SAFER call.
6784         (Makefile.am): Augment lib_SOURCES.
6785
6786 2011-05-23  Bruno Haible  <bruno@clisp.org>
6787
6788         freopen-safer: Move AC_LIBOBJ invocations to module description.
6789         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
6790         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
6791         (configure.ac): Remove gl_FREOPEN_SAFER call.
6792         (Makefile.am): Augment lib_SOURCES.
6793
6794 2011-05-23  Bruno Haible  <bruno@clisp.org>
6795
6796         fopen-safer: Move AC_LIBOBJ invocations to module description.
6797         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
6798         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
6799         (configure.ac): Remove gl_FOPEN_SAFER call.
6800         (Makefile.am): Augment lib_SOURCES.
6801
6802 2011-05-23  Bruno Haible  <bruno@clisp.org>
6803
6804         crypto/sha512: Move AC_LIBOBJ invocations to module description.
6805         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
6806         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
6807
6808 2011-05-23  Bruno Haible  <bruno@clisp.org>
6809
6810         crypto/sha256: Move AC_LIBOBJ invocations to module description.
6811         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
6812         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
6813
6814 2011-05-23  Bruno Haible  <bruno@clisp.org>
6815
6816         crypto/sha1: Move AC_LIBOBJ invocations to module description.
6817         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
6818         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
6819
6820 2011-05-23  Bruno Haible  <bruno@clisp.org>
6821
6822         settime: Move AC_LIBOBJ invocations to module description.
6823         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
6824         * modules/settime (Makefile.am): Augment lib_SOURCES.
6825
6826 2011-05-23  Bruno Haible  <bruno@clisp.org>
6827
6828         savedir: Move AC_LIBOBJ invocations to module description.
6829         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
6830         * modules/savedir (Makefile.am): Augment lib_SOURCES.
6831
6832 2011-05-23  Bruno Haible  <bruno@clisp.org>
6833
6834         save-cwd: Move AC_LIBOBJ invocations to module description.
6835         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
6836         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
6837
6838 2011-05-23  Bruno Haible  <bruno@clisp.org>
6839
6840         same: Move AC_LIBOBJ invocations to module description.
6841         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
6842         * modules/same (Makefile.am): Augment lib_SOURCES.
6843
6844 2011-05-23  Bruno Haible  <bruno@clisp.org>
6845
6846         safe-write: Move AC_LIBOBJ invocations to module description.
6847         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
6848         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
6849         instead of gl_SAFE_WRITE.
6850         (Makefile.am): Augment lib_SOURCES.
6851
6852 2011-05-23  Bruno Haible  <bruno@clisp.org>
6853
6854         safe-read: Move AC_LIBOBJ invocations to module description.
6855         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
6856         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
6857         of gl_SAFE_READ.
6858         (Makefile.am): Augment lib_SOURCES.
6859
6860 2011-05-23  Bruno Haible  <bruno@clisp.org>
6861
6862         safe-alloc: Move AC_LIBOBJ invocations to module description.
6863         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
6864         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
6865
6866 2011-05-23  Bruno Haible  <bruno@clisp.org>
6867
6868         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
6869         * m4/rijndael.m4: Remove file.
6870         * modules/crypto/rijndael (Files): Remove it.
6871         (configure.ac): Remove gl_RIJNDAEL call.
6872         (Makefile.am): Augment lib_SOURCES.
6873
6874 2011-05-23  Bruno Haible  <bruno@clisp.org>
6875
6876         readtokens: Move AC_LIBOBJ invocations to module description.
6877         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
6878         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
6879
6880 2011-05-23  Bruno Haible  <bruno@clisp.org>
6881
6882         read-file: Move AC_LIBOBJ invocations to module description.
6883         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
6884         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
6885         of gl_FUNC_READ_FILE.
6886         (Makefile.am): Augment lib_SOURCES.
6887
6888 2011-05-23  Bruno Haible  <bruno@clisp.org>
6889
6890         quotearg: Move AC_LIBOBJ invocations to module description.
6891         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
6892         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
6893
6894 2011-05-23  Bruno Haible  <bruno@clisp.org>
6895
6896         quote: Move AC_LIBOBJ invocations to module description.
6897         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
6898         * modules/quote (Makefile.am): Augment lib_SOURCES.
6899
6900 2011-05-23  Bruno Haible  <bruno@clisp.org>
6901
6902         posixver: Move AC_LIBOBJ invocations to module description.
6903         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
6904         * modules/posixver (Makefile.am): Augment lib_SOURCES.
6905
6906 2011-05-23  Bruno Haible  <bruno@clisp.org>
6907
6908         posixtm: Move AC_LIBOBJ invocations to module description.
6909         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
6910         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
6911
6912 2011-05-23  Bruno Haible  <bruno@clisp.org>
6913
6914         physmem: Move AC_LIBOBJ invocations to module description.
6915         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
6916         * modules/physmem (Makefile.am): Augment lib_SOURCES.
6917
6918 2011-05-23  Bruno Haible  <bruno@clisp.org>
6919
6920         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
6921         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
6922         invocation.
6923         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
6924
6925 2011-05-23  Bruno Haible  <bruno@clisp.org>
6926
6927         mpsort: Move AC_LIBOBJ invocations to module description.
6928         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
6929         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
6930
6931 2011-05-23  Bruno Haible  <bruno@clisp.org>
6932
6933         modechange: Move AC_LIBOBJ invocations to module description.
6934         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
6935         * modules/modechange (Makefile.am): Augment lib_SOURCES.
6936
6937 2011-05-23  Bruno Haible  <bruno@clisp.org>
6938
6939         mkdir-p: Move AC_LIBOBJ invocations to module description.
6940         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
6941         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
6942
6943 2011-05-23  Bruno Haible  <bruno@clisp.org>
6944
6945         mkancesdirs: Move AC_LIBOBJ invocations to module description.
6946         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
6947         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
6948
6949 2011-05-23  Bruno Haible  <bruno@clisp.org>
6950
6951         mgetgroups: Move AC_LIBOBJ invocations to module description.
6952         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
6953         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
6954
6955 2011-05-23  Bruno Haible  <bruno@clisp.org>
6956
6957         memxor: Move AC_LIBOBJ invocations to module description.
6958         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
6959         * modules/memxor (Makefile.am): Augment lib_SOURCES.
6960
6961 2011-05-23  Bruno Haible  <bruno@clisp.org>
6962
6963         memcoll: Move AC_LIBOBJ invocations to module description.
6964         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
6965         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
6966
6967 2011-05-23  Bruno Haible  <bruno@clisp.org>
6968
6969         memcasecmp: Move AC_LIBOBJ invocations to module description.
6970         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
6971         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
6972
6973 2011-05-23  Bruno Haible  <bruno@clisp.org>
6974
6975         crypto/md5: Move AC_LIBOBJ invocations to module description.
6976         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
6977         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
6978
6979 2011-05-23  Bruno Haible  <bruno@clisp.org>
6980
6981         crypto/md4: Move AC_LIBOBJ invocations to module description.
6982         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
6983         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
6984
6985 2011-05-23  Bruno Haible  <bruno@clisp.org>
6986
6987         crypto/md2: Move AC_LIBOBJ invocations to module description.
6988         * m4/md2.m4: Remove file.
6989         * modules/crypto/md2 (Files): Remove it.
6990         (configure.ac): Remove gl_MD2 call.
6991         (Makefile.am): Augment lib_SOURCES.
6992
6993 2011-05-23  Bruno Haible  <bruno@clisp.org>
6994
6995         long-options: Move AC_LIBOBJ invocations to module description.
6996         * m4/long-options.m4: Remove file.
6997         * modules/long-options (Files): Remove it.
6998         (configure.ac): Remove gl_LONG_OPTIONS call.
6999         (Makefile.am): Augment lib_SOURCES.
7000
7001 2011-05-23  Bruno Haible  <bruno@clisp.org>
7002
7003         i-ring: Move AC_LIBOBJ invocations to module description.
7004         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
7005         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
7006
7007 2011-05-23  Bruno Haible  <bruno@clisp.org>
7008
7009         idcache: Move AC_LIBOBJ invocations to module description.
7010         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
7011         * modules/idcache (Makefile.am): Augment lib_SOURCES.
7012
7013 2011-05-23  Bruno Haible  <bruno@clisp.org>
7014
7015         human: Move AC_LIBOBJ invocations to module description.
7016         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
7017         * modules/human (Makefile.am): Augment lib_SOURCES.
7018
7019 2011-05-23  Bruno Haible  <bruno@clisp.org>
7020
7021         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
7022         * m4/hmac-sha1.m4: Remove file.
7023         * modules/crypto/hmac-sha1 (Files): Remove it.
7024         (configure.ac): Remove gl_HMAC_SHA1 call.
7025         (Makefile.am): Augment lib_SOURCES.
7026
7027 2011-05-23  Bruno Haible  <bruno@clisp.org>
7028
7029         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
7030         * m4/hmac-md5.m4: Remove file.
7031         * modules/crypto/hmac-md5 (Files): Remove it.
7032         (configure.ac): Remove gl_HMAC_MD5 call.
7033         (Makefile.am): Augment lib_SOURCES.
7034
7035 2011-05-23  Bruno Haible  <bruno@clisp.org>
7036
7037         hash: Move AC_LIBOBJ invocations to module description.
7038         * m4/hash.m4: Remove file.
7039         * modules/hash (Files): Remove it.
7040         (configure.ac): Remove gl_HASH call.
7041         (Makefile.am): Augment lib_SOURCES.
7042
7043 2011-05-23  Bruno Haible  <bruno@clisp.org>
7044
7045         hard-locale: Move AC_LIBOBJ invocations to module description.
7046         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
7047         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
7048
7049 2011-05-23  Bruno Haible  <bruno@clisp.org>
7050
7051         getugroups: Move AC_LIBOBJ invocations to module description.
7052         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
7053         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
7054
7055 2011-05-23  Bruno Haible  <bruno@clisp.org>
7056
7057         gettime: Move AC_LIBOBJ invocations to module description.
7058         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
7059         * modules/gettime (Makefile.am): Augment lib_SOURCES.
7060
7061 2011-05-23  Bruno Haible  <bruno@clisp.org>
7062
7063         getndelim2: Move AC_LIBOBJ invocations to module description.
7064         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
7065         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
7066
7067 2011-05-23  Bruno Haible  <bruno@clisp.org>
7068
7069         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
7070         * m4/gc-pbkdf2-sha1.m4: Remove file.
7071         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
7072         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
7073         (Makefile.am): Augment lib_SOURCES.
7074
7075 2011-05-23  Bruno Haible  <bruno@clisp.org>
7076
7077         fts: Move AC_LIBOBJ invocations to module description.
7078         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
7079         * modules/fts (configure.ac): ... to here.
7080
7081 2011-05-23  Bruno Haible  <bruno@clisp.org>
7082
7083         file-type: Move AC_LIBOBJ invocations to module description.
7084         * m4/file-type.m4: Remove file.
7085         * modules/file-type (Files): Remove it.
7086         (configure.ac): Remove gl_FILE_TYPE call.
7087         (Makefile.am): Augment lib_SOURCES.
7088
7089 2011-05-23  Bruno Haible  <bruno@clisp.org>
7090
7091         filenamecat*: Respect rules for use of AC_LIBOBJ.
7092         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
7093         Remove AC_LIBOBJ invocation.
7094         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
7095         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
7096
7097 2011-05-23  Bruno Haible  <bruno@clisp.org>
7098
7099         filemode: Move AC_LIBOBJ invocations to module description.
7100         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
7101         * modules/filemode (Makefile.am): Augment lib_SOURCES.
7102
7103 2011-05-23  Bruno Haible  <bruno@clisp.org>
7104
7105         openat-safer: Move AC_LIBOBJ invocations to module description.
7106         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
7107         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
7108
7109 2011-05-23  Bruno Haible  <bruno@clisp.org>
7110
7111         fcntl-safer: Move AC_LIBOBJ invocations to module description.
7112         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
7113         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
7114
7115 2011-05-23  Bruno Haible  <bruno@clisp.org>
7116
7117         exclude: Move AC_LIBOBJ invocations to module description.
7118         * m4/exclude.m4: Remove file.
7119         * modules/exclude (Files): Remove it.
7120         (configure.ac): Remove gl_EXCLUDE call.
7121         (Makefile.am): Augment lib_SOURCES.
7122
7123 2011-05-23  Bruno Haible  <bruno@clisp.org>
7124
7125         dirname*: Respect rules for use of AC_LIBOBJ.
7126         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
7127         invocations.
7128         * modules/dirname (Makefile.am): Augment lib_SOURCES.
7129         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
7130
7131 2011-05-23  Bruno Haible  <bruno@clisp.org>
7132
7133         dirent-safer: Move AC_LIBOBJ invocations to module description.
7134         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
7135         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
7136
7137 2011-05-23  Bruno Haible  <bruno@clisp.org>
7138
7139         crypto/des: Move AC_LIBOBJ invocations to module description.
7140         * m4/des.m4: Remove file.
7141         * modules/crypto/des (Files): Remove it.
7142         (configure.ac): Remove gl_DES call.
7143         (Makefile.am): Augment lib_SOURCES.
7144
7145 2011-05-23  Bruno Haible  <bruno@clisp.org>
7146
7147         cycle-check: Move AC_LIBOBJ invocations to module description.
7148         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
7149         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
7150
7151 2011-05-23  Bruno Haible  <bruno@clisp.org>
7152
7153         c-strtold: Move AC_LIBOBJ invocations to module description.
7154         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
7155         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
7156
7157 2011-05-23  Bruno Haible  <bruno@clisp.org>
7158
7159         c-strtod: Move AC_LIBOBJ invocations to module description.
7160         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
7161         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
7162
7163 2011-05-23  Bruno Haible  <bruno@clisp.org>
7164
7165         crc: Move AC_LIBOBJ invocations to module description.
7166         * m4/crc.m4: Remove file.
7167         * modules/crc (Files): Remove it.
7168         (configure.ac): Remove gl_CRC call.
7169         (Makefile.am): Augment lib_SOURCES.
7170
7171 2011-05-23  Bruno Haible  <bruno@clisp.org>
7172
7173         close-stream: Move AC_LIBOBJ invocations to module description.
7174         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
7175         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
7176
7177 2011-05-23  Bruno Haible  <bruno@clisp.org>
7178
7179         closeout: Move AC_LIBOBJ invocations to module description.
7180         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
7181         * modules/closeout (Makefile.am): Augment lib_SOURCES.
7182
7183 2011-05-23  Bruno Haible  <bruno@clisp.org>
7184
7185         closein: Move AC_LIBOBJ invocations to module description.
7186         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
7187         * modules/closein (Makefile.am): Augment lib_SOURCES.
7188
7189 2011-05-23  Bruno Haible  <bruno@clisp.org>
7190
7191         cloexec: Move AC_LIBOBJ invocations to module description.
7192         * m4/cloexec.m4: Remove file.
7193         * modules/cloexec (Files): Remove it.
7194         (configure.ac): Remove gl_CLOEXEC call.
7195         (Makefile.am): Augment lib_SOURCES.
7196
7197 2011-05-23  Bruno Haible  <bruno@clisp.org>
7198
7199         check-version: Move AC_LIBOBJ invocations to module description.
7200         * m4/check-version.m4: Remove file.
7201         * modules/check-version (Files): Remove it.
7202         (configure.ac): Remove gl_CHECK_VERSION call.
7203         (Makefile.am): Augment lib_SOURCES.
7204
7205 2011-05-23  Bruno Haible  <bruno@clisp.org>
7206
7207         chdir-safer: Move AC_LIBOBJ invocations to module description.
7208         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
7209         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
7210
7211 2011-05-23  Bruno Haible  <bruno@clisp.org>
7212
7213         canonicalize: Move AC_LIBOBJ invocations to module description.
7214         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
7215         AC_LIBOBJ invocation.
7216         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
7217
7218 2011-05-23  Bruno Haible  <bruno@clisp.org>
7219
7220         canon-host: Move AC_LIBOBJ invocations to module description.
7221         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
7222         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
7223         instead of gl_CANON_HOST.
7224         (Makefile.am): Augment lib_SOURCES.
7225
7226 2011-05-23  Bruno Haible  <bruno@clisp.org>
7227
7228         backupfile: Move AC_LIBOBJ invocations to module description.
7229         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
7230         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
7231
7232 2011-05-23  Bruno Haible  <bruno@clisp.org>
7233
7234         argmatch: Move AC_LIBOBJ invocations to module description.
7235         * m4/argmatch.m4: Remove file.
7236         * modules/argmatch (Files): Remove it.
7237         (configure.ac): Remove gl_ARGMATCH call.
7238         (Makefile.am): Augment lib_SOURCES.
7239
7240 2011-05-23  Bruno Haible  <bruno@clisp.org>
7241
7242         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
7243         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
7244         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
7245
7246 2011-05-23  Bruno Haible  <bruno@clisp.org>
7247
7248         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
7249         * m4/arcfour.m4: Remove file.
7250         * modules/crypto/arcfour (Files): Remove it.
7251         (configure.ac): Remove gl_ARCFOUR call.
7252         (Makefile.am): Augment lib_SOURCES.
7253
7254 2011-05-22  Bruno Haible  <bruno@clisp.org>
7255
7256         write: Move AC_LIBOBJ invocations to module description.
7257         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
7258         * modules/write (configure.ac): ... to here.
7259
7260 2011-05-22  Bruno Haible  <bruno@clisp.org>
7261
7262         wmemset: Move AC_LIBOBJ invocations to module description.
7263         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
7264         here...
7265         * modules/wmemset (configure.ac): ... to here.
7266
7267 2011-05-22  Bruno Haible  <bruno@clisp.org>
7268
7269         wmemmove: Move AC_LIBOBJ invocations to module description.
7270         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
7271         here...
7272         * modules/wmemmove (configure.ac): ... to here.
7273
7274 2011-05-22  Bruno Haible  <bruno@clisp.org>
7275
7276         wmemcpy: Move AC_LIBOBJ invocations to module description.
7277         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
7278         here...
7279         * modules/wmemcpy (configure.ac): ... to here.
7280
7281 2011-05-22  Bruno Haible  <bruno@clisp.org>
7282
7283         wmemcmp: Move AC_LIBOBJ invocations to module description.
7284         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
7285         here...
7286         * modules/wmemcmp (configure.ac): ... to here.
7287
7288 2011-05-22  Bruno Haible  <bruno@clisp.org>
7289
7290         wmemchr: Move AC_LIBOBJ invocations to module description.
7291         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
7292         here...
7293         * modules/wmemchr (configure.ac): ... to here.
7294
7295 2011-05-22  Bruno Haible  <bruno@clisp.org>
7296
7297         wcswidth: Move AC_LIBOBJ invocations to module description.
7298         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
7299         here...
7300         * modules/wcswidth (configure.ac): ... to here.
7301
7302 2011-05-22  Bruno Haible  <bruno@clisp.org>
7303
7304         wcwidth: Respect rules for use of AC_LIBOBJ.
7305         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
7306         invocation from here...
7307         * modules/wcwidth (configure.ac): ... to here.
7308         (Depends-on): Update conditions.
7309
7310 2011-05-22  Bruno Haible  <bruno@clisp.org>
7311
7312         wctype: Move AC_LIBOBJ invocations to module description.
7313         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
7314         invocation from here...
7315         * modules/wctype (configure.ac): ... to here.
7316         (Depends-on): Update conditions.
7317
7318 2011-05-22  Bruno Haible  <bruno@clisp.org>
7319
7320         wctrans: Move AC_LIBOBJ invocations to module description.
7321         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
7322         invocation from here...
7323         * modules/wctrans (configure.ac): ... to here.
7324
7325 2011-05-22  Bruno Haible  <bruno@clisp.org>
7326
7327         wctomb: Move AC_LIBOBJ invocations to module description.
7328         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
7329         invocations from here...
7330         * modules/wctomb (configure.ac): ... to here.
7331
7332 2011-05-22  Bruno Haible  <bruno@clisp.org>
7333
7334         wctob: Move AC_LIBOBJ invocations to module description.
7335         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
7336         gl_PREREQ_WCTOB invocations from here...
7337         * modules/wctob (configure.ac): ... to here.
7338         (Depends-on): Update conditions.
7339
7340 2011-05-22  Bruno Haible  <bruno@clisp.org>
7341
7342         wcsxfrm: Move AC_LIBOBJ invocations to module description.
7343         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
7344         here...
7345         * modules/wcsxfrm (configure.ac): ... to here.
7346
7347 2011-05-22  Bruno Haible  <bruno@clisp.org>
7348
7349         wcstok: Move AC_LIBOBJ invocations to module description.
7350         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
7351         * modules/wcstok (configure.ac): ... to here.
7352
7353 2011-05-22  Bruno Haible  <bruno@clisp.org>
7354
7355         wcsstr: Move AC_LIBOBJ invocations to module description.
7356         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
7357         * modules/wcsstr (configure.ac): ... to here.
7358
7359 2011-05-22  Bruno Haible  <bruno@clisp.org>
7360
7361         wcsspn: Move AC_LIBOBJ invocations to module description.
7362         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
7363         * modules/wcsspn (configure.ac): ... to here.
7364
7365 2011-05-22  Bruno Haible  <bruno@clisp.org>
7366
7367         wcsrtombs: Move AC_LIBOBJ invocations to module description.
7368         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
7369         gl_PREREQ_WCSRTOMBS invocations from here...
7370         * modules/wcsrtombs (configure.ac): ... to here.
7371
7372 2011-05-22  Bruno Haible  <bruno@clisp.org>
7373
7374         wcsrchr: Move AC_LIBOBJ invocations to module description.
7375         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
7376         here...
7377         * modules/wcsrchr (configure.ac): ... to here.
7378
7379 2011-05-22  Bruno Haible  <bruno@clisp.org>
7380
7381         wcspbrk: Move AC_LIBOBJ invocations to module description.
7382         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
7383         here...
7384         * modules/wcspbrk (configure.ac): ... to here.
7385
7386 2011-05-22  Bruno Haible  <bruno@clisp.org>
7387
7388         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
7389         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
7390         gl_PREREQ_WCSNRTOMBS invocations from here...
7391         * modules/wcsnrtombs (configure.ac): ... to here.
7392
7393 2011-05-22  Bruno Haible  <bruno@clisp.org>
7394
7395         wcsnlen: Move AC_LIBOBJ invocations to module description.
7396         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
7397         here...
7398         * modules/wcsnlen (configure.ac): ... to here.
7399
7400 2011-05-22  Bruno Haible  <bruno@clisp.org>
7401
7402         wcsncpy: Move AC_LIBOBJ invocations to module description.
7403         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
7404         here...
7405         * modules/wcsncpy (configure.ac): ... to here.
7406
7407 2011-05-22  Bruno Haible  <bruno@clisp.org>
7408
7409         wcsncmp: Move AC_LIBOBJ invocations to module description.
7410         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
7411         here...
7412         * modules/wcsncmp (configure.ac): ... to here.
7413
7414 2011-05-22  Bruno Haible  <bruno@clisp.org>
7415
7416         wcsncat: Move AC_LIBOBJ invocations to module description.
7417         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
7418         here...
7419         * modules/wcsncat (configure.ac): ... to here.
7420
7421 2011-05-22  Bruno Haible  <bruno@clisp.org>
7422
7423         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
7424         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
7425         from here...
7426         * modules/wcsncasecmp (configure.ac): ... to here.
7427
7428 2011-05-22  Bruno Haible  <bruno@clisp.org>
7429
7430         wcslen: Move AC_LIBOBJ invocations to module description.
7431         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
7432         * modules/wcslen (configure.ac): ... to here.
7433
7434 2011-05-22  Bruno Haible  <bruno@clisp.org>
7435
7436         wcsdup: Move AC_LIBOBJ invocations to module description.
7437         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
7438         * modules/wcsdup (configure.ac): ... to here.
7439
7440 2011-05-22  Bruno Haible  <bruno@clisp.org>
7441
7442         wcscspn: Move AC_LIBOBJ invocations to module description.
7443         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
7444         here...
7445         * modules/wcscspn (configure.ac): ... to here.
7446
7447 2011-05-22  Bruno Haible  <bruno@clisp.org>
7448
7449         wcscpy: Move AC_LIBOBJ invocations to module description.
7450         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
7451         * modules/wcscpy (configure.ac): ... to here.
7452
7453 2011-05-22  Bruno Haible  <bruno@clisp.org>
7454
7455         wcscoll: Move AC_LIBOBJ invocations to module description.
7456         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
7457         here...
7458         * modules/wcscoll (configure.ac): ... to here.
7459
7460 2011-05-22  Bruno Haible  <bruno@clisp.org>
7461
7462         wcscmp: Move AC_LIBOBJ invocations to module description.
7463         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
7464         * modules/wcscmp (configure.ac): ... to here.
7465
7466 2011-05-22  Bruno Haible  <bruno@clisp.org>
7467
7468         wcschr: Move AC_LIBOBJ invocations to module description.
7469         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
7470         * modules/wcschr (configure.ac): ... to here.
7471
7472 2011-05-22  Bruno Haible  <bruno@clisp.org>
7473
7474         wcscat: Move AC_LIBOBJ invocations to module description.
7475         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
7476         * modules/wcscat (configure.ac): ... to here.
7477
7478 2011-05-22  Bruno Haible  <bruno@clisp.org>
7479
7480         wcscasecmp: Move AC_LIBOBJ invocations to module description.
7481         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
7482         here...
7483         * modules/wcscasecmp (configure.ac): ... to here.
7484
7485 2011-05-22  Bruno Haible  <bruno@clisp.org>
7486
7487         wcrtomb: Move AC_LIBOBJ invocations to module description.
7488         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
7489         invocations from here...
7490         * modules/wcrtomb (configure.ac): ... to here.
7491
7492 2011-05-22  Bruno Haible  <bruno@clisp.org>
7493
7494         wcpncpy: Move AC_LIBOBJ invocations to module description.
7495         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
7496         here...
7497         * modules/wcpncpy (configure.ac): ... to here.
7498
7499 2011-05-22  Bruno Haible  <bruno@clisp.org>
7500
7501         wcpcpy: Move AC_LIBOBJ invocations to module description.
7502         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
7503         * modules/wcpcpy (configure.ac): ... to here.
7504
7505 2011-05-22  Bruno Haible  <bruno@clisp.org>
7506
7507         waitpid: Move AC_LIBOBJ invocations to module description.
7508         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
7509         invocation from here...
7510         * modules/waitpid (configure.ac): ... to here.
7511
7512 2011-05-22  Bruno Haible  <bruno@clisp.org>
7513
7514         utimensat: Move AC_LIBOBJ invocations to module description.
7515         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
7516         here...
7517         * modules/utimensat (configure.ac): ... to here.
7518
7519 2011-05-22  Bruno Haible  <bruno@clisp.org>
7520
7521         usleep: Move AC_LIBOBJ invocations to module description.
7522         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
7523         here...
7524         * modules/usleep (configure.ac): ... to here.
7525
7526 2011-05-22  Bruno Haible  <bruno@clisp.org>
7527
7528         unlockpt: Move AC_LIBOBJ invocations to module description.
7529         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
7530         gl_PREREQ_UNLOCKPT invocations from here...
7531         * modules/unlockpt (configure.ac): ... to here.
7532
7533 2011-05-22  Bruno Haible  <bruno@clisp.org>
7534
7535         unlink: Respect rules for use of AC_LIBOBJ.
7536         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
7537         * modules/unlink (configure.ac): ... to here.
7538
7539 2011-05-22  Bruno Haible  <bruno@clisp.org>
7540
7541         uname: Move AC_LIBOBJ invocations to module description.
7542         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
7543         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
7544         here...
7545         * modules/uname (configure.ac): ... to here.
7546
7547 2011-05-22  Bruno Haible  <bruno@clisp.org>
7548
7549         ttyname_r: Move AC_LIBOBJ invocations to module description.
7550         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
7551         gl_PREREQ_TTYNAME_R invocations from here...
7552         * modules/ttyname_r (configure.ac): ... to here.
7553
7554 2011-05-22  Bruno Haible  <bruno@clisp.org>
7555
7556         tsearch: Move AC_LIBOBJ invocations to module description.
7557         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
7558         invocations from here...
7559         * modules/tsearch (configure.ac): ... to here.
7560
7561 2011-05-22  Bruno Haible  <bruno@clisp.org>
7562
7563         towctrans: Move AC_LIBOBJ invocations to module description.
7564         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
7565         AC_LIBOBJ invocation from here...
7566         * modules/towctrans (configure.ac): ... to here.
7567
7568 2011-05-22  Bruno Haible  <bruno@clisp.org>
7569
7570         tmpfile: Move AC_LIBOBJ invocations to module description.
7571         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
7572         invocations from here...
7573         * modules/tmpfile (configure.ac): ... to here.
7574
7575 2011-05-22  Bruno Haible  <bruno@clisp.org>
7576
7577         times: Move AC_LIBOBJ invocations to module description.
7578         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
7579         * modules/times (configure.ac): ... to here.
7580
7581 2011-05-22  Bruno Haible  <bruno@clisp.org>
7582
7583         time_r: Move AC_LIBOBJ invocations to module description.
7584         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
7585         invocations from here...
7586         * modules/time_r (configure.ac): ... to here.
7587
7588 2011-05-22  Bruno Haible  <bruno@clisp.org>
7589
7590         timegm: Move AC_LIBOBJ invocations to module description.
7591         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
7592         invocations from here...
7593         * modules/timegm (configure.ac): ... to here.
7594
7595 2011-05-22  Bruno Haible  <bruno@clisp.org>
7596
7597         tcgetsid: Move AC_LIBOBJ invocations to module description.
7598         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
7599         and gl_PREREQ_TCGETSID invocations from here...
7600         * modules/tcgetsid (configure.ac): ... to here.
7601         (Depends-on): Update conditions.
7602
7603 2011-05-22  Bruno Haible  <bruno@clisp.org>
7604
7605         symlinkat: Move AC_LIBOBJ invocations to module description.
7606         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
7607         here...
7608         * modules/symlinkat (configure.ac): ... to here.
7609
7610 2011-05-22  Bruno Haible  <bruno@clisp.org>
7611
7612         symlink: Move AC_LIBOBJ invocations to module description.
7613         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
7614         here...
7615         * modules/symlink (configure.ac): ... to here.
7616
7617 2011-05-22  Bruno Haible  <bruno@clisp.org>
7618
7619         strverscmp: Move AC_LIBOBJ invocations to module description.
7620         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
7621         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
7622         from here...
7623         * modules/strverscmp (configure.ac): ... to here.
7624
7625 2011-05-22  Bruno Haible  <bruno@clisp.org>
7626
7627         strtok_r: Move AC_LIBOBJ invocations to module description.
7628         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
7629         and gl_PREREQ_STRTOK_R invocations from here...
7630         * modules/strtok_r (configure.ac): ... to here.
7631         (Depends-on): Update conditions.
7632
7633 2011-05-22  Bruno Haible  <bruno@clisp.org>
7634
7635         strtoumax: Move AC_LIBOBJ invocations to module description.
7636         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
7637         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
7638         from here...
7639         * modules/strtoumax (configure.ac): ... to here.
7640
7641 2011-05-22  Bruno Haible  <bruno@clisp.org>
7642
7643         strtoimax: Move AC_LIBOBJ invocations to module description.
7644         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
7645         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
7646         from here...
7647         * modules/strtoimax (configure.ac): ... to here.
7648
7649 2011-05-22  Bruno Haible  <bruno@clisp.org>
7650
7651         strtoull: Move AC_LIBOBJ invocations to module description.
7652         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
7653         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
7654         from here...
7655         * modules/strtoull (configure.ac): ... to here.
7656
7657 2011-05-22  Bruno Haible  <bruno@clisp.org>
7658
7659         strtoll: Move AC_LIBOBJ invocations to module description.
7660         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
7661         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
7662         here...
7663         * modules/strtoll (configure.ac): ... to here.
7664
7665 2011-05-22  Bruno Haible  <bruno@clisp.org>
7666
7667         strtoul: Move AC_LIBOBJ invocations to module description.
7668         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
7669         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
7670         * modules/strtoul (configure.ac): ... to here.
7671
7672 2011-05-22  Bruno Haible  <bruno@clisp.org>
7673
7674         strtol: Move AC_LIBOBJ invocations to module description.
7675         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
7676         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
7677         * modules/strtol (configure.ac): ... to here.
7678
7679 2011-05-22  Bruno Haible  <bruno@clisp.org>
7680
7681         strtod: Move AC_LIBOBJ invocations to module description.
7682         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
7683         invocations from here...
7684         * modules/strtod (configure.ac): ... to here.
7685
7686 2011-05-22  Bruno Haible  <bruno@clisp.org>
7687
7688         strstr*: Move AC_LIBOBJ invocations to module description.
7689         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
7690         invocations from here...
7691         * modules/strstr-simple (configure.ac): ... to here.
7692         * modules/strstr (configure.ac): ... and here.
7693
7694 2011-05-22  Bruno Haible  <bruno@clisp.org>
7695
7696         strsignal: Move AC_LIBOBJ invocations to module description.
7697         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
7698         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
7699         * modules/strsignal (configure.ac): ... to here.
7700         (Depends-on): Update conditions.
7701
7702 2011-05-22  Bruno Haible  <bruno@clisp.org>
7703
7704         strsep: Move AC_LIBOBJ invocations to module description.
7705         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
7706         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
7707         here...
7708         * modules/strsep (configure.ac): ... to here.
7709
7710 2011-05-22  Bruno Haible  <bruno@clisp.org>
7711
7712         strptime: Move AC_LIBOBJ invocations to module description.
7713         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
7714         gl_PREREQ_STRPTIME invocations from here...
7715         * modules/strptime (configure.ac): ... to here.
7716
7717 2011-05-22  Bruno Haible  <bruno@clisp.org>
7718
7719         strpbrk: Move AC_LIBOBJ invocations to module description.
7720         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
7721         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
7722         here...
7723         * modules/strpbrk (configure.ac): ... to here.
7724
7725 2011-05-22  Bruno Haible  <bruno@clisp.org>
7726
7727         strnlen: Move AC_LIBOBJ invocations to module description.
7728         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
7729         invocations from here...
7730         * modules/strnlen (configure.ac): ... to here.
7731
7732 2011-05-22  Bruno Haible  <bruno@clisp.org>
7733
7734         strndup: Move AC_LIBOBJ invocations to module description.
7735         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
7736         invocations from here...
7737         * modules/strndup (configure.ac): ... to here.
7738         (Depends-on): Update conditions.
7739
7740 2011-05-22  Bruno Haible  <bruno@clisp.org>
7741
7742         strncat: Move AC_LIBOBJ invocations to module description.
7743         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
7744         invocations from here...
7745         * modules/strncat (configure.ac): ... to here.
7746
7747 2011-05-22  Bruno Haible  <bruno@clisp.org>
7748
7749         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
7750         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
7751         invocations from here...
7752         * modules/strdup (configure.ac): ... to here.
7753         * modules/strdup-posix (configure.ac): ... and here.
7754
7755 2011-05-22  Bruno Haible  <bruno@clisp.org>
7756
7757         strcspn: Move AC_LIBOBJ invocations to module description.
7758         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
7759         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
7760         here...
7761         * modules/strcspn (configure.ac): ... to here.
7762
7763 2011-05-22  Bruno Haible  <bruno@clisp.org>
7764
7765         strchrnul: Move AC_LIBOBJ invocations to module description.
7766         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
7767         gl_PREREQ_STRCHRNUL invocations from here...
7768         * modules/strchrnul (configure.ac): ... to here.
7769
7770 2011-05-22  Bruno Haible  <bruno@clisp.org>
7771
7772         strcasestr*: Move AC_LIBOBJ invocations to module description.
7773         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
7774         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
7775         * modules/strcasestr-simple (configure.ac): ... to here.
7776         * modules/strcasestr (configure.ac): ... and here.
7777
7778 2011-05-22  Bruno Haible  <bruno@clisp.org>
7779
7780         strcase: Move AC_LIBOBJ invocations to module description.
7781         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
7782         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
7783         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
7784         gl_PREREQ_STRNCASECMP invocations from here...
7785         * modules/strcase (configure.ac): ... to here.
7786
7787 2011-05-22  Bruno Haible  <bruno@clisp.org>
7788
7789         stpncpy: Move AC_LIBOBJ invocations to module description.
7790         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
7791         here...
7792         * modules/stpncpy (configure.ac): ... to here.
7793
7794 2011-05-22  Bruno Haible  <bruno@clisp.org>
7795
7796         stpcpy: Move AC_LIBOBJ invocations to module description.
7797         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
7798         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
7799         here...
7800         * modules/stpcpy (configure.ac): ... to here.
7801
7802 2011-05-21  Bruno Haible  <bruno@clisp.org>
7803
7804         stat: Move AC_LIBOBJ invocations to module description.
7805         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
7806         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
7807         here...
7808         * modules/stat (configure.ac): ... to here.
7809
7810 2011-05-21  Bruno Haible  <bruno@clisp.org>
7811
7812         sleep: Move AC_LIBOBJ invocations to module description.
7813         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
7814         * modules/sleep (configure.ac): ... to here.
7815
7816 2011-05-21  Bruno Haible  <bruno@clisp.org>
7817
7818         signbit: Move AC_LIBOBJ invocations to module description.
7819         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
7820         * modules/signbit (configure.ac): ... to here.
7821
7822 2011-05-21  Bruno Haible  <bruno@clisp.org>
7823
7824         sigprocmask: Move AC_LIBOBJ invocations to module description.
7825         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
7826         gl_PREREQ_SIGPROMASK invocations from here...
7827         * modules/sigprocmask (configure.ac): ... to here.
7828
7829 2011-05-21  Bruno Haible  <bruno@clisp.org>
7830
7831         sigaction: Move AC_LIBOBJ invocations to module description.
7832         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
7833         gl_PREREQ_SIGACTION invocations from here...
7834         * modules/sigaction (configure.ac): ... to here.
7835
7836 2011-05-21  Bruno Haible  <bruno@clisp.org>
7837
7838         sig2str: Move AC_LIBOBJ invocations to module description.
7839         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
7840         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
7841         here...
7842         * modules/sig2str (configure.ac): ... to here.
7843
7844 2011-05-21  Bruno Haible  <bruno@clisp.org>
7845
7846         setlocale: Move AC_LIBOBJ invocations to module description.
7847         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
7848         gl_PREREQ_SETLOCALE invocations from here...
7849         * modules/setlocale (configure.ac): ... to here.
7850
7851 2011-05-21  Bruno Haible  <bruno@clisp.org>
7852
7853         unsetenv: Move AC_LIBOBJ invocations to module description.
7854         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
7855         and gl_PREREQ_UNSETENV invocations from here...
7856         * modules/unsetenv (configure.ac): ... to here.
7857         (Depends-on): Update.
7858
7859 2011-05-21  Bruno Haible  <bruno@clisp.org>
7860
7861         setenv: Move AC_LIBOBJ invocations to module description.
7862         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
7863         here...
7864         * modules/setenv (configure.ac): ... to here.
7865
7866 2011-05-21  Bruno Haible  <bruno@clisp.org>
7867
7868         selinux-h: Move AC_LIBOBJ invocations to module description.
7869         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
7870         AC_LIBOBJ invocation from here...
7871         * modules/selinux-h (configure.ac): ... to here.
7872
7873 2011-05-21  Bruno Haible  <bruno@clisp.org>
7874
7875         select: Respect rules for use of AC_LIBOBJ.
7876         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
7877         here...
7878         * modules/select (configure.ac): ... to here.
7879
7880 2011-05-21  Bruno Haible  <bruno@clisp.org>
7881
7882         scandir: Move AC_LIBOBJ invocations to module description.
7883         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
7884         invocations from here...
7885         * modules/scandir (configure.ac): ... to here.
7886
7887 2011-05-21  Bruno Haible  <bruno@clisp.org>
7888
7889         rpmatch: Move AC_LIBOBJ invocations to module description.
7890         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
7891         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
7892         here...
7893         * modules/rpmatch (configure.ac): ... to here.
7894
7895 2011-05-21  Bruno Haible  <bruno@clisp.org>
7896
7897         rmdir: Respect rules for use of AC_LIBOBJ.
7898         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
7899         * modules/rmdir (configure.ac): ... to here.
7900
7901 2011-05-21  Bruno Haible  <bruno@clisp.org>
7902
7903         renameat: Move AC_LIBOBJ invocations to module description.
7904         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
7905         here...
7906         * modules/renameat (configure.ac): ... to here.
7907
7908 2011-05-21  Bruno Haible  <bruno@clisp.org>
7909
7910         rename: Respect rules for use of AC_LIBOBJ.
7911         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
7912         here...
7913         * modules/rename (configure.ac): ... to here.
7914
7915 2011-05-21  Bruno Haible  <bruno@clisp.org>
7916
7917         remove: Move AC_LIBOBJ invocations to module description.
7918         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
7919         here...
7920         * modules/remove (configure.ac): ... to here.
7921
7922 2011-05-21  Bruno Haible  <bruno@clisp.org>
7923
7924         relocatable-lib: Move AC_LIBOBJ invocations to module description.
7925         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
7926         macro.
7927         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
7928         * modules/relocatable-lib (configure.ac): ... to here.
7929         * modules/relocatable-prog-wrapper (configure.ac): Invoke
7930         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
7931
7932 2011-05-21  Bruno Haible  <bruno@clisp.org>
7933
7934         relocatable-prog: Move AC_LIBOBJ invocations to module description.
7935         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
7936         here...
7937         * modules/relocatable-prog (configure.ac): ... to here.
7938
7939 2011-05-21  Bruno Haible  <bruno@clisp.org>
7940
7941         regex: Move AC_LIBOBJ invocations to module description.
7942         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
7943         invocations from here...
7944         * modules/regex (configure.ac): ... to here.
7945
7946 2011-05-21  Bruno Haible  <bruno@clisp.org>
7947
7948         realloc-*: Move AC_LIBOBJ invocations to module description.
7949         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
7950         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
7951         AC_LIBOBJ invocations from here...
7952         * modules/realloc-gnu (configure.ac): ... to here.
7953         * modules/realloc-posix (configure.ac): ... and here.
7954
7955 2011-05-21  Bruno Haible  <bruno@clisp.org>
7956
7957         readutmp: Move AC_LIBOBJ invocations to module description.
7958         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
7959         * modules/readutmp (configure.ac): ... to here.
7960
7961 2011-05-21  Bruno Haible  <bruno@clisp.org>
7962
7963         readlinkat: Move AC_LIBOBJ invocations to module description.
7964         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
7965         here...
7966         * modules/readlinkat (configure.ac): ... to here.
7967
7968 2011-05-21  Bruno Haible  <bruno@clisp.org>
7969
7970         readlink: Move AC_LIBOBJ invocations to module description.
7971         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
7972         gl_PREREQ_READLINK invocations from here...
7973         * modules/readlink (configure.ac): ... to here.
7974
7975 2011-05-21  Bruno Haible  <bruno@clisp.org>
7976
7977         readline: Move AC_LIBOBJ invocations to module description.
7978         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
7979         gl_PREREQ_READLINE invocations from here...
7980         * modules/readline (configure.ac): ... to here.
7981
7982 2011-05-21  Bruno Haible  <bruno@clisp.org>
7983
7984         read: Move AC_LIBOBJ invocations to module description.
7985         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
7986         * modules/read (configure.ac): ... to here.
7987
7988 2011-05-21  Bruno Haible  <bruno@clisp.org>
7989
7990         rawmemchr: Move AC_LIBOBJ invocations to module description.
7991         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
7992         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
7993         from here...
7994         * modules/rawmemchr (configure.ac): ... to here.
7995
7996 2011-05-21  Bruno Haible  <bruno@clisp.org>
7997
7998         random_r: Move AC_LIBOBJ invocations to module description.
7999         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
8000         gl_PREREQ_RANDOM_R invocations from here...
8001         * modules/random_r (configure.ac): ... to here.
8002
8003 2011-05-21  Bruno Haible  <bruno@clisp.org>
8004
8005         pwrite: Move AC_LIBOBJ invocations to module description.
8006         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
8007         * modules/pwrite (configure.ac): ... to here.
8008
8009 2011-05-21  Bruno Haible  <bruno@clisp.org>
8010
8011         putenv: Move AC_LIBOBJ invocations to module description.
8012         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
8013         * modules/putenv (configure.ac): ... to here.
8014
8015 2011-05-21  Bruno Haible  <bruno@clisp.org>
8016
8017         login_tty: Move AC_LIBOBJ invocations to module description.
8018         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
8019         * modules/login_tty (configure.ac): ... to here.
8020
8021 2011-05-21  Bruno Haible  <bruno@clisp.org>
8022
8023         openpty: Move AC_LIBOBJ invocations to module description.
8024         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
8025         * modules/openpty (configure.ac): ... to here.
8026
8027 2011-05-21  Bruno Haible  <bruno@clisp.org>
8028
8029         forkpty: Move AC_LIBOBJ invocations to module description.
8030         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
8031         * modules/forkpty (configure.ac): ... to here.
8032
8033 2011-05-21  Bruno Haible  <bruno@clisp.org>
8034
8035         ptsname: Move AC_LIBOBJ invocations to module description.
8036         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
8037         invocations from here...
8038         * modules/ptsname (configure.ac): ... to here.
8039
8040 2011-05-21  Bruno Haible  <bruno@clisp.org>
8041
8042         pread: Move AC_LIBOBJ invocations to module description.
8043         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
8044         * modules/pread (configure.ac): ... to here.
8045
8046 2011-05-21  Bruno Haible  <bruno@clisp.org>
8047
8048         posix_spawn*: Move AC_LIBOBJ invocations to module description.
8049         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
8050         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
8051         * modules/posix_spawn (configure.ac): ... to here.
8052         * modules/posix_spawnp (configure.ac): ... and here.
8053
8054 2011-05-21  Bruno Haible  <bruno@clisp.org>
8055
8056         popen: Move AC_LIBOBJ invocations to module description.
8057         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
8058         invocations from here...
8059         * modules/popen (configure.ac): ... to here.
8060
8061 2011-05-21  Bruno Haible  <bruno@clisp.org>
8062
8063         poll: Move AC_LIBOBJ invocations to module description.
8064         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
8065         invocations from here...
8066         * modules/poll (configure.ac): ... to here.
8067
8068 2011-05-21  Bruno Haible  <bruno@clisp.org>
8069
8070         pipe-posix: Move AC_LIBOBJ invocations to module description.
8071         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
8072         * modules/pipe-posix (configure.ac): ... to here.
8073
8074 2011-05-21  Bruno Haible  <bruno@clisp.org>
8075
8076         openat: Respect rules for use of AC_LIBOBJ.
8077         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
8078         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
8079         * modules/openat (configure.ac): ... to here.
8080
8081 2011-05-21  Bruno Haible  <bruno@clisp.org>
8082
8083         obstack-printf*: Move AC_LIBOBJ invocations to module description.
8084         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
8085         invocation from here...
8086         * modules/obstack-printf (configure.ac): ... to here.
8087         * modules/obstack-printf-posix (configure.ac): ... and here.
8088
8089 2011-05-21  Bruno Haible  <bruno@clisp.org>
8090
8091         nl_langinfo: Move AC_LIBOBJ invocations to module description.
8092         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
8093         from here...
8094         * modules/nl_langinfo (configure.ac): ... to here.
8095
8096 2011-05-21  Bruno Haible  <bruno@clisp.org>
8097
8098         nanosleep: Move AC_LIBOBJ invocations to module description.
8099         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
8100         gl_PREREQ_NANOSLEEP invocations from here...
8101         * modules/nanosleep (configure.ac): ... to here.
8102
8103 2011-05-21  Bruno Haible  <bruno@clisp.org>
8104
8105         mountlist: Move AC_LIBOBJ invocations to module description.
8106         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
8107         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
8108         * modules/mountlist (configure.ac): ... to here.
8109
8110 2011-05-21  Bruno Haible  <bruno@clisp.org>
8111
8112         mktime: Respect rules for use of AC_LIBOBJ.
8113         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
8114         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
8115         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
8116         (gl_FUNC_MKTIME_INTERNAL): ... and here...
8117         * modules/mktime (configure.ac): ... to here.
8118         * modules/mktime-internal (configure.ac): ... and here.
8119         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
8120
8121 2011-05-21  Bruno Haible  <bruno@clisp.org>
8122
8123         mkstemps: Move AC_LIBOBJ invocations to module description.
8124         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
8125         here...
8126         * modules/mkstemps (configure.ac): ... to here.
8127
8128 2011-05-21  Bruno Haible  <bruno@clisp.org>
8129
8130         mkstemp: Move AC_LIBOBJ invocations to module description.
8131         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
8132         gl_PREREQ_MKSTEMP invocations from here...
8133         * modules/mkstemp (configure.ac): ... to here.
8134
8135 2011-05-21  Bruno Haible  <bruno@clisp.org>
8136
8137         mkostemps: Move AC_LIBOBJ invocations to module description.
8138         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
8139         here...
8140         * modules/mkostemps (configure.ac): ... to here.
8141
8142 2011-05-21  Bruno Haible  <bruno@clisp.org>
8143
8144         mkostemp: Move AC_LIBOBJ invocations to module description.
8145         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
8146         gl_PREREQ_MKOSTEMP invocations from here...
8147         * modules/mkostemp (configure.ac): ... to here.
8148
8149 2011-05-21  Bruno Haible  <bruno@clisp.org>
8150
8151         mknod: Move AC_LIBOBJ invocations to module description.
8152         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
8153         * modules/mknod (configure.ac): ... to here.
8154
8155 2011-05-21  Bruno Haible  <bruno@clisp.org>
8156
8157         mkfifoat: Move AC_LIBOBJ invocations to module description.
8158         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
8159         here...
8160         * modules/mkfifoat (configure.ac): ... to here.
8161
8162 2011-05-21  Bruno Haible  <bruno@clisp.org>
8163
8164         mkfifo: Respect rules for use of AC_LIBOBJ.
8165         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
8166         here...
8167         * modules/mkfifo (configure.ac): ... to here.
8168
8169 2011-05-21  Bruno Haible  <bruno@clisp.org>
8170
8171         mkdtemp: Move AC_LIBOBJ invocations to module description.
8172         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
8173         invocations from here...
8174         * modules/mkdtemp (configure.ac): ... to here.
8175
8176 2011-05-21  Bruno Haible  <bruno@clisp.org>
8177
8178         mkdir: Move AC_LIBOBJ invocations to module description.
8179         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
8180         * modules/mkdir (configure.ac): ... to here.
8181
8182 2011-05-21  Bruno Haible  <bruno@clisp.org>
8183
8184         memset: Move AC_LIBOBJ invocations to module description.
8185         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
8186         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
8187         here...
8188         * modules/memset (configure.ac): ... to here.
8189
8190 2011-05-21  Bruno Haible  <bruno@clisp.org>
8191
8192         memrchr: Move AC_LIBOBJ invocations to module description.
8193         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
8194         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
8195         here...
8196         * modules/memrchr (configure.ac): ... to here.
8197
8198 2011-05-21  Bruno Haible  <bruno@clisp.org>
8199
8200         mempcpy: Move AC_LIBOBJ invocations to module description.
8201         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
8202         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
8203         here...
8204         * modules/mempcpy (configure.ac): ... to here.
8205
8206 2011-05-21  Bruno Haible  <bruno@clisp.org>
8207
8208         memmove: Move AC_LIBOBJ invocations to module description.
8209         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
8210         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
8211         here...
8212         * modules/memmove (configure.ac): ... to here.
8213
8214 2011-05-21  Bruno Haible  <bruno@clisp.org>
8215
8216         memmem*: Move AC_LIBOBJ invocations to module description.
8217         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
8218         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
8219         here...
8220         (gl_FUNC_MEMMEM): ... and here...
8221         * modules/memmem-simple (configure.ac): ... to here.
8222         * modules/memmem (configure.ac): ... and here.
8223
8224 2011-05-21  Bruno Haible  <bruno@clisp.org>
8225
8226         memcpy: Move AC_LIBOBJ invocations to module description.
8227         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
8228         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
8229         here...
8230         * modules/memcpy (configure.ac): ... to here.
8231
8232 2011-05-21  Bruno Haible  <bruno@clisp.org>
8233
8234         memcmp: Simplify autoconf macro.
8235         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
8236         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
8237         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
8238
8239 2011-05-21  Bruno Haible  <bruno@clisp.org>
8240
8241         memcmp: Move AC_LIBOBJ invocations to module description.
8242         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
8243         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
8244         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
8245         * modules/memcmp (configure.ac): ... to here.
8246         (Depends-on): Update conditions.
8247
8248 2011-05-21  Bruno Haible  <bruno@clisp.org>
8249
8250         memchr: Respect rules for use of AC_LIBOBJ.
8251         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
8252         invocations from here...
8253         * modules/memchr (configure.ac): ... to here.
8254
8255 2011-05-21  Bruno Haible  <bruno@clisp.org>
8256
8257         mbtowc: Move AC_LIBOBJ invocations to module description.
8258         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
8259         invocations from here...
8260         * modules/mbtowc (configure.ac): ... to here.
8261
8262 2011-05-21  Bruno Haible  <bruno@clisp.org>
8263
8264         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
8265         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
8266         gl_PREREQ_MBSRTOWCS invocations from here...
8267         * modules/mbsrtowcs (configure.ac): ... to here.
8268
8269 2011-05-21  Bruno Haible  <bruno@clisp.org>
8270
8271         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
8272         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
8273         gl_PREREQ_MBSNRTOWCS invocations from here...
8274         * modules/mbsnrtowcs (configure.ac): ... to here.
8275
8276 2011-05-21  Bruno Haible  <bruno@clisp.org>
8277
8278         mbsinit: Move AC_LIBOBJ invocations to module description.
8279         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
8280         invocations from here...
8281         * modules/mbsinit (configure.ac): ... to here.
8282
8283 2011-05-21  Bruno Haible  <bruno@clisp.org>
8284
8285         mbrlen: Move AC_LIBOBJ invocations to module description.
8286         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
8287         invocations from here...
8288         * modules/mbrlen (configure.ac): ... to here.
8289
8290 2011-05-21  Bruno Haible  <bruno@clisp.org>
8291
8292         mbrtowc: Respect rules for use of AC_LIBOBJ.
8293         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
8294         invocations from here...
8295         * modules/mbrtowc (configure.ac): ... to here.
8296
8297 2011-05-21  Bruno Haible  <bruno@clisp.org>
8298
8299         malloc-*: Move AC_LIBOBJ invocations to module description.
8300         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
8301         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
8302         AC_LIBOBJ invocations from here...
8303         * modules/malloc-gnu (configure.ac): ... to here.
8304         * modules/malloc-posix (configure.ac): ... and here.
8305
8306 2011-05-21  Bruno Haible  <bruno@clisp.org>
8307
8308         lstat, openat: Respect rules for use of AC_LIBOBJ.
8309         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
8310         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
8311         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
8312         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
8313         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
8314         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
8315         here.
8316         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
8317
8318 2011-05-21  Bruno Haible  <bruno@clisp.org>
8319
8320         lseek: Move AC_LIBOBJ invocations to module description.
8321         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
8322         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
8323         * modules/lseek (configure.ac): ... to here.
8324
8325 2011-05-21  Bruno Haible  <bruno@clisp.org>
8326
8327         linkat: Move AC_LIBOBJ invocations to module description.
8328         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
8329         here...
8330         * modules/linkat (configure.ac): ... to here.
8331
8332 2011-05-21  Bruno Haible  <bruno@clisp.org>
8333
8334         link: Respect rules for use of AC_LIBOBJ.
8335         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
8336         * modules/link (configure.ac): ... to here.
8337
8338 2011-05-21  Bruno Haible  <bruno@clisp.org>
8339
8340         lchown: Move AC_LIBOBJ invocations to module description.
8341         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
8342         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
8343         * modules/lchown (configure.ac): ... to here.
8344
8345 2011-05-21  Bruno Haible  <bruno@clisp.org>
8346
8347         iswctype: Move AC_LIBOBJ invocations to module description.
8348         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
8349         here...
8350         * modules/iswctype (configure.ac): ... to here.
8351
8352 2011-05-21  Bruno Haible  <bruno@clisp.org>
8353
8354         iswblank: Move AC_LIBOBJ invocations to module description.
8355         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
8356         here...
8357         * modules/iswblank (configure.ac): ... to here.
8358
8359 2011-05-21  Bruno Haible  <bruno@clisp.org>
8360
8361         atanl: Move AC_LIBOBJ invocations to module description.
8362         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
8363         * modules/atanl (configure.ac): ... to here.
8364
8365 2011-05-21  Bruno Haible  <bruno@clisp.org>
8366
8367         acosl: Move AC_LIBOBJ invocations to module description.
8368         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
8369         * modules/acosl (configure.ac): ... to here.
8370
8371 2011-05-21  Bruno Haible  <bruno@clisp.org>
8372
8373         asinl: Respect rules for use of AC_LIBOBJ.
8374         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
8375         * modules/asinl (configure.ac): ... to here.
8376
8377 2011-05-21  Bruno Haible  <bruno@clisp.org>
8378
8379         tanl: Move AC_LIBOBJ invocations to module description.
8380         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
8381         * modules/tanl (configure.ac): ... to here.
8382
8383 2011-05-21  Bruno Haible  <bruno@clisp.org>
8384
8385         cosl: Move AC_LIBOBJ invocations to module description.
8386         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
8387         * modules/cosl (configure.ac): ... to here.
8388
8389 2011-05-21  Bruno Haible  <bruno@clisp.org>
8390
8391         sinl: Move AC_LIBOBJ invocations to module description.
8392         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
8393         * modules/sinl (configure.ac): ... to here.
8394
8395 2011-05-21  Bruno Haible  <bruno@clisp.org>
8396
8397         logl: Move AC_LIBOBJ invocations to module description.
8398         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
8399         * modules/logl (configure.ac): ... to here.
8400
8401 2011-05-21  Bruno Haible  <bruno@clisp.org>
8402
8403         expl: Move AC_LIBOBJ invocations to module description.
8404         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
8405         * modules/expl (configure.ac): ... to here.
8406
8407 2011-05-21  Bruno Haible  <bruno@clisp.org>
8408
8409         roundl: Move AC_LIBOBJ invocations to module description.
8410         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
8411         * modules/roundl (configure.ac): ... to here.
8412
8413 2011-05-21  Bruno Haible  <bruno@clisp.org>
8414
8415         round: Move AC_LIBOBJ invocations to module description.
8416         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
8417         * modules/round (configure.ac): ... to here.
8418
8419 2011-05-21  Bruno Haible  <bruno@clisp.org>
8420
8421         roundf: Move AC_LIBOBJ invocations to module description.
8422         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
8423         * modules/roundf (configure.ac): ... to here.
8424
8425 2011-05-21  Bruno Haible  <bruno@clisp.org>
8426
8427         truncl: Move AC_LIBOBJ invocations to module description.
8428         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
8429         * modules/truncl (configure.ac): ... to here.
8430
8431 2011-05-21  Bruno Haible  <bruno@clisp.org>
8432
8433         trunc: Move AC_LIBOBJ invocations to module description.
8434         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
8435         * modules/trunc (configure.ac): ... to here.
8436
8437 2011-05-21  Bruno Haible  <bruno@clisp.org>
8438
8439         truncf: Move AC_LIBOBJ invocations to module description.
8440         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
8441         * modules/truncf (configure.ac): ... to here.
8442
8443 2011-05-21  Bruno Haible  <bruno@clisp.org>
8444
8445         ceill: Move AC_LIBOBJ invocations to module description.
8446         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
8447         * modules/ceill (configure.ac): ... to here.
8448
8449 2011-05-21  Bruno Haible  <bruno@clisp.org>
8450
8451         ceil: Move AC_LIBOBJ invocations to module description.
8452         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
8453         * modules/ceil (configure.ac): ... to here.
8454
8455 2011-05-21  Bruno Haible  <bruno@clisp.org>
8456
8457         ceilf: Move AC_LIBOBJ invocations to module description.
8458         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
8459         * modules/ceilf (configure.ac): ... to here.
8460
8461 2011-05-21  Bruno Haible  <bruno@clisp.org>
8462
8463         floorl: Respect rules for use of AC_LIBOBJ.
8464         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
8465         * modules/floorl (configure.ac): ... to here.
8466
8467 2011-05-21  Bruno Haible  <bruno@clisp.org>
8468
8469         floor: Respect rules for use of AC_LIBOBJ.
8470         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
8471         * modules/floor (configure.ac): ... to here.
8472
8473 2011-05-21  Bruno Haible  <bruno@clisp.org>
8474
8475         floorf: Move AC_LIBOBJ invocations to module description.
8476         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
8477         * modules/floorf (configure.ac): ... to here.
8478
8479 2011-05-20  Bruno Haible  <bruno@clisp.org>
8480
8481         sqrtl: Respect rules for use of AC_LIBOBJ.
8482         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
8483         * modules/sqrtl (configure.ac): ... to here.
8484
8485 2011-05-20  Bruno Haible  <bruno@clisp.org>
8486
8487         ldexpl: Respect rules for use of AC_LIBOBJ.
8488         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
8489         * modules/ldexpl (configure.ac): ... to here.
8490
8491 2011-05-20  Bruno Haible  <bruno@clisp.org>
8492
8493         frexpl*: Respect rules for use of AC_LIBOBJ.
8494         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
8495         invocation from here...
8496         * modules/frexpl (configure.ac): ... to here.
8497         * modules/frexpl-nolibm (configure.ac): ... and here.
8498
8499 2011-05-20  Bruno Haible  <bruno@clisp.org>
8500
8501         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
8502         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
8503         invocation from here...
8504         * modules/frexp (configure.ac): ... to here.
8505         * modules/frexp-nolibm (configure.ac): ... and here.
8506
8507 2011-05-20  Bruno Haible  <bruno@clisp.org>
8508
8509         isnan: Respect rules for use of AC_LIBOBJ.
8510         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
8511         invocations here.
8512         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
8513         REPLACE_ISNAN.
8514         * modules/isnand (configure.ac): Likewise.
8515         * modules/isnanl (configure.ac): Likewise.
8516
8517 2011-05-20  Bruno Haible  <bruno@clisp.org>
8518
8519         isnanl*: Respect rules for use of AC_LIBOBJ.
8520         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
8521         invocation from here...
8522         * modules/isnanl (configure.ac): ... to here.
8523         * modules/isnanl-nolibm (configure.ac): ... and here.
8524
8525 2011-05-20  Bruno Haible  <bruno@clisp.org>
8526
8527         isnand*: Move AC_LIBOBJ invocations to module description.
8528         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
8529         invocation from here...
8530         * modules/isnand (configure.ac): ... to here.
8531         * modules/isnand-nolibm (configure.ac): ... and here.
8532
8533 2011-05-20  Bruno Haible  <bruno@clisp.org>
8534
8535         isnanf*: Move AC_LIBOBJ invocations to module description.
8536         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
8537         invocation from here...
8538         * modules/isnanf (configure.ac): ... to here.
8539         * modules/isnanf-nolibm (configure.ac): ... and here.
8540
8541 2011-05-20  Bruno Haible  <bruno@clisp.org>
8542
8543         isnan*: Separate the AC_LIBOBJ invocations.
8544         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
8545         AC_LIBOBJ invocation.
8546         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
8547         here.
8548         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
8549         AC_LIBOBJ invocation.
8550         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
8551         here.
8552         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
8553         AC_LIBOBJ invocation.
8554         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
8555         here.
8556         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
8557
8558 2011-05-08  Bruno Haible  <bruno@clisp.org>
8559
8560         isinf: Move AC_LIBOBJ invocations to module description.
8561         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
8562         * modules/isinf (configure.ac): ... to here.
8563
8564 2011-05-08  Bruno Haible  <bruno@clisp.org>
8565
8566         isfinite: Move AC_LIBOBJ invocations to module description.
8567         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
8568         * modules/isfinite (configure.ac): ... to here.
8569
8570 2011-05-08  Bruno Haible  <bruno@clisp.org>
8571
8572         isblank: Move AC_LIBOBJ invocations to module description.
8573         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
8574         here...
8575         * modules/isblank (configure.ac): ... to here.
8576
8577 2011-05-08  Bruno Haible  <bruno@clisp.org>
8578
8579         isapipe: Move AC_LIBOBJ invocations to module description.
8580         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
8581         gl_PREREQ_ISAPIPE invocations from here...
8582         * modules/isapipe (configure.ac): ... to here.
8583         (Depends-on): Update condition.
8584
8585 2011-05-08  Bruno Haible  <bruno@clisp.org>
8586
8587         ioctl: Move AC_LIBOBJ invocations to module description.
8588         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
8589         invocations from here...
8590         * modules/ioctl (configure.ac): ... to here.
8591         (Depends-on): Update condition.
8592
8593 2011-05-08  Bruno Haible  <bruno@clisp.org>
8594
8595         imaxdiv: Move AC_LIBOBJ invocations to module description.
8596         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
8597         invocations from here...
8598         * modules/imaxdiv (configure.ac): ... to here.
8599
8600 2011-05-08  Bruno Haible  <bruno@clisp.org>
8601
8602         imaxabs: Move AC_LIBOBJ invocations to module description.
8603         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
8604         invocations from here...
8605         * modules/imaxabs (configure.ac): ... to here.
8606
8607 2011-05-08  Bruno Haible  <bruno@clisp.org>
8608
8609         getaddrinfo: Move AC_LIBOBJ invocations to module description.
8610         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
8611         AC_LIBOBJ invocations from here...
8612         * modules/getaddrinfo (configure.ac): ... to here.
8613         (Depends-on): Add conditions.
8614
8615 2011-05-08  Bruno Haible  <bruno@clisp.org>
8616
8617         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
8618         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
8619         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
8620         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
8621         (gl_PREREQ_INET_PTON): ... from here.
8622         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
8623         gl_PREREQ_INET_PTON here.
8624         (Depends-on): Update condition.
8625
8626 2011-05-08  Bruno Haible  <bruno@clisp.org>
8627
8628         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
8629         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
8630         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
8631         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
8632         (gl_PREREQ_INET_NTOP): ... from here.
8633         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
8634         gl_PREREQ_INET_NTOP here.
8635         (Depends-on): Update condition.
8636
8637 2011-05-08  Bruno Haible  <bruno@clisp.org>
8638
8639         iconv_open: Move AC_LIBOBJ invocations to module description.
8640         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
8641         AC_LIBOBJ invocations from here...
8642         * modules/iconv_open (configure.ac): ... to here.
8643
8644 2011-05-08  Bruno Haible  <bruno@clisp.org>
8645
8646         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
8647         If module 'iconv_open' is among the main modules and module
8648         'iconv_open-utf' is among the tests dependencies, then
8649         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
8650         return the special iconv_t values. Therefore iconv() and iconv_close()
8651         must support these special iconv_t values, already in lib, not only in
8652         tests.
8653         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
8654         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
8655         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
8656         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
8657         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
8658         (Depends-on): Add the dependencies of iconv_open-utf.
8659         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
8660         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
8661         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
8662
8663 2011-05-08  Bruno Haible  <bruno@clisp.org>
8664
8665         group-member: Move AC_LIBOBJ invocations to module description.
8666         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
8667         gl_PREREQ_GROUP_MEMBER invocations from here...
8668         * modules/group-member (configure.ac): ... to here.
8669
8670 2011-05-08  Bruno Haible  <bruno@clisp.org>
8671
8672         grantpt: Move AC_LIBOBJ invocations to module description.
8673         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
8674         invocations from here...
8675         * modules/grantpt (configure.ac): ... to here.
8676
8677 2011-05-08  Bruno Haible  <bruno@clisp.org>
8678
8679         glob: Move AC_LIBOBJ invocations to module description.
8680         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
8681         from here...
8682         * modules/glob (configure.ac): ... to here.
8683
8684 2011-05-08  Bruno Haible  <bruno@clisp.org>
8685
8686         getusershell: Move AC_LIBOBJ invocations to module description.
8687         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
8688         Move AC_LIBOBJ invocation from here...
8689         * modules/getusershell (configure.ac): ... to here.
8690         (Depends-on): Update condition.
8691
8692 2011-05-08  Bruno Haible  <bruno@clisp.org>
8693
8694         gettimeofday: Move AC_LIBOBJ invocations to module description.
8695         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
8696         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
8697         gl_PREREQ_GETTIMEOFDAY invocations from here...
8698         * modules/gettimeofday (configure.ac): ... to here.
8699
8700 2011-05-08  Bruno Haible  <bruno@clisp.org>
8701
8702         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
8703         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
8704         just gl_FUNC_TZSET.
8705         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
8706         (gl_FUNC_TZSET_CLOBBER): Remove actions.
8707         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
8708         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
8709
8710 2011-05-08  Bruno Haible  <bruno@clisp.org>
8711
8712         getsubopt: Move AC_LIBOBJ invocations to module description.
8713         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
8714         gl_PREREQ_GETSUBOPT invocations from here...
8715         * modules/getsubopt (configure.ac): ... to here.
8716
8717 2011-05-08  Bruno Haible  <bruno@clisp.org>
8718
8719         getpass-gnu: Move AC_LIBOBJ invocations to module description.
8720         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
8721         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
8722         * modules/getpass-gnu (configure.ac): ... to here.
8723
8724 2011-05-08  Bruno Haible  <bruno@clisp.org>
8725
8726         getpass: Move AC_LIBOBJ invocations to module description.
8727         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
8728         gl_PREREQ_GETPASS invocations from here...
8729         * modules/getpass (configure.ac): ... to here.
8730
8731 2011-05-08  Bruno Haible  <bruno@clisp.org>
8732
8733         getpagesize: Move AC_LIBOBJ invocations to module description.
8734         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
8735         from here...
8736         * modules/getpagesize (configure.ac): ... to here.
8737
8738 2011-05-08  Bruno Haible  <bruno@clisp.org>
8739
8740         getopt: Move AC_LIBOBJ invocations to module description.
8741         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
8742         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
8743         invocations from here...
8744         * modules/getopt-gnu (configure.ac): ... to here.
8745         * modules/getopt-posix (configure.ac): ... and here.
8746         (Depends-on): Update condition.
8747
8748 2011-05-08  Bruno Haible  <bruno@clisp.org>
8749
8750         getopt, argp: Respect rules for use of AC_LIBOBJ.
8751         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
8752         (gl_REPLACE_GETOPT_ALWAYS): New macro.
8753         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
8754         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
8755
8756 2011-05-08  Bruno Haible  <bruno@clisp.org>
8757
8758         getlogin_r: Move AC_LIBOBJ invocations to module description.
8759         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
8760         gl_PREREQ_GETLOGIN_R invocations from here...
8761         * modules/getlogin_r (configure.ac): ... to here.
8762
8763 2011-05-08  Bruno Haible  <bruno@clisp.org>
8764
8765         getlogin: Move AC_LIBOBJ invocations to module description.
8766         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
8767         here...
8768         * modules/getlogin (configure.ac): ... to here.
8769
8770 2011-05-08  Bruno Haible  <bruno@clisp.org>
8771
8772         getloadavg: Move AC_LIBOBJ invocations to module description.
8773         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
8774         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
8775         * modules/getloadavg (configure.ac): ... to here.
8776
8777 2011-05-08  Bruno Haible  <bruno@clisp.org>
8778
8779         gethrxtime: Move AC_LIBOBJ invocations to module description.
8780         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
8781         LIB_GETHRXTIME from here...
8782         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
8783         invocations from here...
8784         * modules/gethrxtime (configure.ac): ... to here.
8785
8786 2011-05-08  Bruno Haible  <bruno@clisp.org>
8787
8788         gethostname: Move AC_LIBOBJ invocations to module description.
8789         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
8790         gl_PREREQ_GETHOSTNAME invocations from here...
8791         * modules/gethostname (configure.ac): ... to here.
8792
8793 2011-05-08  Bruno Haible  <bruno@clisp.org>
8794
8795         getgroups: Move AC_LIBOBJ invocations to module description.
8796         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
8797         here...
8798         * modules/getgroups (configure.ac): ... to here.
8799
8800 2011-05-08  Bruno Haible  <bruno@clisp.org>
8801
8802         getdtablesize: Move AC_LIBOBJ invocations to module description.
8803         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
8804         invocation from here...
8805         * modules/getdtablesize (configure.ac): ... to here.
8806
8807 2011-05-08  Bruno Haible  <bruno@clisp.org>
8808
8809         getdomainname: Move AC_LIBOBJ invocations to module description.
8810         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
8811         gl_PREREQ_GETDOMAINNAME invocations from here...
8812         * modules/getdomainname (configure.ac): ... to here.
8813
8814 2011-05-08  Bruno Haible  <bruno@clisp.org>
8815
8816         getline: Move AC_LIBOBJ invocations to module description.
8817         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
8818         invocations from here...
8819         * modules/getline (configure.ac): ... to here.
8820
8821 2011-05-08  Bruno Haible  <bruno@clisp.org>
8822
8823         getline: Simplify.
8824         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
8825         It's already handled through the module dependency.
8826
8827 2011-05-08  Bruno Haible  <bruno@clisp.org>
8828
8829         getdelim: Move AC_LIBOBJ invocations to module description.
8830         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
8831         and gl_PREREQ_GETDELIM invocations from here...
8832         * modules/getdelim (configure.ac): ... to here.
8833         (Depends-on): Fix condition.
8834
8835 2011-05-08  Bruno Haible  <bruno@clisp.org>
8836
8837         getcwd: Move AC_LIBOBJ invocations to module description.
8838         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
8839         invocations from here...
8840         * modules/getcwd (configure.ac): ... to here.
8841
8842 2011-05-08  Bruno Haible  <bruno@clisp.org>
8843
8844         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
8845         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
8846         here...
8847         * modules/getcwd-lgpl (configure.ac): ... to here.
8848
8849 2011-05-07  Bruno Haible  <bruno@clisp.org>
8850
8851         crypto/gc: Move AC_LIBOBJ invocations to module description.
8852         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
8853         * modules/crypto/gc (configure.ac): ... to here.
8854
8855 2011-05-07  Bruno Haible  <bruno@clisp.org>
8856
8857         fwriting: Move AC_LIBOBJ invocations to module description.
8858         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
8859         here...
8860         * modules/fwriting (configure.ac): ... to here.
8861
8862 2011-05-07  Bruno Haible  <bruno@clisp.org>
8863
8864         fwritable: Move AC_LIBOBJ invocations to module description.
8865         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
8866         here...
8867         * modules/fwritable (configure.ac): ... to here.
8868
8869 2011-05-07  Bruno Haible  <bruno@clisp.org>
8870
8871         futimens: Move AC_LIBOBJ invocations to module description.
8872         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
8873         here...
8874         * modules/futimens (configure.ac): ... to here.
8875
8876 2011-05-07  Bruno Haible  <bruno@clisp.org>
8877
8878         ftruncate: Move AC_LIBOBJ invocations to module description.
8879         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
8880         gl_PREREQ_FTRUNCATE invocations from here...
8881         * modules/ftruncate (configure.ac): ... to here.
8882
8883 2011-05-07  Bruno Haible  <bruno@clisp.org>
8884
8885         fsync: Move AC_LIBOBJ invocations to module description.
8886         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
8887         invocations from here...
8888         * modules/fsync (configure.ac): ... to here.
8889
8890 2011-05-07  Bruno Haible  <bruno@clisp.org>
8891
8892         fsusage: Move AC_LIBOBJ invocations to module description.
8893         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
8894         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
8895         * modules/fsusage (configure.ac): ... to here.
8896
8897 2011-05-07  Bruno Haible  <bruno@clisp.org>
8898
8899         freopen: Move AC_LIBOBJ invocations to module description.
8900         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
8901         invocations from here...
8902         * modules/freopen (configure.ac): ... to here.
8903
8904 2011-05-07  Bruno Haible  <bruno@clisp.org>
8905
8906         free: Move AC_LIBOBJ invocations to module description.
8907         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
8908         invocations from here...
8909         * modules/free (configure.ac): ... to here.
8910
8911 2011-05-07  Bruno Haible  <bruno@clisp.org>
8912
8913         freadable: Move AC_LIBOBJ invocations to module description.
8914         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
8915         here...
8916         * modules/freadable (configure.ac): ... to here.
8917
8918 2011-05-07  Bruno Haible  <bruno@clisp.org>
8919
8920         fpurge: Move AC_LIBOBJ invocations to module description.
8921         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
8922         invocations from here...
8923         * modules/fpurge (configure.ac): ... to here.
8924
8925 2011-05-07  Bruno Haible  <bruno@clisp.org>
8926
8927         fpending: Move AC_LIBOBJ invocations to module description.
8928         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
8929         gl_FUNC_FPENDING.
8930         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
8931         invocations from here...
8932         * modules/fpending (configure.ac): ... to here.
8933
8934 2011-05-07  Bruno Haible  <bruno@clisp.org>
8935
8936         fopen: Move AC_LIBOBJ invocations to module description.
8937         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
8938         invocations from here...
8939         * modules/fopen (configure.ac): ... to here.
8940
8941 2011-05-07  Bruno Haible  <bruno@clisp.org>
8942
8943         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
8944         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
8945         gl_FUNC_FNMATCH_POSIX.
8946         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
8947         invocations from here...
8948         * modules/fnmatch (configure.ac): ... to here.
8949         * modules/fnmatch-gnu (configure.ac): ... and here.
8950
8951 2011-05-07  Bruno Haible  <bruno@clisp.org>
8952
8953         flock: Move AC_LIBOBJ invocations to module description.
8954         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
8955         invocations from here...
8956         * modules/flock (configure.ac): ... to here.
8957
8958 2011-05-07  Bruno Haible  <bruno@clisp.org>
8959
8960         fileblocks: Move AC_LIBOBJ invocations to module description.
8961         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
8962         gl_PREREQ_FILEBLOCKS invocations from here...
8963         * modules/fileblocks (configure.ac): ... to here.
8964
8965 2011-05-06  Bruno Haible  <bruno@clisp.org>
8966
8967         fflush: Move AC_LIBOBJ invocations to module description.
8968         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
8969         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
8970         invocations from here...
8971         * modules/fflush (configure.ac): ... to here.
8972
8973 2011-05-06  Bruno Haible  <bruno@clisp.org>
8974
8975         fdopendir: Move AC_LIBOBJ invocations to module description.
8976         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
8977         here...
8978         * modules/fdopendir (configure.ac): ... to here.
8979         (Depends-on): Improve conditions.
8980
8981 2011-05-06  Bruno Haible  <bruno@clisp.org>
8982
8983         _Exit: Move AC_LIBOBJ invocations to module description.
8984         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
8985         invocations from here...
8986         * modules/_Exit (configure.ac): ... to here.
8987
8988 2011-05-21  Bruno Haible  <bruno@clisp.org>
8989
8990         euidaccess: Respect rules for use of AC_LIBOBJ.
8991         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
8992         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
8993         from here...
8994         * modules/euidaccess (configure.ac): ... to here.
8995
8996 2011-05-06  Bruno Haible  <bruno@clisp.org>
8997
8998         error: Move AC_LIBOBJ invocations to module description.
8999         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
9000         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
9001         invocations from here...
9002         * modules/error (configure.ac): ... to here.
9003
9004 2011-05-06  Bruno Haible  <bruno@clisp.org>
9005
9006         duplocale: Move AC_LIBOBJ invocations to module description.
9007         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
9008         gl_PREREQ_DUPLOCALE invocations from here...
9009         * modules/duplocale (configure.ac): ... to here.
9010
9011 2011-05-05  Bruno Haible  <bruno@clisp.org>
9012
9013         dirfd: Move AC_LIBOBJ invocations to module description.
9014         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
9015         gl_FUNC_DIRFD.
9016         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
9017         here...
9018         * modules/dirfd (configure.ac): ... to here.
9019         (Depends-on): Fix condition.
9020
9021 2011-05-05  Bruno Haible  <bruno@clisp.org>
9022
9023         chown: Respect rules for use of AC_LIBOBJ.
9024         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
9025         * modules/chown (configure.ac): ... to here.
9026
9027 2011-05-05  Bruno Haible  <bruno@clisp.org>
9028
9029         chdir-long: Move AC_LIBOBJ invocations to module description.
9030         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
9031         gl_PREREQ_CHDIR_LONG invocations from here...
9032         * modules/chdir-long (configure.ac): ... to here.
9033
9034 2011-05-05  Bruno Haible  <bruno@clisp.org>
9035
9036         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
9037         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
9038         from here...
9039         * modules/canonicalize-lgpl (configure.ac): ... to here.
9040
9041 2011-05-05  Bruno Haible  <bruno@clisp.org>
9042
9043         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
9044         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
9045         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
9046         REPLACE_CALLOC.
9047         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
9048         * modules/calloc-gnu (configure.ac): Likewise.
9049
9050 2011-05-05  Bruno Haible  <bruno@clisp.org>
9051
9052         btowc: Move AC_LIBOBJ invocations to module description.
9053         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
9054         invocations from here...
9055         * modules/btowc (configure.ac): ... to here.
9056
9057 2011-05-21  Bruno Haible  <bruno@clisp.org>
9058
9059         atexit: Move AC_LIBOBJ invocations to module description.
9060         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
9061         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
9062         here...
9063         * modules/atexit (configure.ac): ... to here.
9064
9065 2011-05-05  Bruno Haible  <bruno@clisp.org>
9066
9067         atoll: Move AC_LIBOBJ invocations to module description.
9068         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
9069         invocations from here...
9070         * modules/atoll (configure.ac): ... to here.
9071
9072 2011-05-05  Bruno Haible  <bruno@clisp.org>
9073
9074         argz: Move AC_LIBOBJ invocations to module description.
9075         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
9076         * modules/argz (configure.ac): ... to here.
9077
9078 2011-05-05  Bruno Haible  <bruno@clisp.org>
9079
9080         alphasort: Move AC_LIBOBJ invocations to module description.
9081         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
9082         gl_PREREQ_ALPHASORT invocations from here...
9083         * modules/alphasort (configure.ac): ... to here.
9084
9085 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
9086
9087         verify: new macro verify_expr; verify_true deprecated
9088         * NEWS: Mention this.
9089         * doc/verify.texi (Compile-time Assertions): Document this.
9090         * lib/verify.h (verify_true): Deprecate.
9091         (verify_expr): New macro.
9092         * tests/test-verify.c (function): Test verify_expr.
9093
9094 2011-06-14  Jim Meyering  <meyering@redhat.com>
9095
9096         init.sh: give more portable redirection-related advice in a comment
9097         * tests/init.sh (stderr_fileno_): Update the advice in comments.
9098         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
9099         for lots of discussion.  Stefano Lattarini suggested the solution
9100         of putting "9>&2" after the command.  Reported by Bruno Haible.
9101
9102 2011-06-13  Bruno Haible  <bruno@clisp.org>
9103
9104         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
9105         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
9106         'none'.
9107
9108 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
9109
9110         ftoastr: use strtof only if HAVE_STRTOF
9111         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
9112         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
9113         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
9114         * modules/ftoastr (configure.ac): Check for strtof.
9115
9116 2011-06-13  Bruno Haible  <bruno@clisp.org>
9117
9118         gnulib-tool: Addendum to 2011-06-08 commit.
9119         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
9120         and --witness-c-macro have been given, augment AM_CPPFLAGS.
9121
9122 2011-06-13  Bruno Haible  <bruno@clisp.org>
9123
9124         fseeko: Provide a non-inline replacement of fseek().
9125         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
9126         * modules/fseeko (Depends-on): Add fseek.
9127         * modules/fseek (License): Change to LGPLv2+.
9128
9129 2011-06-13  Bruno Haible  <bruno@clisp.org>
9130
9131         ftello: Provide a non-inline replacement of ftell().
9132         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
9133         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
9134         not have ftello() (such as on mingw).
9135         * modules/ftello (Depends-on): Add ftell.
9136         * modules/ftell (License): Change to LGPLv2+.
9137
9138 2011-05-07  Bruno Haible  <bruno@clisp.org>
9139
9140         ftell: Move AC_LIBOBJ invocations to module description.
9141         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
9142         * modules/ftell (configure.ac): ... to here.
9143
9144 2011-05-07  Bruno Haible  <bruno@clisp.org>
9145
9146         ftello: Respect rules for use of AC_LIBOBJ.
9147         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
9148         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
9149         here...
9150         * modules/ftello (configure.ac): ... to here.
9151
9152 2011-05-07  Bruno Haible  <bruno@clisp.org>
9153
9154         fseeko: Simplify.
9155         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
9156         (gl_FUNC_FSEEKO): Inline it here.
9157
9158 2011-05-07  Bruno Haible  <bruno@clisp.org>
9159
9160         fseek: Move AC_LIBOBJ invocations to module description.
9161         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
9162         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
9163         * modules/fseek (configure.ac): ... to here.
9164
9165 2011-05-07  Bruno Haible  <bruno@clisp.org>
9166
9167         fseek: Respect rules for use of AC_LIBOBJ.
9168         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
9169         here...
9170         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
9171
9172 2011-05-07  Bruno Haible  <bruno@clisp.org>
9173
9174         fseeko: Respect rules for use of AC_LIBOBJ.
9175         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
9176         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
9177         here...
9178         * modules/fseeko (configure.ac): ... to here.
9179
9180 2011-06-13  Bruno Haible  <bruno@clisp.org>
9181
9182         gnulib-tool: Allow comments in the 'Depends-on' section.
9183         * doc/gnulib.texi (Module description): Mention comment syntax in the
9184         Depends-on section.
9185         * gnulib-tool (func_get_dependencies): Filter out comment lines.
9186
9187 2011-06-13  Bruno Haible  <bruno@clisp.org>
9188
9189         file-set.h: guard __attibute__ use, now that it's not always defined
9190         * lib/file-set.h (record_file): Use __attribute__ only with compiler
9191         versions that support it.  This fixes a coreutils build failure with
9192         the vendor cc on HP-UX 11.31.
9193
9194 2011-06-12  Bruno Haible  <bruno@clisp.org>
9195
9196         acl: Add support for HP-UX >= 11.11 JFS ACLs.
9197         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
9198         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
9199         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
9200         (acl, aclsort): New declarations.
9201         (aclv_nontrivial): New declaration.
9202         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
9203         (file_has_acl): Read also the second kind of HP-UX ACLs.
9204         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
9205         kind of HP-UX ACLs if the first kind fails.
9206         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
9207         second kind of HP-UX ACLs.
9208         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
9209         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
9210         agree.
9211         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
9212         hpuxjfs.
9213         Handle hpuxjfs.
9214         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
9215         hpuxjfs.
9216         Handle hpuxjfs.
9217         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
9218         (func_test_same_acls): Use both lsacl and getacl.
9219         Handle hpuxjfs.
9220         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
9221         (func_test_same_acls): Use both lsacl and getacl.
9222         Handle hpuxjfs.
9223
9224 2011-06-12  Bruno Haible  <bruno@clisp.org>
9225
9226         acl: Complete the 2010-08-10 fix.
9227         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
9228         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
9229         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
9230         explicitly.
9231         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
9232         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
9233
9234 2011-06-12  Bruno Haible  <bruno@clisp.org>
9235
9236         spawn-pipe tests: Comments.
9237         * tests/test-spawn-pipe-child.c (main): Update comment.
9238         Reported by James Youngman <jay@gnu.org>.
9239
9240 2011-06-11  James Youngman  <jay@gnu.org>
9241
9242         New module 'stat-size'.
9243         * modules/stat-size: New module.  Provides macros for accessing
9244         file size information in instances of struct stat.  Depends on the
9245         fileblocks module because it calls st_blocks.
9246         * lib/stat-size.h: New file, adapted from coreutils' system.h.
9247         * doc/gnulib.texi: Include stat-size.texi.
9248         * doc/stat-size.texi: Documentation for this module.
9249         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
9250         * m4/fileblocks.m4: Mention that stat-size depends on the call to
9251         AC_STRUCT_ST_BLOCKS.
9252
9253 2011-06-09  Bruno Haible  <bruno@clisp.org>
9254
9255         thread: Support pthreads-win32.
9256         * lib/glthread/thread.h (gl_thread_self): Define differently on
9257         pthreads-win32.
9258         (gl_null_thread): New declaration.
9259         (gl_thread_self_pointer): New macro.
9260         * lib/glthread/thread.c (gl_null_thread): New constant.
9261         * tests/test-lock.c: Use gl_thread_self_pointer instead of
9262         gl_thread_self.
9263         * tests/test-tls.c: Likewise.
9264         Suggested by Paul Eggert. Reported by Eric Blake.
9265
9266 2011-06-09  Bruno Haible  <bruno@clisp.org>
9267
9268         thread: Fix confusion between NULL and 0.
9269         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
9270         Reported by Paul Eggert.
9271
9272 2011-06-09  Bruno Haible  <bruno@clisp.org>
9273
9274         spawn-pipe tests: Avoid test failure on HP-UX 11.
9275         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
9276         is closed.
9277
9278 2011-06-09  Bruno Haible  <bruno@clisp.org>
9279
9280         acl tests: Fix compilation error on HP-UX 11.
9281         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
9282
9283 2011-06-09  Bruno Haible  <bruno@clisp.org>
9284
9285         rmdir: Avoid test failure on HP-UX 10.20.
9286         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
9287         EEXIST.
9288
9289 2011-06-08  Eric Blake  <eblake@redhat.com>
9290
9291         perror: fix test on mingw
9292         * modules/perror-tests (Depends-on): Add dup2.
9293
9294         strerror_r-posix: fix on MacOS
9295         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
9296         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
9297         logic bug.
9298         * lib/strerror_r.c (strerror_r): Fix the bug.
9299         * lib/strerror.c (strerror): Likewise.
9300         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
9301         problem.
9302         * doc/posix-functions/strerror.texi (strerror): Likewise.
9303         * doc/posix-functions/perror.texi (perror): Likewise.
9304         * tests/test-strerror.c (main): Enhance test.
9305         * tests/test-strerror_r.c (main): Likewise.
9306
9307 2011-06-08  Bruno Haible  <bruno@clisp.org>
9308
9309         gnulib-tool: Better isolation between different gnulib-tool invocations.
9310         * gnulib-tool: New option --witness-c-macro.
9311         (witness_c_macro): New variable.
9312         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
9313         AM_CPPFLAGS define it as a C macro.
9314         (func_emit_tests_Makefile_am): Likewise.
9315         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
9316         read it from there.
9317         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
9318         m4_define, not AC_DEFUN.
9319         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
9320         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
9321         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
9322         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
9323         s|...|...|, to substitute the values of the GNULIB_* module indicator
9324         variables.
9325         * modules/dirent (Makefile.am): Likewise.
9326         * modules/fcntl-h (Makefile.am): Likewise.
9327         * modules/iconv-h (Makefile.am): Likewise.
9328         * modules/langinfo (Makefile.am): Likewise.
9329         * modules/locale (Makefile.am): Likewise.
9330         * modules/math (Makefile.am): Likewise.
9331         * modules/netdb (Makefile.am): Likewise.
9332         * modules/poll-h (Makefile.am): Likewise.
9333         * modules/pty (Makefile.am): Likewise.
9334         * modules/search (Makefile.am): Likewise.
9335         * modules/signal (Makefile.am): Likewise.
9336         * modules/spawn (Makefile.am): Likewise.
9337         * modules/stdio (Makefile.am): Likewise.
9338         * modules/stdlib (Makefile.am): Likewise.
9339         * modules/string (Makefile.am): Likewise.
9340         * modules/sys_ioctl (Makefile.am): Likewise.
9341         * modules/sys_select (Makefile.am): Likewise.
9342         * modules/sys_socket (Makefile.am): Likewise.
9343         * modules/sys_stat (Makefile.am): Likewise.
9344         * modules/sys_times (Makefile.am): Likewise.
9345         * modules/sys_utsname (Makefile.am): Likewise.
9346         * modules/sys_wait (Makefile.am): Likewise.
9347         * modules/termios (Makefile.am): Likewise.
9348         * modules/time (Makefile.am): Likewise.
9349         * modules/unistd (Makefile.am): Likewise.
9350         * modules/wchar (Makefile.am): Likewise.
9351
9352 2011-06-08  Eric Blake  <eblake@redhat.com>
9353
9354         strerror: simplify replacement
9355         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
9356         * modules/strerror (configure.ac): No prereqs needed here...
9357         * modules/strerror-override (configure.ac): ...but this needs it.
9358         (Files): Add file for needed prereq macro.
9359
9360 2011-06-08  Bruno Haible  <bruno@clisp.org>
9361
9362         strerror_r-posix: Tweaks.
9363         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
9364         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
9365         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
9366         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
9367         (gl_FUNC_STRERROR_R): ... to here.
9368         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
9369
9370 2011-06-07  Eric Blake  <eblake@redhat.com>
9371
9372         perror: document fixed bugs
9373         * doc/posix-functions/perror.texi (perror): Document recent
9374         patches.
9375
9376 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
9377
9378         stat-time: get_stat_birthtime failure is better-defined
9379         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
9380         return a timestamp whose tv_sec and tv_nsec values are both -1.
9381         Previously, the spec said only that the tv_nsec value was negative.
9382         This upward-compatible change simplifies GNU tar a bit.
9383
9384 2011-06-07  Eric Blake  <eblake@redhat.com>
9385
9386         strerror_r-posix: work around cygwin 1.7.9
9387         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
9388         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
9389         bug without replacing strerror_r.
9390         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
9391         strerror_r is buggy, but without requiring strerror_r compilation.
9392         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
9393
9394         test-perror: relax test to ignore cygwin bug
9395         * tests/test-perror2.c (main): Relax test on requiring detection
9396         of stream errors, and use unbuffered stream.
9397         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
9398         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
9399         * doc/posix-functions/fputc.texi (fputc): Likewise.
9400         * doc/posix-functions/fputs.texi (fputs): Likewise.
9401         * doc/posix-functions/fputws.texi (fputws): Likewise.
9402         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
9403         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
9404         * doc/posix-functions/getopt.texi (getopt): Likewise.
9405         * doc/posix-functions/perror.texi (perror): Likewise.
9406         * doc/posix-functions/printf.texi (printf): Likewise.
9407         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
9408         * doc/posix-functions/psignal.texi (psignal): Likewise.
9409         * doc/posix-functions/putc.texi (putc): Likewise.
9410         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
9411         Likewise.
9412         * doc/posix-functions/putchar.texi (putchar): Likewise.
9413         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
9414         Likewise.
9415         * doc/posix-functions/puts.texi (puts): Likewise.
9416         * doc/posix-functions/putwc.texi (putwc): Likewise.
9417         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
9418         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
9419         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
9420         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
9421         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
9422         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
9423         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
9424         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
9425
9426 2011-05-22  Bruno Haible  <bruno@clisp.org>
9427
9428         strerror: Move AC_LIBOBJ invocations to module description.
9429         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
9430         gl_PREREQ_STRERROR invocations from here...
9431         * modules/strerror (configure.ac): ... to here.
9432
9433 2011-05-21  Bruno Haible  <bruno@clisp.org>
9434
9435         perror: Use common idiom.
9436         * modules/perror (configure.ac): Reorder statements.
9437
9438 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
9439
9440         tests: fix usage message in 'mktempd_'
9441         * tests/init.sh (mktempd_): In the usage message, use literal
9442         'mktempd_', not '$ME' (which is even undefined), as the name of
9443         the subroutine.
9444
9445 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
9446
9447         tests init: new function 'fatal_', for hard errors
9448         Before this patch, the only way offered by tests/init.sh to
9449         properly signal a hard error was the `framework_failure_'
9450         function.  But the error message issued by that function,
9451         as its name would suggest, refers to a set-up failure in the
9452         testsuite, while hard errors can obviously also be due to
9453         other reasons.  The best way to fix this inconsistency is to
9454         introduce a new function with a more general error message.
9455         * tests/init.sh (fatal_): New function.
9456
9457 2011-06-06  Eric Blake  <eblake@redhat.com>
9458
9459         canonicalize-lgpl: use common idiom
9460         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
9461         over newer POSIX -Rf.
9462         Reported by Bruno Haible.
9463
9464         canonicalize-lgpl: work around AIX realpath bug
9465         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
9466         * doc/posix-functions/realpath.texi (realpath): Document it.
9467         Reported by Bruno Haible.
9468
9469         strerror: work around FreeBSD bug
9470         * lib/strerror.c (strerror): Special case 0.
9471         Reported by Bruno Haible.
9472
9473         strerror-override: avoid bloating errno module
9474         * modules/errno (Files, configure.ac): Move replacement strings...
9475         * modules/strerror-override: ...to new module.
9476         * modules/strerror (Depends-on): Add strerror-override.
9477         * modules/strerror_r-posix (Depends-on): Likewise.
9478         * MODULES.html.sh: Document new module.
9479         Reported by Bruno Haible.
9480
9481 2011-06-06  Bruno Haible  <bruno@clisp.org>
9482
9483         spawn-pipe tests: Rename program.
9484         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
9485         * tests/test-spawn-pipe-child.c: Update comment.
9486         * tests/test-spawn-pipe.sh: Update.
9487         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
9488
9489         spawn-pipe tests: Link the child program only against libc.
9490         * tests/test-spawn-pipe-child.c: New file, extracted from
9491         tests/test-spawn-pipe.c.
9492         (main): Expect only one argument.
9493         (is_open): New function, copied from tests/test-pipe.c.
9494         * tests/test-spawn-pipe.c: Don't include <errno.h>.
9495         (child_main): Remove function.
9496         (test_pipe): Pass only one argument to the child program.
9497         (main): Remove child process code. Expect the child program's name as
9498         first argument.
9499         * tests/test-spawn-pipe.sh: Pass the child program's name as first
9500         argument.
9501         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
9502         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
9503         test-spawn-pipe-child against no libraries.
9504
9505 2011-06-06  Bruno Haible  <bruno@clisp.org>
9506
9507         careadlinkat: Avoid mismatch between ssize_t and int.
9508         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
9509         * lib/careadlinkat.c (careadlinkatcwd): Define always.
9510
9511 2011-06-06  Jim Meyering  <meyering@redhat.com>
9512
9513         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
9514         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
9515         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
9516
9517 2011-06-05  Bruno Haible  <bruno@clisp.org>
9518
9519         ansi-c++-opt: Interoperability with libtool.
9520         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
9521         set the variable to "no", not to ":".
9522         * NEWS: Mention the change.
9523
9524 2011-06-05  Bruno Haible  <bruno@clisp.org>
9525
9526         acl: Fix test failure on AIX 7.
9527         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
9528         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
9529
9530 2011-06-05  Bruno Haible  <bruno@clisp.org>
9531
9532         pipe-filter-ii: Fix test failure on AIX and IRIX.
9533         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
9534         with EAGAIN, retry with a smaller buffer size.
9535
9536 2011-06-05  Bruno Haible  <bruno@clisp.org>
9537
9538         localename: Fix link dependencies.
9539         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
9540         * modules/localename-tests (Makefile.am): Link test-localename with
9541         $(LIBTHREAD).
9542
9543 2011-06-05  Bruno Haible  <bruno@clisp.org>
9544
9545         error: Avoid gcc warning.
9546         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
9547
9548 2011-06-05  Bruno Haible  <bruno@clisp.org>
9549
9550         unsetenv: Avoid gcc warning.
9551         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
9552
9553 2011-06-05  Bruno Haible  <bruno@clisp.org>
9554
9555         setenv: Avoid gcc warning.
9556         * lib/setenv.c (setenv): Provide declaration if system lacks it.
9557
9558 2011-06-05  Bruno Haible  <bruno@clisp.org>
9559
9560         sys_select: Ensure memset is declared also on AIX 7.
9561         * lib/sys_select.in.h: Include <string.h> also on AIX.
9562         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
9563         self-contained also on AIX 7.1.
9564
9565 2011-06-04  Jim Meyering  <meyering@redhat.com>
9566
9567         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
9568         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
9569         function name, "error".
9570         (_gl_translatable_diag_func_re): New configurable variable.
9571
9572 2011-06-04  Bruno Haible  <bruno@clisp.org>
9573
9574         getopt: Avoid gcc warning.
9575         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
9576
9577 2011-06-04  Bruno Haible  <bruno@clisp.org>
9578
9579         strerror_r: Fix comments.
9580         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
9581         commit.
9582
9583 2011-06-04  Bruno Haible  <bruno@clisp.org>
9584
9585         perror: Fix compilation error.
9586         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
9587         Undefine fprintf, not sprintf.
9588         * modules/perror (Depends-on): Remove intprops, verify.
9589
9590 2011-06-04  Bruno Haible  <bruno@clisp.org>
9591
9592         setlocale: Enable replacement on Cygwin 1.5.
9593         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
9594         Cygwin 1.5.x.
9595         * doc/posix-functions/setlocale.texi: Mention that the problem with the
9596         LC_CTYPE category also exists on Cygwin 1.5.x.
9597
9598 2011-06-04  Bruno Haible  <bruno@clisp.org>
9599
9600         strerror-override: Don't disable symbol renamings.
9601         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
9602         * lib/strerror-override.c: Include config.h.
9603         (strerror_override): Don't undefine.
9604
9605 2011-06-03  Bruno Haible  <bruno@clisp.org>
9606
9607         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
9608         * lib/localename.h: Update copyright header.
9609         * lib/localename.c: Likewise.
9610         * lib/relocatable.h: Likewise.
9611         * lib/relocatable.c: Likewise.
9612
9613 2011-06-02  Bruno Haible  <bruno@clisp.org>
9614
9615         doc: Fix a module name.
9616         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
9617
9618 2011-06-02  Bruno Haible  <bruno@clisp.org>
9619
9620         pipe2: Remove dependency on 'nonblocking' module.
9621         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
9622         O_NONBLOCK is defined by gnulib.
9623         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
9624         is zero.
9625         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
9626         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
9627         defined by gnulib.
9628         (get_nonblocking_flag): New function.
9629         (main): Test O_NONBLOCK flag only if it is nonzero.
9630         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
9631
9632 2011-06-03  Jim Meyering  <meyering@redhat.com>
9633
9634         maint: three new prohibit-header-without-use rules
9635         Prohibit use of cloexec.h, posixver.h, same.h without use.
9636         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
9637         (sc_prohibit_posixver_without_use): Likewise.
9638         (sc_prohibit_same_without_use): Likewise.
9639
9640 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
9641
9642         allocator: 'die' routine is now given requested size
9643         * lib/allocator.h (struct allocator.die): New size arg.
9644         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
9645         If the actual problem is an ssize_t limitation, not a size_t or
9646         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
9647
9648 2011-06-01  Eric Blake  <eblake@redhat.com>
9649
9650         strerror: drop strerror_r dependency
9651         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
9652         * lib/strerror-override.c (strerror_override): ...to new file.
9653         * lib/strerror-override.h: Add prototype.
9654         * lib/strerror-impl.h: Delete.
9655         * lib/strerror.c (strerror): New implementation.
9656         * modules/errno (Files): Add new files.
9657         (configure.ac): Compile new file as appropriate.
9658         * modules/strerror (Files): Drop unused file.
9659         (Depends-on): Drop strerror_r-posix.
9660         * MODULES.html.sh: Document strerror_r-posix.
9661         Requested by Sam Steingold.
9662
9663         perror: call strerror_r directly
9664         * modules/perror (Files): Drop strerror-impl.h.
9665         * lib/perror.c (perror): Use our own stack buffer, rather than
9666         calling a wrapper that uses static storage.
9667         * doc/posix-functions/perror.texi (perror): Document a limitation
9668         of our replacement.
9669
9670         strerror_r: fix includes for FreeBSD
9671         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
9672         since we use abort on some platforms.
9673         Reported by Matthias Bolte.
9674
9675 2011-05-31  Bruno Haible  <bruno@clisp.org>
9676
9677         Fix link errors in tests: openat-die uses gettext-h.
9678         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
9679         against $(LIBINTL).
9680         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
9681         against $(LIBINTL).
9682         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
9683         $(LIBINTL).
9684         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
9685         against $(LIBINTL).
9686         * modules/linkat-tests (Makefile.am): Link test-linkat against
9687         $(LIBINTL).
9688         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
9689         $(LIBINTL).
9690         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
9691         against $(LIBINTL).
9692         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
9693         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
9694         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
9695         $(LIBINTL).
9696         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
9697         $(LIBINTL).
9698         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
9699         $(LIBINTL).
9700         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9701
9702 2011-05-31  Bruno Haible  <bruno@clisp.org>
9703
9704         Fix link errors in tests: wait-process uses gettext-h.
9705         * modules/nonblocking-pipe-tests (Makefile.am): Set
9706         test_nonblocking_pipe_main_LDADD.
9707         * modules/nonblocking-socket-tests (Makefile.am): Link
9708         test-nonblocking-socket-main against $(LIBINTL).
9709         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9710
9711 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
9712
9713         assert-h: work around 'verify' incompatibility
9714         * lib/verify.h: Use @...@ directives, not ifdef.
9715         * modules/assert-h (assert.h): Implement the directives.
9716         (assert.h): Substitute the symbol-prefix more consistently.
9717
9718 2011-05-29  Jim Meyering  <meyering@redhat.com>
9719
9720         trim: remove three superfluous assignments
9721         * lib/trim.c (trim2): Remove three superfluous assignments
9722         and correct brace positioning.
9723
9724 2011-05-29  Bruno Haible  <bruno@clisp.org>
9725
9726         wctype-h: Avoid namespace pollution on Solaris 2.6.
9727         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
9728         identifiers.
9729         * doc/posix-headers/wctype.texi: Mention the problem.
9730         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9731
9732 2011-05-28  Jim Meyering  <meyering@redhat.com>
9733
9734         parse-datetime.y: accommodate -Wstrict-overflow
9735         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
9736         placate -Wstrict-overflow.
9737
9738         trim: avoid a warning from -O2 -Wstrict-overflow
9739         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
9740
9741 2011-05-29  Bruno Haible  <bruno@clisp.org>
9742
9743         gnulib-tool: Fix bug in yesterday's commit.
9744         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
9745         twice.
9746
9747 2011-05-29  Bruno Haible  <bruno@clisp.org>
9748
9749         Allow multiple gnulib generated include files to be combined.
9750         * gnulib-tool (func_compute_include_guard_prefix): New function.
9751         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
9752         ${gl_include_guard_prefix} references.
9753         (func_import, func_create_testdir): Invoke
9754         func_compute_include_guard_prefix.
9755         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
9756         * lib/ctype.in.h: Likewise.
9757         * lib/dirent.in.h: Likewise.
9758         * lib/errno.in.h: Likewise.
9759         * lib/fcntl.in.h: Likewise.
9760         * lib/float.in.h: Likewise.
9761         * lib/getopt.in.h: Likewise.
9762         * lib/iconv.in.h: Likewise.
9763         * lib/langinfo.in.h: Likewise.
9764         * lib/locale.in.h: Likewise.
9765         * lib/math.in.h: Likewise.
9766         * lib/netdb.in.h: Likewise.
9767         * lib/netinet_in.in.h: Likewise.
9768         * lib/poll.in.h: Likewise.
9769         * lib/pthread.in.h: Likewise.
9770         * lib/pty.in.h: Likewise.
9771         * lib/sched.in.h: Likewise.
9772         * lib/se-selinux.in.h: Likewise.
9773         * lib/search.in.h: Likewise.
9774         * lib/signal.in.h: Likewise.
9775         * lib/spawn.in.h: Likewise.
9776         * lib/stdarg.in.h: Likewise.
9777         * lib/stddef.in.h: Likewise.
9778         * lib/stdint.in.h: Likewise.
9779         * lib/stdio.in.h: Likewise.
9780         * lib/stdlib.in.h: Likewise.
9781         * lib/string.in.h: Likewise.
9782         * lib/strings.in.h: Likewise.
9783         * lib/sys_file.in.h: Likewise.
9784         * lib/sys_ioctl.in.h: Likewise.
9785         * lib/sys_select.in.h: Likewise.
9786         * lib/sys_socket.in.h: Likewise.
9787         * lib/sys_stat.in.h: Likewise.
9788         * lib/sys_time.in.h: Likewise.
9789         * lib/sys_times.in.h: Likewise.
9790         * lib/sys_uio.in.h: Likewise.
9791         * lib/sys_utsname.in.h: Likewise.
9792         * lib/sys_wait.in.h: Likewise.
9793         * lib/sysexits.in.h: Likewise.
9794         * lib/termios.in.h: Likewise.
9795         * lib/time.in.h: Likewise.
9796         * lib/unistd.in.h: Likewise.
9797         * lib/wchar.in.h: Likewise.
9798         * lib/wctype.in.h: Likewise.
9799         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
9800         * modules/ctype (Makefile.am): Likewise.
9801         * modules/dirent (Makefile.am): Likewise.
9802         * modules/errno (Makefile.am): Likewise.
9803         * modules/fcntl-h (Makefile.am): Likewise.
9804         * modules/float (Makefile.am): Likewise.
9805         * modules/getopt-posix (Makefile.am): Likewise.
9806         * modules/iconv-h (Makefile.am): Likewise.
9807         * modules/langinfo (Makefile.am): Likewise.
9808         * modules/locale (Makefile.am): Likewise.
9809         * modules/math (Makefile.am): Likewise.
9810         * modules/netdb (Makefile.am): Likewise.
9811         * modules/netinet_in (Makefile.am): Likewise.
9812         * modules/poll-h (Makefile.am): Likewise.
9813         * modules/pthread (Makefile.am): Likewise.
9814         * modules/pty (Makefile.am): Likewise.
9815         * modules/sched (Makefile.am): Likewise.
9816         * modules/search (Makefile.am): Likewise.
9817         * modules/selinux-h (Makefile.am): Likewise.
9818         * modules/signal (Makefile.am): Likewise.
9819         * modules/spawn (Makefile.am): Likewise.
9820         * modules/stdarg (Makefile.am): Likewise.
9821         * modules/stddef (Makefile.am): Likewise.
9822         * modules/stdint (Makefile.am): Likewise.
9823         * modules/stdio (Makefile.am): Likewise.
9824         * modules/stdlib (Makefile.am): Likewise.
9825         * modules/string (Makefile.am): Likewise.
9826         * modules/strings (Makefile.am): Likewise.
9827         * modules/sys_file (Makefile.am): Likewise.
9828         * modules/sys_ioctl (Makefile.am): Likewise.
9829         * modules/sys_select (Makefile.am): Likewise.
9830         * modules/sys_socket (Makefile.am): Likewise.
9831         * modules/sys_stat (Makefile.am): Likewise.
9832         * modules/sys_time (Makefile.am): Likewise.
9833         * modules/sys_times (Makefile.am): Likewise.
9834         * modules/sys_uio (Makefile.am): Likewise.
9835         * modules/sys_utsname (Makefile.am): Likewise.
9836         * modules/sys_wait (Makefile.am): Likewise.
9837         * modules/sysexits (Makefile.am): Likewise.
9838         * modules/termios (Makefile.am): Likewise.
9839         * modules/time (Makefile.am): Likewise.
9840         * modules/unistd (Makefile.am): Likewise.
9841         * modules/wchar (Makefile.am): Likewise.
9842         * modules/wctype-h (Makefile.am): Likewise.
9843         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
9844
9845 2011-05-29  Bruno Haible  <bruno@clisp.org>
9846
9847         assert-h: Allow multiple gnulib generated replacements to coexist.
9848         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
9849
9850 2011-05-29  Bruno Haible  <bruno@clisp.org>
9851
9852         argp: Allow coexistence with strerror_r-posix module.
9853         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
9854         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
9855         by gnulib's <string.h> replacement), assume it has the POSIX signature,
9856         not the glibc signature.
9857
9858 2011-05-28  Bruno Haible  <bruno@clisp.org>
9859
9860         gnulib-tool: Alternative structure of testdirs, similar to --import.
9861         * gnulib-tool: New option --single-configure.
9862         (func_usage): Document it.
9863         (single_configure): New variable.
9864         (func_modules_transitive_closure_separately,
9865         func_modules_transitive_closure_separately,
9866         func_determine_use_libtests, func_modules_add_dummy_separately,
9867         func_modules_to_filelist_separately): New functions, extracted from
9868         func_import.
9869         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
9870         (func_import): Use the new functions.
9871         (func_create_testdir): Set final_modules. Handle $single_configure =
9872         true case.
9873
9874 2011-05-28  Bruno Haible  <bruno@clisp.org>
9875
9876         getloadavg: Remove an unreliable safety check.
9877         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
9878         getloadavg.c is in place.
9879         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
9880         Reported by Sam Steingold <sds@gnu.org>.
9881
9882 2011-05-28  Bruno Haible  <bruno@clisp.org>
9883
9884         doc: Cleanup yet another file produced by texinfo.tex.
9885         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
9886
9887 2011-05-28  Bruno Haible  <bruno@clisp.org>
9888
9889         Finish the conditional dependencies mechanism.
9890         * gnulib-tool: New option --no-conditional-dependencies.
9891         (func_usage): Document it. Don't mark --conditional-dependencies as
9892         experimental.
9893         (cond_dependencies): The possible values can now be true, false, empty.
9894         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
9895         (func_import): Store setting in gnulib-cache.m4 and read it from there.
9896         * doc/gnulib-tool.texi (Conditional dependencies): New section.
9897
9898 2011-05-28  Bruno Haible  <bruno@clisp.org>
9899
9900         doc: Use a recent texinfo.tex.
9901         * doc/Makefile (tex_opts): New variable.
9902         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
9903
9904 2011-05-28  Jim Meyering  <meyering@redhat.com>
9905
9906         intprops.h: adjust comment to match code change
9907         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
9908         only once, it *may* have side effects.  Also fix an unrelated typo.
9909         (_GL_INT_SIGNED): Likewise.
9910
9911 2011-05-26  Simon Josefsson  <simon@josefsson.org>
9912
9913         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
9914
9915 2011-05-26  Bruno Haible  <bruno@clisp.org>
9916
9917         mbsrchr: Avoid collision with system function on Interix.
9918         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
9919         Reported by Markus Duft <mduft@gentoo.org>.
9920
9921 2011-05-15  James Youngman  <jay@gnu.org>
9922
9923         getopt: for ambiguous options, enumerate the possibilities.
9924         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
9925         the ambiguous options when an ambiguous prefix is given. This was
9926         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
9927         glibc change was
9928         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
9929
9930 2011-05-25  Eric Blake  <eblake@redhat.com>
9931
9932         getcwd: work around mingw bug
9933         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
9934         * doc/posix-functions/getcwd.texi (getcwd): Document it.
9935         Reported by Matthias Bolte.
9936
9937 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
9938
9939         test-intprops: disable -Wtype-limits diagnostics
9940         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
9941         diagnostics.  Otherwise, the integer overflow macros generate many
9942         diagnostics.  Reported by Jim Meyering in
9943         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
9944
9945         intprops: shorten, to pacify gcc -Woverlength-strings
9946         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
9947         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
9948         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
9949         likely to run afoul of C compiler limits for string constant lengths.
9950         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
9951
9952 2011-05-24  Eric Blake  <eblake@redhat.com>
9953
9954         docs: document recently fixed glibc printf bug
9955         * doc/posix-functions/fprintf.texi (fprintf): Document it.
9956         * doc/posix-functions/printf.texi (printf): Likewise.
9957         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
9958         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
9959
9960         closein-tests: convert to init.sh
9961         * modules/closein-tests (Files): Add init.sh
9962         * tests/test-closein.sh Use it.
9963
9964         yesno-tests: convert to init.sh
9965         * modules/yesno-tests (Files): Add init.sh.
9966         * tests/test-yesno.sh: Use it.
9967
9968         atexit-tests: ensure reliable exit status
9969         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
9970         Reported by Bruno Haible.
9971
9972 2011-05-24  Bruno Haible  <bruno@clisp.org>
9973
9974         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
9975         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
9976         gl_PREREQ_STRERROR_R invocations from here...
9977         * modules/strerror_r-posix (configure.ac): ... to here.
9978
9979 2011-05-24  Eric Blake  <eblake@redhat.com>
9980
9981         strerror_r: fix missing header
9982         * lib/strerror_r.c: Avoid compiler warning about snprintf.
9983
9984         strerror_r: fix AIX test failures
9985         * lib/strerror_r.c (strerror_r): Convert silent truncation to
9986         ERANGE failure.
9987
9988         strerror_r: fix Solaris test failures
9989         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
9990         failures.
9991         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
9992
9993         strerror_r: enforce POSIX recommendations
9994         * lib/strerror_r.c (safe_copy): New helper method.
9995         (strerror_r): Guarantee a non-empty string.
9996         * tests/test-strerror_r.c (main): Enhance tests to incorporate
9997         recent POSIX rulings and to match our strerror guarantees.
9998         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
9999
10000 2011-05-24  Jim Meyering  <meyering@redhat.com>
10001
10002         test-perror2.c: avoid warning about unused variable
10003         * tests/test-perror2.c (main): Remove declaration of unused "fp".
10004
10005 2011-05-24  Eric Blake  <eblake@redhat.com>
10006
10007         perror: avoid spurious test failure on HP-UX
10008         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
10009
10010         tests: fix logic bug in init.sh
10011         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
10012         shell.
10013
10014 2011-05-24  Jim Meyering  <meyering@redhat.com>
10015
10016         utimensat: do not reference an out-of-scope buffer
10017         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
10018         declared in an inner scope, yet "times" would be dereferenced outside
10019         the scope in which "ts" was valid.
10020         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
10021         of ts[2] "out/up", so that the use of aliased "times" (via
10022         "times = ts;") does not end up referencing an out-of-scope "ts"
10023
10024         opendir-safer.c: don't clobber errno; don't close negative FD
10025         * lib/opendir-safer.c (opendir_safer):
10026         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
10027         file descriptor, and more importantly, don't clobber the
10028         offending errno value with EINVAL.  Before, upon failure
10029         of dup_safer, we would pass the negative file descriptor to
10030         fdopendir, which would clobber errno.
10031
10032 2011-05-23  Bruno Haible  <bruno@clisp.org>
10033
10034         idcache: Fix module description.
10035         * modules/idcache (Include): Set to "idcache.h".
10036
10037 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
10038
10039         gnulib-tool: fix portability problem with MacOS sed
10040         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
10041         before the "}".  Problem reported by Leo in
10042         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
10043         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
10044         sed_extract_condition1, sed_extract_condition2.
10045
10046 2011-05-23  Bruno Haible  <bruno@clisp.org>
10047
10048         hash: Simplify autoconf macro.
10049         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
10050
10051 2011-05-23  Bruno Haible  <bruno@clisp.org>
10052
10053         getugroups: Fix module description.
10054         * modules/getugroups (Include): Set to "getugroups.h".
10055
10056 2011-05-23  Bruno Haible  <bruno@clisp.org>
10057
10058         linkat: Simplify autoconf macro.
10059         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
10060
10061 2011-05-23  Bruno Haible  <bruno@clisp.org>
10062             Eric Blake  <eblake@redhat.com>
10063
10064         linkat, renameat: Update dependencies.
10065         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
10066         * modules/linkat (Depends-on): Likewise. Remove also readlink,
10067         symlinkat.
10068
10069 2011-05-23  Jim Meyering  <meyering@redhat.com>
10070
10071         maint.mk: more tight_scope improvements
10072         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
10073         (_gl_TS_headers): Define only in if-0'd block.
10074         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
10075         sometimes we must *not* use it.  Adjust uses accordingly.
10076         (sc_tight_scope): Use much simpler grep-based test to determine
10077         whether we skip this rule.
10078
10079         maint.mk: generalize/improve the tight-scope rule
10080         * top/maint.mk: Emit a warning when the test is skipped.
10081         (_gl_TS_dir): Add $(srcdir)/ prefix.
10082         (_gl_TS_function_match): Simplify, rather than trying
10083         to enumerate common types.  Otherwise, it would fail to match an
10084         "extern unsigned char const *" declaration in idutils.
10085         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
10086         a way to support use of that type of macro.
10087         (_gl_TS_var_match): Simplify regexp.
10088         (_gl_TS_obj_files): New configurable variable.
10089         (_gl_TS_headers): Likewise.
10090
10091 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
10092
10093         verify: fix bug when gnulib <assert.h> is also included
10094         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
10095         is defined, not if _GL_STATIC_ASSERT_H is not defined.
10096         Perhaps there's a better way, but this fixes the immediate problem.
10097         Problem reported by Bruno Haible in
10098         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
10099
10100 2011-05-22  Bruno Haible  <bruno@clisp.org>
10101
10102         xgetcwd: Simplify autoconf macro.
10103         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
10104
10105 2011-05-22  Bruno Haible  <bruno@clisp.org>
10106
10107         New module 'mktime-internal'.
10108         * modules/mktime-internal: New file.
10109         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
10110         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
10111         mktime_internal as a C macro if libc has __mktime_internal.
10112         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
10113         conditions.
10114         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
10115
10116 2011-05-22  Bruno Haible  <bruno@clisp.org>
10117
10118         timegm: Correct mktime replacement statements.
10119         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
10120         defining mktime as a C macro. This completes a 2009-07-28 commit.
10121
10122 2011-05-22  Bruno Haible  <bruno@clisp.org>
10123
10124         timegm: Simplify autoconf macro.
10125         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
10126
10127 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
10128
10129         clock-time: change to LGPLv2+.
10130         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
10131         BSD-like but we have no mark for that; this is good enough for now.
10132
10133 2011-05-21  Bruno Haible  <bruno@clisp.org>
10134
10135         strerror_r: Fix comments.
10136         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
10137
10138 2011-05-21  Bruno Haible  <bruno@clisp.org>
10139
10140         relocatable-prog-wrapper: Fix possible link error.
10141         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
10142         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
10143         (gl_FUNC_SETENV): ... to here.
10144         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
10145         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
10146
10147 2011-05-21  Bruno Haible  <bruno@clisp.org>
10148
10149         relocatable-prog-wrapper: Assume strerror() exists.
10150         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
10151         m4/strerror.m4.
10152         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
10153         * lib/relocwrapper.c: Remove mention of strerror module.
10154         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
10155         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
10156         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
10157         C macro.
10158
10159 2011-05-21  Bruno Haible  <bruno@clisp.org>
10160
10161         select: Simplify replacement idiom.
10162         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
10163         Win32 platforms.
10164         * lib/sys_select.in.h (select): Simplify accordingly.
10165         * modules/select (Depends-on): Likewise.
10166
10167 2011-05-21  Bruno Haible  <bruno@clisp.org>
10168
10169         mkdir-p: Simplify autoconf macro.
10170         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
10171         gl_FUNC_LCHOWN.
10172
10173 2011-05-21  Eric Blake  <eblake@redhat.com>
10174
10175         strerror_r: avoid clobbering strerror on cygwin
10176         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
10177         fall back instead to sys_errlist.
10178         * modules/strerror (configure.ac): Add witness.
10179         * tests/test-strerror_r.c (main): Enhance test.
10180         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
10181         * tests/test-perror2.c (main): Free memory before exit.
10182
10183 2011-05-21  Bruno Haible  <bruno@clisp.org>
10184
10185         mkdtemp: Use gnulib naming conventions.
10186         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
10187         * modules/mkdtemp (configure.ac): Update.
10188
10189 2011-05-20  Eric Blake  <eblake@redhat.com>
10190
10191         strerror_r: avoid corrupting errno on Solaris
10192         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
10193         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
10194
10195         strerror_r: avoid compiler warning
10196         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
10197
10198         strerror_r: simplify AIX code
10199         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
10200
10201         test-perror: avoid spurious failure on FreeBSD
10202         * modules/perror-tests (Depends-on): Add strerror, now that
10203         strerror_r no longer pulls it in.
10204
10205 2011-05-20  Bruno Haible  <bruno@clisp.org>
10206
10207         strerror_r-posix: Remove unused dependencies.
10208         * modules/strerror_r-posix (Depends-on): Remove strerror.
10209         Reported by Eric Blake.
10210
10211 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
10212
10213         intprops: remove assumption about A|B representation
10214         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
10215         is a valid integer if both A and B are.  Although this is true for
10216         all known practical hosts, the C standard doesn't guarantee it,
10217         and the code need not assume it.  Also, this change may work around
10218         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
10219         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
10220
10221 2011-05-20  Eric Blake  <eblake@redhat.com>
10222
10223         perror: work around FreeBSD bug
10224         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
10225         is broken.  Move AC_LIBOBJ...
10226         * modules/perror (configure.ac): Here.
10227         * doc/posix-functions/perror.texi (perror): Document this.
10228         * tests/test-perror2.c (main): Enhance test.
10229
10230         test-perror: check for strerror interactions
10231         * tests/macros.h (STREQ): Add macro.
10232         * modules/perror-tests (Files): Add second test.
10233         * tests/test-perror2.c (main): New file.
10234         * doc/posix-functions/perror.texi (perror): Document glibc bug.
10235
10236         test-perror: rewrite to use init script
10237         * modules/perror-tests (Files): Add init.sh.
10238         * tests/test-perror.sh: Use temporary directory.
10239
10240 2011-05-20  Jim Meyering  <meyering@redhat.com>
10241
10242         maint: replace misused "a" with "an"
10243         * doc/intprops.texi: "a integer"
10244         * doc/regex.texi: "a explanation"
10245         * lib/alignof.h: "a object"
10246         * lib/argmatch.h: "a explanation"
10247         * lib/argp-help.c: "a option" and "a OPTION_DOC"
10248         * lib/stdint.in.h: "a integer"
10249         * lib/userspec.c: "a owner"
10250         * doc/gnulib.texi: Fix "a idea", and reword.
10251
10252 2011-05-19  Jim Meyering  <meyering@redhat.com>
10253
10254         maint: correct misuse of "a" and "an"
10255         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
10256         * lib/argp-help.c: "an docum...": s/an/a/
10257         * lib/argp-parse.c: "An vector": s/An/A/
10258         * lib/execute.c: "an native": s/an/a/
10259         * lib/spawn-pipe.c: Likewise.
10260         * lib/gc.h: "an Gc_rc": s/an/a/
10261         * lib/unigbrk.in.h: "an grapheme": s/an/a/
10262         * lib/fts.c: "an stat.st_dev": s/an/a/
10263
10264 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
10265
10266         intprops-tests: work around HP-UX 11.23 cc bug with constants
10267         * tests/test-intprops.c (VERIFY): New macro.
10268         (main): Use it, instead of verify, to work around the compiler bug; see
10269         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
10270
10271         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
10272         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
10273         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
10274         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
10275         (_GL_REMAINDER_OVERFLOW): Use it.
10276
10277         intprops-tests: revert unsigned part of previous change
10278         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
10279         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
10280         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
10281         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
10282
10283 2011-05-19  Bruno Haible  <bruno@clisp.org>
10284
10285         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
10286         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
10287         strerror_r() returned without filling the buffer.
10288         Reported by Eric Blake.
10289
10290 2011-05-19  Eric Blake  <eblake@redhat.com>
10291
10292         strerror_r: guarantee unchanged errno
10293         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
10294         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
10295         failure.
10296         * tests/test-strerror_r.c (main): Enhance test.
10297
10298 2011-05-19  Bruno Haible  <bruno@clisp.org>
10299
10300         strerror_r: Reorder #if blocks.
10301         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
10302         for consistency with the previous commit.
10303
10304 2011-05-19  Bruno Haible  <bruno@clisp.org>
10305
10306         perror: Avoid clobbering the strerror buffer when possible.
10307         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
10308         * lib/strerror.c: Include it.
10309         * modules/strerror (Files): Add lib/strerror-impl.h.
10310         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
10311         (my_strerror): New function, defined through lib/strerror-impl.h.
10312         (perror): Use it instead of strerror.
10313         * modules/perror (Files): Add lib/strerror-impl.h.
10314         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
10315
10316 2011-05-19  Eric Blake  <eblake@redhat.com>
10317
10318         strerror_r: fix on newer cygwin
10319         * lib/strerror_r.c (strerror_r): Cygwin now has
10320         __xpg_strerror_r, use it.
10321
10322 2011-05-19  Bruno Haible  <bruno@clisp.org>
10323
10324         strerror_r: Avoid clobbering the strerror buffer when possible.
10325         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
10326         (sys_nerr, sys_errlist): New declarations.
10327         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
10328         HP-UX, native Win32, IRIX, and 32-bit Solaris.
10329         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
10330
10331 2011-05-19  Bruno Haible  <bruno@clisp.org>
10332
10333         strerror_r: Fix test failure on mingw.
10334         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
10335         EXTEND_STRERROR_R.
10336         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
10337         macros from errno.in.h instead.
10338
10339 2011-05-19  Eric Blake  <eblake@redhat.com>
10340
10341         strerror: relax test for Solaris
10342         * tests/test-strerror.c (main): Permit Solaris behavior.
10343         * tests/test-strerror_r.c (main): Likewise.
10344
10345         strerror: enforce POSIX ruling on strerror(0)
10346         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
10347         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
10348         * lib/strerror_r.c (rpl_strerror_r): Work around it.
10349         * doc/posix-functions/strerror.texi (strerror): Document it.
10350         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
10351         * tests/test-strerror.c (main): Strengthen test.
10352         * tests/test-strerror_r.c (main): Likewise.
10353
10354 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
10355
10356         intprop-tests: port to older and more-pedantic compilers
10357         * modules/intprops-tests (Files): Add tests/macros.h.
10358         * tests/test-intprops.c: Include macros.h.
10359         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
10360         it's no longer documented to expand to an integer constant expression.
10361         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
10362         argument is floating point, as it's no longer documented to expand
10363         to an integer constant expression in that case.
10364         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
10365         compiler bugs reported by Bruno Haible.  See
10366         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
10367         (U0, U1): New constants, to work around the same bugs.  Also,
10368         in tests, use e.g., "(unsigned int) 39" rather than "39u".
10369
10370         intprops: work around C compiler bugs
10371         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
10372         bug in Sun C 5.11 2010/08/13 and other compilers; see
10373         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
10374
10375         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
10376         * doc/intprops.texi (Integer Type Determination): Fix
10377         documentation for TYPE_IS_INTEGER: it returns an constant
10378         expression, not an integer constant expression.  Fix doc for
10379         TYPE_SIGNED: it returns an integer constant expression only if its
10380         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
10381         hardly worth documented that way....)
10382
10383 2011-05-18  Bruno Haible  <bruno@clisp.org>
10384
10385         strerror_r: Avoid clobbering the strerror buffer when possible.
10386         * lib/strerror_r.c (strerror_r): Merge the three implementations.
10387         Handle gnulib defined errno values here. When strerror() returns NULL
10388         or an empty string, return EINVAL.
10389         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
10390         gnulib defined errno values here.
10391         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
10392
10393 2011-05-18  Eric Blake  <eblake@redhat.com>
10394
10395         fnmatch: avoid compiler warning
10396         * lib/fnmatch_loop.c (FCT): Use correct type.
10397         Reported by Matthias Bolte.
10398
10399 2011-05-13  Jim Meyering  <meyering@redhat.com>
10400
10401         maint.mk: three new prohibit_<HDR>_without_use rules
10402         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
10403         (sc_prohibit_stdio-safer_without_use): Likewise.
10404         (sc_prohibit_xfreopen_without_use): Likewise.
10405
10406 2011-05-17  Jim Meyering  <meyering@redhat.com>
10407
10408         announce-gen: fail if the NEWS delta is empty
10409         If there's nothing noteworthy in NEWS, then either you forgot
10410         or you shouldn't be releasing.
10411         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
10412
10413 2011-05-17  Pádraig Brady <P@draigBrady.com>
10414
10415         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
10416         reserved symbols starting with double underscore from the check.
10417
10418 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
10419
10420         intprops: add doc
10421         * doc/intprops.texi: New file, documenting intprops.
10422         * doc/gnulib.texi (Particular Modules): Include it.
10423
10424         verify: add doc to gnulib manual and fix example
10425         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
10426         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
10427         (Compile-time Assertions): Fix example so it can't overflow.
10428
10429 2011-05-17  Jim Meyering  <meyering@redhat.com>
10430
10431         warnings.m4: don't usurp save_CPPFLAGS variable name
10432         * m4/warnings.m4: Prefix local temporary variable name with gl_.
10433
10434         doc: fix typo
10435         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
10436
10437 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
10438             Bruno Haible  <bruno@clisp.org>
10439
10440         doc: Tweak recent change.
10441         * README (Portability guidelines): Tweak new text.
10442         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
10443         Interix 6.1.
10444
10445 2011-05-16  Eric Blake  <eblake@redhat.com>
10446
10447         inttypes: avoid autoconf warning
10448         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
10449         * m4/stdint.m4 (gl_STDINT_H): Likewise.
10450
10451 2011-05-16  Sam Steingold <sds@gnu.org>
10452         and Eric Blake  <eblake@redhat.com>
10453
10454         vc-list-files: accept multiple directory operands
10455         * build-aux/vc-list-files: Iterate over all remaining operands.
10456
10457 2011-05-16  Bruno Haible  <bruno@clisp.org>
10458
10459         Fix confusion regarding deprecated modules.
10460         * modules/calloc (Status, Notice): Mark module as deprecated, not
10461         obsolete.
10462         * modules/fnmatch-posix (Status, Notice): Likewise.
10463         * modules/getdate (Status, Notice): Likewise.
10464         * modules/getopt (Status, Notice): Likewise.
10465         * modules/malloc (Status, Notice): Likewise.
10466         * modules/pipe (Status, Notice): Likewise.
10467         * modules/realloc (Status, Notice): Likewise.
10468         * modules/rename-dest-slash (Status, Notice): Likewise.
10469         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
10470         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
10471         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
10472         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
10473         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
10474
10475 2011-05-16  Bruno Haible  <bruno@clisp.org>
10476
10477         doc: List the target platforms.
10478         * doc/gnulib-intro.texi (Target Platforms): New section.
10479         * doc/gnulib.texi (Introduction): Update menu.
10480         * README (Portability guidelines): Refer to the new section. Update
10481         statement about oldest supported environment. Remove rationale why
10482         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
10483         unportable C89 function.
10484         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
10485         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
10486
10487 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
10488
10489         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
10490
10491 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
10492
10493         intprops-tests: new module
10494         * modules/intprops-tests, tests/test-intprops.c: New files.
10495
10496         intprops: add safe, portable integer overflow checking
10497         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
10498         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
10499         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
10500         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
10501         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
10502         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
10503         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
10504         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
10505         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
10506         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
10507         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
10508
10509 2011-05-12  James Youngman  <jay@gnu.org>
10510
10511         Add a test for glibc's Bugzilla bug #12378.
10512         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
10513         doesn't allow the literal matching of a lone "[" (which is
10514         required by POSIX).
10515         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
10516
10517 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
10518
10519         Sync glibc change fixing Bugzilla bug #12378.
10520         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
10521         beginning and fall back to matching as normal character if the
10522         string ends before the matching ']' is found.  This is what POSIX
10523         requires.
10524
10525 2011-05-13  Eric Blake  <eblake@redhat.com>
10526
10527         getcwd-lgpl: relax test for FreeBSD
10528         * doc/posix-functions/getcwd.texi (getcwd): Document portability
10529         issue.
10530         * tests/test-getcwd-lgpl.c (main): Relax test.
10531         Reported by Matthias Bolte.
10532
10533 2011-05-11  Eric Blake  <eblake@redhat.com>
10534
10535         test-fflush: silence compiler warning
10536         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
10537
10538 2011-05-11  Bruno Haible  <bruno@clisp.org>
10539
10540         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
10541         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
10542         * modules/canonicalize (Depends-on): Add 'nocrash'.
10543         * modules/canonicalize-lgpl (Depends-on): Likewise.
10544         * doc/posix-functions/realpath.texi: Update platforms list.
10545         Reported by Ryan Schmidt <ryandesign@macports.org>.
10546
10547 2011-05-11  Bruno Haible  <bruno@clisp.org>
10548
10549         group-member: Declare function in <unistd.h>.
10550         * lib/unistd.in.h (group_member): New declaration.
10551         * lib/group-member.h: Remove file.
10552         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
10553         * tests/test-unistd-c++.cc: Check signature of group_member.
10554         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
10555         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
10556         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
10557         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
10558         HAVE_GROUP_MEMBER.
10559         * modules/group-member (Files): Remove lib/group-member.h.
10560         (Depends-on): Add unistd. Specify conditions.
10561         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
10562         (Include): Change to <unistd.h>.
10563         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
10564         HAVE_GROUP_MEMBER.
10565         * NEWS: Mention the change.
10566         * lib/euidaccess.c: Don't include group-member.h.
10567
10568 2011-05-11  Bruno Haible  <bruno@clisp.org>
10569
10570         group-member: Document module.
10571         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
10572         module.
10573
10574 2011-05-11  Bruno Haible  <bruno@clisp.org>
10575
10576         fclose: Fix mistake earlier today.
10577         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
10578
10579 2011-05-11  Eric Blake  <eblake@redhat.com>
10580
10581         fclose: preserve fflush errors
10582         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
10583         Reported by Jim Meyering.
10584
10585         bootstrap: support a prereq of 'rpcgen -' on RHEL5
10586         * build-aux/bootstrap (check_versions): When no specific version
10587         is required, merely check that the app produces an exit status
10588         that indicates its existence.
10589
10590         maint.mk: drop redundant check
10591         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
10592         the same but better.
10593
10594 2011-05-11  Bruno Haible  <bruno@clisp.org>
10595
10596         fclose: Fix possible link error.
10597         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
10598         unregister_shadow_fd. Improve comments.
10599         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
10600         Eric Blake.
10601
10602 2011-05-11  Jim Meyering  <meyering@redhat.com>
10603
10604         maint.mk: improve "can not" detection and generalize rule name
10605         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
10606         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
10607         Use the same technique as in sc_prohibit_doubled_word, so that
10608         we recognize "can not" also when the words are separated by a newline.
10609         Suggested by Eric Blake.
10610         (perl_filename_lineno_text_): Define.  Factored out of...
10611         (prohibit_doubled_word_): ...here.  Use the new definition.
10612         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
10613         (prohibit_undesirable_word_seq_RE_): New overridable variable.
10614         (ignore_undesirable_word_sequence_RE_): New overridable variable.
10615
10616 2011-05-10  Eric Blake  <eblake@redhat.com>
10617
10618         fclose: avoid double close race when possible
10619         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
10620         all but WINDOWS_SOCKETS.
10621
10622 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
10623
10624         openat: correct new comment
10625         * lib/openat-proc.c (openat_proc_name): Correct the comment.
10626
10627 2011-05-10  Jim Meyering  <meyering@redhat.com>
10628
10629         openat: add comments
10630         * lib/openat-proc.c (openat_proc_name): Add comments,
10631         mostly from Eric Blake.
10632
10633 2011-05-09  Eric Blake  <eblake@redhat.com>
10634
10635         openat: reduce syscalls in first probe of /proc
10636         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
10637         be a directory.  Simplify the probe for .. bugs.
10638         * modules/openat (Depends-on): Drop same-inode.
10639         Reported by Bastien ROUCARIES.
10640
10641 2011-05-09  Jim Meyering  <meyering@redhat.com>
10642
10643         maint.mk: change semantics/name of tight_scope variables
10644         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
10645         Rename variables to align with semantics that make them more useful.
10646
10647         maint.mk: tweak new rule's name not to impinge
10648         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
10649         (sc_tight_scope): Use new rule name rather than $@-0.
10650
10651         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
10652         * top/maint.mk (sc_tight_scope): New rule.
10653         (sc_tight_scope-0): New rule, ifdef'd out.
10654         (_gl_TS_dir): Default.
10655         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
10656         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
10657
10658 2011-05-09  Simon Josefsson  <simon@josefsson.org>
10659
10660         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
10661         Haible <bruno@clisp.org>.
10662
10663 2011-05-08  Bruno Haible  <bruno@clisp.org>
10664
10665         Comments.
10666         * m4/isnanf.m4: Add comment.
10667         * m4/isnanl.m4: Likewise.
10668
10669 2011-05-08  Bruno Haible  <bruno@clisp.org>
10670
10671         glob: Remove obsolete macro.
10672         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
10673
10674 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
10675
10676         intprops: Sun C 5.11 supports __typeof__
10677         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
10678         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
10679         which is new.
10680         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
10681
10682         intprops: switch to usual gnulib indenting and naming
10683         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
10684         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
10685
10686         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
10687
10688 2011-05-08  Jim Meyering  <meyering@redhat.com>
10689
10690         maint.mk: suppress "Entering/Leaving directory" diag in announcement
10691         * top/maint.mk (release-prep): Use make's --no-print-directory
10692         option when generating the announcement.  This eliminates the
10693         pesky "make[2]: Entering/Leaving directory" diagnostics in the
10694         generated announcement template.
10695
10696 2011-05-08  Bruno Haible  <bruno@clisp.org>
10697
10698         tzset: Fix gettimeofday wrapper on Solaris 2.6.
10699         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
10700         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
10701
10702 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
10703
10704         ignore-value, verify: Omit include files from lib_SOURCES.
10705         * modules/ignore-value, modules/verify (Makefile.am):
10706         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
10707         that leads Automake to duplicate use of am__objects_... variables
10708         in Makefile.in.  See
10709         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
10710
10711 2011-05-07  Bruno Haible  <bruno@clisp.org>
10712
10713         fclose: Simplify autoconf macro.
10714         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
10715         defined.
10716
10717 2011-05-07  Bruno Haible  <bruno@clisp.org>
10718
10719         canonicalize-lgpl: Fix autoconf macro ordering bug.
10720         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
10721         gl_STDLIB_H_DEFAULTS.
10722
10723 2011-05-06  Eric Blake  <eblake@redhat.com>
10724
10725         maintainer-makefile: make sc_po_check easier to tune
10726         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
10727         to probe for strings, such as an alternate location for gnulib.
10728
10729         fclose: guarantee behavior on seekable stdin
10730         * modules/fclose (Depends-on): Add fflush.
10731         * doc/posix-functions/fclose.texi (fclose): Document this.
10732         * tests/test-fclose.c (main): Make test for this unconditional.
10733
10734 2011-05-06  Bruno Haible  <bruno@clisp.org>
10735
10736         fflush, fpurge: Relicense under LGPLv2+.
10737         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
10738         * modules/fpurge (License): Likewise.
10739         With permission from Eric Blake and Jim Meyering.
10740         Suggested by Eric Blake.
10741
10742 2011-05-06  Karl Berry  <karl@gnu.org>
10743
10744         * MODULES.html.sh (func_all_modules): remove exit.
10745
10746 2011-05-06  Jim Meyering  <meyering@redhat.com>
10747
10748         maint.mk: use info-gnu@ as the default only for a stable release
10749         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
10750         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
10751         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
10752         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
10753
10754 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
10755
10756         assert-h: new module, which supports C1X-style static_assert
10757         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
10758         * lib/verify.h: Revamp so that this can be copied into assert.h,
10759         while retaining the ability to use it standalone as before.
10760         Rename private identifiers so as not to encroach on the
10761         standard C namespace, since this is now used by assert.h.
10762         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
10763         the old verify_true.
10764         (_GL_VERIFY_TRUE): New macro, with much of the contents of
10765         the old verify_true.  Use _GL_VERIFY_TYPE.
10766         (_GL_VERIFY): New macro, with much of the contents of the old verify.
10767         (static_assert): New macro, if _GL_STATIC_ASSERT_H
10768         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
10769         defined when this file is copied into the replacement assert.h.
10770         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
10771         and _Static_assert is not built in.
10772         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
10773         defined, and use the new macros mentioned above.
10774         * doc/posix-headers/assert.texi: Document this.
10775
10776 2011-05-05  Bruno Haible  <bruno@clisp.org>
10777
10778         fclose, fflush: Respect rules for use of AC_LIBOBJ.
10779         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
10780         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
10781         gl_REPLACE_FCLOSE here.
10782         * modules/fflush (Depends-on): Remove fclose.
10783         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
10784         combination with module 'fclose'.
10785
10786 2011-05-05  Bruno Haible  <bruno@clisp.org>
10787
10788         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
10789         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
10790         gl_FUNC_FFLUSH.
10791         (gl_FUNC_FFLUSH): Use it.
10792         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
10793         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
10794         gl_REPLACE_FSEEKO here.
10795
10796 2011-05-05  Bruno Haible  <bruno@clisp.org>
10797
10798         tzset: Relicense under LGPL.
10799         * modules/tzset (License): Change to LGPL.
10800         No agreement needed; it's a no-op.
10801
10802         strtoimax, strtoumax: Relicense under LGPL.
10803         * modules/strtoimax (License): Change to LGPL.
10804         * modules/strtoumax (License): Likewise.
10805         With permission from Jim Meyering, Paul Eggert:
10806         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
10807         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
10808
10809         getgroups: Relicense under LGPL.
10810         * modules/getgroups (License): Change to LGPL.
10811         With permission from Jim Meyering, Paul Eggert, Eric Blake:
10812         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
10813         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
10814         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
10815
10816         nanosleep: Relicense under LGPL.
10817         * modules/nanosleep (License): Change to LGPL.
10818         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
10819         Haible:
10820         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
10821         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
10822         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
10823         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
10824
10825         futimens: Relicense under LGPL.
10826         * modules/futimens (License): Change to LGPL.
10827         With permission from Eric Blake:
10828         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
10829
10830         fflush: Relicense under LGPL.
10831         * modules/fflush (License): Change to LGPL.
10832         With permission from Eric Blake, Bruno Haible, Jim Meyering:
10833         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
10834         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
10835         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
10836
10837         tmpfile: Relicense under LGPL.
10838         * modules/tmpfile (License): Change to LGPL.
10839         With permission from Ben Pfaff:
10840         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
10841
10842         isfinite: Relicense under LGPL.
10843         * modules/isfinite (License): Change to LGPL.
10844         With permission from Ben Pfaff, Bruno Haible:
10845         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
10846         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
10847
10848         acosl..tanl: Relicense under LGPL.
10849         * modules/acosl (License): Change to LGPL.
10850         * modules/asinl (License): Likewise.
10851         * modules/atanl (License): Likewise.
10852         * modules/cosl (License): Likewise.
10853         * modules/expl (License): Likewise.
10854         * modules/logl (License): Likewise.
10855         * modules/sinl (License): Likewise.
10856         * modules/sqrtl (License): Likewise.
10857         * modules/tanl (License): Likewise.
10858         Source code originally from glibc and Paolo Bonzini. Agreements:
10859         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
10860         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
10861
10862 2011-05-05  Bruno Haible  <bruno@clisp.org>
10863
10864         signal: Define sighandler_t.
10865         * lib/signal.in.h (sighandler_t): New type.
10866         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
10867         whether sighandler_t is defined.
10868         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
10869         * modules/signal (Depends-on): Add extensions.
10870         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
10871         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
10872         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
10873
10874 2011-05-05  Eric Blake  <eblake@redhat.com>
10875
10876         maint: remove useless REPLACE_*_H macros
10877         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
10878         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
10879         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
10880         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
10881         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
10882         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
10883         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
10884         * m4/btowc.m4: Update callers.
10885         * m4/dirfd.m4: Likewise.
10886         * m4/duplocale.m4: Likewise.
10887         * m4/fchdir.m4: Likewise.
10888         * m4/fdopendir.m4: Likewise.
10889         * m4/inet_ntop.m4: Likewise.
10890         * m4/inet_pton.m4: Likewise.
10891         * m4/ioctl.m4: Likewise.
10892         * m4/mbrlen.m4: Likewise.
10893         * m4/mbrtowc.m4: Likewise.
10894         * m4/mbsinit.m4: Likewise.
10895         * m4/mbsnrtowcs.m4: Likewise.
10896         * m4/mbsrtowcs.m4: Likewise.
10897         * m4/poll.m4: Likewise.
10898         * m4/setlocale.m4: Likewise.
10899         * m4/wcrtomb.m4: Likewise.
10900         * m4/wcsnrtombs.m4: Likewise.
10901         * m4/wcsrtombs.m4: Likewise.
10902         * m4/wctob.m4: Likewise.
10903         * m4/wcwidth.m4: Likewise.
10904         * modules/posix_spawn: Likewise.
10905         * modules/posix_spawn_file_actions_addclose: Likewise.
10906         * modules/posix_spawn_file_actions_adddup2: Likewise.
10907         * modules/posix_spawn_file_actions_addopen: Likewise.
10908         * modules/posix_spawn_file_actions_destroy: Likewise.
10909         * modules/posix_spawn_file_actions_init: Likewise.
10910         * modules/posix_spawnattr_destroy: Likewise.
10911         * modules/posix_spawnattr_getflags: Likewise.
10912         * modules/posix_spawnattr_getpgroup: Likewise.
10913         * modules/posix_spawnattr_getschedparam: Likewise.
10914         * modules/posix_spawnattr_getschedpolicy: Likewise.
10915         * modules/posix_spawnattr_getsigdefault: Likewise.
10916         * modules/posix_spawnattr_getsigmask: Likewise.
10917         * modules/posix_spawnattr_init: Likewise.
10918         * modules/posix_spawnattr_setflags: Likewise.
10919         * modules/posix_spawnattr_setpgroup: Likewise.
10920         * modules/posix_spawnattr_setschedparam: Likewise.
10921         * modules/posix_spawnattr_setschedpolicy: Likewise.
10922         * modules/posix_spawnattr_setsigdefault: Likewise.
10923         * modules/posix_spawnattr_setsigmask: Likewise.
10924         * modules/posix_spawnp: Likewise.
10925
10926 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
10927
10928         Add option to do-release-commit-and-tag to specify branch.
10929         * build-aux/do-release-commit-and-tag: Add --branch.
10930
10931 2011-05-03  Bruno Haible  <bruno@clisp.org>
10932
10933         Avoid unnecessary compilation units, through conditional dependencies.
10934         * modules/accept (Depends-on): Add conditions to the dependencies.
10935         * modules/acosl (Depends-on): Likewise.
10936         * modules/argz (Depends-on): Likewise.
10937         * modules/asinl (Depends-on): Likewise.
10938         * modules/atanl (Depends-on): Likewise.
10939         * modules/atoll (Depends-on): Likewise.
10940         * modules/bind (Depends-on): Likewise.
10941         * modules/btowc (Depends-on): Likewise.
10942         * modules/canonicalize-lgpl (Depends-on): Likewise.
10943         * modules/ceil (Depends-on): Likewise.
10944         * modules/ceilf (Depends-on): Likewise.
10945         * modules/ceill (Depends-on): Likewise.
10946         * modules/chdir-long (Depends-on): Likewise.
10947         * modules/chown (Depends-on): Likewise.
10948         * modules/close (Depends-on): Likewise.
10949         * modules/connect (Depends-on): Likewise.
10950         * modules/cosl (Depends-on): Likewise.
10951         * modules/dirfd (Depends-on): Likewise.
10952         * modules/dprintf (Depends-on): Likewise.
10953         * modules/dprintf-posix (Depends-on): Likewise.
10954         * modules/error (Depends-on): Likewise.
10955         * modules/euidaccess (Depends-on): Likewise.
10956         * modules/expl (Depends-on): Likewise.
10957         * modules/faccessat (Depends-on): Likewise.
10958         * modules/fchdir (Depends-on): Likewise.
10959         * modules/fclose (Depends-on): Likewise.
10960         * modules/fcntl (Depends-on): Likewise.
10961         * modules/fdopendir (Depends-on): Likewise.
10962         * modules/fflush (Depends-on): Likewise.
10963         * modules/floor (Depends-on): Likewise.
10964         * modules/floorf (Depends-on): Likewise.
10965         * modules/floorl (Depends-on): Likewise.
10966         * modules/fnmatch (Depends-on): Likewise.
10967         * modules/fopen (Depends-on): Likewise.
10968         * modules/fprintf-posix (Depends-on): Likewise.
10969         * modules/frexp (Depends-on): Likewise.
10970         * modules/frexp-nolibm (Depends-on): Likewise.
10971         * modules/frexpl (Depends-on): Likewise.
10972         * modules/frexpl-nolibm (Depends-on): Likewise.
10973         * modules/fseek (Depends-on): Likewise.
10974         * modules/fsusage (Depends-on): Likewise.
10975         * modules/ftell (Depends-on): Likewise.
10976         * modules/ftello (Depends-on): Likewise.
10977         * modules/futimens (Depends-on): Likewise.
10978         * modules/getcwd (Depends-on): Likewise.
10979         * modules/getcwd-lgpl (Depends-on): Likewise.
10980         * modules/getdelim (Depends-on): Likewise.
10981         * modules/getdomainname (Depends-on): Likewise.
10982         * modules/getgroups (Depends-on): Likewise.
10983         * modules/gethostname (Depends-on): Likewise.
10984         * modules/getline (Depends-on): Likewise.
10985         * modules/getlogin_r (Depends-on): Likewise.
10986         * modules/getopt-posix (Depends-on): Likewise.
10987         * modules/getpeername (Depends-on): Likewise.
10988         * modules/getsockname (Depends-on): Likewise.
10989         * modules/getsockopt (Depends-on): Likewise.
10990         * modules/getsubopt (Depends-on): Likewise.
10991         * modules/getusershell (Depends-on): Likewise.
10992         * modules/glob (Depends-on): Likewise.
10993         * modules/grantpt (Depends-on): Likewise.
10994         * modules/iconv_open (Depends-on): Likewise.
10995         * modules/iconv_open-utf (Depends-on): Likewise.
10996         * modules/inet_ntop (Depends-on): Likewise.
10997         * modules/inet_pton (Depends-on): Likewise.
10998         * modules/ioctl (Depends-on): Likewise.
10999         * modules/isapipe (Depends-on): Likewise.
11000         * modules/isfinite (Depends-on): Likewise.
11001         * modules/isinf (Depends-on): Likewise.
11002         * modules/lchown (Depends-on): Likewise.
11003         * modules/ldexpl (Depends-on): Likewise.
11004         * modules/link (Depends-on): Likewise.
11005         * modules/linkat (Depends-on): Likewise.
11006         * modules/listen (Depends-on): Likewise.
11007         * modules/logl (Depends-on): Likewise.
11008         * modules/lstat (Depends-on): Likewise.
11009         * modules/mbrlen (Depends-on): Likewise.
11010         * modules/mbrtowc (Depends-on): Likewise.
11011         * modules/mbsinit (Depends-on): Likewise.
11012         * modules/mbsnrtowcs (Depends-on): Likewise.
11013         * modules/mbsrtowcs (Depends-on): Likewise.
11014         * modules/mbtowc (Depends-on): Likewise.
11015         * modules/memcmp (Depends-on): Likewise.
11016         * modules/mkdir (Depends-on): Likewise.
11017         * modules/mkdtemp (Depends-on): Likewise.
11018         * modules/mkfifo (Depends-on): Likewise.
11019         * modules/mkfifoat (Depends-on): Likewise.
11020         * modules/mknod (Depends-on): Likewise.
11021         * modules/mkostemp (Depends-on): Likewise.
11022         * modules/mkostemps (Depends-on): Likewise.
11023         * modules/mkstemp (Depends-on): Likewise.
11024         * modules/mkstemps (Depends-on): Likewise.
11025         * modules/mktime (Depends-on): Likewise.
11026         * modules/nanosleep (Depends-on): Likewise.
11027         * modules/open (Depends-on): Likewise.
11028         * modules/openat (Depends-on): Likewise.
11029         * modules/perror (Depends-on): Likewise.
11030         * modules/poll (Depends-on): Likewise.
11031         * modules/popen (Depends-on): Likewise.
11032         * modules/posix_spawn (Depends-on): Likewise.
11033         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
11034         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
11035         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
11036         * modules/posix_spawnp (Depends-on): Likewise.
11037         * modules/pread (Depends-on): Likewise.
11038         * modules/printf-posix (Depends-on): Likewise.
11039         * modules/ptsname (Depends-on): Likewise.
11040         * modules/putenv (Depends-on): Likewise.
11041         * modules/pwrite (Depends-on): Likewise.
11042         * modules/readline (Depends-on): Likewise.
11043         * modules/readlink (Depends-on): Likewise.
11044         * modules/readlinkat (Depends-on): Likewise.
11045         * modules/recv (Depends-on): Likewise.
11046         * modules/recvfrom (Depends-on): Likewise.
11047         * modules/regex (Depends-on): Likewise.
11048         * modules/remove (Depends-on): Likewise.
11049         * modules/rename (Depends-on): Likewise.
11050         * modules/renameat (Depends-on): Likewise.
11051         * modules/rmdir (Depends-on): Likewise.
11052         * modules/round (Depends-on): Likewise.
11053         * modules/roundf (Depends-on): Likewise.
11054         * modules/roundl (Depends-on): Likewise.
11055         * modules/rpmatch (Depends-on): Likewise.
11056         * modules/select (Depends-on): Likewise.
11057         * modules/send (Depends-on): Likewise.
11058         * modules/sendto (Depends-on): Likewise.
11059         * modules/setenv (Depends-on): Likewise.
11060         * modules/setlocale (Depends-on): Likewise.
11061         * modules/setsockopt (Depends-on): Likewise.
11062         * modules/shutdown (Depends-on): Likewise.
11063         * modules/sigaction (Depends-on): Likewise.
11064         * modules/signbit (Depends-on): Likewise.
11065         * modules/sigprocmask (Depends-on): Likewise.
11066         * modules/sinl (Depends-on): Likewise.
11067         * modules/sleep (Depends-on): Likewise.
11068         * modules/snprintf (Depends-on): Likewise.
11069         * modules/snprintf-posix (Depends-on): Likewise.
11070         * modules/socket (Depends-on): Likewise.
11071         * modules/sprintf-posix (Depends-on): Likewise.
11072         * modules/sqrtl (Depends-on): Likewise.
11073         * modules/stat (Depends-on): Likewise.
11074         * modules/strchrnul (Depends-on): Likewise.
11075         * modules/strdup-posix (Depends-on): Likewise.
11076         * modules/strerror (Depends-on): Likewise.
11077         * modules/strerror_r-posix (Depends-on): Likewise.
11078         * modules/strndup (Depends-on): Likewise.
11079         * modules/strnlen (Depends-on): Likewise.
11080         * modules/strptime (Depends-on): Likewise.
11081         * modules/strsep (Depends-on): Likewise.
11082         * modules/strsignal (Depends-on): Likewise.
11083         * modules/strstr-simple (Depends-on): Likewise.
11084         * modules/strtod (Depends-on): Likewise.
11085         * modules/strtoimax (Depends-on): Likewise.
11086         * modules/strtok_r (Depends-on): Likewise.
11087         * modules/strtoumax (Depends-on): Likewise.
11088         * modules/symlink (Depends-on): Likewise.
11089         * modules/symlinkat (Depends-on): Likewise.
11090         * modules/tanl (Depends-on): Likewise.
11091         * modules/tcgetsid (Depends-on): Likewise.
11092         * modules/tmpfile (Depends-on): Likewise.
11093         * modules/trunc (Depends-on): Likewise.
11094         * modules/truncf (Depends-on): Likewise.
11095         * modules/truncl (Depends-on): Likewise.
11096         * modules/uname (Depends-on): Likewise.
11097         * modules/unlink (Depends-on): Likewise.
11098         * modules/unlockpt (Depends-on): Likewise.
11099         * modules/unsetenv (Depends-on): Likewise.
11100         * modules/usleep (Depends-on): Likewise.
11101         * modules/utimensat (Depends-on): Likewise.
11102         * modules/vasprintf (Depends-on): Likewise.
11103         * modules/vdprintf (Depends-on): Likewise.
11104         * modules/vdprintf-posix (Depends-on): Likewise.
11105         * modules/vfprintf-posix (Depends-on): Likewise.
11106         * modules/vprintf-posix (Depends-on): Likewise.
11107         * modules/vsnprintf (Depends-on): Likewise.
11108         * modules/vsnprintf-posix (Depends-on): Likewise.
11109         * modules/vsprintf-posix (Depends-on): Likewise.
11110         * modules/wcrtomb (Depends-on): Likewise.
11111         * modules/wcscasecmp (Depends-on): Likewise.
11112         * modules/wcscspn (Depends-on): Likewise.
11113         * modules/wcsdup (Depends-on): Likewise.
11114         * modules/wcsncasecmp (Depends-on): Likewise.
11115         * modules/wcsnrtombs (Depends-on): Likewise.
11116         * modules/wcspbrk (Depends-on): Likewise.
11117         * modules/wcsrtombs (Depends-on): Likewise.
11118         * modules/wcsspn (Depends-on): Likewise.
11119         * modules/wcsstr (Depends-on): Likewise.
11120         * modules/wcstok (Depends-on): Likewise.
11121         * modules/wcswidth (Depends-on): Likewise.
11122         * modules/wctob (Depends-on): Likewise.
11123         * modules/wctomb (Depends-on): Likewise.
11124         * modules/wctype (Depends-on): Likewise.
11125         * modules/wcwidth (Depends-on): Likewise.
11126         * modules/write (Depends-on): Likewise.
11127
11128 2011-05-03  Bruno Haible  <bruno@clisp.org>
11129
11130         Support for conditional dependencies.
11131         * doc/gnulib.texi (Module description): Document the syntax of
11132         conditional dependencies.
11133         * gnulib-tool: New option --conditional-dependencies.
11134         (func_usage): Document it.
11135         (cond_dependencies): New variable.
11136         (func_get_automake_snippet_conditional,
11137         func_get_automake_snippet_unconditional): New functions, extracted from
11138         func_get_automake_snippet.
11139         (func_get_automake_snippet): Use them.
11140         (sed_first_32_chars): New variable.
11141         (func_module_shellfunc_name): New function.
11142         (func_module_shellvar_name): New function.
11143         (func_module_conditional_name): New function.
11144         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
11145         func_cond_module_condition): New functions.
11146         (func_modules_transitive_closure): Add support for conditional
11147         dependencies.
11148         (func_emit_lib_Makefile_am): For a conditional module, enclose the
11149         conditional automake snippet in an automake conditional.
11150         (func_emit_autoconf_snippets): Emit shell functions that contain the
11151         code for conditional modules.
11152         (func_import, func_create_testdir): Update specification.
11153
11154 2011-05-03  Eric Blake  <eblake@redhat.com>
11155
11156         test-getaddrinfo: report error information
11157         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
11158
11159 2011-05-03  Jim Meyering  <meyering@redhat.com>
11160
11161         bootstrap: avoid build failure when $GZIP is set
11162         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
11163         program name.  If defined at all, it is supposed to list gzip options.
11164         Reported by Alan Curry in http://debbugs.gnu.org/8609
11165
11166 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
11167
11168         readme-release: new module with release instructions
11169         * modules/readme-release: New module.
11170         * top/README-release: New file, from coreutils, grep, diffutils.
11171         * MODULES.html.sh (Support for maintaining and releasing): Add it.
11172
11173 2011-05-02  Eric Blake  <eblake@redhat.com>
11174
11175         fflush: also replace fclose when fixing fflush
11176         * modules/fflush (Depends-on): Add fclose.
11177         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
11178         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
11179         memstreams with no backing fd.
11180         * doc/posix-functions/fclose.texi (fclose): Document the use of
11181         fflush module to fix the bug.
11182         * tests/test-fclose.c (main): Relax test when fclose is used in
11183         isolation.
11184
11185         fclose: add some tests
11186         * modules/fclose-tests: New test module.
11187         * tests/test-fclose.c: New file.
11188         * doc/posix-functions/fclose.texi (fclose): Document the bug.
11189
11190         fclose: reduced dependencies
11191         * modules/fclose (Depends-on): Switch from fflush/fseeko to
11192         simpler lseek.
11193         * lib/fclose.c (rpl_fclose): Likewise.
11194         Reported by Simon Josefsson.
11195
11196         exit: drop remaining clients
11197         * modules/argmatch (Depends-on): Replace exit with stdlib.
11198         * modules/copy-file (Depends-on): Likewise.
11199         * modules/execute (Depends-on): Likewise.
11200         * modules/exitfail (Depends-on): Likewise.
11201         * modules/obstack (Depends-on): Likewise.
11202         * modules/pagealign_alloc (Depends-on): Likewise.
11203         * modules/pipe-filter-gi (Depends-on): Likewise.
11204         * modules/pipe-filter-ii (Depends-on): Likewise.
11205         * modules/savewd (Depends-on): Likewise.
11206         * modules/spawn-pipe (Depends-on): Likewise.
11207         * modules/wait-process (Depends-on): Likewise.
11208         * modules/xsetenv (Depends-on): Likewise.
11209         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
11210         * modules/git-merge-changelog (Depends-on): Likewise.
11211         * modules/long-options (Depends-on): Likewise.
11212         * modules/pt_chown (Depends-on): Likewise.
11213         * modules/sysexits (Depends-on): Likewise.
11214
11215         freading: relax license from LGPLv3+ to LGPLv2+
11216         * modules/freading (License): Relax LGPL version.
11217
11218 2011-05-02  Bruno Haible  <bruno@clisp.org>
11219
11220         fchdir: Remove unused dependencies.
11221         * modules/fchdir (Depends-on): Remove include_next.
11222
11223 2011-05-02  Bruno Haible  <bruno@clisp.org>
11224
11225         gnulib-tool: Refactor.
11226         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
11227         from func_emit_autoconf_snippets.
11228         (func_emit_autoconf_snippets): Use it.
11229
11230 2011-05-02  Simon Josefsson  <simon@josefsson.org>
11231
11232         * NEWS: Document removal of 'exit'.
11233         * modules/exit: Remove file.
11234
11235 2011-05-01  Bruno Haible  <bruno@clisp.org>
11236
11237         Update DEPENDENCIES.
11238         * DEPENDENCIES (gettext): Recommend the newest release.
11239         Reported by Simon Josefsson.
11240
11241 2011-05-01  Bruno Haible  <bruno@clisp.org>
11242
11243         gnulib-tool: Reduce code duplication.
11244         * gnulib-tool (func_emit_autoconf_snippets): New function.
11245         (func_import, func_create_testdir): Use it.
11246
11247 2011-04-30  Eric Blake  <eblake@redhat.com>
11248
11249         fclose: don't fail on non-seekable input stream
11250         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
11251         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
11252         since fflush is allowed to fail in that case.
11253
11254 2011-04-30  Bruno Haible  <bruno@clisp.org>
11255
11256         dup3: cleanup
11257         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
11258
11259 2011-04-30  Bruno Haible  <bruno@clisp.org>
11260
11261         netdb: Make it work in C++ mode.
11262         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
11263         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
11264         module.
11265         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
11266         gl_MODULE_INDICATOR_FOR_TESTS.
11267         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
11268         * modules/netdb-c++-tests: New file.
11269         * tests/test-netdb-c++.cc: New file.
11270
11271 2011-04-30  Bruno Haible  <bruno@clisp.org>
11272
11273         New modules 'vfscanf', 'vscanf'.
11274         * modules/vfscanf: New file.
11275         * modules/vscanf: New file.
11276         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
11277         here.
11278         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
11279         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
11280
11281 2011-04-30  Bruno Haible  <bruno@clisp.org>
11282
11283         passfd: Add comments.
11284         * lib/passfd.c: Add comments about platforms.
11285
11286 2011-04-30  Bruno Haible  <bruno@clisp.org>
11287
11288         sys_uio: Make <sys/uio.h> self-contained.
11289         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
11290         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
11291
11292 2011-04-30  Bruno Haible  <bruno@clisp.org>
11293
11294         sys_socket: Ensure 'struct iovec' definition.
11295         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
11296         <sys/socket.h>.
11297         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
11298
11299 2011-04-30  Bruno Haible  <bruno@clisp.org>
11300
11301         sys_uio: Protect definition of 'struct iovec'.
11302         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
11303         it as a C struct.
11304
11305 2011-04-30  Bruno Haible  <bruno@clisp.org>
11306
11307         manywarnings: fix indentation
11308         * m4/manywarnings.m4: Indent by 2 spaces consistently.
11309
11310 2011-04-30  Pádraig Brady <P@draigBrady.com>
11311
11312         manywarnings: add -Wno-missing-field-initializers if needed.
11313         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
11314         option if it's needed to allow initialization with { 0, }
11315
11316 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
11317
11318         announce-gen: cosmetic improvement
11319         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
11320
11321 2011-04-29  Jim Meyering  <meyering@redhat.com>
11322
11323         vc-list-files: indent with spaces, not TABs
11324         * build-aux/vc-list-files: Convert leading TABs to spaces,
11325         to match the style of most other files in gnulib.
11326
11327         announce-gen: indent with spaces, not TABs
11328         * build-aux/announce-gen: Convert all TABs to spaces, to match
11329         the style of most other files in gnulib.
11330
11331 2011-04-29  Eric Blake  <eblake@redhat.com>
11332
11333         quotearg: avoid uninitialized variable use
11334         * lib/quotearg.c (quoting_options_from_style): Initialize
11335         remaining fields, and ensure that custom styles are only used via
11336         quoting_options rather than quoting_style.
11337
11338 2011-04-29  Jim Meyering  <meyering@redhat.com>
11339
11340         maint.mk: remove unused VC-tag variable
11341         * top/maint.mk (VC-tag): Remove unused variable.
11342
11343 2011-04-29  Bruno Haible  <bruno@clisp.org>
11344
11345         netdb: fix gai_strerror replacements
11346         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
11347         * modules/netdb: Substitute it.
11348
11349 2011-04-29  Jim Meyering  <meyering@redhat.com>
11350
11351         test-getcwd.c: avoid new set-but-not-used warning
11352         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
11353         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
11354         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
11355         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
11356
11357         test-hash.c: avoid a new shadowing warning
11358         * tests/test-hash.c (main): Don't shadow "dup".
11359
11360 2011-04-28  Eric Blake  <eblake@redhat.com>
11361
11362         getaddrinfo: fix gai_strerror signature
11363         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
11364         and work around mingw with UNICODE defined.
11365         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
11366         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
11367         * modules/netdb (Makefile.am): Substitute it.
11368         * lib/netdb.in.h (gai_strerror): Declare replacement.
11369         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
11370         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
11371         the fix.
11372
11373         getsockopt: avoid compiler warning
11374         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
11375         Reported by Matthias Bolte.
11376
11377         tests: drop unused link dependency
11378         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
11379         * modules/dirent-safer-tests (Makefile.am): Likewise.
11380         * modules/fdopendir-tests (Makefile.am): Likewise.
11381         * modules/mkfifoat-tests (Makefile.am): Likewise.
11382         * modules/openat-safer-tests (Makefile.am): Likewise.
11383         * modules/openat-tests (Makefile.am): Likewise.
11384         * modules/readlinkat-tests (Makefile.am): Likewise.
11385         * modules/symlinkat-tests (Makefile.am): Likewise.
11386         * modules/linkat-tests (Makefile.am): Likewise.
11387         (Depends-on): Switch to filenamecat-lgpl.
11388         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
11389         LIBINTL.
11390         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
11391         * tests/test-linkat.c (main): Don't require xalloc.
11392
11393         hash, mgetgroups: drop xalloc dependency
11394         * lib/hash.c (includes): Adjust includes.
11395         * lib/mgetgroups.c (includes): Likewise.
11396         (xgetgroups): Move...
11397         * lib/xgetgroups.c: ...to new file.
11398         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
11399         * modules/xgetgroups: New file, split from...
11400         * modules/mgetgroups: ...here.
11401         (Depends-on): Add xalloc-oversized.
11402         * modules/hash (Depends-on): Likewise.
11403         * modules/hash-tests (Depends-on): Drop xalloc.
11404         (test_hash_LDADD): Drop unused library.
11405         * tests/test-hash.c (main): Break xalloc dependency.
11406         (includes): Drop unused include.
11407
11408         xalloc-oversized: new module
11409         * modules/xalloc-oversized: New module.
11410         * modules/xalloc (Depends-on): Add it.
11411         * lib/xalloc.h (xalloc_oversized): Move...
11412         * lib/xalloc-oversized.h: ...into new file.
11413
11414         utimecmp: drop dependency on xmalloc
11415         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
11416         due to memory pressure.
11417         * modules/utimecmp (Depends-on): Drop xalloc.
11418
11419 2011-04-27  Eric Blake  <eblake@redhat.com>
11420
11421         getcwd: fix mingw bugs
11422         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
11423         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
11424         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
11425
11426 2011-04-27  Bruno Haible  <bruno@clisp.org>
11427
11428         mkstemps: Ensure declaration on MacOS X 10.5.
11429         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
11430         * doc/glibc-functions/mkstemps.texi: Document header file problem on
11431         MacOS X.
11432
11433 2011-04-27  Bruno Haible  <bruno@clisp.org>
11434
11435         mkstemp: More documentation.
11436         * doc/posix-functions/mkstemp.texi: Document header file problem on
11437         MacOS X.
11438
11439 2011-04-27  Bruno Haible  <bruno@clisp.org>
11440
11441         mkstemp: Tweak configure message when cross-compiling.
11442         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
11443         result as a guess.
11444
11445 2011-04-27  Bruno Haible  <bruno@clisp.org>
11446
11447         clean-temp: Clarify what it does.
11448         * lib/clean-temp.h: Add more comments.
11449         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
11450         module.
11451         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
11452         * doc/glibc-functions/mkstemps.texi: Likewise.
11453         * doc/glibc-functions/mkostemps.texi: Likewise.
11454
11455 2011-04-27  Eric Blake  <eblake@redhat.com>
11456
11457         fchdir: avoid extra chdir and fix test
11458         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
11459         getcwd-lgpl.
11460         * lib/fchdir.c (get_name): Any absolute name will do; it does not
11461         have to be canonical.
11462         (canonicalize_file_name): Drop unused macro.
11463         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
11464
11465         filenamecat-lgpl: fix licence
11466         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
11467         when it was first created.
11468
11469         linkat, renameat: add missing dependency
11470         * modules/linkat (Depends-on): Require getcwd-lgpl.
11471         * modules/renameat (Depends-on): Likewise.
11472
11473         tests: reduce dependencies
11474         * tests/test-linkat.c (main): Use lighter-weight getcwd.
11475         * tests/test-renameat.c (main): Likewise.
11476         * modules/linkat-tests (Depends-on): Relax dependency.
11477         * modules/renameat-tests (Depends-on): Likewise.
11478         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
11479         dependency explicit.
11480
11481         save-cwd: reduce default dependency
11482         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
11483         * lib/save-cwd.c: Update comments.
11484         * NEWS: Document the semantic change.
11485
11486         getcwd: enhance tests
11487         * tests/test-getcwd-lgpl.c: New file, taken from...
11488         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
11489         repeat long path stress tests from m4 probe.
11490         * modules/getcwd-lgpl-tests: New module.
11491         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
11492         * m4/getcwd-abort-bug.m4: Update comment.
11493         * m4/getcwd-path-max.m4: Likewise.
11494
11495         getcwd-lgpl: new module
11496         * modules/getcwd-lgpl: New module.
11497         * lib/getcwd-lgpl.c: New file.
11498         * doc/posix-functions/getcwd.texi (getcwd): Document it.
11499         * MODULES.html.sh (lacking POSIX:2008): Likewise.
11500         * modules/getcwd (configure.ac): Set C witness.
11501         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
11502
11503         getcwd: tweak comments
11504         * m4/getcwd-abort-bug.m4: Fix comments.
11505         * m4/getcwd-path-max.m4: Likewise.
11506         * m4/getcwd.m4: Likewise.
11507
11508 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
11509         and Eric Blake  <eblake@redhat.com>
11510
11511         mkstemp: replace if system version uses wrong permissions
11512         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
11513         read/write mode bits set in file created by mkstemp.
11514         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
11515
11516 2011-04-27  Eric Blake  <eblake@redhat.com>
11517
11518         passfd: avoid compiler warning
11519         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
11520         Reported by Laine Stump.
11521
11522 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
11523
11524         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
11525         required by the NetBSD (and perhaps other 4.4BSD derived) join.
11526
11527 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
11528         and Eric Blake  <eblake@redhat.com>
11529
11530         mkstemp: mention clean-temp module
11531         * lib/mkstemp.c: Add comment.
11532         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
11533
11534 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
11535
11536         inttypes: also provide default values for 32-bit tests
11537         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
11538         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
11539
11540 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
11541
11542         strtoumax: remove dependency on strtoimax
11543         This is like the strtoull change of yesterday.
11544         * modules/strtoumax (Files): Add lib/strtoimax.c.
11545         (Depends-on): Remove strtoimax and add verify.
11546
11547         inttypes-incomplete: new module
11548         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
11549         all but the PRI* and SCN* parts of gl_INTTYPES_H.
11550         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
11551         of gl_INTTYPES_H.
11552         (gl_INTTYPES_H): Rewrite in terms of these new macros.
11553         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
11554         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
11555         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
11556         * modules/strtoumax, modules/xstrtol (Depends-on):
11557         Depend on inttypes-incomplete, not inttypes.
11558         * modules/inttypes-incomplete: New module, containing the contents
11559         of the old modules/inttypes module, except that the Files: section
11560         omits m4/inttypes-pri.m4, and the configure.ac section invokes
11561         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
11562         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
11563         (Depends-on): Depend only on inttypes-incomplete.
11564         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
11565
11566         inttypes: omit now-redundant strtoimax and strtoumax work
11567         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
11568         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
11569
11570         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
11571         This supports apps that need pointers to strtoimax and strtoumax,
11572         and ports to HP-UX 11.00 64.bit, which has macros that expand to
11573         nonexistent functions.  See
11574         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
11575         et seq.
11576         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
11577         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
11578         a macro.
11579         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
11580
11581 2011-04-25  Simon Josefsson  <simon@josefsson.org>
11582
11583         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
11584
11585 2011-04-25  Bruno Haible  <bruno@clisp.org>
11586
11587         strtol, strtoul: Mark modules as obsolete.
11588         * modules/strtol (Status, Notice): New sections.
11589         * modules/strtoul (Status, Notice): New sections.
11590
11591 2011-04-25  Bruno Haible  <bruno@clisp.org>
11592
11593         strtod: Remove check for strtod, unless supporting old platforms.
11594         * modules/strtod-obsolete: New file.
11595         * m4/strtod-obsolete.m4: New file.
11596         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
11597         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
11598         * modules/strtod (Depends-on): Add strtod-obsolete.
11599         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
11600
11601 2011-04-25  Bruno Haible  <bruno@clisp.org>
11602
11603         strcase: Make module obsolete.
11604         * modules/strcase (Status, Notice): New sections.
11605
11606 2011-04-25  Bruno Haible  <bruno@clisp.org>
11607
11608         dup2: Remove check for dup2, unless supporting old obsolete platforms.
11609         * modules/dup2-obsolete: New file.
11610         * m4/dup2-obsolete.m4: New file.
11611         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
11612         gl_FUNC_DUP2_OBSOLETE is not also defined.
11613         * modules/dup2 (Depends-on): Add dup2-obsolete.
11614         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
11615
11616 2011-04-25  Bruno Haible  <bruno@clisp.org>
11617
11618         strnlen: Avoid memchr related link error on old obsolete platforms.
11619         * modules/memchr-obsolete: New file.
11620         * m4/memchr-obsolete.m4: New file.
11621         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
11622         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
11623         * modules/memchr (Depends-on): Add memchr-obsolete.
11624         * modules/strnlen (Depends-on): Likewise.
11625         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
11626
11627 2011-04-25  Jim Meyering  <meyering@redhat.com>
11628
11629         maint.mk: makefile_at_at_check extend and clean up
11630         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
11631         in addition to */Makefile.am.
11632         Exempt legitimate uses of @VAR@ notation, e.g.,
11633         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
11634         Remove obsolete coreutils-specific comment.
11635         Prompted by discussion here:
11636         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
11637
11638 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
11639
11640         strtoul: remove dependency on strtol
11641         This is so that 'configure' need not check for strtol merely because
11642         the application needs strtoul.
11643         * modules/strtoul (Files): Add lib/strtol.c.
11644         (Depends-on): Remove strtol.
11645
11646         strtoull: remove dependency on strtoul
11647         This is like the strtoll change.
11648         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
11649         (Depends-on): Remove strtoul.
11650
11651         strtoll: remove dependency on strtol
11652         This is so that 'configure' need not check for strtol merely because
11653         the application needs strtoll.
11654         * modules/strtoll (Files): Add lib/strtol.c.
11655         (Depends-on): Remove strtol.
11656
11657 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
11658
11659         inttypes: Move some configure check to module 'imaxdiv'.
11660         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
11661         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
11662         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
11663
11664 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
11665
11666         inttypes: Move some configure check to module 'imaxabs'.
11667         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
11668         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
11669         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
11670
11671 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
11672
11673         inttypes: Remove configure tests that are not needed since 2009-12-31.
11674         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
11675         gl_cv_header_working_inttypes_h.
11676
11677 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
11678
11679         * modules/strnlen (Depends-on): Remove memchr.
11680         The strnlen implementation doesn't need the memchr module's fixes; see
11681         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
11682
11683         strtol: remove dependency on wchar
11684         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
11685         * modules/strtol (Depends-on): Remove wchar.
11686
11687 2011-04-21  Eric Blake  <eblake@redhat.com>
11688
11689         passfd: fix test regression on Linux
11690         * modules/passfd-tests (configure.ac): Correct socketpair check.
11691
11692         passfd: speed up configure and drop unused code
11693         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
11694         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
11695         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
11696         Instead of probing at configure for unix_scm_rights_bsd44_way,
11697         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
11698         check to a struct member probe.
11699         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
11700         (sendfd, recvfd): Update preprocessor checks.
11701         * modules/passfd (Files): Reflect rename, and drop unused file.
11702         (Depends-on): Drop unused dependency.
11703
11704         passfd: allow compilation on mingw
11705         * modules/sys_socket (Depends-on): Add sys_uio.
11706         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
11707         iovec and a minimal struct msghdr.
11708         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
11709         * tests/test-sys_socket.c (main): Enhance test.
11710         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
11711         guaranteed to provide what we need.
11712         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
11713         * modules/passfd-tests (Depends-on): Add sys_wait.
11714         * tests/test-passfd.c (main): Skip test on mingw, for now.
11715         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
11716         partial 'struct msghdr' implementation.
11717
11718         sys_uio: new module
11719         * modules/sys_uio: New module.
11720         * modules/sys_uio-tests: Likewise.
11721         * lib/sys_uio.in.h: New file.
11722         * m4/sys_uio_h.m4: Likewise.
11723         * tests/test-sys_uio.c: Likewise.
11724         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
11725         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
11726
11727 2011-04-20  Jim Meyering  <meyering@redhat.com>
11728
11729         useless-if-before-free: avoid false-positive
11730         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
11731         disjunct so that it too requires a terminating ";".  Without that,
11732         this script would identify as useless one statement from gcc that
11733         was not:
11734           if (aligned_ptr)
11735             free (((void **) aligned_ptr) [-1]);
11736
11737 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
11738
11739         doc: update users.txt.
11740         * users.txt: Add barcode.
11741
11742 2011-04-19  Bruno Haible  <bruno@clisp.org>
11743
11744         ioctl: Remove link dependency on native Windows.
11745         * lib/fd-hook.h: Renamed from lib/close-hook.h.
11746         (gl_close_fn, gl_ioctl_fn): New types.
11747         (struct fd_hook): Renamed from struct close_hook. Change type of
11748         private_close_fn field. Add private_ioctl_fn field.
11749         (close_hook_fn): Add parameter for primary close method.
11750         (execute_close_hooks, execute_all_close_hooks): Likewise.
11751         (ioctl_hook_fn): New type.
11752         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
11753         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
11754         argument.
11755         (unregister_fd_hook): Renamed from unregister_close_hook.
11756         * lib/fd-hook.c: Renamed from lib/close-hook.c.
11757         Don't include <unistd.h>.
11758         (close): Remove undef.
11759         (anchor): Update.
11760         (execute_close_hooks): Add argument for primary close method.
11761         (execute_all_close_hooks): Likewise.
11762         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
11763         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
11764         argument. Allow each argument to be NULL.
11765         (unregister_fd_hook): Renamed from unregister_close_hook.
11766         * lib/close.c (rpl_close): Pass 'close' function pointer to
11767         execute_all_close_hooks.
11768         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
11769         (primary_ioctl): New function.
11770         (ioctl): Don't call ioctlsocket here. Instead, call
11771         execute_all_ioctl_hooks.
11772         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
11773         close method.
11774         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
11775         (fd_sockets_hook): Renamed from close_sockets_hook.
11776         (gl_sockets_startup, gl_sockets_cleanup): Update.
11777         * modules/fd-hook: Renamed from modules/close-hook. Update.
11778         * modules/close (Depends-on): Add fd-hook, remove close-hook.
11779         * modules/sockets (Depends-on): Likewise.
11780         * modules/ioctl (Depends-on): Add fd-hook.
11781         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
11782         GNULIB_SOCKET.
11783
11784 2011-04-19  Bruno Haible  <bruno@clisp.org>
11785
11786         Move the support of O_NONBLOCK in open() to the 'open' module.
11787         * modules/nonblocking (Depends-on): Remove 'open'.
11788         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
11789         gl_cv_have_open_O_NONBLOCK.
11790         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
11791         O_NONBLOCK support.
11792         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
11793
11794 2011-04-17  Bruno Haible  <bruno@clisp.org>
11795
11796         pipe2: Simplify code.
11797         * lib/pipe2.c (pipe2): Reduce code duplication.
11798
11799 2011-04-17  Bruno Haible  <bruno@clisp.org>
11800
11801         nonblocking: Add comment.
11802         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
11803
11804 2011-04-17  Bruno Haible  <bruno@clisp.org>
11805
11806         nonblocking: Add tests for sockets.
11807         * tests/test-nonblocking-socket.sh: New file.
11808         * tests/test-nonblocking-socket-main.c: New file.
11809         * tests/test-nonblocking-socket-child.c: New file.
11810         * tests/test-nonblocking-socket.h: New file.
11811         * tests/socket-server.h: New file.
11812         * tests/socket-client.h: New file.
11813         * modules/nonblocking-socket-tests: New file.
11814         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
11815
11816 2011-04-17  Bruno Haible  <bruno@clisp.org>
11817
11818         nonblocking: Add tests for pipes.
11819         * tests/test-nonblocking-pipe.sh: New file.
11820         * tests/test-nonblocking-pipe-main.c: New file.
11821         * tests/test-nonblocking-pipe-child.c: New file.
11822         * tests/test-nonblocking-pipe.h: New file.
11823         * tests/test-nonblocking-writer.h: New file.
11824         * tests/test-nonblocking-reader.h: New file.
11825         * tests/test-nonblocking-misc.h: New file.
11826         * modules/nonblocking-pipe-tests: New file.
11827         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
11828
11829 2011-04-16  Bruno Haible  <bruno@clisp.org>
11830
11831         gettext: Clarify the needed programmer actions.
11832         * modules/gettext (Notice): New field.
11833         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
11834
11835 2011-04-16  Bruno Haible  <bruno@clisp.org>
11836
11837         strchrnul: Tweak last commit.
11838         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
11839         bug.
11840         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
11841         as in _GL_FUNCDECL_SYS.
11842         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
11843         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
11844
11845 2011-04-15  Eric Blake  <eblake@redhat.com>
11846
11847         strchrnul: work around cygwin bug
11848         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
11849         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
11850         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
11851         * modules/string (Makefile.am): Substitute it.
11852         * lib/string.in.h (strchrnul): Use it.
11853
11854 2011-04-15  Bruno Haible  <bruno@clisp.org>
11855
11856         Don't require lib/stdio-write.c when only module 'stdio' is used.
11857         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
11858         invocation.
11859         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
11860
11861 2011-04-14  Bruno Haible  <bruno@clisp.org>
11862
11863         Support non-blocking pipe I/O in read() on native Windows.
11864         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
11865         (read): New declaration.
11866         * lib/read.c: New file.
11867         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
11868         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
11869         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
11870         vscanf): New declarations.
11871         * lib/stdio-read.c: New file.
11872         * m4/read.m4: New file.
11873         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
11874         REPLACE_READ.
11875         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
11876         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
11877         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
11878         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
11879         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
11880         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
11881         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
11882         * modules/read: New file.
11883         * modules/nonblocking (Files): Add lib/stdio-read.c.
11884         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
11885         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
11886         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
11887         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
11888         * modules/pread (Depends-on): Add read.
11889         * modules/safe-read (Depends-on): Likewise.
11890         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
11891         gets, scanf, vfscanf, vscanf): Verify signatures.
11892         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
11893         problem with non-blocking pipes.
11894         * doc/posix-functions/fgetc.texi: Likewise.
11895         * doc/posix-functions/fgets.texi: Likewise.
11896         * doc/posix-functions/fread.texi: Likewise.
11897         * doc/posix-functions/fscanf.texi: Likewise.
11898         * doc/posix-functions/getc.texi: Likewise.
11899         * doc/posix-functions/getchar.texi: Likewise.
11900         * doc/posix-functions/gets.texi: Likewise.
11901         * doc/posix-functions/scanf.texi: Likewise.
11902         * doc/posix-functions/vfscanf.texi: Likewise.
11903         * doc/posix-functions/vscanf.texi: Likewise.
11904
11905 2011-04-14  Bruno Haible  <bruno@clisp.org>
11906
11907         Support non-blocking pipe I/O in write() on native Windows.
11908         * lib/write.c (rpl_write): Split a write request that failed merely
11909         because the byte count was larger than the pipe buffer's size.
11910         * doc/posix-functions/write.texi: Mention the problem with large byte
11911         counts.
11912
11913 2011-04-14  Bruno Haible  <bruno@clisp.org>
11914
11915         wchar: Ensure that wchar_t gets defined on uClibc.
11916         * lib/wchar.in.h: On uClibc, include <stddef.h>.
11917         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
11918
11919 2011-04-13  Bruno Haible  <bruno@clisp.org>
11920
11921         safe-write, full-read: Avoid unnecessary compilation units.
11922         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
11923         (Depends-on): Remove safe-read. Add ssize_t.
11924         * modules/full-read (Files): Add lib/full-write.c.
11925         (Depends-on): Add full-write.
11926
11927 2011-04-13  Bruno Haible  <bruno@clisp.org>
11928
11929         Support non-blocking pipe I/O and SIGPIPE in pwrite().
11930         * modules/pwrite (Depends-on): Add 'write'.
11931
11932 2011-04-13  Bruno Haible  <bruno@clisp.org>
11933
11934         Support non-blocking pipe I/O in write() on native Windows.
11935         * lib/unistd.in.h (write): Enable replacement also if
11936         GNULIB_UNISTD_H_NONBLOCKING is 1.
11937         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
11938         (rpl_write): When failing to write on a non-blocking pipe, change
11939         errno from ENOSPC to EAGAIN.
11940         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
11941         putchar, puts, vfprintf, vprintf): Enable replacement also if
11942         GNULIB_STDIO_H_NONBLOCKING is 1.
11943         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
11944         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
11945         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
11946         CALL_WITH_SIGPIPE_EMULATION.
11947         (CALL_WITH_SIGPIPE_EMULATION): Use them.
11948         * m4/nonblocking.m4: New file.
11949         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
11950         for non-blocking I/O support.
11951         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
11952         GNULIB_UNISTD_H_NONBLOCKING.
11953         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
11954         required for non-blocking I/O support.
11955         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
11956         * modules/nonblocking (Files): Add m4/nonblocking.m4,
11957         lib/stdio-write.c, m4/asm-underscore.m4.
11958         (Depends-on): Add stdio, unistd.
11959         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
11960         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
11961         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
11962         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
11963         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
11964         problem with non-blocking pipes.
11965         * doc/posix-functions/fputc.texi: Likewise.
11966         * doc/posix-functions/fputs.texi: Likewise.
11967         * doc/posix-functions/fwrite.texi: Likewise.
11968         * doc/posix-functions/printf.texi: Likewise.
11969         * doc/posix-functions/putc.texi: Likewise.
11970         * doc/posix-functions/putchar.texi: Likewise.
11971         * doc/posix-functions/puts.texi: Likewise.
11972         * doc/posix-functions/vfprintf.texi: Likewise.
11973         * doc/posix-functions/vprintf.texi: Likewise.
11974         * doc/posix-functions/write.texi: Likewise.
11975
11976 2011-04-10  Jim Meyering  <meyering@redhat.com>
11977
11978         maint.mk: prohibit doubled words
11979         Detect them also when they're separated by a newline.
11980         There are 3 ways to customize it:
11981           - disable the test on a per file basis, as usual with rules using
11982             $(VC_LIST_EXCEPT)
11983           - replace the default doubled-word-selecting regexp (affects all files)
11984           - ignore a particular file-vs-doubled-word match
11985         I nearly used that last one to ignore the "is is" match in
11986         coreutils' NEWS file, since the text was "ls -is is ..."
11987         To do that, I would have added this line to cfg.mk:
11988           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
11989         but it would have ignored any "is is" match in NEWS.
11990         Low probability, but still...
11991         Instead, I changed the text, slightly:
11992           -  ls -is is now consistent with ls -lis in ignoring values returned
11993           +  "ls -is" is now consistent with ls -lis in ignoring values returned
11994         * top/maint.mk (prohibit_double_word_RE_): Provide default.
11995         (prohibit_doubled_word_): Define.
11996         (sc_prohibit_doubled_word): New rule.
11997         (sc_prohibit_the_the): Remove.  Subsumed by the above.
11998
11999 2011-04-10  Jim Meyering  <meyering@redhat.com>
12000
12001         maint: fix doubled-word typo in comment
12002         * m4/gethostname.m4: s/is is/it is/
12003         * m4/getdomainname.m4: Likewise.
12004
12005 2011-04-10  Jim Meyering  <meyering@redhat.com>
12006
12007         maint: remove doubled word: s/it it/it/
12008         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
12009
12010 2011-04-10  Jim Meyering  <meyering@redhat.com>
12011
12012         maint.mk: remove useless semicolon and backslash
12013         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
12014         semicolon and backslash.
12015
12016 2011-04-10  Bruno Haible  <bruno@clisp.org>
12017
12018         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
12019         * modules/stdint-tests (Depends-on): Add wchar.
12020
12021 2011-04-10  Jim Meyering  <meyering@redhat.com>
12022
12023         maint: remove doubled words in comments, e.g., s/a a/a/
12024         * lib/strptime.c (day_of_the_week): s/the the/the/
12025         * tests/test-chown.h (test_chown): s/a a/a/
12026
12027         test-chown.h: correct a cast
12028         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
12029         when the destination is a stat.st_gid.
12030
12031 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
12032
12033         getaddrinfo: Fix test for sa_len member.
12034         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
12035         include <sys/types.h> before <sys/socket.h>.
12036
12037 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
12038
12039         maint: change "can not" to "cannot"
12040         * doc/posix-functions/iconv.texi (iconv): This one crossed line
12041         boundaries.
12042
12043 2011-04-09  Jim Meyering  <meyering@redhat.com>
12044
12045         maint: change "a a" to "a"
12046         * tests/test-lchown.h (test_lchown): s/a a/a/
12047
12048         maint.mk: prohibit \<the the\>
12049         * top/maint.mk (sc_prohibit_the_the): New rule.
12050
12051         maint: fix "the the" in comment
12052         * lib/count-one-bits.h: s/the the/the/
12053
12054         maint: change "can not" to "cannot"
12055         But do not change the occurrences in maintain.texi or in
12056         build-aux/po/Makefile.in.in, which I presume comes from gettext.
12057         * doc/gnulib-tool.texi: s/can not/cannot/
12058         * doc/posix-functions/accept.texi (accept): Likewise.
12059         * doc/posix-functions/socket.texi (socket): Likewise.
12060         * lib/mbrtowc.c: Likewise.
12061
12062         maint.mk: prohibit use of "can not"
12063         * top/maint.mk (sc_prohibit_can_not): New rule.
12064         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
12065
12066 2011-04-09  Bruno Haible  <bruno@clisp.org>
12067
12068         careadlinkat: Guard against misuse of careadlinkatcwd.
12069         * lib/careadlinkat.c: Include <stdlib.h>.
12070         (careadlinkatcwd): Check that the fd argument is as expected.
12071
12072 2011-04-09  Bruno Haible  <bruno@clisp.org>
12073
12074         careadlinkat: Use common coding style.
12075         * lib/careadlinkat.c: Move gnulib includes after system includes.
12076
12077 2011-04-09  Bruno Haible  <bruno@clisp.org>
12078
12079         careadlinkat: Clarify specification.
12080         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
12081         (careadlinkatcwd): Add comment.
12082         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
12083
12084 2011-04-09  Bruno Haible  <bruno@clisp.org>
12085
12086         areadlinkat: Avoid link error on many platforms.
12087         * modules/areadlinkat (Depends-on): Add areadlink.
12088
12089 2011-04-09  Bruno Haible  <bruno@clisp.org>
12090
12091         allocator, careadlinkat: Fix double-inclusion guard.
12092         * lib/allocator.h: Fix double-inclusion guard.
12093         * lib/careadlinkat.h: Likewise.
12094
12095 2011-04-09  Bruno Haible  <bruno@clisp.org>
12096
12097         relocatable-prog-wrapper: Update after module 'areadlink' changed.
12098         * lib/relocwrapper.c: Update dependencies hierarchy.
12099         * build-aux/install-reloc: Update list of files to be compiled.
12100         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
12101         lib/allocator.[hc].
12102
12103 2011-04-08  Eric Blake  <eblake@redhat.com>
12104
12105         strftime: silence gnulib-tool warning
12106         * modules/strftime-tests (Depends-on): Drop automatic dependency.
12107
12108 2011-04-08  Bruno Haible  <bruno@clisp.org>
12109
12110         verify: Fix syntax error with GCC 4.6 in C++ mode.
12111         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
12112         (HAVE_STATIC_ASSERT): New macro.
12113         (verify_true, verify): Use 'static_assert' if it is supported and
12114         '_Static_assert' is not supported.
12115
12116 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
12117
12118         allocator: New module.
12119         * modules/allocator, lib/allocator.c: New files.
12120         * lib/allocator.h (stdlib_allocator): New decl.
12121         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
12122         Remove.  Do not include <stdlib.h>.
12123         (careadlinkat): Use stdlib_allocator instead of rolling our own.
12124         * modules/careadlinkat (Files): Remove lib/allocator.h.
12125         (Depends-on): Add allocator.
12126
12127         stdlib: let modules use system malloc, realloc
12128         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
12129         if !_GL_USE_STDLIB_ALLOC.
12130         (malloc, realloc): Limit this change to a smaller scope.
12131
12132         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
12133         (malloc, realloc): Don't #undef; no longer needed.
12134         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12135         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12136         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
12137         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12138         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12139         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12140         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12141         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
12142
12143         careadlinkat: rename members to avoid problem
12144         * lib/allocator.h (struct allocator): Rename members from
12145         malloc/realloc to allocate/reallocate, to avoid problems if malloc
12146         and realloc are #define'd.  Reported by Eric Blake in
12147         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
12148         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
12149
12150 2011-04-08  Eric Blake  <eblake@redhat.com>
12151
12152         nonblocking: reduce dependency
12153         * tests/test-nonblocking.c: Only test sockets when in use.
12154         * modules/nonblocking-tests (Depends-on): Drop socket.
12155         (Makefile.am): Link even if sockets are not present.
12156         * modules/pipe2-tests (Makefile.am): Likewise.
12157         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
12158
12159         pipe2: fix O_NONBLOCK support on mingw
12160         * modules/pipe2 (Depends-on): Add nonblocking.
12161         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
12162         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
12163         * tests/test-nonblocking.c (main): Likewise.
12164         * modules/pipe2-tests (Makefile.am): Avoid link failure.
12165
12166         fcntl-h: fix O_ACCMODE on cygwin
12167         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
12168         * lib/fcntl.in.h (O_ACCMODE): Fix it.
12169
12170         pipe-filter: drop O_NONBLOCK workarounds
12171         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
12172         * modules/pipe-filter-ii (Depends-on): Likewise.
12173         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
12174
12175         nonblocking: provide O_NONBLOCK for mingw
12176         * modules/nonblocking (Depends-on): Add open.
12177         (configure.ac): Set new witness macro.
12178         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
12179         * modules/fcntl-h (Makefile.am): Substitute it.
12180         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
12181         nonblocking module is in use.
12182         * lib/nonblocking.c: Adjust portability test.
12183         * lib/open.c (open): Don't let native open see gnulib flag.
12184         * tests/test-fcntl-h.c (main): Enhance test.
12185         * tests/test-open.h (test_open): Likewise.
12186         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
12187
12188         careadlinkat: fix compilation error on mingw
12189         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
12190         within struct allocator.
12191
12192 2011-04-06  Eric Blake  <eblake@redhat.com>
12193
12194         binary-io: relicense under LGPLv2+
12195         * modules/binary-io (License): Relax to LGPLv2+.
12196         Requested for libvirt, and required by pipe2.
12197
12198 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
12199
12200         verify: use _Static_assert if available
12201         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
12202         (verify_true, verify): Use it if available.  This generates better
12203         diagnostics with GCC 4.6.0 and later.
12204
12205 2011-04-05  Bruno Haible  <bruno@clisp.org>
12206
12207         Remove leftover generated .h files after config.status changed.
12208
12209         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
12210         GL_GENERATE_ALLOCA_H.
12211         * modules/alloca-opt (Makefile.am): Remove alloca.h if
12212         GL_GENERATE_ALLOCA_H evaluates to false.
12213
12214         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
12215         GL_GENERATE_ARGZ_H.
12216         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
12217         evaluates to false.
12218
12219         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
12220         GL_GENERATE_BYTESWAP_H.
12221         * modules/byteswap (Makefile.am): Remove byteswap.h if
12222         GL_GENERATE_BYTESWAP_H evaluates to false.
12223
12224         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
12225         GL_GENERATE_ERRNO_H.
12226         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
12227         evaluates to false.
12228
12229         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
12230         GL_GENERATE_FLOAT_H.
12231         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
12232         evaluates to false.
12233
12234         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
12235         GL_GENERATE_FNMATCH_H.
12236         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
12237         GL_GENERATE_FNMATCH_H evaluates to false.
12238
12239         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
12240         GL_GENERATE_GLOB_H.
12241         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
12242         evaluates to false.
12243
12244         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
12245         automake conditional GL_GENERATE_ICONV_H.
12246         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
12247         evaluates to false.
12248
12249         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
12250         GL_GENERATE_NETINET_IN_H.
12251         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
12252         GL_GENERATE_NETINET_IN_H evaluates to false.
12253
12254         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
12255         conditional GL_GENERATE_PTHREAD_H.
12256         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
12257         * modules/pthread (Makefile.am): Remove pthread.h if
12258         GL_GENERATE_PTHREAD_H evaluates to false.
12259
12260         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
12261         GL_GENERATE_SCHED_H.
12262         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
12263         evaluates to false.
12264
12265         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
12266         conditional GL_GENERATE_SELINUX_CONTEXT_H.
12267         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
12268         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
12269
12270         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
12271         GL_GENERATE_STDARG_H.
12272         * modules/stdarg (Makefile.am): Remove stdarg.h if
12273         GL_GENERATE_STDARG_H evaluates to false.
12274
12275         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
12276         GL_GENERATE_STDBOOL_H.
12277         * modules/stdbool (Makefile.am): Remove stdbool.h if
12278         GL_GENERATE_STDBOOL_H evaluates to false.
12279
12280         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
12281         conditional GL_GENERATE_STDDEF_H.
12282         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
12283         * modules/stddef (Makefile.am): Remove stddef.h if
12284         GL_GENERATE_STDDEF_H evaluates to false.
12285
12286         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
12287         GL_GENERATE_STDINT_H.
12288         * modules/stdint (Makefile.am): Remove stdint.h if
12289         GL_GENERATE_STDINT_H evaluates to false.
12290
12291         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
12292         GL_GENERATE_SYSEXITS_H.
12293         * modules/sysexits (Makefile.am): Remove sysexits.h if
12294         GL_GENERATE_SYSEXITS_H evaluates to false.
12295
12296         Reported by Karl Berry and Ralf Wildenhues.
12297
12298 2011-04-05  Bruno Haible  <bruno@clisp.org>
12299
12300         Ensure to rebuild generated .h files when config.status has changed.
12301         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
12302         config.status.
12303         * modules/ctype (Makefile.am): Likewise.
12304         * modules/dirent (Makefile.am): Likewise.
12305         * modules/errno (Makefile.am): Likewise.
12306         * modules/fcntl-h (Makefile.am): Likewise.
12307         * modules/float (Makefile.am): Likewise.
12308         * modules/getopt-posix (Makefile.am): Likewise.
12309         * modules/glob (Makefile.am): Likewise.
12310         * modules/iconv-h (Makefile.am): Likewise.
12311         * modules/inttypes (Makefile.am): Likewise.
12312         * modules/langinfo (Makefile.am): Likewise.
12313         * modules/locale (Makefile.am): Likewise.
12314         * modules/math (Makefile.am): Likewise.
12315         * modules/netdb (Makefile.am): Likewise.
12316         * modules/netinet_in (Makefile.am): Likewise.
12317         * modules/poll-h (Makefile.am): Likewise.
12318         * modules/pthread (Makefile.am): Likewise.
12319         * modules/pty (Makefile.am): Likewise.
12320         * modules/sched (Makefile.am): Likewise.
12321         * modules/search (Makefile.am): Likewise.
12322         * modules/selinux-h (Makefile.am): Likewise.
12323         * modules/signal (Makefile.am): Likewise.
12324         * modules/spawn (Makefile.am): Likewise.
12325         * modules/stdarg (Makefile.am): Likewise.
12326         * modules/stdbool (Makefile.am): Likewise.
12327         * modules/stddef (Makefile.am): Likewise.
12328         * modules/stdint (Makefile.am): Likewise.
12329         * modules/stdio (Makefile.am): Likewise.
12330         * modules/stdlib (Makefile.am): Likewise.
12331         * modules/string (Makefile.am): Likewise.
12332         * modules/strings (Makefile.am): Likewise.
12333         * modules/sys_file (Makefile.am): Likewise.
12334         * modules/sys_ioctl (Makefile.am): Likewise.
12335         * modules/sys_select (Makefile.am): Likewise.
12336         * modules/sys_socket (Makefile.am): Likewise.
12337         * modules/sys_stat (Makefile.am): Likewise.
12338         * modules/sys_time (Makefile.am): Likewise.
12339         * modules/sys_times (Makefile.am): Likewise.
12340         * modules/sys_utsname (Makefile.am): Likewise.
12341         * modules/sys_wait (Makefile.am): Likewise.
12342         * modules/sysexits (Makefile.am): Likewise.
12343         * modules/termios (Makefile.am): Likewise.
12344         * modules/time (Makefile.am): Likewise.
12345         * modules/unistd (Makefile.am): Likewise.
12346         * modules/wchar (Makefile.am): Likewise.
12347         * modules/wctype-h (Makefile.am): Likewise.
12348         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
12349
12350 2011-04-05  Bruno Haible  <bruno@clisp.org>
12351
12352         pipe2: Relicense under LGPLv2+.
12353         * modules/pipe2 (License): Change to LGPLv2+.
12354         Requested by Eric Blake, for libvirt.
12355
12356 2011-04-05  Bruce Korb  <bkorb@gnu.org>
12357
12358         bootstrap: compute gnulib_extra_files after updating build_aux
12359         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
12360         change build_aux or also supply gnulib_extra_files.  Handle correctly.
12361
12362 2011-04-05  Eric Blake  <eblake@redhat.com>
12363
12364         bootstrap: preserve git whitelist item sorting
12365         * build-aux/bootstrap (sort_patterns): New function.
12366         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
12367
12368 2011-04-05  Simon Josefsson  <simon@josefsson.org>
12369
12370         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
12371         sc_space_tab check.
12372
12373 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
12374
12375         areadlink, areadlinkat: rewrite in terms of careadlinkat
12376         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
12377         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
12378         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
12379         (malloc, realloc): Remove #undefs.
12380         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
12381         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
12382         readlink, ssize_t, stdint, unistd.
12383         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
12384         areadlink, stdint.
12385
12386         careadlinkat: new module
12387         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
12388         * modules/careadlinkat: New files, written by me with
12389         a review and feedback from Ben Pfaff in
12390         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
12391
12392 2011-04-01  Bruno Haible  <bruno@clisp.org>
12393
12394         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
12395         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
12396         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
12397         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
12398         Reported by Bruce Korb <bruce.korb@gmail.com>.
12399
12400 2011-04-01  Bruno Haible  <bruno@clisp.org>
12401
12402         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
12403         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
12404         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
12405         * modules/wcpcpy (Depends-on): Add extensions.
12406         * modules/wcpncpy (Depends-on): Likewise.
12407         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
12408         systems.
12409         * doc/posix-functions/wcpncpy.texi: Likewise.
12410         * doc/posix-functions/wcwidth.texi: Likewise.
12411
12412 2011-03-31  Eric Blake  <eblake@redhat.com>
12413
12414         nonblocking: fix mingw test failures
12415         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
12416         non-blocking flag on regular file.
12417         (get_nonblocking_flag): Set errno on invalid fd.
12418         * tests/test-nonblocking.c (main): Avoid test failure on
12419         directories if fchdir is not active.
12420         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
12421
12422 2011-03-31  Bruno Haible  <bruno@clisp.org>
12423
12424         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
12425         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
12426         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
12427         Reported by Simon Josefsson <simon@josefsson.org>.
12428
12429 2011-03-31  Bruno Haible  <bruno@clisp.org>
12430         and Eric Blake  <eblake@redhat.com>
12431
12432         nonblocking: new module
12433         * modules/nonblocking: New module.
12434         * modules/nonblocking-tests: Likewise.
12435         * lib/nonblocking.h: New file.
12436         * lib/nonblocking.c: Likewise.
12437         * tests/test-nonblocking.c: New test.
12438         * lib/ioctl.c (ioctl) [mingw]: Update comment.
12439
12440 2011-03-30  Bruno Haible  <bruno@clisp.org>
12441
12442         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
12443         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
12444         instead of 'printf' format for GCC >= 4.4.
12445         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
12446         (fprintf, printf, vfprintf, vprintf): Declare with
12447         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
12448         the system's vfprintf() function.
12449         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
12450
12451 2011-03-30  Eric Blake  <eblake@redhat.com>
12452
12453         passfd: fix scoping bug
12454         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
12455         before sendmsg/recvmsg.
12456
12457         passfd: standardize coding conventions
12458         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
12459         can be learned at compile time.
12460         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
12461         ifdefs.
12462         (sendfd, recvfd): Follow gnulib code conventions.
12463
12464         passfd: fix incorrect sendmsg arguments
12465         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
12466         incorrect msg_controllen value.
12467         * modules/passfd-tests (Depends-on): Check for alarm.
12468         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
12469         Reported by Bastien ROUCARIES.
12470
12471 2011-03-30  Bruno Haible  <bruno@clisp.org>
12472
12473         c-strcasestr: Relicense under LGPLv2+.
12474         * modules/c-strcasestr (License): Change to LGPLv2+.
12475         Requested by Eric Blake, for libvirt.
12476
12477 2011-03-30  Simon Josefsson  <simon@josefsson.org>
12478
12479         * users.txt: Add libidn2.  Fix libtasn1 link.
12480
12481 2011-03-30  Jim Meyering  <meyering@redhat.com>
12482
12483         tests: readlink* ("",... fails with EINVAL on newer kernels
12484         readlink and readlinkat have typically failed with ENOENT for
12485         the invalid, empty file name,  "".  However, with the advent
12486         of linux-2.6.39, they fail with EINVAL.
12487         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
12488         when operating on the empty file name.
12489         * tests/test-readlink.h (test_readlink): Likewise.
12490
12491 2011-03-29  Bruno Haible  <bruno@clisp.org>
12492
12493         Relicense some modules under LGPLv2+, for libidn2.
12494         * modules/array-mergesort (License): Change to LGPLv2+.
12495         * modules/c-strcaseeq (License): Likewise.
12496         * modules/striconveh (License): Likewise.
12497         * modules/striconveha (License): Likewise.
12498         * modules/uniconv/base (License): Likewise.
12499         * modules/uniconv/u8-conv-from-enc (License): Likewise.
12500         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
12501         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
12502         * modules/unictype/base (License): Likewise.
12503         * modules/unictype/bidiclass-of (License): Likewise.
12504         * modules/unictype/category-M (License): Likewise.
12505         * modules/unictype/category-none (License): Likewise.
12506         * modules/unictype/category-of (License): Likewise.
12507         * modules/unictype/category-test (License): Likewise.
12508         * modules/unictype/category-test-withtable (License): Likewise.
12509         * modules/unictype/combining-class (License): Likewise.
12510         * modules/unictype/joiningtype-of (License): Likewise.
12511         * modules/unictype/scripts (License): Likewise.
12512         * modules/uninorm/base (License): Likewise.
12513         * modules/uninorm/canonical-decomposition (License): Likewise.
12514         * modules/uninorm/composition (License): Likewise.
12515         * modules/uninorm/decompose-internal (License): Likewise.
12516         * modules/uninorm/decomposition-table (License): Likewise.
12517         * modules/uninorm/nfc (License): Likewise.
12518         * modules/uninorm/nfd (License): Likewise.
12519         * modules/uninorm/u32-normalize (License): Likewise.
12520         * modules/unistr/base (License): Likewise.
12521         * modules/unistr/u32-cpy (License): Likewise.
12522         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
12523         * modules/unistr/u32-to-u8 (License): Likewise.
12524         * modules/unistr/u32-uctomb (License): Likewise.
12525         * modules/unistr/u8-check (License): Likewise.
12526         * modules/unistr/u8-mblen (License): Likewise.
12527         * modules/unistr/u8-mbtouc (License): Likewise.
12528         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
12529         * modules/unistr/u8-mbtoucr (License): Likewise.
12530         * modules/unistr/u8-prev (License): Likewise.
12531         * modules/unistr/u8-strlen (License): Likewise.
12532         * modules/unistr/u8-to-u32 (License): Likewise.
12533         * modules/unistr/u8-uctomb (License): Likewise.
12534         * modules/unitypes (License): Likewise.
12535         Requested by Simon Josefsson.
12536
12537 2011-03-29  Simon Josefsson  <simon@josefsson.org>
12538
12539         lib-symbol-visibility: Add a notice.
12540         * modules/lib-symbol-visibility (Notice): New field.
12541
12542 2011-03-29  Bruno Haible  <bruno@clisp.org>
12543
12544         getaddrinfo: Doc fix.
12545         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
12546         section "fixed in Gnulib".
12547
12548 2011-03-28  Simon Josefsson  <simon@josefsson.org>
12549
12550         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
12551         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
12552
12553 2011-03-26  Bruno Haible  <bruno@clisp.org>
12554
12555         unictype/property-byname: Reduce the number of load-time relocations.
12556         * lib/unictype/pr_byname.c: Include <stdlib.h>.
12557         (UC_PROPERTY_INDEX_*): New enumeration values.
12558         (uc_property_byname): Convert an index from the lookup table to an
12559         uc_property_t.
12560         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
12561         values.
12562
12563 2011-03-26  Bruno Haible  <bruno@clisp.org>
12564
12565         unictype/property-byname: Allow omitted word separators and aliases.
12566         * lib/unictype/pr_byname.gperf: Add property names without word
12567         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
12568         for 'space'.
12569
12570 2011-03-26  Bruno Haible  <bruno@clisp.org>
12571
12572         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
12573         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
12574         also hyphens to space.
12575         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
12576         without spaces.
12577         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
12578
12579 2011-03-26  Bruno Haible  <bruno@clisp.org>
12580
12581         unictype/joiningtype-byname: Recognize long names as well.
12582         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
12583         a long name.
12584         * lib/unictype/joiningtype_byname.c: Include <string.h>,
12585         unictype/joiningtype_byname.h.
12586         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
12587         * lib/unictype/joiningtype_byname.gperf: New file.
12588         * modules/unictype/joiningtype-byname (Files): Add
12589         lib/unictype/joiningtype_byname.gperf.
12590         (Depends-on): Add gperf.
12591         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
12592         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
12593         long names.
12594
12595         Tests for module 'unictype/joiningtype-longname'.
12596         * modules/unictype/joiningtype-longname-tests: New file.
12597         * tests/unictype/test-joiningtype_longname.c: New file.
12598
12599         New module 'unictype/joiningtype-longname'.
12600         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
12601         * lib/unictype/joiningtype_longname.c: New file.
12602         * modules/unictype/joiningtype-longname: New file.
12603         * modules/unictype/joiningtype-all (Depends-on): Add
12604         unictype/joiningtype-longname.
12605
12606 2011-03-26  Bruno Haible  <bruno@clisp.org>
12607
12608         unictype/bidiclass-byname: Recognize long names as well.
12609         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
12610         name.
12611         * lib/unictype/bidi_byname.c: Include <string.h>,
12612         unictype/bidi_byname.h.
12613         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
12614         * lib/unictype/bidi_byname.gperf: New file.
12615         * modules/unictype/bidiclass-byname (Files): Add
12616         lib/unictype/bidi_byname.gperf.
12617         (Depends-on): Add gperf.
12618         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
12619         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
12620         long names.
12621
12622         Tests for module 'unictype/bidiclass-longname'.
12623         * modules/unictype/bidiclass-longname-tests: New file.
12624         * tests/unictype/test-bidi_longname.c: New file.
12625
12626         New module 'unictype/bidiclass-longname'.
12627         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
12628         * lib/unictype/bidi_longname.c: New file.
12629         * modules/unictype/bidiclass-longname: New file.
12630         * modules/unictype/bidiclass-all (Depends-on): Add
12631         unictype/bidiclass-longname.
12632
12633 2011-03-26  Bruno Haible  <bruno@clisp.org>
12634
12635         unictype/bidi*: Rename modules.
12636         * modules/unictype/bidiclass-all: Renamed from
12637         modules/unictype/bidicategory-all.
12638         * modules/unictype/bidiclass-name: Renamed from
12639         modules/unictype/bidiclass-name.
12640         (Description): Update.
12641         * modules/unictype/bidiclass-name-tests: Renamed from
12642         modules/unictype/bidicategory-name-tests.
12643         * modules/unictype/bidiclass-byname: Renamed from
12644         modules/unictype/bidicategory-byname.
12645         (Description): Update.
12646         * modules/unictype/bidiclass-byname-tests: Renamed from
12647         modules/unictype/bidicategory-byname-tests.
12648         * modules/unictype/bidiclass-of: Renamed from
12649         modules/unictype/bidicategory-of.
12650         (Description): Update.
12651         * modules/unictype/bidiclass-of-tests: Renamed from
12652         modules/unictype/bidicategory-of-tests.
12653         * modules/unictype/bidiclass-test: Renamed from
12654         modules/unictype/bidicategory-test.
12655         (Description): Update.
12656         * modules/unictype/bidiclass-test-tests: Renamed from
12657         modules/unictype/bidicategory-test-tests.
12658         * modules/unictype/bidicategory-all: New file, a simple redirection.
12659         * modules/unictype/bidicategory-name: Likewise.
12660         * modules/unictype/bidicategory-byname: Likewise.
12661         * modules/unictype/bidicategory-of: Likewise.
12662         * modules/unictype/bidicategory-test: Likewise.
12663         * modules/unictype/property-bidi-* (Dependencies): Update.
12664         * lib/unictype/bidi_*.c: Update comment.
12665
12666 2011-03-26  Bruno Haible  <bruno@clisp.org>
12667
12668         unictype/bidi*: Rename functions, part 2.
12669         * modules/unictype/bidicategory-name (configure.ac): Update required
12670         libunistring version.
12671         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
12672
12673 2011-03-25  Bruno Haible  <bruno@clisp.org>
12674
12675         New module 'unictype/combining-class-all'.
12676         * modules/unictype/combining-class-all: New file.
12677
12678         Tests for module 'unictype/combining-class-byname'.
12679         * modules/unictype/combining-class-byname-tests: New file.
12680         * tests/unictype/test-combiningclass_byname.c: New file.
12681
12682         New module 'unictype/combining-class-byname'.
12683         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
12684         * lib/unictype/combiningclass_byname.c: New file.
12685         * lib/unictype/combiningclass_byname.gperf: New file.
12686         * modules/unictype/combining-class-byname: New file.
12687
12688         Tests for module 'unictype/combining-class-longname'.
12689         * modules/unictype/combining-class-longname-tests: New file.
12690         * tests/unictype/test-combiningclass_longname.c: New file.
12691
12692         New module 'unictype/combining-class-longname'.
12693         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
12694         * lib/unictype/combiningclass_longname.c: New file.
12695         * modules/unictype/combining-class-longname: New file.
12696
12697         Tests for module 'unictype/combining-class-name'.
12698         * modules/unictype/combining-class-name-tests: New file.
12699         * tests/unictype/test-combiningclass_name.c: New file.
12700
12701         New module 'unictype/combining-class-name'.
12702         * lib/unictype.in.h (uc_combining_class_name): New declaration.
12703         * lib/unictype/combiningclass_name.c: New file.
12704         * modules/unictype/combining-class-name: New file.
12705
12706 2011-03-25  Bruno Haible  <bruno@clisp.org>
12707
12708         unictype/combining-class: Rename source files.
12709         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
12710         of unictype/combining.h.
12711         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
12712         Update.
12713         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
12714         * modules/unictype/combining-class (Description): Fix.
12715         (Files, Makefile.am): Update.
12716         * tests/unictype/test-combiningclass.c: Renamed from
12717         tests/unictype/test-combining.c.
12718         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
12719
12720 2011-03-25  Bruno Haible  <bruno@clisp.org>
12721
12722         unictype: Update list of canonical combining classes.
12723         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
12724
12725 2011-03-25  Bruno Haible  <bruno@clisp.org>
12726
12727         unictype/category-byname: Recognize long names as well.
12728         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
12729         a long name.
12730         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
12731         unictype/categ_byname.h.
12732         (UC_CATEGORY_INDEX_*): New enumeration values.
12733         (uc_general_category_byname): Use uc_general_category_lookup and
12734         convert from index to value.
12735         * lib/unictype/categ_byname.gperf: New file.
12736         * modules/unictype/category-byname (Files): Add
12737         lib/unictype/categ_byname.gperf.
12738         (Depends-on): Add gperf.
12739         (Makefile.am): Add rule for generating unictype/categ_byname.h.
12740         * tests/unictype/test-categ_byname.c (main): Test the recognition of
12741         long names.
12742
12743         Tests for module 'unictype/category-longname'.
12744         * modules/unictype/category-longname-tests: New file.
12745         * tests/unictype/test-categ_longname.c: New file.
12746
12747         New module 'unictype/category-longname'.
12748         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
12749         * lib/unictype/categ_longname.c: New file.
12750         * modules/unictype/category-longname: New file.
12751         * modules/unictype/category-all (Depends-on): Add it.
12752
12753 2011-03-25  Bruno Haible  <bruno@clisp.org>
12754
12755         Tests for module 'unictype/category-LC'.
12756         * modules/unictype/category-LC-tests: New file.
12757         * tests/unictype/test-categ_LC.c: New file, automatically generated.
12758
12759         New module 'unictype/category-LC'.
12760         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
12761         (UC_CATEGORY_LC): New declaration.
12762         (UC_CASED_LETTER): New macro.
12763         * lib/gen-uni-tables.c (is_category_LC): New function.
12764         (output_categories): Also handle category LC.
12765         (UC_CATEGORY_MASK_LC): New enumeration value.
12766         (general_category_byname): Also handle category LC.
12767         * lib/unictype/categ_LC.c: New file.
12768         * lib/unictype/categ_LC.h: New file, automatically generated.
12769         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
12770         category LC.
12771         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
12772         * modules/unictype/category-LC: New file.
12773         * modules/unictype/category-byname (Depends-on): Add
12774         unictype/category-LC.
12775         * modules/unictype/category-all (Depends-on): Likewise.
12776
12777 2011-03-25  Eric Blake  <eblake@redhat.com>
12778
12779         xmalloc: revert yesterday's regression
12780         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
12781         realloc's underlying behavior (allowing allocation of zero-size
12782         objects, especially if malloc-gnu is also in use).
12783
12784 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
12785
12786         maint.mk: add missing version to VC-tag
12787         * top/maint.mk: git tag was missing actual tag name; add it.
12788
12789         valgrind: do leak checking, and exit with code 1 on error (not 0)
12790         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
12791         to VALGRIND.
12792
12793 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
12794
12795         posix-modules: say what it does.
12796         * posix-modules: Add a line to the --help output saying what it does.
12797
12798 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
12799
12800         xmalloc: Do not leak if underlying realloc is C99 compatible.
12801         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
12802         This avoids a leak on C99-based systems.  See
12803         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
12804
12805 2011-03-24  Eric Blake  <eblake@redhat.com>
12806
12807         realloc: document portability problem
12808         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
12809         passing 0 size to realloc.
12810
12811 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
12812
12813         doc: update users.txt
12814         * users.txt: Add cvsps, tmpwatch
12815
12816 2011-03-23  Matt Rice  <ratmice@gmail.com>
12817
12818         doc: update users.txt
12819         * users.txt: Add gdb.
12820
12821 2011-03-23  Jim Meyering  <meyering@redhat.com>
12822
12823         doc: update users.txt
12824         Looking through matches up to the following URL (there are still
12825         several more pages), I found several projects that use gnulib:
12826         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
12827         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
12828         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
12829
12830 2011-03-22  Bruno Haible  <bruno@clisp.org>
12831
12832         unictype/bidi*: Rename functions.
12833         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
12834         uc_bidi_class, uc_is_bidi_class): New declarations.
12835         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
12836         uc_bidi_category_byname.
12837         (uc_bidi_category_byname): New function.
12838         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
12839         u_bidi_category_name.
12840         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
12841         (uc_bidi_category_name): New function.
12842         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
12843         uc_bidi_category.
12844         (uc_bidi_category): New function.
12845         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
12846         uc_is_bidi_category. Invoke uc_bidi_class.
12847         (uc_is_bidi_category): New function.
12848         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
12849         instead of uc_bidi_category_byname.
12850         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
12851         instead of uc_bidi_category_name.
12852         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
12853         uc_bidi_category.
12854         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
12855         instead of uc_is_bidi_category.
12856
12857 2011-03-21  Bruno Haible  <bruno@clisp.org>
12858
12859         New module 'unictype/joininggroup-all'.
12860         * modules/unictype/joininggroup-all: New file.
12861
12862         Tests for module 'unictype/joininggroup-of'.
12863         * modules/unictype/joininggroup-of-tests: New file.
12864         * tests/unictype/test-joininggroup_of.c: New file.
12865         * tests/unictype/test-joininggroup_of.h: New file, automatically
12866         generated by gen-uni-tables.
12867
12868         New module 'unictype/joininggroup-of'.
12869         * modules/unictype/joininggroup-of: New file.
12870         * lib/unictype/joininggroup_of.c: New file.
12871         * lib/unictype/joininggroup_of.h: New file, automatically generated by
12872         gen-uni-tables.
12873
12874         Tests for module 'unictype/joininggroup-byname'.
12875         * modules/unictype/joininggroup-byname-tests: New file.
12876         * tests/unictype/test-joininggroup_byname.c: New file.
12877
12878         New module 'unictype/joininggroup-byname'.
12879         * modules/unictype/joininggroup-byname: New file.
12880         * lib/unictype/joininggroup_byname.c: New file.
12881         * lib/unictype/joininggroup_byname.gperf: New file.
12882
12883         Tests for module 'unictype/joininggroup-name'.
12884         * modules/unictype/joininggroup-name-tests: New file.
12885         * tests/unictype/test-joininggroup_name.c: New file.
12886
12887         New module 'unictype/joininggroup-name'.
12888         * modules/unictype/joininggroup-name: New file.
12889         * lib/unictype/joininggroup_name.c: New file.
12890         * lib/unictype/joininggroup_name.h: New file.
12891
12892         New module 'unictype/joiningtype-all'.
12893         * modules/unictype/joiningtype-all: New file.
12894
12895         Tests for module 'unictype/joiningtype-of'.
12896         * modules/unictype/joiningtype-of-tests: New file.
12897         * tests/unictype/test-joiningtype_of.c: New file.
12898         * tests/unictype/test-joiningtype_of.h: New file, automatically
12899         generated by gen-uni-tables.
12900
12901         New module 'unictype/joiningtype-of'.
12902         * modules/unictype/joiningtype-of: New file.
12903         * lib/unictype/joiningtype_of.c: New file.
12904         * lib/unictype/joiningtype_of.h: New file, automatically generated by
12905         gen-uni-tables.
12906
12907         Tests for module 'unictype/joiningtype-byname'.
12908         * modules/unictype/joiningtype-byname-tests: New file.
12909         * tests/unictype/test-joiningtype_byname.c: New file.
12910
12911         New module 'unictype/joiningtype-byname'.
12912         * modules/unictype/joiningtype-byname: New file.
12913         * lib/unictype/joiningtype_byname.c: New file.
12914
12915         Tests for module 'unictype/joiningtype-name'.
12916         * modules/unictype/joiningtype-name-tests: New file.
12917         * tests/unictype/test-joiningtype_name.c: New file.
12918
12919         New module 'unictype/joiningtype-name'.
12920         * modules/unictype/joiningtype-name: New file.
12921         * lib/unictype/joiningtype_name.c: New file.
12922
12923         unictype: Add support for Arabic shaping properties.
12924         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
12925         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
12926         declarations.
12927         (UC_JOINING_GROUP_*): New enumeration values.
12928         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
12929         declarations.
12930         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
12931         (unicode_joining_type): New variable.
12932         (UC_JOINING_GROUP_*): New enumeration values.
12933         (unicode_joining_group): New variable.
12934         (fill_arabicshaping, joining_type_as_c_identifier,
12935         output_joining_type_test, output_joining_type,
12936         joining_group_as_c_identifier, output_joining_group_test,
12937         output_joining_group): New functions.
12938         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
12939         fill_arabicshaping and output_joining_type_test, output_joining_type,
12940         output_joining_group_test, output_joining_group.
12941         Reported by Simon Josefsson.
12942
12943 2011-03-21  Jim Meyering  <meyering@redhat.com>
12944
12945         strftime: fix a bug in yesterday's change
12946         * lib/strftime.c (add): Accommodate width's initial value of -1.
12947         Otherwise, nstrftime would copy uninitialized data into
12948         the result buffer.
12949
12950 2011-03-21  Jim Meyering  <meyering@redhat.com>
12951
12952         tests: add strftime-tests module
12953         * tests/test-strftime.c: New file.
12954         * modules/strftime-tests: New module.
12955
12956 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
12957
12958         strftime: don't assume a byte count fits in 'int'
12959         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
12960         found this problem by static analysis, using gcc -Wstrict-overflow
12961         (GCC 4.5.2, x86-64).  This reported an optimization that depended
12962         on an integer overflow having undefined behavior, but it turns out
12963         that the argument is a size, which might not fit in 'int' anyway,
12964
12965 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
12966
12967         stdio: don't require ignore_value around fwrite
12968
12969         This patch works around libc bug 11959
12970         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
12971         Without this patch, applications must often write
12972         ignore_value (fwrite (...)) even though the ignore_value is
12973         not helpful here.  It's common to write many objects, using
12974         fwrite/printf/etc., and then use ferror to detect output error.
12975
12976         I considered making this patch optional, but decided against it,
12977         because libc is obviously being inconsistent here: there is no
12978         reason libc should insist that user code must inspect fwrite
12979         return's value without also insisting that it inspect printf's,
12980         putchar's, etc.  If user code wants to have a strict style where
12981         all these functions' values are checked (so that ferror need not
12982         be checked), we could add support for that style in a new gnulib
12983         module, but in the meantime it's better to be consistent and to
12984         support common usage.
12985
12986         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
12987         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
12988         that we are compiling in checking mode, and if not C++, and
12989         if not already wrapping fwrite for some other reason.
12990         (fwrite): #define to rpl_fwrite if the latter is defined.
12991
12992 2011-03-20  Bruno Haible  <bruno@clisp.org>
12993
12994         verror: Fix compilation error introduced on 2011-02-13.
12995         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
12996         instead of __attribute__.
12997         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12998
12999 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
13000             Bruno Haible  <bruno@clisp.org>
13001
13002         socklen: do not depend on sys_socket
13003         While trying to modify Emacs to use gnulib's socklen module,
13004         I discovered a circular dependency: socklen depends on sys_socket
13005         and vice versa.  Emacs can use socklen, but it does not need
13006         sys_socket because it has its own substitute for sys/socket.h.
13007         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
13008         gl_TYPE_SOCKLEN_T.
13009         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
13010         gl_PREREQ_SYS_H_SOCKET.
13011         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
13012         gl_PREREQ_SYS_H_SOCKET.
13013         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
13014         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
13015         * modules/socklen (Depends-on): Do not depend on sys_socket.
13016         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
13017
13018 2011-03-20  Jim Meyering  <meyering@redhat.com>
13019
13020         maint.mk: sort file names *after* new transformation
13021         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
13022         prefix would have led to an unwarranted failure in GNU parted.
13023         Sort after that transformation.
13024
13025 2011-03-19  Jim Meyering  <meyering@redhat.com>
13026
13027         maint.mk: fix po-file syntax-check rule
13028         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
13029         Patch by Bruno Haible.
13030
13031 2011-03-19  Bruno Haible  <bruno@clisp.org>
13032
13033         socklen: Update comment.
13034         * m4/socklen.m4: Update comment about platforms.
13035
13036 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
13037             Bruno Haible  <bruno@clisp.org>
13038
13039         inet_ntop, inet_pton: Simplify.
13040         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
13041         documented to provide socklen_t and we already depend on sys_socket.
13042         * modules/inet_pton (Depends-on): Likewise.
13043         * lib/arpa_inet.in.h: Adjust comment.
13044
13045 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
13046             Bruno Haible  <bruno@clisp.org>
13047
13048         netdb: Simplify.
13049         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
13050         documented to provide socklen_t and we already depend on sys_socket.
13051         * lib/netdb.in.h: Adjust comment.
13052
13053 2011-03-19  Bruno Haible  <bruno@clisp.org>
13054
13055         sys_socket, netdb: Document problem with socklen_t.
13056         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
13057         platforms.
13058         * doc/posix-headers/netdb.texi: Likewise.
13059
13060 2011-03-18  Eric Blake  <eblake@redhat.com>
13061
13062         maint.mk: let po check work in VPATH build
13063         * top/maint.mk (po_file): Allow cfg.mk override.
13064         (sc_po_check): Allow VPATH use.
13065         Reported by Jiri Denemark.
13066
13067 2011-03-16  Jim Meyering  <meyering@redhat.com>
13068
13069         maint.mk: allow fine-grained syntax-check exclusion via Make variables
13070         Before, you would have had to create one .x-sc_ file per rule in order
13071         to exempt offending files.  Now, you may instead use a Make variable --
13072         usually defined in cfg.mk -- whose name identifies the affected rule.
13073         * top/maint.mk (_sc_excl): Define.
13074         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
13075         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
13076
13077 2011-03-13  Bruno Haible  <bruno@clisp.org>
13078
13079         ignore-value tests: Avoid warnings.
13080         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
13081         empty for gcc < 3.4.
13082
13083 2011-03-13  Bruno Haible  <bruno@clisp.org>
13084
13085         passfd: Fix link error on Solaris.
13086         * modules/passfd (Description): Correct.
13087         (Depends-on): Add socketlib.
13088         (Link): New section.
13089         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
13090
13091 2011-03-13  Bruno Haible  <bruno@clisp.org>
13092
13093         passfd: Fix link error on AIX 5.2.
13094         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
13095
13096 2011-03-13  Bruno Haible  <bruno@clisp.org>
13097
13098         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
13099         * lib/sys_socket.in.h: Include <stddef.h>.
13100         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
13101         CMSG_FIRSTHDR. Remove unused variable.
13102
13103 2011-03-13  Bruno Haible  <bruno@clisp.org>
13104
13105         passfd: Fix compilation error on OpenBSD.
13106         * lib/passfd.c: Include <sys/uio.h>.
13107
13108 2011-03-13  Bruno Haible  <bruno@clisp.org>
13109
13110         passfd test: Fix warnings.
13111         * tests/test-passfd.c: Include <sys/wait.h>.
13112         (main): Fix typo.
13113
13114 2011-03-13  Bruno Haible  <bruno@clisp.org>
13115
13116         passfd module, part 4, tweaks.
13117         * tests/test-passfd.c: Reorder includes.
13118         (main): Fix perror and printf calls.
13119
13120 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
13121
13122         passfd module, part 4.
13123         * modules/passfd-tests: New file.
13124         * tests/test-passfd.c: New file.
13125
13126 2011-03-13  Jim Meyering  <meyering@redhat.com>
13127
13128         Makefile: rely on GNU make; derive syntax-check rule names
13129         Rather than requiring that each sc_ rule be listed as a dependent
13130         of "check", use features of GNU make to derive the list.
13131         * Makefile (syntax-check-rules): Define.
13132         (check): Depend on the new variable, not the hard-coded list.
13133
13134 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
13135             Bruno Haible  <bruno@clisp.org>
13136
13137         passfd module, part 3.
13138         * lib/passfd.h (recvfd): Add a flags argument.
13139         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
13140         (recvfd): Add a flags argument.
13141         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
13142         exists.
13143         * modules/passfd (Depends-on): Add cloexec.
13144         Suggested by Eric Blake.
13145
13146 2011-03-13  Bruno Haible  <bruno@clisp.org>
13147
13148         passfd module, part 2, tweaks.
13149         * modules/passfd (Files): Reorder.
13150         (Depends-on): Remove errno.
13151         (Include): Remove <sys/socket.h>, <sys/un.h>.
13152         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
13153         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
13154         specification header. Include <sys/socket.h> always. Don't include
13155         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
13156         (sendfd): Clarify that it sets errno when it fails.
13157         (recvfd): Fix specification.
13158
13159 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
13160
13161         passfd module, part 2.
13162         * modules/passfd: New file.
13163         * lib/passfd.h: New file.
13164         * lib/passfd.c: New file.
13165
13166 2011-03-12  Bruno Haible  <bruno@clisp.org>
13167
13168         wcswidth, mbswidth: Avoid integer overflow.
13169         * lib/wcswidth.c: Include <limits.h>.
13170         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
13171         * lib/mbswidth.c: Include <limits.h>.
13172         (mbsnwidth): Avoid 'int' overflow.
13173         Reported by Jim Meyering.
13174
13175 2011-03-12  Bruno Haible  <bruno@clisp.org>
13176
13177         futimens, utimensat: Avoid endless recursion on Solaris 10.
13178         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
13179         Solaris.
13180         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
13181         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
13182
13183 2011-03-11  Jim Meyering  <meyering@redhat.com>
13184
13185         maint.mk: relax a regexp to accommodate other formatting styles
13186         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
13187         between "ngettext" and the following "(".
13188
13189 2011-03-11  Pádraig Brady <P@draigBrady.com>
13190
13191         maint.mk: suppress a false positive warning
13192         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
13193         diagnostics are marked with ngettext.
13194
13195 2011-03-10  Eric Blake  <eblake@redhat.com>
13196
13197         wchar: add explicit dependencies, for Tru64
13198         * modules/mbmemcasecoll (Depends-on): Add wchar.
13199         * modules/mbtowc (Depends-on): Likewise.
13200         * modules/vasnprintf (Depends-on): Likewise.
13201         * modules/unistdio/u-printf-args (Depends-on): Likewise.
13202         * modules/wctomb (Depends-on): Likewise.
13203         Reported by Peter O'Gorman.
13204
13205 2011-03-08  Bruno Haible  <bruno@clisp.org>
13206
13207         passfd module, part 1, tweaks.
13208         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
13209         Improve indentation. Improve AC_MSG_CHECKING messages.
13210         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
13211         gl_SOCKET_FAMILIES.
13212
13213 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
13214
13215         passfd module, part 1.
13216         * m4/afunix.m4: New file.
13217         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
13218         sockets.
13219
13220 2011-03-08  Bruno Haible  <bruno@clisp.org>
13221
13222         regex-quote: New API.
13223         * lib/regex-quote.h: Include <stdbool.h>.
13224         (struct regex_quote_spec): New type.
13225         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
13226         New declarations.
13227         (regex_quote_length, regex_quote_copy, regex_quote): Take a
13228         'const struct regex_quote_spec *' argument.
13229         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
13230         (pcre_special): New constant.
13231         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
13232         New functions.
13233         (regex_quote_length, regex_quote_copy, regex_quote): Take a
13234         'const struct regex_quote_spec *' argument.
13235         * modules/regex-quote (Depends-on): Add stdbool.
13236         * tests/test-regex-quote.c (check): Update for new API. Add test for
13237         anchored results.
13238         * NEWS: Mention the API change.
13239         Reported by Reuben Thomas and Eric Blake.
13240
13241 2011-03-06  Bruno Haible  <bruno@clisp.org>
13242
13243         regex-quote: Fix creation of POSIX extended regular expressions.
13244         * lib/regex-quote.c (ere_special): Add grouping and alternation
13245         operators.
13246
13247 2011-03-05  Bruno Haible  <bruno@clisp.org>
13248
13249         doc: Improve doc regarding autopoint vs. gnulib.
13250         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
13251         disable autopoint while running autoreconf.
13252         Suggested by Ralf Wildenhues.
13253
13254 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13255
13256         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
13257         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
13258
13259 2011-03-03  Bruce Korb  <bkorb@gnu.org>
13260
13261         parse-duration: remove xalloc.h dependency
13262         * lib/parse-duration.c (parse_period): handle NULL return from
13263         strdup instead of calling xstrdup().
13264         * modules/parse-duration: remove "xalloc" dependency
13265
13266 2011-03-03  Matthew Booth  <mbooth@redhat.com>
13267
13268         bootstrap: honor m4_base when running aclocal
13269         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
13270
13271 2011-03-02  Jim Meyering  <meyering@redhat.com>
13272
13273         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
13274         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
13275         on request from Matt Booth.
13276
13277 2011-03-01  Eric Blake  <eblake@redhat.com>
13278
13279         test-link: work on Hurd
13280         * tests/test-link.h (test_link): Hurd rejects linking directories
13281         with EISDIR instead of the POSIX-mandated EPERM.
13282
13283 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
13284
13285         stdio: simplify by moving files to printf-posix, sigpipe
13286         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
13287         since this symbol is needed only if printf is replaced.
13288         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
13289         Require gl_ASM_SYMBOL_PREFIX.
13290         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
13291         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
13292         (Depends-on): Add 'raise'.
13293         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
13294         * modules/stdio (Files): Remove lib/stdio-write.c,
13295         m4/asm-underscore.m4.
13296         (Depends-on): Remove 'raise'.
13297
13298         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
13299         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
13300         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
13301         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
13302
13303 2011-02-28  Bruno Haible  <bruno@clisp.org>
13304
13305         localcharset: Assume ANSI C behaviour of free().
13306         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
13307         calling free().
13308         Suggested by Simon Josefsson <simon@josefsson.org>.
13309
13310 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
13311             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
13312             Bruno Haible  <bruno@clisp.org>  (tiny change)
13313
13314         On Cygwin, use /proc file system instead of win32 API.
13315         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
13316         Win32 file names.
13317         (DllMain): Simplify by removing Cygwin specific code.
13318         (find_shared_library_fullname): Use Linux specific implementation also
13319         for Cygwin.
13320         (get_shared_library_fullname): Update accordingly.
13321         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
13322         Win32 file names.
13323         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
13324         Cygwin specific code.
13325
13326 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
13327             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
13328
13329         Fix OpenMP flag detection for various Fortran compilers.
13330         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
13331         OpenMP-conditional compilation construct, to force compile
13332         failure with missing OpenMP flag.
13333         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
13334
13335 2011-02-25  Eric Blake  <eblake@redhat.com>
13336
13337         strstr: expand test coverage
13338         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
13339         compilation.
13340         * tests/test-memmem.c (main): Duplicate tests.
13341         * tests/test-strcasestr.c (main): Likewise.
13342         * tests/test-c-strcasestr.c (main): Likewise.
13343
13344 2011-02-25  Jim Meyering  <meyering@redhat.com>
13345
13346         maint.mk: detect missing-NL-at-EOF, too
13347         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
13348         it also detects when a file lacks a newline at EOF.
13349         (require_exactly_one_NL_at_EOF_): Renamed from
13350         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
13351         since people may well have .x-sc_... file names tied to the
13352         existing name.  Suggested by Eric Blake.
13353
13354 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
13355
13356         dirname: move m4/dos.m4 functionality into lib/dosname.h
13357
13358         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
13359         extracts symbols from it, puts them into config.h; but it's much
13360         easier to use the symbols directly.  filename.h already does this,
13361         but it disagrees with dos.m4 in some respects.  This patch
13362         introduces a different include file dosname.h that packages up
13363         dos.m4, and then later we can work on merging filename.h and
13364         dosname.h.  Applications that need only the easy-to-configure
13365         symbols should consider including dosname.h rather than dirname.h.
13366         * NEWS: Mention incompatible changes.
13367         * m4/dos.m4: Remove.
13368         * lib/dosname.h, modules/dosname: New files.
13369         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
13370         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
13371         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
13372         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
13373         Include dosname.h, not dirname.h.
13374         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
13375         Include dosname.h, for definitions of symbols like ISSLASH
13376         that used to be in config.h.
13377         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
13378         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
13379         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
13380         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
13381         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
13382         * modules/rmdir (Files): Likewise.
13383         * modules/stat (Files): Likewise.
13384         * modules/unlink (Files): Likewise.
13385         * modules/dirname-lgpl (Depends-on): Add dosname.
13386         * modules/lstat (Depends-on): Likewise.
13387         * modules/openat (Depends-on): Likewise.
13388         * modules/rmdir (Depends-on): Likewise.
13389         * modules/savewd (Depends-on): Likewise.
13390         * modules/stat (Depends-on): Likewise.
13391         * modules/unlink (Depends-on): Likewise.
13392         * modules/openat (Depends-on): Remove dirname-lgpl.
13393         * modules/savewd (Depends-on): Likewise.
13394         * tests/test-dirname.c: Do not use removed symbols like
13395         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
13396         the remaining symbols, e.g., ISSLASH ('\\').
13397
13398 2011-02-25  Eric Blake  <eblake@redhat.com>
13399
13400         strstr: revert patches that introduced bug and pessimization
13401         * lib/str-two-way.h: Add another reference.
13402         (two_way_short_needle, two_way_long_needle): Revert changes from
13403         2011-02-24; they pessimize search speed.
13404         (critical_factorization): Partially revert changes from
13405         2010-06-22; they violate the requirement that the left half of the
13406         needle be smaller than the period of the needle.
13407
13408 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
13409
13410         filenamecat: remove unnecessary dependency on dirname-lgpl
13411         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
13412         is no direct dependency, just an indirect one via filenamecat-lgpl.
13413
13414         remove: remove unnecessary use of m4/dos.m4
13415         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
13416         * modules/remove (FILES): Remove m4/dos.m4.
13417
13418         * lib/openat-proc.c: Don't include dirname.h; not needed.
13419
13420         backupfile: remove unnecessary use of m4/dos.m4
13421         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
13422         of its symbols are used by the backupfile code.  backupfile.c does
13423         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
13424         for the rare case of programs that want all their backup file
13425         names to live within 8+3 limits, and dos.m4 doesn't address that.
13426         * modules/backupfile (Files): Remove m4/dos.m4.
13427
13428 2011-02-24  Jim Meyering  <meyering@redhat.com>
13429
13430         strstr: fix a bug whereby strstr would mistakenly return NULL
13431         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
13432         in period calculation.
13433         (two_way_long_needle): Likewise.
13434         The original problem was reported by Mike Stump in
13435         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
13436         Ralf Wildenhues provided the short needle and haystack.
13437         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
13438         Add a more involved test to trigger the bug in two_way_long_needle.
13439
13440 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
13441
13442         gnulib-tool: remove use of bold display in help screen
13443         * gnulib-tool (func_usage): Do not use bold display anymore in the
13444         help screen.  That was just meant to be a temporary emphasis for a
13445         backward-incompatible change.
13446
13447 2011-02-23  Bruno Haible  <bruno@clisp.org>
13448
13449         Fix misindentation of preprocessor directives.
13450         * lib/argp-namefrob.h: Reindent preprocessor directives.
13451         * lib/getopt_int.h (struct _getopt_data): Likewise.
13452         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
13453         * lib/vasnprintf.c (decode_long_double): Likewise.
13454         * tests/test-argmatch.c: Insert blank lines, for clarity.
13455         * tests/test-exclude.c: Likewise.
13456
13457 2011-02-22  Bruno Haible  <bruno@clisp.org>
13458
13459         ioctl: Fix for MacOS X in 64-bit mode.
13460         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
13461         value.
13462         Suggested by Eric Blake.
13463         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
13464
13465 2011-02-22  Jim Meyering  <meyering@redhat.com>
13466
13467         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
13468         * Makefile (sc_cpp_indent_check): Don't limit the check to files
13469         in lib/.
13470
13471 2011-02-22  Eric Blake  <eblake@redhat.com>
13472
13473         maint: avoid any CDPATH issue
13474         * Makefile (sc_cpp_indent_check): Anchor cd argument.
13475
13476         maint: adjust cpp indentation for my modules, as well
13477         * Makefile (sc_cpp_indent_check): Add my name.
13478         * lib/fbufmode.c: Filter through cppi.
13479         * lib/fpurge.c: Likewise.
13480         * lib/freadable.c: Likewise.
13481         * lib/freading.c: Likewise.
13482         * lib/fwritable.c: Likewise.
13483         * lib/fwriting.c: Likewise.
13484         * lib/sigaction.c: Likewise.
13485
13486 2011-02-22  Jim Meyering  <meyering@redhat.com>
13487
13488         maint: adjust cpp indentation to reflect nesting depth
13489         I.e., in a block of code that begins with an unnested "#if",
13490         put one space between the "#" in column 1 and following token.
13491         For example,
13492         -#include <sys/vfs.h>
13493         +# include <sys/vfs.h>
13494         Do this only in .c files that are part of a module I maintain.
13495         * lib/linkat.c: Filter through cppi.
13496         * lib/nanosleep.c: Likewise.
13497         * lib/openat.c: Likewise.
13498         * lib/openat-die.c: Likewise.
13499         * lib/dup3.c: Likewise.
13500         * lib/fchownat.c: Likewise.
13501         * lib/flock.c: Likewise.
13502         * lib/fsync.c: Likewise.
13503         * lib/fts.c: Likewise.
13504         * lib/getpass.c: Likewise.
13505         * lib/gettimeofday.c: Likewise.
13506         * lib/userspec.c: Likewise.
13507         * Makefile (sc_cpp_indent_check): New rule, to check this.
13508
13509 2011-02-22  Bruno Haible  <bruno@clisp.org>
13510
13511         New module 'wctomb'.
13512         * lib/stdlib.in.h (wctomb): New declaration.
13513         * lib/wctomb.c: New file.
13514         * lib/wctomb-impl.h: New file.
13515         * m4/wctomb.m4: New file.
13516         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
13517         REPLACE_WCTOMB.
13518         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
13519         REPLACE_WCTOMB.
13520         * modules/wctomb: New file.
13521         * tests/test-stdlib-c++.cc: Test signature of wctomb.
13522         * doc/posix-functions/wctomb.texi: Mention the new module.
13523         * modules/wctob (Depends-on): Add wctomb.
13524
13525 2011-02-22  Bruno Haible  <bruno@clisp.org>
13526
13527         New module 'mbtowc'.
13528         * lib/stdlib.in.h (mbtowc): New declaration.
13529         * lib/mbtowc.c: New file.
13530         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
13531         * m4/mbtowc.m4: New file.
13532         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
13533         REPLACE_MBTOWC.
13534         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
13535         REPLACE_MBTOWC.
13536         * modules/mbtowc: New file.
13537         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
13538         * doc/posix-functions/mbtowc.texi: Mention the new module.
13539         * modules/btowc (Depends-on): Add mbtowc.
13540
13541 2011-02-22  Bruno Haible  <bruno@clisp.org>
13542
13543         wcrtomb: Add more tests for native Windows platforms.
13544         * tests/test-wcrtomb-w32-1.sh: New file.
13545         * tests/test-wcrtomb-w32-2.sh: New file.
13546         * tests/test-wcrtomb-w32-3.sh: New file.
13547         * tests/test-wcrtomb-w32-4.sh: New file.
13548         * tests/test-wcrtomb-w32-5.sh: New file.
13549         * tests/test-wcrtomb-w32.c: New file.
13550         * modules/wcrtomb-tests (Files): Add them.
13551         (Makefile.am): Arrange to run these tests.
13552         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
13553         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
13554
13555 2011-02-20  Bruno Haible  <bruno@clisp.org>
13556
13557         wcrtomb: Enhance test.
13558         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
13559
13560 2011-02-20  Bruno Haible  <bruno@clisp.org>
13561
13562         mbrtowc: Tiny optimization.
13563         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
13564
13565 2011-02-20  Jim Meyering  <meyering@redhat.com>
13566
13567         test-exclude.c: remove unmatched #endif
13568         * tests/test-exclude.c: Remove stray #endif, left over from
13569         the change of a week ago.
13570
13571 2011-02-19  Jim Meyering  <meyering@redhat.com>
13572
13573         git-version-gen: skip "-dirty" check when appropriate
13574         * build-aux/git-version-gen: Don't run any git commands when the
13575         version string comes from .tarball-version.  Prior to this, we
13576         would run git update-index --refresh even from a just-unpacked
13577         tarball directory, and that could affect a .git/ directory in a
13578         parent of the build directory.  Reported by Mike Frysinger.
13579
13580 2011-02-19  Bruno Haible  <bruno@clisp.org>
13581
13582         unictype/property-byname: Reduce the size of the 'data' segment.
13583         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
13584
13585 2011-02-19  Bruno Haible  <bruno@clisp.org>
13586
13587         unictype/scripts: Reduce the size of the 'data' segment.
13588         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
13589         '%pic'.
13590         * lib/unictype/scripts_byname.gperf: Regenerated.
13591
13592 2011-02-19  Bruno Haible  <bruno@clisp.org>
13593
13594         stdint: Update documentation.
13595         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
13596
13597 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
13598
13599         stdint: omit redundant check for wchar.h
13600         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
13601         always tests whether wchar.h exists, so remove the now-redundant test.
13602
13603 2011-02-18  Bruno Haible  <bruno@clisp.org>
13604
13605         stdint: Cut dependency to module 'wchar'.
13606         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
13607         include the necessary prerequisites.
13608         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
13609         * modules/stdint (Depends-on): Remove wchar.
13610         (Makefile.am): Substitute HAVE_WCHAR_H.
13611         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
13612
13613 2011-02-18  Eric Blake  <eblake@redhat.com>
13614
13615         longlong: skip, rather than fail, on cross-compilation
13616         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
13617         when cross-compiling; regression from 2011-02-16.
13618
13619 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
13620
13621         * NEWS: Mention 2011-02-08 change to stdlib.
13622
13623 2011-02-17  Bruno Haible  <bruno@clisp.org>
13624
13625         getloadavg: Add comments about platforms.
13626         * m4/getloadavg.m4: Add comment.
13627         * lib/getloadavg.c: Likewise.
13628
13629 2011-02-17  Bruno Haible  <bruno@clisp.org>
13630
13631         getloadavg: Fix link error on Solaris 2.6.
13632         * modules/getloadavg (Link): New section.
13633         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
13634         linking test-getloadavg.
13635         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
13636         getloadavg.
13637
13638 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
13639
13640         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
13641         It was 'int', but this doesn't match the IRIX 6.5 manual.
13642         Suggested by Bruno Haible in
13643         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
13644
13645 2011-02-17  Bruno Haible  <bruno@clisp.org>
13646
13647         havelib: Fix comments.
13648         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
13649         change.
13650
13651 2011-02-17  Bruno Haible  <bruno@clisp.org>
13652
13653         havelib: Update config.rpath.
13654         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
13655
13656 2011-02-17  Bruno Haible  <bruno@clisp.org>
13657
13658         getloadavg test: Add some plausibility checks.
13659         * tests/test-getloadavg.c (check_avg): Print a warning when the value
13660         is improbable.
13661
13662 2011-02-16  Eric Blake  <eblake@redhat.com>
13663
13664         maintainer-makefile: make syntax-check a no-op from tarballs
13665         * top/maint.mk (no-vc-detected): New rule.
13666         (local-checks-available): Use it to avoid hanging if someone tries
13667         'make syntax-check' from a tarball.  Also append to any non-syntax
13668         checks already defined in cfg.mk.
13669
13670 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
13671
13672         longlong: tune, particularly for common case of c99
13673
13674         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
13675         or running anything if c99, or if unsigned long long int does not
13676         work.  In either case, we know the answer without further tests.
13677         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
13678         it at most once, and use its results for both long long int and
13679         unsigned long long int.  This is more likely to be efficient in
13680         the common case where the program wants to check for both long
13681         long int and unsigned long long int.
13682         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
13683         since the answer is already known.
13684
13685 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
13686
13687         getloadavg: set errno
13688         * lib/getloadavg.c: Set errno when returning -1.  If no other
13689         error number looks appropriate, set it to ENOSYS if the getloadavg
13690         looks like it can't possibly ever work, ENOTSUP otherwise.
13691         Suggested by Bruno Haible in
13692         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
13693
13694         getloadavg: trim unused parts and speed up 'configure'
13695         * NEWS: Document this.
13696         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
13697         always compiled if getloadavg is absent.
13698         Move test code to ...
13699         * tests/test-getloadavg.c: New file, containing previous
13700         contents of test from lib/getloadavg.c.  It also contains
13701         suggestions by Bruno Haible in
13702         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
13703         * modules/getloadavg-tests: New file.
13704         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
13705         Do tests in the same order as they're needed for getloadavg.c.
13706         Omit setgid-related tests that generate symbols KMEM_GROUP,
13707         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
13708         Do only the tests that are needed to see whether the system has
13709         getloadavg, moving the other tests into ...
13710         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
13711         NLIST_NAME_UNION; nobody should be using it.  Do not define
13712         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
13713         relevant, as the user of this module shouldn't care how getloadavg
13714         is implemented.
13715
13716         getloadavg: omit unused var
13717         * lib/getloadavg.c (getloadavg): Omit unused local variable.
13718
13719 2011-02-15  Jim Meyering  <meyering@redhat.com>
13720
13721         doc: update users.txt
13722         * users.txt: Update iwhd's URL.
13723
13724 2011-02-13  Bruno Haible  <bruno@clisp.org>
13725
13726         Consistent macro naming for macros that use GCC __attribute__.
13727         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
13728         _ATTRIBUTE_NONNULL_.
13729         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
13730         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
13731         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
13732         ATTRIBUTE_DEPRECATED.
13733         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
13734         ATTRIBUTE_NORETURN.
13735         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
13736         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
13737         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
13738         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
13739         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
13740         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
13741         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
13742         ATTRIBUTE_SENTINEL.
13743         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
13744         ATTRIBUTE_RETURN_CHECK.
13745         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
13746         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
13747         ATTRIBUTE_NORETURN.
13748         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
13749         Reported by Paul Eggert.
13750
13751 2011-02-13  Bruno Haible  <bruno@clisp.org>
13752
13753         Don't interfere with a program's definition of __attribute__.
13754         * lib/argp.h (__attribute__): Remove definition.
13755         (_GL_ATTRIBUTE_FORMAT): New macro.
13756         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
13757         * lib/argp-fmtstream.h (__attribute__): Remove definition.
13758         (_GL_ATTRIBUTE_FORMAT): New macro.
13759         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
13760         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
13761         GCC 3 or newer.
13762         * lib/error.h (__attribute__): Remove definition.
13763         (_GL_ATTRIBUTE_FORMAT): New macro.
13764         (error, error_at_line): Use it.
13765         * lib/hash.h (__attribute__): Remove definition.
13766         (ATTRIBUTE_WUR): Update definition. Define always.
13767         * lib/openat.h (__attribute__): Remove definition.
13768         (ATTRIBUTE_NORETURN): Update definition. Define always.
13769         * lib/sigpipe-die.h (__attribute__): Remove definition.
13770         (ATTRIBUTE_NORETURN): Update definition. Define always.
13771         * lib/vasnprintf.h (__attribute__): Remove definition.
13772         (_GL_ATTRIBUTE_FORMAT): New macro.
13773         (asnprintf, vasnprintf): Use it.
13774         * lib/xalloc.h (__attribute__): Remove definition.
13775         (ATTRIBUTE_NORETURN): Update definition. Define always.
13776         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
13777         * lib/xmemdup0.h (__attribute__): Remove definition.
13778         (ATTRIBUTE_NORETURN): Update definition. Define always.
13779         * lib/xprintf.h (__attribute__): Remove definition.
13780         (_GL_ATTRIBUTE_FORMAT): New macro.
13781         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
13782         * lib/xstrtol.h (__attribute__): Remove definition.
13783         (ATTRIBUTE_NORETURN): Update definition. Define always.
13784         * lib/xvasprintf.h (__attribute__): Remove definition.
13785         (_GL_ATTRIBUTE_FORMAT): New macro.
13786         (xasprintf, xvasprintf): Use it.
13787         * tests/test-argmatch.c (__attribute__): Remove definition.
13788         (ATTRIBUTE_NORETURN): Update definition. Define always.
13789         * tests/test-exclude.c (__attribute__): Remove definition.
13790         (ATTRIBUTE_NORETURN): Update definition. Define always.
13791         Reported by Paul Eggert.
13792
13793 2011-02-13  Bruno Haible  <bruno@clisp.org>
13794
13795         mbrtowc: Add more tests for native Windows platforms.
13796         * tests/test-mbrtowc-w32-1.sh: New file.
13797         * tests/test-mbrtowc-w32-2.sh: New file.
13798         * tests/test-mbrtowc-w32-3.sh: New file.
13799         * tests/test-mbrtowc-w32-4.sh: New file.
13800         * tests/test-mbrtowc-w32-5.sh: New file.
13801         * tests/test-mbrtowc-w32.c: New file.
13802         * modules/mbrtowc-tests (Files): Add them.
13803         (Makefile.am): Arrange to run these tests.
13804         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
13805         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
13806
13807 2011-02-13  Bruno Haible  <bruno@clisp.org>
13808
13809         mbrtowc: Work around native Windows bug.
13810         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
13811         guess when no suitable locale for testing was found.
13812         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
13813
13814 2011-02-13  Bruno Haible  <bruno@clisp.org>
13815
13816         mbsinit: Work around mingw bug.
13817         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
13818         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
13819         Windows.
13820         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
13821
13822 2011-02-13  Bruno Haible  <bruno@clisp.org>
13823
13824         mbsinit: Don't crash for a NULL argument.
13825         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
13826         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
13827
13828 2011-02-13  Bruno Haible  <bruno@clisp.org>
13829
13830         Don't interfere with a program's definition of __attribute__.
13831         * lib/stdio.in.h (__attribute__): Remove definition.
13832         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
13833         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
13834         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
13835         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
13836         * lib/string.in.h (__attribute__): Remove definition.
13837         Reported by Paul Eggert.
13838
13839 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
13840
13841         stdlib: don't get in the way of non-GCC __attribute__
13842         See thread starting at
13843         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
13844         Revert previous stdlib change, installing the following instead:
13845         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
13846         to get in the way of a non-GCC compiler that supports __attribute__.
13847         (_GL_ATTRIBUTE_RETURN): New macro.
13848         (_Exit): Use it instead of __attribute__.
13849
13850 2011-02-12  Bruno Haible  <bruno@clisp.org>
13851
13852         quotearg test: Avoid test failure on mingw.
13853         * tests/test-quotearg.sh: Convert the locale identifier from native
13854         Windows syntax to Unix syntax.
13855
13856 2011-02-12  Bruno Haible  <bruno@clisp.org>
13857
13858         setlocale: Prefer gnulib's override over libintl's override.
13859         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
13860         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
13861         GNULIB_defined_setlocale is set.
13862
13863 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
13864
13865         stdlib: support non-GCC __attribute__
13866
13867         Fix a serious and tricky problem encountered when attempting to
13868         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
13869         5.5, but it crashed due to memory corruption on Solaris 10 with
13870         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
13871         bits that are otherwise zero.  This tagging is optional inside
13872         Emacs but is preferred and is used when __attribute__ ((__aligned
13873         (8))) works, as it does with both recent-enough GCC and with Sun C
13874         5.11.  However, Sun C 5.11 is not GCC and does not #define
13875         __GNUC__ and __GNUC_MINOR__.
13876
13877         When I added the getloadavg module to Emacs, it brought in
13878         stdlib.in.h, which contained this fragment:
13879
13880            #ifndef __attribute__
13881            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
13882            #  define __attribute__(Spec)   /* empty */
13883            # endif
13884            #endif
13885
13886         When files that include <stdlib.h> were compiled with Sun C 5.11,
13887         the above code disabled __attribute__ ((__aligned (8))), which
13888         caused variables to not be properly aligned, which eventually led
13889         to the pointer corruption mentioned above.  (This was a bit hard
13890         to diagnose, unfortunately.)
13891
13892         Several "#define __attribute__(X) /* empty */" code snippets need
13893         to be eradicated from Gnulib to work with non-GCC compilers that
13894         support __attribute__.  The Autoconf way to do this is to test for
13895         each kind of attribute that we want support for, and selectively
13896         enable that in source code.
13897
13898         Fix this problem just for stdlib.h, by adding a test for the
13899         __noreturn__ attribute, and change stdlib.in.h to use that test
13900         when needed.  This technique can be easily generalized to the
13901         other *.in.h files and attributes, and a similar technique can be
13902         used for *.h and *.c files.  This patch is enough to solve the
13903         problem for Emacs + getloadavg, and I thought I'd publish it for
13904         feedback before undertaking further, similar fixes in other
13905         modules.
13906
13907         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
13908         because it's not needed for stdlib.h.  It merely substitutes the
13909         value directly into stdlib.h.  We may well need to #define it, or
13910         similar symbols, for other modules, but it's nice to also have an
13911         option to not #define it for applications like Emacs that do not
13912         need it.
13913
13914         * lib/stdlib.in.h (__attribute__): Do not #define.
13915         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
13916         be defined only if the _Exit module is also used.
13917         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
13918         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
13919         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
13920         platforms.
13921         * modules/_Exit (Files): Add m4/attribute.m4.
13922         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
13923         * m4/attribute.m4: New file.
13924
13925 2011-02-12  Bruno Haible  <bruno@clisp.org>
13926
13927         wcsrtombs: Work around bug on native Windows.
13928         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
13929         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
13930         instead of len.
13931         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
13932
13933 2011-02-12  Bruno Haible  <bruno@clisp.org>
13934
13935         mbsrtowcs: Work around bug on native Windows.
13936         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
13937         against mingw bug.
13938         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
13939
13940 2011-02-12  Bruno Haible  <bruno@clisp.org>
13941
13942         Avoid setlocale bugs in tests.
13943         * modules/btowc (Dependencies): Add setlocale.
13944         * modules/c-strcase (Dependencies): Likewise.
13945         * modules/mbmemcasecmp (Dependencies): Likewise.
13946         * modules/mbmemcasecoll (Dependencies): Likewise.
13947         * modules/mbrtowc (Dependencies): Likewise.
13948         * modules/mbscasecmp (Dependencies): Likewise.
13949         * modules/mbscasestr (Dependencies): Likewise.
13950         * modules/mbschr (Dependencies): Likewise.
13951         * modules/mbscspn (Dependencies): Likewise.
13952         * modules/mbsinit (Dependencies): Likewise.
13953         * modules/mbsncasecmp (Dependencies): Likewise.
13954         * modules/mbsnrtowcs (Dependencies): Likewise.
13955         * modules/mbspbrk (Dependencies): Likewise.
13956         * modules/mbspcasecmp (Dependencies): Likewise.
13957         * modules/mbsrchr (Dependencies): Likewise.
13958         * modules/mbsrtowcs (Dependencies): Likewise.
13959         * modules/mbsspn (Dependencies): Likewise.
13960         * modules/mbsstr (Dependencies): Likewise.
13961         * modules/nl_langinfo (Dependencies): Likewise.
13962         * modules/quotearg (Dependencies): Likewise.
13963         * modules/unicase/locale-language (Dependencies): Likewise.
13964         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
13965         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
13966         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
13967         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
13968         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
13969         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
13970         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
13971         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
13972         * modules/vasnprintf-posix (Dependencies): Likewise.
13973         * modules/wcrtomb (Dependencies): Likewise.
13974         * modules/wcsnrtombs (Dependencies): Likewise.
13975         * modules/wcsrtombs (Dependencies): Likewise.
13976
13977 2011-02-12  Bruno Haible  <bruno@clisp.org>
13978
13979         setlocale: Workaround native Windows bug.
13980         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
13981         succeeds but sets LC_CTYPE to "C", report a failure.
13982         * tests/test-setlocale2.sh: New file.
13983         * tests/test-setlocale2.c: New file.
13984         * modules/setlocale-tests (Files): Add the new files.
13985         (Makefile.am): Enable test-setlocale2.sh test.
13986         * doc/posix-functions/setlocale.texi: Mention workaround.
13987
13988 2011-02-11  Bruno Haible  <bruno@clisp.org>
13989
13990         Tests for module 'setlocale'.
13991         * modules/setlocale-tests: New file.
13992         * tests/test-setlocale1.sh: New file.
13993         * tests/test-setlocale1.c: New file.
13994
13995         New module 'setlocale'.
13996         * lib/locale.in.h (setlocale): New declaration.
13997         * lib/setlocale.c: New file, based on
13998         gettext/gettext-runtime/intl/setlocale.c.
13999         * m4/setlocale.m4: New file.
14000         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
14001         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
14002         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
14003         REPLACE_SETLOCALE.
14004         * modules/setlocale: New file.
14005         * tests/test-locale-c++.cc: Test the declaration of setlocale.
14006         * doc/posix-functions/setlocale.texi: Mention the new module.
14007
14008 2011-02-11  Bruno Haible  <bruno@clisp.org>
14009
14010         Prepare for locale dependent tests on mingw.
14011         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
14012         because it has the wrong locale encoding.
14013         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
14014         French_France.1252 instead of "fr".
14015         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
14016         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
14017         because it has the wrong locale encoding.
14018         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
14019         native Windows, try Turkish_Turkey.65001.
14020         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
14021         Chinese_China.54936.
14022
14023         Prepare for locale dependent tests on mingw.
14024         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
14025         differently.
14026         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
14027         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
14028         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
14029         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
14030
14031 2011-02-11  Eric Blake  <eblake@redhat.com>
14032
14033         strptime: avoid compiler warnings
14034         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
14035         compiler warnings about dead code.
14036         Reported by Daniel P. Berrange.
14037
14038 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
14039
14040         doc: update users.txt
14041         * users.txt: Add rcs.
14042
14043 2011-02-10  John W. Eaton  <jwe@gnu.org>
14044
14045         doc: update users.txt
14046         * users.txt: Add octave.
14047
14048 2011-02-10  Jim Meyering  <meyering@redhat.com>
14049
14050         doc: update users.txt
14051         * users.txt: Add iwhd.
14052
14053 2011-02-09  Bruno Haible  <bruno@clisp.org>
14054
14055         gnulib-tool: Make copyright notice adjustment more robust.
14056         * gnulib-tool (func_import): In sed_transform_main_lib_file,
14057         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
14058         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
14059         License".
14060         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
14061
14062 2011-02-06  Bruno Haible  <bruno@clisp.org>
14063
14064         New module 'towctrans'.
14065         * modules/towctrans: New file.
14066         * lib/wctype.in.h (towctrans): New declaration.
14067         * lib/towctrans.c: New file.
14068         * lib/towctrans-impl.h: New file.
14069         * m4/towctrans.m4: New file.
14070         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
14071         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
14072         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
14073         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
14074         * doc/posix-functions/towctrans.texi: Mention the new module.
14075
14076 2011-02-06  Bruno Haible  <bruno@clisp.org>
14077
14078         New module 'wctrans'.
14079         * modules/wctrans: New file.
14080         * lib/wctype.in.h (wctrans): New declaration.
14081         * lib/wctrans.c: New file.
14082         * lib/wctrans-impl.h: New file.
14083         * m4/wctrans.m4: New file.
14084         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
14085         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
14086         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
14087         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
14088         * doc/posix-functions/wctrans.texi: Mention the new module.
14089
14090 2011-02-06  Bruno Haible  <bruno@clisp.org>
14091
14092         New module 'iswctype'.
14093         * modules/iswctype: New file.
14094         * lib/wctype.in.h (iswctype): New declaration.
14095         * lib/iswctype.c: New file.
14096         * lib/iswctype-impl.h: New file.
14097         * m4/iswctype.m4: New file.
14098         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
14099         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
14100         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
14101         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
14102         * doc/posix-functions/iswctype.texi: Mention the new module and the
14103         HP-UX 11.00 problem.
14104
14105 2011-02-06  Bruno Haible  <bruno@clisp.org>
14106
14107         New module 'wctype'.
14108         * modules/wctype: Change to represent the wctype() substitute.
14109         * lib/wctype.in.h (wctype): New declaration.
14110         * lib/wctype.c: New file.
14111         * lib/wctype-impl.h: New file.
14112         * m4/wctype.m4: New file.
14113         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
14114         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
14115         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
14116         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
14117         * doc/posix-functions/wctype.texi: Mention the new module and the
14118         HP-UX 11.00 problem.
14119
14120 2011-02-06  Bruno Haible  <bruno@clisp.org>
14121
14122         wctype-h: Ensure wctype_t and wctrans_t are defined.
14123         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
14124         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
14125         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
14126         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
14127         HAVE_WCTRANS_T.
14128         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
14129
14130 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
14131
14132         flock: fix license typo
14133
14134         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
14135         omitted.
14136
14137 2011-02-08  Bruno Haible  <bruno@clisp.org>
14138
14139         Split large sed scripts, for HP-UX sed.
14140         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
14141         to avoid HP-UX limit of 99 commands, in the near future.
14142         * modules/stdlib (Makefile.am): Likewise.
14143         * modules/unistd (Makefile.am): Likewise.
14144         * modules/wchar (Makefile.am): Likewise.
14145         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
14146         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
14147         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
14148
14149 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
14150             Bruno Haible  <bruno@clisp.org>
14151
14152         stdlib: improve random_r modularization
14153         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
14154         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
14155         you also need the random_r module to get this material right.
14156         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
14157         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
14158         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
14159
14160 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
14161
14162         stdlib: don't depend on stdint
14163         * lib/stdlib.in.h: Don't include <stdint.h> merely because
14164         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
14165         be independent of whether stdint.h is needed.
14166         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
14167         here, instead of ...
14168         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
14169         struct random_data should be using the random_r module, not just
14170         the stdlib module (which wouldn't make sense: what package needs
14171         just struct random_data without also needing random_r?).
14172         * modules/stdlib (Depends-on): Remove stdint.
14173
14174         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
14175         See the thread rooted at
14176         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
14177         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
14178         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
14179         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
14180         __VMS)); previously it was always included (via fcntl--.h).
14181         (getloadavg): Do not use c_strtod.  Instead, approximate it by
14182         hand; this is good enough for load averages.  Also, do not use
14183         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
14184         flags directly if available and don't bother otherwise.  (Packages
14185         that need the extra reliability should use the modules that define
14186         these flags on older platforms that lack them.)
14187         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
14188         fcntl-safer.
14189
14190 2011-02-08  Jim Meyering  <meyering@redhat.com>
14191
14192         di-set.h, ino-map.h: add multiple-inclusion guard
14193         Technically, the guard is required only for ino-map.h, due to its
14194         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
14195         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
14196         * lib/ino-map.h: Likewise.
14197
14198 2011-02-06  Bruno Haible  <bruno@clisp.org>
14199
14200         iswblank: Ensure declaration on glibc systems.
14201         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
14202         * modules/iswblank (Dependencies): Add 'extensions'.
14203         * doc/posix-functions/iswblank.texi: Document the glibc problem.
14204
14205 2011-02-06  Bruno Haible  <bruno@clisp.org>
14206
14207         New module 'iswblank'.
14208         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
14209         * modules/iswblank: New file.
14210         * modules/wctype-h (Files): Remove lib/iswblank.c.
14211         (Makefile.am): Substitute GNULIB_ISWBLANK.
14212         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
14213         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
14214         (gl_WCTYPE_H_DEFAULTS): New macro.
14215         (gl_WCTYPE_H): Require it. Remove iswblank related code.
14216         * modules/iswblank-tests: New file.
14217         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
14218         * tests/test-wctype-h.c (main): Remove iswblank tests.
14219         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
14220         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
14221         of 'wctype-h'.
14222         * NEWS: Mention the change.
14223         * modules/mbchar (Depends-on): Add iswblank.
14224
14225 2011-02-08  Bruno Haible  <bruno@clisp.org>
14226
14227         di-set tests: Refactor.
14228         * tests/test-di-set.c: Include di-set.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/di-set-tests (Files): Add tests/macros.h.
14234
14235 2011-02-08  Bruno Haible  <bruno@clisp.org>
14236
14237         ino-map tests: Refactor.
14238         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
14239         unnecessary includes.
14240         (ASSERT): Remove macro.
14241         (main): Make C90 compliant by avoiding variable declaration after
14242         statement.
14243         * modules/ino-map-tests (Files): Add tests/macros.h.
14244
14245 2011-02-08  Jim Meyering  <meyering@redhat.com>
14246
14247         di-set: add "const" to a cast
14248         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
14249         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
14250
14251 2011-02-06  Bruno Haible  <bruno@clisp.org>
14252
14253         Rename module 'wctype' to 'wctype-h'.
14254         * modules/wctype-h: Renamed from modules/wctype.
14255         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
14256         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
14257         (Files, Depends-on, Makefile.am): Update.
14258         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
14259         (Files, Makefile.am): Update.
14260         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
14261         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
14262         * doc/posix-headers/wctype.texi: Update.
14263         * doc/posix-functions/iswalnum.texi: Update.
14264         * doc/posix-functions/iswalpha.texi: Update.
14265         * doc/posix-functions/iswblank.texi: Update.
14266         * doc/posix-functions/iswcntrl.texi: Update.
14267         * doc/posix-functions/iswdigit.texi: Update.
14268         * doc/posix-functions/iswgraph.texi: Update.
14269         * doc/posix-functions/iswlower.texi: Update.
14270         * doc/posix-functions/iswprint.texi: Update.
14271         * doc/posix-functions/iswpunct.texi: Update.
14272         * doc/posix-functions/iswspace.texi: Update.
14273         * doc/posix-functions/iswupper.texi: Update.
14274         * doc/posix-functions/iswxdigit.texi: Update.
14275         * doc/posix-functions/towlower.texi: Update.
14276         * doc/posix-functions/towupper.texi: Update.
14277         * NEWS: Mention the change.
14278         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
14279         * modules/mbchar (Dependencies): Likewise.
14280         * modules/mbswidth (Dependencies): Likewise.
14281         * modules/quotearg (Dependencies): Likewise.
14282         * modules/regex (Dependencies): Likewise.
14283         * modules/wcscasecmp (Dependencies): Likewise.
14284         * modules/wcsncasecmp (Dependencies): Likewise.
14285         * modules/wcwidth (Dependencies): Likewise.
14286
14287 2011-02-06  Bruno Haible  <bruno@clisp.org>
14288
14289         New module 'wcswidth'.
14290         * modules/wcswidth: New file.
14291         * lib/wchar.in.h (wcswidth): New declaration.
14292         * lib/wcswidth.c: New file.
14293         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
14294         * m4/wcswidth.m4: New file.
14295         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
14296         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
14297         REPLACE_WCSWIDTH.
14298         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
14299         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
14300         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
14301         * doc/posix-functions/wcswidth.texi: Mention the new module.
14302
14303 2011-02-06  Bruno Haible  <bruno@clisp.org>
14304
14305         New module 'wcstok'.
14306         * modules/wcstok: New file.
14307         * lib/wchar.in.h (wcstok): New declaration.
14308         * lib/wcstok.c: New file.
14309         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
14310         * m4/wcstok.m4: New file.
14311         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
14312         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
14313         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
14314         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
14315         * doc/posix-functions/wcstok.texi: Mention the new module.
14316
14317 2011-02-06  Bruno Haible  <bruno@clisp.org>
14318
14319         New module 'wcsstr'.
14320         * modules/wcsstr: New file.
14321         * lib/wchar.in.h (wcsstr): New declaration.
14322         * lib/wcsstr.c: New file.
14323         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
14324         * m4/wcsstr.m4: New file.
14325         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
14326         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
14327         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
14328         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
14329         * doc/posix-functions/wcsstr.texi: Mention the new module.
14330
14331 2011-02-06  Bruno Haible  <bruno@clisp.org>
14332
14333         New module 'wcspbrk'.
14334         * modules/wcspbrk: New file.
14335         * lib/wchar.in.h (wcspbrk): New declaration.
14336         * lib/wcspbrk.c: New file.
14337         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
14338         * m4/wcspbrk.m4: New file.
14339         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
14340         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
14341         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
14342         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
14343         * doc/posix-functions/wcspbrk.texi: Mention the new module.
14344
14345 2011-02-06  Bruno Haible  <bruno@clisp.org>
14346
14347         New module 'wcsspn'.
14348         * modules/wcsspn: New file.
14349         * lib/wchar.in.h (wcsspn): New declaration.
14350         * lib/wcsspn.c: New file.
14351         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
14352         * m4/wcsspn.m4: New file.
14353         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
14354         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
14355         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
14356         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
14357         * doc/posix-functions/wcsspn.texi: Mention the new module.
14358
14359 2011-02-06  Bruno Haible  <bruno@clisp.org>
14360
14361         New module 'wcscspn'.
14362         * modules/wcscspn: New file.
14363         * lib/wchar.in.h (wcscspn): New declaration.
14364         * lib/wcscspn.c: New file.
14365         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
14366         * m4/wcscspn.m4: New file.
14367         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
14368         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
14369         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
14370         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
14371         * doc/posix-functions/wcscspn.texi: Mention the new module.
14372
14373 2011-02-06  Bruno Haible  <bruno@clisp.org>
14374
14375         New module 'wcsrchr'.
14376         * modules/wcsrchr: New file.
14377         * lib/wchar.in.h (wcsrchr): New declaration.
14378         * lib/wcsrchr.c: New file.
14379         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
14380         * m4/wcsrchr.m4: New file.
14381         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
14382         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
14383         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
14384         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
14385         * doc/posix-functions/wcsrchr.texi: Mention the new module.
14386
14387 2011-02-06  Bruno Haible  <bruno@clisp.org>
14388
14389         New module 'wcschr'.
14390         * modules/wcschr: New file.
14391         * lib/wchar.in.h (wcschr): New declaration.
14392         * lib/wcschr.c: New file.
14393         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
14394         * m4/wcschr.m4: New file.
14395         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
14396         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
14397         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
14398         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
14399         * doc/posix-functions/wcschr.texi: Mention the new module.
14400
14401 2011-02-06  Bruno Haible  <bruno@clisp.org>
14402
14403         New module 'wcsdup'.
14404         * modules/wcsdup: New file.
14405         * lib/wchar.in.h (wcsdup): New declaration.
14406         * lib/wcsdup.c: New file.
14407         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
14408         * m4/wcsdup.m4: New file.
14409         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
14410         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
14411         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
14412         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
14413         * doc/posix-functions/wcsdup.texi: Mention the new module.
14414
14415 2011-02-06  Bruno Haible  <bruno@clisp.org>
14416
14417         New module 'wcsxfrm'.
14418         * modules/wcsxfrm: New file.
14419         * lib/wchar.in.h (wcsxfrm): New declaration.
14420         * lib/wcsxfrm.c: New file.
14421         * lib/wcsxfrm-impl.h: New file.
14422         * m4/wcsxfrm.m4: New file.
14423         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
14424         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
14425         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
14426         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
14427         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
14428
14429 2011-02-06  Bruno Haible  <bruno@clisp.org>
14430
14431         New module 'wcscoll'.
14432         * modules/wcscoll: New file.
14433         * lib/wchar.in.h (wcscoll): New declaration.
14434         * lib/wcscoll.c: New file.
14435         * lib/wcscoll-impl.h: New file.
14436         * m4/wcscoll.m4: New file.
14437         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
14438         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
14439         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
14440         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
14441         * doc/posix-functions/wcscoll.texi: Mention the new module.
14442
14443 2011-02-06  Bruno Haible  <bruno@clisp.org>
14444
14445         New module 'wcsncasecmp'.
14446         * modules/wcsncasecmp: New file.
14447         * lib/wchar.in.h (wcsncasecmp): New declaration.
14448         * lib/wcsncasecmp.c: New file.
14449         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
14450         * m4/wcsncasecmp.m4: New file.
14451         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
14452         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
14453         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
14454         HAVE_WCSNCASECMP.
14455         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
14456         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
14457
14458 2011-02-06  Bruno Haible  <bruno@clisp.org>
14459
14460         New module 'wcscasecmp'.
14461         * modules/wcscasecmp: New file.
14462         * lib/wchar.in.h (wcscasecmp): New declaration.
14463         * lib/wcscasecmp.c: New file.
14464         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
14465         * m4/wcscasecmp.m4: New file.
14466         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
14467         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
14468         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
14469         HAVE_WCSCASECMP.
14470         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
14471         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
14472
14473 2011-02-05  Bruno Haible  <bruno@clisp.org>
14474
14475         New module 'wcsncmp'.
14476         * modules/wcsncmp: New file.
14477         * lib/wchar.in.h (wcsncmp): New declaration.
14478         * lib/wcsncmp.c: New file.
14479         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
14480         * m4/wcsncmp.m4: New file.
14481         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
14482         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
14483         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
14484         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
14485         * doc/posix-functions/wcsncmp.texi: Mention the new module.
14486
14487 2011-02-05  Bruno Haible  <bruno@clisp.org>
14488
14489         New module 'wcscmp'.
14490         * modules/wcscmp: New file.
14491         * lib/wchar.in.h (wcscmp): New declaration.
14492         * lib/wcscmp.c: New file.
14493         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
14494         * m4/wcscmp.m4: New file.
14495         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
14496         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
14497         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
14498         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
14499         * doc/posix-functions/wcscmp.texi: Mention the new module.
14500
14501 2011-02-05  Bruno Haible  <bruno@clisp.org>
14502
14503         New module 'wcsncat'.
14504         * modules/wcsncat: New file.
14505         * lib/wchar.in.h (wcsncat): New declaration.
14506         * lib/wcsncat.c: New file.
14507         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
14508         * m4/wcsncat.m4: New file.
14509         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
14510         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
14511         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
14512         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
14513         * doc/posix-functions/wcsncat.texi: Mention the new module.
14514
14515 2011-02-05  Bruno Haible  <bruno@clisp.org>
14516
14517         New module 'wcscat'.
14518         * modules/wcscat: New file.
14519         * lib/wchar.in.h (wcscat): New declaration.
14520         * lib/wcscat.c: New file.
14521         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
14522         * m4/wcscat.m4: New file.
14523         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
14524         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
14525         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
14526         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
14527         * doc/posix-functions/wcscat.texi: Mention the new module.
14528
14529 2011-02-05  Bruno Haible  <bruno@clisp.org>
14530
14531         New module 'wcpncpy'.
14532         * modules/wcpncpy: New file.
14533         * lib/wchar.in.h (wcpncpy): New declaration.
14534         * lib/wcpncpy.c: New file.
14535         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
14536         * m4/wcpncpy.m4: New file.
14537         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
14538         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
14539         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
14540         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
14541         * doc/posix-functions/wcpncpy.texi: Mention the new module.
14542
14543 2011-02-05  Bruno Haible  <bruno@clisp.org>
14544
14545         New module 'wcsncpy'.
14546         * modules/wcsncpy: New file.
14547         * lib/wchar.in.h (wcsncpy): New declaration.
14548         * lib/wcsncpy.c: New file.
14549         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
14550         * m4/wcsncpy.m4: New file.
14551         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
14552         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
14553         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
14554         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
14555         * doc/posix-functions/wcsncpy.texi: Mention the new module.
14556
14557 2011-02-05  Bruno Haible  <bruno@clisp.org>
14558
14559         New module 'wcpcpy'.
14560         * modules/wcpcpy: New file.
14561         * lib/wchar.in.h (wcpcpy): New declaration.
14562         * lib/wcpcpy.c: New file.
14563         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
14564         * m4/wcpcpy.m4: New file.
14565         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
14566         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
14567         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
14568         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
14569         * doc/posix-functions/wcpcpy.texi: Mention the new module.
14570
14571 2011-02-05  Bruno Haible  <bruno@clisp.org>
14572
14573         New module 'wcscpy'.
14574         * modules/wcscpy: New file.
14575         * lib/wchar.in.h (wcscpy): New declaration.
14576         * lib/wcscpy.c: New file.
14577         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
14578         * m4/wcscpy.m4: New file.
14579         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
14580         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
14581         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
14582         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
14583         * doc/posix-functions/wcscpy.texi: Mention the new module.
14584
14585 2011-02-05  Bruno Haible  <bruno@clisp.org>
14586
14587         New module 'wcsnlen'.
14588         * modules/wcsnlen: New file.
14589         * lib/wchar.in.h (wcsnlen): New declaration.
14590         * lib/wcsnlen.c: New file.
14591         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
14592         * m4/wcsnlen.m4: New file.
14593         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
14594         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
14595         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
14596         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
14597         * doc/posix-functions/wcsnlen.texi: Mention the new module.
14598
14599 2011-02-05  Bruno Haible  <bruno@clisp.org>
14600
14601         New module 'wcslen'.
14602         * modules/wcslen: New file.
14603         * lib/wchar.in.h (wcslen): New declaration.
14604         * lib/wcslen.c: New file.
14605         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
14606         * m4/wcslen.m4: New file.
14607         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
14608         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
14609         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
14610         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
14611         * doc/posix-functions/wcslen.texi: Mention the new module.
14612
14613 2011-02-05  Bruno Haible  <bruno@clisp.org>
14614
14615         New module 'wmemset'.
14616         * modules/wmemset: New file.
14617         * lib/wchar.in.h (wmemset): New declaration.
14618         * lib/wmemset.c: New file.
14619         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
14620         * m4/wmemset.m4: New file.
14621         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
14622         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
14623         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
14624         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
14625         * doc/posix-functions/wmemset.texi: Mention the new module.
14626
14627 2011-02-05  Bruno Haible  <bruno@clisp.org>
14628
14629         New module 'wmemmove'.
14630         * modules/wmemmove: New file.
14631         * lib/wchar.in.h (wmemmove): New declaration.
14632         * lib/wmemmove.c: New file.
14633         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
14634         * m4/wmemmove.m4: New file.
14635         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
14636         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
14637         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
14638         HAVE_WMEMMOVE.
14639         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
14640         * doc/posix-functions/wmemmove.texi: Mention the new module.
14641
14642 2011-02-05  Bruno Haible  <bruno@clisp.org>
14643
14644         New module 'wmemcpy'.
14645         * modules/wmemcpy: New file.
14646         * lib/wchar.in.h (wmemcpy): New declaration.
14647         * lib/wmemcpy.c: New file.
14648         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
14649         * m4/wmemcpy.m4: New file.
14650         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
14651         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
14652         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
14653         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
14654         * doc/posix-functions/wmemcpy.texi: Mention the new module.
14655
14656 2011-02-05  Bruno Haible  <bruno@clisp.org>
14657
14658         New module 'wmemcmp'.
14659         * modules/wmemcmp: New file.
14660         * lib/wchar.in.h (wmemcmp): New declaration.
14661         * lib/wmemcmp.c: New file.
14662         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
14663         * m4/wmemcmp.m4: New file.
14664         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
14665         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
14666         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
14667         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
14668         * doc/posix-functions/wmemcmp.texi: Mention the new module.
14669
14670 2011-02-07  Jim Meyering  <meyering@redhat.com>
14671
14672         di-set, ino-map: new modules, from coreutils
14673         * lib/di-set.c: New file.
14674         * lib/di-set.h: Likewise.
14675         * lib/ino-map.c: Likewise.
14676         * lib/ino-map.h: Likewise.
14677         * modules/di-set: Likewise.
14678         * modules/di-set-tests: Likewise.
14679         * modules/ino-map: Likewise.
14680         * modules/ino-map-tests: Likewise.
14681         * tests/test-di-set.c: Likewise.
14682         * tests/test-ino-map.c: Likewise.
14683
14684 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
14685
14686         getloadavg: merge minor changes from Emacs
14687
14688         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
14689         (getloadavg): Use memset, not bzero.
14690
14691         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
14692         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
14693         clash (bug#86).
14694
14695 2010-11-14  Bruno Haible  <bruno@clisp.org>
14696
14697         Allow multiple gnulib generated replacements to coexist.
14698         * lib/getopt.in.h (struct option): Avoid identical redefinition.
14699         * lib/inttypes.in.h (imaxdiv_t): Likewise.
14700         * lib/langinfo.in.h (nl_item): Likewise.
14701         * lib/math.in.h (_NaN, NAN): Likewise.
14702         * lib/netdb.in.h (struct addrinfo): Likewise.
14703         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
14704         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
14705         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
14706         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
14707         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
14708         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
14709         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
14710         pthread_mutexattr_init, pthread_mutexattr_settype,
14711         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
14712         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
14713         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
14714         pthread_spin_trylock, pthread_spin_unlock): Likewise.
14715         * lib/sched.in.h (struct sched_param): Likewise.
14716         * lib/se-selinux.in.h (security_class_t, security_context_t,
14717         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
14718         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
14719         lsetfilecon, fsetfilecon, security_check_context,
14720         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
14721         Likewise.
14722         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
14723         Likewise.
14724         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
14725         _gl_function_taking_int_returning_void_t, union sigval,
14726         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
14727         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
14728         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
14729         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
14730         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
14731         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
14732         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
14733         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
14734         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
14735         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
14736         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
14737         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
14738         socklen_t, rpl_fd_isset): Likewise.
14739         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
14740         * lib/sys_time.in.h (struct timeval): Likewise.
14741         * lib/sys_times.in.h (struct tms): Likewise.
14742         * lib/sys_utsname.in.h (struct utsname):
14743         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
14744         * lib/unistd.in.h (getpagesize): Likewise.
14745         * lib/wchar.in.h (mbstate_t): Likewise.
14746         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
14747         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
14748         towlower, towupper): Likewise.
14749         Reported by Sam Steingold <sds@gnu.org>.
14750
14751 2011-02-05  Eric Blake  <eblake@redhat.com>
14752
14753         unsetenv: work around Haiku issues
14754         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
14755         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
14756
14757 2010-12-30  Bruce Korb  <bkorb@gnu.org>
14758
14759         libposix: avoid calling error() within libposix
14760         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
14761         is defined.
14762
14763 2011-02-05  Eric Blake  <eblake@redhat.com>
14764
14765         strerror_r-posix: port to cygwin
14766         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
14767         implementation.
14768         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
14769         * tests/test-strerror_r.c (main): Fix test.
14770         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
14771         issue.
14772
14773 2011-02-05  Bruno Haible  <bruno@clisp.org>
14774
14775         New module 'wmemchr'.
14776         * modules/wmemchr: New file.
14777         * lib/wchar.in.h (wmemchr): New declaration.
14778         * lib/wmemchr.c: New file.
14779         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
14780         * m4/wmemchr.m4: New file.
14781         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
14782         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
14783         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
14784         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
14785         * doc/posix-functions/wmemchr.texi: Mention the new module.
14786
14787 2011-02-04  Eric Blake  <eblake@redhat.com>
14788
14789         fdopendir: detect FreeBSD bug
14790         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
14791         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
14792
14793 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
14794
14795         stdbool: do not define HAVE_STDBOOL_H
14796         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
14797         AC_HEADER_STDBOOL.  All uses changed.  Do not define
14798         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
14799         imported from the latest Autoconf git.  It was motivated by Emacs,
14800         which uses gnulib but does not need HAVE_STDBOOL_H.
14801
14802 2011-02-04  Bruno Haible  <bruno@clisp.org>
14803
14804         wcsnrtombs: Prepare for new module wwcsnrtombs.
14805         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
14806         * lib/wcsnrtombs.c: Include it.
14807         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
14808
14809         wcsrtombs: Prepare for new module wwcsrtombs.
14810         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
14811         * lib/wcsrtombs.c: Include it.
14812         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
14813
14814         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
14815         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
14816         * lib/mbsnrtowcs.c: Include it.
14817         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
14818
14819         mbsrtowcs: Prepare for new module mbsrtowwcs.
14820         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
14821         * lib/mbsrtowcs.c: Include it.
14822         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
14823
14824 2011-02-04  Bruno Haible  <bruno@clisp.org>
14825
14826         vasnprintf: Reduce use of malloc for small format strings.
14827         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
14828         (arguments): Add room for the first 7 arguments.
14829         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
14830         (char_directives, u8_directives, u16_directives, u32_directives): Add
14831         room for the first 7 directives.
14832         * lib/printf-parse.c: Include <string.h>.
14833         (PRINTF_PARSE): Change memory handling code so that it uses the first
14834         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
14835         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
14836         Reported by Pádraig Brady <P@draigbrady.com>.
14837
14838 2011-01-31  Eric Blake  <eblake@redhat.com>
14839
14840         dup2: work around Haiku bug
14841         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
14842         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
14843         * doc/posix-functions/dup2.texi (dup2): Document the bug.
14844         * tests/test-dup2.c (main): Enhance test.
14845
14846 2011-01-31  Simon Josefsson  <simon@josefsson.org>
14847
14848         doc: off_t is not available in eglibc 2.11.2 stdio.h.
14849         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
14850         declared by eglibc 2.11.2.
14851         * lib/stdio.in.h: Likewise.
14852
14853 2011-01-31  Eric Blake  <eblake@redhat.com>
14854
14855         ignore-value: add missing test dependency
14856         * tests/test-ignore-value.c: Revert previous change; stdio.h
14857         provides off_t.
14858         * modules/ignore-value-tests (Depends-on): Add missing dependency.
14859
14860 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
14861
14862         mktime: clarify long_int width checking
14863         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
14864         the top level, to make it clearer that the assumption about
14865         long_int width is being checked.  See
14866         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
14867
14868 2011-01-30  Simon Josefsson  <simon@josefsson.org>
14869
14870         ignore-value: Fix self-test.
14871         * tests/test-ignore-value.c: Include sys/types.h for off_t.
14872
14873 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
14874
14875         TYPE_MAXIMUM: avoid theoretically undefined behavior
14876         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
14877         negative number, which the C Standard says has undefined behavior.
14878         In practice this is not a problem, but might as well do it by the book.
14879         Reported by Rich Felker and Eric Blake; see
14880         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
14881         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
14882         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
14883         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
14884         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
14885         * m4/stdint.m4 (gl_STDINT_H): Likewise.
14886         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
14887
14888         mktime: #undef mktime before #defining it
14889         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
14890
14891         mktime: systematically normalize tm_isdst comparisons
14892         * lib/mktime.c (isdst_differ): New function.
14893         (__mktime_internal): Use it systematically for all isdst comparisons.
14894         This completes the fix for libc BZ #6723, and removes the need for
14895         normalizing tm_isdst.  See
14896         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
14897         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
14898
14899         mktime: fix some integer overflow issues and sidestep the rest
14900
14901         This was prompted by a bug report by Benjamin Lindner for MinGW
14902         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
14903         His bug is due to signed integer overflow (0 - INT_MIN), and I
14904         I scanned through mktime.c looking for other integer overflow
14905         problems, fixing all the bugs I found.
14906
14907         Although the C Standard says the resulting code is still not safe
14908         in the presence of integer overflow, in practice it should be good
14909         enough for all real-world two's-complement implementations, except
14910         for debugging environments that deliberately trap on integer
14911         overflow (e.g., gcc -ftrapv).
14912
14913         * lib/mktime.c (WRAPV): New macro.
14914         (SHR): Also check that long_int and time_t shift right in the
14915         usual way, before using the fast-but-unportable method.
14916         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
14917         used.  The code already assumed two's complement, so there's
14918         no need to test for alternatives.  All uses removed.
14919         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
14920         the C standard.  Problem reported by Rich Felker in
14921         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
14922         (twos_complement_arithmetic): Also check long_int and time_t.
14923         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
14924         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
14925         (__mktime_internal): Avoid integer overflow with unary subtraction
14926         in two instances where -1 - X is an adequate replacement for -X,
14927         since the calculations are approximate.
14928
14929 2011-01-29  Eric Blake  <eblake@redhat.com>
14930
14931         mktime: avoid infinite loop
14932         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
14933         type; behavior is still undefined but portable to all known targets.
14934         Reported by Rich Felker.
14935
14936 2011-01-29  Simon Josefsson  <simon@josefsson.org>
14937
14938         rename, unlink, same-inode: Relicense.
14939         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
14940         * modules/unlink (License): Likewise.
14941         * modules/same-inode (License): Likewise.
14942
14943 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
14944
14945         mktime: avoid problems on NetBSD 5 / i386
14946         * lib/mktime.c (long_int): New type.  This works around a problem
14947         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
14948         but time_t is 64 bits, and where I expect the existing code is
14949         wrong in some cases.
14950         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
14951         (ydhms_diff): Bring back the compile-time check for wide-enough
14952         year and yday.
14953
14954         mktime: fix misspelling in comment
14955         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
14956         This merges all recent glibc changes of importance.
14957
14958 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14959
14960         move-if-change: cope with concurrent mv of identical file.
14961         * build-aux/move-if-change (CMPPROG): Accept environment
14962         variable as an override for `cmp'.
14963         (usage): Document CMPPROG.
14964         Adjust comparison to drop stdout.  Cope with failure of mv if
14965         the target file exists and is identical to the source, for
14966         parallel builds.
14967         Report from H.J. Lu against binutils in PR binutils/12283.
14968
14969 2011-01-28  Bruce Korb  <bkorb@gnu.org>
14970
14971         * users.txt: Mention sharutils.
14972
14973 2011-01-28  Simon Josefsson  <simon@josefsson.org>
14974
14975         * users.txt: Mention OATH Toolkit.
14976
14977 2011-01-27  Bruno Haible  <bruno@clisp.org>
14978
14979         Prepare for supporting FreeBSD 10.
14980         * build-aux/config.libpath: Remove handling of freebsd1*.
14981
14982 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
14983
14984         Prepare for supporting FreeBSD 10.
14985         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
14986         match FreeBSD 10.0.
14987
14988 2011-01-27  Bruno Haible  <bruno@clisp.org>
14989
14990         vma-iter, get-rusage-as: Add OpenBSD support.
14991         * modules/vma-iter (configure.ac): Test for mquery.
14992         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
14993         * lib/vma-iter.c: Include <sys/mman.h>.
14994         (vma_iterate): Add an implementation based on mquery().
14995         * lib/resource-ext.h (get_rusage_as): Update comments.
14996         * lib/get-rusage-as.c: Likewise.
14997         * lib/get-rusage-data.c: Likewise.
14998
14999 2011-01-26  Karl Berry  <karl@gnu.org>
15000
15001         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
15002         variables to make it easier to override the makeinfo program used.
15003
15004 2011-01-26  Eric Blake  <eblake@redhat.com>
15005
15006         fcntl: work around Haiku F_DUPFD bugs
15007         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
15008         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
15009         cloexec bit on duplication.
15010         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
15011
15012 2011-01-26  Bruno Haible  <bruno@clisp.org>
15013
15014         Enable memory leak tests on AIX.
15015         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
15016         * tests/test-fprintf-posix3.c (main): Likewise.
15017
15018 2011-01-26  Bruno Haible  <bruno@clisp.org>
15019
15020         Tests for module 'get-rusage-data'.
15021         * modules/get-rusage-data-tests: New file.
15022         * tests/test-get-rusage-data.c: New file.
15023
15024         New module 'get-rusage-data'.
15025         * lib/resource-ext.h (get_rusage_data): New declaration.
15026         * lib/get-rusage-data.c: New file.
15027         * modules/get-rusage-data: New file.
15028
15029 2011-01-25  Bruno Haible  <bruno@clisp.org>
15030
15031         get-rusage-as: Allow for easier testing.
15032         * lib/resource-ext.h (get_rusage_as): Add comment.
15033         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
15034         (main): New function for interactive testing.
15035
15036 2011-01-25  Bruno Haible  <bruno@clisp.org>
15037
15038         vma-iter: Treat Haiku like BeOS.
15039         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
15040         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
15041
15042 2011-01-25  Eric Blake  <eblake@redhat.com>
15043
15044         c-stack: fix regression on cygwin when libsigsegv is present
15045         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
15046
15047 2011-01-24  Bruno Haible  <bruno@clisp.org>
15048
15049         vma-iter: Avoid empty intervals.
15050         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
15051         on an empty interval.
15052
15053 2011-01-24  Jim Meyering  <meyering@redhat.com>
15054
15055         u64: remove unnecessary #include
15056         * lib/u64.h: Don't include <stddef.h>.  It was not used.
15057
15058 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
15059
15060         Allow the user to avoid the HAVE_RAW_DECL_* macros.
15061         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
15062
15063 2011-01-23  Bruno Haible  <bruno@clisp.org>
15064
15065         New module 'vma-iter'.
15066         * lib/vma-iter.h: New file.
15067         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
15068         * modules/vma-iter: New file.
15069         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
15070         for get_rusage_as_via_iterator.
15071         (vma_iterate_callback): New function.
15072         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
15073         * modules/get-rusage-as (Depends-on): Add vma-iter.
15074
15075 2011-01-23  Bruno Haible  <bruno@clisp.org>
15076
15077         uninorm: Tweak includes.
15078         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
15079         Reported by Jim Meyering.
15080
15081 2011-01-23  Bruno Haible  <bruno@clisp.org>
15082
15083         get-rusage-as: Improve on NetBSD.
15084         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
15085         /proc, like on FreeBSD.
15086
15087 2011-01-23  Jim Meyering  <meyering@redhat.com>
15088
15089         xreadlink.h: remove unnecessary #include
15090         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
15091
15092         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
15093         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
15094
15095 2011-01-23  Bruno Haible  <bruno@clisp.org>
15096
15097         get-rusage-as: Fix bug.
15098         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
15099         original limit when aborting the first loop.
15100
15101 2011-01-23  Bruno Haible  <bruno@clisp.org>
15102
15103         wctype: Ensure valid C syntax.
15104         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
15105         unconditionally, instead of gl_NEXT_HEADERS conditionally.
15106
15107 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
15108
15109         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
15110         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
15111         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
15112         as they are needed only for configure's test case.
15113         This removes two unnecessary symbols from config.h.
15114
15115         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
15116         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
15117         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
15118         AC_CHECK_HEADERS_ONCE on a header that we also invoke
15119         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
15120         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
15121         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
15122         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
15123         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
15124         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
15125         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
15126         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
15127         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
15128         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
15129         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
15130         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
15131         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
15132         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
15133
15134 2011-01-21  Eric Blake  <eblake@redhat.com>
15135
15136         maintainer-makefile: work with older git for submodule check
15137         * top/maint.mk (public-submodule-commit): Rewrite to avoid
15138         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
15139         Reported by Matthias Bolte.
15140
15141         bootstrap: minor portability fixes
15142         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
15143         (usage): Omit leading capital and trailing . on help phrases, per
15144         GNU Coding Standards.
15145         (check_versions, top level): Prefix messages with script name.
15146
15147 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
15148
15149         bootstrap: support --no-git option
15150         * build-aux/bootstrap: Add --no-git option, to be used when
15151         --gnulib-srcdir points to the exact desired checkout.
15152
15153 2011-01-21  Eric Blake  <eblake@redhat.com>
15154
15155         strerror_r-posix: work with glibc 2.13
15156         * lib/strerror_r.c (strerror_r): Fix return type.
15157
15158 2011-01-21  Pádraig Brady  <P@draigBrady.com>
15159             Bruno Haible  <bruno@clisp.org>
15160
15161         uN_strstr: New unit tests.
15162         * modules/unistr/u8-strstr-tests: New file.
15163         * modules/unistr/u16-strstr-tests: New file.
15164         * modules/unistr/u32-strstr-tests: New file.
15165         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
15166         * tests/unistr/test-u8-strstr.c: New file.
15167         * tests/unistr/test-u16-strstr.c: New file.
15168         * tests/unistr/test-u32-strstr.c: New file.
15169
15170 2011-01-21  Pádraig Brady  <P@draigBrady.com>
15171             Bruno Haible  <bruno@clisp.org>
15172
15173         Make uN_strstr functions O(n) worst-case.
15174         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
15175         16-bit and 32-bit unit cases, use the unibyte algorithm from
15176         lib/mbsstr.c.
15177         * lib/unistr/u8-strstr.c: Include <string.h>.
15178         (UNIT_IS_UINT8_T): New macro.
15179         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
15180         (U_STRLEN, U_STRNLEN): New macros.
15181         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
15182         (U_STRLEN, U_STRNLEN): New macros.
15183         * modules/unistr/u8-strstr (Depends-on): Add strstr.
15184         (configure.ac): Update required libunistring version.
15185         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
15186         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
15187         malloca.
15188         (configure.ac): Update required libunistring version.
15189         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
15190         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
15191         malloca.
15192         (configure.ac): Update required libunistring version.
15193
15194 2011-01-21  Pádraig Brady  <P@draigBrady.com>
15195             Bruno Haible  <bruno@clisp.org>
15196
15197         Prepare for faster uN_strstr functions.
15198         * lib/str-kmp.h: Support definable UNITs.
15199         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
15200         needle_len argument.
15201         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
15202         * lib/mbscasestr.c (mbscasestr): Likewise.
15203
15204 2011-01-21  Pádraig Brady <P@draigBrady.com>
15205
15206         malloca-tests: make faster by unsetting MALLOC_PERTURB_
15207         * tests/test-malloca.c (main): Unset the environment variable
15208         to greatly speed up the test.
15209         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
15210         * modules/malloca-tests: Depend on unsetenv.
15211
15212 2011-01-21  Pádraig Brady <P@draigBrady.com>
15213
15214         ignore-value: remove stdint dependency
15215         * lib/ignore-value.h: Remove <stdint.h>
15216         * modules/ignore-value: Remove stdint dependency.
15217
15218 2011-01-21  Jim Meyering  <meyering@redhat.com>
15219
15220         maint.mk: adjust variable name to be consistent with other gl_ vars
15221         * top/maint.mk (gl_public_submodule_commit): Rename the variable
15222         to be lower case.
15223
15224 2011-01-20  Jim Meyering  <meyering@redhat.com>
15225
15226         maint.mk: make "check" depend on public-submodule-commit by default
15227         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
15228
15229 2011-01-20  Bruno Haible  <bruno@clisp.org>
15230
15231         mbfile, mbiter: Complete change from 2008-12-21.
15232         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
15233         * m4/mbiter.m4 (gl_MBITER): Likewise.
15234
15235 2011-01-20  Jim Meyering  <meyering@redhat.com>
15236
15237         init.sh: insert space between each function name and "()"
15238         * tests/init.sh: Make it a little easier to see that a function's
15239         name is "warn_", and not "warn" when looking at the first part of
15240         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
15241
15242 2011-01-20  Jim Meyering  <meyering@redhat.com>
15243
15244         mountlist: clean up code formatting
15245         * lib/mountlist.c (read_file_system_list): Split a long line,
15246         correct bracing style, use NULL in place of "(struct statfs *)0",
15247         don't parenthesize return value, add spaces around "=" and after
15248         ";-in-for-stmt".
15249
15250 2011-01-14  Markus Duft <mduft@gentoo.org>
15251
15252         mountlist: add support for Interix
15253         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
15254         Apply statvfs to all entries of /dev/fs.
15255         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
15256         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
15257
15258 2011-01-20  Jim Meyering  <meyering@redhat.com>
15259
15260         maint.mk: improve the public-submodule-commit rule
15261         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
15262         to suppress printing of its commands... unless V=1.
15263         Add git submodule's --quiet option to suppress printing of e.g.,
15264         "Entering gnulib" output.
15265         "cd" into $(srcdir) before running git submodule.
15266
15267 2011-01-20  Bruno Haible  <bruno@clisp.org>
15268
15269         include_next: Fix bug introduced on 2011-01-18.
15270         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
15271         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
15272         ac_cv_header_... variable if the second argument is not 'check'.
15273         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
15274         gl_NEXT_HEADERS_INTERNAL.
15275
15276 2011-01-20  Bruno Haible  <bruno@clisp.org>
15277
15278         Allow the user to avoid the GNULIB_TEST_* macros.
15279         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
15280         Suggested by Paul Eggert.
15281
15282 2011-01-14  Jim Meyering  <meyering@redhat.com>
15283
15284         bootstrap: avoid failure when there is no .gitmodules file
15285         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
15286         has been assigned to, even when its value is the empty string.
15287         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
15288         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
15289         Reported by John W. Eaton <jwe@gnu.org>.
15290
15291 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
15292
15293         assume <ctype.h>, ..., <time.h> exist
15294         For years gnulib has been assuming the existence of the headers
15295         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
15296         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
15297         them, since they don't appear to be needed.
15298         * README (Portability guidelines): Document this.
15299         * lib/flock.c: Assume <fcntl.h> exists.
15300         * lib/regex_internal.h: Assume <locale.h> exists.
15301         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
15302         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
15303         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
15304         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
15305         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
15306         * m4/regex.m4 (gl_REGEX): Likewise.
15307         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
15308         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
15309         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
15310         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
15311         * tests/test-argp.c: Likewise.
15312         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
15313
15314         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
15315         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
15316         AA_APPLE_UNIVERSAL_BUILD.  See
15317         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
15318         * NEWS: Document this.
15319
15320 2011-01-19  Eric Blake  <eblake@redhat.com>
15321
15322         c-stack: assume stack overflow if SA_SIGINFO unsupported
15323         * lib/c-stack.c (SIGACTION_WORKS): Rename...
15324         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
15325         sigaction will work.
15326         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
15327         behavior match Linux.
15328         * tests/test-c-stack.c (main): Prefer NULL for pointers.
15329
15330         stdbool-tests: accomodate Haiku
15331         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
15332
15333         binary-io: fix O_TEXT on Haiku
15334         * modules/binary-io (Depends-on): Add fcntl-h.
15335         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
15336         than blindly undefining O_TEXT.
15337         Reported by Scott McCreary.
15338
15339 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
15340
15341         include_next: do not check for standard headers like stddef.h
15342
15343         I found this problem when modifying Emacs to use gnulib.
15344         I noticed that it added HAVE_STDDEF_H to config.h, even though
15345         gnulib always assumes <stddef.h> exists as per README and this
15346         symbol is unnecessary.
15347         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
15348         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
15349         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
15350         faster for headers like stddef.h that are known to exist.
15351         (gl_CHECK_NEXT_HEADERS): Use it.
15352         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
15353         rather than gl_CHECK_NEXT_HEADERS.
15354         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
15355         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
15356
15357 2011-01-18  Eric Blake  <eblake@redhat.com>
15358
15359         ansi-c++-opt: skip C++ dependency style if C++ is unused
15360         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
15361         tests when we know C++ compilation is not desired.
15362         Reported by Scott McCreary.
15363
15364 2011-01-18  Bruno Haible  <bruno@clisp.org>
15365
15366         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
15367         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
15368         (main): Perform test also when getrlimit and setrlimit don't exist or
15369         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
15370         limiting the address space size using setrlimit, compare the address
15371         space size before and after the the test.
15372         * tests/test-dprintf-posix2.c: Likewise.
15373         * tests/test-fprintf-posix3.sh: Update skip messages.
15374         * tests/test-dprintf-posix2.sh: Likewise.
15375         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
15376         * modules/dprintf-posix-tests (Depends-on): Likewise.
15377         Reported by Bruce Korb <bkorb@gnu.org> and
15378         Gary V. Vaughan <gary@gnu.org>.
15379
15380 2011-01-18  Bruno Haible  <bruno@clisp.org>
15381
15382         get-rusage-as: Improvement for Cygwin.
15383         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
15384         areas that are merely reserved.
15385
15386 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
15387
15388         strftime: remove dependencies on multibyte modules
15389
15390         strftime depended on mbrlen, mbsinit, and wchar, but these modules
15391         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
15392         only if __osf__ is defined, and I suspect OSF doesn't need these
15393         other modules.  If my guess is wrong, we'll need to come up with a
15394         variant of strftime that doesn't need the multibyte modules.
15395
15396         I discovered this problem when attempting modify Emacs to use the
15397         strftime module.  With the previous gnulib, this caused Emacs to
15398         need 31 new files, ranging from lib/config.charset to
15399         m4/wint_t.m4.  This was overkill and I expect would be offputting
15400         to the Emacs maintainers.  After this change, only 6 new files are
15401         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
15402         stdbool.m4, and tm_gmtoff.m4.
15403
15404         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
15405         Suggested by Bruno Haible in
15406         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
15407         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
15408         and do not check for wchar.h.
15409         * modules/strftime (Files): Remove m4/mbstate_t.m4.
15410         (Depends-on): Remove mbrlen, mbsinit, wchar.
15411
15412 2011-01-18  Bruno Haible  <bruno@clisp.org>
15413
15414         Tests for module 'get-rusage-as'.
15415         * modules/get-rusage-as-tests: New file.
15416         * tests/test-get-rusage-as.c: New file.
15417
15418         New module 'get-rusage-as'.
15419         * modules/get-rusage-as: New file.
15420         * lib/resource-ext.h: New file.
15421         * lib/get-rusage-as.c: New file.
15422
15423 2011-01-17  Eric Blake  <eblake@redhat.com>
15424
15425         sigaction: relax license from LGPLv3+ to LGPLv2+
15426         * modules/sigaction (License): Relax to LGPLv2+.
15427
15428 2011-01-14  Bruno Haible  <bruno@clisp.org>
15429
15430         filemode: Make function declarations usable in C++ mode.
15431         * lib/filemode.h: Enclose function declarations in extern "C" block.
15432         Reported by John W. Eaton <jwe@gnu.org>.
15433
15434 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
15435
15436         save-cwd: no longer include "xgetcwd.h"
15437         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
15438         This avoids a compilation failure in projects that use save-cwd
15439         without also using the xgetcwd module.
15440
15441 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
15442
15443         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
15444         This is so that a program like Emacs, which needs only dtoastr,
15445         does not have to bother with distributing and compiling ftoastr
15446         and ldtoastr.
15447         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
15448         * modules/dtoastr, modules/ldtoastr: New files.
15449         * modules/ftoastr: Now works just for 'float'.
15450         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
15451         (Makefile.am): Remove ftoastr.h (not needed and no effect),
15452         dtoastr.c, ldtoastr.c.
15453
15454 2011-01-11  Jim Meyering  <meyering@redhat.com>
15455
15456         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
15457         There is no need to work around the lack of the fchdir function,
15458         since gnulib can now provide a replacement when required.
15459         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
15460         * modules/save-cwd (Depends-on): Add fchdir.
15461
15462 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
15463
15464         openat, save-cwd: avoid xmalloc
15465
15466         This removes a direct (but undocumented) dependency of openat on
15467         xalloc, along with an indirect dependency via save-cwd.  It also
15468         removes a dependency of save-cwd on xgetcwd, and thereby
15469         indirectly on xalloc.  This change causes the openat substitute
15470         to fall back on save_cwd when memory is tight, and for save_cwd to
15471         fail instead of dying when memory is tight, but that's good enough.
15472         Problem and initial idea for fix reported by Bastien Roucaries in
15473         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
15474
15475         * lib/openat-proc.c: Include stdlib.h (for malloc), not
15476         xalloc.h (for xmalloc).
15477         (openat_proc_name): Use malloc, not xmalloc.
15478         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
15479         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
15480
15481         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
15482         This avoids heap allocation for file names whose lengths are in
15483         the range 512..1023, with the upper bound increasing to at most
15484         4031 depending on the platform's PATH_MAX.  (We do not want
15485         pathmax.h here as it might supply a non-constant PATH_MAX.)
15486         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
15487         Perhaps they should be moved to malloca.h?
15488         (OPENAT_BUFFER_SIZE): Use them.
15489
15490 2011-01-10  Bruno Haible  <bruno@clisp.org>
15491
15492         doc: Update users.txt.
15493         * users.txt: Add recutils.
15494
15495 2011-01-09  Karl Berry  <karl@gnu.org>
15496
15497         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
15498
15499         * doc/configmake.texi: New file.
15500         * doc/gnulib.texi: Include it.
15501         * modules/configmake: Move documentation from here.
15502
15503 2011-01-09  Bruno Haible  <bruno@clisp.org>
15504
15505         Update to Unicode 6.0.0.
15506         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
15507         (get_lbp): Update for Unicode 6.0.0.
15508         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
15509         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
15510         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
15511         U+11001, U+11038..U+11046. Remove U+06DE.
15512         (uc_width): Fix bounds of planes.
15513         * tests/uniwidth/test-uc_width2.sh: Same updates as in
15514         lib/uniwidth/width.c.
15515         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
15516         trailing whitespace removed.
15517         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
15518         without comments, but with the original copyright notice.
15519         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
15520         * lib/unicase/ignorable.h: Likewise.
15521         * lib/unicase/tocasefold.h: Likewise.
15522         * lib/unicase/tolower.h: Likewise.
15523         * lib/unicase/totitle.h: Likewise.
15524         * lib/unicase/toupper.h: Likewise.
15525         * lib/unictype/bidi_of.h: Likewise.
15526         * lib/unictype/blocks.h: Likewise.
15527         * lib/unictype/categ_C.h: Likewise.
15528         * lib/unictype/categ_Cn.h: Likewise.
15529         * lib/unictype/categ_L.h: Likewise.
15530         * lib/unictype/categ_Ll.h: Likewise.
15531         * lib/unictype/categ_Lm.h: Likewise.
15532         * lib/unictype/categ_Lo.h: Likewise.
15533         * lib/unictype/categ_Lu.h: Likewise.
15534         * lib/unictype/categ_M.h: Likewise.
15535         * lib/unictype/categ_Mc.h: Likewise.
15536         * lib/unictype/categ_Me.h: Likewise.
15537         * lib/unictype/categ_Mn.h: Likewise.
15538         * lib/unictype/categ_N.h: Likewise.
15539         * lib/unictype/categ_Nd.h: Likewise.
15540         * lib/unictype/categ_No.h: Likewise.
15541         * lib/unictype/categ_P.h: Likewise.
15542         * lib/unictype/categ_Po.h: Likewise.
15543         * lib/unictype/categ_S.h: Likewise.
15544         * lib/unictype/categ_Sc.h: Likewise.
15545         * lib/unictype/categ_Sk.h: Likewise.
15546         * lib/unictype/categ_Sm.h: Likewise.
15547         * lib/unictype/categ_So.h: Likewise.
15548         * lib/unictype/categ_of.h: Likewise.
15549         * lib/unictype/combining.h: Likewise.
15550         * lib/unictype/ctype_alnum.h: Likewise.
15551         * lib/unictype/ctype_alpha.h: Likewise.
15552         * lib/unictype/ctype_graph.h: Likewise.
15553         * lib/unictype/ctype_lower.h: Likewise.
15554         * lib/unictype/ctype_print.h: Likewise.
15555         * lib/unictype/ctype_punct.h: Likewise.
15556         * lib/unictype/ctype_upper.h: Likewise.
15557         * lib/unictype/decdigit.h: Likewise.
15558         * lib/unictype/digit.h: Likewise.
15559         * lib/unictype/numeric.h: Likewise.
15560         * lib/unictype/pr_alphabetic.h: Likewise.
15561         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
15562         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
15563         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
15564         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
15565         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
15566         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
15567         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
15568         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
15569         * lib/unictype/pr_case_ignorable.h: Likewise.
15570         * lib/unictype/pr_cased.h: Likewise.
15571         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
15572         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
15573         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
15574         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
15575         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
15576         * lib/unictype/pr_combining.h: Likewise.
15577         * lib/unictype/pr_composite.h: Likewise.
15578         * lib/unictype/pr_currency_symbol.h: Likewise.
15579         * lib/unictype/pr_decimal_digit.h: Likewise.
15580         * lib/unictype/pr_deprecated.h: Likewise.
15581         * lib/unictype/pr_format_control.h: Likewise.
15582         * lib/unictype/pr_grapheme_base.h: Likewise.
15583         * lib/unictype/pr_grapheme_extend.h: Likewise.
15584         * lib/unictype/pr_grapheme_link.h: Likewise.
15585         * lib/unictype/pr_id_continue.h: Likewise.
15586         * lib/unictype/pr_id_start.h: Likewise.
15587         * lib/unictype/pr_ideographic.h: Likewise.
15588         * lib/unictype/pr_lowercase.h: Likewise.
15589         * lib/unictype/pr_math.h: Likewise.
15590         * lib/unictype/pr_numeric.h: Likewise.
15591         * lib/unictype/pr_other_alphabetic.h: Likewise.
15592         * lib/unictype/pr_other_id_continue.h: Likewise.
15593         * lib/unictype/pr_other_math.h: Likewise.
15594         * lib/unictype/pr_punctuation.h: Likewise.
15595         * lib/unictype/pr_sentence_terminal.h: Likewise.
15596         * lib/unictype/pr_terminal_punctuation.h: Likewise.
15597         * lib/unictype/pr_unassigned_code_value.h: Likewise.
15598         * lib/unictype/pr_unified_ideograph.h: Likewise.
15599         * lib/unictype/pr_uppercase.h: Likewise.
15600         * lib/unictype/pr_xid_continue.h: Likewise.
15601         * lib/unictype/pr_xid_start.h: Likewise.
15602         * lib/unictype/scripts.h: Likewise.
15603         * lib/unictype/scripts_byname.gperf: Likewise.
15604         * lib/unictype/sy_java_ident.h: Likewise.
15605         * lib/unigbrk/gbrkprop.h: Likewise.
15606         * lib/unilbrk/lbrkprop1.h: Likewise.
15607         * lib/unilbrk/lbrkprop2.h: Likewise.
15608         * lib/uninorm/decomposition-table2.h: Likewise.
15609         * lib/uniwbrk/wbrkprop.h: Likewise.
15610         * tests/unicase/test-cased.c: Likewise.
15611         * tests/unicase/test-ignorable.c: Likewise.
15612         * tests/unicase/test-uc_tolower.c: Likewise.
15613         * tests/unicase/test-uc_totitle.c: Likewise.
15614         * tests/unicase/test-uc_toupper.c: Likewise.
15615         * tests/unictype/test-categ_C.c: Likewise.
15616         * tests/unictype/test-categ_Cn.c: Likewise.
15617         * tests/unictype/test-categ_L.c: Likewise.
15618         * tests/unictype/test-categ_Ll.c: Likewise.
15619         * tests/unictype/test-categ_Lm.c: Likewise.
15620         * tests/unictype/test-categ_Lo.c: Likewise.
15621         * tests/unictype/test-categ_Lu.c: Likewise.
15622         * tests/unictype/test-categ_M.c: Likewise.
15623         * tests/unictype/test-categ_Mc.c: Likewise.
15624         * tests/unictype/test-categ_Me.c: Likewise.
15625         * tests/unictype/test-categ_Mn.c: Likewise.
15626         * tests/unictype/test-categ_N.c: Likewise.
15627         * tests/unictype/test-categ_Nd.c: Likewise.
15628         * tests/unictype/test-categ_No.c: Likewise.
15629         * tests/unictype/test-categ_P.c: Likewise.
15630         * tests/unictype/test-categ_Po.c: Likewise.
15631         * tests/unictype/test-categ_S.c: Likewise.
15632         * tests/unictype/test-categ_Sc.c: Likewise.
15633         * tests/unictype/test-categ_Sk.c: Likewise.
15634         * tests/unictype/test-categ_Sm.c: Likewise.
15635         * tests/unictype/test-categ_So.c: Likewise.
15636         * tests/unictype/test-ctype_alnum.c: Likewise.
15637         * tests/unictype/test-ctype_alpha.c: Likewise.
15638         * tests/unictype/test-ctype_graph.c: Likewise.
15639         * tests/unictype/test-ctype_lower.c: Likewise.
15640         * tests/unictype/test-ctype_print.c: Likewise.
15641         * tests/unictype/test-ctype_punct.c: Likewise.
15642         * tests/unictype/test-ctype_upper.c: Likewise.
15643         * tests/unictype/test-decdigit.h: Likewise.
15644         * tests/unictype/test-digit.h: Likewise.
15645         * tests/unictype/test-numeric.h: Likewise.
15646         * tests/unictype/test-pr_alphabetic.c: Likewise.
15647         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
15648         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
15649         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
15650         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
15651         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
15652         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
15653         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
15654         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
15655         * tests/unictype/test-pr_case_ignorable.c: Likewise.
15656         * tests/unictype/test-pr_cased.c: Likewise.
15657         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
15658         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
15659         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
15660         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
15661         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
15662         * tests/unictype/test-pr_combining.c: Likewise.
15663         * tests/unictype/test-pr_composite.c: Likewise.
15664         * tests/unictype/test-pr_currency_symbol.c: Likewise.
15665         * tests/unictype/test-pr_decimal_digit.c: Likewise.
15666         * tests/unictype/test-pr_deprecated.c: Likewise.
15667         * tests/unictype/test-pr_format_control.c: Likewise.
15668         * tests/unictype/test-pr_grapheme_base.c: Likewise.
15669         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
15670         * tests/unictype/test-pr_grapheme_link.c: Likewise.
15671         * tests/unictype/test-pr_id_continue.c: Likewise.
15672         * tests/unictype/test-pr_id_start.c: Likewise.
15673         * tests/unictype/test-pr_ideographic.c: Likewise.
15674         * tests/unictype/test-pr_lowercase.c: Likewise.
15675         * tests/unictype/test-pr_math.c: Likewise.
15676         * tests/unictype/test-pr_numeric.c: Likewise.
15677         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
15678         * tests/unictype/test-pr_other_id_continue.c: Likewise.
15679         * tests/unictype/test-pr_other_math.c: Likewise.
15680         * tests/unictype/test-pr_punctuation.c: Likewise.
15681         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
15682         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
15683         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
15684         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
15685         * tests/unictype/test-pr_uppercase.c: Likewise.
15686         * tests/unictype/test-pr_xid_continue.c: Likewise.
15687         * tests/unictype/test-pr_xid_start.c: Likewise.
15688         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
15689         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
15690         changes.
15691         * lib/unictype/categ_Cc.h: Likewise.
15692         * lib/unictype/categ_Cf.h: Likewise.
15693         * lib/unictype/categ_Co.h: Likewise.
15694         * lib/unictype/categ_Cs.h: Likewise.
15695         * lib/unictype/categ_Lt.h: Likewise.
15696         * lib/unictype/categ_Nl.h: Likewise.
15697         * lib/unictype/categ_Pc.h: Likewise.
15698         * lib/unictype/categ_Pd.h: Likewise.
15699         * lib/unictype/categ_Pe.h: Likewise.
15700         * lib/unictype/categ_Pf.h: Likewise.
15701         * lib/unictype/categ_Pi.h: Likewise.
15702         * lib/unictype/categ_Ps.h: Likewise.
15703         * lib/unictype/categ_Z.h: Likewise.
15704         * lib/unictype/categ_Zl.h: Likewise.
15705         * lib/unictype/categ_Zp.h: Likewise.
15706         * lib/unictype/categ_Zs.h: Likewise.
15707         * lib/unictype/ctype_blank.h: Likewise.
15708         * lib/unictype/ctype_cntrl.h: Likewise.
15709         * lib/unictype/ctype_digit.h: Likewise.
15710         * lib/unictype/ctype_space.h: Likewise.
15711         * lib/unictype/ctype_xdigit.h: Likewise.
15712         * lib/unictype/mirror.h: Likewise.
15713         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
15714         * lib/unictype/pr_bidi_block_separator.h: Likewise.
15715         * lib/unictype/pr_bidi_common_separator.h: Likewise.
15716         * lib/unictype/pr_bidi_control.h: Likewise.
15717         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
15718         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
15719         * lib/unictype/pr_bidi_european_digit.h: Likewise.
15720         * lib/unictype/pr_bidi_pdf.h: Likewise.
15721         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
15722         * lib/unictype/pr_bidi_whitespace.h: Likewise.
15723         * lib/unictype/pr_dash.h: Likewise.
15724         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
15725         * lib/unictype/pr_diacritic.h: Likewise.
15726         * lib/unictype/pr_extender.h: Likewise.
15727         * lib/unictype/pr_hex_digit.h: Likewise.
15728         * lib/unictype/pr_hyphen.h: Likewise.
15729         * lib/unictype/pr_ids_binary_operator.h: Likewise.
15730         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
15731         * lib/unictype/pr_ignorable_control.h: Likewise.
15732         * lib/unictype/pr_iso_control.h: Likewise.
15733         * lib/unictype/pr_join_control.h: Likewise.
15734         * lib/unictype/pr_left_of_pair.h: Likewise.
15735         * lib/unictype/pr_line_separator.h: Likewise.
15736         * lib/unictype/pr_logical_order_exception.h: Likewise.
15737         * lib/unictype/pr_non_break.h: Likewise.
15738         * lib/unictype/pr_not_a_character.h: Likewise.
15739         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
15740         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
15741         * lib/unictype/pr_other_id_start.h: Likewise.
15742         * lib/unictype/pr_other_lowercase.h: Likewise.
15743         * lib/unictype/pr_other_uppercase.h: Likewise.
15744         * lib/unictype/pr_paired_punctuation.h: Likewise.
15745         * lib/unictype/pr_paragraph_separator.h: Likewise.
15746         * lib/unictype/pr_pattern_syntax.h: Likewise.
15747         * lib/unictype/pr_pattern_white_space.h: Likewise.
15748         * lib/unictype/pr_private_use.h: Likewise.
15749         * lib/unictype/pr_quotation_mark.h: Likewise.
15750         * lib/unictype/pr_radical.h: Likewise.
15751         * lib/unictype/pr_soft_dotted.h: Likewise.
15752         * lib/unictype/pr_space.h: Likewise.
15753         * lib/unictype/pr_titlecase.h: Likewise.
15754         * lib/unictype/pr_variation_selector.h: Likewise.
15755         * lib/unictype/pr_white_space.h: Likewise.
15756         * lib/unictype/pr_zero_width.h: Likewise.
15757         * lib/unictype/sy_c_ident.h: Likewise.
15758         * lib/unictype/sy_c_whitespace.h: Likewise.
15759         * lib/unictype/sy_java_whitespace.h: Likewise.
15760         * lib/uninorm/composition-table.gperf: Likewise.
15761         * lib/uninorm/decomposition-table1.h: Likewise.
15762         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
15763         LB8.
15764         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
15765         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
15766         * modules/unictype/*: Bump version number of expected libunistring
15767         version.
15768
15769 2011-01-09  Bruno Haible  <bruno@clisp.org>
15770
15771         Update to Unicode 5.2.0.
15772         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
15773         trailing whitespace removed.
15774
15775 2011-01-09  Bruno Haible  <bruno@clisp.org>
15776
15777         New Unicode character properties, from Unicode 5.2.0.
15778         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
15779         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
15780         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
15781         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
15782         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
15783         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
15784         uc_is_property_cased, uc_is_property_case_ignorable,
15785         uc_is_property_changes_when_lowercased,
15786         uc_is_property_changes_when_uppercased,
15787         uc_is_property_changes_when_titlecased,
15788         uc_is_property_changes_when_casefolded,
15789         uc_is_property_changes_when_casemapped): New declarations.
15790         * lib/unictype/pr_byname.gperf: Add the new properties.
15791         * modules/unictype/property-byname (Depends-on): Depend on the new
15792         properties modules.
15793         * modules/unictype/property-all (Depends-on): Likewise.
15794         * MODULES.html.sh (Unicode string functions): Add
15795         unictype/property-case-ignorable, unictype/property-cased,
15796         unictype/property-changes-when-casefolded,
15797         unictype/property-changes-when-casemapped,
15798         unictype/property-changes-when-lowercased,
15799         unictype/property-changes-when-titlecased,
15800         unictype/property-changes-when-uppercased.
15801
15802         New module 'unictype/property-changes-when-casemapped'.
15803         * modules/unictype/property-changes-when-casemapped: New file.
15804         * lib/unictype/pr_changes_when_casemapped.c: New file.
15805         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
15806         generated by gen-uni-tables.
15807         * modules/unictype/property-changes-when-casemapped-tests: New file.
15808         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
15809         automatically generated by gen-uni-tables.
15810
15811         New module 'unictype/property-changes-when-casefolded'.
15812         * modules/unictype/property-changes-when-casefolded: New file.
15813         * lib/unictype/pr_changes_when_casefolded.c: New file.
15814         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
15815         generated by gen-uni-tables.
15816         * modules/unictype/property-changes-when-casefolded-tests: New file.
15817         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
15818         automatically generated by gen-uni-tables.
15819
15820         New module 'unictype/property-changes-when-titlecased'.
15821         * modules/unictype/property-changes-when-titlecased: New file.
15822         * lib/unictype/pr_changes_when_titlecased.c: New file.
15823         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
15824         generated by gen-uni-tables.
15825         * modules/unictype/property-changes-when-titlecased-tests: New file.
15826         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
15827         automatically generated by gen-uni-tables.
15828
15829         New module 'unictype/property-changes-when-uppercased'.
15830         * modules/unictype/property-changes-when-uppercased: New file.
15831         * lib/unictype/pr_changes_when_uppercased.c: New file.
15832         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
15833         generated by gen-uni-tables.
15834         * modules/unictype/property-changes-when-uppercased-tests: New file.
15835         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
15836         automatically generated by gen-uni-tables.
15837
15838         New module 'unictype/property-changes-when-lowercased'.
15839         * modules/unictype/property-changes-when-lowercased: New file.
15840         * lib/unictype/pr_changes_when_lowercased.c: New file.
15841         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
15842         generated by gen-uni-tables.
15843         * modules/unictype/property-changes-when-lowercased-tests: New file.
15844         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
15845         automatically generated by gen-uni-tables.
15846
15847         New module 'unictype/property-case-ignorable'.
15848         * modules/unictype/property-case-ignorable: New file.
15849         * lib/unictype/pr_case_ignorable.c: New file.
15850         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
15851         by gen-uni-tables.
15852         * modules/unictype/property-case-ignorable-tests: New file.
15853         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
15854         generated by gen-uni-tables.
15855
15856         New module 'unictype/property-cased'.
15857         * modules/unictype/property-cased: New file.
15858         * lib/unictype/pr_cased.c: New file.
15859         * lib/unictype/pr_cased.h: New file, automatically generated by
15860         gen-uni-tables.
15861         * modules/unictype/property-cased-tests: New file.
15862         * tests/unictype/test-pr_cased.c: New file, automatically generated by
15863         gen-uni-tables.
15864
15865 2011-01-09  Bruno Haible  <bruno@clisp.org>
15866
15867         Update to Unicode 5.2.0.
15868         * lib/gen-uni-tables.c (output_predicate, output_category,
15869         output_combclass, output_bidi_category, output_decimal_digit_test,
15870         output_decimal_digit, output_digit_test, output_digit,
15871         output_numeric_test, output_numeric, output_mirror, output_scripts,
15872         output_scripts_byname, output_blocks, output_ident_category): Fix
15873         comment header.
15874         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
15875         get_wbp.
15876         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
15877         items.
15878         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
15879         Changes_When_Lowercased, Changes_When_Uppercased,
15880         Changes_When_Titlecased, Changes_When_Casefolded,
15881         Changes_When_Casemapped.
15882         (is_property_alphabetic, is_property_default_ignorable_code_point):
15883         Update for Unicode 5.2.0.
15884         (is_property_cased, is_property_case_ignorable,
15885         is_property_changes_when_lowercased,
15886         is_property_changes_when_uppercased,
15887         is_property_changes_when_titlecased,
15888         is_property_changes_when_casefolded,
15889         is_property_changes_when_casemapped): New functions.
15890         (output_properties): Output also the properties cased, case_ignorable,
15891         changes_when_lowercased, changes_when_uppercased,
15892         changes_when_titlecased, changes_when_casefolded,
15893         changes_when_casemapped.
15894         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
15895         Unicode TR#11 revision 17 -> 19.
15896         (LBP_CP): New enumeration value.
15897         (LBP_*): Adjust values accordingly.
15898         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
15899         TR#14 revision 22 -> 24.
15900         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
15901         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
15902         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
15903         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
15904         is_WBP_MIDLETTER.
15905         (output_composition_tables): Allow for 24 bits instead of 16 bits in
15906         the code1 and code2 of each composition rule.
15907         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
15908         * lib/unicase/ignorable.h: Likewise.
15909         * lib/unicase/tocasefold.h: Likewise.
15910         * lib/unicase/tolower.h: Likewise.
15911         * lib/unicase/totitle.h: Likewise.
15912         * lib/unicase/toupper.h: Likewise.
15913         * lib/unictype/bidi_of.h: Likewise.
15914         * lib/unictype/blocks.h: Likewise.
15915         * lib/unictype/categ_C.h: Likewise.
15916         * lib/unictype/categ_Cf.h: Likewise.
15917         * lib/unictype/categ_Cn.h: Likewise.
15918         * lib/unictype/categ_L.h: Likewise.
15919         * lib/unictype/categ_Ll.h: Likewise.
15920         * lib/unictype/categ_Lm.h: Likewise.
15921         * lib/unictype/categ_Lo.h: Likewise.
15922         * lib/unictype/categ_Lu.h: Likewise.
15923         * lib/unictype/categ_M.h: Likewise.
15924         * lib/unictype/categ_Mc.h: Likewise.
15925         * lib/unictype/categ_Mn.h: Likewise.
15926         * lib/unictype/categ_N.h: Likewise.
15927         * lib/unictype/categ_Nd.h: Likewise.
15928         * lib/unictype/categ_Nl.h: Likewise.
15929         * lib/unictype/categ_No.h: Likewise.
15930         * lib/unictype/categ_P.h: Likewise.
15931         * lib/unictype/categ_Pd.h: Likewise.
15932         * lib/unictype/categ_Po.h: Likewise.
15933         * lib/unictype/categ_S.h: Likewise.
15934         * lib/unictype/categ_Sc.h: Likewise.
15935         * lib/unictype/categ_So.h: Likewise.
15936         * lib/unictype/categ_of.h: Likewise.
15937         * lib/unictype/combining.h: Likewise.
15938         * lib/unictype/ctype_alnum.h: Likewise.
15939         * lib/unictype/ctype_alpha.h: Likewise.
15940         * lib/unictype/ctype_graph.h: Likewise.
15941         * lib/unictype/ctype_lower.h: Likewise.
15942         * lib/unictype/ctype_print.h: Likewise.
15943         * lib/unictype/ctype_punct.h: Likewise.
15944         * lib/unictype/ctype_upper.h: Likewise.
15945         * lib/unictype/decdigit.h: Likewise.
15946         * lib/unictype/digit.h: Likewise.
15947         * lib/unictype/numeric.h: Likewise.
15948         * lib/unictype/pr_alphabetic.h: Likewise.
15949         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
15950         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
15951         * lib/unictype/pr_bidi_european_digit.h: Likewise.
15952         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
15953         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
15954         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
15955         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
15956         * lib/unictype/pr_combining.h: Likewise.
15957         * lib/unictype/pr_composite.h: Likewise.
15958         * lib/unictype/pr_currency_symbol.h: Likewise.
15959         * lib/unictype/pr_dash.h: Likewise.
15960         * lib/unictype/pr_decimal_digit.h: Likewise.
15961         * lib/unictype/pr_deprecated.h: Likewise.
15962         * lib/unictype/pr_diacritic.h: Likewise.
15963         * lib/unictype/pr_extender.h: Likewise.
15964         * lib/unictype/pr_grapheme_base.h: Likewise.
15965         * lib/unictype/pr_grapheme_extend.h: Likewise.
15966         * lib/unictype/pr_grapheme_link.h: Likewise.
15967         * lib/unictype/pr_id_continue.h: Likewise.
15968         * lib/unictype/pr_id_start.h: Likewise.
15969         * lib/unictype/pr_ideographic.h: Likewise.
15970         * lib/unictype/pr_ignorable_control.h: Likewise.
15971         * lib/unictype/pr_logical_order_exception.h: Likewise.
15972         * lib/unictype/pr_lowercase.h: Likewise.
15973         * lib/unictype/pr_numeric.h: Likewise.
15974         * lib/unictype/pr_other_alphabetic.h: Likewise.
15975         * lib/unictype/pr_punctuation.h: Likewise.
15976         * lib/unictype/pr_sentence_terminal.h: Likewise.
15977         * lib/unictype/pr_terminal_punctuation.h: Likewise.
15978         * lib/unictype/pr_unassigned_code_value.h: Likewise.
15979         * lib/unictype/pr_unified_ideograph.h: Likewise.
15980         * lib/unictype/pr_uppercase.h: Likewise.
15981         * lib/unictype/pr_xid_continue.h: Likewise.
15982         * lib/unictype/pr_xid_start.h: Likewise.
15983         * lib/unictype/pr_zero_width.h: Likewise.
15984         * lib/unictype/scripts.h: Likewise.
15985         * lib/unictype/scripts_byname.gperf: Likewise.
15986         * lib/unictype/sy_java_ident.h: Likewise.
15987         * lib/unigbrk/gbrkprop.h: Likewise.
15988         * lib/unilbrk/lbrkprop1.h: Likewise.
15989         * lib/unilbrk/lbrkprop2.h: Likewise.
15990         * lib/unilbrk/lbrktables.h: Likewise.
15991         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
15992         LBP_CP. Implement rule LB30.
15993         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
15994         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
15995         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
15996         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
15997         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
15998         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
15999         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
16000         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
16001         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
16002         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
16003         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
16004         bits instead of 16 bits in the code1 and code2 of each composition
16005         rule.
16006         (uc_composition): Update for Unicode 5.2.0.
16007         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
16008         * lib/uninorm/decomposition-table2.h: Likewise.
16009         * lib/uniwbrk/wbrkprop.h: Likewise.
16010         * tests/unicase/test-cased.c: Likewise.
16011         * tests/unicase/test-ignorable.c: Likewise.
16012         * tests/unicase/test-uc_tolower.c: Likewise.
16013         * tests/unicase/test-uc_totitle.c: Likewise.
16014         * tests/unicase/test-uc_toupper.c: Likewise.
16015         * tests/unictype/test-categ_C.c: Likewise.
16016         * tests/unictype/test-categ_Cf.c: Likewise.
16017         * tests/unictype/test-categ_Cn.c: Likewise.
16018         * tests/unictype/test-categ_L.c: Likewise.
16019         * tests/unictype/test-categ_Ll.c: Likewise.
16020         * tests/unictype/test-categ_Lm.c: Likewise.
16021         * tests/unictype/test-categ_Lo.c: Likewise.
16022         * tests/unictype/test-categ_Lu.c: Likewise.
16023         * tests/unictype/test-categ_M.c: Likewise.
16024         * tests/unictype/test-categ_Mc.c: Likewise.
16025         * tests/unictype/test-categ_Mn.c: Likewise.
16026         * tests/unictype/test-categ_N.c: Likewise.
16027         * tests/unictype/test-categ_Nd.c: Likewise.
16028         * tests/unictype/test-categ_Nl.c: Likewise.
16029         * tests/unictype/test-categ_No.c: Likewise.
16030         * tests/unictype/test-categ_P.c: Likewise.
16031         * tests/unictype/test-categ_Pd.c: Likewise.
16032         * tests/unictype/test-categ_Po.c: Likewise.
16033         * tests/unictype/test-categ_S.c: Likewise.
16034         * tests/unictype/test-categ_Sc.c: Likewise.
16035         * tests/unictype/test-categ_So.c: Likewise.
16036         * tests/unictype/test-ctype_alnum.c: Likewise.
16037         * tests/unictype/test-ctype_alpha.c: Likewise.
16038         * tests/unictype/test-ctype_graph.c: Likewise.
16039         * tests/unictype/test-ctype_lower.c: Likewise.
16040         * tests/unictype/test-ctype_print.c: Likewise.
16041         * tests/unictype/test-ctype_punct.c: Likewise.
16042         * tests/unictype/test-ctype_upper.c: Likewise.
16043         * tests/unictype/test-decdigit.h: Likewise.
16044         * tests/unictype/test-digit.h: Likewise.
16045         * tests/unictype/test-numeric.h: Likewise.
16046         * tests/unictype/test-pr_alphabetic.c: Likewise.
16047         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
16048         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
16049         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
16050         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
16051         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
16052         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
16053         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
16054         * tests/unictype/test-pr_combining.c: Likewise.
16055         * tests/unictype/test-pr_composite.c: Likewise.
16056         * tests/unictype/test-pr_currency_symbol.c: Likewise.
16057         * tests/unictype/test-pr_dash.c: Likewise.
16058         * tests/unictype/test-pr_decimal_digit.c: Likewise.
16059         * tests/unictype/test-pr_deprecated.c: Likewise.
16060         * tests/unictype/test-pr_diacritic.c: Likewise.
16061         * tests/unictype/test-pr_extender.c: Likewise.
16062         * tests/unictype/test-pr_grapheme_base.c: Likewise.
16063         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
16064         * tests/unictype/test-pr_grapheme_link.c: Likewise.
16065         * tests/unictype/test-pr_id_continue.c: Likewise.
16066         * tests/unictype/test-pr_id_start.c: Likewise.
16067         * tests/unictype/test-pr_ideographic.c: Likewise.
16068         * tests/unictype/test-pr_ignorable_control.c: Likewise.
16069         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
16070         * tests/unictype/test-pr_lowercase.c: Likewise.
16071         * tests/unictype/test-pr_numeric.c: Likewise.
16072         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
16073         * tests/unictype/test-pr_punctuation.c: Likewise.
16074         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
16075         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
16076         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
16077         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
16078         * tests/unictype/test-pr_uppercase.c: Likewise.
16079         * tests/unictype/test-pr_xid_continue.c: Likewise.
16080         * tests/unictype/test-pr_xid_start.c: Likewise.
16081         * tests/unictype/test-pr_zero_width.c: Likewise.
16082         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
16083         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
16084         changed behaviour: line breaking is now disallowed between a letter
16085         or '=' and '('.
16086         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
16087         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
16088         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
16089         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
16090         * tests/uniwidth/test-uc_width2.sh: Same updates as in
16091         lib/uniwidth/width.c.
16092         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
16093         without comments, but with the original copyright notice.
16094         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
16095         changes.
16096         * lib/unictype/categ_Cc.h: Likewise.
16097         * lib/unictype/categ_Co.h: Likewise.
16098         * lib/unictype/categ_Cs.h: Likewise.
16099         * lib/unictype/categ_Lt.h: Likewise.
16100         * lib/unictype/categ_Me.h: Likewise.
16101         * lib/unictype/categ_Pc.h: Likewise.
16102         * lib/unictype/categ_Pe.h: Likewise.
16103         * lib/unictype/categ_Pf.h: Likewise.
16104         * lib/unictype/categ_Pi.h: Likewise.
16105         * lib/unictype/categ_Ps.h: Likewise.
16106         * lib/unictype/categ_Sk.h: Likewise.
16107         * lib/unictype/categ_Sm.h: Likewise.
16108         * lib/unictype/categ_Z.h: Likewise.
16109         * lib/unictype/categ_Zl.h: Likewise.
16110         * lib/unictype/categ_Zp.h: Likewise.
16111         * lib/unictype/categ_Zs.h: Likewise.
16112         * lib/unictype/ctype_blank.h: Likewise.
16113         * lib/unictype/ctype_cntrl.h: Likewise.
16114         * lib/unictype/ctype_digit.h: Likewise.
16115         * lib/unictype/ctype_space.h: Likewise.
16116         * lib/unictype/ctype_xdigit.h: Likewise.
16117         * lib/unictype/mirror.h: Likewise.
16118         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
16119         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
16120         * lib/unictype/pr_bidi_block_separator.h: Likewise.
16121         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
16122         * lib/unictype/pr_bidi_common_separator.h: Likewise.
16123         * lib/unictype/pr_bidi_control.h: Likewise.
16124         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
16125         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
16126         * lib/unictype/pr_bidi_pdf.h: Likewise.
16127         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
16128         * lib/unictype/pr_bidi_whitespace.h: Likewise.
16129         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
16130         * lib/unictype/pr_format_control.h: Likewise.
16131         * lib/unictype/pr_hex_digit.h: Likewise.
16132         * lib/unictype/pr_hyphen.h: Likewise.
16133         * lib/unictype/pr_ids_binary_operator.h: Likewise.
16134         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
16135         * lib/unictype/pr_iso_control.h: Likewise.
16136         * lib/unictype/pr_join_control.h: Likewise.
16137         * lib/unictype/pr_left_of_pair.h: Likewise.
16138         * lib/unictype/pr_line_separator.h: Likewise.
16139         * lib/unictype/pr_math.h: Likewise.
16140         * lib/unictype/pr_non_break.h: Likewise.
16141         * lib/unictype/pr_not_a_character.h: Likewise.
16142         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
16143         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
16144         * lib/unictype/pr_other_id_continue.h: Likewise.
16145         * lib/unictype/pr_other_id_start.h: Likewise.
16146         * lib/unictype/pr_other_lowercase.h: Likewise.
16147         * lib/unictype/pr_other_math.h: Likewise.
16148         * lib/unictype/pr_other_uppercase.h: Likewise.
16149         * lib/unictype/pr_paired_punctuation.h: Likewise.
16150         * lib/unictype/pr_paragraph_separator.h: Likewise.
16151         * lib/unictype/pr_pattern_syntax.h: Likewise.
16152         * lib/unictype/pr_pattern_white_space.h: Likewise.
16153         * lib/unictype/pr_private_use.h: Likewise.
16154         * lib/unictype/pr_quotation_mark.h: Likewise.
16155         * lib/unictype/pr_radical.h: Likewise.
16156         * lib/unictype/pr_soft_dotted.h: Likewise.
16157         * lib/unictype/pr_space.h: Likewise.
16158         * lib/unictype/pr_titlecase.h: Likewise.
16159         * lib/unictype/pr_variation_selector.h: Likewise.
16160         * lib/unictype/pr_white_space.h: Likewise.
16161         * lib/unictype/sy_c_ident.h: Likewise.
16162         * lib/unictype/sy_c_whitespace.h: Likewise.
16163         * lib/unictype/sy_java_whitespace.h: Likewise.
16164         * modules/uni*/*: Bump version number of expected libunistring version.
16165         Reported by Simon Josefsson.
16166
16167 2011-01-09  Karl Heuer  <kwzh@gnu.org>
16168
16169         useless-if-before-free: fix typo in --help and make the internal,
16170         automatic version date update process work once again.
16171         --help output contained a NUL character instead of the
16172         backslash-zero that was intended.  Also, the "must lie within
16173         the first 8 lines" line is on line 9, and hence not getting
16174         automatically updated.
16175         * build-aux/useless-if-before-free: Fix the former by adding a
16176         backslash, and the latter by condensing the three lines of what-it-does
16177         to a single line, leaving one line of slack for the future.
16178
16179 2011-01-09  Bruno Haible  <bruno@clisp.org>
16180
16181         uniwidth/width: Fix width of U+1D173..U+1D17A.
16182         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
16183         symbolic_width, output_width_property_test): New functions.
16184         (main): Invoke output_nonspacing_property, output_width_property_test.
16185         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
16186         U+1D173..U+1D17A.
16187         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
16188         1.
16189         * modules/uniwidth/*: Bump version number of expected libunistring
16190         version.
16191         * modules/unilbrk/*: Likewise.
16192
16193 2011-01-08  Bruno Haible  <bruno@clisp.org>
16194
16195         uninorm tests: Preserve copyright of Unicode data file.
16196         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
16197         Mention modifications.
16198
16199 2011-01-08  Bruno Haible  <bruno@clisp.org>
16200
16201         gen-uni-tables: Prepare for Unicode 5.2.0.
16202         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
16203         (debug_output_lbp, output_lbp): Update.
16204
16205 2011-01-08  Bruno Haible  <bruno@clisp.org>
16206
16207         unilbrk: Clarify gen-uni-tables.c code.
16208         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
16209         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
16210         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
16211
16212 2011-01-07  Bruno Haible  <bruno@clisp.org>
16213
16214         strtod: Restore errno when successfully parsing Infinity or NaN.
16215         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
16216         restore the original errno.
16217
16218 2011-01-07  Bruno Haible  <bruno@clisp.org>
16219
16220         remove test: Avoid failure on HP-UX 11.
16221         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
16222
16223 2011-01-07  Bruno Haible  <bruno@clisp.org>
16224
16225         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
16226         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
16227         error code.
16228
16229 2011-01-07  Pádraig Brady <P@draigBrady.com>
16230
16231         ignore-value: fixup comments, and add Eric Blake
16232         as an author since he rewrote the macros.
16233         * lib/ignore-value.h (ignore_value):  State that
16234         we now support aggregates.  Also specify exactly
16235         when the GCC warn_unused_result feature was added.
16236
16237 2011-01-06  Eric Blake  <eblake@redhat.com>
16238
16239         ignore-value: support aggregate types
16240         * lib/ignore-value.h (ignore_value): Provide separate gcc
16241         definition.
16242         * modules/ignore-value-tests: New test module.
16243         * tests/test-ignore-value.c: New test.
16244
16245         maint.mk: improve sc_prohibit_strcmp regex
16246         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
16247         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
16248         definition of STRNEQ.
16249
16250         signal: work around Haiku issue with SIGBUS
16251         * lib/siglist.h: Add comment.
16252         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
16253         strsignal's favoring of SIGSEGV.
16254         * tests/test-signal.c (main): Avoid test failure.
16255         * doc/posix-headers/signal.texi (signal.h): Document the issue.
16256         Reported by Scott McCreary.
16257
16258         maint.mk: add pre-release check to ensure submodule commits are public
16259         * top/maint.mk (public-submodule-commit): New rule.
16260         (submodule-checks): New variable.
16261         (alpha beta stable): Depend on the variable.
16262
16263 2011-01-05  Pádraig Brady <P@draigBrady.com>
16264         and Jim Meyering  <meyering@redhat.com>
16265
16266         ignore-value: make ignore_value more generic; deprecate ignore_ptr
16267         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
16268         (ATTRIBUTE_DEPRECATED): Define.
16269         (_ignore_case): New function.
16270         (ignore_value): New macro, to replace the old function.
16271         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
16272         * modules/ignore-value (Depends-on): Add stdint.
16273
16274 2011-01-04  Eric Blake  <eblake@redhat.com>
16275
16276         doc: regenerate INSTALL
16277         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
16278         @firstparagraphindent support, now that autoconf dropped it.
16279         (INSTALL_PRELUDE): Reinstate old macro.
16280         * doc/install.texi: Resync from autoconf.
16281         * doc/INSTALL: Reflect recent autoconf update.
16282         * doc/INSTALL.ISO: Likewise.
16283         * doc/INSTALL.UTF-8: Likewise.
16284         Reported by Karl Berry.
16285
16286 2011-01-04  Bruce Korb  <address@hidden>
16287
16288         git-version-gen: avoid a sub-shell
16289         * build-aux/git-version-gen: Redirect stderr in `...` via
16290         "exec 2>...", rather than via an added sub-shell.
16291
16292 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
16293
16294         git-version-gen: use (...) rather than sh -c '...'
16295         * build-aux/git-version-gen: Rather than hard-coding a shell's name
16296         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
16297
16298 2011-01-03  Jim Meyering  <meyering@redhat.com>
16299
16300         git-version-gen: convert leading TABs to spaces
16301         * build-aux/git-version-gen: Expand leading TABs.
16302
16303         git-version-gen: handle failed "git rev-list"
16304         * build-aux/git-version-gen: Rather than leaking a "fatal" error
16305         from git and proceeding as if it had succeeded but printed no SHA1
16306         checksums, suppress the diagnostic and handle the failure.
16307         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
16308
16309         git-version-gen: include command name in one more diagnostic
16310         * build-aux/git-version-gen: When the required .tarball-version file
16311         was missing or unreadable, you might see the diagnostic from "cat",
16312         but no trace of the name of the invoking script.  Now, you still see
16313         the diagnostic from cat, but also get one from "git-version-gen: ".
16314         Inspired by a patch from Bruce Korb.
16315
16316         update-copyright: adjust test to match changed code
16317         * tests/test-update-copyright.sh: Change test's expected output
16318         to match new actual output.
16319
16320 2011-01-02  Bruno Haible  <bruno@clisp.org>
16321
16322         getlogin_r: Avoid test failure on HP-UX 11.
16323         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
16324         ERANGE when the second argument is zero.
16325         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
16326         portability problem.
16327
16328 2011-01-02  Bruce Korb  <bkorb@gnu.org>
16329
16330         * build-aux/update-copyright: doc Simon's changes
16331
16332 2011-01-02  Simon Josefsson  <simon@josefsson.org>
16333
16334         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
16335         environment variable.
16336
16337 2011-01-02  Bruno Haible  <bruno@clisp.org>
16338
16339         unigbrk: Avoid gcc warnings.
16340         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
16341         unused variable.
16342         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
16343         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
16344         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
16345         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
16346         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
16347         Change type of first argument to 'const char *'.
16348         (main): Remove unused variable.
16349         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
16350         type of first argument to 'const char *'.
16351         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
16352         Likewise.
16353         (main): Change type of variable 's'.
16354         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
16355         to 'int'.
16356
16357 2011-01-02  Bruno Haible  <bruno@clisp.org>
16358
16359         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
16360         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
16361         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
16362         bug.
16363         * lib/pwrite.c: Undo 2010-12-31 patch.
16364         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
16365
16366 2011-01-02  Bruno Haible  <bruno@clisp.org>
16367
16368         pread: Fix test whether it works.
16369         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
16370
16371 2011-01-02  Bruno Haible  <bruno@clisp.org>
16372
16373         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
16374         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
16375         ends in "6". Don't require a specific month name. Try also the locale
16376         names found on HP-UX 11 and Solaris 7.
16377
16378 2011-01-02  Bruno Haible  <bruno@clisp.org>
16379
16380         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
16381         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
16382         C linkage.
16383         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
16384
16385 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
16386
16387         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
16388         for consistency, since the "cluster" term is not used elsewhere.
16389         * lib/unigbrk.in.h: Update name.
16390         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
16391         * lib/unigbrk/u16-grapheme-next.c: Update name.
16392         * lib/unigbrk/u16-grapheme-prev.c: Update name.
16393         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
16394         * lib/unigbrk/u32-grapheme-next.c: Update name.
16395         * lib/unigbrk/u32-grapheme-prev.c: Update name.
16396         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
16397         * lib/unigbrk/u8-grapheme-next.c: Update name.
16398         * lib/unigbrk/u8-grapheme-prev.c: Update name.
16399         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
16400         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
16401         Suggested by Bruno Haible.
16402
16403 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
16404
16405         Remove module 'u8-grapheme-len' as too redundant with
16406         'u8-grapheme-next'.
16407         * modules/unigbrk/u8-grapheme-len: Delete file.
16408         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
16409         * lib/unigbrk.in.h: Remove prototype for deleted function.
16410         * lib/unigbrk/u8-grapheme-len.c: Delete file.
16411         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
16412
16413         Remove module 'u16-grapheme-len' as too redundant with
16414         'u16-grapheme-next'.
16415         * modules/unigbrk/u16-grapheme-len: Delete file.
16416         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
16417         * lib/unigbrk.in.h: Remove prototype for deleted function.
16418         * lib/unigbrk/u16-grapheme-len.c: Delete file.
16419         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
16420
16421         Remove module 'u32-grapheme-len' as too redundant with
16422         'u32-grapheme-next'.
16423         * modules/unigbrk/u32-grapheme-len: Delete file.
16424         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
16425         * lib/unigbrk.in.h: Remove prototype for deleted function.
16426         * lib/unigbrk/u32-grapheme-len.c: Delete file.
16427         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
16428
16429         Suggested by Bruno Haible.
16430
16431 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
16432
16433         * unigbrk.in.h: Fix typo: "ben" => "been".
16434         Reported by Bruno Haible.
16435
16436 2011-01-01  Jim Meyering  <meyering@redhat.com>
16437
16438         maint: update almost all copyright ranges to include 2011
16439         Run the new "make update-copyright" rule.
16440
16441 2011-01-01  Jim Meyering  <meyering@redhat.com>
16442
16443         maint: update-copyright: exempt doc/INSTALL*
16444         * Makefile (update-copyright): Also exclude doc/INSTALL*,
16445         since they are generated.  Suggested by Bruno Haible.
16446
16447 2011-01-01  Jim Meyering  <meyering@redhat.com>
16448
16449         maint: refine the update-copyright rule
16450         * Makefile (update-copyright): Also exclude any file that includes
16451         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
16452         code that merely generates the comment.
16453
16454 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
16455
16456         New module 'u8-grapheme-len'.
16457         * modules/unigbrk/u8-grapheme-len: New file.
16458         * modules/unigbrk/u8-grapheme-len-tests: New file.
16459         * lib/unigbrk.in.h: Add prototype for new function.
16460         * lib/unigbrk/u8-grapheme-len.c: New file.
16461         * tests/unigbrk/test-u8-grapheme-len.c: New file.
16462
16463         New module 'u16-grapheme-len'.
16464         * modules/unigbrk/u16-grapheme-len: New file.
16465         * modules/unigbrk/u16-grapheme-len-tests: New file.
16466         * lib/unigbrk.in.h: Add prototype for new function.
16467         * lib/unigbrk/u16-grapheme-len.c: New file.
16468         * tests/unigbrk/test-u16-grapheme-len.c: New file.
16469
16470         New module 'u32-grapheme-len'.
16471         * modules/unigbrk/u32-grapheme-len: New file.
16472         * modules/unigbrk/u32-grapheme-len-tests: New file.
16473         * lib/unigbrk.in.h: Add prototype for new function.
16474         * lib/unigbrk/u32-grapheme-len.c: New file.
16475         * tests/unigbrk/test-u32-grapheme-len.c: New file.
16476
16477         New module 'u8-grapheme-next'.
16478         * modules/unigbrk/u8-grapheme-next: New file.
16479         * modules/unigbrk/u8-grapheme-next-tests: New file.
16480         * lib/unigbrk.in.h: Add prototype for new function.
16481         * lib/unigbrk/u8-grapheme-next.c: New file.
16482         * tests/unigbrk/test-u8-grapheme-next.c: New file.
16483
16484         New module 'u16-grapheme-next'.
16485         * modules/unigbrk/u16-grapheme-next: New file.
16486         * modules/unigbrk/u16-grapheme-next-tests: New file.
16487         * lib/unigbrk.in.h: Add prototype for new function.
16488         * lib/unigbrk/u16-grapheme-next.c: New file.
16489         * tests/unigbrk/test-u16-grapheme-next.c: New file.
16490
16491         New module 'u32-grapheme-next'.
16492         * modules/unigbrk/u32-grapheme-next: New file.
16493         * modules/unigbrk/u32-grapheme-next-tests: New file.
16494         * lib/unigbrk.in.h: Add prototype for new function.
16495         * lib/unigbrk/u32-grapheme-next.c: New file.
16496         * tests/unigbrk/test-u32-grapheme-next.c: New file.
16497
16498         New module 'u8-grapheme-prev'.
16499         * modules/unigbrk/u8-grapheme-prev: New file.
16500         * modules/unigbrk/u8-grapheme-prev-tests: New file.
16501         * lib/unigbrk.in.h: Add prototype for new function.
16502         * lib/unigbrk/u8-grapheme-prev.c: New file.
16503         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
16504
16505         New module 'u16-grapheme-prev'.
16506         * modules/unigbrk/u16-grapheme-prev: New file.
16507         * modules/unigbrk/u16-grapheme-prev-tests: New file.
16508         * lib/unigbrk.in.h: Add prototype for new function.
16509         * lib/unigbrk/u16-grapheme-prev.c: New file.
16510         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
16511
16512         New module 'u32-grapheme-prev'.
16513         * modules/unigbrk/u32-grapheme-prev: New file.
16514         * modules/unigbrk/u32-grapheme-prev-tests: New file.
16515         * lib/unigbrk.in.h: Add prototype for new function.
16516         * lib/unigbrk/u32-grapheme-prev.c: New file.
16517         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
16518
16519         New module 'u8-grapheme-breaks'.
16520         * modules/unigbrk/u8-grapheme-breaks: New file.
16521         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
16522         * lib/unigbrk.in.h: Add prototype for new function.
16523         * lib/unigbrk/u8-grapheme-breaks.c: New file.
16524         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
16525
16526         New module 'u16-grapheme-breaks'.
16527         * modules/unigbrk/u16-grapheme-breaks: New file.
16528         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
16529         * lib/unigbrk.in.h: Add prototype for new function.
16530         * lib/unigbrk/u16-grapheme-breaks.c: New file.
16531         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
16532
16533         New module 'u32-grapheme-breaks'.
16534         * modules/unigbrk/u32-grapheme-breaks: New file.
16535         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
16536         * lib/unigbrk.in.h: Add prototype for new function.
16537         * lib/unigbrk/u32-grapheme-breaks.c: New file.
16538         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
16539
16540         New module 'ulc-grapheme-breaks'.
16541         * modules/unigbrk/ulc-grapheme-breaks: New file.
16542         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
16543         * m4/locale-ar.m4: New file.
16544         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
16545         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
16546         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
16547
16548 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
16549
16550         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
16551         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
16552         modified how this file was generated before I initially submitted
16553         the module, but failed to regenerate it.  This meant that several
16554         of the level2 entries were wrong.
16555         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
16556         Remove the division-by-2 that is folded into the table now that
16557         gbrkprop.h has been regenerated properly.  Now -1 entries are
16558         handled correctly.
16559
16560         New module 'unigbrk/uc-gbrk-prop-tests'.
16561         * modules/unigbrk/uc-gbrk-prop-tests: New file.
16562         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
16563         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
16564         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
16565
16566 2011-01-01  Bruno Haible  <bruno@clisp.org>
16567
16568         Avoid use of hexadecimal escapes.
16569         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
16570         instead of hexadecimal escapes.
16571
16572 2011-01-01  Jim Meyering  <meyering@redhat.com>
16573
16574         maint: new rule to update copyright year ranges
16575         * Makefile (update-copyright): New rule.
16576
16577         maint: indent with TABs in Makefile
16578         * Makefile: Expand leading sequences of spaces to TABs
16579
16580         version-etc: update the copyright year it reports
16581         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
16582
16583 2010-12-31  Bruno Haible  <bruno@clisp.org>
16584
16585         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
16586         * lib/isfinite.c (zerof, zerod, zerol): New variables.
16587         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
16588         zero.
16589
16590 2010-12-31  Bruno Haible  <bruno@clisp.org>
16591
16592         pwrite: Work around HP-UX 11.11 bug.
16593         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
16594         works and set REPLACE_PWRITE if not.
16595         * lib/pwrite.c (pwrite): Add an implementation that uses the system
16596         function.
16597         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
16598
16599 2010-12-31  Bruno Haible  <bruno@clisp.org>
16600
16601         pread: Work around HP-UX 11 bugs.
16602         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
16603         and set REPLACE_PREAD if not.
16604         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
16605
16606 2010-12-31  Eric Blake  <eblake@redhat.com>
16607
16608         nl_langinfo: fix YESEXPR on Irix 6.5
16609         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
16610         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
16611         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
16612         it.
16613
16614 2010-12-31  Bruno Haible  <bruno@clisp.org>
16615
16616         iconv: Document HP-UX 11 bug.
16617         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
16618
16619 2010-12-31  Bruno Haible  <bruno@clisp.org>
16620
16621         ldexpl: Fix link error on HP-UX 11.
16622         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
16623         LDEXPL_LIBM, using $ISNANL_LIBM.
16624
16625 2010-12-31  Eric Blake  <eblake@redhat.com>
16626
16627         ftello: avoid compilation failure with SunStudio c89
16628         * lib/ftello.c (ftello): Use lseek, not llseek.
16629
16630         tests: avoid failing coreutils tests on cygwin
16631         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
16632         (create_exe_shims_): Return 0 when skipping.
16633
16634 2010-12-31  Bruno Haible  <bruno@clisp.org>
16635
16636         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
16637         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
16638
16639 2010-12-31  Bruno Haible  <bruno@clisp.org>
16640
16641         waitpid: Fix link error in C++ mode.
16642         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
16643
16644 2010-12-31  Bruno Haible  <bruno@clisp.org>
16645
16646         isnan: Use GCC built-ins when possible.
16647         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
16648         __builtin_isnan.
16649         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
16650         (isnan): Define using GCC built-ins for GCC >= 4.0.
16651
16652 2010-12-31  Bruno Haible  <bruno@clisp.org>
16653
16654         isnand: Fix mistake.
16655         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
16656         __builtin_isnand.
16657
16658 2010-12-31  Bruno Haible  <bruno@clisp.org>
16659
16660         open: Avoid C++ error on HP-UX 11.
16661         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
16662
16663 2010-12-31  Bruno Haible  <bruno@clisp.org>
16664
16665         time_r: Add missing declarations on HP-UX 11.
16666         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
16667         instead of HAVE_LOCALTIME_R.
16668         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
16669         HAVE_LOCALTIME_R always.
16670         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
16671         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
16672         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
16673         HAVE_LOCALTIME_R.
16674         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
16675         * doc/posix-functions/localtime_r.texi: Likewise.
16676
16677 2010-12-29  Eric Blake  <eblake@redhat.com>
16678
16679         mountlist: tweak previous commit
16680         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
16681         Reported by Paul Eggert.
16682
16683         mountlist: fix local drive detection on cygwin
16684         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
16685         that works for cygwin.
16686
16687 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
16688
16689         ftoastr, snprintf: ftoastr + snprintf module
16690         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
16691         since the snprintf module now should be good enough here.
16692         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
16693         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
16694         and gl_MODULE_INDICATOR([snprintf]), but the former enables
16695         GNULIB_SNPRINTF only for the test directory, and the latter
16696         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
16697         seems to suffice by itself.
16698
16699 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
16700
16701         alloca: one step towards thread-safety
16702         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
16703         need for a static variable.  All callers changed.  This does not
16704         make the alloca replacement thread-safe, but it's one step.
16705
16706         tests: minor indenting change
16707         * tests/init.sh: Sync from coreutils housekeeping patch
16708         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
16709         to keep lines within 80 columns.
16710
16711 2010-12-28  Jim Meyering  <meyering@redhat.com>
16712
16713         regex: don't infloop on persistent failing calloc
16714         * lib/regexec.c (build_trtable): Return failure indication upon
16715         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
16716         In glibc, this was fixed for version 2.13:
16717         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
16718
16719 2010-12-28  Bruno Haible  <bruno@clisp.org>
16720             Paul Eggert <eggert@cs.ucla.edu>
16721
16722         linkat: Make implementation robust against system behaviour variations.
16723         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
16724         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
16725         way, and to -2 if it needs a generic runtime test.
16726         * lib/linkat.c (solaris_optimized_link_immediate,
16727         solaris_optimized_link_follow): New functions.
16728         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
16729         (check_same_link): Use it.
16730
16731 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
16732
16733         New module 'unigbrk/base'.
16734         * modules/unigbrk/base: New file.
16735         * lib/unigbrk.in.h: New file.
16736
16737         New module 'unigbrk/uc-gbrk-prop'.
16738         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
16739         * modules/unigbrk/uc-gbrk-prop: New file.
16740         * lib/unigbrk/gbrkprop.h: New file.
16741         * lib/unigbrk/uc-gbrk-prop.c: New file.
16742
16743         New module 'unigbrk/uc-is-grapheme-break'.
16744         * modules/unigbrk/uc-is-grapheme-break: New file.
16745         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
16746         * lib/unigbrk/uc-is-grapheme-break.c: New file.
16747         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
16748         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
16749         * tests/unigbrk/GraphemeBreakTest.txt: New file.
16750
16751         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
16752
16753 2010-12-27  Bruno Haible  <bruno@clisp.org>
16754
16755         linkat test: Avoid failure on Solaris 11 2010-11.
16756         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
16757
16758 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
16759
16760         utimens: work around glibc rounding bug on more platforms
16761         * lib/utimens.c (fdutimens): Work around rounding bug even if
16762         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
16763         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
16764
16765 2010-12-27  Bruno Haible  <bruno@clisp.org>
16766
16767         select tests: Improve comments.
16768         * tests/test-select.c (do_select): Add comments.
16769
16770 2010-12-27  Bruno Haible  <bruno@clisp.org>
16771
16772         select tests: Safer way of handling timeout.
16773         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
16774         at every invocation.
16775
16776 2010-12-27  Bruno Haible  <bruno@clisp.org>
16777
16778         select tests: Use 'bool' where appropriate.
16779         * tests/test-select.c (connect_to_socket): Change argument type to
16780         'bool'.
16781
16782 2010-12-27  Bruno Haible  <bruno@clisp.org>
16783
16784         select tests: Use existing modules.
16785         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
16786         (configure.ac): Don't test for unistd.h.
16787         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
16788         declared in <unistd.h>.
16789
16790 2010-12-27  Bruno Haible  <bruno@clisp.org>
16791
16792         mbrtowc: Work around a Solaris 7 bug.
16793         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
16794         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
16795         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
16796         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
16797         MBRTOWC_NULL_ARG1_BUG.
16798         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
16799         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
16800         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
16801         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
16802
16803 2010-12-27  Jim Meyering  <meyering@redhat.com>
16804
16805         read-file.c: tweak syntax
16806         * lib/read-file.c (fread_file): Remove space after "*" in function
16807         definitions.
16808
16809 2010-12-27  Bruno Haible  <bruno@clisp.org>
16810
16811         times test: Avoid gcc warnings on OSF/1.
16812         * tests/test-times.c (main): Cast printf arguments from clock_t to
16813         'long int'.
16814
16815 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
16816
16817         utimens: work around glibc rounding bug on older Linux kernels
16818         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
16819         on Linux with a glibc whose utimes might not work, then work
16820         around a longstanding glibc bug involving rounding rather than
16821         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
16822         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
16823
16824 2010-12-26  Bruno Haible  <bruno@clisp.org>
16825
16826         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
16827         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
16828         _GL_CXXALIAS_SYS.
16829         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16830
16831 2010-12-26  Bruno Haible  <bruno@clisp.org>
16832
16833         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
16834         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
16835         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
16836         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
16837         looking for the declaration.
16838         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
16839         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
16840         problem.
16841         * doc/posix-functions/inet_pton.texi: Likewise.
16842
16843 2010-12-26  Bruno Haible  <bruno@clisp.org>
16844
16845         arpa_inet: Use the common idioms with C++ support.
16846         * lib/arpa_inet.in.h: Include c++defs.h.
16847         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
16848         support.
16849         * modules/arpa_inet (Depends-on): Add c++defs.
16850         (Makefile.am): Substitute the contents of c++defs.h.
16851         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
16852         * modules/arpa_inet-c++-tests: New file.
16853         * tests/test-arpa_inet-c++.cc: New file.
16854
16855 2010-12-25  Bruno Haible  <bruno@clisp.org>
16856
16857         Fix more C++ link errors on Solaris 8.
16858         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
16859         $(LIB_EACCESS).
16860         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
16861         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
16862         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
16863         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
16864         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
16865
16866 2010-12-25  Bruno Haible  <bruno@clisp.org>
16867
16868         printf-posix: Fix link error when a non-GCC compiler is used.
16869         * lib/stdio.in.h (printf): When not using GCC, override printf
16870         correctly.
16871         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16872
16873 2010-12-25  Bruno Haible  <bruno@clisp.org>
16874
16875         strerror_r-posix: Update doc.
16876         * doc/posix-functions/strerror_r.texi: Update doc about the return
16877         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
16878
16879 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
16880
16881         utimens: simplify the logic of the previous change
16882         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
16883         This should not affect whether the test succeeds or fails.
16884
16885         utimens: configure better on hosts with NFS clock skew
16886         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
16887         uses the clock of the local host.  It might use the clock of the
16888         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
16889         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
16890
16891 2010-12-25  Bruno Haible  <bruno@clisp.org>
16892
16893         ptsname test: Avoid failure on Solaris.
16894         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
16895         open a pseudo-terminal; don't use BSD-style ptys.
16896         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
16897
16898 2010-12-25  Bruno Haible  <bruno@clisp.org>
16899
16900         ptsname: Avoid ERANGE failure on some systems.
16901         * lib/ptsname.c (buffer): Increase size.
16902
16903 2010-12-25  Bruno Haible  <bruno@clisp.org>
16904
16905         rename, renameat: Avoid test failures at NFS mounted locations.
16906         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
16907         so that subsequent mkdir calls succeed.
16908
16909 2010-12-25  Bruno Haible  <bruno@clisp.org>
16910
16911         iswblank: Fix C++ link error on Solaris 8.
16912         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
16913         _GL_FUNCDECL_SYS.
16914
16915 2010-12-25  Bruno Haible  <bruno@clisp.org>
16916
16917         unistd: Fix C++ link error on Solaris 8.
16918         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
16919
16920 2010-12-25  Bruno Haible  <bruno@clisp.org>
16921
16922         readlink doc: Mention an old glibc bug.
16923         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
16924
16925 2010-12-25  Bruno Haible  <bruno@clisp.org>
16926
16927         fcntl-h: Fix for use of C++ on glibc systems.
16928         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
16929         also on glibc systems in C++ mode.
16930         Reported by Gary V. Vaughan <gary@gnu.org>.
16931
16932 2010-12-25  Bruno Haible  <bruno@clisp.org>
16933
16934         roundl-ieee: Make it work on OSF/1 5.1 with cc.
16935         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
16936
16937 2010-12-25  Bruno Haible  <bruno@clisp.org>
16938
16939         truncl-ieee: Make it work on OSF/1 5.1 with cc.
16940         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
16941         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
16942         test whether truncl works according to ISO C 99 with IEC 60559.
16943         * m4/truncl-ieee.m4: New file.
16944         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
16945         m4/signbit.m4.
16946         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
16947
16948 2010-12-25  Bruno Haible  <bruno@clisp.org>
16949
16950         ceill-ieee: Make it work on OSF/1 5.1 with cc.
16951         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
16952         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
16953         test whether ceill works according to ISO C 99 with IEC 60559.
16954         * m4/ceill-ieee.m4: New file.
16955         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
16956         m4/signbit.m4.
16957         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
16958
16959 2010-12-25  Bruno Haible  <bruno@clisp.org>
16960
16961         Ensure all prerequisites of <wchar.h> are included.
16962         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
16963         before <wchar.h>.
16964         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
16965         gl_MBRLEN_NUL_RETVAL): Likewise.
16966         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
16967         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
16968         AC_FUNC_MBRTOWC): Likewise.
16969         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
16970         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
16971         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
16972         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
16973         Likewise.
16974         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
16975         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
16976         (gl_WCHAR_H): Improve comments.
16977         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
16978
16979 2010-12-25  Bruno Haible  <bruno@clisp.org>
16980
16981         strtok_r: Fix C syntax error in autoconf macro.
16982         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
16983         characters in test program.
16984
16985 2010-12-24  Bruno Haible  <bruno@clisp.org>
16986
16987         ceil, trunc, round: Fix gcc warnings.
16988         * lib/ceil.c (MIN): Undefine before redefining.
16989         * lib/trunc.c (MIN): Likewise.
16990         * lib/round.c (MIN): Likewise.
16991         Include <math.h> first.
16992
16993 2010-12-24  Bruno Haible  <bruno@clisp.org>
16994
16995         select tests: Avoid failures on OSF/1 5.1.
16996         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
16997         failure of closing the last socket; it may fail with ECONNRESET.
16998
16999 2010-12-24  Eric Blake  <eblake@redhat.com>
17000
17001         stdint: avoid HP-UX 10.20 preprocessor bug
17002         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
17003         than #if.
17004         * tests/test-floor2.c (main): Likewise.
17005         Reported by Peter O'Gorman.
17006
17007         pipe: make obsoletion transition easier
17008         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
17009         * modules/pipe (Files): Include revived file.
17010         (Include): Drop reference, to mirror getdate's behavior.
17011
17012 2010-12-24  Bruno Haible  <bruno@clisp.org>
17013
17014         sys_socket: Hide mismatch of declarations on NonStop Kernel.
17015         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
17016         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
17017         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17018
17019 2010-12-24  Bruno Haible  <bruno@clisp.org>
17020
17021         gethostname: Ensure declaration on NonStop Kernel.
17022         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
17023         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17024
17025 2010-12-24  Bruno Haible  <bruno@clisp.org>
17026
17027         sys_select: Ensure all necessary types on NonStop Kernel.
17028         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
17029         include <sys/time.h>.
17030         * doc/posix-headers/sys_select.texi: Mention that it's missing on
17031         NonStop Kernel.
17032         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17033
17034 2010-12-24  Bruno Haible  <bruno@clisp.org>
17035
17036         sys_select: Remove unneeded include.
17037         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
17038         have <sys/select.h>.
17039
17040 2010-12-24  Bruno Haible  <bruno@clisp.org>
17041
17042         gethostname: Provide a fallback for HOST_NAME_MAX.
17043         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
17044         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
17045         instead.
17046         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17047
17048 2010-12-24  Bruno Haible  <bruno@clisp.org>
17049
17050         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
17051         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
17052         (SA_RESTART): Likewise.
17053         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17054
17055 2010-12-24  Bruno Haible  <bruno@clisp.org>
17056
17057         signal: Define NSIG.
17058         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
17059         * tests/test-signal.c (nsig): New variable.
17060         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17061
17062 2010-12-24  Bruno Haible  <bruno@clisp.org>
17063
17064         rename, renameat: Avoid test failures on OSF/1 5.1.
17065         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
17066         alternative error codes.
17067         * tests/test-renameat.c (main): Likewise.
17068
17069 2010-12-24  Bruno Haible  <bruno@clisp.org>
17070
17071         *printf: Detect large precisions bug on Solaris 10/SPARC.
17072         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
17073         by Paul Eggert.
17074         * tests/test-snprintf-posix.h (test_function): Add this test code here
17075         too.
17076         * tests/test-sprintf-posix.h (test_function): Likewise.
17077         * tests/test-vasnprintf-posix.c (test_function): Likewise.
17078         * tests/test-vasprintf-posix.c (test_function): Likewise.
17079         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
17080         around by gnulib.
17081         * doc/posix-functions/printf.texi: Likewise.
17082         * doc/posix-functions/snprintf.texi: Likewise.
17083         * doc/posix-functions/sprintf.texi: Likewise.
17084         * doc/posix-functions/vfprintf.texi: Likewise.
17085         * doc/posix-functions/vprintf.texi: Likewise.
17086         * doc/posix-functions/vsnprintf.texi: Likewise.
17087         * doc/posix-functions/vsprintf.texi: Likewise.
17088         * doc/posix-functions/dprintf.texi: Undo last commit.
17089         * doc/posix-functions/vdprintf.texi: Likewise.
17090
17091 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
17092
17093         tests: port test-fdutimensat.c to Solaris 8
17094         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
17095         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
17096         On Solaris 8, it fails with errno == ENOSYS, because there is no
17097         futimens (so it can't use the fd), and there is no lutimens (so it
17098         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
17099
17100         vsnprintf: make more consistent with snprintf; doc fixes
17101
17102         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
17103         the byte count return problem was promoted from the snprintf-posix
17104         to the snprintf module.
17105         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
17106         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
17107         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
17108         * tests/test-snprintf.c (main): Check the byte count returned.
17109         * tests/test-vsnprintf.c (main): Likewise.
17110
17111 2010-12-23  Eric Blake  <eblake@redhat.com>
17112
17113         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
17114         * modules/sigpipe (License): Relax license.
17115
17116 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
17117
17118         doc: document Solaris printf bug with large float precisions
17119         * doc/posix-functions/dprintf.texi (dprintf):
17120         * doc/posix-functions/fprintf.texi (fprintf):
17121         * doc/posix-functions/printf.texi (printf):
17122         * doc/posix-functions/snprintf.texi (snprintf):
17123         * doc/posix-functions/sprintf.texi (sprintf):
17124         * doc/posix-functions/vdprintf.texi (vdprintf):
17125         * doc/posix-functions/vfprintf.texi (vfprintf):
17126         * doc/posix-functions/vprintf.texi (vprintf):
17127         * doc/posix-functions/vsnprintf.texi (vsnprintf):
17128         * doc/posix-functions/vsprintf.texi (vsprintf):
17129         Mention that these functions mishandle large floating point
17130         precisions on Solaris 10.  The same bug is also present in Solaris
17131         8, and I assume earlier.  This causes "cd gnulib-tests; make
17132         check" to fail on Solaris 8 (and I assume, later) when building
17133         the latest coreutils, in test-vasprintf-posix's call to
17134         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
17135         the wide flavors (e.g., wprintf) so this patch just updates the
17136         documentation for the narrow ones.
17137
17138         test-posixtm.c: add two tests
17139         * tests/test-posixtm.c: Add two tests, to highlight the
17140         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
17141         around this bug; this is merely to document it.
17142
17143 2010-12-22  Bruno Haible  <bruno@clisp.org>
17144
17145         getlogin_r: Work around portability problem on OSF/1.
17146         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
17147         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
17148         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
17149         test for a truncated result.
17150         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
17151         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
17152         * modules/getlogin_r (Depends-on): Add memchr.
17153         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
17154
17155 2010-12-22  Bruno Haible  <bruno@clisp.org>
17156
17157         ptsname: Avoid test failure on OSF/1 5.1.
17158         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
17159         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
17160         (same_slave): New function.
17161         (main): Use it to compare ptsname's result with the expected file name.
17162
17163 2010-12-22  Bruno Haible  <bruno@clisp.org>
17164
17165         Port extended stdio modules to HP NonStop Kernel.
17166         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
17167         macros.
17168         * lib/fbufmode.c: Update comments.
17169         * lib/fflush.c: Likewise.
17170         * lib/fpurge.c: Likewise.
17171         * lib/freadable.c: Likewise.
17172         * lib/freadahead.c: Likewise.
17173         * lib/freading.c: Likewise.
17174         * lib/freadptr.c: Likewise.
17175         * lib/freadseek.c: Likewise.
17176         * lib/fseeko.c: Likewise.
17177         * lib/fseterr.c: Likewise.
17178         * lib/fwritable.c: Likewise.
17179         * lib/fwriting.c: Likewise.
17180         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17181
17182 2010-12-22  Bruno Haible  <bruno@clisp.org>
17183
17184         ttyname_r: Work around bug on OSF/1 5.1.
17185         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
17186         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
17187         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
17188         present.
17189         * lib/ttyname_r.c (ttyname_r): Update comments.
17190
17191 2010-12-22  Bruno Haible  <bruno@clisp.org>
17192
17193         round: Implement result sign according to IEEE 754.
17194         * lib/round.c (MIN, MINUS_ZERO): New macros.
17195         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
17196         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
17197         * tests/test-round-ieee.c (main): Likewise.
17198         * tests/test-roundl-ieee.c (main): Likewise.
17199
17200         trunc: Implement result sign according to IEEE 754.
17201         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
17202         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
17203         * tests/test-trunc2.c: Include minus-zero.h.
17204         (MINUS_ZERO): New macro.
17205         (trunc_reference): Keep in sync with lib/trunc.c.
17206         * tests/test-truncf2.c: Include minus-zero.h.
17207         (MINUS_ZERO): New macro.
17208         (truncf_reference): Keep in sync with lib/trunc.c.
17209         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
17210         * tests/test-trunc-ieee.c (main): Likewise.
17211         * tests/test-truncl-ieee.c (main): Likewise.
17212
17213         ceil: Implement result sign according to IEEE 754.
17214         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
17215         (FUNC): Return -0.0 for -1 < x < 0.
17216         * tests/test-ceil2.c: Include minus-zero.h.
17217         (MINUS_ZERO): New macro.
17218         (ceil_reference): Keep in sync with lib/ceil.c.
17219         * tests/test-ceilf2.c: Include minus-zero.h.
17220         (MINUS_ZERO): New macro.
17221         (ceilf_reference): Keep in sync with lib/ceil.c.
17222         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
17223         * tests/test-ceil-ieee.c (main): Likewise.
17224         * tests/test-ceill-ieee.c (main): Likewise.
17225
17226         floor: Implement result sign according to IEEE 754.
17227         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
17228         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
17229         * tests/test-floorf2.c (floorf_reference): Likewise.
17230         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
17231         * tests/test-floor-ieee.c (main): Likewise.
17232         * tests/test-floorl-ieee.c (main): Likewise.
17233
17234 2010-12-22  Bruno Haible  <bruno@clisp.org>
17235
17236         getaddrinfo: Update doc.
17237         * doc/posix-functions/gai_strerror.texi: Return type is also different
17238         on AIX and HP-UX.
17239
17240 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
17241
17242         getaddrinfo, inet_ntop: Update doc for Solaris.
17243         * doc/posix-functions/gai_strerror.texi: Return type is also an
17244         issue on Solaris 9 and earlier.
17245         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
17246         on Solaris 10 and earlier.
17247
17248 2010-12-21  Bruno Haible  <bruno@clisp.org>
17249
17250         New module 'roundl-ieee'.
17251         * modules/roundl-ieee: New file.
17252         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
17253         test whether roundl works according to ISO C 99 with IEC 60559.
17254         * m4/roundl-ieee.m4: New file.
17255         * modules/roundl-ieee-tests: New file.
17256         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
17257         * tests/test-roundl.c (main): Remove signbit tests.
17258         * modules/roundl-tests (Depends-on): Remove signbit.
17259         * doc/posix-functions/roundl.texi: Mention the new module.
17260
17261 2010-12-21  Bruno Haible  <bruno@clisp.org>
17262
17263         New module 'truncl-ieee'.
17264         * modules/truncl-ieee: New file.
17265         * modules/truncl-ieee-tests: New file.
17266         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
17267         * tests/test-truncl.c (main): Remove signbit tests.
17268         * modules/truncl-tests (Depends-on): Remove signbit.
17269         * doc/posix-functions/truncl.texi: Mention the new module.
17270
17271 2010-12-21  Bruno Haible  <bruno@clisp.org>
17272
17273         New module 'ceill-ieee'.
17274         * modules/ceill-ieee: New file.
17275         * modules/ceill-ieee-tests: New file.
17276         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
17277         * tests/test-ceill.c (main): Remove signbit tests.
17278         * modules/ceill-tests (Depends-on): Remove signbit.
17279         * doc/posix-functions/ceill.texi: Mention the new module.
17280
17281 2010-12-21  Bruno Haible  <bruno@clisp.org>
17282
17283         New module 'floorl-ieee'.
17284         * modules/floorl-ieee: New file.
17285         * modules/floorl-ieee-tests: New file.
17286         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
17287         * tests/test-floorl.c (main): Remove signbit tests.
17288         * modules/floorl-tests (Depends-on): Remove signbit.
17289         * doc/posix-functions/floorl.texi: Mention the new module.
17290
17291 2010-12-21  Bruno Haible  <bruno@clisp.org>
17292
17293         New module 'round-ieee'.
17294         * modules/round-ieee: New file.
17295         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
17296         whether round works according to ISO C 99 with IEC 60559.
17297         * m4/round-ieee.m4: New file.
17298         * modules/round-ieee-tests: New file.
17299         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
17300         * tests/test-round1.c (main): Remove signbit tests.
17301         * modules/round-tests (Depends-on): Remove 'signbit'.
17302         * doc/posix-functions/round.texi: Mention the new module.
17303
17304 2010-12-21  Bruno Haible  <bruno@clisp.org>
17305
17306         New module 'trunc-ieee'.
17307         * modules/trunc-ieee: New file.
17308         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
17309         whether trunc works according to ISO C 99 with IEC 60559.
17310         * m4/trunc-ieee.m4: New file.
17311         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
17312         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
17313         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
17314         * modules/trunc-ieee-tests: New file.
17315         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
17316         * tests/test-trunc1.c (main): Remove signbit tests.
17317         * modules/trunc-tests (Depends-on): Remove 'signbit'.
17318         * doc/posix-functions/trunc.texi: Mention the new module.
17319
17320 2010-12-21  Bruno Haible  <bruno@clisp.org>
17321
17322         New module 'ceil-ieee'.
17323         * modules/ceil-ieee: New file.
17324         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
17325         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
17326         ISO C 99 with IEC 60559.
17327         * m4/ceil-ieee.m4: New file.
17328         * modules/ceil (Files): Add lib/ceil.c.
17329         (Depends-on): Add 'float'.
17330         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
17331         * lib/math.in.h (ceil): New declaration.
17332         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
17333         REPLACE_CEIL.
17334         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
17335         * modules/ceil-ieee-tests: New file.
17336         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
17337         * tests/test-math-c++.cc: Check the signature of 'ceil'.
17338         * doc/posix-functions/ceil.texi: Mention the new module.
17339
17340 2010-12-21  Bruno Haible  <bruno@clisp.org>
17341
17342         New module 'floor-ieee'.
17343         * modules/floor-ieee: New file.
17344         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
17345         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
17346         ISO C 99 with IEC 60559.
17347         * m4/floor-ieee.m4: New file.
17348         * modules/floor (Files): Add lib/floor.c.
17349         (Depends-on): Add 'float'.
17350         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
17351         * lib/math.in.h (floor): New declaration.
17352         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
17353         REPLACE_FLOOR.
17354         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
17355         * modules/floor-ieee-tests: New file.
17356         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
17357         * tests/test-math-c++.cc: Check the signature of 'floor'.
17358         * doc/posix-functions/floor.texi: Mention the new module.
17359
17360 2010-12-21  Bruno Haible  <bruno@clisp.org>
17361
17362         New module 'roundf-ieee'.
17363         * modules/roundf-ieee: New file.
17364         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
17365         test whether roundf works according to ISO C 99 with IEC 60559.
17366         * m4/roundf-ieee.m4: New file.
17367         * modules/roundf-ieee-tests: New file.
17368         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
17369         * tests/test-roundf1.c (main): Remove signbit tests.
17370         * modules/roundf-tests (Depends-on): Remove 'signbit'.
17371         * doc/posix-functions/roundf.texi: Mention the new module.
17372
17373 2010-12-21  Bruno Haible  <bruno@clisp.org>
17374
17375         New module 'truncf-ieee'.
17376         * modules/truncf-ieee: New file.
17377         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
17378         test whether truncf works according to ISO C 99 with IEC 60559.
17379         * m4/truncf-ieee.m4: New file.
17380         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
17381         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
17382         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
17383         * modules/truncf-ieee-tests: New file.
17384         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
17385         * tests/test-truncf1.c (main): Remove signbit tests.
17386         * modules/truncf-tests (Depends-on): Remove 'signbit'.
17387         * doc/posix-functions/truncf.texi: Mention the new module.
17388
17389 2010-12-21  Bruno Haible  <bruno@clisp.org>
17390
17391         New module 'ceilf-ieee'.
17392         * modules/ceilf-ieee: New file.
17393         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
17394         test whether ceilf works according to ISO C 99 with IEC 60559.
17395         * m4/ceilf-ieee.m4: New file.
17396         * modules/ceilf-ieee-tests: New file.
17397         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
17398         * tests/test-ceilf1.c (main): Remove signbit tests.
17399         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
17400         * doc/posix-functions/ceilf.texi: Mention the new module.
17401
17402 2010-12-21  Bruno Haible  <bruno@clisp.org>
17403
17404         New module 'floorf-ieee'.
17405         * modules/floorf-ieee: New file.
17406         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
17407         test whether floorf works according to ISO C 99 with IEC 60559.
17408         * m4/floorf-ieee.m4: New file.
17409         * modules/floorf-ieee-tests: New file.
17410         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
17411         * tests/test-floorf1.c (main): Remove signbit tests.
17412         * modules/floorf-tests (Depends-on): Remove 'signbit'.
17413         * doc/posix-functions/floorf.texi: Mention the new module.
17414
17415 2010-12-21  Bruno Haible  <bruno@clisp.org>
17416
17417         Support for minus zero in autoconf macros.
17418         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
17419         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
17420         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
17421         * tests/minus-zero.h: Update comments.
17422
17423 2010-12-21  Bruno Haible  <bruno@clisp.org>
17424
17425         Tests for module 'ceil'.
17426         * modules/ceil-tests: New file.
17427         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
17428         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
17429
17430 2010-12-21  Bruno Haible  <bruno@clisp.org>
17431
17432         Tests for module 'floor'.
17433         * modules/floor-tests: New file.
17434         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
17435         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
17436
17437 2010-12-21  Bruno Haible  <bruno@clisp.org>
17438
17439         math: Fix indentation.
17440         * lib/math.in.h (floorf): Fix indentation.
17441
17442 2010-12-21  Bruno Haible  <bruno@clisp.org>
17443
17444         Fix cross-compilation guesses on Solaris.
17445         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
17446         not match "solaris2.10".
17447         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
17448         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
17449         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
17450
17451 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
17452
17453         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
17454         This fixes a problem observed with the latest coreutils snapshot
17455         that caused a test to fail on Solaris 8.  src/csplit.c's call
17456         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
17457         earlier, instead of returning the number of bytes that would have
17458         been generated; this causes csplit to incorrectly report memory
17459         exhaustion.
17460         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
17461         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
17462         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
17463         comments to match.
17464         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
17465         Fix typo in matching older versions of Solaris: "solaris2.10"
17466         is matched by the shell pattern "solaris2.[0-9]*".  This matters
17467         only for guessing while cross-compiling.
17468         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
17469
17470 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
17471
17472         ftoastr: fix comment again
17473         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
17474         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
17475         Also, simplify example a bit by using flags = 0.
17476
17477 2010-12-20  Bruno Haible  <bruno@clisp.org>
17478
17479         round*, trunc*: Update documentation regarding glibc.
17480         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
17481         * doc/posix-functions/round.texi: Likewise.
17482         * doc/posix-functions/roundl.texi: Likewise.
17483         * doc/posix-functions/truncf.texi: Likewise.
17484         * doc/posix-functions/trunc.texi: Likewise.
17485         * doc/posix-functions/truncl.texi: Likewise.
17486
17487 2010-12-20  Bruno Haible  <bruno@clisp.org>
17488
17489         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
17490         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
17491         * doc/posix-functions/round.texi: Likewise.
17492         * doc/posix-functions/roundl.texi: Likewise.
17493
17494 2010-12-20  Bruno Haible  <bruno@clisp.org>
17495
17496         ttyname_r: Add missing declaration on HP-UX 11.
17497         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
17498         HAVE_TTYNAME_R.
17499         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
17500         declared. Set HAVE_TTYNAME_R always.
17501         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17502         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
17503         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
17504         HAVE_TTYNAME_R.
17505         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
17506
17507 2010-12-20  Bruno Haible  <bruno@clisp.org>
17508
17509         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
17510         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
17511         * doc/posix-functions/getlogin_r.texi: Likewise.
17512         * tests/test-getlogin.c: Include <errno.h>.
17513         (main): Avoid test failure on HP-UX 11.11.
17514         * tests/test-getlogin_r.c (main): Likewise.
17515
17516 2010-12-20  Bruno Haible  <bruno@clisp.org>
17517
17518         getlogin_r: Add missing declaration on HP-UX 11.
17519         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
17520         declared also when it exists as a function.
17521         * doc/posix-functions/getlogin_r.texi: Document this workaround.
17522
17523 2010-12-20  Bruno Haible  <bruno@clisp.org>
17524
17525         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
17526         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
17527         through wcrtomb.
17528
17529 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
17530
17531         ftoastr: fix comment
17532         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
17533         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
17534
17535 2010-12-19  Bruno Haible  <bruno@clisp.org>
17536
17537         isnan: Ensure it is a macro.
17538         * lib/math.in.h (isnan): Define as a macro if not already a macro.
17539         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
17540         Solaris.
17541
17542 2010-12-19  Bruno Haible  <bruno@clisp.org>
17543
17544         ldexpl test: Fix link error on OSF/1 5.1.
17545         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
17546
17547 2010-12-19  Bruno Haible  <bruno@clisp.org>
17548
17549         wctype: Make it work in C++ mode on OSF/1 5.1.
17550         * lib/wctype.in.h (iswblank): Declare but not define here.
17551         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
17552         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
17553         * modules/wctype (Files): Add lib/iswblank.c.
17554
17555 2010-12-19  Bruno Haible  <bruno@clisp.org>
17556
17557         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
17558         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
17559         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
17560
17561 2010-12-19  Bruno Haible  <bruno@clisp.org>
17562
17563         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
17564         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
17565         _POSIX_PII_SOCKET.
17566         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
17567         * doc/posix-functions/recvfrom.texi: Likewise.
17568         * doc/posix-functions/send.texi: Likewise.
17569         * doc/posix-functions/sendto.texi: Likewise.
17570
17571 2010-12-19  Bruno Haible  <bruno@clisp.org>
17572
17573         tcgetsid: Add missing declaration on OSF/1 5.1.
17574         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
17575         HAVE_TCGETSID.
17576         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
17577         Don't set HAVE_TCGETSID.
17578         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
17579         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
17580         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
17581         HAVE_TCGETSID.
17582         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
17583
17584 2010-12-19  Bruno Haible  <bruno@clisp.org>
17585
17586         stdio: Fix problem with popen() declaration on OSF/1 5.1.
17587         * lib/stdio.in.h: During the include_next statement, let recursive
17588         includes of this file include only the system header file.
17589
17590 2010-12-19  Bruno Haible  <bruno@clisp.org>
17591
17592         iconv_open: Fix regression from 2010-12-04.
17593         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
17594         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
17595
17596 2010-12-19  Bruno Haible  <bruno@clisp.org>
17597
17598         stdbool test: Avoid a gcc warning.
17599         * tests/test-stdbool.c (main): Fail if e1 is false.
17600         Reported by Jim Meyering.
17601
17602 2010-12-19  Jim Meyering  <meyering@redhat.com>
17603
17604         setenv: restore to working order
17605         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
17606         mistakenly removed.
17607         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
17608         HAVE_SETENV.
17609         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
17610         HAVE_SETENV.
17611
17612 2010-12-19  Bruno Haible  <bruno@clisp.org>
17613
17614         Document some different function declarations on OSF/1 5.1.
17615         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
17616         * doc/posix-functions/inet_ntop.texi: Likewise.
17617         * doc/posix-functions/gethostname.texi: Likewise.
17618         * lib/unistd.in.h (gethostname): Update comment.
17619
17620 2010-12-19  Bruno Haible  <bruno@clisp.org>
17621
17622         doc: Mention vasprintf-posix module.
17623         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
17624         the 'vasprintf-posix' module.
17625         * doc/glibc-functions/vasprintf.texi: Likewise.
17626
17627 2010-12-19  Bruno Haible  <bruno@clisp.org>
17628
17629         unsetenv: Add missing declaration on OSF/1 5.1.
17630         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
17631         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
17632         Don't set HAVE_UNSETENV. In the test program, set _BSD.
17633         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
17634         not HAVE_UNSETENV.
17635         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
17636         HAVE_UNSETENV.
17637         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
17638
17639 2010-12-19  Bruno Haible  <bruno@clisp.org>
17640
17641         setenv: Add missing declaration on OSF/1 5.1.
17642         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
17643         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
17644         declared. Don't set HAVE_SETENV.
17645         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
17646         not HAVE_SETENV.
17647         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
17648         HAVE_SETENV.
17649         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
17650
17651 2010-12-19  Bruno Haible  <bruno@clisp.org>
17652
17653         nl_langinfo tests: Avoid gcc warning.
17654         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
17655
17656 2010-12-19  Bruno Haible  <bruno@clisp.org>
17657
17658         mknod: Avoid error in C++ mode on OSF/1 with GCC.
17659         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
17660         _GL_CXXALIAS_SYS.
17661
17662 2010-12-19  Bruno Haible  <bruno@clisp.org>
17663
17664         stdbool: Relax test.
17665         * tests/test-stdbool.c (e): Don't require that casts from a variable's
17666         address to 'bool' work in static initializer, for compilers other than
17667         GCC.
17668
17669 2010-12-19  Bruno Haible  <bruno@clisp.org>
17670
17671         ftello: Add missing declaration on OSF/1 5.1.
17672         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
17673         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
17674         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
17675         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
17676         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
17677
17678 2010-12-19  Bruno Haible  <bruno@clisp.org>
17679
17680         fseeko: Add missing declaration on OSF/1 5.1.
17681         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
17682         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
17683         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
17684         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
17685         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
17686
17687 2010-12-19  Bruno Haible  <bruno@clisp.org>
17688
17689         fchdir: Add missing declaration on OSF/1 5.1.
17690         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
17691         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
17692         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
17693         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
17694         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
17695
17696 2010-12-19  Bruno Haible  <bruno@clisp.org>
17697
17698         relocatable-prog-wrapper: Separate from relocatable-prog.
17699         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
17700         uninstall-relocwrapper rule here.
17701         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
17702         Reported by Ian Beckwith <ianb@erislabs.net>.
17703
17704 2010-12-19  Bruno Haible  <bruno@clisp.org>
17705
17706         unistr/u8-mbsnlen: Add missing dependency.
17707         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
17708         Reported by Ian Beckwith <ianb@erislabs.net>.
17709
17710 2010-12-19  Bruno Haible  <bruno@clisp.org>
17711
17712         iconv: Make it possible again to use this module without 'iconv-h'.
17713         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
17714         if it is not defined.
17715         Reported by Ian Beckwith <ianb@erislabs.net>.
17716
17717 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
17718
17719         acl: port to Solaris 8 when copying from tmpfs to ufs
17720         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
17721         error number.  Problem observed on Solaris 8 with latest
17722         coreutils, with "mv A B", where A is on a tmpfs file system and B
17723         is on a ufs file system.  This caused coreutils' mv/part-symlink
17724         test to fail.
17725
17726         tests: set fail=0 at start
17727         * tests/init.sh (setup_): Move fail=0 initialization here ...
17728         (mktempd_): ... from here, so that tests can rely on fail being
17729         set to 0 initially.  This fixes a problem in coreutils; see:
17730         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
17731
17732 2010-12-18  Bruno Haible  <bruno@clisp.org>
17733
17734         memmem-simple: Stylistic changes.
17735         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
17736         Fix preprocessor directive indentation.
17737
17738 2010-12-15  Pádraig Brady <P@draigBrady.com>
17739
17740         memmem, memmem-simple: reorganize and expand empty needle check
17741         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
17742         functional checks to memmem-simple so that one has a fully functional
17743         memmem by using just this module.
17744         Restrict the performance only check to the memmem module.
17745         Also expand the empty needle check to ensure the correct
17746         pointer is returned, not just a non NULL pointer.
17747         * doc/glibc-functions/memmem.texi: Rearrange the portability
17748         documentation to correlate with the rearranged checks.
17749         Clarify exactly how the memmem and memmem-simple modules
17750         relate to each other.
17751
17752 2010-12-15  Pádraig Brady <P@draigBrady.com>
17753             Bruno Haible  <bruno@clisp.org>
17754
17755         Improve cross-compilation guesses for uClibc.
17756         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
17757         that uClibc does not have the glibc bug.
17758         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
17759         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
17760
17761 2010-12-14  Eric Blake  <eblake@redhat.com>
17762
17763         configmake: provide fallbacks for oldest supported autotools
17764         * m4/configmake.m4: New file.
17765         * modules/configmake (Files): Ship it.
17766         (configure.ac): Use it to guarantee fallbacks.
17767
17768 2010-12-13  Pádraig Brady <P@draigBrady.com>
17769
17770         read-file: Improve handling of large files
17771         * lib/read-file.c (fread_file): Minimize realloc()s
17772         for regular files, and better manage sizes around SIZE_MAX.
17773
17774 2010-12-13  Eric Blake  <eblake@redhat.com>
17775
17776         cloexec, fcntl: relax license
17777         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
17778         consent from all contributors.
17779         * modules/fcntl (License): Likewise.
17780
17781 2010-12-10  Bruno Haible  <bruno@clisp.org>
17782
17783         Tests for module 'pipe-posix'.
17784         * modules/pipe-posix-tests: New file.
17785         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
17786
17787 2010-12-10  Bruno Haible  <bruno@clisp.org>
17788
17789         pipe-posix: Make it work in C++ mode.
17790         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
17791         (pipe): Use common idiom, not a macro definition.
17792         * lib/pipe.c: New file.
17793         * m4/pipe.m4: New file.
17794         * modules/pipe-posix (Description): Enhance.
17795         (Files): Add lib/pipe.c, m4/pipe.m4.
17796         (configure.ac): Invoke gl_FUNC_PIPE.
17797         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
17798         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
17799         * tests/test-unistd-c++.cc: Check the signature of pipe.
17800
17801 2010-12-10  Bruno Haible  <bruno@clisp.org>
17802
17803         Rename module 'pipe' to 'spawn-pipe'.
17804         * modules/spawn-pipe: New file, renamed from modules/pipe.
17805         (Files, configure.ac, Makefile.am): Update.
17806         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
17807         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
17808         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
17809         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
17810         "spawn-pipe.h" instead of "pipe.h".
17811         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
17812         to gl_SPAWN_PIPE.
17813         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
17814         (Files, Makefile.am): Update.
17815         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
17816         Update.
17817         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
17818         Include "spawn-pipe.h" instead of "pipe.h".
17819         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
17820         * lib/javacomp.c: Likewise.
17821         * lib/javaversion.c: Likewise.
17822         * lib/pipe-filter-gi.c: Likewise.
17823         * lib/pipe-filter-ii.c: Likewise.
17824         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
17825         * modules/javacomp (Depends-on): Likewise.
17826         * modules/javaversion (Depends-on): Likewise.
17827         * modules/pipe-filter-gi (Depends-on): Likewise.
17828         * modules/pipe-filter-ii (Depends-on): Likewise.
17829         * MODULES.html.sh (Executing programs): Update.
17830         * NEWS: Mention the change.
17831
17832 2010-12-10  Eric Blake  <eblake@redhat.com>
17833
17834         pipe-posix: new module
17835         * modules/pipe-posix: New file.
17836         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
17837         (gl_UNISTD_H): Check for declaration.
17838         * modules/unistd (Makefile.am): Substitute it.
17839         * lib/unistd.in.h (pipe): Provide it for mingw.
17840         * doc/posix-functions/pipe.texi (pipe): Update documentation.
17841         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
17842
17843 2010-12-07  Bruno Haible  <bruno@clisp.org>
17844
17845         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
17846         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
17847         u8_strcmp_gnu.
17848         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
17849
17850 2010-12-06  Bruno Haible  <bruno@clisp.org>
17851
17852         Update internal documentation.
17853         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
17854
17855 2010-12-04  Bruno Haible  <bruno@clisp.org>
17856
17857         Put more information about failed tests into the test return codes.
17858         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
17859         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
17860         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
17861         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
17862         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
17863         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
17864         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
17865         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
17866         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
17867         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
17868         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
17869         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
17870         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
17871         * m4/stdint.m4 (gl_STDINT_H): Likewise.
17872         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
17873         returns a bit mask.
17874         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
17875         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
17876         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
17877         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
17878         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
17879         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
17880         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
17881         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
17882         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
17883         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
17884         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
17885         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
17886         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
17887         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
17888         * m4/link.m4 (gl_FUNC_LINK): Likewise.
17889         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
17890         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
17891         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
17892         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
17893         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
17894         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
17895         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
17896         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
17897         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
17898         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
17899         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
17900         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
17901         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
17902         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
17903         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
17904         gl_PRINTF_PRECISION): Likewise.
17905         * m4/regex.m4 (gl_REGEX): Likewise.
17906         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
17907         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
17908         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
17909         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
17910         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
17911         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
17912         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
17913         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
17914         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
17915         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
17916         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
17917         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
17918         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
17919         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
17920         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
17921         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
17922         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
17923         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
17924         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
17925         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
17926         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
17927         enumerated value.
17928         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
17929
17930 2010-12-04  Bruno Haible  <bruno@clisp.org>
17931
17932         Update for Solaris 11 2010-11.
17933         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
17934         Express, released in November 2010.
17935
17936 2010-12-04  Bruno Haible  <bruno@clisp.org>
17937
17938         nproc: Relax license.
17939         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
17940         and Paul Eggert.
17941         Requested by Ludovic Courtès <ludo@gnu.org>.
17942
17943 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
17944
17945         utimecmp: fine-grained src to nearby coarse-grained dest
17946
17947         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
17948         and the source is on a file system with higher-resolution time
17949         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
17950         not work, and the time stamps are close together, the algorithm to
17951         determine the exact resolution from the read-back mtime was buggy:
17952         it had a "!=" where it should have had an "==".  This bug has been
17953         in the code ever since it was introduced to gnulib.
17954         Problem reported by Dan Jacobson in
17955         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
17956
17957 2010-11-30  Bruno Haible  <bruno@clisp.org>
17958
17959         strerror_r-posix: Fix autoconf test.
17960         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
17961
17962 2010-11-28  Bruno Haible  <bruno@clisp.org>
17963             Paul Eggert  <eggert@cs.ucla.edu>
17964
17965         Tests for module 'getdomainname'.
17966         * modules/getdomainname-tests: New file.
17967         * tests/test-getdomainname.c: New file, based on
17968         tests/test-gethostname.c.
17969
17970 2010-11-28  Bruno Haible  <bruno@clisp.org>
17971             Paul Eggert  <eggert@cs.ucla.edu>
17972
17973         getdomainname: Use the system function when possible.
17974         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
17975         (getdomainname): Replace if needed. Provide the declaration if it is
17976         missing. Don't use _GL_CXXALIAS_SYS_CAST.
17977         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
17978         (getdomainname): When the system has getdomainname, call the system
17979         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
17980         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
17981         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
17982         found in libnsl. Look for the declaration also in <netdb.h>. Replace
17983         the function if its second argument is of type 'int' or if it is found
17984         in libnsl.
17985         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
17986         <sys/systeminfo.h> and sysinfo().
17987         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
17988         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17989         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
17990         HAVE_GETDOMAINNAME.
17991         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
17992         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
17993         * doc/glibc-functions/getdomainname.texi: Document the problems with
17994         the getdomainname declaration.
17995
17996 2010-11-28  Bruno Haible  <bruno@clisp.org>
17997
17998         sys_socket: Ensure ss_family field on AIX.
17999         * lib/sys_socket.in.h (ss_family): New macro definition.
18000         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
18001         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
18002         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
18003         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
18004         * modules/sys_socket (Makefile.am): Substitute
18005         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
18006         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
18007
18008 2010-11-27  Bruno Haible  <bruno@clisp.org>
18009
18010         readline: Improve configure output.
18011         * m4/readline.m4 (gl_FUNC_READLINE): Make the
18012         "checking for readline..." result understandable.
18013
18014 2010-11-27  Bruno Haible  <bruno@clisp.org>
18015
18016         *printf-posix: Detect a bug on Solaris 10/x86.
18017         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
18018         for floating-point output.
18019         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
18020         directive.
18021         * tests/test-snprintf-posix.h (test_function): Likewise.
18022         * tests/test-sprintf-posix.h (test_function): Likewise.
18023         * tests/test-vasprintf-posix.c (test_function): Likewise.
18024         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
18025         * doc/posix-functions/printf.texi: Likewise.
18026         * doc/posix-functions/snprintf.texi: Likewise.
18027         * doc/posix-functions/sprintf.texi: Likewise.
18028         * doc/posix-functions/vfprintf.texi: Likewise.
18029         * doc/posix-functions/vprintf.texi: Likewise.
18030         * doc/posix-functions/vsnprintf.texi: Likewise.
18031         * doc/posix-functions/vsprintf.texi: Likewise.
18032         * doc/glibc-functions/obstack_printf.texi: Likewise.
18033         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
18034
18035 2010-11-27  Bruno Haible  <bruno@clisp.org>
18036
18037         Fix link error when module libunistring-optional is in use.
18038         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
18039         * modules/striconveha-tests (Makefile.am): Likewise.
18040
18041 2010-11-27  Bruno Haible  <bruno@clisp.org>
18042
18043         regex: Mention link dependencies.
18044         * modules/regex (Link): New section.
18045         * modules/rpmatch (Link): Likewise.
18046         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
18047
18048 2010-11-27  Bruno Haible  <bruno@clisp.org>
18049
18050         ftoastr: Fix compilation error on Solaris.
18051         * lib/ftoastr.c: Include <config.h>.
18052
18053 2010-11-27  Bruno Haible  <bruno@clisp.org>
18054
18055         getloadavg: Update documentation.
18056         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
18057
18058 2010-11-27  Bruno Haible  <bruno@clisp.org>
18059
18060         sys_socket: Fix test whether the functions are declared.
18061         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
18062         not <sys/select.h>.
18063
18064 2010-11-27  Bruno Haible  <bruno@clisp.org>
18065
18066         getpass: Make sure to get system declaration on some platforms.
18067         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
18068         gl_USE_SYSTEM_EXTENSIONS.
18069         * modules/getpass (Depends-on): Add extensions.
18070
18071 2010-11-26  Bruno Haible  <bruno@clisp.org>
18072
18073         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
18074         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
18075         'iconv' module is present.
18076         (ICONV_CONST): New macro.
18077         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
18078         ICONV_CONST.
18079         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
18080         set ICONV_CONST.
18081         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
18082         here.
18083         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
18084         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
18085         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
18086         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
18087         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
18088         present.
18089
18090 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
18091
18092         ftoastr: comment fix
18093         * lib/ftoastr.c: "little" -> "little or no" in comment
18094
18095 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
18096
18097         stdint: port to GCC 4.3 + OSX + Octave
18098         On this platform, stdint.h is buggy and defines int64_t to long
18099         long int.  The replacement defined it to long int, causing
18100         problems with C++ style name mangling.  Instead, trust the system
18101         definition if INT64_MAX is defined, and likewise for the unsigned
18102         variant.   Problem reported by Jarno Rajahalme in
18103         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
18104         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
18105         and don't mess with int64_t and INT64_MAX in this case.
18106         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
18107
18108 2010-11-24  Bruno Haible  <bruno@clisp.org>
18109
18110         doc: Corrections regarding MacOS X 10.4 and 10.5.
18111         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
18112         MacOS X.
18113         Reported by Simon Josefsson.
18114
18115 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
18116
18117         Uninstall ".bin" files installed by relocwrapper.
18118         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
18119         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
18120         unless it is already there.
18121
18122 2010-11-21  Bruno Haible  <bruno@clisp.org>
18123
18124         Update for NetBSD 5.0.
18125         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
18126         NetBSD; the test fails on NetBSD 5.0.
18127         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
18128         about NetBSD.
18129
18130 2010-11-21  Bruno Haible  <bruno@clisp.org>
18131
18132         Update for HP-UX 11.23 and HP-UX 11.31.
18133         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
18134         HP-UX.
18135
18136 2010-11-21  Bruno Haible  <bruno@clisp.org>
18137
18138         Update for MacOS X 10.5.
18139         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
18140         MacOS X; the test fails on MacOS X 10.5.8.
18141         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
18142         about MacOS X.
18143
18144 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
18145
18146         bootstrap: add bootstrap_sync option.
18147         See discussion at
18148         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
18149         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
18150         * build-aux/bootstrap: Accept --bootstrap-sync to update
18151         bootstrap if it is not identical to the local gnulib's
18152         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
18153         enable this by default.  Accept --no-bootstrap-sync to disable
18154         it.
18155
18156 2010-11-20  Bruno Haible  <bruno@clisp.org>
18157
18158         Ensure that <features.h> is included before __GLIBC__ is tested.
18159         * lib/printf-parse.h: Include <features.h>.
18160         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
18161         Reported by Mike Frysinger <vapier@gentoo.org>.
18162
18163         Ensure that <features.h> is included before __GLIBC__ is tested.
18164         * lib/wchar.in.h: Include <features.h>.
18165         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
18166         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
18167         Reported by Mike Frysinger <vapier@gentoo.org>.
18168
18169         Ensure that <features.h> is included before __GLIBC__ is tested.
18170         * lib/arpa_inet.in.h: Include <features.h>.
18171         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
18172         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
18173         Reported by Mike Frysinger <vapier@gentoo.org>.
18174
18175         Ensure that <features.h> is included before __GLIBC__ is tested.
18176         * build-aux/link-warning.h: Include <features.h>.
18177         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
18178         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
18179         Reported by Mike Frysinger <vapier@gentoo.org>.
18180
18181         Ensure that <features.h> is included before __GLIBC__ is tested.
18182         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
18183         Reported by Mike Frysinger <vapier@gentoo.org>.
18184
18185 2010-11-20  Bruno Haible  <bruno@clisp.org>
18186
18187         memmem: Fix autoconf test.
18188         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
18189
18190 2010-11-20  Bruno Haible  <bruno@clisp.org>
18191
18192         Port to uClibc.
18193         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
18194         * lib/fcntl.in.h: Likewise.
18195         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
18196         * lib/mbrtowc.c (mbrtowc): Likewise.
18197         * lib/relocatable.c (find_shared_library_fullname): Likewise.
18198         * lib/strerror_r.c: Likewise.
18199         * lib/unistr/u8-strnlen.c: Likewise.
18200         * lib/vasnprintf.c (decimal_point_char): Likewise.
18201         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
18202         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
18203         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
18204         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
18205         * tests/test-sigaction.c (handler, main): Likewise.
18206         * lib/freading.h: Treat uClibc like a non-glibc platform.
18207         * lib/freading.c: Likewise.
18208         * lib/gettext.h: Likewise.
18209         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
18210         Likewise.
18211         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
18212         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
18213         * lib/propername.c (proper_name_utf8): Likewise.
18214         * lib/spawn.in.h: Likewise.
18215         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
18216         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
18217         mem_cd_iconveh_internal): Likewise.
18218         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
18219         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
18220         strstr, strcasestr): Likewise.
18221         * lib/unicodeio.c (unicode_to_mb): Likewise.
18222         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
18223         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
18224         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
18225         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
18226         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
18227         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
18228         * lib/unistr/u8-stpncpy.c: Likewise.
18229         * lib/vasnprintf.c (VASNPRINTF): Likewise.
18230         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
18231         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
18232         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
18233         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
18234         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
18235         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
18236         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
18237         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
18238         Likewise.
18239         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
18240         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
18241         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
18242         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
18243         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
18244         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
18245         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
18246         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
18247         * tests/test-getopt.h (OPTIND_MIN): Likewise.
18248         * tests/test-striconveha.c (main): Likewise.
18249         * tests/test-vasnprintf-posix.c (test_function): Likewise.
18250         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
18251         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
18252         * doc/posix-functions/getline.texi: Likewise.
18253         Reported by Mike Frysinger <vapier@gentoo.org>.
18254
18255 2010-11-20  Bruno Haible  <bruno@clisp.org>
18256
18257         nproc: Fix condition.
18258         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
18259         HAVE_PTHREAD_AFFINITY_NP.
18260
18261 2010-11-20  Bruno Haible  <bruno@clisp.org>
18262
18263         Fix a comment.
18264         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
18265
18266 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
18267
18268         ftoastr: don't assume snprintf
18269         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
18270         Implement a subset of snprintf here, by using sprintf safely.
18271         * modules/ftoastr (Depends-on): Remove snprintf.
18272
18273 2010-11-19  Jim Meyering  <meyering@redhat.com>
18274
18275         test-rename.h: fix compilation failure
18276         * tests/test-rename.h (test_rename): Add omitted "}".
18277
18278 2010-11-17  Jim Meyering  <meyering@redhat.com>
18279
18280         maint.mk: add a URL discussing the no-@acronym policy
18281         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
18282
18283 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
18284
18285         ftoastr: depend on snprintf, improve comments
18286         * lib/ftoastr.c: Also mention Loitsch's draft.
18287         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
18288         needed in the current implementation, but it might simplify
18289         speeding up the code later.
18290         * modules/ftoastr: Depend on snprintf; this improves portability.
18291         Suggested by Bruno Haible in the same email.
18292
18293         ftoastr: port to hosts lacking strtof and strtold
18294         Problem reported by Bruno Haible in
18295         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
18296         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
18297         environment and strtold (and presumably strtof) are not available.
18298         * modules/ftoastr (Files): Add m4/c-strtod.m4.
18299         (configure.ac): Require gl_C99_STRTOLD.
18300
18301 2010-11-18  Bruno Haible  <bruno@clisp.org>
18302
18303         c-strtold: Avoid link error on AIX 7.
18304         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
18305         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
18306         (gl_C_STRTOLD): Test whether strtold_l exists.
18307         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
18308
18309 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
18310
18311         intprops: new macro INT_BITS_STRLEN_BOUND
18312         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
18313         ftoastr.h.  This exposes an internal of intprops.h that was formerly
18314         not exposed.  Also, it uses a slightly tighter bound than before;
18315         though this makes no practical difference, we might as well be as
18316         tight as we easily can.
18317
18318         ftoastr: new module, for lossless conversion of floats to short strings
18319         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
18320         * modules/ftoastr: New files.
18321
18322 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
18323
18324         bootstrap: port to Solaris sed
18325         * build-aux/bootstrap (get_version): Port to Solaris sed.
18326         See Ralf Wildenhues's note in
18327         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
18328
18329 2010-11-14  Jim Meyering  <meyering@redhat.com>
18330
18331         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
18332         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
18333         and move definition closer to sole use.
18334
18335 2010-11-13  Jim Meyering  <meyering@redhat.com>
18336
18337         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
18338         Now we require at least autoconf-2.59, which means the work-around
18339         is no longer needed.
18340         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
18341         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
18342         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
18343         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
18344         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
18345
18346 2010-11-13  Bruno Haible  <bruno@clisp.org>
18347
18348         rename, renameat: Avoid test failures at NFS mounted locations.
18349         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
18350         functions.
18351         (test_rename): Use assert_nonexistent.
18352         * tests/test-rename.c: Include <dirent.h>.
18353         * tests/test-renameat.c: Likewise.
18354         Reported by Gary V. Vaughan <gary@gnu.org>.
18355
18356         rename, renameat: Document Linux bug with NFS
18357         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
18358         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
18359         * doc/posix-functions/renameat.texi: Likewise.
18360         Suggested by Eric Blake.
18361
18362 2010-11-13  Bruno Haible  <bruno@clisp.org>
18363
18364         rename test: Add comments.
18365         * tests/test-rename.h (test_rename): Add structure and comments.
18366
18367 2010-11-13  Eric Blake  <eblake@redhat.com>
18368
18369         maintainer-makefile: cover a few more files
18370         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
18371         scripts generated within C files, for libvirt.
18372
18373 2010-11-13  Bruno Haible  <bruno@clisp.org>
18374
18375         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
18376         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
18377         character, return the number of bytes that belong together, not always
18378         1.
18379         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
18380         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
18381         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
18382         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
18383         number of bytes of an invalid character.
18384         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
18385         (main): Invoke it.
18386         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
18387         results.
18388         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
18389         malformed byte sequences.
18390         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
18391         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
18392         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
18393         Reported by Ben Pfaff and Paolo Bonzini.
18394
18395 2010-11-13  Bruno Haible  <bruno@clisp.org>
18396
18397         openat: Work around glibc bug with fchownat() and empty file names.
18398         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
18399         (gl_FUNC_FCHOWNAT): Invoke it.
18400         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
18401         * doc/posix-functions/fchownat.texi: Document the glibc bug.
18402         Reported by Gary V. Vaughan <gary@gnu.org>.
18403
18404 2010-11-13  Bruno Haible  <bruno@clisp.org>
18405
18406         openat: Ensure autoconf macro ordering.
18407         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
18408         gl_USE_SYSTEM_EXTENSIONS.
18409         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
18410
18411 2010-11-13  Bruno Haible  <bruno@clisp.org>
18412
18413         Update comments.
18414         * lib/unistr/u8-check.c: Update file name in comments.
18415         * lib/unistr/u8-mblen.c: Likewise.
18416         * lib/unistr/u8-prev.c: Likewise.
18417         * lib/unistr/u8-strmblen.c: Likewise.
18418         * lib/unistr/u8-strmbtouc.c: Likewise.
18419
18420 2010-11-13  Jim Meyering  <meyering@redhat.com>
18421
18422         tests: avoid test failure on Solaris 10 due to lack of PATH export
18423         * tests/test-update-copyright.sh: Don't forget to export PATH.
18424
18425         init.sh: ensure that IFS is defined, just in case...
18426         * tests/init.sh (setup_): Ensure that IFS is defined,
18427         so that saving and restoring it works as expected.  This
18428         appears to be useful at least for an old version of dash
18429         from a long time ago (RH 6).  See here for details:
18430         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
18431
18432         maint.mk: tighten "test a == b" check
18433         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
18434         test to files that contain something like #!/bin/sh.
18435         Without this, coreutils would get two false positives in
18436         the comments of C source files.
18437
18438 2010-11-12  Eric Blake  <eblake@redhat.com>
18439
18440         bootstrap: fix typo in previous attempt
18441         * build-aux/bootstrap (buildreq): Correct the grouping.
18442         Reported by Paul Eggert.
18443
18444         maintainer-makefile: prohibit test x == x
18445         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
18446         Based on a report by Matthias Bolte.
18447
18448         bootstrap: allow FreeBSD gzip
18449         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
18450         which has no '.' and goes to stderr.
18451         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
18452         Reported by Matthias Bolte.
18453
18454         maintainer-makefile: check for i18n setup
18455         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
18456         will likely work.
18457
18458 2010-11-12  Bruno Haible  <bruno@clisp.org>
18459
18460         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
18461         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
18462         * lib/nanosleep.c (nanosleep): Likewise.
18463
18464 2010-11-11  Bruno Haible  <bruno@clisp.org>
18465
18466         fcntl-h: Fix for use of C++ on glibc systems.
18467         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
18468         also on glibc systems in C++ mode.
18469         Reported by Gary V. Vaughan <gary@gnu.org>.
18470
18471 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
18472
18473         mknod: avoid false failure with dash
18474         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
18475
18476 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
18477
18478         unlink: Fix "is it should" typo in diagnostic.
18479         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
18480         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
18481
18482 2010-11-11  Bruno Haible  <bruno@clisp.org>
18483
18484         Tests for module 'strerror_r-posix'.
18485         * modules/strerror_r-posix-tests: New file.
18486         * tests/test-strerror_r.c: New file.
18487         * tests/test-string-c++.cc: Check the signature of strerror_r.
18488
18489         New module 'strerror_r-posix'.
18490         * lib/string.in.h (strerror_r): New declaration.
18491         * lib/strerror_r.c: New file.
18492         * m4/strerror_r.m4: New file.
18493         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
18494         of strerror_r.
18495         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
18496         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
18497         * modules/strerror_r-posix: New file.
18498         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
18499         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
18500         * doc/posix-functions/strerror_r.texi: Mention the new module and the
18501         portability problems.
18502
18503 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
18504
18505         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
18506         line is also considered for output. Quoted function name in shell
18507         command, so temporary files for functions like MyClass::operator()
18508         are removed correctly without errors.
18509
18510 2010-11-09  Bruno Haible  <bruno@clisp.org>
18511
18512         * doc/posix-functions/strerror.texi: List more failing platforms.
18513
18514         * doc/posix-functions/strerror.texi: Add a comment.
18515
18516 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
18517
18518         fdopendir: fix bug on MacOS X when low on file descriptors
18519
18520         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
18521         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
18522         All callers changed.
18523         (fdopendir): Invoke save_cwd at the top level, not after using
18524         multiple dup() calls to use up file descriptors.  Then retry
18525         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
18526         less than the maximum number of open file descriptors, because
18527         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
18528         on Mac OS X 10.6.4 for tar 1.24
18529         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
18530         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
18531         and for tar 1.25
18532         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
18533
18534 2010-11-07  Bruno Haible  <bruno@clisp.org>
18535
18536         vasnprintf: Support I flag on glibc systems.
18537         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
18538         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
18539         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
18540         snprintf function.
18541         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
18542         glibc systems.
18543         * tests/test-vasnprintf-posix3.c: New file.
18544         * modules/vasnprintf-posix-tests (Files): Add it.
18545         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
18546
18547 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
18548
18549         [html] Fix copy/paste bug: Use unique name for compiler warnings.
18550         * MODULES.html.sh: For compiler warnings, use name
18551         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
18552
18553 2010-11-05  Eric Blake  <eblake@redhat.com>
18554
18555         ceil, floor: avoid spurious failure with icc
18556         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
18557         [denormals-as-zero] when optimizing without -mieee-fp option.
18558         * tests/test-floorf2.c (floorf_reference): Likewise.
18559         * tests/test-ceilf1.c (dummy): New function.
18560         (main): Use it to outsmart icc's optimization.
18561         * tests/test-floorf1.c (dummy, main): Likewise.
18562
18563         tests: require working signbit
18564         * modules/ceilf-tests (Depends-on): Add signbit.
18565         * modules/ceill-tests (Depends-on): Likewise.
18566         * modules/floorf-tests (Depends-on): Likewise.
18567         * modules/floorl-tests (Depends-on): Likewise.
18568         * modules/round-tests (Depends-on): Likewise.
18569         * modules/roundf-tests (Depends-on): Likewise.
18570         * modules/roundl-tests (Depends-on): Likewise.
18571         * modules/trunc-tests (Depends-on): Likewise.
18572         * modules/truncf-tests (Depends-on): Likewise.
18573         * modules/truncl-tests (Depends-on): Likewise.
18574
18575         strtod: work around icc bug
18576         * lib/strtod.c (minus_zero): Define to working value.
18577         (strtod): Use it to avoid icc bug.
18578
18579         copysign: enhance tests
18580         * modules/copysign-tests (Files): Add minus-zero.h.
18581         * tests/test-copysign.c (main): Also test zeros.
18582
18583 2010-11-04  Eric Blake  <eblake@redhat.com>
18584
18585         ceil, floor, round, trunc: enhance tests of -0
18586         * tests/test-ceilf1.c (main): Ensure correct sign of result.
18587         * tests/test-ceill.c (main): Likewise.
18588         * tests/test-floorf1.c (main): Likewise.
18589         * tests/test-floorl.c (main): Likewise.
18590         * tests/test-round1.c (main): Likewise.
18591         * tests/test-roundf1.c (main): Likewise.
18592         * tests/test-roundl.c (main): Likewise.
18593         * tests/test-trunc1.c (main): Likewise.
18594         * tests/test-truncf1.c (main): Likewise.
18595         * tests/test-truncl.c (main): Likewise.
18596
18597 2010-11-04  Eric Blake  <eblake@redhat.com>
18598
18599         frexp, tests: work around ICC bug with -zero
18600         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
18601         works with more compilers.
18602         * tests/minus-zero.h: New file.
18603         * modules/ceilf-tests (Files): Include it.
18604         * modules/ceill-tests (Files): Likewise.
18605         * modules/floorf-tests (Files): Likewise.
18606         * modules/floorl-tests (Files): Likewise.
18607         * modules/frexp-nolibm-tests (Files): Likewise.
18608         * modules/frexp-tests (Files): Likewise.
18609         * modules/frexpl-nolibm-tests (Files): Likewise.
18610         * modules/frexpl-tests (Files): Likewise.
18611         * modules/isnan-tests (Files): Likewise.
18612         * modules/isnand-nolibm-tests (Files): Likewise.
18613         * modules/isnand-tests (Files): Likewise.
18614         * modules/isnanf-nolibm-tests (Files): Likewise.
18615         * modules/isnanf-tests (Files): Likewise.
18616         * modules/isnanl-nolibm-tests (Files): Likewise.
18617         * modules/isnanl-tests (Files): Likewise.
18618         * modules/round-tests (Files): Likewise.
18619         * modules/roundf-tests (Files): Likewise.
18620         * modules/roundl-tests (Files): Likewise.
18621         * modules/ldexpl-tests (Files): Likewise.
18622         * modules/signbit-tests (Files): Likewise.
18623         * modules/snprintf-posix-tests (Files): Likewise.
18624         * modules/sprintf-posix-tests (Files): Likewise.
18625         * modules/strtod-tests (Files): Likewise.
18626         * modules/trunc-tests (Files): Likewise.
18627         * modules/truncf-tests (Files): Likewise.
18628         * modules/truncl-tests (Files): Likewise.
18629         * modules/vsnprintf-posix-tests (Files): Likewise.
18630         * modules/vsprintf-posix-tests (Files): Likewise.
18631         * modules/vasnprintf-posix-tests (Files): Likewise.
18632         * modules/vasprintf-posix-tests (Files): Likewise.
18633         * tests/test-ceilf1.c (main): Use it.
18634         * tests/test-ceill.c (main): Likewise.
18635         * tests/test-floorf1.c (main): Likewise.
18636         * tests/test-floorl.c (main): Likewise.
18637         * tests/test-frexp.c (main): Likewise.
18638         * tests/test-frexpl.c (main): Likewise.
18639         * tests/test-isnan.c (main): Likewise.
18640         * tests/test-isnand.h (main): Likewise.
18641         * tests/test-isnanf.h (main): Likewise.
18642         * tests/test-isnanl.h (main): Likewise.
18643         * tests/test-ldexpl.c (main): Likewise.
18644         * tests/test-round.c (main): Likewise.
18645         * tests/test-roundf.c (main): Likewise.
18646         * tests/test-roundl.c (main): Likewise.
18647         * tests/test-signbit.c (test_signbitf, test_signbitd)
18648         (test_signbitl): Likewise.
18649         * tests/test-snprintf-posix.h (test_function): Likewise.
18650         * tests/test-sprintf-posix.h (test_function): Likewise.
18651         * tests/test-strtod.c (main): Likewise.
18652         * tests/test-trunc1.c (main): Likewise.
18653         * tests/test-truncf1.c (main): Likewise.
18654         * tests/test-truncl.c (main): Likewise.
18655
18656         isnanl: work around icc bug
18657         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
18658
18659 2010-11-03  Eric Blake  <eblake@redhat.com>
18660
18661         tests: fix compiler warnings
18662         * tests/test-getopt.h (test_getopt): Fix condition.
18663         * tests/test-getopt_long.h (test_getopt_long): Likewise.
18664         * tests/test-pipe2.c (main): Likewise.
18665         * tests/test-quotearg-simple.c (main): Avoid icc warning.
18666
18667         utimens: fix broken m4 test
18668         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
18669
18670 2010-10-28  Bruno Haible  <bruno@clisp.org>
18671
18672         posix_spawn*, getdtablesize: Relax license.
18673         * modules/posix_spawn (License): Change to LGPLv2+.
18674         * modules/posix_spawnp (License): Likewise.
18675         * modules/posix_spawn-internal (License): Likewise.
18676         * modules/posix_spawnattr_init (License): Likewise.
18677         * modules/posix_spawnattr_getflags (License): Likewise.
18678         * modules/posix_spawnattr_setflags (License): Likewise.
18679         * modules/posix_spawnattr_getpgroup (License): Likewise.
18680         * modules/posix_spawnattr_setpgroup (License): Likewise.
18681         * modules/posix_spawnattr_getschedparam (License): Likewise.
18682         * modules/posix_spawnattr_setschedparam (License): Likewise.
18683         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
18684         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
18685         * modules/posix_spawnattr_getsigdefault (License): Likewise.
18686         * modules/posix_spawnattr_setsigdefault (License): Likewise.
18687         * modules/posix_spawnattr_getsigmask (License): Likewise.
18688         * modules/posix_spawnattr_setsigmask (License): Likewise.
18689         * modules/posix_spawnattr_destroy (License): Likewise.
18690         * modules/posix_spawn_file_actions_init (License): Likewise.
18691         * modules/posix_spawn_file_actions_addclose (License): Likewise.
18692         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
18693         * modules/posix_spawn_file_actions_addopen (License): Likewise.
18694         * modules/posix_spawn_file_actions_destroy (License): Likewise.
18695         * modules/getdtablesize (License): Likewise.
18696         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
18697
18698 2010-10-26  Bruno Haible  <bruno@clisp.org>
18699
18700         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
18701         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
18702         Cygwin and mingw.
18703         Suggested by Eric Blake.
18704
18705 2010-10-26  Bruno Haible  <bruno@clisp.org>
18706
18707         stdio: Work around compilation error due to renameat() on Solaris 10.
18708         * lib/stdio.in.h: Include <unistd.h> on Solaris.
18709         * lib/renameat.c: Don't include <unistd.h> here.
18710         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
18711         Reported by Paul Eggert and Eric Blake.
18712
18713 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
18714
18715         renameat: port to Solaris 10, which declares renameat in unistd.h
18716
18717         * lib/renameat.c: Include unistd.h before stdio.h, because
18718         Solaris 10 declares renameat in unistd.h.  Problem encountered
18719         when building GNU tar 1.24 on Solaris 10.
18720
18721 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
18722
18723         fdopendir: fix C89 compilation
18724         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
18725         compilers.
18726
18727 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
18728
18729         inttostr: simplify by removing unnecessary redundancy
18730         * lib/anytostr.c: Don't include verify.h.
18731         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
18732         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
18733         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
18734         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
18735         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
18736         Likewise.
18737         * modules/inttostr (Depends-on): Remove 'verify'.
18738
18739 2010-10-23  Bruno Haible  <bruno@clisp.org>
18740
18741         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
18742         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
18743         Reported by Eric Blake.
18744
18745 2010-10-23  Bruno Haible  <bruno@clisp.org>
18746
18747         Tests: Fix LOCALE_JA on MirBSD 10.
18748         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
18749         to an UTF-8 locale.
18750         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
18751         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
18752         Reported by Eric Blake.
18753
18754 2010-10-21  Bruno Haible  <bruno@clisp.org>
18755
18756         nl_langinfo test: Avoid test failure on NetBSD 5.
18757         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
18758         Reported by Eric Blake.
18759
18760 2010-10-21  Eric Blake  <eblake@redhat.com>
18761
18762         c-stack: work around libsigsegv 2.8 bug
18763         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
18764         overflow on at least PowerPC64.
18765
18766 2010-10-17  Bruno Haible  <bruno@clisp.org>
18767
18768         userspec: Drop redundant file.
18769         * modules/userspec (Files): Remove lib/inttostr.h.
18770
18771 2010-10-17  Bruno Haible  <bruno@clisp.org>
18772
18773         nl_langinfo tests: Silence some warnings.
18774         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
18775         Reported by Jim Meyering.
18776
18777 2010-10-17  Bruno Haible  <bruno@clisp.org>
18778
18779         Make use of GCC's attribute __alloc_size__.
18780         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
18781         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
18782         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
18783         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
18784         __alloc_size__.
18785         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
18786         Suggested by Jim Meyering.
18787
18788 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
18789
18790         bootstrap: anchor .gitignore entries.
18791         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
18792         with...
18793         (insert_vc_ignore): ... this new function, which prepends `/' to
18794         all .gitignore entries before passing them to
18795         insert_sorted_if_absent.
18796
18797 2010-10-16  Bruno Haible  <bruno@clisp.org>
18798
18799         nextafter: Fix configure check.
18800         * modules/nextafter (configure.ac): Correct expected prototype.
18801
18802 2010-10-16  Bruno Haible  <bruno@clisp.org>
18803
18804         termios: Update documentation.
18805         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
18806
18807 2010-10-16  Bruno Haible  <bruno@clisp.org>
18808
18809         tests: Make them compile with TinyCC.
18810         * tests/test-strstr.c (main): Remove parentheses around array
18811         initializer.
18812
18813 2010-10-15  Eric Blake  <eblake@redhat.com>
18814
18815         ignore-value: make header idempotent
18816         * lib/ignore-value.h: Add double-inclusion guards.
18817         Reported by Stefan Berger.
18818
18819 2010-10-15  Jim Meyering  <meyering@redhat.com>
18820
18821         GNUmakefile: handle "stable" target, not "major"
18822         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
18823         lists in maint.mk and announce-gen.  Without this, "make stable"
18824         would fail to ensure that $(VERSION) is up to date.
18825
18826 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
18827
18828         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
18829         & co.
18830
18831 2010-10-14  Bruno Haible  <bruno@clisp.org>
18832
18833         vasnprintf: Don't set errno to 0.
18834         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
18835         block that sets it to 0.
18836         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
18837
18838 2010-10-14  Bruno Haible  <bruno@clisp.org>
18839
18840         socketlib: Fix.
18841         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
18842         gl_PREREQ_SYS_H_WINSOCK2.
18843         Reported by Ian Beckwith <ianb@erislabs.net>.
18844
18845 2010-10-13  Jim Meyering  <meyering@redhat.com>
18846
18847         test-select-stdin.c: avoid warn_unused_result warnings
18848         * tests/test-select-stdin.c: Include "macros.h".
18849         ASSERT that read and fflush succeed.
18850
18851 2010-10-13  Jim Meyering  <meyering@redhat.com>
18852
18853         git-version-gen: do require git-VC'd files in cwd
18854         * build-aux/git-version-gen: Reject a git version string
18855         if there are no commits associated with the current directory.
18856         This avoids an unlikely false-positive (unrelated dir whose parent
18857         repository also contains a tag matching v*), as pointed out
18858         by Giuseppe Scrivano in
18859         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
18860
18861 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
18862
18863         argv-iter: omit nonconforming declaration
18864         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
18865         enum arg_iter_err declaration, which doesn't conform to C99.
18866         Solaris 10 cc warns about this.
18867
18868 2010-10-13  Eric Blake  <eblake@redhat.com>
18869
18870         termios: fix compilation on mingw
18871         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
18872         (gl_TERMIOS_H): Adjust it on mingw.
18873         * modules/termios (Makefile.am): Substitute new key.
18874         * lib/termios.in.h (includes): Make include_next conditional.
18875         * doc/posix-headers/termios.texi (termios.h): Update
18876         documentation.
18877         Reported by Daniel P. Berrange.
18878
18879 2010-10-13  Jim Meyering  <meyering@redhat.com>
18880
18881         git-version-gen: don't require that .git/ be in the current dir
18882         * build-aux/git-version-gen: Adjust this script so that it works
18883         when run from any working directory beneath the top-level .git/-
18884         containing directory.  Inspired by a patch from Giuseppe Scrivano,
18885         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
18886
18887         test-select: avoid warn_unused_result warnings
18888         * tests/test-select.c: Include "macros.h".
18889         ASSERT that each call to read, write, and pipe succeeds.
18890         While not technically required, also check each "close".
18891         * modules/select-tests (Files): Add tests/macros.h.
18892
18893         test-symlinkat: remove declaration of unused local
18894         * tests/test-symlinkat.c (main): Remove unused local, "buf".
18895
18896         test-inttostr: avoid shadowing warnings
18897         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
18898         and use malloc rather than the stack for the same reason as
18899         mentioned in the comment justifying the other allocation.
18900
18901 2010-10-11  Bruno Haible  <bruno@clisp.org>
18902
18903         stdlib: Allow multiple gnulib generated replacements to coexist.
18904         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
18905         Reported by Sam Steingold <sds@gnu.org>.
18906
18907 2010-10-11  Jim Meyering  <meyering@redhat.com>
18908
18909         fix a documentation typo
18910         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
18911
18912 2010-10-11  Eric Blake  <eblake@redhat.com>
18913
18914         futimens: work around Solaris 11 bug
18915         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
18916         * tests/test-futimens.h (test_futimens): Enhance, rather than
18917         weaken test.
18918         * doc/posix-functions/futimens.texi (futimens): Document the bug.
18919
18920 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
18921
18922         Indentation.
18923         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
18924         higher-level operators more to the left.
18925
18926 2010-10-11  Jim Meyering  <meyering@redhat.com>
18927
18928         test-futimens: avoid unwarranted test failure on Solaris 5.11
18929         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
18930         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
18931         because it tries to dereference the NULL name argument.
18932
18933 2010-10-11  Bruno Haible  <bruno@clisp.org>
18934
18935         Indentation.
18936         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
18937         indentation.
18938
18939 2010-10-11  Jim Meyering  <meyering@redhat.com>
18940
18941         spawn.in.h: make indentation consistent with parentheses
18942         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
18943         Make indentation consistent with parentheses.
18944
18945 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
18946
18947         Fix mismatched parens in previous commit
18948         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
18949         parens.
18950
18951 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
18952
18953         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
18954
18955         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
18956         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
18957         * lib/malloca.c: Include "verify.h".
18958         (verify1): Remove, replacing with a verify call.
18959         * lib/relocwrapper.c (verify1): Likewise.
18960         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
18961         Likewise.
18962         * modules/malloca (Depends-on): Add 'verify'.
18963         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
18964         * modules/vasnprintf (Depends-on): Add 'verify'.
18965         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
18966         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
18967         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
18968         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
18969         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
18970         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
18971         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
18972
18973         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
18974
18975         Formerly the style was sometimes 2*X - 1, because the C standard
18976         was wrongly thought to disallow ?: in integral constant expressions.
18977         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
18978         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
18979         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
18980         * lib/stdint.in.h (_verify_intmax_size): Likewise.
18981         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
18982         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
18983         verify that time_t cannot be floating.
18984
18985 2010-10-08  Eric Blake  <eblake@redhat.com>
18986
18987         time: enforce recent POSIX ruling that time_t is integral
18988         * lib/time.in.h (__time_t_must_be_integral): Detect any
18989         problematic systems, allowing the rest of gnulib to assume POSIX.
18990
18991 2010-10-08  Jim Meyering  <meyering@redhat.com>
18992
18993         fdopendir: fix a bug on systems lacking openat and /proc support
18994         OpenBSD 4.7 is one such system.  The most noticeable effect was
18995         failure of any application making nontrivial use of fts: rm, du,
18996         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
18997           ./rm: traversal failed: `a': Bad file descriptor
18998         Debugging that, you see that even though FD 6 was closed just
18999         prior to the opendir call in fd_clone_opendir, its resulting
19000         dir->dd_fd was 8, rather than the expected value of 6:
19001
19002         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
19003         93                close (fd);
19004         (gdb) n
19005         94                dir = fd_clone_opendir (dupfd);
19006         (gdb) n
19007         95                saved_errno = errno;
19008         (gdb) p dir->dd_fd
19009         $11 = 8
19010
19011         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
19012         The problem is that on OpenBSD, fd_clone_opendir has to resort
19013         to using the old-style save/restore CWD mechanism, due to its
19014         lack of openat/proc support, and *that* would steal the FD (6)
19015         that opendir was supposed to use.
19016
19017         The fix is to squirrel away the desired FD so that save_cwd uses a
19018         different one, and then free the dest FD right before calling opendir.
19019         That guarantees opendir will use the required file descriptor.
19020
19021         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
19022
19023 2010-10-08  Bruno Haible  <bruno@clisp.org>
19024
19025         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
19026         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
19027
19028 2010-10-08  Bruno Haible  <bruno@clisp.org>
19029
19030         nanosleep: Make replacement POSIX compliant.
19031         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
19032         is out of range.
19033         Reported by Jim Meyering.
19034
19035 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
19036
19037         bootstrap: add hook for altering gnulib.mk, for Bison
19038         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
19039         the Bison bootstrapping process can rewrite file names and variables
19040         in this file before later parts of 'bootstrap' use the file.
19041         Bison wants to include lib/gnulib.mk from the top-level makefile,
19042         so it needs the file names in this file to be relative to the top
19043         level, not relative to lib; plus it needs variable names to be
19044         rewritten.
19045         (slurp): Use the new function.
19046
19047         bootstrap: reformat for readability
19048         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
19049
19050 2010-10-08  Eric Blake  <eblake@redhat.com>
19051
19052         docs: update cygwin progress
19053         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
19054         1.7.7.
19055         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
19056         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
19057         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
19058         * doc/posix-functions/carg.texi (carg): Likewise.
19059         * doc/posix-functions/cargf.texi (cargf): Likewise.
19060         * doc/posix-functions/casin.texi (casin): Likewise.
19061         * doc/posix-functions/casinf.texi (casinf): Likewise.
19062         * doc/posix-functions/casinh.texi (casinh): Likewise.
19063         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
19064         * doc/posix-functions/catan.texi (catan): Likewise.
19065         * doc/posix-functions/catanf.texi (catanf): Likewise.
19066         * doc/posix-functions/catanh.texi (catanh): Likewise.
19067         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
19068         * doc/posix-functions/ccos.texi (ccos): Likewise.
19069         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
19070         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
19071         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
19072         * doc/posix-functions/cexp.texi (cexp): Likewise.
19073         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
19074         * doc/posix-functions/cimag.texi (cimag): Likewise.
19075         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
19076         * doc/posix-functions/clog.texi (clog): Likewise.
19077         * doc/posix-functions/clogf.texi (clogf): Likewise.
19078         * doc/posix-functions/conj.texi (conj): Likewise.
19079         * doc/posix-functions/conjf.texi (conjf): Likewise.
19080         * doc/posix-functions/cpow.texi (cpow): Likewise.
19081         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
19082         * doc/posix-functions/cproj.texi (cproj): Likewise.
19083         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
19084         * doc/posix-functions/creal.texi (creal): Likewise.
19085         * doc/posix-functions/crealf.texi (crealf): Likewise.
19086         * doc/posix-functions/csin.texi (csin): Likewise.
19087         * doc/posix-functions/csinf.texi (csinf): Likewise.
19088         * doc/posix-functions/csinh.texi (csinh): Likewise.
19089         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
19090         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
19091         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
19092         * doc/posix-functions/ctan.texi (ctan): Likewise.
19093         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
19094         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
19095         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
19096         * doc/posix-headers/complex.texi (complex.h): Likewise.
19097
19098 2010-10-07  Jim Meyering  <meyering@redhat.com>
19099
19100         parse-datetime: avoid compilation failure on OpenBSD 4.7
19101         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
19102         This works around a compilation failure on OpenBSD 4.7:
19103         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
19104
19105 2010-10-07  Eric Blake  <eblake@redhat.com>
19106
19107         docs: update cygwin progress
19108         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
19109         1.7.6.
19110         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
19111         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
19112         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
19113         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
19114         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
19115         Likewise.
19116         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
19117         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
19118         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
19119         Likewise.
19120         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
19121         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
19122         Likewise.
19123         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
19124         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
19125         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
19126         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
19127         Likewise.
19128         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
19129         Likewise.
19130         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
19131
19132         docs: update parse-datetime history
19133         * doc/parse-datetime.texi (Authors of parse_datetime): Better
19134         documentation of this function's history and alternatives.
19135
19136         cygwin: use more robust version check
19137         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
19138         exclude an eventual cygwin 1.9.1.
19139         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
19140         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
19141         (gl_FUNC_STRCASESTR): Likewise.
19142         Reported by Bruno Haible.
19143
19144 2010-10-06  Bruno Haible  <bruno@clisp.org>
19145
19146         string, sys_select: Avoid #including large headers unless necessary.
19147         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
19148         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
19149         OSF/1, BeOS, Haiku.
19150         Reported by Jim Meyering.
19151
19152 2010-10-05  Eric Blake  <eblake@redhat.com>
19153
19154         memmem, strstr, strcasestr: fix bug with long periodic needle
19155         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
19156         periodic needle having false positive.
19157         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
19158         and cygwin 1.7.7.
19159         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
19160         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
19161         (gl_FUNC_STRCASESTR): Likewise.
19162         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
19163         * tests/test-memmem.c (main): Expose the bug.
19164         * tests/test-strcasestr.c (main): Likewise.
19165         * tests/test-strstr.c (main): Likewise.
19166         * tests/test-c-strcasestr.c (main): Likewise.
19167         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
19168         * doc/posix-functions/strstr.texi (strstr): Likewise.
19169         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
19170         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
19171
19172 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
19173
19174         parse-datetime: do some more renaming
19175         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
19176         parse_datetime, not get_date.  Mention the renaming.
19177         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
19178         in comments.
19179         * m4/bison.m4: Likewise.
19180
19181 2010-10-05  Eric Blake  <eblake@redhat.com>
19182
19183         parse-datetime: better name than get_date
19184         * NEWS: Reword the deprecation notice.
19185         * modules/get_date: Rename to modules/parse-datetime.
19186         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
19187         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
19188         * lib/get_date.y: Rename to lib/parse-datetime.y.
19189         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
19190         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
19191         * doc/getdate.texi: Provide fallback wrapper.
19192         * lib/getdate.h: Move guts, and wrap...
19193         * lib/parse-datetime.h: ...new file.
19194         * lib/parse-datetime.y (get_date): Rename...
19195         (parse_datetime): ...to this.
19196         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
19197         (gl_PARSE_DATETIME): ...to this.
19198         * doc/posix-functions/getdate.texi (get_date): Provide fallback
19199         documentation.
19200         * modules/getdate (Files): Provide fallback docs and header.
19201         (Notice, Depends-on): Update references.
19202         * tests/test-parse-datetime.c: Likewise.
19203         * DEPENDENCIES: Likewise.
19204         * MODULES.html.sh (Date and time <time.h>): Likewise.
19205         * doc/parse-datetime.texi (Date input formats)
19206         (Authors of parse_datetime): Likewise.
19207         * modules/parse-datetime (Files, configure.ac, Makefile.am)
19208         (Include): Likewise.
19209         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
19210         * gnulib-tool: Likewise.
19211         * m4/bison.m4 (gl_BISON): Likewise.
19212         Suggested by Bruno Haible.
19213
19214 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
19215
19216         more ports to Solaris tr, which needs [] around ranges
19217         * gnulib-tool: Solaris tr needs [] around ranges.
19218         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
19219         * tests/test-pipe-filter-gi1.c (main): Likewise.
19220         * tests/test-pipe-filter-ii1.c (main): Likewise.
19221
19222 2010-10-05  Eric Blake  <eblake@redhat.com>
19223
19224         bootstrap: fix Solaris regression
19225         * build-aux/bootstrap (check_versions): Solaris tr still needs []
19226         around ranges.
19227         Reported by Pádraig Brady.
19228
19229         bootstrap: work with pkg-config
19230         * build-aux/bootstrap (check_versions): Also transliterate - in
19231         prerequisite name.
19232         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
19233         prerequisites that were already found, to avoid confusion.
19234         Reported by Justin Clift.
19235
19236         faccessat: remove unused wrappers
19237         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
19238         presence of these wrappers dragged in -lgen on Solaris.
19239         Reported by Clemens Brogi; fix suggested by Paul Eggert.
19240
19241 2010-10-05  Jim Meyering  <meyering@redhat.com>
19242
19243         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
19244         * Makefile (sc_pragma_columns): New syntax-check rule.
19245
19246 2010-10-04  Bruno Haible  <bruno@clisp.org>
19247
19248         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
19249         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
19250         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
19251         Reported by Bruce Korb and Eric Blake.
19252
19253 2010-10-04  Bruno Haible  <bruno@clisp.org>
19254
19255         threadlib: Make option --with-libpth-prefix work.
19256         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
19257         use $LIBPTH, not just -lpth.
19258
19259 2010-10-04  Bruno Haible  <bruno@clisp.org>
19260
19261         Avoid line length limitation from HP NonStop system header files.
19262         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
19263         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
19264         * lib/ctype.in.h: Likewise.
19265         * lib/dirent.in.h: Likewise.
19266         * lib/errno.in.h: Likewise.
19267         * lib/fcntl.in.h: Likewise.
19268         * lib/float.in.h: Likewise.
19269         * lib/getopt.in.h: Likewise.
19270         * lib/iconv.in.h: Likewise.
19271         * lib/inttypes.in.h: Likewise.
19272         * lib/langinfo.in.h: Likewise.
19273         * lib/locale.in.h: Likewise.
19274         * lib/math.in.h: Likewise.
19275         * lib/netdb.in.h: Likewise.
19276         * lib/netinet_in.in.h: Likewise.
19277         * lib/poll.in.h: Likewise.
19278         * lib/pthread.in.h: Likewise.
19279         * lib/pty.in.h: Likewise.
19280         * lib/sched.in.h: Likewise.
19281         * lib/se-selinux.in.h: Likewise.
19282         * lib/search.in.h: Likewise.
19283         * lib/signal.in.h: Likewise.
19284         * lib/spawn.in.h: Likewise.
19285         * lib/stdarg.in.h: Likewise.
19286         * lib/stddef.in.h: Likewise.
19287         * lib/stdint.in.h: Likewise.
19288         * lib/stdio.in.h: Likewise.
19289         * lib/stdlib.in.h: Likewise.
19290         * lib/string.in.h: Likewise.
19291         * lib/strings.in.h: Likewise.
19292         * lib/sys_file.in.h: Likewise.
19293         * lib/sys_ioctl.in.h: Likewise.
19294         * lib/sys_select.in.h: Likewise.
19295         * lib/sys_socket.in.h: Likewise.
19296         * lib/sys_stat.in.h: Likewise.
19297         * lib/sys_time.in.h: Likewise.
19298         * lib/sys_times.in.h: Likewise.
19299         * lib/sys_utsname.in.h: Likewise.
19300         * lib/sys_wait.in.h: Likewise.
19301         * lib/sysexits.in.h: Likewise.
19302         * lib/termios.in.h: Likewise.
19303         * lib/time.in.h: Likewise.
19304         * lib/unistd.in.h: Likewise.
19305         * lib/wchar.in.h: Likewise.
19306         * lib/wctype.in.h: Likewise.
19307         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
19308         * modules/ctype (Makefile.am): Likewise.
19309         * modules/dirent (Makefile.am): Likewise.
19310         * modules/errno (Makefile.am): Likewise.
19311         * modules/fcntl-h (Makefile.am): Likewise.
19312         * modules/float (Makefile.am): Likewise.
19313         * modules/getopt-posix (Makefile.am): Likewise.
19314         * modules/iconv-h (Makefile.am): Likewise.
19315         * modules/inttypes (Makefile.am): Likewise.
19316         * modules/langinfo (Makefile.am): Likewise.
19317         * modules/locale (Makefile.am): Likewise.
19318         * modules/math (Makefile.am): Likewise.
19319         * modules/netdb (Makefile.am): Likewise.
19320         * modules/netinet_in (Makefile.am): Likewise.
19321         * modules/poll-h (Makefile.am): Likewise.
19322         * modules/pthread (Makefile.am): Likewise.
19323         * modules/pty (Makefile.am): Likewise.
19324         * modules/sched (Makefile.am): Likewise.
19325         * modules/search (Makefile.am): Likewise.
19326         * modules/selinux-h (Makefile.am): Likewise.
19327         * modules/signal (Makefile.am): Likewise.
19328         * modules/spawn (Makefile.am): Likewise.
19329         * modules/stdarg (Makefile.am): Likewise.
19330         * modules/stddef (Makefile.am): Likewise.
19331         * modules/stdint (Makefile.am): Likewise.
19332         * modules/stdio (Makefile.am): Likewise.
19333         * modules/stdlib (Makefile.am): Likewise.
19334         * modules/string (Makefile.am): Likewise.
19335         * modules/strings (Makefile.am): Likewise.
19336         * modules/sys_file (Makefile.am): Likewise.
19337         * modules/sys_ioctl (Makefile.am): Likewise.
19338         * modules/sys_select (Makefile.am): Likewise.
19339         * modules/sys_socket (Makefile.am): Likewise.
19340         * modules/sys_stat (Makefile.am): Likewise.
19341         * modules/sys_time (Makefile.am): Likewise.
19342         * modules/sys_times (Makefile.am): Likewise.
19343         * modules/sys_utsname (Makefile.am): Likewise.
19344         * modules/sys_wait (Makefile.am): Likewise.
19345         * modules/sysexits (Makefile.am): Likewise.
19346         * modules/termios (Makefile.am): Likewise.
19347         * modules/time (Makefile.am): Likewise.
19348         * modules/unistd (Makefile.am): Likewise.
19349         * modules/wchar (Makefile.am): Likewise.
19350         * modules/wctype (Makefile.am): Likewise.
19351
19352 2010-10-04  Bruno Haible  <bruno@clisp.org>
19353
19354         read-file tests: Avoid a test failure on NonStop Kernel.
19355         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
19356         a regular file.
19357         Reported by Joachim Schmitz <schmitz@hp.com>.
19358
19359 2010-10-03  Bruno Haible  <bruno@clisp.org>
19360
19361         gnulib-tool: Fixes for --create-testdir with --libtool.
19362         * gnulib-tool (func_get_automake_snippet): Don't augment
19363         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
19364         an executable.
19365         (func_create_testdir): Handle module 'alloca' like func_import.
19366         Reported by Bruce Korb <bruce.korb@gmail.com>.
19367
19368 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
19369
19370         Avoid some lines longer than 80 characters.
19371         * lib/stdint.in.h: Break long comment lines.
19372         * lib/math.in.h: Likewise.
19373         (_GL_NUM_UINT_WORDS): New macro, for readability.
19374         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
19375         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
19376         * lib/stdlib.in.h: Likewise.
19377         * lib/spawn.in.h: Likewise.
19378         * lib/sys_socket.in.h: Update an URL.
19379         * lib/sys_stat.in.h: Break long line.
19380
19381 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
19382
19383         Improve pmccabe2html.
19384         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
19385         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
19386         when the sources change. Remove the line in the HTML about "Used
19387         ranges" (which implied that there might be other unused ranges),
19388         rename "Resume" to "Summary" (easier to understand for more users).
19389         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
19390         styles, and some unnecessary blank lines.
19391
19392 2010-10-03  Bruno Haible  <bruno@clisp.org>
19393             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
19394
19395         acl: Add support for ACLs on NonStop Kernel.
19396         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
19397         Check whether the function aclsort() exists.
19398         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
19399         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
19400         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
19401         (acl_nontrivial [HAVE_ACLSORT]: New function.
19402         (file_has_acl): Implement for NonStop Kernel.
19403         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
19404         (qset_acl): Implement for NonStop Kernel.
19405         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
19406         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
19407         (main): Implement for NonStop Kernel.
19408         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
19409         Kernel. Handle this flavor.
19410         * tests/test-set-mode-acl.sh: Likewise.
19411         * tests/test-copy-acl.sh: Likewise.
19412         * tests/test-copy-file.sh: Likewise.
19413
19414 2010-10-03  Bruno Haible  <bruno@clisp.org>
19415
19416         Info about ACLs on NonStop Kernel.
19417         * doc/acl-resources.txt: Add info about NonStop Kernel.
19418         References by Joachim Schmitz <schmitz@hp.com>.
19419
19420 2010-10-02  Bruno Haible  <bruno@clisp.org>
19421
19422         Define missing EDQUOT on NonStop Kernel.
19423         * lib/errno.in.h (EDQUOT): Assign a value if missing.
19424         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
19425         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
19426         missing.
19427         * doc/posix-headers/errno.texi: Mention the NSK bug.
19428         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
19429         Reported by Joachim Schmitz <schmitz@hp.com>.
19430
19431 2010-10-02  Bruno Haible  <bruno@clisp.org>
19432
19433         Update doc for POSIX:2008.
19434         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
19435         Update URL of POSIX specification.
19436
19437 2010-10-02  Bruno Haible  <bruno@clisp.org>
19438
19439         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
19440         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
19441         from gnulib, not from Automake.
19442
19443 2010-10-02  Bruno Haible  <bruno@clisp.org>
19444
19445         New module 'system-posix'.
19446         * modules/system-posix: New file.
19447         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
19448         module is present.
19449         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
19450         GNULIB_SYSTEM_POSIX.
19451         * modules/stdlib (Depends-on): Remove sys_wait.
19452         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
19453         * doc/posix-functions/system.texi: Mention the new module.
19454         * doc/posix-headers/stdlib.texi: Likewise.
19455         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
19456         define test_sys_wait_macros to a no-op.
19457         Reported by Sam Steingold <sds@gnu.org>.
19458
19459 2010-09-30  Bruno Haible  <bruno@clisp.org>
19460
19461         More renaming from 'getdate' to 'get_date'.
19462         * doc/get_date.texi: Renamed from doc/getdate.texi.
19463         * modules/get_date (Files): Update.
19464         * MODULES.html.sh (Date and time <time.h>): Update.
19465         * DEPENDENCIES: Update.
19466         * gnulib-tool: Update comment.
19467         * m4/bison.m4 (gl_BISON): Likewise.
19468         * m4/get_date.m4 (gl_GET_DATE): Likewise.
19469
19470 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
19471
19472         bootstrap: support ACLOCAL_FLAGS during aclocal
19473         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
19474         can add additional -I dir for third-party .m4 files.
19475
19476 2010-09-30  Eric Blake  <eblake@redhat.com>
19477
19478         bootstrap: use glibtoolize on MacOS
19479         * build-aux/bootstrap (check_versions): Convert libtool into
19480         libtoolize.
19481         (tool search): Move libtool check earlier, and look for
19482         glibtoolize for MacOS.
19483         (gnulib_tool_options): Auto-add --libtool when appropriate.
19484         Reported by Justin Clift.
19485
19486         poll: fix typo that broke test on MacOS
19487         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
19488         Reported by Justin Clift.
19489
19490         getdate: rename to get_date
19491         Note: getdate.h is not renamed, to minimize client impact.
19492         * modules/getdate: Mark obsolete.  Move old contents...
19493         * modules/get_date: ...to new module name.
19494         * modules/getdate-tests: Move...
19495         * modules/get_date-tests: ...here.
19496         * m4/getdate.m4: Move...
19497         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
19498         * lib/getdate.y: Move...
19499         * lib/get_date.y: ...here.
19500         * tests/test-getdate.c: Move...
19501         * tests/test-get_date.c: ...here.
19502         * doc/posix-functions/getdate.texi (getdate): Update name.
19503         * NEWS: Mention the change.
19504
19505 2010-09-29  Bruno Haible  <bruno@clisp.org>
19506
19507         Separate the module 'waitpid' from the module 'sys_wait'.
19508         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
19509         present.
19510         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
19511         gl_MODULE_INDICATOR_FOR_TESTS.
19512         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
19513         * modules/sys_wait (Depends-on): Remove waitpid.
19514         (Makefile.am): Substitute GNULIB_WAITPID.
19515         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
19516         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
19517         signature only if the 'waitpid' module is present.
19518         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
19519         * NEWS: Mention the change.
19520         * modules/grantpt (Depends-on): Add waitpid.
19521         * modules/wait-process (Depends-on): Likewise.
19522
19523 2010-09-29  Bruno Haible  <bruno@clisp.org>
19524
19525         More tests for module 'sys_wait'.
19526         * modules/sys_wait-c++-tests: New file.
19527         * tests/test-sys_wait-c++.cc: New file.
19528         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
19529         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
19530
19531 2010-09-29  Bruno Haible  <bruno@clisp.org>
19532
19533         New module 'waitpid'.
19534         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
19535         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
19536         Don't include <process.h>.
19537         (waitpid): Declare only, using modern idiom.
19538         * m4/waitpid.m4: New file.
19539         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
19540         * modules/waitpid: New file.
19541         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
19542         (Makefile.am): Update.
19543         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
19544
19545 2010-09-28  Bruno Haible  <bruno@clisp.org>
19546
19547         poll: Assume ANSI C.
19548         * lib/poll.c (poll): Use an ANSI C declaration.
19549
19550 2010-09-28  Bruno Haible  <bruno@clisp.org>
19551
19552         poll-h: Create poll.h on all platforms.
19553         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
19554         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
19555         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
19556         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
19557         (gl_REPLACE_POLL_H): Don't set POLL_H.
19558         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
19559         * modules/poll-h (Depends-on): Add include_next.
19560         (Makefile.am): Create poll.h unconditionally. Substitute also
19561         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
19562
19563 2010-09-28  Bruno Haible  <bruno@clisp.org>
19564
19565         Tests for module 'poll-h'.
19566         * modules/poll-h-c++-tests: New file.
19567         * tests/test-poll-h-c++.cc: New file.
19568
19569         Tests for module 'poll-h'.
19570         * modules/poll-h-tests: New file.
19571         * tests/test-poll-h.c: New file.
19572
19573 2010-09-28  Bruno Haible  <bruno@clisp.org>
19574
19575         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
19576         * modules/poll-h (Depends-on): Add 'extensions'.
19577
19578 2010-09-28  Bruno Haible  <bruno@clisp.org>
19579
19580         New module 'poll-h'.
19581         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
19582         (poll): Use modern idiom.
19583         * modules/poll-h: New file.
19584         * modules/poll (Files): Remove lib/poll.in.h.
19585         (Depends-on): Add poll-h.
19586         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
19587         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
19588         * m4/poll_h.m4: New file.
19589         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
19590         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
19591         and invoke gl_REPLACE_POLL_H.
19592         * lib/poll.c: Use common idiom.
19593         * tests/test-poll.c: Likewise.
19594         * doc/posix-headers/poll.texi: Mention the poll-h module.
19595         Suggested by Eric Blake.
19596
19597 2010-09-26  Bruno Haible  <bruno@clisp.org>
19598
19599         sys_wait: Implement WSTOPSIG.
19600         * lib/sys_wait.in.h (WSTOPSIG): New macro.
19601         Reported by Simon Josefsson.
19602
19603 2010-09-26  Simon Josefsson  <simon@josefsson.org>
19604
19605         stdlib, sys_wait: Avoid compilation error on mingw.
19606         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
19607
19608 2010-09-26  Bruno Haible  <bruno@clisp.org>
19609
19610         stdlib tests: Avoid code duplication.
19611         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
19612         * modules/sys_wait-tests (Files): Likewise.
19613         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
19614         * tests/test-stdlib.c: Include test-sys_wait.h.
19615         (main): Invoke test_sys_wait_macros.
19616         * tests/test-sys_wait.c: Include test-sys_wait.h.
19617         (main): Invoke test_sys_wait_macros.
19618
19619 2010-09-25  Simon Josefsson  <simon@josefsson.org>
19620
19621         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
19622         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
19623         sure Windows sockets are working before calling getaddrinfo.
19624         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
19625         * doc/gnulib.texi (Windows sockets): Fix typo.
19626
19627 2010-09-25  Bruno Haible  <bruno@clisp.org>
19628
19629         Tests for module 'regex-quote'.
19630         * modules/regex-quote-tests: New file.
19631         * tests/test-regex-quote.c: New file.
19632
19633         New module 'regex-quote'.
19634         * lib/regex-quote.h: New file.
19635         * lib/regex-quote.c: New file.
19636         * modules/regex-quote: New file.
19637         Suggested by Reuben Thomas <rrt@sc3d.org>.
19638
19639 2010-09-24  Bruno Haible  <bruno@clisp.org>
19640
19641         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
19642         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
19643
19644 2010-09-23  Bruno Haible  <bruno@clisp.org>
19645
19646         setenv: Relax license.
19647         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
19648         Blake.
19649         Requested by Eric Blake.
19650
19651 2010-09-22  Bruno Haible  <bruno@clisp.org>
19652
19653         termios: Relax license.
19654         * modules/termios (License): Change to LGPLv2+.
19655         Requested by Eric Blake.
19656
19657 2010-09-22  Bruno Haible  <bruno@clisp.org>
19658
19659         threadlib: Allow the package to change the default to 'no'.
19660         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
19661         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
19662         Reported by Paul Eggert.
19663
19664 2010-09-22  Pádraig Brady  <P@draigbrady.com>
19665             Bruno Haible  <bruno@clisp.org>
19666
19667         Fix endless loop in mbmemcasecoll.
19668         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
19669         byte.
19670         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
19671
19672 2010-09-22  Bruno Haible  <bruno@clisp.org>
19673
19674         Tests for module 'memcoll'.
19675         * modules/memcoll-tests: New file.
19676         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
19677
19678         memcoll, xmemcoll: Clarify size vs. length.
19679         * modules/memcoll.c (memcoll0): Clarify specification.
19680         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
19681         passed to collate_error.
19682
19683 2010-09-22  Bruno Haible  <bruno@clisp.org>
19684
19685         Tests for module 'memcasecmp'.
19686         * modules/memcasecmp-tests: New file.
19687         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
19688
19689 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
19690
19691         * lib/pthread.in.h: Add split double-inclusion guard, and include
19692         system <pthread.h> if there is one.  Use @@-style as in other
19693         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
19694         pthread.h doesn't.
19695         (pthread_mutexattr_destroy, pthread_mutexattr_init):
19696         (pthread_mutexattr_settype, pthread_mutex_trylock):
19697         New static inline functions, if there's no system <pthread.h>.
19698         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
19699         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
19700         Approximate with mutexes if the system lacks spinlocks, as in
19701         MacOS.
19702         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
19703         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
19704         @@-style.  Check for spinlocks separately.
19705         (gl_PTHREAD_DEFAULTS): New macro.
19706         * modules/pthread: Redo to use a more typical style for in.h files.
19707
19708 2010-09-21  Eric Blake  <eblake@redhat.com>
19709
19710         net_if: enhance tests
19711         * tests/test-net_if.c (main): Move signature checks earlier.
19712         Print failures to stderr.
19713         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
19714         Document the bug that we do not yet fix.
19715
19716 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
19717
19718         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
19719         about gnulib, not GSS.
19720
19721 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
19722
19723         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
19724         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
19725         for Emacs.
19726         * build-aux/pmccabe2html: Make Makefile.am example code more
19727         cut-and-paste friendly.
19728
19729 2010-09-21  Simon Josefsson  <simon@josefsson.org>
19730
19731         * tests/test-net_if.c: New file.
19732         * modules/net_if-tests: New file.
19733
19734 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
19735
19736         pthread: add pthread_spin_destroy
19737         * lib/pthread.in.h (pthread_spin_destroy): New function.
19738
19739 2010-09-19  Bruno Haible  <bruno@clisp.org>
19740
19741         gnulib-tool: Fix --help output.
19742         * gnulib-tool (func_usage): Fix help message.
19743         Reported by Reuben Thomas <rrt@sc3d.org>.
19744
19745 2010-09-18  Jim Meyering  <meyering@redhat.com>
19746
19747         maint.mk: avoid unexpanded \n in two diagnostics
19748         * top/maint.mk (sc_prohibit_always_true_header_tests):
19749         Don't use a literal \n in a halt=... assignment.  It would not be
19750         expanded, and the two \n bytes would appear in the diagnostic output
19751         rather than the desired newline.  Use halt=$$(printf ... instead.
19752         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
19753
19754 2010-09-18  Bruno Haible  <bruno@clisp.org>
19755
19756         netinet_in: Doc tweak.
19757         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
19758         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
19759
19760 2010-09-18  Jim Meyering  <meyering@redhat.com>
19761
19762         init.sh: correct an outdated comment
19763         * tests/init.sh (create_exe_shims_):  s/function/alias/
19764
19765         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
19766         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
19767         a file named "*.exe" is removed between the glob expansion and the
19768         processing of that oddly named file.
19769
19770 2010-09-17  Eric Blake  <eblake@redhat.com>
19771
19772         mirbsd: add some more support
19773         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
19774         in BSD family.
19775         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
19776         devices as OpenBSD.
19777         * m4/host-os.m4 (mirbsd): Add MirBSD.
19778
19779         tests: fix unportable assumption on sys/wait.h
19780         * tests/test-sys_wait.c (main): Relax test.
19781         * tests/test-stdlib.c (main): Likewise.
19782
19783         init.sh: accomodate directory with no .exes
19784         * tests/init.sh: Accomodate directory containing only scripts.
19785
19786         tests: avoid compiler warning
19787         * tests/test-stdlib.c (main): Use the variable.
19788
19789         fdutimens, fdutimensat: update signature, again
19790         * lib/utimens.h (gl_futimens): Delete, and move signature...
19791         (fdutimens): ...here.
19792         (fdutimensat): Rearrange signature.
19793         (lutimensat): Rename variable for clarity.
19794         * lib/fdutimensat.c (fdutimensat): Update signature.
19795         * lib/utimens.c (fdutimens): Likewise.
19796         (gl_futimens): Delete.
19797         (utimens, lutimens): Update callers.
19798         * lib/futimens.c (futimens): Likewise.
19799         * tests/test-fdutimensat.c: Likewise.
19800         * tests/test-utimens.c: Likewise.
19801         * tests/test-futimens.h: Update comment.
19802         * NEWS: Mention this.
19803         Suggested by Paul Eggert.
19804
19805 2010-09-17  Bruno Haible  <bruno@clisp.org>
19806
19807         Take over the maintenance of some older macros from Autoconf.
19808         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
19809         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
19810         GNU Autoconf.
19811         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
19812         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
19813
19814 2010-09-17  Eric Blake  <eblake@redhat.com>
19815
19816         fdutimensat: drop atflag validation
19817         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
19818         with valid fd, to close a race scenario where futimens is
19819         unsupported and FILE was replaced by a symlink.
19820         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
19821         accordingly.
19822         Suggested by Paul Eggert.
19823
19824 2010-09-16  Bruno Haible  <bruno@clisp.org>
19825
19826         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
19827         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
19828
19829 2010-09-16  Bruno Haible  <bruno@clisp.org>
19830
19831         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
19832         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
19833         login_tty exists.
19834         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
19835
19836 2010-09-16  Bruno Haible  <bruno@clisp.org>
19837
19838         login_tty: Make the replacement code work on BSD systems.
19839         * lib/login_tty.c: Include <sys/ioctl.h>.
19840         (login_tty): Use ioctl TIOCSCTTY when available.
19841         * modules/login_tty (Depends-on): Add sys_ioctl.
19842         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
19843
19844 2010-09-16  Bruno Haible  <bruno@clisp.org>
19845
19846         login_tty: Stricter unit test.
19847         * modules/login_tty-tests (Depends-on): Add tcgetsid.
19848         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
19849         and tcgetsid() after login_tty.
19850         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
19851
19852 2010-09-16  Bruno Haible  <bruno@clisp.org>
19853
19854         New module 'tcgetsid'.
19855         * lib/tcgetsid.c: New file.
19856         * m4/tcgetsid.m4: New file.
19857         * modules/tcgetsid: New file.
19858         * modules/termios (Depends-on): Add c++defs, warn-on-use.
19859         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
19860         GNULIB_TCGETSID, HAVE_TCGETSID.
19861         * lib/termios.in.h: Include <sys/types.h>.
19862         (tcgetsid): New declaration.
19863         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
19864         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
19865         * doc/posix-functions/tcgetsid.texi: Mention the new module.
19866         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
19867
19868 2010-09-16  Bruno Haible  <bruno@clisp.org>
19869
19870         Tests for module 'termios'.
19871         * modules/termios-c++-tests: New file.
19872         * modules/termios-tests: New file.
19873         * tests/test-termios-c++.cc: New file.
19874         * tests/test-termios.c: New file.
19875
19876         New module 'termios'.
19877         * modules/termios: New file.
19878         * lib/termios.in.h: New file.
19879         * m4/termios_h.m4: New file.
19880         * doc/posix-headers/termios.texi: Mention the new module.
19881
19882 2010-09-16  Eric Blake  <eblake@redhat.com>
19883
19884         fdutimensat: add an atflag parameter
19885         * lib/fdutimensat.c (fdutimensat): Add new parameter.
19886         * lib/utimens.h (fdutimensat): Update prototype.
19887         * tests/test-fdutimensat.c: Adjust test to match.
19888         * NEWS: Document the change.
19889         Suggested by Paul Eggert.
19890
19891 2010-09-16  Bruno Haible  <bruno@clisp.org>
19892
19893         Fix typos in comments.
19894         * lib/striconveh.h: Fix typo in comment.
19895         * lib/login_tty.c (login_tty): Likewise.
19896
19897 2010-09-15  Bruno Haible  <bruno@clisp.org>
19898
19899         stdlib: clarify MirBSD WEXITSTATUS bug
19900         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
19901         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
19902
19903 2010-09-15  Eric Blake  <eblake@redhat.com>
19904
19905         stdlib: work around MirBSD WEXITSTATUS bug
19906         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
19907         * modules/stdlib (Depends-on): Add sys_wait.
19908         * tests/test-sys_wait.c (main): Enhance test.
19909         * tests/test-stdlib.c (main): Likewise.
19910         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
19911
19912         docs: mention MacOS issue with WEXITSTATUS(constant)
19913         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
19914         issue.
19915         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
19916
19917         strnlen: add tests
19918         * modules/strnlen-tests: New file.
19919         * tests/test-strnlen.c: Likewise.
19920
19921 2010-09-14  Bruno Haible  <bruno@clisp.org>
19922
19923         unistr/base: Avoid link errors when module 'libunistring' is also used.
19924         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
19925         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
19926         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
19927         Declare also when HAVE_LIBUNISTRING is set.
19928         Reported by Pádraig Brady <P@draigbrady.com>.
19929
19930 2010-09-14  Eric Blake  <eblake@redhat.com>
19931
19932         test-rawmemchr: make more robust
19933         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
19934         (Depends-on, configure.ac): Add needed prerequisites to use it.
19935         * modules/memchr-tests (Files, Depends-on, configure.ac):
19936         Likewise, to avoid implicit reliance on memchr module prereqs.
19937         * tests/test-memchr.c (main): Ensure proper masking.
19938         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
19939         reads.
19940
19941         memchr: detect glibc Alpha bug
19942         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
19943         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
19944         Alpha.
19945         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
19946         * tests/test-memchr.c (main): Enhance test.
19947         Reported by Nelson H. F. Beebe.
19948
19949 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
19950
19951         fts, getcwd, glob: audit for dirfd returning -1
19952         * lib/fts.c (opendir): Remove #define; no longer used.
19953         (opendirat): New arg PDIR_FD.  All callers changed.
19954         (fts_build, _opendir2): Use new opendirat to avoid the need for
19955         dirfd, or for checking whether dirfd returns a negative value.
19956         Don't use opendir; always use openat followed by fdopendir.
19957         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
19958         it.
19959         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
19960         returns -1 here.
19961         * modules/fts (Depends-on): Remove dirfd.
19962         * modules/getcwd (Depends-on): Likewise.
19963
19964 2010-09-13  Eric Blake  <eblake@redhat.com>
19965
19966         float: fix broken MirBSD header
19967         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
19968         * doc/posix-headers/float.texi (float.h): Document it.
19969
19970 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
19971
19972         fts: use O_NOFOLLOW to avoid race condition when opening a directory
19973         * lib/fts.c (opendirat): New arg extra_flags.
19974         (__opendir2): Use it to avoid following symlinks when opening
19975         a directory, if symlinks are not supposed to be followed.  See
19976         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
19977
19978         fdopendir: preserve argument fd before returning
19979         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
19980         (fdopendir_with_dup, fd_clone_opendir): New static functions.
19981         (fdopendir): Use them, arranging for FD to be open to the same
19982         directory that it was when it started.  (It might be temporarily
19983         closed while fdopendir is running, so this not thread- or
19984         signal-safe.)  Be careful to do the right thing even when file
19985         descriptors are scarce and dup fails with errno == EMFILE.  See
19986         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
19987
19988 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
19989
19990         regex: Pass the system regex if its only problem is 32-bit regoff_t.
19991         * NEWS: Document change.
19992         * m4/regex.m4: Disable test for regoff_t size.
19993
19994 2010-09-13  Jim Meyering  <meyering@redhat.com>
19995
19996         fts: don't operate on an invalid file descriptor after failed dup
19997         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
19998         negative file descriptor.
19999
20000 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
20001
20002         savedir: add streamsavedir, deprecate fdsavedir
20003         * NEWS: Mention deprecation of fdsavedir.
20004         * lib/savedir.c (streamsavedir): New extern function, whose name
20005         ends in "savedir" to be consistent with the others.  This differs
20006         from savedirstream in that it doesn't close its argument.  The
20007         next version of GNU tar will use this instead of fdsavedir, to
20008         avoid some race conditions and conserve file descriptors.
20009         (savedirstream): Reimplement as a wrapper around streamsavedir.
20010         (fdsavedir): Add a comment deprecating this function.  As far as
20011         I know, only GNU tar used it, and GNU tar doesn't need it any more.
20012         * lib/savedir.h (streamsavedir): New decl.
20013         (fdsavedir): Add a comment deprecating this.
20014
20015 2010-09-10  Bruno Haible  <bruno@clisp.org>
20016
20017         langinfo: Fix last commit.
20018         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
20019         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
20020         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20021
20022 2010-09-10  Bruno Haible  <bruno@clisp.org>
20023
20024         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
20025         * lib/progreloc.c (O_EXEC): Define fallback.
20026
20027 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
20028
20029         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
20030         * NEWS: Document recent changes to fcntl-h.
20031         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
20032         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
20033         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
20034         Similarly for O_SEARCH; this last was already true, but not documented.
20035         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
20036         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
20037         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
20038         Likewise.
20039         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
20040         is zero, not whether it is defined.
20041         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
20042         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
20043         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
20044
20045 2010-09-10  Bruno Haible  <bruno@clisp.org>
20046
20047         langinfo, nl_langinfo: Fix for IRIX 5.3.
20048         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
20049         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
20050         HAVE_LANGINFO_YESEXPR.
20051         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
20052         HAVE_LANGINFO_YESEXPR.
20053         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
20054         HAVE_LANGINFO_T_FMT_AMPM is 0.
20055         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
20056         HAVE_LANGINFO_YESEXPR is 0.
20057         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
20058         NOEXPR.
20059         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
20060         * doc/posix-functions/nl_langinfo.texi: Likewise.
20061         Reported by Eric Blake.
20062
20063 2010-09-10  Bruno Haible  <bruno@clisp.org>
20064
20065         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
20066         * doc/glibc-functions/login_tty.texi: Mention the include file problem
20067         on FreeBSD 8.0 and OpenBSD 4.6.
20068         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
20069         * m4/pty_h.m4 (gl_PTY_H): Likewise.
20070         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
20071         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
20072         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
20073         ac_includes_default.
20074         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
20075
20076 2010-09-09  Eric Blake  <eblake@redhat.com>
20077
20078         strsignal: work around NetBSD bug
20079         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
20080         * lib/string.in.h (includes): Likewise.
20081         * doc/posix-functions/strsignal.texi (strsignal): Document the
20082         bug.
20083         Reported by Nelson H. F. Beebe.
20084
20085         gnulib-tool: work with NetBSD /bin/sh
20086         * gnulib-tool (func_cache_var, func_cache_lookup_module)
20087         (func_get_description, func_get_comment, func_get_status)
20088         (func_get_notice, func_get_applicability, func_get_filelist)
20089         (func_get_dependencies, func_get_autoconf_early_snippet)
20090         (func_get_autoconf_snippet, func_get_automake_snippet)
20091         (func_get_include_directive, func_get_link_directive)
20092         (func_get_license, func_get_maintainer, func_import): Avoid
20093         shell syntax errors from parsing syntax extensions.
20094
20095 2010-09-09  Bruno Haible  <bruno@clisp.org>
20096
20097         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
20098         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
20099         a reliable way to determine whether the 'alias' command works.
20100
20101 2010-09-08  Jim Meyering  <meyering@redhat.com>
20102
20103         init.sh: penalize a set-x-impaired shell; don't disqualify it
20104         * tests/init.sh: Too many shells corrupt application stderr when
20105         you set -x, so we can't afford to disqualify them, since at least
20106         on Irix-6.5, that would disqualify all bourne shells.
20107         Instead, use a two-pass approach.
20108         On the first pass, try to find a shell that meets the stricter
20109         condition that set -x does not corrupt stderr.
20110         If no shell meets the stricter condition, retest each candidate
20111         shell, but without that extra condition.  Finally, when
20112         VERBOSE=yes is requested and set -x might cause trouble, simply
20113         issue a warning and refrain from enabling debug output.
20114
20115 2010-09-08  Eric Blake  <eblake@redhat.com>
20116
20117         unsetenv: fix OpenBSD bug
20118         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
20119         * doc/posix-functions/unsetenv.texi (unsetenv): Update
20120         documentation.
20121         Reported by Jim Meyering.
20122
20123         strtod: work around IRIX 6.5 bug
20124         * lib/strtod.c (strtod): Reparse number on shorter string if
20125         exponent parse was invalid.
20126         * tests/test-strtod.c (main): Add check for "0x1p 2".
20127         Reported by Tom G. Christensen.
20128
20129         getopt: optimize previous patch
20130         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
20131         empty variable.  Speed up awk script.
20132         Reported by Paolo Bonzini.
20133
20134 2010-09-08  Jim Meyering  <meyering@redhat.com>
20135
20136         test.sh: disqualify shells for which set -x corrupts stderr
20137         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
20138         and OpenBSD 4.7.  They make it so with "set -x", environment settings
20139         appear in stderr output.  For example, this command:
20140             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
20141         prints "P=1" on those two systems:
20142
20143 2010-09-08  Bruno Haible  <bruno@clisp.org>
20144
20145         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
20146         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
20147         commands, because some shells ignore redirections when there is an
20148         error in the command lookup.
20149         Reported by Eric Blake.
20150
20151 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
20152
20153         * lib/regex.h: Fix a mention of `regex_compile' (should be
20154         `re_compile_pattern').
20155         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
20156         (re_set_registers): Correct name of parameter in comment.
20157
20158         * doc/regex.texi: Add documentation for missing syntax flags.
20159         Remove commented-out documentation of defunct syntax option
20160         RE_NO_EMPTY_ALTS.
20161         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
20162         Add documentation of re_set_registers.
20163         Document trick to re-use a pattern buffer by setting fastmap manually.
20164         Update documentation of struct re_pattern_buffer per public members.
20165         Uncomment documentation of equivalence class operators and
20166         collating symbol operators, since they are now implemented,
20167         Explain leftmost-longest matching in relation to alternatives.
20168         Tidy documentation of substring matching.
20169         Remove POSIX documentation, which is done better in
20170         glibc, and refer the reader there. Keep BSD API documentation, as
20171         that is not readily available elsewhere.
20172
20173 2010-09-07  Eric Blake  <eblake@redhat.com>
20174
20175         getopt: handle POSIXLY_CORRECT set but not exported
20176         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
20177         export state of POSIXLY_CORRECT, due to bash set -o posix.
20178         Reported by Dustin J. Mitchell.
20179
20180 2010-09-05  Bruno Haible  <bruno@clisp.org>
20181
20182         gnulib-tool: Highlight the changed options.
20183         * gnulib-tool (func_usage): Display the --import, --add-import,
20184         --remove-import explanations in bold font.
20185
20186 2010-09-06  Karl Berry  <karl@gnu.org>
20187
20188         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
20189
20190 2010-09-05  Bruno Haible  <bruno@clisp.org>
20191
20192         uniwidth/width: Update comment.
20193         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
20194         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
20195
20196 2010-09-05  Bruno Haible  <bruno@clisp.org>
20197
20198         isinf, isnan: Relax license.
20199         * modules/isinf (License): Change from GPL to LGPL, with consent from
20200         Ben Pfaff.
20201         * modules/isnan (License): Likewise.
20202         Requested by Ludovic Courtès.
20203
20204 2010-09-04  Bruno Haible  <bruno@clisp.org>
20205
20206         gnulib-tool: Help migration from --import to --add-import or --update.
20207         * gnulib-tool: Emit a verbose error message when --import is used
20208         without any module name.
20209
20210 2010-09-04  Bruno Haible  <bruno@clisp.org>
20211
20212         Update doc about gnulib-tool.
20213         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
20214         'gnulib-tool --update' in more detail.
20215         Reported by Eric Blake.
20216
20217 2010-09-04  Bruno Haible  <bruno@clisp.org>
20218
20219         gnulib-tool: Change --import. New options --add/remove-import.
20220         * gnulib-tool: New options --add-import, --remove-import.
20221         (func_usage): Document them.
20222         (have_associative): Define always.
20223         (func_import): In import mode, don't merge the specified settings with
20224         the cached settings. Implement remove-import mode.
20225         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
20226         Explain when to use them versus --import.
20227         (Simple update): Use --add-import instead of --import.
20228         * NEWS: Mention the change.
20229
20230 2010-09-04  Bruno Haible  <bruno@clisp.org>
20231
20232         * doc/gnulib-tool.texi (Initial import): Update paragraph about
20233         separate gnulib.mk.
20234
20235 2010-09-04  Bruno Haible  <bruno@clisp.org>
20236
20237         gnulib-tool: Don't talk about CVS any more.
20238         * gnulib-tool (func_usage, func_import): Write "version control"
20239         instead of CVS.
20240
20241 2010-09-04  Jim Meyering  <meyering@redhat.com>
20242
20243         maint.mk: avoid obscure sc_copyright_check failure in coreutils
20244         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
20245         false positives (whose names may be ill-chosen) when searching
20246         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
20247         would cause a false-positive.
20248
20249         avoid coreutils "make distcheck" failure
20250         Coreutils tests with an absolute build directory name that contains
20251         a space.  Not quoting this directory name caused a failure.
20252         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
20253         * tests/test-vc-list-files-cvs.sh: Likewise.
20254
20255 2010-09-04  Bruno Haible  <bruno@clisp.org>
20256
20257         gnulib-tool: Avoid error when run in a package without Makefile.am.
20258         * gnulib-tool: When collecting the m4dirs in a package that does not
20259         have a Makefile.am, eliminate those directories that contain no
20260         gnulib-cache.m4. Fix expression that counts these directories.
20261
20262 2010-09-04  Bruno Haible  <bruno@clisp.org>
20263
20264         update-copyright test: Improve output when perl is missing or too old.
20265         * tests/test-update-copyright.sh: Move test of Perl version down after
20266         the test whether Perl exists. Provide an explanation relating Perl's
20267         error message to Automake's SKIP: message.
20268
20269 2010-09-04  Bruno Haible  <bruno@clisp.org>
20270
20271         Don't augment PATH in TESTS_ENVIRONMENT.
20272         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
20273         set abs_aux_dir instead of augmenting PATH.
20274         * modules/vc-list-files-tests (Makefile.am): Likewise.
20275         * tests/test-update-copyright.sh: Augment PATH here.
20276         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
20277         path_prepend_.
20278         * tests/test-vc-list-files-git.sh: Likewise.
20279
20280 2010-09-04  Jim Meyering  <meyering@redhat.com>
20281
20282         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
20283         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
20284
20285 2010-09-04  Bruno Haible  <bruno@clisp.org>
20286
20287         strdup: Fix compilation error in C++ mode.
20288         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
20289         the macro.
20290
20291 2010-09-04  Bruno Haible  <bruno@clisp.org>
20292
20293         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
20294         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
20295         macro into a function.
20296         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
20297
20298 2010-09-04  Bruno Haible  <bruno@clisp.org>
20299
20300         Set PATH_SEPARATOR the same way autoconf does.
20301         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
20302         the value of PATH_SEPARATOR the same way autoconf-generated configure
20303         scripts do.
20304         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
20305         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
20306
20307 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
20308
20309         Set PATH_SEPARATOR the same way autoconf does.
20310         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
20311         the same way autoconf-generated configure scripts do.
20312         * posix-modules: Likewise.
20313
20314 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
20315
20316         hash: fix safe_hasher const typo
20317         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
20318         const; otherwise, there is a type error later.
20319
20320 2010-09-02  Jim Meyering  <meyering@redhat.com>
20321
20322         test-update-copyright.sh: require perl 5.8.0
20323         * tests/test-update-copyright.sh: Require 5.8.0,
20324         which Tom G. Christensen has confirmed is adequate,
20325         while 5.6.1 is not.
20326
20327 2010-09-02  Eric Blake  <eblake@redhat.com>
20328
20329         tests: init.sh improvements for re-exec'ing with zsh
20330         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
20331         -vx through shell re-exec.
20332         Reported by Tom G. Christensen.
20333
20334         wctype: fix typo in previous commit
20335         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
20336         Reported by Ludovic Courtès.
20337
20338 2010-09-02  Jim Meyering  <meyering@redhat.com>
20339
20340         test-update-copyright.sh: skip test if Perl is too old
20341         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
20342         Reported by Tom G. Christensen.
20343
20344 2010-09-02  Bruno Haible  <bruno@clisp.org>
20345
20346         wctype: Avoid compilation error on IRIX 6.5.30.
20347         * lib/wctype.in.h (iswblank): Declare with a replacement if
20348         REPLACE_ISWBLANK is set.
20349         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
20350         declared. Set REPLACE_ISWBLANK.
20351         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
20352         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
20353         * doc/posix-headers/wctype.texi: Likewise.
20354         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20355
20356 2010-09-01  Bruno Haible  <bruno@clisp.org>
20357
20358         New module 'socketlib'.
20359         * modules/socketlib: New file.
20360         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
20361         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
20362         * modules/sockets (Depends-on): Add socketlib.
20363         Suggested by Sam Steingold <sds@gnu.org>.
20364
20365 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
20366
20367         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
20368
20369         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
20370         when one needs search access to a directory but not read access.
20371         On systems where it is available, it works in some cases where
20372         O_RDONLY does not, namely on directories that are searchable but
20373         not readable, and which need only to be searchable.  If O_SEARCH
20374         is not available, fall back to the traditional method of using
20375         O_RDONLY.
20376
20377         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
20378         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
20379         when opening a directory that needs only to be searchable.
20380         * lib/chdir-safer.c (chdir_no_follow): Likewise.
20381         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
20382         * lib/openat-proc.c (openat_proc_name): Likewise.
20383         * lib/openat.c (openat_needs_fchdir): Likewise.
20384         * lib/save-cwd.c (save_cwd): Likewise.
20385         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
20386
20387 2010-08-28  Bruno Haible  <bruno@clisp.org>
20388
20389         New module 'host-cpu-c-abi'.
20390         * modules/host-cpu-c-abi: New file.
20391         * m4/host-cpu-c-abi.m4: New file, based on part of
20392         clisp/src/m4/general.m4.
20393         Requested by Sam Steingold <sds@gnu.org>.
20394
20395 2010-08-31  Eric Blake  <eblake@redhat.com>
20396         and Jim Meyering  <meyering@redhat.com>
20397
20398         hash: factor, and guard against misbehaving hasher function
20399         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
20400         of table->hasher's return value.  Also protect against a hash value
20401         so large that adding it to table->bucket results in a NULL pointer.
20402         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
20403         Use it in place of open-coded check-and-abort.
20404
20405 2010-08-30  Bruno Haible  <bruno@clisp.org>
20406
20407         hash: silence spurious clang warning
20408         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
20409         Reported by Eric Blake.
20410
20411 2010-08-30  Eric Blake  <eblake@redhat.com>
20412
20413         strstr, memmem, strcasestr: avoid leaked shell message
20414         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
20415         FreeBSD.
20416         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
20417         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
20418
20419         tests: silence clang warning
20420         * tests/test-malloca.c (do_allocation): Avoid dead store.
20421
20422 2010-08-29  Bruno Haible  <bruno@clisp.org>
20423
20424         gettext: Fix recent mistake.
20425         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
20426
20427 2010-08-29  Bruno Haible  <bruno@clisp.org>
20428
20429         selinux-h: Offer a --without-selinux option.
20430         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
20431         --without-selinux was specified, skip all tests and define
20432         HAVE_SELINUX_SELINUX_H to 0.
20433         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
20434         set LIB_SELINUX to empty.
20435         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
20436         gl_LIBSELINUX. If --without-selinux was specified, replace
20437         selinux/context.h.
20438         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
20439
20440 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20441             Bruno Haible  <bruno@clisp.org>
20442
20443         Make the module 'realloc-gnu' work again on AIX and OSF/1.
20444         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
20445         of HAVE_REALLOC.
20446         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
20447         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
20448         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
20449         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
20450
20451 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20452             Bruno Haible  <bruno@clisp.org>
20453
20454         Make the module 'calloc-gnu' work again on AIX and OSF/1.
20455         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
20456         HAVE_CALLOC.
20457         * lib/xmalloc.c: Update accordingly.
20458         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
20459         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
20460         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
20461
20462 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20463             Bruno Haible  <bruno@clisp.org>
20464
20465         Make the module 'malloc-gnu' work again on AIX and OSF/1.
20466         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
20467         HAVE_MALLOC.
20468         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
20469         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
20470         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
20471
20472 2010-08-29  Bruno Haible  <bruno@clisp.org>
20473
20474         Update modules list.
20475         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
20476         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
20477         (String handling <string.h>): Add astrxfrm.
20478         (File system functions): Add readlinkat.
20479
20480 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20481
20482         Tests for module 'realloc-gnu'.
20483         * modules/realloc-gnu-tests: New file.
20484         * tests/test-realloc-gnu.c: New file.
20485
20486         Tests for module 'calloc-gnu'.
20487         * modules/calloc-gnu-tests: New file.
20488         * tests/test-calloc-gnu.c: New file.
20489
20490         Tests for module 'malloc-gnu'.
20491         * modules/malloc-gnu-tests: New file.
20492         * tests/test-malloc-gnu.c: New file.
20493
20494 2010-08-28  Bruno Haible  <bruno@clisp.org>
20495
20496         Rename module 'realloc' -> 'realloc-gnu'.
20497         * modules/realloc-gnu: New file, copied from modules/realloc.
20498         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
20499         obsolete.
20500         * modules/mgetgroups (Depends-on): Update.
20501         * doc/posix-functions/realloc.texi: Update.
20502         * NEWS: Mention the change.
20503
20504         Rename module 'calloc' -> 'calloc-gnu'.
20505         * modules/calloc-gnu: New file, copied from modules/calloc.
20506         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
20507         obsolete.
20508         * doc/posix-functions/calloc.texi: Update.
20509         * NEWS: Mention the change.
20510
20511         Rename module 'malloc' -> 'malloc-gnu'.
20512         * modules/malloc-gnu: New file, copied from modules/malloc.
20513         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
20514         obsolete.
20515         * modules/argp (Depends-on): Update.
20516         * modules/regex (Depends-on): Update.
20517         * doc/posix-functions/malloc.texi: Update.
20518         * NEWS: Mention the change.
20519
20520 2010-08-28  Eric Blake  <eblake@redhat.com>
20521
20522         pread, pwrite: add missing dependency
20523         * modules/pread (Depends-on): Add extensions.
20524         * modules/pwrite (Depends-on): Likewise.
20525
20526 2010-08-28  Bruno Haible  <bruno@clisp.org>
20527
20528         unistr/u*-strchr: Fix tests dependencies.
20529         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
20530         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
20531         Reported by Ian Beckwith <ianb@erislabs.net>.
20532
20533 2010-08-28  Bruno Haible  <bruno@clisp.org>
20534
20535         read-file: Don't occupy too much unused memory.
20536         * lib/read-file.c (fread_file): Shrink the buffer at the end.
20537
20538 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
20539             Eric Blake  <eblake@redhat.com>
20540             Bruno Haible  <bruno@clisp.org>
20541
20542         read-file: Avoid memory reallocations with regular files.
20543         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
20544         (fread_file): With regular files, use the remaining length as the
20545         initial buffer size.  Check against overflow.
20546         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
20547         sys_stat.
20548
20549 2010-08-28  Bruno Haible  <bruno@clisp.org>
20550
20551         ftello: Relax license.
20552         * modules/ftello (License): Relax to LGPLv2+.
20553         Reported by Eric Blake.
20554
20555 2010-08-28  Bruno Haible  <bruno@clisp.org>
20556
20557         Avoid relocwrapper link errors due to gnulib replacement functions.
20558         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
20559         function.
20560         Reported by Ben Pfaff <blp@cs.stanford.edu>.
20561
20562 2010-08-28  Bruno Haible  <bruno@clisp.org>
20563
20564         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
20565         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
20566         defined.
20567         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
20568         Suggested by Eric Blake.
20569
20570 2010-08-28  Bruno Haible  <bruno@clisp.org>
20571
20572         sys_socket, netdb: Ensure socklen_t gets defined.
20573         * modules/sys_socket (Depends-on): Add socklen.
20574         * modules/netdb (Depends-on): Likewise.
20575         * modules/getaddrinfo (Depends-on): Remove socklen.
20576         * modules/getsockopt (Depends-on): Likewise.
20577         * modules/setsockopt (Depends-on): Likewise.
20578         * tests/test-sys_socket.c: Check that socklen_t is defined.
20579         * tests/test-netdb.c: Likewise.
20580         * m4/socklen.m4: Update comments.
20581         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
20582
20583 2010-08-27  Eric Blake  <eblake@redhat.com>
20584
20585         login_tty: add missing dependency
20586         * modules/login_tty (Depends-on): Add pty.
20587
20588 2010-08-26  Eric Blake  <eblake@redhat.com>
20589
20590         lib-symbol-versions: fix m4 quoting
20591         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
20592         format for AC_LINK_IFELSE.
20593
20594         glob: fix compile test
20595         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
20596
20597         btowc: fix missing file
20598         * modules/btowc (Files): Also ship locale-fr.m4.
20599
20600         lseek: fix link test
20601         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
20602         AC_LINK_IFELSE.
20603
20604         include_next: silence autoconf 2.68 warning
20605         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
20606         AC_COMPILE_IFELSE as special.
20607         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
20608         autoconf < 2.68.
20609
20610         acl: fix compilation test
20611         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
20612         AC_COMPILE_IFELSE.
20613
20614 2010-08-26  Bruno Haible  <bruno@clisp.org>
20615
20616         Modernize AC_TRY_RUN invocations.
20617         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
20618         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
20619         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
20620         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
20621         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
20622         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
20623         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
20624         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
20625         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
20626         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
20627         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
20628         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
20629         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
20630         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
20631         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
20632         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
20633         gl_MBRLEN_NUL_RETVAL): Likewise.
20634         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
20635         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
20636         Likewise.
20637         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
20638         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
20639         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
20640         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
20641         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
20642         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
20643         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
20644         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
20645         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
20646         Likewise.
20647         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
20648         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
20649         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
20650         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
20651         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
20652         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
20653         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
20654         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
20655         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
20656         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
20657
20658 2010-08-26  Bruno Haible  <bruno@clisp.org>
20659
20660         Modernize AC_TRY_LINK invocations.
20661         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
20662         AC_TRY_LINK.
20663         * m4/argp.m4 (gl_ARGP): Likewise.
20664         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
20665         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
20666         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
20667         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
20668         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
20669         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
20670         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
20671         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
20672         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
20673         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
20674         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
20675         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
20676         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
20677         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
20678         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
20679         * m4/hostent.m4 (gl_HOSTENT): Likewise.
20680         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
20681         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
20682         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
20683         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
20684         Likewise.
20685         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
20686         Likewise.
20687         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
20688         Likewise.
20689         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
20690         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
20691         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
20692         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
20693         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
20694         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
20695         * m4/servent.m4 (gl_SERVENT): Likewise.
20696         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
20697         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
20698         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
20699         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
20700         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
20701         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
20702         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
20703         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
20704         * modules/tsearch-tests (configure.ac): Likewise.
20705
20706 2010-08-26  Bruno Haible  <bruno@clisp.org>
20707
20708         Modernize AC_TRY_COMPILE invocations.
20709         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
20710         AC_TRY_COMPILE.
20711         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
20712         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
20713         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
20714         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
20715         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
20716         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
20717         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
20718         * m4/lock.m4 (gl_LOCK): Likewise.
20719         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
20720         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
20721         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
20722         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
20723         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
20724         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
20725         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
20726         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
20727         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
20728         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
20729         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
20730         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
20731         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
20732         extraneous semicolon.
20733
20734 2010-08-26  Jim Meyering  <meyering@redhat.com>
20735
20736         stat-time: relax license LGPL
20737         * modules/stat-time (License): Change from GPL to LGPL,
20738         with consent from all contributors, for use in libguile.
20739         Requested by Ludovic Courtès.
20740
20741 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
20742
20743         poll: return immediately on POLLHUP.
20744         * lib/poll.c (poll): Always set timeout before wait_timeout is
20745         computed.
20746
20747 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20748
20749         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
20750         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
20751         rmdir ("dir/.//"), unlinkat.
20752
20753 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
20754
20755         stdbool: avoid spurious failure with modern xlc
20756         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
20757
20758 2010-08-24  Bruno Haible  <bruno@clisp.org>
20759
20760         getloadavg: simplify code
20761         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
20762         gl_have_func. Update comments.
20763
20764 2010-08-24  Eric Blake  <eblake@redhat.com>
20765
20766         getloadavg: don't define SVR4 on cygwin
20767         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
20768         only define SVR4 when -lkvm is required.
20769         Reported by Yaakov Selkowitz.
20770
20771 2010-08-24  Bruno Haible  <bruno@clisp.org>
20772
20773         priv-set: fix comment
20774         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
20775
20776 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
20777
20778         priv-set: fix comments
20779         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
20780         to match code, as suggested by David Bartley in:
20781         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
20782
20783 2010-08-23  Eric Blake  <eblake@redhat.com>
20784
20785         stdbool: avoid rejecting clang
20786         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
20787         * tests/test-stdbool.c: Enable more tests if using the system
20788         <stdbool.h> instead of the gnulib replacement.
20789         (main): Move xlc bug test to a runtime test for all compilers.
20790         Reported by Anders Kaseorg.
20791
20792         argz: fix shell quoting issue
20793         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
20794         Reported by Charles Wilson.
20795
20796 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
20797             Erik Faye-Lund <kusmabite@gmail.com>
20798
20799         poll, select: handle ERROR_BROKEN_PIPE.
20800         * lib/poll.c (win32_compute_revents): Return POLLHUP when
20801         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
20802         * lib/select.c (win32_compute_revents): Do not mark a pipe
20803         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
20804
20805 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
20806
20807         fts: allow compilation with C++
20808         * lib/fts_.h: Specify extern "C" linkage with C++.
20809
20810 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20811
20812         Fix gnulib-tool sed script de-commentation for AIX sed.
20813         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
20814         sed.
20815
20816 2010-08-17  Eric Blake  <eblake@redhat.com>
20817
20818         test-stddef: test for (some) offsetof bugs
20819         * tests/test-stddef.c: Enhance test to ensure correct type of
20820         offsetof.
20821         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
20822         that we are not fixing at this time.
20823
20824 2010-08-15  Bruno Haible  <bruno@clisp.org>
20825
20826         stpncpy: Allow stpncpy to be defined as a macro.
20827         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
20828         if it's already correctly declared.
20829         * lib/string.in.h (stpncpy): Undefine before redefining.
20830         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
20831
20832 2010-08-14  Bruno Haible  <bruno@clisp.org>
20833
20834         Rename module 'memxfrm' to 'amemxfrm'.
20835         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
20836         (amemxfrm): Renamed from memxfrm.
20837         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
20838         (amemxfrm): Renamed from memxfrm.
20839         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
20840         * NEWS: Mention the change.
20841         * MODULES.html.sh (String handling <string.h>): Update.
20842         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
20843         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
20844         * lib/unicase/u16-casexfrm.c: Likewise.
20845         * lib/unicase/u32-casexfrm.c: Likewise.
20846         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
20847         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
20848         * lib/uninorm/u16-normxfrm.c: Likewise.
20849         * lib/uninorm/u32-normxfrm.c: Likewise.
20850         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
20851         memxfrm.
20852         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
20853         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
20854         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
20855         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
20856         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
20857         Suggested by Paul Eggert.
20858
20859 2010-08-14  Bruno Haible  <bruno@clisp.org>
20860
20861         Tests for module 'astrxfrm'.
20862         * modules/astrxfrm-tests: New file.
20863         * tests/test-astrxfrm.c: New file.
20864
20865         New module 'astrxfrm'.
20866         * lib/astrxfrm.h: New file.
20867         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
20868         * modules/astrxfrm: New file.
20869
20870 2010-08-14  Reuben Thomas <rrt@sc3d.org>
20871
20872         regex: Tweak doc.
20873         * doc/regex.texi (Overview): Don't mention regex.c.
20874         (GNU Regular Expression Compiling): Likewise.
20875         (Match-end-of-line Operator): Mention 'not_eol'.
20876
20877 2010-08-14  Brian Gough  <bjg@gnu.org>
20878             Bruno Haible  <bruno@clisp.org>
20879
20880         git-merge-changelog: add doc relating to use with bzr and hg.
20881         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
20882
20883 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
20884
20885         pthread: fix pthread.h creation for srcdir != builddir
20886         * modules/pthread (Makefile.am): Fix the rule to work also in a
20887         non-srcdir build.
20888
20889 2010-08-13  Karl Berry  <karl@gnu.org>
20890
20891         * doc/regex.texi (Predefined Syntaxes): @smallexample.
20892         * doc/posix-*/*: force line break before @url of POSIX
20893         specifications.
20894         Suggested by Werner Lemberg.
20895
20896 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
20897
20898         strtod: fix const diagnostic
20899         * lib/strtod.c (strtod): Don't assign const char * to char *,
20900         as this elicits a warning from GCC when warnings are enabled.
20901
20902 2010-08-10  Pádraig Brady <P@draigbrady.com>
20903         and Eric Blake  <eblake@redhat.com>
20904
20905         copy-acl: ignore ENOTSUP on HP-UX
20906         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
20907         so that it is available for HP-UX.
20908         * lib/copy-acl.c (qcopy_acl): Use it.
20909         Reported by Patrick M. Callahan.
20910
20911 2010-08-10  Eric Blake  <eblake@redhat.com>
20912
20913         open, chown: relax license
20914         * modules/open (License): Change to LGPLv2+, with consent by all
20915         authors, for use in augeas.
20916         * modules/chown (License): Likewise.
20917         * modules/lchown (Likewise): Likewise.
20918         Requested by Adam Stokes.
20919
20920 2010-08-09  Karl Berry  <karl@gnu.org>
20921
20922         * build-aux/ar-lib: new file, import from Automake.
20923         * config/srclist.txt: autocheck for updates.
20924
20925 2010-08-09  Eric Blake  <eblake@redhat.com>
20926
20927         readlinkat: adjust client modules
20928         * modules/areadlinkat (Depends-on): Use readlinkat, not
20929         symlinkat.
20930         * modules/areadlinkat-with-size (Depends-on): Likewise.
20931
20932         mknod: be more vocal about danger of running tests as root
20933         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
20934         root, since that is just asking for problems.
20935         Suggested by Bruno Haible, based on a report by Rainer Tammer.
20936
20937         readlinkat: split into its own module
20938         * modules/symlinkat: Split readlinkat...
20939         * modules/readlinkat: ...into separate module.
20940         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
20941         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
20942         * lib/symlinkat.c (readlinkat): Move...
20943         * lib/readlinkat.c: ...into new file.
20944         * modules/symlinkat-tests: Split readlinkat test...
20945         * modules/readlinkat-tests: ...into separate module.
20946         * tests/test-symlinkat.c: Split...
20947         * tests/test-readlinkat.c: ...into new file.
20948         * NEWS: Document the split.
20949         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
20950         * lib/unistd.in.h (readlinkat): Likewise.
20951         Suggested by Bruno Haible.
20952
20953 2010-08-08  Bruno Haible  <bruno@clisp.org>
20954
20955         memxfrm: Speed up.
20956         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
20957         that usually only one call to strxfrm is necessary for each string
20958         part.
20959         Reported by Paul Eggert <eggert@cs.ucla.edu>.
20960
20961 2010-08-07  Karl Berry  <karl@gnu.org>
20962
20963         * doc/posix-headers/limits.texi,
20964         * doc/posix-functions/malloc.texi,
20965         * doc/posix-functions/strsignal.texi: missing @item.
20966         * doc/ld-version-script.texi: spurious leading i.
20967         * doc/regex.texi (Interval Operators): no commas inside @var.
20968
20969 2010-08-01  Bruno Haible  <bruno@clisp.org>
20970
20971         Integrate the regex documentation.
20972         * doc/gnulib.texi: Define 'cn' index.
20973         (Regular expressions): New a chapter that includes regex.texi and
20974         regexprops-generic.texi.
20975         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
20976         syntax.
20977
20978         Whitespace cleanup.
20979         * doc/regex.texi: Remove trailing spaces.
20980
20981         Add regex documentation.
20982         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
20983         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
20984         Written by Kathy A. Hargreaves and Karl Berry.
20985
20986 2010-08-01  Bruno Haible  <bruno@clisp.org>
20987
20988         link: Update documentation.
20989         * doc/posix-functions/link.texi: Update regarding Solaris.
20990
20991 2010-07-31  Bruno Haible  <bruno@clisp.org>
20992
20993         Update modules list.
20994         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
20995         (String handling <string.h>): Add memcmp2, memxfrm.
20996         (Container data structures): Add xlist, xsublist, xoset.
20997         (Core language properties): Add alignof, unused-parameter.
20998         (Process control, Numeric conversion functions <stdlib.h>): Renamed
20999         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
21000         (Unibyte characters <ctype.h>): New section.
21001         (String handling <string.h>): New section.
21002         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
21003         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
21004         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
21005         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
21006         tan, tanh, tanl, y0, y1, yn.
21007         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
21008         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
21009         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
21010         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
21011         unlockpt, vdprintf, vdprintf-posix.
21012         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
21013         (File system functions): Add concat-filename, sys_file, sys_ioctl,
21014         xconcat-filename.
21015         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
21016         getdtablesize, pipe2, pipe2-safer.
21017         (Security): New section.
21018         (Networking functions): Add accept4.
21019         (Signal handling): Add sigpipe.
21020         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
21021         mbmemcasecoll.
21022         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
21023         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
21024         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
21025         pipe-filter-ii.
21026         (Misc): Add argp-version-etc, login_tty, parse-duration.
21027
21028 2010-07-31  Bruno Haible  <bruno@clisp.org>
21029
21030         Improve doc in MODULES.html.
21031         * modules/linkat (Description): Add the word "function".
21032         * modules/mkfifo (Description): Likewise.
21033         * modules/mknod (Description): Likewise.
21034         * modules/remove (Description): Likewise.
21035         * modules/renameat (Description): Likewise.
21036         * modules/stat (Description): Likewise.
21037         * modules/symlink (Description): Likewise.
21038         * modules/unlink (Description): Likewise.
21039
21040 2010-07-31  Bruno Haible  <bruno@clisp.org>
21041
21042         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
21043         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
21044         option --enable/disable-c++ instead of --enable/disable-cxx.
21045         * NEWS: Mention the change.
21046
21047 2010-07-31  Bruno Haible  <bruno@clisp.org>
21048
21049         readlink, areadlink: Relax test a bit.
21050         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
21051         alternative to ENOTDIR.
21052         * tests/test-areadlink.h (test_areadlink): Likewise.
21053         Reported by Rainer Tammer.
21054
21055 2010-07-31  Bruno Haible  <bruno@clisp.org>
21056
21057         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
21058         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
21059         character, perform the search using U_STRCHR.
21060         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
21061         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
21062         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
21063         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
21064         Suggested by Paolo Bonzini.
21065
21066 2010-07-31  Bruno Haible  <bruno@clisp.org>
21067
21068         unistr/u*-strstr: Fix dependencies.
21069         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
21070         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
21071         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
21072
21073 2010-07-31  Bruno Haible  <bruno@clisp.org>
21074
21075         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
21076         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
21077         the beginning of the loop.
21078         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
21079         cases in 'switch' statement.
21080
21081         unistr/u8-strchr: Fix several bugs.
21082         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
21083         the string. When not found, return NULL, not a pointer near the end.
21084
21085         More tests for unistr/u8-strchr.
21086         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
21087         that the function does not read past the first occurrence of the byte
21088         being searched.
21089         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
21090         * tests/unistr/test-u16-strchr.c (main): New function.
21091         * tests/unistr/test-u32-strchr.c (main): New function.
21092
21093 2010-07-31  Bruno Haible  <bruno@clisp.org>
21094
21095         posix-modules: Ignore backup files of documentation files.
21096         * posix-modules: grep only through files named *.texi.
21097
21098 2010-07-31  Bruno Haible  <bruno@clisp.org>
21099
21100         symlinkat: Fix documentation.
21101         * doc/posix-functions/readlinkat.texi: Fix module name.
21102
21103 2010-07-31  Bruno Haible  <bruno@clisp.org>
21104
21105         fchownat: Replace also when chown has the trailing slash bug.
21106         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
21107         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
21108         introduced on 2010-04-10.
21109         Reported by Rainer Tammer.
21110
21111 2010-07-31  Bruno Haible  <bruno@clisp.org>
21112
21113         linkat: Work around AIX 7.1 bug.
21114         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
21115         whether linkat handles trailing slash correctly. If not, replace linkat
21116         and define LINKAT_TRAILING_SLASH_BUG.
21117         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
21118         check whether (fd1,file1) points to a directory if file1 or file2 ends
21119         in a slash. Code taken from lib/link.c.
21120         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
21121         Reported by Rainer Tammer.
21122
21123 2010-07-31  Bruno Haible  <bruno@clisp.org>
21124
21125         Correctly determine whether pow is available in libc on AIX 7 with xlc.
21126         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
21127         This disables an xlc optimization that was causing wrong test results.
21128         Reported by Rainer Tammer.
21129
21130 2010-07-31  Bruno Haible  <bruno@clisp.org>
21131
21132         iconv: Work around AIX 6.1..7.1 bug.
21133         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
21134         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
21135         cross-compiling, guess no on all versions of AIX.
21136         Reported by Rainer Tammer.
21137
21138 2010-07-31  Bruno Haible  <bruno@clisp.org>
21139
21140         readlink: Relax test a bit.
21141         * tests/test-readlink.h (test_readlink): Allow different errno value
21142         when readlink is called with a file name that ends in / and refers to
21143         a file.
21144         Suggested by Eric Blake.
21145         Reported by Rainer Tammer.
21146
21147 2010-07-31  Bruno Haible  <bruno@clisp.org>
21148
21149         copysign: Does not require -lm on glibc systems.
21150         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
21151         gl_COMMON_DOUBLE_MATHFUNC.
21152         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
21153
21154 2010-07-31  Bruno Haible  <bruno@clisp.org>
21155
21156         duplocale: Work around AIX 7.1 bug.
21157         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
21158         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
21159         * lib/duplocale.c (rpl_duplocale): Update comment.
21160         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
21161         Reported by Rainer Tammer.
21162
21163 2010-07-30  Bruno Haible  <bruno@clisp.org>
21164
21165         dirfd: Avoid link error on AIX 7.1.
21166         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
21167         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
21168         exist, set REPLACE_DIRFD.
21169         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
21170         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
21171         * doc/posix-functions/dirfd.texi: Update.
21172         Reported by Rainer Tammer.
21173
21174 2010-07-30  Eric Blake  <eblake@redhat.com>
21175
21176         strtod: next round of AIX fixes
21177         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
21178         exponent.
21179         * tests/test-strtod.c (main): Enhance tests.
21180         * doc/posix-functions/strtod.texi (strtod): Document next bug.
21181         Reported by Rainer Tammer.
21182
21183         futimens: fix configure check
21184         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
21185         Reported by Bruno Haible.
21186
21187 2010-07-30  Bruno Haible  <bruno@clisp.org>
21188
21189         getline: Update regarding AIX.
21190         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
21191         Reported by Rainer Tammer.
21192
21193 2010-07-30  Bruno Haible  <bruno@clisp.org>
21194
21195         wcwidth: Drop replacement on AIX 7.
21196         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
21197         AIX 7.
21198         Reported by Rainer Tammer.
21199
21200 2010-07-30  Bruno Haible  <bruno@clisp.org>
21201
21202         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
21203         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
21204         a 'char *'.
21205         Reported by Rainer Tammer.
21206
21207 2010-07-30  Bruno Haible  <bruno@clisp.org>
21208
21209         unlink: Update regarding AIX.
21210         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
21211         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
21212         Reported by Rainer Tammer.
21213
21214 2010-07-30  Bruno Haible  <bruno@clisp.org>
21215
21216         symlink: Update regarding AIX.
21217         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
21218         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
21219         Reported by Rainer Tammer.
21220
21221 2010-07-30  Bruno Haible  <bruno@clisp.org>
21222
21223         strndup: Update regarding AIX.
21224         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
21225         AIX 7.
21226         Reported by Rainer Tammer.
21227
21228 2010-07-30  Bruno Haible  <bruno@clisp.org>
21229
21230         stat: Update regarding AIX.
21231         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
21232         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
21233         Reported by Rainer Tammer.
21234
21235 2010-07-30  Bruno Haible  <bruno@clisp.org>
21236
21237         truncl: Fix autoconf test.
21238         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
21239         whether truncl works.
21240         Reported by Rainer Tammer.
21241
21242 2010-07-30  Bruno Haible  <bruno@clisp.org>
21243
21244         round: Update regarding AIX.
21245         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
21246         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
21247         Reported by Rainer Tammer.
21248
21249 2010-07-30  Bruno Haible  <bruno@clisp.org>
21250
21251         rename: Update regarding AIX.
21252         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
21253         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
21254         Reported by Rainer Tammer.
21255
21256 2010-07-30  Bruno Haible  <bruno@clisp.org>
21257
21258         printf.m4: Update regarding AIX.
21259         * m4/printf.m4: Update comments regarding AIX.
21260         Reported by Rainer Tammer.
21261
21262 2010-07-30  Bruno Haible  <bruno@clisp.org>
21263
21264         iconv: Update regarding AIX.
21265         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
21266         AIX 7.
21267         Reported by Rainer Tammer.
21268
21269 2010-07-30  Bruno Haible  <bruno@clisp.org>
21270
21271         getopt: Update regarding AIX.
21272         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
21273         no on AIX.
21274         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
21275         Reported by Rainer Tammer.
21276
21277 2010-07-30  Bruno Haible  <bruno@clisp.org>
21278
21279         ldexpl; Update regarding AIX.
21280         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
21281         on AIX 7.
21282         Reported by Rainer Tammer.
21283
21284 2010-07-30  Bruno Haible  <bruno@clisp.org>
21285
21286         frexpl: Update regarding AIX.
21287         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
21288         on AIX 7.
21289         Reported by Rainer Tammer.
21290
21291 2010-07-30  Bruno Haible  <bruno@clisp.org>
21292
21293         open, fopen: Update regarding AIX.
21294         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
21295         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
21296         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
21297         * doc/posix-functions/fopen.texi: Likewise.
21298         Reported by Rainer Tammer.
21299
21300 2010-07-30  Bruno Haible  <bruno@clisp.org>
21301
21302         chown: Update doc regarding AIX.
21303         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
21304         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
21305         Reported by Rainer Tammer.
21306
21307 2010-07-30  Eric Blake  <eblake@redhat.com>
21308
21309         strtod: fix bug in replacement function on AIX
21310         * lib/strtod.c (strtod): Special case broken "0x" parse in
21311         underlying strtod.
21312         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
21313         * doc/posix-functions/strtod.texi (strtod): Likewise.
21314         Reported by Rainer Tammer.
21315
21316 2010-07-30  Bruno Haible  <bruno@clisp.org>
21317
21318         mbrlen: Fix cross-compilation guess for AIX.
21319         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
21320         guess. Leftover from 2008-12-22.
21321
21322 2010-07-30  Bruno Haible  <bruno@clisp.org>
21323
21324         mbrtowc: Fix cross-compilation guess for AIX.
21325         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
21326         guess. Leftover from 2008-12-21.
21327
21328 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
21329
21330         init.sh: work around trap limitation of some shells
21331         * tests/init.sh (setup_): Move exit trap outside of shell function.
21332
21333 2010-07-29  Eric Blake  <eblake@redhat.com>
21334
21335         strtod: aid debugging
21336         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
21337         understanding why strtod is rejected.
21338
21339 2010-07-28  Bruno Haible  <bruno@clisp.org>
21340
21341         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
21342         * lib/unistr/u8-chr.c: Include <string.h>.
21343         * tests/unistr/test-u8-chr.c: Likewise.
21344         * tests/unistr/test-u16-chr.c: Likewise.
21345         * tests/unistr/test-u32-chr.c: Likewise.
21346         * tests/unistr/test-u8-strchr.c: Likewise.
21347         * tests/unistr/test-u16-strchr.c: Likewise.
21348         * tests/unistr/test-u32-strchr.c: Likewise.
21349         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
21350         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
21351         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
21352         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
21353
21354 2010-07-28  Bruno Haible  <bruno@clisp.org>
21355
21356         Use spaces for indentation, not tabs.
21357         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
21358
21359 2010-07-27  Bruno Haible  <bruno@clisp.org>
21360
21361         mbspcasecmp: Fix function specification.
21362         * lib/string.in.h (mbspcasecmp): Fix specification comment.
21363         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
21364         Reported by Eric Blake <eblake@redhat.com>.
21365
21366 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
21367
21368         timespec: use cast and not conditional, as truncation isn't possible
21369         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
21370         instead of a conditional.  Comment about the situation in more detail.
21371         This undoes most of the 2009-10-29 patch.
21372
21373 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
21374
21375         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
21376         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
21377         * lib/unistr/u8-strchr.c: Likewise.
21378         * modules/unistr/u8-chr: Depend on memchr.
21379
21380         unistr/u*-strchr: add tests
21381         * modules/unistr/u8-strchr-tests: New file.
21382         * modules/unistr/u16-strchr-tests: New file.
21383         * modules/unistr/u32-strchr-tests: New file.
21384         * tests/unistr/test-strchr.h: New file.
21385         * tests/unistr/test-u8-strchr.c: New file.
21386         * tests/unistr/test-u16-strchr.c: New file.
21387         * tests/unistr/test-u32-strchr.c: New file.
21388
21389         unistr/u*-chr: test multibyte sequences more
21390         * tests/unistr/test-chr.h: Do complete testing of the characters in the
21391         test vector.
21392         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
21393         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
21394         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
21395
21396         unistr/u*-chr: test multibyte sequences
21397         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
21398
21399         unistr/u*-chr: prepare for multibyte tests
21400         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
21401         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
21402         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
21403         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
21404         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
21405         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
21406
21407 2010-07-18  Bruno Haible  <bruno@clisp.org>
21408
21409         unistr/u8-strchr: Optimize non-ASCII argument case.
21410         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
21411         because the first byte often matches anyway.
21412         Reported by Pádraig Brady <P@draigbrady.com>.
21413
21414 2010-07-15  Karl Berry  <karl@gnu.org>
21415
21416         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
21417
21418 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
21419
21420         getcwd: on Solaris, work better if ancestors are inaccessible
21421         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
21422         buffer and size, try again with a large buffer.  This works better
21423         on Solaris, since its getcwd succeeds even if the path to the root
21424         is inaccessible, and this is helpful in common cases such as .zfs
21425         hidden directories.  Problem reported by J Chapman Flack in
21426         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
21427         Use system getcwd if it's declared, not merely if it's partly
21428         working; use the partly-working test only to avoid needless effort
21429         if the system getcwd fails.
21430         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
21431         comment that was already obsolete and is now even more obsolete.
21432         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
21433         now might call strdup.
21434
21435 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
21436
21437         pthread: Add enough so that coreutils/src/sort.c compiles.
21438         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
21439         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
21440         gnulib. Include <sched.h> and <time.h>, as per POSIX.
21441         Include <sys/types.h>, in case it defines pthread_t.
21442         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
21443         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
21444         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
21445         (pthread_rwlockattr_t, pthread_spinlock_t):
21446         New typedefs, if HAVE_PTHREAD_T is not defined.
21447         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
21448         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
21449         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
21450         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
21451         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
21452         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
21453         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
21454         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
21455         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
21456         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
21457         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
21458         New macros.
21459         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
21460         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
21461         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
21462         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
21463         (pthread_spin_unlock): New dummy functions.
21464         (pthread_create): Return EAGAIN; don't set errno.
21465         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
21466         require AC_C_INLINE.
21467         * modules/pthread (Depends-on): Add sched, time.
21468         (pthread.h): Use AM_V_GEN.
21469
21470 2010-07-13  Bruno Haible  <bruno@clisp.org>
21471
21472         striconveh: Don't malloc memory if the result buffer is sufficient.
21473         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
21474         buffer if its size is sufficient.
21475         Reported by Ludovic Courtès <ludo@gnu.org>.
21476
21477 2010-07-13  Bruno Haible  <bruno@clisp.org>
21478
21479         strtod: Add safety check.
21480         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
21481
21482 2010-07-12  Bruno Haible  <bruno@clisp.org>
21483
21484         Unify tests that set gl_cv_func_ldexpl_no_libm.
21485         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
21486         gl_FUNC_LDEXPL.
21487         (gl_FUNC_LDEXPL): Invoke it.
21488         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
21489
21490 2010-07-12  Bruno Haible  <bruno@clisp.org>
21491
21492         Unify tests that set gl_cv_func_ldexp_no_libm.
21493         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
21494         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
21495         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
21496         (configure.ac): Simply invoke gl_FUNC_LDEXP.
21497         * modules/strtod (Files): Add m4/ldexp.m4.
21498
21499 2010-07-12  Bruno Haible  <bruno@clisp.org>
21500
21501         Unify tests that set gl_cv_func_frexpl_no_libm.
21502         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
21503         gl_FUNC_FREXPL_NO_LIBM.
21504         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
21505         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
21506
21507 2010-07-12  Bruno Haible  <bruno@clisp.org>
21508
21509         Unify tests that set gl_cv_func_frexp_no_libm.
21510         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
21511         gl_FUNC_FREXP_NO_LIBM.
21512         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
21513         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
21514
21515 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
21516
21517         memcoll: clarify sizes versus lengths, document better, and tweak perf
21518         * lib/memcoll.c (strcoll_loop, memcoll0):
21519         Improve quality of descriptive comments.  Name variables
21520         consistently as to whether they are lengths (which do not include
21521         terminating null) versus sizes (which do).
21522         * lib/xmemcoll.c (xmemcoll0): Likewise.
21523         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
21524         returned when s1size == 0; this is easier to compile and saves
21525         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
21526
21527 2010-07-12  Bruno Haible  <bruno@clisp.org>
21528
21529         Tests for module '_Exit'.
21530         * modules/_Exit-tests: New file.
21531         * tests/test-_Exit.sh: New file.
21532         * tests/test-_Exit.c: New file.
21533
21534         New module '_Exit'.
21535         * lib/stdlib.in.h (__attribute__): New macro.
21536         (_Exit): New declaration.
21537         * lib/_Exit.c: New file.
21538         * m4/_Exit.m4: New file.
21539         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
21540         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
21541         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
21542         * modules/_Exit: New file.
21543         * tests/test-stdlib-c++.cc (_Exit): Check signature.
21544         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
21545
21546 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
21547
21548         strtod: make it more-accurate typically, and don't require libm
21549         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
21550         Include limits.h.  Don't include string.h.
21551         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
21552         (locale_isspace): New function, so that no casts are needed to
21553         check whether *s is a space.
21554         (ldexp): Provide an unused dummy if not available.
21555         (scale_radix_exp, parse_number, underlying_strtod): New functions.
21556         (strtod): Use them.  This implementation prefers to use the
21557         underlying strtod if available, falling back on our own code
21558         only to fix known bugs.  This is more likely to produce an
21559         accurate result.  Also, it avoids the use of libm functions.
21560         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
21561         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
21562         was absent, but it caused a test failure with coreutils.
21563         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
21564         with libm.
21565         * modules/strtod (Makefile.am, Link): libm is no longer needed.
21566         * modules/strtod-tests (Makefile.am): Likewise.
21567
21568 2010-07-11  Pádraig Brady  <P@draigBrady.com>
21569             Bruno Haible  <bruno@clisp.org>
21570
21571         unistr/u8-strchr: Optimize ASCII argument case.
21572         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
21573
21574 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
21575
21576         (x)memcoll: minor tweaks
21577         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
21578         is after the type that it qualifies.
21579         (memcoll0): Likewise.
21580         * lib/memcoll.h (memcoll0): Likewise.
21581         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
21582         * lib/xmemcoll.h (xmemcoll0): Likewise.
21583         * lib/memcoll.c (memcoll0): Correct the comment.  This function
21584         differs from memcoll in that the NUL byte is part of the argument.
21585         Omit the abort-checks, as performance is a real issue here.  Plus,
21586         the checks were wrong anyway (an off-by-one error).  Omit local
21587         variable 'diff', as it's a bit clearer that way.
21588         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
21589         no longer needed.
21590
21591 2010-07-08  Chen Guo <chenguo4@yahoo.com>
21592
21593         (x)memcoll: speedup when input is known to be NUL delimited
21594         * lib/memcoll.c: Include stdlib.
21595         (memcoll0): New function.
21596         (strcoll_loop): New function, refactored for use in both memcoll
21597         and memcoll0.
21598         * lib/memcoll.h (memcoll0): Add prototype.
21599         * lib/xmemcoll.c (xmemcoll0): New function.
21600         (collate_error): New function, refactored for use in both xmemcoll
21601         and xmemcoll0.
21602         * lib/xmemcoll.h (xmemcoll0): Add prototype.
21603         * m4/memcoll.m4: add inline invocation.
21604
21605 2010-07-06  Pádraig Brady  <P@draigBrady.com>
21606
21607         * build-aux/bootstrap: Remove any local translations
21608         from the translation project synchronization directory,
21609         so that local only translations are not distributed.
21610
21611 2010-07-04  Bruno Haible  <bruno@clisp.org>
21612
21613         fsusage: Clarify which code applies to which platforms.
21614         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
21615         platform.
21616         * lib/fsusage.c (get_fs_usage): Likewise.
21617
21618 2010-07-04  Bruno Haible  <bruno@clisp.org>
21619
21620         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
21621         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
21622         Reported by Martin Lambers <marlam@marlam.de>.
21623
21624 2010-07-04  Jim Meyering  <meyering@redhat.com>
21625
21626         hash: once again explicitly disallow insertion of NULL
21627         * lib/hash.c (hash_insert0): Reinstate just-removed test:
21628         inserting a NULL pointer cannot work with these functions.
21629         Add a comment with details.
21630         This reverts part of the 2010-07-01 commit, 5bef1a35
21631         "hash: extend module to deal with non-pointer keys".
21632
21633 2010-07-01  Bruno Haible  <bruno@clisp.org>
21634
21635         stdbool: Update doc.
21636         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
21637         Info from Christian Weisgerber <naddy@mips.inka.de>.
21638
21639 2010-07-01  Jim Meyering  <meyering@redhat.com>
21640
21641         hash: extend module to deal with non-pointer keys
21642         * lib/hash.c (hash_insert0): New interface, much like hash_insert
21643         but that allows insertion of non-pointer entries.
21644         Do not disallow an ENTRY value of NULL.
21645         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
21646         * lib/hash.h (hash_insert0): Declare.
21647
21648 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
21649
21650         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
21651         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
21652         not present (i.e. with autoconf 2.59 and when using gettextize, not
21653         gnulib), require AC_GNU_SOURCE instead.
21654
21655 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
21656
21657         idpriv-drop: Fix tests.
21658         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
21659         not to the test-idpriv-droptemp program.
21660
21661 2010-06-29  Bruno Haible  <bruno@clisp.org>
21662
21663         string: Fix syntax error with g++ 2.96.
21664         * lib/string.in.h (__pure__): Remove definition.
21665         (_GL_ATTRIBUTE_PURE): New macro.
21666         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
21667         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
21668         Reported by Christian Weisgerber <naddy@mips.inka.de>.
21669
21670 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
21671
21672         unitypes: Fix bug introduced on 2010-05-18.
21673         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
21674
21675 2010-06-22  Eric Blake  <eblake@redhat.com>
21676
21677         memmem: slight optimization
21678         * lib/str-two-way.h (critical_factorization): Update comments.
21679         Reduce work during factorization phase.
21680         Reported by Carlos Bueno <carlos@bueno.org>.
21681
21682 2010-06-21  Bruno Haible  <bruno@clisp.org>
21683
21684         Fix HAVE_CALLOC_POSIX misnomer.
21685         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
21686         !HAVE_CALLOC_POSIX.
21687         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
21688         HAVE_CALLOC_POSIX.
21689         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
21690         instead of HAVE_CALLOC_POSIX.
21691         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
21692         HAVE_CALLOC_POSIX.
21693
21694         Use modern idiom for calloc() replacement.
21695         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
21696         AC_FUNC_CALLOC.
21697         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
21698         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
21699         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
21700         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
21701         (gl_REPLACE_CALLOC): New macro.
21702
21703 2010-06-21  Bruno Haible  <bruno@clisp.org>
21704
21705         Fix HAVE_REALLOC_POSIX misnomer.
21706         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
21707         !HAVE_REALLOC_POSIX.
21708         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
21709         HAVE_REALLOC_POSIX.
21710         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
21711         instead of HAVE_REALLOC_POSIX.
21712         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
21713         HAVE_REALLOC_POSIX.
21714
21715         Use modern idiom for realloc() replacement.
21716         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
21717         AC_FUNC_REALLOC.
21718         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
21719         Autoconf's AC_FUNC_REALLOC.
21720         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
21721         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
21722         (gl_REPLACE_REALLOC): New macro.
21723         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
21724
21725 2010-06-21  Bruno Haible  <bruno@clisp.org>
21726
21727         Fix HAVE_MALLOC_POSIX misnomer.
21728         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
21729         !HAVE_MALLOC_POSIX.
21730         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
21731         HAVE_MALLOC_POSIX.
21732         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
21733         instead of HAVE_MALLOC_POSIX.
21734         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
21735         HAVE_MALLOC_POSIX.
21736
21737         Use modern idiom for malloc() replacement.
21738         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
21739         AC_FUNC_MALLOC.
21740         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
21741         Autoconf's AC_FUNC_MALLOC.
21742         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
21743         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
21744         (gl_REPLACE_MALLOC): New macro.
21745         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
21746
21747 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
21748
21749         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
21750         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
21751         This macro takes 3 arguments, not 4.
21752
21753 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
21754
21755         ipv6: fix detection under mingw
21756         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
21757         in6_addr.
21758
21759 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
21760
21761         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
21762         that strtod() works when cross-compiling to a glibc version known
21763         to work.
21764
21765 2010-06-15  Bruno Haible  <bruno@clisp.org>
21766
21767         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
21768
21769 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
21770
21771         select: Correct timeout.
21772         * lib/select.c (rpl_select): Compute wait_timeout correctly.
21773
21774 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
21775
21776         git-version-gen: init shell var to avoid env var influence
21777         * build-aux/git-version-gen (v): Init shell var to empty.
21778
21779 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
21780
21781         priv-set: Don't assume that priv.h exists merely because getppriv does.
21782         See Jan Andersen's bug report about AIX 5L in
21783         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
21784         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
21785         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
21786         * lib/priv-set.h: Likewise.
21787         * tests/test-priv-set.c: Likewise.
21788
21789 2010-06-13  Bruno Haible  <bruno@clisp.org>
21790
21791         relocatable: Make it easier to test whether to install wrappers.
21792         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
21793         RELOCATABLE_VIA_WRAPPER.
21794
21795 2010-06-13  Bruno Haible  <bruno@clisp.org>
21796
21797         gnulib-tool: Display specified modules and dependencies differently.
21798         * gnulib-tool (func_show_module_list): New function.
21799         (func_import, func_create_testdir): Invoke it.
21800         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
21801
21802 2010-06-13  Bruno Haible  <bruno@clisp.org>
21803
21804         gnulib-tool: Align code of func_import and func_create_testdir.
21805         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
21806         specified_modules.
21807
21808 2010-06-12  Jim Meyering  <meyering@redhat.com>
21809
21810         test-inttostr: avoid spurious failure on Solaris 9
21811         * tests/test-inttostr.c (main): Skip the test when snprintf fails
21812         to accept "%ju".  Reported by Bruno Haible.
21813
21814 2010-06-11  Jim Meyering  <meyering@redhat.com>
21815
21816         test-sys_socket: mark variables as used more readably
21817         * tests/test-sys_socket.c (main): Mark otherwise unused variables
21818         as "used" explicitly via (void) statement casts.  This is more
21819         readable than using them in an artificial return expression.
21820         Suggestion from Bruno Haible.
21821
21822 2010-06-11  Bruno Haible  <bruno@clisp.org>
21823
21824         Avoid some more warnings from "gcc -Wwrite-strings".
21825         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
21826         to 'const char *'.
21827         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
21828         * tests/test-c-strcasestr.c (main): Likewise.
21829         * tests/test-mbscasestr1.c (main): Likewise.
21830         * tests/test-mbscasestr2.c (main): Likewise.
21831         * tests/test-memmem.c (main): Likewise.
21832         * tests/test-strstr.c (main): Likewise.
21833         * tests/test-strcasestr.c (main): Likewise.
21834
21835 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21836
21837         init.sh: change framework_failure_ to fail with status 99, not 1
21838         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
21839         automake's parallel-tests rule that this is an unexpected failure,
21840         even if the test is listed in XFAIL_TESTS.
21841
21842 2010-06-11  Jim Meyering  <meyering@redhat.com>
21843
21844         test-inttostr: avoid warnings about 4-6KB literal strings
21845         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
21846         Include "macros.h", for its definition of ASSERT.
21847         (CK): s/assert/ASSERT/
21848         * modules/inttostr-tests (Files): Add macros.h.
21849
21850         init.sh: don't use $ME_ or skip_ before they are defined
21851         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
21852         their first uses.  Also hoist their companions: warn_, fail_,
21853         framework_failure_, $stderr_fileno.  Prompted by a patch from
21854         Stefano Lattarini.
21855
21856         test-sys_socket: avoid set-but-not-used warnings from gcc
21857         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
21858         avoid warning about set-but-not-used variables.
21859
21860         test-xvasprintf: avoid 'const' discard warnings
21861         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
21862         "const" when assigning from literal strings.
21863         (test_xasprintf): Add "void" in function argument list to placate
21864         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
21865
21866         tests: avoid compilation warnings in argmatch and exclude tests...
21867         in packages that define ARGMATCH_DIE_DECL, like coreutils.
21868         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
21869         Since it always exits, declare with the "noreturn" attribute.
21870         * tests/test-argmatch.c: Likewise.
21871
21872         tests: avoid 'const' discard warnings in mbsstr tests
21873         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
21874         * tests/test-mbsstr2.c (main): Likewise.
21875
21876         test-verify: avoid warning from gcc's -Wmissing-declarations
21877         * tests/test-verify.c (function): Declare to be static.
21878
21879         test-inttostr.c: include <string.h> for use of strcmp
21880         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
21881
21882         test-linkat: avoid failed assertion on "other" architectures
21883         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
21884         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
21885         sparc: https://bugs.launchpad.net/bugs/591968
21886
21887 2010-06-11  Jim Meyering  <meyering@redhat.com>
21888
21889         printf.m4: avoid autoconf's "Expanded Before Required" warning
21890         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
21891         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
21892         autoconf warning.
21893
21894 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
21895
21896         Replacement header templates are now named with ".in", not "_".
21897         * doc/gnulib-intro.texi: Correct.
21898
21899 2010-06-10  Jim Meyering  <meyering@redhat.com>
21900
21901         inttostr-tests: depend on snprintf, not snprintf-posix
21902         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
21903         snprintf-posix, to avoid this aclocal failure:
21904           missing file gnulib-tests/vasnprintf.c
21905           configure.ac:45: error: expected source file, required through \
21906           AC_LIBSOURCES, not found
21907
21908 2010-06-10  Jim Meyering  <meyering@redhat.com>
21909
21910         inttostr: add a new function, inttostr, and tests
21911         The namesake function was not available.  The existence of the
21912         template file, inttostr.c makes its addition nontrivial.
21913         * lib/anytostr.c: Rename from inttostr.c.
21914         (anytostr): Rename from inttostr.
21915         * lib/inttostr.c: New file.
21916         * modules/inttostr (Files): Add anytostr.c.
21917         (Makefile.am): Set lib_SOURCES instead of ...
21918         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
21919         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
21920         * lib/offtostr.c: Likewise.
21921         * lib/uinttostr.c: Likewise.
21922         * lib/umaxtostr.c: Likewise.
21923         * modules/inttostr-tests: New file.
21924         * tests/test-inttostr.c: New file.  Test these functions.
21925
21926 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
21927             Bruno Haible  <bruno@clisp.org>
21928
21929         Add "Extending Gnulib" chapter to manual.
21930         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
21931         chapter.
21932         (Extending Gnulib): New chapter.
21933         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
21934         chapter.
21935
21936 2010-06-09  Bruno Haible  <bruno@clisp.org>
21937
21938         Avoid relocwrapper link errors due to gnulib replacement functions.
21939         * lib/areadlink.c: Use the system's malloc, realloc functions.
21940         (areadlink): Set errno to ENOMEM explicitly.
21941         * modules/areadlink (Depends-on): Remove malloc-posix.
21942         Reported by Ben Pfaff <blp@cs.stanford.edu>.
21943
21944 2010-06-09  Bruno Haible  <bruno@clisp.org>
21945
21946         Avoid relocwrapper link errors due to gnulib replacement functions.
21947         * lib/canonicalize-lgpl.c: Use the system's malloc function.
21948         * lib/malloca.c: Likewise.
21949         * lib/relocatable.c: Likewise.
21950         * lib/progreloc.c: Use the system's malloc, sprintf functions.
21951         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
21952         * lib/setenv.c: Use the system's malloc, realloc functions.
21953         * lib/strerror.c: Use the system's sprintf function.
21954         Reported by Ben Pfaff <blp@cs.stanford.edu>.
21955
21956 2010-06-04  Bruno Haible  <bruno@clisp.org>
21957
21958         Prefer documented low-level autoconf macro names.
21959         * m4/lib-link.m4: Use m4_translit instead of translit.
21960         * m4/environ.m4: Likewise.
21961         * m4/mathfunc.m4: Likewise.
21962         * m4/onceonly.m4: Likewise.
21963         * m4/stdint.m4: Likewise.
21964         Suggested by Eric Blake.
21965
21966 2010-06-04  Martin Lambers  <marlam@marlam.de>
21967             Bruno Haible  <bruno@clisp.org>
21968
21969         havelib: Allow library names with '+' characters.
21970         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
21971         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
21972
21973 2010-06-09  Bruno Haible  <bruno@clisp.org>
21974
21975         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
21976         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
21977         realloc failed.
21978
21979 2010-06-08  Peter Simons  <simons@cryp.to>
21980
21981         maint.mk: make the news-check rule more configurable
21982         * top/maint.mk (news-check-lines-spec): New variable.
21983         (news-check): Use "sed -n 1,10p" in place of "head".
21984
21985 2010-06-07  Jim Meyering  <meyering@redhat.com>
21986
21987         do-release-commit-and-tag: fix typo in --help
21988         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
21989
21990         regex: avoid new dead-code warning with gcc-4.6.0
21991         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
21992         if-block containing a while-loop.  It's been unused for at least
21993         5 years.
21994
21995 2010-06-05  Bruno Haible  <bruno@clisp.org>
21996
21997         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
21998         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
21999
22000 2010-06-04  Bruno Haible  <bruno@clisp.org>
22001
22002         Update to GNU gettext 0.18.1.
22003         * modules/gettext (configure.ac): Require gettext infrastructure from
22004         version 0.18.1.
22005
22006 2010-06-03  Bruno Haible  <bruno@clisp.org>
22007
22008         Don't use AC_LIBOBJ with file names in subdirectories.
22009         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
22010         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
22011         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
22012         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
22013         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
22014         gl_LIBUNISTRING_LIBSOURCE.
22015         (Makefile.am): Augment lib_SOURCES here, conditionally.
22016         * NEWS: Drop requirement for Automake option 'subdir-objects'.
22017
22018 2010-06-03  Bruno Haible  <bruno@clisp.org>
22019
22020         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
22021         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
22022         expansion does not end with a newline.
22023         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
22024         unnecessary newline.
22025
22026 2010-06-03  Bruno Haible  <bruno@clisp.org>
22027
22028         Reduce dependencies.
22029         * tests/test-quotearg.h: New file, extracted from
22030         tests/test-quotearg.c.
22031         * tests/test-quotearg-simple.c: New file, extracted from
22032         tests/test-quotearg.c.
22033         * tests/test-quotearg.c: Don't include <ctype.h>.
22034         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
22035         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
22036         use_quote_double_quotes, use_quotearg_colon): Moved to
22037         tests/test-quotearg.h.
22038         (results_g, flag_results, custom_quotes, custom_results): Moved
22039         to tests/test-quotearg-simple.c.
22040         (main): Moved the part that does not depend on gettext to
22041         tests/test-quotearg-simple.c. Return 77 if the test cannot be
22042         performed.
22043         * modules/quotearg-simple: New file.
22044         * modules/quotearg-simple-tests: New file.
22045         * modules/quotearg (Depends-on): Add quotearg-simple.
22046         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
22047         (Files): Add tests/test-quotearg.h.
22048         Reported by Paolo Bonzini.
22049
22050 2010-06-03  Bruno Haible  <bruno@clisp.org>
22051
22052         Reduce dependencies.
22053         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
22054
22055 2010-06-03  Bruno Haible  <bruno@clisp.org>
22056
22057         time: Undefine more broken macros.
22058         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
22059         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
22060         Reported by Eric Blake.
22061
22062 2010-06-03  Bruno Haible  <bruno@clisp.org>
22063
22064         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
22065         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
22066         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
22067         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
22068         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
22069         Reported by Ludovic Courtès <ludo@gnu.org>.
22070
22071 2010-06-02  Eric Blake  <eblake@redhat.com>
22072
22073         time: work with mingw + pthreads-win32 library
22074         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
22075         if timespec is defined only in pthread.h.
22076         * modules/time (Makefile.am): Substitute it.
22077         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
22078         <pthread.h>, when needed.
22079         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
22080         from the library.
22081
22082 2010-05-31  Bruno Haible  <bruno@clisp.org>
22083
22084         Avoid expanding two macros in the wrong order.
22085         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
22086         gl_LIBUNISTRING if it is defined.
22087         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
22088         autoconf >= 2.64.
22089         Reported by Ludovic Courtès <ludo@gnu.org>.
22090
22091 2010-05-27  Jim Meyering  <meyering@redhat.com>
22092
22093         maint.mk: also prohibit "#undef" of always-defined symbols
22094         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
22095         Allow more than one space before the symbol name.
22096         (sc_prohibit_always-defined_macros): Use grep's -E, now that
22097         the regexp uses alternation.
22098
22099 2010-05-26  Eric Blake  <eblake@redhat.com>
22100
22101         maint.mk: avoid echo -e
22102         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
22103         Convert all uses of echo -* to printf.
22104         Reported by Matthias Bolte.
22105
22106 2010-05-25  Bruno Haible  <bruno@clisp.org>
22107
22108         Update to GNU gettext 0.18, part 2.
22109         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
22110         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
22111
22112 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22113
22114         Add missing include in test-pwrite.c.
22115         * tests/test-pwrite.c: Include string.h, for strcmp.
22116
22117 2010-05-24  Bruno Haible  <bruno@clisp.org>
22118
22119         * NEWS: Mention requirement for Automake option 'subdir-objects'.
22120
22121 2010-05-24  Bruno Haible  <bruno@clisp.org>
22122
22123         Don't use conversion with transliteration in u{8,16,32}_strcoll.
22124         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
22125         iconveh_error argument.
22126         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
22127         U_STRCONV_TO_LOCALE.
22128         * lib/unistr/u16-strcoll.c: Likewise.
22129         * lib/unistr/u32-strcoll.c: Likewise.
22130         * modules/unistr/u8-strcoll (Depends-on): Add
22131         uniconv/u8-strconv-to-enc, localcharset. Remove
22132         uniconv/u8-strconv-to-locale.
22133         (configure.ac): Bump version number.
22134         * modules/unistr/u16-strcoll (Depends-on): Add
22135         uniconv/u16-strconv-to-enc, localcharset. Remove
22136         uniconv/u16-strconv-to-locale.
22137         (configure.ac): Bump version number.
22138         * modules/unistr/u32-strcoll (Depends-on): Add
22139         uniconv/u32-strconv-to-enc, localcharset. Remove
22140         uniconv/u32-strconv-to-locale.
22141         (configure.ac): Bump version number.
22142
22143 2010-05-24  Bruno Haible  <bruno@clisp.org>
22144
22145         Avoid a test failure on NetBSD 5.0.
22146         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
22147         an iconv() bug.
22148
22149 2010-05-24  Bruno Haible  <bruno@clisp.org>
22150
22151         Adjust #include directive style.
22152         * modules/regex (Includes): Recommend to write <regex.h>.
22153
22154 2010-05-24  Bruno Haible  <bruno@clisp.org>
22155
22156         regex: Don't require alloca.
22157         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
22158         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
22159         only inside if (0).
22160
22161 2010-05-23  Jim Meyering  <meyering@redhat.com>
22162
22163         test-renameat.c: include <sys/stat.h>
22164         * tests/test-renameat.c: Include <sys/stat.h>; required for
22165         definition of S_IS* macros.
22166
22167 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
22168
22169         Update maintainer documentation for 'relocatable-prog' module.
22170         * doc/relocatable-maint.texi: Update.
22171         Comments by Bruno Haible.
22172
22173 2010-05-23  Bruno Haible  <bruno@clisp.org>
22174
22175         git-merge-changelog: Enable --split-merged-entry by default.
22176         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
22177         (usage): Don't mention this option any more.
22178         Reported by Ralf Wildenhues.
22179
22180 2010-05-23  Jim Meyering  <meyering@redhat.com>
22181
22182         test-pwrite: do not leave behind a test file named "out"
22183         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
22184         The trivial-looking use of init.sh is really necessary.
22185         It ensures that the temporary file, "out", is created in
22186         a temporary directory, and removed upon termination.
22187         * tests/test-pwrite.sh: Re-add file.
22188         * modules/pwrite-tests: Reference it.
22189
22190 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22191
22192         Fix output redirection buglet in init.sh.
22193         * tests/init.sh: Fix redirection of stderr.
22194
22195 2010-05-20  Simon Josefsson  <simon@josefsson.org>
22196
22197         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
22198
22199 2010-05-17  Simon Josefsson  <simon@josefsson.org>
22200
22201         * modules/valgrind-tests: New file.
22202         * m4/valgrind-tests.m4: New file.
22203         * doc/valgrind-tests.texi: New file.
22204         * doc/gnulib.texi (Running self-tests under valgrind): New
22205         section.
22206
22207 2010-05-19  Bruno Haible  <bruno@clisp.org>
22208
22209         Clean up dead code in recent commit.
22210         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
22211         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
22212         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
22213         Suggested by Paolo Bonzini.
22214
22215 2010-05-19  Bruno Haible  <bruno@clisp.org>
22216
22217         Avoid valgrind error reports from libunistring.
22218         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
22219         * modules/libunistring (Files): Add it.
22220         * modules/libunistring-optional (Files): Likewise.
22221
22222 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
22223             Bruno Haible  <bruno@clisp.org>
22224
22225         New module 'libunistring-optional'.
22226         * modules/libunistring-optional: New file.
22227         * m4/libunistring-base.m4: New file.
22228         * m4/libunistring-optional.m4: New file.
22229         * lib/unicase.in.h: Renamed from lib/unicase.h.
22230         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
22231         * lib/unictype.in.h: Renamed from lib/unictype.h.
22232         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
22233         * lib/uniname.in.h: Renamed from lib/uniname.h.
22234         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
22235         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
22236         * lib/unistr.in.h: Renamed from lib/unistr.h.
22237         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
22238         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
22239         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
22240         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
22241         gl_LIBUNISTRING. If the library was found, determine the installed
22242         version and set LIBUNISTRING_VERSION.
22243         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
22244         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
22245         handle a configuration option --with-included-libunistring.
22246         * modules/libunistring (Files): Add m4/absolute-header.m4.
22247         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
22248         Add m4/libunistring-base.m4.
22249         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22250         (Makefile.am): Build unicase.h from unicase.in.h.
22251         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
22252         Add m4/libunistring-base.m4.
22253         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22254         (Makefile.am): Build uniconv.h from uniconv.in.h.
22255         * modules/unictype/base (Files): Use unictype.in.h instead of
22256         unictype.h. Add m4/libunistring-base.m4.
22257         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22258         (Makefile.am): Build unictype.h from unictype.in.h.
22259         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
22260         Add m4/libunistring-base.m4.
22261         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22262         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
22263         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
22264         Add m4/libunistring-base.m4.
22265         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22266         (Makefile.am): Build uniname.h from uniname.in.h.
22267         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
22268         Add m4/libunistring-base.m4.
22269         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22270         (Makefile.am): Build uninorm.h from uninorm.in.h.
22271         * modules/unistdio/base (Files): Use unistdio.in.h instead of
22272         unistdio.h. Add m4/libunistring-base.m4.
22273         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22274         (Makefile.am): Build unistdio.h from unistdio.in.h.
22275         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
22276         Add m4/libunistring-base.m4.
22277         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22278         (Makefile.am): Build unistr.h from unistr.in.h.
22279         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
22280         Add m4/libunistring-base.m4.
22281         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22282         (Makefile.am): Build unitypes.h from unitypes.in.h.
22283         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
22284         Add m4/libunistring-base.m4.
22285         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22286         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
22287         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
22288         uniwidth.h. Add m4/libunistring-base.m4.
22289         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22290         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
22291         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
22292         instead of augmenting lib_SOURCES.
22293         * modules/unicase/empty-suffix-context: Likewise.
22294         * modules/unicase/locale-language: Likewise.
22295         * modules/unicase/tolower: Likewise.
22296         * modules/unicase/totitle: Likewise.
22297         * modules/unicase/toupper: Likewise.
22298         * modules/unicase/u8-casecmp: Likewise.
22299         * modules/unicase/u8-casecoll: Likewise.
22300         * modules/unicase/u8-casefold: Likewise.
22301         * modules/unicase/u8-casexfrm: Likewise.
22302         * modules/unicase/u8-ct-casefold: Likewise.
22303         * modules/unicase/u8-ct-tolower: Likewise.
22304         * modules/unicase/u8-ct-totitle: Likewise.
22305         * modules/unicase/u8-ct-toupper: Likewise.
22306         * modules/unicase/u8-is-cased: Likewise.
22307         * modules/unicase/u8-is-casefolded: Likewise.
22308         * modules/unicase/u8-is-lowercase: Likewise.
22309         * modules/unicase/u8-is-titlecase: Likewise.
22310         * modules/unicase/u8-is-uppercase: Likewise.
22311         * modules/unicase/u8-prefix-context: Likewise.
22312         * modules/unicase/u8-suffix-context: Likewise.
22313         * modules/unicase/u8-tolower: Likewise.
22314         * modules/unicase/u8-totitle: Likewise.
22315         * modules/unicase/u8-toupper: Likewise.
22316         * modules/unicase/u16-casecmp: Likewise.
22317         * modules/unicase/u16-casecoll: Likewise.
22318         * modules/unicase/u16-casefold: Likewise.
22319         * modules/unicase/u16-casexfrm: Likewise.
22320         * modules/unicase/u16-ct-casefold: Likewise.
22321         * modules/unicase/u16-ct-tolower: Likewise.
22322         * modules/unicase/u16-ct-totitle: Likewise.
22323         * modules/unicase/u16-ct-toupper: Likewise.
22324         * modules/unicase/u16-is-cased: Likewise.
22325         * modules/unicase/u16-is-casefolded: Likewise.
22326         * modules/unicase/u16-is-lowercase: Likewise.
22327         * modules/unicase/u16-is-titlecase: Likewise.
22328         * modules/unicase/u16-is-uppercase: Likewise.
22329         * modules/unicase/u16-prefix-context: Likewise.
22330         * modules/unicase/u16-suffix-context: Likewise.
22331         * modules/unicase/u16-tolower: Likewise.
22332         * modules/unicase/u16-totitle: Likewise.
22333         * modules/unicase/u16-toupper: Likewise.
22334         * modules/unicase/u32-casecmp: Likewise.
22335         * modules/unicase/u32-casecoll: Likewise.
22336         * modules/unicase/u32-casefold: Likewise.
22337         * modules/unicase/u32-casexfrm: Likewise.
22338         * modules/unicase/u32-ct-casefold: Likewise.
22339         * modules/unicase/u32-ct-tolower: Likewise.
22340         * modules/unicase/u32-ct-totitle: Likewise.
22341         * modules/unicase/u32-ct-toupper: Likewise.
22342         * modules/unicase/u32-is-cased: Likewise.
22343         * modules/unicase/u32-is-casefolded: Likewise.
22344         * modules/unicase/u32-is-lowercase: Likewise.
22345         * modules/unicase/u32-is-titlecase: Likewise.
22346         * modules/unicase/u32-is-uppercase: Likewise.
22347         * modules/unicase/u32-prefix-context: Likewise.
22348         * modules/unicase/u32-suffix-context: Likewise.
22349         * modules/unicase/u32-tolower: Likewise.
22350         * modules/unicase/u32-totitle: Likewise.
22351         * modules/unicase/u32-toupper: Likewise.
22352         * modules/unicase/ulc-casecmp: Likewise.
22353         * modules/unicase/ulc-casecoll: Likewise.
22354         * modules/unicase/ulc-casexfrm: Likewise.
22355         * modules/uniconv/u8-conv-from-enc: Likewise.
22356         * modules/uniconv/u8-conv-to-enc: Likewise.
22357         * modules/uniconv/u8-strconv-from-enc: Likewise.
22358         * modules/uniconv/u8-strconv-from-locale: Likewise.
22359         * modules/uniconv/u8-strconv-to-enc: Likewise.
22360         * modules/uniconv/u8-strconv-to-locale: Likewise.
22361         * modules/uniconv/u16-conv-from-enc: Likewise.
22362         * modules/uniconv/u16-conv-to-enc: Likewise.
22363         * modules/uniconv/u16-strconv-from-enc: Likewise.
22364         * modules/uniconv/u16-strconv-from-locale: Likewise.
22365         * modules/uniconv/u16-strconv-to-enc: Likewise.
22366         * modules/uniconv/u16-strconv-to-locale: Likewise.
22367         * modules/uniconv/u32-conv-from-enc: Likewise.
22368         * modules/uniconv/u32-conv-to-enc: Likewise.
22369         * modules/uniconv/u32-strconv-from-enc: Likewise.
22370         * modules/uniconv/u32-strconv-from-locale: Likewise.
22371         * modules/uniconv/u32-strconv-to-enc: Likewise.
22372         * modules/uniconv/u32-strconv-to-locale: Likewise.
22373         * modules/unictype/bidicategory-byname: Likewise.
22374         * modules/unictype/bidicategory-name: Likewise.
22375         * modules/unictype/bidicategory-of: Likewise.
22376         * modules/unictype/bidicategory-test: Likewise.
22377         * modules/unictype/block-list: Likewise.
22378         * modules/unictype/block-test: Likewise.
22379         * modules/unictype/category-C: Likewise.
22380         * modules/unictype/category-Cc: Likewise.
22381         * modules/unictype/category-Cf: Likewise.
22382         * modules/unictype/category-Cn: Likewise.
22383         * modules/unictype/category-Co: Likewise.
22384         * modules/unictype/category-Cs: Likewise.
22385         * modules/unictype/category-L: Likewise.
22386         * modules/unictype/category-Ll: Likewise.
22387         * modules/unictype/category-Lm: Likewise.
22388         * modules/unictype/category-Lo: Likewise.
22389         * modules/unictype/category-Lt: Likewise.
22390         * modules/unictype/category-Lu: Likewise.
22391         * modules/unictype/category-M: Likewise.
22392         * modules/unictype/category-Mc: Likewise.
22393         * modules/unictype/category-Me: Likewise.
22394         * modules/unictype/category-Mn: Likewise.
22395         * modules/unictype/category-N: Likewise.
22396         * modules/unictype/category-Nd: Likewise.
22397         * modules/unictype/category-Nl: Likewise.
22398         * modules/unictype/category-No: Likewise.
22399         * modules/unictype/category-P: Likewise.
22400         * modules/unictype/category-Pc: Likewise.
22401         * modules/unictype/category-Pd: Likewise.
22402         * modules/unictype/category-Pe: Likewise.
22403         * modules/unictype/category-Pf: Likewise.
22404         * modules/unictype/category-Pi: Likewise.
22405         * modules/unictype/category-Po: Likewise.
22406         * modules/unictype/category-Ps: Likewise.
22407         * modules/unictype/category-S: Likewise.
22408         * modules/unictype/category-Sc: Likewise.
22409         * modules/unictype/category-Sk: Likewise.
22410         * modules/unictype/category-Sm: Likewise.
22411         * modules/unictype/category-So: Likewise.
22412         * modules/unictype/category-Z: Likewise.
22413         * modules/unictype/category-Zl: Likewise.
22414         * modules/unictype/category-Zp: Likewise.
22415         * modules/unictype/category-Zs: Likewise.
22416         * modules/unictype/category-and: Likewise.
22417         * modules/unictype/category-and-not: Likewise.
22418         * modules/unictype/category-byname: Likewise.
22419         * modules/unictype/category-name: Likewise.
22420         * modules/unictype/category-none: Likewise.
22421         * modules/unictype/category-of: Likewise.
22422         * modules/unictype/category-or: Likewise.
22423         * modules/unictype/category-test: Likewise.
22424         * modules/unictype/combining-class: Likewise.
22425         * modules/unictype/ctype-alnum: Likewise.
22426         * modules/unictype/ctype-alpha: Likewise.
22427         * modules/unictype/ctype-blank: Likewise.
22428         * modules/unictype/ctype-cntrl: Likewise.
22429         * modules/unictype/ctype-digit: Likewise.
22430         * modules/unictype/ctype-graph: Likewise.
22431         * modules/unictype/ctype-lower: Likewise.
22432         * modules/unictype/ctype-print: Likewise.
22433         * modules/unictype/ctype-punct: Likewise.
22434         * modules/unictype/ctype-space: Likewise.
22435         * modules/unictype/ctype-upper: Likewise.
22436         * modules/unictype/ctype-xdigit: Likewise.
22437         * modules/unictype/decimal-digit: Likewise.
22438         * modules/unictype/digit: Likewise.
22439         * modules/unictype/mirror: Likewise.
22440         * modules/unictype/numeric: Likewise.
22441         * modules/unictype/property-alphabetic: Likewise.
22442         * modules/unictype/property-ascii-hex-digit: Likewise.
22443         * modules/unictype/property-bidi-arabic-digit: Likewise.
22444         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
22445         * modules/unictype/property-bidi-block-separator: Likewise.
22446         * modules/unictype/property-bidi-boundary-neutral: Likewise.
22447         * modules/unictype/property-bidi-common-separator: Likewise.
22448         * modules/unictype/property-bidi-control: Likewise.
22449         * modules/unictype/property-bidi-embedding-or-override: Likewise.
22450         * modules/unictype/property-bidi-eur-num-separator: Likewise.
22451         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
22452         * modules/unictype/property-bidi-european-digit: Likewise.
22453         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
22454         * modules/unictype/property-bidi-left-to-right: Likewise.
22455         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
22456         * modules/unictype/property-bidi-other-neutral: Likewise.
22457         * modules/unictype/property-bidi-pdf: Likewise.
22458         * modules/unictype/property-bidi-segment-separator: Likewise.
22459         * modules/unictype/property-bidi-whitespace: Likewise.
22460         * modules/unictype/property-byname: Likewise.
22461         * modules/unictype/property-combining: Likewise.
22462         * modules/unictype/property-composite: Likewise.
22463         * modules/unictype/property-currency-symbol: Likewise.
22464         * modules/unictype/property-dash: Likewise.
22465         * modules/unictype/property-decimal-digit: Likewise.
22466         * modules/unictype/property-default-ignorable-code-point: Likewise.
22467         * modules/unictype/property-deprecated: Likewise.
22468         * modules/unictype/property-diacritic: Likewise.
22469         * modules/unictype/property-extender: Likewise.
22470         * modules/unictype/property-format-control: Likewise.
22471         * modules/unictype/property-grapheme-base: Likewise.
22472         * modules/unictype/property-grapheme-extend: Likewise.
22473         * modules/unictype/property-grapheme-link: Likewise.
22474         * modules/unictype/property-hex-digit: Likewise.
22475         * modules/unictype/property-hyphen: Likewise.
22476         * modules/unictype/property-id-continue: Likewise.
22477         * modules/unictype/property-id-start: Likewise.
22478         * modules/unictype/property-ideographic: Likewise.
22479         * modules/unictype/property-ids-binary-operator: Likewise.
22480         * modules/unictype/property-ids-trinary-operator: Likewise.
22481         * modules/unictype/property-ignorable-control: Likewise.
22482         * modules/unictype/property-iso-control: Likewise.
22483         * modules/unictype/property-join-control: Likewise.
22484         * modules/unictype/property-left-of-pair: Likewise.
22485         * modules/unictype/property-line-separator: Likewise.
22486         * modules/unictype/property-logical-order-exception: Likewise.
22487         * modules/unictype/property-lowercase: Likewise.
22488         * modules/unictype/property-math: Likewise.
22489         * modules/unictype/property-non-break: Likewise.
22490         * modules/unictype/property-not-a-character: Likewise.
22491         * modules/unictype/property-numeric: Likewise.
22492         * modules/unictype/property-other-alphabetic: Likewise.
22493         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
22494         * modules/unictype/property-other-grapheme-extend: Likewise.
22495         * modules/unictype/property-other-id-continue: Likewise.
22496         * modules/unictype/property-other-id-start: Likewise.
22497         * modules/unictype/property-other-lowercase: Likewise.
22498         * modules/unictype/property-other-math: Likewise.
22499         * modules/unictype/property-other-uppercase: Likewise.
22500         * modules/unictype/property-paired-punctuation: Likewise.
22501         * modules/unictype/property-paragraph-separator: Likewise.
22502         * modules/unictype/property-pattern-syntax: Likewise.
22503         * modules/unictype/property-pattern-white-space: Likewise.
22504         * modules/unictype/property-private-use: Likewise.
22505         * modules/unictype/property-punctuation: Likewise.
22506         * modules/unictype/property-quotation-mark: Likewise.
22507         * modules/unictype/property-radical: Likewise.
22508         * modules/unictype/property-sentence-terminal: Likewise.
22509         * modules/unictype/property-soft-dotted: Likewise.
22510         * modules/unictype/property-space: Likewise.
22511         * modules/unictype/property-terminal-punctuation: Likewise.
22512         * modules/unictype/property-test: Likewise.
22513         * modules/unictype/property-titlecase: Likewise.
22514         * modules/unictype/property-unassigned-code-value: Likewise.
22515         * modules/unictype/property-unified-ideograph: Likewise.
22516         * modules/unictype/property-uppercase: Likewise.
22517         * modules/unictype/property-variation-selector: Likewise.
22518         * modules/unictype/property-white-space: Likewise.
22519         * modules/unictype/property-xid-continue: Likewise.
22520         * modules/unictype/property-xid-start: Likewise.
22521         * modules/unictype/property-zero-width: Likewise.
22522         * modules/unictype/scripts: Likewise.
22523         * modules/unictype/syntax-c-ident: Likewise.
22524         * modules/unictype/syntax-c-whitespace: Likewise.
22525         * modules/unictype/syntax-java-ident: Likewise.
22526         * modules/unictype/syntax-java-whitespace: Likewise.
22527         * modules/unilbrk/u8-possible-linebreaks: Likewise.
22528         * modules/unilbrk/u8-width-linebreaks: Likewise.
22529         * modules/unilbrk/u16-possible-linebreaks: Likewise.
22530         * modules/unilbrk/u16-width-linebreaks: Likewise.
22531         * modules/unilbrk/u32-possible-linebreaks: Likewise.
22532         * modules/unilbrk/u32-width-linebreaks: Likewise.
22533         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
22534         * modules/unilbrk/ulc-width-linebreaks: Likewise.
22535         * modules/uniname/uniname: Likewise.
22536         * modules/uninorm/canonical-decomposition: Likewise.
22537         * modules/uninorm/composition: Likewise.
22538         * modules/uninorm/decomposing-form: Likewise.
22539         * modules/uninorm/decomposition: Likewise.
22540         * modules/uninorm/filter: Likewise.
22541         * modules/uninorm/nfc: Likewise.
22542         * modules/uninorm/nfd: Likewise.
22543         * modules/uninorm/nfkc: Likewise.
22544         * modules/uninorm/nfkd: Likewise.
22545         * modules/uninorm/u8-normalize: Likewise.
22546         * modules/uninorm/u8-normcmp: Likewise.
22547         * modules/uninorm/u8-normcoll: Likewise.
22548         * modules/uninorm/u8-normxfrm: Likewise.
22549         * modules/uninorm/u16-normalize: Likewise.
22550         * modules/uninorm/u16-normcmp: Likewise.
22551         * modules/uninorm/u16-normcoll: Likewise.
22552         * modules/uninorm/u16-normxfrm: Likewise.
22553         * modules/uninorm/u32-normalize: Likewise.
22554         * modules/uninorm/u32-normcmp: Likewise.
22555         * modules/uninorm/u32-normcoll: Likewise.
22556         * modules/uninorm/u32-normxfrm: Likewise.
22557         * modules/unistdio/u8-asnprintf: Likewise.
22558         * modules/unistdio/u8-asprintf: Likewise.
22559         * modules/unistdio/u8-snprintf: Likewise.
22560         * modules/unistdio/u8-sprintf: Likewise.
22561         * modules/unistdio/u8-u8-asnprintf: Likewise.
22562         * modules/unistdio/u8-u8-asprintf: Likewise.
22563         * modules/unistdio/u8-u8-snprintf: Likewise.
22564         * modules/unistdio/u8-u8-sprintf: Likewise.
22565         * modules/unistdio/u8-u8-vasnprintf: Likewise.
22566         * modules/unistdio/u8-u8-vasprintf: Likewise.
22567         * modules/unistdio/u8-u8-vsnprintf: Likewise.
22568         * modules/unistdio/u8-u8-vsprintf: Likewise.
22569         * modules/unistdio/u8-vasnprintf: Likewise.
22570         * modules/unistdio/u8-vasprintf: Likewise.
22571         * modules/unistdio/u8-vsnprintf: Likewise.
22572         * modules/unistdio/u8-vsprintf: Likewise.
22573         * modules/unistdio/u16-asnprintf: Likewise.
22574         * modules/unistdio/u16-asprintf: Likewise.
22575         * modules/unistdio/u16-snprintf: Likewise.
22576         * modules/unistdio/u16-sprintf: Likewise.
22577         * modules/unistdio/u16-u16-asnprintf: Likewise.
22578         * modules/unistdio/u16-u16-asprintf: Likewise.
22579         * modules/unistdio/u16-u16-snprintf: Likewise.
22580         * modules/unistdio/u16-u16-sprintf: Likewise.
22581         * modules/unistdio/u16-u16-vasnprintf: Likewise.
22582         * modules/unistdio/u16-u16-vasprintf: Likewise.
22583         * modules/unistdio/u16-u16-vsnprintf: Likewise.
22584         * modules/unistdio/u16-u16-vsprintf: Likewise.
22585         * modules/unistdio/u16-vasnprintf: Likewise.
22586         * modules/unistdio/u16-vasprintf: Likewise.
22587         * modules/unistdio/u16-vsnprintf: Likewise.
22588         * modules/unistdio/u16-vsprintf: Likewise.
22589         * modules/unistdio/u32-asnprintf: Likewise.
22590         * modules/unistdio/u32-asprintf: Likewise.
22591         * modules/unistdio/u32-snprintf: Likewise.
22592         * modules/unistdio/u32-sprintf: Likewise.
22593         * modules/unistdio/u32-u32-asnprintf: Likewise.
22594         * modules/unistdio/u32-u32-asprintf: Likewise.
22595         * modules/unistdio/u32-u32-snprintf: Likewise.
22596         * modules/unistdio/u32-u32-sprintf: Likewise.
22597         * modules/unistdio/u32-u32-vasnprintf: Likewise.
22598         * modules/unistdio/u32-u32-vasprintf: Likewise.
22599         * modules/unistdio/u32-u32-vsnprintf: Likewise.
22600         * modules/unistdio/u32-u32-vsprintf: Likewise.
22601         * modules/unistdio/u32-vasnprintf: Likewise.
22602         * modules/unistdio/u32-vasprintf: Likewise.
22603         * modules/unistdio/u32-vsnprintf: Likewise.
22604         * modules/unistdio/u32-vsprintf: Likewise.
22605         * modules/unistdio/ulc-asnprintf: Likewise.
22606         * modules/unistdio/ulc-asprintf: Likewise.
22607         * modules/unistdio/ulc-fprintf: Likewise.
22608         * modules/unistdio/ulc-snprintf: Likewise.
22609         * modules/unistdio/ulc-sprintf: Likewise.
22610         * modules/unistdio/ulc-vasnprintf: Likewise.
22611         * modules/unistdio/ulc-vasprintf: Likewise.
22612         * modules/unistdio/ulc-vfprintf: Likewise.
22613         * modules/unistdio/ulc-vsnprintf: Likewise.
22614         * modules/unistdio/ulc-vsprintf: Likewise.
22615         * modules/unistr/u8-check: Likewise.
22616         * modules/unistr/u8-chr: Likewise.
22617         * modules/unistr/u8-cmp: Likewise.
22618         * modules/unistr/u8-cmp2: Likewise.
22619         * modules/unistr/u8-cpy: Likewise.
22620         * modules/unistr/u8-cpy-alloc: Likewise.
22621         * modules/unistr/u8-endswith: Likewise.
22622         * modules/unistr/u8-mblen: Likewise.
22623         * modules/unistr/u8-mbsnlen: Likewise.
22624         * modules/unistr/u8-mbtouc: Likewise.
22625         * modules/unistr/u8-mbtouc-unsafe: Likewise.
22626         * modules/unistr/u8-mbtoucr: Likewise.
22627         * modules/unistr/u8-move: Likewise.
22628         * modules/unistr/u8-next: Likewise.
22629         * modules/unistr/u8-prev: Likewise.
22630         * modules/unistr/u8-set: Likewise.
22631         * modules/unistr/u8-startswith: Likewise.
22632         * modules/unistr/u8-stpcpy: Likewise.
22633         * modules/unistr/u8-stpncpy: Likewise.
22634         * modules/unistr/u8-strcat: Likewise.
22635         * modules/unistr/u8-strchr: Likewise.
22636         * modules/unistr/u8-strcmp: Likewise.
22637         * modules/unistr/u8-strcoll: Likewise.
22638         * modules/unistr/u8-strcpy: Likewise.
22639         * modules/unistr/u8-strcspn: Likewise.
22640         * modules/unistr/u8-strdup: Likewise.
22641         * modules/unistr/u8-strlen: Likewise.
22642         * modules/unistr/u8-strmblen: Likewise.
22643         * modules/unistr/u8-strmbtouc: Likewise.
22644         * modules/unistr/u8-strncat: Likewise.
22645         * modules/unistr/u8-strncmp: Likewise.
22646         * modules/unistr/u8-strncpy: Likewise.
22647         * modules/unistr/u8-strnlen: Likewise.
22648         * modules/unistr/u8-strpbrk: Likewise.
22649         * modules/unistr/u8-strrchr: Likewise.
22650         * modules/unistr/u8-strspn: Likewise.
22651         * modules/unistr/u8-strstr: Likewise.
22652         * modules/unistr/u8-strtok: Likewise.
22653         * modules/unistr/u8-to-u16: Likewise.
22654         * modules/unistr/u8-to-u32: Likewise.
22655         * modules/unistr/u8-uctomb: Likewise.
22656         * modules/unistr/u16-check: Likewise.
22657         * modules/unistr/u16-chr: Likewise.
22658         * modules/unistr/u16-cmp: Likewise.
22659         * modules/unistr/u16-cmp2: Likewise.
22660         * modules/unistr/u16-cpy: Likewise.
22661         * modules/unistr/u16-cpy-alloc: Likewise.
22662         * modules/unistr/u16-endswith: Likewise.
22663         * modules/unistr/u16-mblen: Likewise.
22664         * modules/unistr/u16-mbsnlen: Likewise.
22665         * modules/unistr/u16-mbtouc: Likewise.
22666         * modules/unistr/u16-mbtouc-unsafe: Likewise.
22667         * modules/unistr/u16-mbtoucr: Likewise.
22668         * modules/unistr/u16-move: Likewise.
22669         * modules/unistr/u16-next: Likewise.
22670         * modules/unistr/u16-prev: Likewise.
22671         * modules/unistr/u16-set: Likewise.
22672         * modules/unistr/u16-startswith: Likewise.
22673         * modules/unistr/u16-stpcpy: Likewise.
22674         * modules/unistr/u16-stpncpy: Likewise.
22675         * modules/unistr/u16-strcat: Likewise.
22676         * modules/unistr/u16-strchr: Likewise.
22677         * modules/unistr/u16-strcmp: Likewise.
22678         * modules/unistr/u16-strcoll: Likewise.
22679         * modules/unistr/u16-strcpy: Likewise.
22680         * modules/unistr/u16-strcspn: Likewise.
22681         * modules/unistr/u16-strdup: Likewise.
22682         * modules/unistr/u16-strlen: Likewise.
22683         * modules/unistr/u16-strmblen: Likewise.
22684         * modules/unistr/u16-strmbtouc: Likewise.
22685         * modules/unistr/u16-strncat: Likewise.
22686         * modules/unistr/u16-strncmp: Likewise.
22687         * modules/unistr/u16-strncpy: Likewise.
22688         * modules/unistr/u16-strnlen: Likewise.
22689         * modules/unistr/u16-strpbrk: Likewise.
22690         * modules/unistr/u16-strrchr: Likewise.
22691         * modules/unistr/u16-strspn: Likewise.
22692         * modules/unistr/u16-strstr: Likewise.
22693         * modules/unistr/u16-strtok: Likewise.
22694         * modules/unistr/u16-to-u32: Likewise.
22695         * modules/unistr/u16-to-u8: Likewise.
22696         * modules/unistr/u16-uctomb: Likewise.
22697         * modules/unistr/u32-check: Likewise.
22698         * modules/unistr/u32-chr: Likewise.
22699         * modules/unistr/u32-cmp: Likewise.
22700         * modules/unistr/u32-cmp2: Likewise.
22701         * modules/unistr/u32-cpy: Likewise.
22702         * modules/unistr/u32-cpy-alloc: Likewise.
22703         * modules/unistr/u32-endswith: Likewise.
22704         * modules/unistr/u32-mblen: Likewise.
22705         * modules/unistr/u32-mbsnlen: Likewise.
22706         * modules/unistr/u32-mbtouc: Likewise.
22707         * modules/unistr/u32-mbtouc-unsafe: Likewise.
22708         * modules/unistr/u32-mbtoucr: Likewise.
22709         * modules/unistr/u32-move: Likewise.
22710         * modules/unistr/u32-next: Likewise.
22711         * modules/unistr/u32-prev: Likewise.
22712         * modules/unistr/u32-set: Likewise.
22713         * modules/unistr/u32-startswith: Likewise.
22714         * modules/unistr/u32-stpcpy: Likewise.
22715         * modules/unistr/u32-stpncpy: Likewise.
22716         * modules/unistr/u32-strcat: Likewise.
22717         * modules/unistr/u32-strchr: Likewise.
22718         * modules/unistr/u32-strcmp: Likewise.
22719         * modules/unistr/u32-strcoll: Likewise.
22720         * modules/unistr/u32-strcpy: Likewise.
22721         * modules/unistr/u32-strcspn: Likewise.
22722         * modules/unistr/u32-strdup: Likewise.
22723         * modules/unistr/u32-strlen: Likewise.
22724         * modules/unistr/u32-strmblen: Likewise.
22725         * modules/unistr/u32-strmbtouc: Likewise.
22726         * modules/unistr/u32-strncat: Likewise.
22727         * modules/unistr/u32-strncmp: Likewise.
22728         * modules/unistr/u32-strncpy: Likewise.
22729         * modules/unistr/u32-strnlen: Likewise.
22730         * modules/unistr/u32-strpbrk: Likewise.
22731         * modules/unistr/u32-strrchr: Likewise.
22732         * modules/unistr/u32-strspn: Likewise.
22733         * modules/unistr/u32-strstr: Likewise.
22734         * modules/unistr/u32-strtok: Likewise.
22735         * modules/unistr/u32-to-u16: Likewise.
22736         * modules/unistr/u32-to-u8: Likewise.
22737         * modules/unistr/u32-uctomb: Likewise.
22738         * modules/uniwbrk/u8-wordbreaks: Likewise.
22739         * modules/uniwbrk/u16-wordbreaks: Likewise.
22740         * modules/uniwbrk/u32-wordbreaks: Likewise.
22741         * modules/uniwbrk/ulc-wordbreaks: Likewise.
22742         * modules/uniwbrk/wordbreak-property: Likewise.
22743         * modules/uniwidth/u8-strwidth: Likewise.
22744         * modules/uniwidth/u8-width: Likewise.
22745         * modules/uniwidth/u16-strwidth: Likewise.
22746         * modules/uniwidth/u16-width: Likewise.
22747         * modules/uniwidth/u32-strwidth: Likewise.
22748         * modules/uniwidth/u32-width: Likewise.
22749         * modules/uniwidth/width: Likewise.
22750         * modules/unicase/cased-tests (Makefile.am): Link all test programs
22751         with $(LIBUNISTRING).
22752         * modules/unicase/ignorable-tests: Likewise.
22753         * modules/unicase/locale-language-tests: Likewise.
22754         * modules/unicase/tolower-tests: Likewise.
22755         * modules/unicase/totitle-tests: Likewise.
22756         * modules/unicase/toupper-tests: Likewise.
22757         * modules/unicase/u8-casecmp-tests: Likewise.
22758         * modules/unicase/u8-casecoll-tests: Likewise.
22759         * modules/unicase/u8-casefold-tests: Likewise.
22760         * modules/unicase/u8-is-cased-tests: Likewise.
22761         * modules/unicase/u8-is-casefolded-tests: Likewise.
22762         * modules/unicase/u8-is-lowercase-tests: Likewise.
22763         * modules/unicase/u8-is-titlecase-tests: Likewise.
22764         * modules/unicase/u8-is-uppercase-tests: Likewise.
22765         * modules/unicase/u8-tolower-tests: Likewise.
22766         * modules/unicase/u8-totitle-tests: Likewise.
22767         * modules/unicase/u8-toupper-tests: Likewise.
22768         * modules/unicase/u16-casecmp-tests: Likewise.
22769         * modules/unicase/u16-casecoll-tests: Likewise.
22770         * modules/unicase/u16-casefold-tests: Likewise.
22771         * modules/unicase/u16-is-cased-tests: Likewise.
22772         * modules/unicase/u16-is-casefolded-tests: Likewise.
22773         * modules/unicase/u16-is-lowercase-tests: Likewise.
22774         * modules/unicase/u16-is-titlecase-tests: Likewise.
22775         * modules/unicase/u16-is-uppercase-tests: Likewise.
22776         * modules/unicase/u16-tolower-tests: Likewise.
22777         * modules/unicase/u16-totitle-tests: Likewise.
22778         * modules/unicase/u16-toupper-tests: Likewise.
22779         * modules/unicase/u32-casecmp-tests: Likewise.
22780         * modules/unicase/u32-casecoll-tests: Likewise.
22781         * modules/unicase/u32-casefold-tests: Likewise.
22782         * modules/unicase/u32-is-cased-tests: Likewise.
22783         * modules/unicase/u32-is-casefolded-tests: Likewise.
22784         * modules/unicase/u32-is-lowercase-tests: Likewise.
22785         * modules/unicase/u32-is-titlecase-tests: Likewise.
22786         * modules/unicase/u32-is-uppercase-tests: Likewise.
22787         * modules/unicase/u32-tolower-tests: Likewise.
22788         * modules/unicase/u32-totitle-tests: Likewise.
22789         * modules/unicase/u32-toupper-tests: Likewise.
22790         * modules/unicase/ulc-casecmp-tests: Likewise.
22791         * modules/unicase/ulc-casecoll-tests: Likewise.
22792         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
22793         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
22794         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
22795         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
22796         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
22797         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
22798         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
22799         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
22800         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
22801         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
22802         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
22803         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
22804         * modules/unictype/bidicategory-byname-tests: Likewise.
22805         * modules/unictype/bidicategory-name-tests: Likewise.
22806         * modules/unictype/bidicategory-of-tests: Likewise.
22807         * modules/unictype/bidicategory-test-tests: Likewise.
22808         * modules/unictype/block-list-tests: Likewise.
22809         * modules/unictype/block-of-tests: Likewise.
22810         * modules/unictype/block-test-tests: Likewise.
22811         * modules/unictype/category-C-tests: Likewise.
22812         * modules/unictype/category-Cc-tests: Likewise.
22813         * modules/unictype/category-Cf-tests: Likewise.
22814         * modules/unictype/category-Cn-tests: Likewise.
22815         * modules/unictype/category-Co-tests: Likewise.
22816         * modules/unictype/category-Cs-tests: Likewise.
22817         * modules/unictype/category-L-tests: Likewise.
22818         * modules/unictype/category-Ll-tests: Likewise.
22819         * modules/unictype/category-Lm-tests: Likewise.
22820         * modules/unictype/category-Lo-tests: Likewise.
22821         * modules/unictype/category-Lt-tests: Likewise.
22822         * modules/unictype/category-Lu-tests: Likewise.
22823         * modules/unictype/category-M-tests: Likewise.
22824         * modules/unictype/category-Mc-tests: Likewise.
22825         * modules/unictype/category-Me-tests: Likewise.
22826         * modules/unictype/category-Mn-tests: Likewise.
22827         * modules/unictype/category-N-tests: Likewise.
22828         * modules/unictype/category-Nd-tests: Likewise.
22829         * modules/unictype/category-Nl-tests: Likewise.
22830         * modules/unictype/category-No-tests: Likewise.
22831         * modules/unictype/category-P-tests: Likewise.
22832         * modules/unictype/category-Pc-tests: Likewise.
22833         * modules/unictype/category-Pd-tests: Likewise.
22834         * modules/unictype/category-Pe-tests: Likewise.
22835         * modules/unictype/category-Pf-tests: Likewise.
22836         * modules/unictype/category-Pi-tests: Likewise.
22837         * modules/unictype/category-Po-tests: Likewise.
22838         * modules/unictype/category-Ps-tests: Likewise.
22839         * modules/unictype/category-S-tests: Likewise.
22840         * modules/unictype/category-Sc-tests: Likewise.
22841         * modules/unictype/category-Sk-tests: Likewise.
22842         * modules/unictype/category-Sm-tests: Likewise.
22843         * modules/unictype/category-So-tests: Likewise.
22844         * modules/unictype/category-Z-tests: Likewise.
22845         * modules/unictype/category-Zl-tests: Likewise.
22846         * modules/unictype/category-Zp-tests: Likewise.
22847         * modules/unictype/category-Zs-tests: Likewise.
22848         * modules/unictype/category-and-not-tests: Likewise.
22849         * modules/unictype/category-and-tests: Likewise.
22850         * modules/unictype/category-byname-tests: Likewise.
22851         * modules/unictype/category-name-tests: Likewise.
22852         * modules/unictype/category-none-tests: Likewise.
22853         * modules/unictype/category-of-tests: Likewise.
22854         * modules/unictype/category-or-tests: Likewise.
22855         * modules/unictype/category-test-withtable-tests: Likewise.
22856         * modules/unictype/combining-class-tests: Likewise.
22857         * modules/unictype/ctype-alnum-tests: Likewise.
22858         * modules/unictype/ctype-alpha-tests: Likewise.
22859         * modules/unictype/ctype-blank-tests: Likewise.
22860         * modules/unictype/ctype-cntrl-tests: Likewise.
22861         * modules/unictype/ctype-digit-tests: Likewise.
22862         * modules/unictype/ctype-graph-tests: Likewise.
22863         * modules/unictype/ctype-lower-tests: Likewise.
22864         * modules/unictype/ctype-print-tests: Likewise.
22865         * modules/unictype/ctype-punct-tests: Likewise.
22866         * modules/unictype/ctype-space-tests: Likewise.
22867         * modules/unictype/ctype-upper-tests: Likewise.
22868         * modules/unictype/ctype-xdigit-tests: Likewise.
22869         * modules/unictype/decimal-digit-tests: Likewise.
22870         * modules/unictype/digit-tests: Likewise.
22871         * modules/unictype/mirror-tests: Likewise.
22872         * modules/unictype/numeric-tests: Likewise.
22873         * modules/unictype/property-alphabetic-tests: Likewise.
22874         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
22875         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
22876         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
22877         * modules/unictype/property-bidi-block-separator-tests: Likewise.
22878         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
22879         * modules/unictype/property-bidi-common-separator-tests: Likewise.
22880         * modules/unictype/property-bidi-control-tests: Likewise.
22881         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
22882         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
22883         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
22884         * modules/unictype/property-bidi-european-digit-tests: Likewise.
22885         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
22886         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
22887         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
22888         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
22889         * modules/unictype/property-bidi-pdf-tests: Likewise.
22890         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
22891         * modules/unictype/property-bidi-whitespace-tests: Likewise.
22892         * modules/unictype/property-byname-tests: Likewise.
22893         * modules/unictype/property-combining-tests: Likewise.
22894         * modules/unictype/property-composite-tests: Likewise.
22895         * modules/unictype/property-currency-symbol-tests: Likewise.
22896         * modules/unictype/property-dash-tests: Likewise.
22897         * modules/unictype/property-decimal-digit-tests: Likewise.
22898         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
22899         * modules/unictype/property-deprecated-tests: Likewise.
22900         * modules/unictype/property-diacritic-tests: Likewise.
22901         * modules/unictype/property-extender-tests: Likewise.
22902         * modules/unictype/property-format-control-tests: Likewise.
22903         * modules/unictype/property-grapheme-base-tests: Likewise.
22904         * modules/unictype/property-grapheme-extend-tests: Likewise.
22905         * modules/unictype/property-grapheme-link-tests: Likewise.
22906         * modules/unictype/property-hex-digit-tests: Likewise.
22907         * modules/unictype/property-hyphen-tests: Likewise.
22908         * modules/unictype/property-id-continue-tests: Likewise.
22909         * modules/unictype/property-id-start-tests: Likewise.
22910         * modules/unictype/property-ideographic-tests: Likewise.
22911         * modules/unictype/property-ids-binary-operator-tests: Likewise.
22912         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
22913         * modules/unictype/property-ignorable-control-tests: Likewise.
22914         * modules/unictype/property-iso-control-tests: Likewise.
22915         * modules/unictype/property-join-control-tests: Likewise.
22916         * modules/unictype/property-left-of-pair-tests: Likewise.
22917         * modules/unictype/property-line-separator-tests: Likewise.
22918         * modules/unictype/property-logical-order-exception-tests: Likewise.
22919         * modules/unictype/property-lowercase-tests: Likewise.
22920         * modules/unictype/property-math-tests: Likewise.
22921         * modules/unictype/property-non-break-tests: Likewise.
22922         * modules/unictype/property-not-a-character-tests: Likewise.
22923         * modules/unictype/property-numeric-tests: Likewise.
22924         * modules/unictype/property-other-alphabetic-tests: Likewise.
22925         * modules/unictype/property-other-default-ignorable-code-point-tests:
22926         Likewise.
22927         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
22928         * modules/unictype/property-other-id-continue-tests: Likewise.
22929         * modules/unictype/property-other-id-start-tests: Likewise.
22930         * modules/unictype/property-other-lowercase-tests: Likewise.
22931         * modules/unictype/property-other-math-tests: Likewise.
22932         * modules/unictype/property-other-uppercase-tests: Likewise.
22933         * modules/unictype/property-paired-punctuation-tests: Likewise.
22934         * modules/unictype/property-paragraph-separator-tests: Likewise.
22935         * modules/unictype/property-pattern-syntax-tests: Likewise.
22936         * modules/unictype/property-pattern-white-space-tests: Likewise.
22937         * modules/unictype/property-private-use-tests: Likewise.
22938         * modules/unictype/property-punctuation-tests: Likewise.
22939         * modules/unictype/property-quotation-mark-tests: Likewise.
22940         * modules/unictype/property-radical-tests: Likewise.
22941         * modules/unictype/property-sentence-terminal-tests: Likewise.
22942         * modules/unictype/property-soft-dotted-tests: Likewise.
22943         * modules/unictype/property-space-tests: Likewise.
22944         * modules/unictype/property-terminal-punctuation-tests: Likewise.
22945         * modules/unictype/property-test-tests: Likewise.
22946         * modules/unictype/property-titlecase-tests: Likewise.
22947         * modules/unictype/property-unassigned-code-value-tests: Likewise.
22948         * modules/unictype/property-unified-ideograph-tests: Likewise.
22949         * modules/unictype/property-uppercase-tests: Likewise.
22950         * modules/unictype/property-variation-selector-tests: Likewise.
22951         * modules/unictype/property-white-space-tests: Likewise.
22952         * modules/unictype/property-xid-continue-tests: Likewise.
22953         * modules/unictype/property-xid-start-tests: Likewise.
22954         * modules/unictype/property-zero-width-tests: Likewise.
22955         * modules/unictype/scripts-tests: Likewise.
22956         * modules/unictype/syntax-c-ident-tests: Likewise.
22957         * modules/unictype/syntax-c-whitespace-tests: Likewise.
22958         * modules/unictype/syntax-java-ident-tests: Likewise.
22959         * modules/unictype/syntax-java-whitespace-tests: Likewise.
22960         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
22961         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
22962         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
22963         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
22964         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
22965         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
22966         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
22967         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
22968         * modules/uniname/uniname-tests: Likewise.
22969         * modules/uninorm/canonical-decomposition-tests: Likewise.
22970         * modules/uninorm/compat-decomposition-tests: Likewise.
22971         * modules/uninorm/composition-tests: Likewise.
22972         * modules/uninorm/decomposing-form-tests: Likewise.
22973         * modules/uninorm/decomposition-tests: Likewise.
22974         * modules/uninorm/filter-tests: Likewise.
22975         * modules/uninorm/nfc-tests: Likewise.
22976         * modules/uninorm/nfd-tests: Likewise.
22977         * modules/uninorm/nfkc-tests: Likewise.
22978         * modules/uninorm/nfkd-tests: Likewise.
22979         * modules/uninorm/u8-normcmp-tests: Likewise.
22980         * modules/uninorm/u8-normcoll-tests: Likewise.
22981         * modules/uninorm/u16-normcmp-tests: Likewise.
22982         * modules/uninorm/u16-normcoll-tests: Likewise.
22983         * modules/uninorm/u32-normcmp-tests: Likewise.
22984         * modules/uninorm/u32-normcoll-tests: Likewise.
22985         * modules/unistdio/u8-asnprintf-tests: Likewise.
22986         * modules/unistdio/u8-vasnprintf-tests: Likewise.
22987         * modules/unistdio/u8-vasprintf-tests: Likewise.
22988         * modules/unistdio/u8-vsnprintf-tests: Likewise.
22989         * modules/unistdio/u8-vsprintf-tests: Likewise.
22990         * modules/unistdio/u16-asnprintf-tests: Likewise.
22991         * modules/unistdio/u16-vasnprintf-tests: Likewise.
22992         * modules/unistdio/u16-vasprintf-tests: Likewise.
22993         * modules/unistdio/u16-vsnprintf-tests: Likewise.
22994         * modules/unistdio/u16-vsprintf-tests: Likewise.
22995         * modules/unistdio/u32-asnprintf-tests: Likewise.
22996         * modules/unistdio/u32-vasnprintf-tests: Likewise.
22997         * modules/unistdio/u32-vasprintf-tests: Likewise.
22998         * modules/unistdio/u32-vsnprintf-tests: Likewise.
22999         * modules/unistdio/u32-vsprintf-tests: Likewise.
23000         * modules/unistdio/ulc-asnprintf-tests: Likewise.
23001         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
23002         * modules/unistdio/ulc-vasprintf-tests: Likewise.
23003         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
23004         * modules/unistdio/ulc-vsprintf-tests: Likewise.
23005         * modules/unistr/u8-check-tests: Likewise.
23006         * modules/unistr/u8-chr-tests: Likewise.
23007         * modules/unistr/u8-cmp-tests: Likewise.
23008         * modules/unistr/u8-cmp2-tests: Likewise.
23009         * modules/unistr/u8-cpy-alloc-tests: Likewise.
23010         * modules/unistr/u8-cpy-tests: Likewise.
23011         * modules/unistr/u8-mblen-tests: Likewise.
23012         * modules/unistr/u8-mbsnlen-tests: Likewise.
23013         * modules/unistr/u8-mbtouc-tests: Likewise.
23014         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
23015         * modules/unistr/u8-mbtoucr-tests: Likewise.
23016         * modules/unistr/u8-move-tests: Likewise.
23017         * modules/unistr/u8-next-tests: Likewise.
23018         * modules/unistr/u8-prev-tests: Likewise.
23019         * modules/unistr/u8-set-tests: Likewise.
23020         * modules/unistr/u8-stpcpy-tests: Likewise.
23021         * modules/unistr/u8-stpncpy-tests: Likewise.
23022         * modules/unistr/u8-strcat-tests: Likewise.
23023         * modules/unistr/u8-strcmp-tests: Likewise.
23024         * modules/unistr/u8-strcoll-tests: Likewise.
23025         * modules/unistr/u8-strcpy-tests: Likewise.
23026         * modules/unistr/u8-strdup-tests: Likewise.
23027         * modules/unistr/u8-strlen-tests: Likewise.
23028         * modules/unistr/u8-strmblen-tests: Likewise.
23029         * modules/unistr/u8-strmbtouc-tests: Likewise.
23030         * modules/unistr/u8-strncat-tests: Likewise.
23031         * modules/unistr/u8-strncmp-tests: Likewise.
23032         * modules/unistr/u8-strncpy-tests: Likewise.
23033         * modules/unistr/u8-strnlen-tests: Likewise.
23034         * modules/unistr/u8-to-u16-tests: Likewise.
23035         * modules/unistr/u8-to-u32-tests: Likewise.
23036         * modules/unistr/u8-uctomb-tests: Likewise.
23037         * modules/unistr/u16-check-tests: Likewise.
23038         * modules/unistr/u16-chr-tests: Likewise.
23039         * modules/unistr/u16-cmp-tests: Likewise.
23040         * modules/unistr/u16-cmp2-tests: Likewise.
23041         * modules/unistr/u16-cpy-alloc-tests: Likewise.
23042         * modules/unistr/u16-cpy-tests: Likewise.
23043         * modules/unistr/u16-mblen-tests: Likewise.
23044         * modules/unistr/u16-mbsnlen-tests: Likewise.
23045         * modules/unistr/u16-mbtouc-tests: Likewise.
23046         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
23047         * modules/unistr/u16-mbtoucr-tests: Likewise.
23048         * modules/unistr/u16-move-tests: Likewise.
23049         * modules/unistr/u16-next-tests: Likewise.
23050         * modules/unistr/u16-prev-tests: Likewise.
23051         * modules/unistr/u16-set-tests: Likewise.
23052         * modules/unistr/u16-stpcpy-tests: Likewise.
23053         * modules/unistr/u16-stpncpy-tests: Likewise.
23054         * modules/unistr/u16-strcat-tests: Likewise.
23055         * modules/unistr/u16-strcmp-tests: Likewise.
23056         * modules/unistr/u16-strcoll-tests: Likewise.
23057         * modules/unistr/u16-strcpy-tests: Likewise.
23058         * modules/unistr/u16-strdup-tests: Likewise.
23059         * modules/unistr/u16-strlen-tests: Likewise.
23060         * modules/unistr/u16-strmblen-tests: Likewise.
23061         * modules/unistr/u16-strmbtouc-tests: Likewise.
23062         * modules/unistr/u16-strncat-tests: Likewise.
23063         * modules/unistr/u16-strncmp-tests: Likewise.
23064         * modules/unistr/u16-strncpy-tests: Likewise.
23065         * modules/unistr/u16-strnlen-tests: Likewise.
23066         * modules/unistr/u16-to-u32-tests: Likewise.
23067         * modules/unistr/u16-to-u8-tests: Likewise.
23068         * modules/unistr/u16-uctomb-tests: Likewise.
23069         * modules/unistr/u32-check-tests: Likewise.
23070         * modules/unistr/u32-chr-tests: Likewise.
23071         * modules/unistr/u32-cmp-tests: Likewise.
23072         * modules/unistr/u32-cmp2-tests: Likewise.
23073         * modules/unistr/u32-cpy-alloc-tests: Likewise.
23074         * modules/unistr/u32-cpy-tests: Likewise.
23075         * modules/unistr/u32-mblen-tests: Likewise.
23076         * modules/unistr/u32-mbsnlen-tests: Likewise.
23077         * modules/unistr/u32-mbtouc-tests: Likewise.
23078         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
23079         * modules/unistr/u32-mbtoucr-tests: Likewise.
23080         * modules/unistr/u32-move-tests: Likewise.
23081         * modules/unistr/u32-next-tests: Likewise.
23082         * modules/unistr/u32-prev-tests: Likewise.
23083         * modules/unistr/u32-set-tests: Likewise.
23084         * modules/unistr/u32-stpcpy-tests: Likewise.
23085         * modules/unistr/u32-stpncpy-tests: Likewise.
23086         * modules/unistr/u32-strcat-tests: Likewise.
23087         * modules/unistr/u32-strcmp-tests: Likewise.
23088         * modules/unistr/u32-strcoll-tests: Likewise.
23089         * modules/unistr/u32-strcpy-tests: Likewise.
23090         * modules/unistr/u32-strdup-tests: Likewise.
23091         * modules/unistr/u32-strlen-tests: Likewise.
23092         * modules/unistr/u32-strmblen-tests: Likewise.
23093         * modules/unistr/u32-strmbtouc-tests: Likewise.
23094         * modules/unistr/u32-strncat-tests: Likewise.
23095         * modules/unistr/u32-strncmp-tests: Likewise.
23096         * modules/unistr/u32-strncpy-tests: Likewise.
23097         * modules/unistr/u32-strnlen-tests: Likewise.
23098         * modules/unistr/u32-to-u16-tests: Likewise.
23099         * modules/unistr/u32-to-u8-tests: Likewise.
23100         * modules/unistr/u32-uctomb-tests: Likewise.
23101         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
23102         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
23103         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
23104         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
23105         * modules/uniwidth/u8-strwidth-tests: Likewise.
23106         * modules/uniwidth/u8-width-tests: Likewise.
23107         * modules/uniwidth/u16-strwidth-tests: Likewise.
23108         * modules/uniwidth/u16-width-tests: Likewise.
23109         * modules/uniwidth/u32-strwidth-tests: Likewise.
23110         * modules/uniwidth/u32-width-tests: Likewise.
23111         * modules/uniwidth/width-tests: Likewise.
23112
23113 2010-05-18  Richard Jones  <rjones@redhat.com>
23114
23115         doc: users.txt: list hivex
23116         * users.txt: Add hivex.
23117
23118 2010-05-18  Richard Jones  <rjones@redhat.com>
23119
23120         doc: users.txt: list febootstrap
23121         * users.txt: Add febootstrap.
23122
23123 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
23124
23125         bootstrap: fix an error when gnulib is not used as a git submodule
23126         * build-aux/bootstrap (gnulib_path): If its length is zero then
23127         assign "gnulib" to it.
23128         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
23129
23130 2010-05-16  Bruno Haible  <bruno@clisp.org>
23131
23132         Avoid autoconf warnings about AM_ICONV.
23133         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
23134         2.64.
23135
23136 2010-05-16  Bruno Haible  <bruno@clisp.org>
23137
23138         absolute-header: Make the macro usable in more situations.
23139         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
23140         from gl_ABSOLUTE_HEADER.
23141         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
23142
23143 2010-05-16  James Youngman  <jay@gnu.org>
23144
23145         doc: update users.txt
23146         * users.txt: Add CSSC.
23147
23148 2010-05-16  Jim Meyering  <meyering@redhat.com>
23149
23150         init.sh: fix an error in the previous change; add more comments
23151         * tests/init.sh: Compare exit code in loop against 9, not 2.
23152         Patch by Bruno Haible.
23153         Make the two tests more similar by adding an empty "then" clause.
23154         Add comments.
23155
23156         init.sh: avoid unnecessary shell re-exec
23157         * tests/init.sh: Improve the re-exec-required check to first test the
23158         current shell.  If it passes the test, do not search for a shell that
23159         does pass, and do not re-exec.  This test is particularly contorted to
23160         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
23161         of $(...) evokes a syntax error and causes immediate shell exit with
23162         status 2.  Bruno Haible reported that the re-exec made it impossible
23163         to single-step through any init.sh-using script.
23164
23165 2010-05-16  Bruno Haible  <bruno@clisp.org>
23166
23167         Fix collision between gnulib's and libintl's printf replacements.
23168         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
23169         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
23170         (printf): When using GNU C, map the __printf__ function to rpl_printf
23171         via __asm__. When not using GNU C, define rpl_printf instead of
23172         __printf__.
23173         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
23174         commit.
23175         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
23176         commit.
23177         * m4/asm-underscore.m4: New file.
23178         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
23179         * modules/stdio (Files): Add m4/asm-underscore.m4.
23180         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
23181         Reported by Ben Pfaff.
23182
23183 2010-05-16  Bruno Haible  <bruno@clisp.org>
23184
23185         verify: Avoid skipping the test on openSUSE 11.0.
23186         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
23187
23188 2010-05-13  Bruno Haible  <bruno@clisp.org>
23189
23190         Avoid useless warnings from G++.
23191         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
23192         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
23193         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
23194
23195 2010-05-11  Jim Meyering  <meyering@redhat.com>
23196
23197         maint.mk: tweak preceding change
23198         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
23199         regexps tighter by anchoring at EOL, and make the new group "shy"
23200         for slightly decreased overhead.
23201
23202 2010-05-11  Eric Blake  <eblake@redhat.com>
23203
23204         maint.mk: gnulib doesn't guarantee NSIG
23205         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
23206
23207 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
23208
23209         test-pwrite.c: Remove unused variable declaration.
23210         * tests/test-pwrite.c (main): Remove read_buf declaration.
23211
23212         Remove useless test-pwrite.sh file.
23213         * tests/test-pwrite.sh: Delete file.
23214         * modules/pwrite-tests: Remove references.
23215         Reported by Bruno Haible.
23216
23217 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
23218
23219         init.sh: fix a typo
23220         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
23221
23222 2010-05-10  Jim Meyering  <meyering@redhat.com>
23223
23224         maint.mk: avoid using a temporary file in the always-defined-macros check
23225         * top/maint.mk (.re-defmac): Remove rule.
23226         (gl_trap_): Remove definition.
23227         (sc_prohibit_always-defined_macros): Rewrite not to create and
23228         depend on a temporary file.  Instead, depend on GNU grep's ability
23229         to read a list of regular expressions from stdin when given "-f -".
23230
23231 2010-05-09  Bruno Haible  <bruno@clisp.org>
23232
23233         Update to GNU gettext 0.18, part 1.
23234         * m4/gettext.m4: Update to GNU gettext 0.18.
23235         * m4/intl.m4: Likewise.
23236         * m4/po.m4: Likewise.
23237         * modules/gettext (Files): Add m4/fcntl-o.m4.
23238         (configure.ac): Require gettext infrastructure from version 0.18.
23239
23240 2010-05-09  Jim Meyering  <meyering@redhat.com>
23241
23242         init.sh: enable MALLOC_PERTURB_
23243         * tests/init.sh: Enable glibc's malloc-perturbing option.
23244
23245         maint.mk: improve sc_cross_check_PATH_usage_in_tests
23246         With my recent change in init.sh from the two-line form:
23247             -#   : ${srcdir=.}
23248             -#   . "$srcdir/init.sh"; path_prepend_ .
23249             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
23250         I noticed that using the one-line form would cause this test
23251         to fail with a false-positive, or to stop working altogether,
23252         depending on whether help-version changed or all the tests did.
23253         * top/maint.mk (_hv_regex): Remove this definition.
23254         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
23255         (_hv_regex_strong): Use a stronger regex to check for conformance.
23256         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
23257         Give a separate diagnostic for lack of conforming use.
23258
23259         maint.mk: prohibit definition of symbols defined by gnulib
23260         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
23261         definition of symbols defined by gnulib.
23262
23263 2010-05-09  Bruno Haible  <bruno@clisp.org>
23264
23265         acl: Avoid test failure on Cygwin-hosted mingw.
23266         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
23267
23268 2010-05-09  Bruno Haible  <bruno@clisp.org>
23269
23270         error: Use system's fcntl function.
23271         * lib/error.c (fcntl): Undefine.
23272
23273 2010-05-09  Jim Meyering  <meyering@redhat.com>
23274
23275         verify: adjust formatting to be more consistent
23276         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
23277         argument-list '('s, and after one comma.
23278
23279 2010-05-09  Bruno Haible  <bruno@clisp.org>
23280
23281         error: More reliable output on mingw.
23282         * lib/error.c: Include <windows.h>.
23283         (is_open): New function.
23284         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
23285         defined.
23286
23287 2010-05-09  Bruno Haible  <bruno@clisp.org>
23288
23289         vasnprintf: Fix syntax errors in libintl build on mingw.
23290         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
23291         pad_ourselves and prec_ourselves after use.
23292
23293 2010-05-08  Bruno Haible  <bruno@clisp.org>
23294
23295         * lib/config.charset: Update comments for Cygwin 1.7.
23296         * lib/localcharset.c: Likewise.
23297
23298 2010-05-07  Jim Meyering  <meyering@redhat.com>
23299
23300         init.sh: improve comments
23301         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
23302         . "${srcdir=.}/init.sh"; path_prepend_ .
23303         Add a note about path_prepend_ and the alternative of using
23304         TESTS_ENVIRONMENT.
23305
23306 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
23307
23308         exclude: Unescape hashed patterns in wildcard mode.
23309         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
23310         to the hash list.
23311         * tests/test-exclude8.sh: New test case.
23312         * modules/exclude-tests: Add new test.
23313
23314 2010-05-05  Eric Blake  <eblake@redhat.com>
23315
23316         verify: automate tests
23317         * modules/verify-tests: New module.
23318         * tests/test-verify.sh: New file.
23319         * tests/test-verify.c: Guard each negative test with a unique id.
23320         Also avoid warning about unused left hand of comma expressions.
23321
23322 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
23323
23324         Further improvements to verify.h, suggested by Eric Blake.
23325         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
23326         the GL_* versions, to avoid collision with OpenGL.
23327         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
23328         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
23329         than testing merely whether it's defined.
23330
23331         Modify verify.h to pacify gcc -Wredundant_decls.
23332         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
23333         These use the prefix "GL_" since they're likely to be useful elsewhere.
23334         We may need to break them out into a different .h file.
23335         (__COUNTER__): Define to 0 if the compiler doesn't support it.
23336         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
23337         of verify_function__.
23338
23339 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
23340
23341         Tests for module pwrite.
23342         * modules/pwrite-tests: New file.
23343         * tests/test-pwrite.sh: New file.
23344         * tests/test-pwrite.c: New file.
23345
23346         New module pwrite.
23347         * lib/unistd.in.h (pwrite): New declaration.
23348         * lib/pwrite.c: New file, from glibc with modifications.
23349         * m4/pwrite.m4: New file.
23350         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
23351         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
23352         REPLACE_PWRITE.
23353         * modules/pwrite: New file.
23354         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
23355         REPLACE_PWRITE.
23356         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
23357         * doc/posix-functions/pwrite.texi: Mention the new module.
23358
23359 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
23360
23361         pread: Update documentation.
23362         * doc/posix-functions/pread.texi: Mention the 'pread' module.
23363
23364 2010-05-04  Eric Blake  <eblake@redhat.com>
23365
23366         docs: update cygwin progress
23367         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
23368         this bug.
23369         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
23370         Added in cygwin 1.7.2.
23371         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
23372         Likewise.
23373         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
23374         Likewise.
23375         * doc/glibc-functions/dup3.texi (dup3): Likewise.
23376         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
23377         * doc/glibc-functions/accept4.texi (accept4): Likewise.
23378         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
23379         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
23380         Mention nproc module.
23381         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
23382         bug in cygwin 1.7.5 addition.
23383         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
23384         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
23385         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
23386         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
23387         1.7.5.
23388         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
23389         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
23390         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
23391         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
23392         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
23393         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
23394         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
23395         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
23396         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
23397         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
23398         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
23399         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
23400         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
23401         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
23402         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
23403         Likewise.
23404         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
23405         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
23406         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
23407         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
23408         Likewise.
23409         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
23410         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
23411         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
23412         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
23413         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
23414         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
23415         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
23416         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
23417         Likewise.
23418         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
23419         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
23420         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
23421         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
23422         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
23423         Likewise.
23424         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
23425         Likewise.
23426         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
23427         Likewise.
23428         * doc/glibc-functions/xdrrec_endofrecord.texi
23429         (xdrrec_endofrecord): Likewise.
23430         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
23431         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
23432         Likewise.
23433         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
23434         Likewise.
23435
23436 2010-05-04  Jim Meyering  <meyering@redhat.com>
23437
23438         gendocs.sh: make its "-s FILE" option more useful
23439         * build-aux/gendocs.sh: When honoring the -s FILE option, update
23440         $PACKAGE to reflect the probably-different basename of "FILE".
23441
23442 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
23443
23444         bootstrap: don't ignore download_po_files failure
23445         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
23446         failure.
23447
23448 2010-05-03  Jim Meyering  <meyering@redhat.com>
23449
23450         maint.mk: allow to pass options to gendocs.sh
23451         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
23452         (gendocs_options_): New overridable variable.
23453
23454         gnu-web-doc-update: don't ignore configure or build failure
23455         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
23456
23457         announce-gen: backslash-escape '@'s in --help output
23458         * build-aux/announce-gen: Fix syntax errors.
23459
23460         maint.mk, announce-gen: allow project-specific announcement mail headers
23461         * top/maint.mk (translation_project_): Define default.
23462         (announcement_Cc_, announcement_mail_headers_): Likewise.
23463         (announcement): Invoke announce-gen with new --mail-headers option.
23464         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
23465
23466         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
23467         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
23468         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
23469         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
23470         line in the "err2" output file when running "make check" in verbose
23471         mode (i.e., with set -x enabled).
23472
23473 2010-05-03  Bruno Haible  <bruno@clisp.org>
23474
23475         wctob: Fix for weird platforms.
23476         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
23477         argument value.
23478
23479 2010-05-03  Jim Meyering  <meyering@redhat.com>
23480
23481         maint.mk: prohibit unwarranted use of <strings.h>
23482         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
23483         strings.h in a file that does not also use strcasecmp, strncasecmp,
23484         ffs or ffsll.
23485
23486         maint.mk: remove obsolete comments
23487         * top/maint.mk: Remove stale, commented-out rules.
23488
23489 2010-05-02  Bruno Haible  <bruno@clisp.org>
23490
23491         wcwidth: Declare also when it's aliased.
23492         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
23493         macro.
23494
23495 2010-05-02  Bruno Haible  <bruno@clisp.org>
23496
23497         Fix regression from 2010-04-25.
23498         * gnulib-tool (func_modules_transitive_closure): Check the status of
23499         all modules, not only of the tests that are of the form foo-tests where
23500         foo is a module.
23501
23502 2010-05-02  Bruno Haible  <bruno@clisp.org>
23503
23504         wctob: Work around nasty Cygwin 1.7.2 bug.
23505         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
23506         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
23507
23508 2010-05-01  Bruno Haible  <bruno@clisp.org>
23509
23510         fpurge: Sharper test.
23511         * tests/test-fpurge.c (main): Add one more ftell check.
23512         * modules/fpurge-tests (Depends-on): Add ftell.
23513         Suggested by Eric Blake.
23514
23515 2010-05-01  Bruno Haible  <bruno@clisp.org>
23516
23517         ftello: Another test.
23518         * tests/test-ftello3.c: New file.
23519         * modules/ftello-tests (Files): Add it.
23520         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
23521         MOSTLYCLEANFILES.
23522
23523         ftell: Another test.
23524         * tests/test-ftell3.c: New file.
23525         * modules/ftell-tests (Files): Add it.
23526         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
23527         MOSTLYCLEANFILES.
23528
23529 2010-05-01  Bruno Haible  <bruno@clisp.org>
23530
23531         ftell, ftello: Work around Solaris bug.
23532         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
23533         * lib/ftello.c: Include stdio-impl.h.
23534         (ftello): On Solaris, when _IOWRT is set, compute the result without
23535         looking at _IOREAD.
23536         * modules/ftello (Files): Add lib/stdio-impl.h.
23537         * doc/posix-functions/ftell.texi: Mention Solaris bug.
23538         * doc/posix-functions/ftello.texi: Likewise.
23539         Reported by Eric Blake.
23540
23541 2010-05-01  Bruno Haible  <bruno@clisp.org>
23542
23543         freading: Adapt to special meaning of _IOREAD flag on Solaris.
23544         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
23545         the _IOWRT flag is also set.
23546
23547 2010-05-01  Bruno Haible  <bruno@clisp.org>
23548
23549         Fix doc about a HP-UX stdio bug.
23550         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
23551         * doc/posix-functions/ftello.texi: Likewise.
23552
23553 2010-05-01  Bruno Haible  <bruno@clisp.org>
23554
23555         lseek test: Fix failure on Solaris.
23556         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
23557         output.
23558
23559 2010-04-30  Jim Meyering  <meyering@redhat.com>
23560
23561         bootstrap: don't ignore failure to generate po*/Makevars
23562         * build-aux/bootstrap (with_gettext): Don't ignore failure
23563         to create po/Makevars or runtime-po/Makevars.
23564
23565 2010-04-29  Eric Blake  <eblake@redhat.com>
23566
23567         headers: relax license to LGPLv2+
23568         * modules/fcntl-h (License): Relax license.
23569         * modules/getopt-posix (License): Likewise.
23570         * modules/locale (License): Likewise.
23571         * modules/math (License): Likewise.
23572         * modules/pty (License): Likewise.
23573         * modules/sched (License): Likewise.
23574         * modules/search (License): Likewise.
23575         * modules/spawn (License): Likewise.
23576         * modules/stdarg (License): Likewise.
23577         * modules/sysexits (License): Likewise.
23578
23579 2010-04-29  Jim Meyering  <meyering@redhat.com>
23580
23581         inttypes: relax license to LGPLv2+
23582         * modules/inttypes (License): Relax license.
23583
23584 2010-04-29  Simon Josefsson  <simon@josefsson.org>
23585
23586         * top/maint.mk (indent): Run twice to produce idempotent results.
23587
23588 2010-04-28  Bruno Haible  <bruno@clisp.org>
23589
23590         getdate: Generate getdate.c in the source directory.
23591         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
23592         MOSTLYCLEANFILES.
23593         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
23594
23595 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
23596
23597         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
23598         is not declared as a const *; avoid warnings in that case.
23599
23600 2010-04-28  Eric Blake  <eblake@redhat.com>
23601
23602         canonicalize-lgpl: avoid compiler warning
23603         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
23604         declaration' / 'extraneous semicolon' warning with some compilers.
23605         Reported by Andreas Gruenbacher.
23606
23607 2010-04-28  Jim Meyering  <meyering@redhat.com>
23608
23609         init.sh: ensure a more reliable exit status when exiting via trap
23610         * tests/init.sh (setup_): Don't rely on $? in signal handler.
23611         Inspired by patches from Dmitry V. Levin.
23612         Also trap on signal 3 (SIGQUIT).
23613
23614 2010-04-27  Bruno Haible  <bruno@clisp.org>
23615
23616         Update doc about utimes().
23617         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
23618         'utimens' module.
23619         Reported by Andreas Gruenbacher <agruen@suse.de>.
23620
23621 2010-04-27  Eric Blake  <eblake@redhat.com>
23622
23623         full-read, full-write: relax license
23624         * modules/full-read (License): Drop to LGPLv2+.
23625         * modules/full-write (License): Likewise.
23626         * modules/safe-read (License): Likewise.
23627         * modules/safe-write (License): Likewise.
23628
23629         pthread: mention library for linking
23630         * modules/pthread (Link): Mention $(LIB_PTHREAD).
23631
23632 2010-04-27  Jim Meyering  <meyering@redhat.com>
23633
23634         maint.mk: fix a bug introduced in last change
23635         * top/maint.mk (gl_assured_headers_): Now that all names are on
23636         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
23637         is not anchored to end of word, it should be adequate.
23638
23639         maint.mk: avoid side-effect in latest syntax-check
23640         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
23641         to run commands via $(shell...), and hence to incur cost only when
23642         the new rule is actually run.
23643
23644         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
23645         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
23646         and use that to create a regexp used to detect all #if HAVE_..._H uses.
23647         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
23648         (gl_assured_headers_, az_, AZ_): Define.
23649         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
23650
23651 2010-04-26  Jim Meyering  <jim@meyering.net>
23652             Bruno Haible  <bruno@clisp.org>
23653
23654         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
23655         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
23656         Prompted by an exchange with Gilles Espinasse.
23657
23658 2010-04-26  Jim Meyering  <meyering@redhat.com>
23659
23660         git-version-gen: aesthetic tweak
23661         * build-aux/git-version-gen: Use "$nl" rather than a literal,
23662         so that the command remains on a single line.
23663
23664 2010-04-26  Eric Blake  <eblake@redhat.com>
23665
23666         git-version-gen: allow use on EBCDIC hosts
23667         * build-aux/git-version-gen (dirty): Use literal rather than tying
23668         ourselves to ascii.
23669         Reported by Steve Goetze.
23670
23671 2010-04-25  Bruno Haible  <bruno@clisp.org>
23672
23673         netdb: Add support for GNULIB_POSIXCHECK.
23674         * lib/netdb.in.h: Include warn-on-use.h.
23675         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
23676         functions are used when GNULIB_POSIXCHECK is defined and the
23677         getaddrinfo module is not in use.
23678         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
23679         freeaddrinfo, gai_strerror, getnameinfo are declared.
23680         * modules/netdb (Depends-on): Add warn-on-use.
23681         (Makefile.am): Include warn-on-use.h in netdb.h.
23682
23683 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
23684
23685         build: avoid "make check" failure without .git/ directory
23686         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
23687         there is no .git/ directory.
23688
23689 2010-04-25  Bruno Haible  <bruno@clisp.org>
23690
23691         ptsname: Fix misuse of ttyname_r.
23692         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
23693         of errno.
23694
23695 2010-04-25  Bruno Haible  <bruno@clisp.org>
23696
23697         ttyname_r: Make it work on Solaris 10.
23698         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
23699         if the system function has the POSIX declaration. Test whether the
23700         function fails if the buffer is less than 128 bytes large.
23701         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
23702         system's ttyname_r function. Provide a reasonably large buffer.
23703         * modules/ttyname_r (Depends-on): Add extensions.
23704         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
23705
23706 2010-04-25  Bruno Haible  <bruno@clisp.org>
23707
23708         Use the 'extensions' module for some more functions on Solaris.
23709         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
23710         module.
23711         * doc/posix-functions/ctime_r.texi: Likewise.
23712         * doc/posix-functions/getgrgid_r.texi: Likewise.
23713         * doc/posix-functions/getgrnam_r.texi: Likewise.
23714         * doc/posix-functions/getpwnam_r.texi: Likewise.
23715         * doc/posix-functions/getpwuid_r.texi: Likewise.
23716         * doc/posix-functions/readdir_r.texi: Likewise.
23717         * doc/posix-functions/sigwait.texi: Likewise.
23718         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
23719         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
23720
23721 2010-04-25  Bruno Haible  <bruno@clisp.org>
23722
23723         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
23724         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
23725         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
23726         * lib/ttyname_r.c: Include <limits.h>.
23727         (ttyname_r): Define using the system's ttyname_r function, if it exists
23728         and not on Solaris.
23729         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
23730         set.
23731         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
23732         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
23733         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
23734         Reported by Simon Josefsson.
23735
23736 2010-04-25  Bruno Haible  <bruno@clisp.org>
23737
23738         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
23739         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
23740         * doc/posix-functions/ctime_r.texi: Likewise.
23741         * doc/posix-functions/getgrgid_r.texi: Likewise.
23742         * doc/posix-functions/getgrnam_r.texi: Likewise.
23743         * doc/posix-functions/getlogin_r.texi: Likewise.
23744         * doc/posix-functions/getpwnam_r.texi: Likewise.
23745         * doc/posix-functions/getpwuid_r.texi: Likewise.
23746         * doc/posix-functions/readdir_r.texi: Likewise.
23747         * doc/posix-functions/sigwait.texi: Likewise.
23748         * doc/posix-functions/ttyname_r.texi: Likewise.
23749         Reported by Simon Josefsson.
23750
23751 2010-04-25  Bruno Haible  <bruno@clisp.org>
23752
23753         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
23754         * gnulib-tool (func_usage): Document that --with-*-tests options apply
23755         also to --create-testdir.
23756         (func_acceptable): Don't consider the status of *-tests modules here.
23757         (func_modules_transitive_closure): Consider it here, before including a
23758         test module.
23759         (func_import, func_create_testdir): Set inc_all_direct_tests,
23760         inc_all_indirect_tests.
23761         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
23762         --create-testdir and --create-megatestdir.
23763
23764 2010-04-25  Bruno Haible  <bruno@clisp.org>
23765
23766         gnulib-tool: Add --without-*-tests options.
23767         * gnulib-tool (func_usage): Document the --without-*-tests options.
23768         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
23769         excl_unportable_tests): New variables.
23770         Fail if they are specified with --import or --update.
23771         (func_acceptable): Respect the excl_*_tests variables.
23772         (func_import): Set the excl_*_tests variables to empty.
23773
23774 2010-04-25  Simon Josefsson  <simon@josefsson.org>
23775             Bruno Haible  <bruno@clisp.org>
23776
23777         Work around a MacOS X 10.4 bug with openpty.
23778         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
23779         * tests/test-openpty.c (main): Close the master side explicitly.
23780
23781 2010-04-25  Bruno Haible  <bruno@clisp.org>
23782
23783         strnlen: Fix a C++ test error on MacOS X and Solaris.
23784         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
23785         the function is not declared.
23786         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
23787         Simon Josefsson.
23788
23789 2010-04-24  Bruno Haible  <bruno@clisp.org>
23790
23791         Avoid a gcc warning.
23792         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
23793         of correct type for %08lx directive.
23794         Reported by Eric Blake.
23795
23796 2010-04-24  Bruno Haible  <bruno@clisp.org>
23797
23798         vasnprintf: Correct errno value in case of out-of-memory.
23799         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
23800         or sprintf. Use the errno value from SNPRINTF or sprintf.
23801         Reported by Ian Beckwith <ianb@erislabs.net>.
23802
23803 2010-04-24  Bruno Haible  <bruno@clisp.org>
23804
23805         ansi-c++-opt: Find correct compiler when cross-compiling.
23806         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
23807         AC_CHECK_PROGS.
23808         Reported by Simon Josefsson.
23809
23810 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
23811
23812         vc-list-files: Add support for subversion
23813         * build-aux/vc-list-files: Use "svn list" to generate the list of
23814         files controlled by subversion.
23815
23816 2010-04-23  Jim Meyering  <meyering@redhat.com>
23817
23818         vc-list-files tests: convert to use init.sh
23819         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
23820         path_prepend_.
23821         Use Exit, not exit.
23822         Use skip_ rather than open coding it.
23823         Remove trap set-up and compare definitions.
23824         * tests/test-vc-list-files-git.sh: Likewise.
23825         * modules/vc-list-files-tests (Files): Add tests/init.sh.
23826
23827 2010-04-22  Simon Josefsson  <simon@josefsson.org>
23828
23829         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
23830         backup files.
23831
23832 2010-04-21  Simon Josefsson  <simon@josefsson.org>
23833
23834         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
23835
23836 2010-04-20  Eric Blake  <eblake@redhat.com>
23837
23838         tests: be robust to ignored SIGPIPE
23839         * tests/test-select-in.sh: Consume all output.
23840         * tests/test-lseek.sh: Check correct exit status, while avoiding
23841         EPIPE.
23842
23843 2010-04-20  Simon Josefsson  <simon@josefsson.org>
23844             Bruno Haible  <bruno@clisp.org>
23845
23846         visibility: Don't use -fvisibility if it leads to a warning.
23847         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
23848         yes, don't pretend that visibility works if it leads to a warning.
23849         Reported by Mike Gran <spk121@yahoo.com>.
23850
23851 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
23852
23853         * build-aux/bootstrap: Use "git -h" for testing for supported options
23854         instead of "git --help".  The short-form option only shows a summary,
23855         and doesn't layout the full man page.  Grep for the full option name
23856         in the summary, too.
23857
23858 2010-04-19  Bruno Haible  <bruno@clisp.org>
23859
23860         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
23861         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
23862         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
23863         mention of RELOCATABLE_STRIP.
23864         Reported by Sylvain Beucler <beuc@beuc.net>.
23865
23866 2010-04-19  Bruno Haible  <bruno@clisp.org>
23867
23868         * lib/diffseq.h: Fix typo in comment.
23869         Reported by Eric Blake.
23870
23871 2010-04-19  Bruno Haible  <bruno@clisp.org>
23872
23873         ioctl: Move autoconf macro to a .m4 file.
23874         * m4/ioctl.m4: New file, extracted from modules/ioctl.
23875         * modules/ioctl (Files): Add it.
23876         (configure.ac): Simply invoke gl_FUNC_IOCTL.
23877         Reported by Ian Beckwith <ianb@erislabs.net>.
23878
23879 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
23880             Bruno Haible  <bruno@clisp.org>
23881
23882         diffseq: Accommodate use-case with abstract arrays.
23883         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
23884         is not defined.
23885         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
23886         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
23887
23888 2010-04-18  Bruno Haible  <bruno@clisp.org>
23889
23890         * doc/posix-headers/stdbool.texi: More precise wording.
23891
23892 2010-04-17  Jim Meyering  <meyering@redhat.com>
23893
23894         maint.mk: use gnu-style indentation in an embedded perl script
23895         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
23896         Rename variable: s/two/last_two_bytes/
23897
23898 2010-04-16  Eric Blake  <eblake@redhat.com>
23899
23900         test-stdbool: skip test that fails with Solaris CC
23901         * tests/test-stdbool.c (f): Skip test that causes compilation
23902         error under buggy C++ compiler.
23903         * lib/stdbool.in.h: Document the limitation.
23904         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
23905
23906         setenv: allow compilation with C++
23907         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
23908         register keyword.
23909
23910         stdint: allow test to pass with C++
23911         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
23912
23913         getopt: allow compilation with C++
23914         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
23915         struct.
23916         * lib/getopt.c (_getopt_internal_r): Use correct type.
23917         Reported by Dagobert Michelson, via Joel E. Denny.
23918
23919 2010-04-16  Bruno Haible  <bruno@clisp.org>
23920
23921         Override netdb.h always.
23922         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
23923         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
23924         Reported by Ludovic Courtès <ludo@gnu.org>.
23925
23926 2010-04-15  Bruno Haible  <bruno@clisp.org>
23927
23928         openpty: Fix mistake from 2010-03-21.
23929         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
23930         Reported by Simon Josefsson.
23931
23932 2010-04-15  Eric Blake  <eblake@redhat.com>
23933
23934         test-forkpty: fix expected signature
23935         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
23936         Reported by Simon Josefsson.
23937
23938 2010-04-15  Jim Meyering  <meyering@redhat.com>
23939
23940         maint.mk: texinfo_suffix_re_: correct the default regexp
23941         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
23942
23943         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
23944         make it configurable via texinfo_suffix_re_.
23945
23946 2010-04-14  Eric Blake  <eblake@redhat.com>
23947
23948         strtok_r: relax license to LGPLv2+
23949         * modules/strtok_r (License): Relax license.
23950         Reported by Matthias Bolte.
23951
23952 2010-04-14  Simon Josefsson  <simon@josefsson.org>
23953
23954         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
23955         version 1.4.4 by default instead of requiring the libgcrypt
23956         version used during build.  This makes it possible to use the
23957         application with older but still binary compatible libgcrypt
23958         versions.
23959
23960 2010-04-13  Eric Blake  <eblake@redhat.com>
23961
23962         getopt-gnu: match recent glibc fixes and posix ruling
23963         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
23964         '+' handling, when requesting extensions.
23965         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
23966         'W;' handling.
23967         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
23968         * doc/posix-functions/getopt.texi (getopt): Document this.
23969         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
23970         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
23971         Likewise.
23972
23973         getopt: merge bug fixes from glibc
23974         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
23975         diagnostics.  Honor '+:' correctly.  Reject ';'.
23976
23977         getopt-posix: detect MacOS bug
23978         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
23979         optind when missing a required argument.
23980         * doc/posix-functions/getopt.texi (getopt): Document the bug.
23981         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
23982         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
23983         Likewise.
23984
23985         getopt-posix: avoid spurious failure on Solaris
23986         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
23987         an indicator that setting optind=1 is sufficient for reset.
23988
23989         getopt-posix: avoid spurious failure on FreeBSD
23990         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
23991         in POSIX mode, since the m4 test uses it.
23992
23993         gnulib-tool: silence warning on BSD sh
23994         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
23995
23996 2010-04-13  Jim Meyering  <meyering@redhat.com>
23997
23998         doc: users.txt: GNU patch now uses gnulib
23999         * users.txt: Add patch.
24000
24001 2010-04-12  Jim Meyering  <meyering@redhat.com>
24002
24003         maint.mk: generate more concise timing data for syntax-check rules
24004         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
24005         " done" from each line that reports a syntax-check test duration.
24006
24007 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
24008
24009         git-version-gen: use "git update-index..." rather than "git status"
24010         * build-aux/git-version-gen: Use git update-index --refresh, not
24011         "git status".  With some versions of git, "git status" would fail
24012         to update the index and result in an unwarranted "-dirty" suffix.
24013
24014 2010-04-11  Jim Meyering  <meyering@redhat.com>
24015
24016         openat: correct formatting (no semantic change)
24017         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
24018         Suggested by Bruno Haible.
24019
24020 2010-04-11  Bruno Haible  <bruno@clisp.org>
24021
24022         Stricter declaration checking in testdirs.
24023         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
24024         If for_tests is true, augment AM_CPPFLAGS to define
24025         GNULIB_STRICT_CHECKING.
24026         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
24027         GNULIB_STRICT_CHECKING is defined, verify that the function is
24028         declared.
24029
24030 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
24031             Bruno Haible  <bruno@clisp.org>
24032
24033         libunistring: Improve configure output.
24034         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
24035         Don't say "consider installing GNU libunistring" when checking again
24036         with libiconv.
24037
24038 2010-04-11  Bruno Haible  <bruno@clisp.org>
24039
24040         libunistring: Correct value of $LTLIBUNISTRING.
24041         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
24042         correct the value of $LTLIBUNISTRING.
24043
24044 2010-04-11  Bruno Haible  <bruno@clisp.org>
24045
24046         havelib: Add static libraries to LIBS in the right order.
24047         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
24048         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
24049
24050 2010-04-11  Bruno Haible  <bruno@clisp.org>
24051
24052         libunistring: Detect libunistring also when it depends on libiconv.
24053         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
24054         the second AC_LIB_HAVE_LINKFLAGS invocation.
24055
24056 2010-04-11  James Youngman  <jay@gnu.org>
24057
24058         close-stream: declare local scalars to be "const"
24059         * lib/close-stream.c (close_stream): Make boolean variables const
24060         to document the fact that we set but do not change them.
24061
24062 2010-04-11  Bruno Haible  <bruno@clisp.org>
24063
24064         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
24065
24066 2010-04-11  Jim Meyering  <meyering@redhat.com>
24067
24068         maint.mk: don't include dist-check.mk
24069         * top/maint.mk: Remove bogus include directive.
24070
24071         maint.mk: improve empty-line-at-EOF check
24072         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
24073         solution, rather than tail+Perl-based one.  The latter would read
24074         a few kilobytes from the end of each file, and did not handle empty
24075         files properly.
24076
24077         maint.mk: print the elapsed time for each syntax-check rule
24078         * top/maint.mk (sc_m_rules_): Save start time in a file.
24079         (sc_z_rules_): New rules: remove temp file and print elapsed time.
24080         (local-check): Interpose the .z rules
24081
24082 2010-04-11  Jim Meyering  <meyering@redhat.com>
24083
24084         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
24085         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
24086         empty file with one that ends in an empty line.
24087
24088 2010-04-10  Bruno Haible  <bruno@clisp.org>
24089
24090         mkdir: Make it work on mingw64.
24091         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
24092         * lib/mkdir.c: Update comment.
24093         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
24094
24095 2010-04-10  Bruno Haible  <bruno@clisp.org>
24096
24097         Don't override improved macro from newer autoconf.
24098         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
24099         autoconf >= 2.62.
24100         Reported by Joel E. Denny <jdenny@clemson.edu>.
24101
24102 2010-04-10  Jim Meyering  <meyering@redhat.com>
24103
24104         maint.mk: new syntax-check rule: prohibit empty lines at end of file
24105         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
24106
24107         maint.mk: correct a diagnostic
24108         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
24109         in diagnostic; now use $prohibit.
24110
24111 2010-04-10  Bruno Haible  <address@hidden>
24112
24113         fchownat: Fix a C++ test error on Solaris 8.
24114         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
24115         the function does not exist.
24116
24117 2010-04-10  Bruno Haible  <bruno@clisp.org>
24118
24119         vasnprintf: Add more tests.
24120         * tests/test-vasnprintf-posix.c: Include <errno.h>.
24121         (test_function): Test converting an invalid wide string.
24122
24123         vasnprintf: Correct handling of unconvertible wide string arguments.
24124         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
24125         VASNPRINTF.
24126         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
24127         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
24128         smaller than the expected maximum need for the directive. Set errno to
24129         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
24130         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
24131         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
24132         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
24133         * modules/vasnprintf (Files): Add m4/printf.m4.
24134         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24135
24136 2010-04-10  Bruno Haible  <bruno@clisp.org>
24137
24138         vasnprintf: Fix crash in %ls directive.
24139         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
24140         string is passed as argument to %ls, with no precision and no width.
24141         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24142
24143 2010-04-10  Bruno Haible  <bruno@clisp.org>
24144
24145         vasnprintf: Fix multiple test failures on mingw.
24146         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
24147         _snprintf, or snwprintf, not _snwprintf.
24148
24149 2010-04-10  Bruno Haible  <bruno@clisp.org>
24150
24151         write: Fix a C++ test error on mingw.
24152         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
24153
24154 2010-04-10  Bruno Haible  <bruno@clisp.org>
24155
24156         vasnprintf test: Reduce code duplication.
24157         * tests/test-vasnprintf.c (test_function): New function, extracted from
24158         test_vasnprintf.
24159         (test_vasnprintf, test_asnprintf): Invoke it.
24160
24161 2010-04-10  Bruno Haible  <bruno@clisp.org>
24162
24163         strnlen: Fix warning in C++ mode on MacOS X.
24164         * lib/string.in.h (strnlen): Use the modern idiom.
24165         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
24166         defining strnlen as a macro already in <config.h>.
24167         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
24168         REPLACE_STRNLEN.
24169         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
24170         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24171
24172 2010-04-08  James Youngman  <jay@gnu.org>
24173
24174         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
24175         the example.
24176
24177 2010-04-09  Jim Meyering  <meyering@redhat.com>
24178
24179         maint.mk: print better diagnostic when there is no $(_hv_file)
24180         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
24181         announce that when $(_hv_file) (aka help-version) does not exist.
24182
24183         init.sh: run tr in the "C" locale to avoid multibyte interpretation
24184         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
24185         not try to interpret its random input bytes.  Jarno Rajahalme reported
24186         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
24187         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
24188         (mktempd_): Likewise, just in case.
24189
24190         ftruncate: add two years to projected module removal date: 2012
24191         * m4/ftruncate.m4: Adjust comments.
24192
24193         ftruncate: mark module as obsolete; even MinGW provides it, now
24194         * modules/ftruncate (Status): Obsolete.
24195         (Notice): Say that.
24196         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
24197         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
24198
24199 2010-04-08  Bruno Haible  <bruno@clisp.org>
24200
24201         Fix side effects from tests-related modules.
24202         * modules/dprintf-posix (Comment): New section.
24203         * modules/fprintf-posix (Comment): Likewise.
24204         * modules/obstack-printf-posix (Comment): Likewise.
24205         * modules/printf-posix (Comment): Likewise.
24206         * modules/snprintf-posix (Comment): Likewise.
24207         * modules/sprintf-posix (Comment): Likewise.
24208         * modules/vasnprintf-posix (Comment): Likewise.
24209         * modules/vasprintf-posix (Comment): Likewise.
24210         * modules/vdprintf-posix (Comment): Likewise.
24211         * modules/vfprintf-posix (Comment): Likewise.
24212         * modules/vprintf-posix (Comment): Likewise.
24213         * modules/vsnprintf-posix (Comment): Likewise.
24214         * modules/vsprintf-posix (Comment): Likewise.
24215         * modules/xprintf-posix (Comment): Likewise.
24216         * modules/xvasprintf-posix (Comment): Likewise.
24217         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
24218         * modules/floorf-tests (Depends-on): Likewise.
24219         * modules/round-tests (Depends-on): Likewise.
24220         * modules/roundf-tests (Depends-on): Likewise.
24221         * modules/trunc-tests (Depends-on): Likewise.
24222         * modules/truncf-tests (Depends-on): Likewise.
24223         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
24224         'fprintf-posix' module is not present.
24225         * tests/test-floorf2.c (check): Likewise.
24226         * tests/test-trunc2.c (check): Likewise.
24227         * tests/test-truncf2.c (check): Likewise.
24228         * tests/test-round2.c (equal): Likewise.
24229         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24230
24231 2010-04-07  Karl Berry  <karl@gnu.org>
24232
24233         * config/srclist.txt,
24234         * config/srclistvars.sh,
24235         * config/srclist-update: doc fixes.
24236
24237 2010-04-07  Jim Meyering  <meyering@redhat.com>
24238
24239         maint.mk: add a PATH crosschecking syntax-check rule
24240         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
24241         Useful if you use a test like the one in help-version (coreutils,
24242         diffutils, grep, gzip) that ensures $(VERSION) matches what is
24243         printed by prog --version.
24244
24245 2010-04-06  Bruno Haible  <bruno@clisp.org>
24246
24247         Fix link error on mingw.
24248         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
24249         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
24250
24251 2010-04-06  Bruno Haible  <bruno@clisp.org>
24252
24253         Assume rmdir exists.
24254         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
24255
24256 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
24257
24258         doc: update users.txt
24259         * users.txt: Add gcal.
24260
24261 2010-04-06  Jim Meyering  <meyering@redhat.com>
24262
24263         init.sh: simply unset TMPDIR rather than risking env -i
24264         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
24265         although it probably works fine on all Unix-based systems, some
24266         systems (Cygwin?) cannot tolerate a totally cleared environment.
24267         Suggestion from Eric Blake.
24268
24269 2010-04-06  Jim Meyering  <meyering@redhat.com>
24270
24271         init.sh: portability fix: use env's POSIX-specified -i option not -u
24272         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
24273         than unportable env -u.  Solaris 5.11's env lacks support for -u.
24274
24275 2010-04-05  Bruno Haible  <bruno@clisp.org>
24276
24277         btowc: Work around Cygwin 1.7.2 bug.
24278         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
24279         does not map NUL to 0.
24280         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
24281
24282 2010-04-05  Bruno Haible  <bruno@clisp.org>
24283
24284         Make the multithread modules work on Cygwin 1.7.2.
24285         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
24286         imported symbols can be declared weak, so that it returns "no" on
24287         Cygwin 1.7.2.
24288
24289 2010-04-05  Bruno Haible  <bruno@clisp.org>
24290
24291         Use the module 'strncat'.
24292         * modules/unistr/u8-strncat (Depends-on): Add strncat.
24293
24294         Tests for module 'strncat'.
24295         * modules/strncat-tests: New file.
24296         * tests/test-strncat.c: New file.
24297
24298         New module 'strncat'.
24299         * lib/string.in.h (strncat): New declaration.
24300         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
24301         * m4/strncat.m4: New file, based on m4/memchr.m4.
24302         * modules/strncat: New file.
24303         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
24304         is declared.
24305         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
24306         REPLACE_STRNCAT.
24307         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
24308         REPLACE_STRNCAT.
24309         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
24310         module.
24311         * tests/test-string-c++.cc: Check signature of strncat.
24312
24313 2010-04-05  Jim Meyering  <meyering@redhat.com>
24314
24315         xstrtoumax-tests: convert to use init.sh
24316         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
24317         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
24318         Use Exit, not exit.
24319         Remove uses of $EXEEXT and "./" to run a program in the current dir.
24320
24321         xstrtoimax-tests: convert to use init.sh
24322         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
24323         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
24324         Use Exit, not exit.
24325         Remove uses of $EXEEXT and "./" to run a program in the current dir.
24326
24327 2010-04-05  Bruno Haible  <bruno@clisp.org>
24328
24329         sys_socket: Avoid #define replacements in C++ mode.
24330         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
24331         warning to the function if possible, rather than #defining the symbol
24332         to a dysfunctional alias.
24333
24334 2010-04-05  Bruno Haible  <bruno@clisp.org>
24335
24336         fseeko: Fix C++ test error on mingw.
24337         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
24338         gl_FUNC_FSEEKO.
24339         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
24340         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
24341         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
24342         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
24343
24344 2010-04-05  Bruno Haible  <bruno@clisp.org>
24345
24346         duplocale: Improve test output.
24347         * tests/test-duplocale.c (main): Print reason for skipped test.
24348
24349 2010-04-05  Bruno Haible  <bruno@clisp.org>
24350
24351         Assume rmdir exists.
24352         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
24353         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
24354
24355 2010-04-05  Bruno Haible  <bruno@clisp.org>
24356
24357         Fix link error on Solaris 8 with cc.
24358         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
24359
24360 2010-04-05  Bruno Haible  <bruno@clisp.org>
24361
24362         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
24363         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
24364
24365 2010-04-05  Bruno Haible  <bruno@clisp.org>
24366
24367         vasprintf: Update documentation.
24368         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
24369
24370 2010-04-05  Bruno Haible  <bruno@clisp.org>
24371
24372         ptsname: Improve test.
24373         * tests/test-ptsname.c (main): Also try the various master names of BSD
24374         systems.
24375
24376 2010-04-05  Bruno Haible  <bruno@clisp.org>
24377
24378         memchr: Avoid a possible C++ test error.
24379         * lib/string.in.h (memchr): Provide declaration if function is missing.
24380         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
24381         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
24382         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
24383         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
24384
24385 2010-04-05  Bruno Haible  <bruno@clisp.org>
24386
24387         strtok_r: Improve idiom.
24388         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
24389         AC_LIBOBJ is used.
24390
24391 2010-04-05  Bruno Haible  <bruno@clisp.org>
24392
24393         strdup: Improve idiom.
24394         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
24395         AC_LIBOBJ is used.
24396         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
24397         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
24398         when AC_LIBOBJ is used.
24399
24400 2010-04-05  Bruno Haible  <bruno@clisp.org>
24401
24402         mbsinit, mbrtowc, wcrtomb: Improve idioms.
24403         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
24404         don't set REPLACE_MBSINIT to 1.
24405         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
24406         don't set REPLACE_MBRTOWC to 1.
24407         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
24408         exist, don't set REPLACE_MBSRTOWCS to 1.
24409         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
24410         exist, don't set REPLACE_MBSNRTOWCS to 1.
24411         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
24412         don't set REPLACE_WCRTOMB to 1.
24413         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
24414         exist, don't set REPLACE_WCSRTOMBS to 1.
24415         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
24416         exist, don't set REPLACE_WCSNRTOMBS to 1.
24417
24418 2010-04-05  Bruno Haible  <bruno@clisp.org>
24419
24420         ldexpl: Improve idiom.
24421         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
24422         make sure to set HAVE_DECL_LDEXPL to 0.
24423
24424 2010-04-05  Jim Meyering  <meyering@redhat.com>
24425
24426         xstrtol-tests: convert to use init.sh
24427         * modules/xstrtol-tests (Files): Add tests/init.sh.
24428         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
24429         Use Exit, not exit.
24430         Remove uses of $EXEEXT and "./" to run a program in the current dir.
24431
24432         atexit-tests: convert to use init.sh
24433         * modules/atexit-tests (Files): Add tests/init.sh.
24434         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
24435         Use Exit, not exit.
24436         Remove uses of $EXEEXT and "./" to run a program in the current dir.
24437
24438         init.sh: fix typo
24439         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
24440
24441         init.sh: make it easier for a test script to write to the tty, ...
24442         when using automake's parallel-tests mode.
24443         * tests/init.sh (stderr_fileno_): Define overridable variable.
24444         (warn_): New function, to use it.
24445         (fail_, skip_, framework_failure_): Use warn_.
24446
24447 2010-04-04  Bruno Haible  <bruno@clisp.org>
24448
24449         btowc: Avoid warning.
24450         * lib/btowc.c: Include <stdlib.h>.
24451         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
24452
24453 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
24454             Bruno Haible  <bruno@clisp.org>
24455
24456         wchar: Port to NetBSD 1.5.
24457         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
24458         * lib/wctype.in.h (WEOF): Likewise.
24459
24460 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
24461             Bruno Haible  <bruno@clisp.org>
24462
24463         Port extended stdio to NetBSD 1.5.
24464         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
24465         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
24466         older.
24467
24468 2010-04-04  Bruno Haible  <bruno@clisp.org>
24469
24470         string: Remove unused substitution.
24471         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
24472         HAVE_DECL_STRERROR.
24473         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
24474
24475 2010-04-04  Bruno Haible  <bruno@clisp.org>
24476
24477         strtod: Avoid a possible C++ test error.
24478         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
24479         set REPLACE_STRTOD.
24480
24481 2010-04-04  Bruno Haible  <bruno@clisp.org>
24482
24483         strerror: Update documentation.
24484         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
24485
24486 2010-04-04  Bruno Haible  <bruno@clisp.org>
24487
24488         stdio: Fix some C++ test errors on Solaris 8 with GCC.
24489         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
24490         _GL_CXXALIAS_SYS_CAST.
24491
24492 2010-04-04  Bruno Haible  <bruno@clisp.org>
24493
24494         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
24495         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
24496         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
24497         REPLACE_FREXPL to 1.
24498         * doc/posix-functions/frexpl.texi: Update documentation.
24499
24500 2010-04-04  Bruno Haible  <bruno@clisp.org>
24501
24502         math: Fix some C++ test errors on Solaris 8 and Cygwin.
24503         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
24504
24505 2010-04-04  Bruno Haible  <bruno@clisp.org>
24506
24507         Implement nanosleep for native Windows.
24508         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
24509
24510 2010-04-04  Bruno Haible  <bruno@clisp.org>
24511
24512         math: Fix some C++ test errors on Solaris 8.
24513         * lib/math.in.h (truncf, trunc): Use simpler idiom.
24514
24515 2010-04-04  Bruno Haible  <bruno@clisp.org>
24516
24517         math: Fix some C++ test errors on Cygwin.
24518         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
24519         truncl): Provide declaration if the system does not have it.
24520         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
24521         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
24522         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
24523         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
24524         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
24525         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
24526         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
24527         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
24528         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
24529         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
24530         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
24531         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
24532         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
24533         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
24534         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
24535         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
24536         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
24537         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
24538         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
24539         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
24540         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
24541         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
24542
24543 2010-04-04  Bruno Haible  <bruno@clisp.org>
24544
24545         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
24546         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
24547         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
24548         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
24549         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
24550         * m4/isinf.m4 (gl_ISINF): Likewise.
24551         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
24552
24553 2010-04-04  Bruno Haible  <bruno@clisp.org>
24554
24555         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
24556         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
24557
24558 2010-04-04  Bruno Haible  <bruno@clisp.org>
24559
24560         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
24561         * modules/tmpfile (configure.ac): Update.
24562
24563         tmpfile: Fix C++ test error on mingw.
24564         * lib/stdio.in.h (tmpfile): New declaration.
24565         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
24566         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
24567         * modules/tmpfile (Depends-on): Add stdio.
24568         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
24569         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
24570         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
24571         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
24572         REPLACE_TMPFILE.
24573         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
24574
24575 2010-04-04  Bruno Haible  <bruno@clisp.org>
24576
24577         ioctl: Fix C++ test error on mingw.
24578         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
24579         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
24580         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
24581
24582 2010-04-03  Bruno Haible  <bruno@clisp.org>
24583
24584         wcwidth: Fix C++ test error on mingw.
24585         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
24586         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
24587         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
24588
24589 2010-04-03  Bruno Haible  <bruno@clisp.org>
24590
24591         nanosleep: Fix C++ test error on mingw.
24592         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
24593         * lib/time.in.h (nanosleep): Use modern idiom.
24594         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
24595         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
24596         REPLACE_NANOSLEEP to 1.
24597         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
24598         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
24599
24600 2010-04-03  Bruno Haible  <bruno@clisp.org>
24601
24602         strptime: Fix C++ test error on mingw.
24603         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
24604         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
24605         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
24606         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
24607         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
24608         not REPLACE_STRPTIME.
24609         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
24610         REPLACE_STRPTIME.
24611
24612 2010-04-03  Bruno Haible  <bruno@clisp.org>
24613
24614         timegm: Fix C++ test error on mingw.
24615         * lib/time.in.h (timegm): Use modern idiom.
24616         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
24617         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
24618         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
24619         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
24620
24621 2010-04-03  Bruno Haible  <bruno@clisp.org>
24622
24623         timegm: Assume declaration if function exists.
24624         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
24625         if it exists. Don't clobber ac_cv_func_timegm.
24626
24627 2010-04-03  Bruno Haible  <bruno@clisp.org>
24628
24629         time_r: Fix C++ test error on mingw.
24630         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
24631         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
24632         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
24633         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
24634         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
24635
24636 2010-04-03  Bruno Haible  <bruno@clisp.org>
24637
24638         time_r: Minor updates.
24639         * modules/time_r (Description): Mention the provided functions.
24640         * lib/time_r.c: Don't include <string.h>.
24641         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
24642         * doc/posix-functions/localtime_r.texi: Likewise.
24643
24644 2010-04-03  Bruno Haible  <bruno@clisp.org>
24645
24646         time: Fix regression introduced on 2010-03-08.
24647         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
24648         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
24649
24650 2010-04-03  Jim Meyering  <meyering@redhat.com>
24651
24652         maint.mk: don't silently disable project-specific syntax-check rules
24653         * top/maint.mk (_prohibit_regexp): Define, to help people realize
24654         that they need to convert their project-specific syntax-check rules
24655         to use the new _sc_search_regexp.
24656
24657 2010-04-03  Bruno Haible  <bruno@clisp.org>
24658
24659         fchdir: Fix regression introduced on 2010-03-08.
24660         * lib/unistd.in.h (fchdir): Fix declaration.
24661         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
24662         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
24663         REPLACE_FCHDIR.
24664         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
24665         REPLACE_FCHDIR.
24666
24667 2010-04-03  Bruno Haible  <bruno@clisp.org>
24668
24669         getpagesize: Fix C++ test error on mingw.
24670         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
24671         system does not declare the function.
24672         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
24673         declared.
24674         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
24675         HAVE_DECL_GETPAGESIZE.
24676         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
24677
24678 2010-04-03  Bruno Haible  <bruno@clisp.org>
24679
24680         stdio: Make C++ tests work on mingw.
24681         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
24682         does not declare the function.
24683
24684 2010-04-03  Bruno Haible  <bruno@clisp.org>
24685
24686         ftello: Fix C++ test error on mingw.
24687         * lib/stdio.in.h (ftello): Use modern idiom.
24688         * lib/ftello.c (ftello): Renamed from rpl_ftello.
24689         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
24690         is missing and that it needs to be replaced.
24691         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
24692         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
24693         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
24694
24695 2010-04-03  Bruno Haible  <bruno@clisp.org>
24696
24697         fseeko: Fix C++ test error on mingw.
24698         * lib/stdio.in.h (fseeko): Use modern idiom.
24699         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
24700         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
24701         is missing and that it needs to be replaced.
24702         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
24703         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
24704         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
24705
24706 2010-04-03  Bruno Haible  <bruno@clisp.org>
24707
24708         mkstemp: Fix C++ test error on mingw.
24709         * lib/stdlib.in.h (mkstemp): Use modern idiom.
24710         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
24711         function is missing and that it needs to be replaced.
24712         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
24713         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
24714
24715 2010-04-03  Bruno Haible  <bruno@clisp.org>
24716
24717         stpncpy: Fix C++ test error on mingw.
24718         * lib/string.in.h (stpncpy): Use modern idiom.
24719         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
24720         function is missing and that it needs to be replaced.
24721         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
24722         REPLACE_STPNCPY.
24723         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
24724
24725 2010-04-03  Bruno Haible  <bruno@clisp.org>
24726
24727         sys_stat: Fix C++ test error on mingw.
24728         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
24729         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
24730
24731 2010-04-03  Bruno Haible  <bruno@clisp.org>
24732
24733         pty: Update doc.
24734         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
24735
24736 2010-04-03  Bruno Haible  <bruno@clisp.org>
24737
24738         unistd: Fix C++ test error on mingw.
24739         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
24740
24741 2010-04-03  Bruno Haible  <bruno@clisp.org>
24742
24743         Update doc regarding mingw.
24744         * doc/glibc-functions/openpty.texi: Update regarding mingw.
24745         * doc/glibc-functions/login_tty.texi: Likewise.
24746         * doc/glibc-functions/forkpty.texi: Likewise.
24747
24748 2010-04-03  Bruno Haible  <bruno@clisp.org>
24749
24750         stdlib: Avoid compilation failure of c-strtold on mingw.
24751         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
24752
24753 2010-04-03  Bruno Haible  <bruno@clisp.org>
24754
24755         locale: Make C++ tests work on Cygwin and mingw.
24756         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
24757         cannot provide the function.
24758         Reported by Simon Josefsson.
24759
24760 2010-04-03  Bruno Haible  <bruno@clisp.org>
24761
24762         localename: Port to MacOS X 10.6.
24763         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
24764         memory layout of the locales in MacOS X 10.6 as well.
24765         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
24766
24767 2010-04-02  Bruno Haible  <bruno@clisp.org>
24768
24769         gnulib-tool: Ensure that long-running tests are executed last.
24770         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
24771         running tests after the one for the other tests.
24772
24773 2010-04-02  Bruno Haible  <bruno@clisp.org>
24774
24775         gnulib-tool: Ensure the tests in the main directory are executed first.
24776         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
24777         start with the current directory.
24778
24779 2010-04-02  Bruno Haible  <bruno@clisp.org>
24780
24781         Tests for module 'havelib', moved here from GNU gettext.
24782         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
24783         modifications.
24784         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
24785         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
24786         with modifications.
24787         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
24788         modifications.
24789         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
24790         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
24791         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
24792         with modifications.
24793         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
24794         with modifications.
24795         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
24796         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
24797         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
24798         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
24799         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
24800         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
24801         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
24802         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
24803         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
24804         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
24805         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
24806         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
24807         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
24808         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
24809         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
24810         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
24811         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
24812         with modifications.
24813         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
24814         with modifications.
24815         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
24816         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
24817         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
24818         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
24819         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
24820         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
24821         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
24822         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
24823         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
24824         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
24825         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
24826         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
24827         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
24828         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
24829         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
24830         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
24831         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
24832         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
24833         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
24834         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
24835         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
24836         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
24837         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
24838         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
24839         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
24840         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
24841         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
24842         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
24843         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
24844         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
24845         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
24846         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
24847         * tests/havelib/rpathx/rpathx.c: New file, from
24848         gettext/autoconf-lib-link.
24849         * tests/havelib/rpathx/Makefile.am: New file, from
24850         gettext/autoconf-lib-link.
24851         * tests/havelib/rpathx/configure.ac: New file, from
24852         gettext/autoconf-lib-link with modifications.
24853         * tests/havelib/rpathy/rpathy.c: New file, from
24854         gettext/autoconf-lib-link.
24855         * tests/havelib/rpathy/Makefile.am: New file, from
24856         gettext/autoconf-lib-link.
24857         * tests/havelib/rpathy/configure.ac: New file, from
24858         gettext/autoconf-lib-link with modifications.
24859         * tests/havelib/rpathz/rpathz.c: New file, from
24860         gettext/autoconf-lib-link.
24861         * tests/havelib/rpathz/Makefile.am: New file, from
24862         gettext/autoconf-lib-link.
24863         * tests/havelib/rpathz/configure.ac: New file, from
24864         gettext/autoconf-lib-link with modifications.
24865         * tests/havelib/rpathlx/usex.c: New file, from
24866         gettext/autoconf-lib-link.
24867         * tests/havelib/rpathlx/Makefile.am: New file, from
24868         gettext/autoconf-lib-link.
24869         * tests/havelib/rpathlx/configure.ac: New file, from
24870         gettext/autoconf-lib-link with modifications.
24871         * tests/havelib/rpathly/usey.c: New file, from
24872         gettext/autoconf-lib-link.
24873         * tests/havelib/rpathly/Makefile.am: New file, from
24874         gettext/autoconf-lib-link.
24875         * tests/havelib/rpathly/configure.ac: New file, from
24876         gettext/autoconf-lib-link with modifications.
24877         * tests/havelib/rpathlz/usez.c: New file, from
24878         gettext/autoconf-lib-link.
24879         * tests/havelib/rpathlz/Makefile.am: New file, from
24880         gettext/autoconf-lib-link.
24881         * tests/havelib/rpathlz/configure.ac: New file, from
24882         gettext/autoconf-lib-link with modifications.
24883         * tests/havelib/rpathlyx/usey.c: New file, from
24884         gettext/autoconf-lib-link.
24885         * tests/havelib/rpathlyx/Makefile.am: New file, from
24886         gettext/autoconf-lib-link.
24887         * tests/havelib/rpathlyx/configure.ac: New file, from
24888         gettext/autoconf-lib-link with modifications.
24889         * tests/havelib/rpathlzyx/usez.c: New file, from
24890         gettext/autoconf-lib-link.
24891         * tests/havelib/rpathlzyx/Makefile.am: New file, from
24892         gettext/autoconf-lib-link.
24893         * tests/havelib/rpathlzyx/configure.ac: New file, from
24894         gettext/autoconf-lib-link with modifications.
24895         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
24896         with modifications.
24897
24898 2010-04-02  Bruno Haible  <bruno@clisp.org>
24899
24900         gnulib-tool: Create distributed built sources also for the tests.
24901         * gnulib-tool (func_create_testdir): Also generate distributed built
24902         sources in the tests directory.
24903
24904 2010-04-02  Bruno Haible  <bruno@clisp.org>
24905
24906         gnulib-tool: Obey user's environment variables.
24907         * gnulib-tool (func_create_testdir): When creating built sources,
24908         respect the environment variables for autoconf, automake, etc. given by
24909         the user.
24910
24911 2010-04-02  Bruno Haible  <bruno@clisp.org>
24912
24913         gnulib-tool: Provide the value of --m4-base to modules.
24914         * gnulib-tool (func_import, func_create_testdir): Emit a definition
24915         of gl_m4_base.
24916
24917 2010-04-02  Eric Blake  <eblake@redhat.com>
24918
24919         maint.mk: fix some fallout
24920         * NEWS: Document the incompatible change, and its effect on cfg.mk.
24921         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
24922
24923 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
24924
24925         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
24926         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
24927         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
24928         (sc_cast_of_x_alloc_return_value): Likewise.
24929         (sc_cast_of_alloca_return_value): Likewise.
24930         (sc_space_tab): Likewise.
24931         (sc_prohibit_atoi_atof): Likewise.
24932         (sc_prohibit_magic_number_exit): Likewise.
24933         (sc_error_exit_success): Likewise.
24934         (sc_file_system): Likewise.
24935         (sc_prohibit_have_config_h): Likewise.
24936         (sc_require_config_h): Likewise.
24937         (sc_prohibit_HAVE_MBRTOWC): Likewise.
24938         (sc_obsolete_symbols): Likewise.
24939         (sc_changelog): Likewise.
24940         (sc_program_name): Likewise.
24941         (sc_the_the): Likewise.
24942         (sc_trailing_blank): Likewise.
24943         (sc_two_space_separator_in_usage): Likewise.
24944         (sc_useless_cpp_parens): Likewise.
24945         (sc_GPL_version): Likewise.
24946         (sc_GFDL_version): Likewise.
24947         (sc_texinfo_acronym): Likewise.
24948         (sc_prohibit_cvs_keyword): Likewise.
24949         (sc_prohibit_stat_st_blocks): Likewise.
24950         (sc_prohibit_S_IS_definition): Likewise.
24951         (sc_redundant_const): Likewise.
24952         (sc_makefile_TAB_only_indentation): Likewise.
24953         (sc_m4_quote_check): Likewise.
24954         (sc_makefile_path_separator_check): Likewise.
24955         (sc_copyright_check): Likewise.
24956         (sc_Wundef_boolean): Likewise.
24957         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
24958
24959         maint.mk: match 0 or more whitespace-before-function-call '('
24960         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
24961         that have zero or two-and-more spaces between the function name
24962         and the open parenthesis.
24963         (sc_error_message_warn_fatal): Likewise.
24964         (sc_error_message_uppercase): Likewise.
24965         (sc_error_message_period): Likewise.
24966
24967 2010-03-31  Eric Blake  <eblake@redhat.com>
24968
24969         maint.mk: check for [ as well as test
24970         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
24971         Based on a libvirt report by Matthias Bolte.
24972
24973         gnumakefile: don't squelch _version output
24974         * top/GNUmakefile (_version): Create one-shot dependency rather
24975         than using $(shell) when version must be regenerated.
24976         (_autoreconf): Run verbosely, by default.
24977
24978         sys_time: avoid compiler warnings
24979         * lib/sys_time.in.h (includes): Ensure gcc pragma is
24980         unconditional, fixing regression from 2010-03-29.
24981         Reported by Simon Josefsson.
24982
24983 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
24984
24985         maint.mk: s/_header_without_use/_sc_header_without_use/
24986         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
24987         (sc_prohibit_assert_without_use): Use the new name.
24988         (sc_prohibit_close_stream_without_use): Likewise.
24989         (sc_prohibit_getopt_without_use): Likewise.
24990         (sc_prohibit_quotearg_without_use): Likewise.
24991         (sc_prohibit_quote_without_use): Likewise.
24992         (sc_prohibit_long_options_without_use): Likewise.
24993         (sc_prohibit_inttostr_without_use): Likewise.
24994         (sc_prohibit_ignore_value_without_use): Likewise.
24995         (sc_prohibit_error_without_use): Likewise.
24996         (sc_prohibit_xalloc_without_use): Likewise.
24997         (sc_prohibit_hash_without_use): Likewise.
24998         (sc_prohibit_hash_pjw_without_use): Likewise.
24999         (sc_prohibit_safe_read_without_use): Likewise.
25000         (sc_prohibit_argmatch_without_use): Likewise.
25001         (sc_prohibit_canonicalize_without_use): Likewise.
25002         (sc_prohibit_root_dev_ino_without_use): Likewise.
25003         (sc_prohibit_openat_without_use): Likewise.
25004         (sc_prohibit_c_ctype_without_use): Likewise.
25005         (sc_prohibit_signal_without_use): Likewise.
25006         (sc_prohibit_intprops_without_use): Likewise.
25007
25008 2010-03-30  Eric Blake  <eblake@redhat.com>
25009
25010         maint: improve module indicators
25011         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
25012         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
25013         columns, and avoid extra macro expansion.
25014
25015         fdopendir: work around FreeBSD bug
25016         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
25017         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
25018         * modules/dirent (Makefile.am): Substitute it.
25019         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
25020         declaration.
25021         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
25022         fix.
25023         Reported by Christian Weisgerber <naddy@mips.inka.de>.
25024
25025 2010-03-29  Bruno Haible  <bruno@clisp.org>
25026
25027         Emit #pragma system_header after the inclusion guard, not before.
25028         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
25029         guard that spans the entire file, not before. This enables an
25030         optimization in GCC's preprocessor.
25031         * lib/ctype.in.h: Likewise.
25032         * lib/dirent.in.h: Likewise.
25033         * lib/errno.in.h: Likewise.
25034         * lib/float.in.h: Likewise.
25035         * lib/getopt.in.h: Likewise.
25036         * lib/iconv.in.h: Likewise.
25037         * lib/langinfo.in.h: Likewise.
25038         * lib/locale.in.h: Likewise.
25039         * lib/math.in.h: Likewise.
25040         * lib/netdb.in.h: Likewise.
25041         * lib/netinet_in.in.h: Likewise.
25042         * lib/pty.in.h: Likewise.
25043         * lib/sched.in.h: Likewise.
25044         * lib/se-selinux.in.h: Likewise.
25045         * lib/search.in.h: Likewise.
25046         * lib/spawn.in.h: Likewise.
25047         * lib/stdarg.in.h: Likewise.
25048         * lib/stdint.in.h: Likewise.
25049         * lib/string.in.h: Likewise.
25050         * lib/strings.in.h: Likewise.
25051         * lib/sys_file.in.h: Likewise.
25052         * lib/sys_ioctl.in.h: Likewise.
25053         * lib/sys_time.in.h: Likewise.
25054         * lib/sys_times.in.h: Likewise.
25055         * lib/sys_utsname.in.h: Likewise.
25056         * lib/sys_wait.in.h: Likewise.
25057         * lib/sysexits.in.h: Likewise.
25058         * lib/wctype.in.h: Likewise.
25059
25060 2010-03-28  James Youngman  <jay@gnu.org>
25061
25062         save-cwd: don't leak a file descriptor when the caller execs.
25063         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
25064         saved file descriptor.
25065         * modules/save-cwd (Depends-on): Depend on cloexec.
25066
25067 2010-03-29  Bruno Haible  <bruno@clisp.org>
25068
25069         Remove vestiges of fts-lgpl module.
25070         * lib/fts_.h: Assume GNULIB_FTS is 1.
25071         * lib/fts.c: Likewise.
25072         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
25073
25074 2010-03-28  Bruno Haible  <bruno@clisp.org>
25075
25076         Fix definition of tests witness macro.
25077         * gnulib-tool (func_import): Fix definition of witness macro.
25078
25079 2010-03-28  Bruno Haible  <bruno@clisp.org>
25080
25081         Fix ioctl's protoype on glibc systems.
25082         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
25083         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
25084         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
25085         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
25086         signature. If not, arrange to replace the ioctl function.
25087         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
25088         REPLACE_IOCTL.
25089         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
25090         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
25091         Reported by Ludovic Courtès <ludo@gnu.org>.
25092
25093 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
25094
25095         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
25096         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
25097         made it so grep -r --include=GLOB* ... did not work.
25098
25099 2010-03-26  Jim Meyering  <meyering@redhat.com>
25100             Eric Blake  <eblake@redhat.com>
25101
25102         maint.mk: prohibit use of test's -o and -a operators
25103         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
25104
25105 2010-03-28  Bruno Haible  <bruno@clisp.org>
25106
25107         Remove unused GNULIB_XYZ macro definitions.
25108         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
25109         invocation.
25110
25111 2010-03-28  Bruno Haible  <bruno@clisp.org>
25112
25113         Mark privileged tests modules.
25114         * modules/idpriv-drop-tests (Status): New section.
25115         * modules/idpriv-droptemp-tests (Status): New section.
25116
25117 2010-03-28  Bruno Haible  <bruno@clisp.org>
25118
25119         Split C++ tests into separate tests modules.
25120         * modules/dirent-c++-tests: New file, extracted from
25121         modules/dirent-tests.
25122         * modules/dirent-tests: Depend on it.
25123         * modules/fcntl-h-c++-tests: New file, extracted from
25124         modules/fcntl-h-tests.
25125         * modules/fcntl-h-tests: Depend on it.
25126         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
25127         * modules/glob-tests: Depend on it.
25128         * modules/iconv-h-c++-tests: New file, extracted from
25129         modules/iconv-h-tests.
25130         * modules/iconv-h-tests: Depend on it.
25131         * modules/langinfo-c++-tests: New file, extracted from
25132         modules/langinfo-tests.
25133         * modules/langinfo-tests: Depend on it.
25134         * modules/locale-c++-tests: New file, extracted from
25135         modules/locale-tests.
25136         * modules/locale-tests: Depend on it.
25137         * modules/math-c++-tests: New file, extracted from modules/math-tests.
25138         * modules/math-tests: Depend on it.
25139         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
25140         * modules/pty-tests: Depend on it.
25141         * modules/search-c++-tests: New file, extracted from
25142         modules/search-tests.
25143         * modules/search-tests: Depend on it.
25144         * modules/signal-c++-tests: New file, extracted from
25145         modules/signal-tests.
25146         * modules/signal-tests: Depend on it.
25147         * modules/spawn-c++-tests: New file, extracted from
25148         modules/spawn-tests.
25149         * modules/spawn-tests: Depend on it.
25150         * modules/stdio-c++-tests: New file, extracted from
25151         modules/stdio-tests.
25152         * modules/stdio-tests: Depend on it.
25153         * modules/stdlib-c++-tests: New file, extracted from
25154         modules/stdlib-tests.
25155         * modules/stdlib-tests: Depend on it.
25156         * modules/string-c++-tests: New file, extracted from
25157         modules/string-tests.
25158         * modules/string-tests: Depend on it.
25159         * modules/sys_ioctl-c++-tests: New file, extracted from
25160         modules/sys_ioctl-tests.
25161         * modules/sys_ioctl-tests: Depend on it.
25162         * modules/sys_select-c++-tests: New file, extracted from
25163         modules/sys_select-tests.
25164         * modules/sys_select-tests: Depend on it.
25165         * modules/sys_socket-c++-tests: New file, extracted from
25166         modules/sys_socket-tests.
25167         * modules/sys_socket-tests: Depend on it.
25168         * modules/sys_stat-c++-tests: New file, extracted from
25169         modules/sys_stat-tests.
25170         * modules/sys_stat-tests: Depend on it.
25171         * modules/sys_time-c++-tests: New file, extracted from
25172         modules/sys_time-tests.
25173         * modules/sys_time-tests: Depend on it.
25174         * modules/time-c++-tests: New file, extracted from modules/time-tests.
25175         * modules/time-tests: Depend on it.
25176         * modules/unistd-c++-tests: New file, extracted from
25177         modules/unistd-tests.
25178         * modules/unistd-tests: Depend on it.
25179         * modules/wchar-c++-tests: New file, extracted from
25180         modules/wchar-tests.
25181         * modules/wchar-tests: Depend on it.
25182         * modules/wctype-c++-tests: New file, extracted from
25183         modules/wctype-tests.
25184         * modules/wctype-tests: Depend on it.
25185         Reported by Simon Josefsson.
25186
25187 2010-03-28  Bruno Haible  <bruno@clisp.org>
25188
25189         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
25190         * gnulib-tool (func_exists_module): New function, extracted from
25191         func_verify_module.
25192         (func_verify_module): Use it.
25193         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
25194         'foo' only if 'foo' exists.
25195         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
25196         module.
25197
25198 2010-03-28  Bruno Haible  <bruno@clisp.org>
25199
25200         gnulib-tool: Add support for special categories of tests.
25201         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
25202         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
25203         (func_usage): Document them.
25204         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
25205         inc_unportable_tests, inc_all_tests): New variables.
25206         (func_acceptable): Consider these variables.
25207         (func_modules_transitive_closure): Make it work when the 'Status' field
25208         consists of multiple words.
25209         (func_import): Store and restore the values of inc_cxx_tests,
25210         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
25211         inc_all_tests in gnulib-comp.m4.
25212         (func_create_testdir): Set inc_all_tests to true.
25213         * doc/gnulib.texi (Extra tests modules): New section.
25214         Suggested by Jim Meyering.
25215
25216 2010-03-28  Bruno Haible  <bruno@clisp.org>
25217
25218         ansi-c++-opt: Allow turning off the C++ build by default.
25219         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
25220         gl_CXX_CHOICE_DEFAULT_NO is defined.
25221         Requested by Eric Blake.
25222
25223 2010-03-28  Bruno Haible  <bruno@clisp.org>
25224
25225         unistd: Avoid #define replacements in C++ mode.
25226         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
25227         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
25228         setsockopt, shutdown, select): In C++, attach a warning to the function
25229         if possible, rather than #defining the symbol to a dysfunctional alias.
25230         Reported by John W. Eaton <jwe@gnu.org>.
25231
25232 2010-03-28  Bruno Haible  <bruno@clisp.org>
25233
25234         Fix link errors on mingw.
25235         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
25236         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
25237         $(LIBSOCKET).
25238         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
25239         $(LIBSOCKET).
25240
25241 2010-03-28  Bruno Haible  <bruno@clisp.org>
25242             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25243
25244         lib-ignore: Determine different options for different compilers.
25245         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
25246         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
25247         Add comments.
25248         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
25249         * NEWS: Mention the change.
25250
25251 2010-03-27  Bruno Haible  <bruno@clisp.org>
25252
25253         Remove unused GNULIB_XYZ macro definitions.
25254         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
25255         * modules/fseek (configure.ac): Likewise.
25256         * modules/ioctl (configure.ac): Likewise.
25257         * modules/open (configure.ac): Likewise.
25258         * modules/stdlib-safer (configure.ac): Likewise.
25259
25260 2010-03-27  Bruno Haible  <bruno@clisp.org>
25261
25262         Add a remark about certain modules.
25263         * modules/malloc (Comment): New section.
25264         * modules/realloc (Comment): Likewise.
25265         * modules/sigpipe (Comment): Likewise.
25266
25267 2010-03-27  Bruno Haible  <bruno@clisp.org>
25268
25269         Resolve conflict between the two kinds of module indicators.
25270         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
25271         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
25272         * modules/canonicalize (configure.ac): Invoke
25273         gl_MODULE_INDICATOR_FOR_TESTS.
25274         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
25275         GNULIB_XYZ.
25276         * tests/test-dirent-c++.cc: Likewise.
25277         * tests/test-dirent-safer.c: Likewise.
25278         * tests/test-dup2.c: Likewise.
25279         * tests/test-fchdir.c: Likewise.
25280         * tests/test-fcntl-h-c++.cc: Likewise.
25281         * tests/test-getopt.c: Likewise.
25282         * tests/test-getopt.h: Likewise.
25283         * tests/test-langinfo-c++.cc: Likewise.
25284         * tests/test-locale-c++.cc: Likewise.
25285         * tests/test-math-c++.cc: Likewise.
25286         * tests/test-pty-c++.cc: Likewise.
25287         * tests/test-search-c++.cc: Likewise.
25288         * tests/test-signal-c++.cc: Likewise.
25289         * tests/test-spawn-c++.cc: Likewise.
25290         * tests/test-stdio-c++.cc: Likewise.
25291         * tests/test-stdlib-c++.cc: Likewise.
25292         * tests/test-string-c++.cc: Likewise.
25293         * tests/test-sys_ioctl-c++.cc: Likewise.
25294         * tests/test-sys_select-c++.cc: Likewise.
25295         * tests/test-sys_socket-c++.cc: Likewise.
25296         * tests/test-sys_stat-c++.cc: Likewise.
25297         * tests/test-sys_time-c++.cc: Likewise.
25298         * tests/test-time-c++.cc: Likewise.
25299         * tests/test-unistd-c++.cc: Likewise.
25300         * tests/test-wchar-c++.cc: Likewise.
25301         * tests/uninorm/test-u8-nfc.c: Likewise.
25302         * tests/uninorm/test-u8-nfd.c: Likewise.
25303         * tests/uninorm/test-u8-nfkc.c: Likewise.
25304         * tests/uninorm/test-u8-nfkd.c: Likewise.
25305         * tests/uninorm/test-u16-nfc.c: Likewise.
25306         * tests/uninorm/test-u16-nfd.c: Likewise.
25307         * tests/uninorm/test-u16-nfkc.c: Likewise.
25308         * tests/uninorm/test-u16-nfkd.c: Likewise.
25309         * tests/uninorm/test-u32-nfc.c: Likewise.
25310         * tests/uninorm/test-u32-nfc-big.c: Likewise.
25311         * tests/uninorm/test-u32-nfd.c: Likewise.
25312         * tests/uninorm/test-u32-nfd-big.c: Likewise.
25313         * tests/uninorm/test-u32-nfkc.c: Likewise.
25314         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
25315         * tests/uninorm/test-u32-nfkd.c: Likewise.
25316         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
25317         * tests/uninorm/test-u32-normalize-big.c: Likewise.
25318
25319 2010-03-27  Bruno Haible  <bruno@clisp.org>
25320
25321         Distinguish two kinds of module indicators.
25322         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
25323         gl_MODULE_INDICATOR.
25324         (gl_MODULE_INDICATOR): New macro.
25325         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
25326         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
25327         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
25328         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
25329         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
25330         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
25331         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
25332         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
25333         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
25334         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
25335         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
25336         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
25337         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
25338         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
25339         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
25340         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
25341         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
25342         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
25343         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
25344         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
25345         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
25346         * modules/cloexec (configure.ac): Likewise.
25347         * modules/getopt-gnu (configure.ac): Likewise.
25348         * modules/uninorm/u8-normalize (configure.ac): Likewise.
25349         * modules/uninorm/u16-normalize (configure.ac): Likewise.
25350         * modules/uninorm/u32-normalize (configure.ac): Likewise.
25351         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
25352
25353 2010-03-27  Bruno Haible  <bruno@clisp.org>
25354
25355         New module description field 'Comment'.
25356         * gnulib-tool: New option --extract-comment.
25357         (func_usage): Document it.
25358         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
25359         (func_get_comment): New function.
25360         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
25361
25362 2010-03-27  Bruno Haible  <bruno@clisp.org>
25363
25364         Addendum to 2010-02-07 commit.
25365         * gnulib-tool (func_usage): Document --extract-applicability option.
25366
25367 2010-03-27  Bruno Haible  <bruno@clisp.org>
25368
25369         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
25370         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
25371         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
25372         rather than link errors.
25373
25374 2010-03-27  Bruno Haible  <bruno@clisp.org>
25375
25376         Avoid side effects from tests-related modules on the compilation of lib.
25377         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
25378         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
25379         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
25380         parameter. Emit into AM_CPPFLAGS a definition of the designated C
25381         macro.
25382         (func_import): Define a witness macro. Assign it a value that depends
25383         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
25384         tests-related modules.
25385         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
25386         Reported by Jim Meyering.
25387
25388 2010-03-27  Bruno Haible  <bruno@clisp.org>
25389
25390         Factorize common .m4 code.
25391         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
25392         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
25393         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
25394         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
25395         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
25396         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
25397         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
25398         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
25399         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
25400         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
25401         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
25402         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
25403         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
25404         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
25405         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
25406         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
25407         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
25408         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
25409         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
25410         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
25411         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
25412         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
25413         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
25414         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
25415         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
25416         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
25417         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
25418         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
25419         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
25420         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
25421         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
25422         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
25423
25424 2010-03-27  Bruno Haible  <bruno@clisp.org>
25425
25426         Fix a compilation error on Cygwin with g++ >= 4.3.
25427         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
25428         if it is undefined or if we alias it to chmod.
25429         (lstat): Don't warn about the use of this function if it is undefined
25430         or if we alias it to stat.
25431         Reported by Simon Josefsson.
25432
25433 2010-03-27  Bruno Haible  <bruno@clisp.org>
25434
25435         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
25436         * modules/getlogin (configure.ac): Update.
25437
25438         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
25439         * modules/getlogin_r (configure.ac): Update.
25440
25441         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
25442         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
25443         * modules/inet_ntop (configure.ac): Update.
25444
25445         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
25446         * modules/inet_pton (configure.ac): Update.
25447
25448         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
25449         * modules/mbslen (configure.ac): Update.
25450
25451         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
25452         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
25453         * modules/forkpty (configure.ac): Update.
25454         * modules/openpty (configure.ac): Update.
25455
25456 2010-03-26  Simon Josefsson  <simon@josefsson.org>
25457
25458         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
25459         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
25460
25461 2010-03-25  Eric Blake  <eblake@redhat.com>
25462
25463         maint: use pragma consistently across replacement headers
25464         * lib/ctype.in.h (system_header): Hoist for consistent placement.
25465         * lib/dirent.in.h (system_header): Likewise.
25466         * lib/errno.in.h (system_header): Likewise.
25467         * lib/float.in.h (system_header): Likewise.
25468         * lib/getopt.in.h (system_header): Likewise.
25469         * lib/iconv.in.h (system_header): Likewise.
25470         * lib/inttypes.in.h (system_header): Likewise.
25471         * lib/langinfo.in.h (system_header): Likewise.
25472         * lib/locale.in.h (system_header): Likewise.
25473         * lib/math.in.h (system_header): Likewise.
25474         * lib/netdb.in.h (system_header): Likewise.
25475         * lib/netinet_in.in.h (system_header): Likewise.
25476         * lib/pty.in.h (system_header): Likewise.
25477         * lib/sched.in.h (system_header): Likewise.
25478         * lib/se-selinux.in.h (system_header): Likewise.
25479         * lib/search.in.h (system_header): Likewise.
25480         * lib/spawn.in.h (system_header): Likewise.
25481         * lib/stdarg.in.h (system_header): Likewise.
25482         * lib/stdint.in.h (system_header): Likewise.
25483         * lib/string.in.h (system_header): Likewise.
25484         * lib/strings.in.h (system_header): Likewise.
25485         * lib/sys_file.in.h (system_header): Likewise.
25486         * lib/sys_ioctl.in.h (system_header): Likewise.
25487         * lib/sys_socket.in.h (system_header): Likewise.
25488         * lib/sys_times.in.h (system_header): Likewise.
25489         * lib/sys_utsname.in.h (system_header): Likewise.
25490         * lib/sys_wait.in.h (system_header): Likewise.
25491         * lib/sysexits.in.h (system_header): Likewise.
25492         * lib/unistd.in.h (system_header): Likewise.
25493         * lib/wctype.in.h (system_header): Likewise.
25494
25495         arpa/inet: fix mingw compilation warning
25496         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
25497         Reported by Matthew Bolte.
25498
25499 2010-03-25  Bruno Haible  <bruno@clisp.org>
25500
25501         Avoid collision between gnulib wrapper and libintl wrapper.
25502         * lib/printf.c (printf): Don't define if a printf wrapper is already
25503         defined in intl/printf.c.
25504         Reported by Michel Boaventura <michel@michelboaventura.com>.
25505
25506 2010-03-25  Bruno Haible  <bruno@clisp.org>
25507
25508         Use ANSI C.
25509         * lib/readutmp.h (getutent): Provide ANSI C prototype.
25510
25511 2010-03-25  Bruno Haible  <bruno@clisp.org>
25512
25513         Minor formatting changes.
25514         * lib/acosl.c: Insert space before function argument list.
25515         * lib/argz.c: Likewise.
25516         * lib/asinl.c: Likewise.
25517         * lib/expl.c: Likewise.
25518         * lib/gen-uni-tables.c: Likewise.
25519         * lib/gettext.h: Likewise.
25520         * lib/glthread/lock.h: Likewise.
25521         * lib/tanl.c: Likewise.
25522         * lib/uniname/uniname.c: Likewise.
25523         * tests/test-idpriv-drop.c: Likewise.
25524         * tests/test-idpriv-droptemp.c: Likewise.
25525         * tests/test-lock.c: Likewise.
25526         * tests/test-tls.c: Likewise.
25527         * lib/argp-help.c: Insert space before function-like macro argument
25528         list.
25529         * lib/memcmp.c: Likewise.
25530         * tests/test-base64.c: Likewise.
25531         * lib/localename.c: Insert space before sizeof's argument list.
25532         * lib/safe-alloc.h: Likewise.
25533         * lib/file-set.h: Insert space before macro argument list.
25534         * tests/test-argp.c: Likewise.
25535         * lib/argp-namefrob.h: Insert space before function parameter list.
25536         * lib/getaddrinfo.c: Likewise.
25537         * lib/netdb.in.h: Likewise.
25538         * lib/parse-duration.h: Likewise.
25539         * lib/parse-duration.c: Likewise.
25540         * lib/poll.c: Likewise.
25541         * lib/select.c: Likewise.
25542         * lib/trim.h: Likewise.
25543         * tests/test-usleep.c: Likewise.
25544         * lib/ldexpl.c: Insert space before function parameter list and before
25545         function argument list.
25546         * lib/logl.c: Likewise.
25547         * lib/sqrtl.c: Likewise.
25548         * lib/trim.c: Likewise.
25549         * lib/cosl.c: Use GNU style indentation. Insert space before function
25550         argument list.
25551         * lib/sinl.c: Likewise.
25552         * lib/tsearch.c: Insert space after 'for'.
25553         Reported by Jim Meyering.
25554
25555 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
25556
25557         * maint.mk (sc_Wundef_boolean): Check for the presence of the
25558         config header before grepping, as it's not present before
25559         autoreconf/configure are run.  Reported by Simon Josefsson.
25560
25561 2010-03-23  Bruno Haible  <bruno@clisp.org>
25562
25563         pt_chown: Make it work with automake < 1.11.
25564         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
25565         Reported by Simon Josefsson.
25566
25567 2010-03-23  Bruno Haible  <bruno@clisp.org>
25568
25569         pt_chown: Don't depend on GPLed modules.
25570         * lib/pt_chown.c: Don't include idpriv.h.
25571         (main): Don't drop privileges.
25572         * modules/pt_chown (Depends-on): Remove idpriv-drop.
25573         Reported by Simon Josefsson.
25574
25575 2010-03-24  Simon Josefsson  <simon@josefsson.org>
25576
25577         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
25578         suggestions from karl@freefriends.org (Karl Berry).
25579
25580 2010-03-22  Eric Blake  <eblake@redhat.com>
25581
25582         gethostname: further tweaks
25583         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
25584         are overriding gethostname.
25585         Suggested by Bruno Haible.
25586
25587 2010-03-21  Bruno Haible  <bruno@clisp.org>
25588
25589         Fix comments.
25590         * lib/forkpty.c (rpl_forkpty): Fix comment.
25591         * lib/openpty.c (rpl_openpty): Likewise.
25592         Reported by Eric Blake.
25593
25594 2010-03-22  Eric Blake  <eblake@redhat.com>
25595
25596         gethostname: fix build on mingw
25597         * lib/unistd.in.h (includes): Work around fact that mingw
25598         <winsock2.h> re-includes <unistd.h>, by avoiding any
25599         redeclarations if we are being included by <winsock2.h>.
25600         Reported by Matthias Bolte.
25601
25602 2010-03-21  Bruno Haible  <bruno@clisp.org>
25603
25604         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
25605         * lib/forkpty.c (forkpty): New replacement function, from glibc with
25606         modifications.
25607         * lib/pty.in.h (forkpty): Update declaration. Add comments.
25608         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
25609         provide the replacement.
25610         * modules/forkpty (Depends-on): Add openpty, login_tty.
25611         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
25612         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
25613         * doc/glibc-functions/forkpty.texi: More supported platforms.
25614         * config/srclist.txt: Add forkpty.c (commented).
25615
25616 2010-03-21  Bruno Haible  <bruno@clisp.org>
25617
25618         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
25619         (Makefile.am): Verify that PTY_LIB is defined.
25620
25621         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
25622
25623 2010-03-21  Bruno Haible  <bruno@clisp.org>
25624
25625         Tests for module 'login_tty'.
25626         * modules/login_tty-tests: New file.
25627         * tests/test-login_tty.c: New file.
25628
25629         New module 'login_tty'.
25630         * lib/login_tty.c: New file.
25631         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
25632         * modules/login_tty: New file.
25633         * doc/glibc-functions/login_tty.texi: Mention the new module.
25634
25635 2010-03-21  Bruno Haible  <bruno@clisp.org>
25636
25637         login_tty: Documentation.
25638         * doc/glibc-functions/login_tty.texi: New file.
25639         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
25640
25641 2010-03-21  Bruno Haible  <bruno@clisp.org>
25642
25643         pty: Consistent macro naming.
25644         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
25645         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
25646         * modules/pty (configure.ac): Update.
25647
25648 2010-03-21  Bruno Haible  <bruno@clisp.org>
25649
25650         Tests for openpty: Make stricter.
25651         * tests/test-openpty.c (main): Add test of canonical processing and
25652         erase.
25653         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
25654
25655         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
25656         * lib/openpty.c (openpty): New replacement function.
25657         * lib/pty.in.h: Include <termios.h>.
25658         (openpty): Update declaration. Add comments.
25659         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
25660         is not declared, arrange to provide the replacement. Check for _getpty
25661         and posix_openpt.
25662         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
25663         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
25664         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
25665         * modules/pty-tests (test_pty_c___LDADD): New variable.
25666         * doc/glibc-functions/openpty.texi: More supported platforms.
25667
25668 2010-03-21  Bruno Haible  <bruno@clisp.org>
25669
25670         setenv: Tweaks.
25671         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
25672         the test program.
25673         * doc/posix-functions/setenv.texi: Update platforms list.
25674
25675 2010-03-21  Bruno Haible  <bruno@clisp.org>
25676
25677         New module 'unlockpt'.
25678         * lib/unlockpt.c: New file, from glibc with modifications.
25679         * m4/unlockpt.m4: New file.
25680         * modules/unlockpt: New file.
25681         * lib/stdlib.in.h (unlockpt): New declaration.
25682         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
25683         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
25684         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
25685         HAVE_UNLOCKPT.
25686         * doc/posix-functions/unlockpt.texi: Mention the new module.
25687         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
25688         * config/srclist.txt: Add unlockpt.c (commented).
25689
25690 2010-03-21  Jim Meyering  <meyering@redhat.com>
25691
25692         maint.mk: prohibit inclusion of "intprops.h" without use
25693         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
25694
25695 2010-03-21  Bruno Haible  <bruno@clisp.org>
25696
25697         New module 'grantpt'.
25698         * lib/grantpt.c: New file, from glibc with modifications.
25699         * m4/grantpt.m4: New file.
25700         * modules/grantpt: New file.
25701         * lib/stdlib.in.h (grantpt): New declaration.
25702         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
25703         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
25704         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
25705         HAVE_GRANTPT.
25706         * doc/posix-functions/grantpt.texi: Mention the new module.
25707         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
25708         * config/srclist.txt: Add grantpt.c (commented).
25709
25710 2010-03-21  Bruno Haible  <bruno@clisp.org>
25711
25712         New module 'pt_chown'.
25713         * lib/pt_chown.c: New file, from glibc with modifications.
25714         * lib/pty-private.h: New file, from glibc with modifications.
25715         * modules/pt_chown: New file.
25716         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
25717
25718 2010-03-21  Bruno Haible  <bruno@clisp.org>
25719
25720         Tests for module 'ptsname'.
25721         * modules/ptsname-tests: New file.
25722         * tests/test-ptsname.c: New file.
25723
25724         New module 'ptsname'.
25725         * lib/ptsname.c: New file, from glibc with modifications.
25726         * m4/ptsname.m4: New file.
25727         * modules/ptsname: New file.
25728         * lib/stdlib.in.h (ptsname): New declaration.
25729         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
25730         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
25731         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
25732         HAVE_PTSNAME.
25733         * doc/posix-functions/ptsname.texi: Mention the new module.
25734         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
25735         * config/srclist.txt: Add ptsname.c (commented).
25736
25737 2010-03-21  Bruno Haible  <bruno@clisp.org>
25738
25739         Tests for module 'ttyname_r'.
25740         * modules/ttyname_r-tests: New file.
25741         * tests/test-ttyname_r.c: New file.
25742
25743         New module 'ttyname_r'.
25744         * lib/ttyname_r.c: New file.
25745         * m4/ttyname_r.m4: New file.
25746         * modules/ttyname_r: New file.
25747         * lib/unistd.in.h (ttyname_r): New declaration.
25748         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
25749         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
25750         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
25751         HAVE_TTYNAME_R.
25752         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
25753         * doc/posix-functions/ttyname_r.texi: Mention the new module.
25754
25755 2010-03-20  Bruno Haible  <bruno@clisp.org>
25756
25757         signal: Undefine macro definitions in C++ mode.
25758         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
25759         sigfillset): Undefine macro definitions from the system header in C++
25760         mode.
25761         Reported by John W. Eaton <jwe@gnu.org>.
25762
25763 2010-03-20  Bruno Haible  <bruno@clisp.org>
25764
25765         Ensure no #include statements inside extern "C" { ... }.
25766         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
25767         contain #include statements.
25768         * lib/time.in.h: Likewise.
25769
25770 2010-03-20  Bruno Haible  <bruno@clisp.org>
25771
25772         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
25773         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
25774         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
25775         Reported by John W. Eaton <jwe@gnu.org>.
25776
25777 2010-03-20  Bruno Haible  <bruno@clisp.org>
25778
25779         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
25780         Reported by Jim Meyering.
25781
25782 2010-03-20  Bruno Haible  <bruno@clisp.org>
25783
25784         pipe: Set errno upon failure.
25785         * lib/pipe.h: Specify that when -1 is returned, errno is set.
25786         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
25787         errno value in error message.
25788
25789 2010-03-20  Bruno Haible  <bruno@clisp.org>
25790             Jim Meyering  <meyering@redhat.com>
25791
25792         lchown: Avoid "unused variable" warning.
25793         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
25794
25795 2010-03-20  Bruno Haible  <bruno@clisp.org>
25796
25797         Work around unlink() bug on MacOS X 10.5.6.
25798         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
25799         attempting to unlink a parent directory.
25800         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
25801         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
25802         activate for the replacement function.
25803         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
25804
25805 2010-03-20  Bruno Haible  <bruno@clisp.org>
25806
25807         Fix link errors on Solaris 8.
25808         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
25809         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
25810
25811 2010-03-19  Jim Meyering  <meyering@redhat.com>
25812
25813         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
25814         The _LIBC implementation of build_range_exp correctly honors the
25815         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
25816         However, the non-_LIBC implementation would ignore that syntax-bit
25817         flag and return REG_ERANGE unconditionally.
25818         This change makes it honor that flag.
25819         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
25820         Make two pointer parameters "const".
25821         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
25822         (parse_bracket_exp): Update caller.
25823
25824         regex.m4: correct the reversed range endpoint ([b-a]) test
25825         * m4/regex.m4: When requiring that [b-a] evoke failure,
25826         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
25827         test pass once again for x86-based systems.
25828
25829 2010-03-19  Bruno Haible  <bruno@clisp.org>
25830
25831         scandir: Fix link error on Solaris 8.
25832         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
25833         macros.
25834
25835 2010-03-19  Bruno Haible  <bruno@clisp.org>
25836
25837         getusershell: Fix documentation.
25838         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
25839         module.
25840         * doc/glibc-functions/setusershell.texi: Likewise.
25841
25842         getusershell: Provide declaration, missing on Solaris 9.
25843         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
25844         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
25845         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
25846         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
25847         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
25848         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
25849         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
25850         HAVE_GETUSERSHELL.
25851         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
25852
25853 2010-03-19  Bruno Haible  <bruno@clisp.org>
25854
25855         wctype: Provide iswblank function.
25856         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
25857         exists and is fine.
25858         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
25859         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
25860         * tests/test-wctype.c (main): Re-enable the iswblank tests.
25861         * doc/posix-functions/iswblank.texi: Update.
25862
25863 2010-03-19  Bruno Haible  <bruno@clisp.org>
25864
25865         Tests of module 'pty' in C++ mode.
25866         * modules/pty-tests: New file.
25867         * tests/test-pty-c++.cc: New file.
25868         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
25869
25870 2010-03-19  Eric Blake  <eblake@redhat.com>
25871
25872         logb: fix documentation
25873         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
25874         1.5 declaration bug.
25875
25876         forkpty, openpty: prefer glibc's const-safe prototype
25877         * lib/forkpty.c (rpl_forkpty): New file.
25878         * lib/openpty.c (rpl_openpty): Likewise.
25879         * modules/forkpty (Files): Distribute it.
25880         * modules/openpty (Files): Likewise.
25881         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
25882         check...
25883         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
25884         replacement for for non-const BSD signature.
25885         * modules/pty (Makefile.am): Substitute witnesses.
25886         * lib/pty.in.h (forkpty, openpty): Declare replacements.
25887         * tests/test-forkpty.c: Update signature check.
25888         * tests/test-openpty.c: Likewise.
25889         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
25890         * doc/glibc-functions/openpty.texi (openpty): Likewise.
25891
25892         forkpty, openpty: split functions into new modules
25893         * modules/pty (Makefile.am): Substitute new witnesses.
25894         (Libraries): Move library detection...
25895         * modules/forkpty: ...into new module.
25896         * modules/openpty: Another new module.
25897         * modules/pty-tests: Rename and split...
25898         * modules/forkpty-tests: ...to this...
25899         * modules/openpty-tests: ...and this.
25900         * tests/test-pty.c: Rename and split...
25901         * tests/test-forkpty.c: ...to this...
25902         * tests/test-openpty.c: ...and this.
25903         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
25904         (gl_PTY): Split library searching...
25905         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
25906         (gl_FORKPTY, gl_OPENPTY): New macros.
25907         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
25908         * NEWS: Mention the split.
25909         * MODULES.html.sh (Misc): Document the modules.
25910         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
25911         * doc/glibc-functions/openpty.texi (openpty): Likewise.
25912
25913         pty: improve replacement header
25914         * lib/pty.in.h: New file.
25915         * modules/pty (Files): Ship it.
25916         (Makefile.am): Always build replacement.
25917         * m4/pty.m4: Rename...
25918         * m4/pty_h.m4: ...to this.
25919         (gl_PTY): Modernize setting of witness macros; update check of
25920         forkpty to take proper advantage of cache.
25921         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
25922
25923         getopt: avoid compiler warning
25924         * lib/getopt.c (attribute_hidden): Remove unused macro.
25925
25926 2010-03-18  Bruno Haible  <bruno@clisp.org>
25927
25928         Fix link errors on Solaris 8.
25929         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
25930         * modules/search-tests (test_search_c___LDADD): Likewise.
25931         * modules/signal-tests (test_signal_c___LDADD): Likewise.
25932         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
25933         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
25934         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
25935         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
25936         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
25937         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
25938
25939 2010-03-18  Bruno Haible  <bruno@clisp.org>
25940
25941         Fix bug introduced on 2010-03-14.
25942         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
25943         (gl_SPAWN_H): Require it.
25944         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
25945         Reported by Simon Josefsson.
25946
25947 2010-03-18  Bruno Haible  <bruno@clisp.org>
25948
25949         Fix typo introduced on 2009-12-31.
25950         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
25951         posix_spawn_file_actions_adddup2.
25952
25953 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
25954         and Eric Blake  <eblake@redhat.com>
25955
25956         test-vc-list-files-git: make more robust
25957         * tests/test-vc-list-files-git.sh: Unset problematic environment
25958         variables.  Chain commands together.
25959
25960 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
25961
25962         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
25963         `AC_CHECK_DECL' invocation.
25964
25965 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
25966
25967         * lib/inttostr.c (inttostr): Make sure the invocation of verify
25968         appears before executable statements. Suggested by Petr Sumbera
25969         <Petr.Sumbera@Sun.COM>.
25970
25971 2010-03-14  Bruno Haible  <bruno@clisp.org>
25972
25973         * tests/test-flock.c (test_exclusive): Comment out a test that causes
25974         portability problems. Instead use a simpler test.
25975         (main): Check that invalid arguments are rejected only on Linux.
25976
25977 2010-03-14  Bruno Haible  <bruno@clisp.org>
25978
25979         Fix bug introduced on 2009-12-31.
25980         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
25981         gl_PREREQ_SYS_H_WINSOCK2 always.
25982         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
25983         SYS_SOCKET_H variable.
25984         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
25985         Update comments.
25986         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
25987         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
25988         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
25989         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
25990         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
25991
25992 2010-03-14  Bruno Haible  <bruno@clisp.org>
25993
25994         Fix values returned by sinl, cosl.
25995         * lib/trigl.h: Add specification comments.
25996         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
25997         that combines the values from the precomputed table with the values of
25998         the Chebyshev polynomials.
25999
26000 2010-03-14  Bruno Haible  <bruno@clisp.org>
26001
26002         Fix compilation error when modules 'posix_spawn[p]' are not used.
26003         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
26004         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
26005
26006 2010-03-14  Bruno Haible  <bruno@clisp.org>
26007
26008         Fix compilation error on mingw when module 'time_r' is not used.
26009         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
26010         is 1.
26011         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
26012         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
26013         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
26014         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
26015
26016 2010-03-14  Bruno Haible  <bruno@clisp.org>
26017
26018         Fix compilation error with Sun C.
26019         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
26020         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
26021         instead of GCC specific ULONG_LONG_MAX.
26022         * lib/xstrtoll.c: Likewise.
26023         * lib/xstrtoull.c: Likewise.
26024
26025 2010-03-13  Bruno Haible  <bruno@clisp.org>
26026
26027         Allow the user to disable C++ code and tests.
26028         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
26029         (gl_PROG_ANSI_CXX): Require it.
26030
26031 2010-03-13  Bruno Haible  <bruno@clisp.org>
26032
26033         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
26034         cases.
26035
26036 2010-03-13  Bruno Haible  <bruno@clisp.org>
26037
26038         Test that gnulib does not break the standard C++ headers.
26039         * tests/test-locale-c++2.cc: New file.
26040         * modules/locale-tests (Files): Add it.
26041         (Makefile.am): Compile it for test-locale-c++.
26042         * tests/test-math-c++2.cc: New file.
26043         * modules/math-tests (Files): Add it.
26044         (Makefile.am): Compile it for test-math-c++.
26045         * tests/test-signal-c++2.cc: New file.
26046         * modules/signal-tests (Files): Add it.
26047         (Makefile.am): Compile it for test-signal-c++.
26048         * tests/test-stdio-c++2.cc: New file.
26049         * modules/stdio-tests (Files): Add it.
26050         (Makefile.am): Compile it for test-stdio-c++.
26051         * tests/test-stdlib-c++2.cc: New file.
26052         * modules/stdlib-tests (Files): Add it.
26053         (Makefile.am): Compile it for test-stdlib-c++.
26054         * tests/test-string-c++2.cc: New file.
26055         * modules/string-tests (Files): Add it.
26056         (Makefile.am): Compile it for test-string-c++.
26057         * tests/test-time-c++2.cc: New file.
26058         * modules/time-tests (Files): Add it.
26059         (Makefile.am): Compile it for test-time-c++.
26060         Reported by John W. Eaton <jwe@gnu.org>.
26061
26062 2010-03-13  Bruno Haible  <bruno@clisp.org>
26063
26064         * gnulib-tool (func_usage): Clarify which options are available for
26065         --create-testdir and --create-megatestdir.
26066
26067 2010-03-13  Bruno Haible  <bruno@clisp.org>
26068
26069         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
26070         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
26071         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
26072         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
26073         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
26074         when appropriate.
26075         Reported by Jim Meyering.
26076
26077 2010-03-12  Simon Josefsson  <simon@josefsson.org>
26078
26079         * gnulib-tool (func_import): Explain origin of code.
26080
26081 2010-03-12  Bruno Haible  <bruno@clisp.org>
26082
26083         Fix problem with automake's definition of CXXLINK.
26084         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
26085         Reported by Simon Josefsson and Ludovic Courtès.
26086
26087 2010-03-12  Bruno Haible  <bruno@clisp.org>
26088
26089         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
26090         stable releases.
26091
26092 2010-03-11  Bruno Haible  <bruno@clisp.org>
26093
26094         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
26095         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
26096         whether the system provides one variant or multiple variants of the
26097         function.
26098         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
26099         C++ compilers.
26100         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
26101         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
26102         Reported by Jim Meyering.
26103
26104 2010-03-09  Simon Josefsson  <simon@josefsson.org>
26105
26106         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
26107
26108 2010-03-08  Bruno Haible  <bruno@clisp.org>
26109
26110         gnulib-tool: Add support for --libtool in --create-testdir.
26111         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
26112         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
26113
26114 2010-03-08  Eric Blake  <eblake@redhat.com>
26115
26116         gnulib-tool.texi: mention possibility of git submodule
26117         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
26118         submodules.
26119         * doc/.gitignore: Ignore another generated file.
26120
26121 2010-03-08  Karl Berry  <karl@gnu.org>
26122
26123         * doc/gnulib-tool.texi (VCS Issues): Mention third option
26124         of committing gnulib files while skipping others.
26125
26126 2010-03-07  Bruno Haible  <bruno@clisp.org>
26127
26128         Tests of module 'wctype' in C++ mode.
26129         * tests/test-wctype-c++.cc: New file.
26130         * modules/wctype-tests (Files): Add it and tests/signature.h.
26131         (Depends-on): Add ansi-c++-opt.
26132         (Makefile.am): Arrange to compile and run test-wctype-c++.
26133
26134         Tests of module 'wchar' in C++ mode.
26135         * tests/test-wchar-c++.cc: New file.
26136         * modules/wchar-tests (Files): Add it and tests/signature.h.
26137         (Depends-on): Add ansi-c++-opt.
26138         (Makefile.am): Arrange to compile and run test-wchar-c++.
26139         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
26140         gl_MODULE_INDICATOR.
26141
26142         Tests of module 'unistd' in C++ mode.
26143         * tests/test-unistd-c++.cc: New file.
26144         * modules/unistd-tests (Files): Add it and tests/signature.h.
26145         (Depends-on): Add ansi-c++-opt.
26146         (Makefile.am): Arrange to compile and run test-unistd-c++.
26147         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
26148         gl_MODULE_INDICATOR.
26149
26150         Tests of module 'time' in C++ mode.
26151         * tests/test-time-c++.cc: New file.
26152         * modules/time-tests (Files): Add it and tests/signature.h.
26153         (Depends-on): Add ansi-c++-opt.
26154         (Makefile.am): Arrange to compile and run test-time-c++.
26155         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
26156
26157         Tests of module 'sys_time' in C++ mode.
26158         * tests/test-sys_time-c++.cc: New file.
26159         * modules/sys_time-tests (Files): Add it and tests/signature.h.
26160         (Depends-on): Add ansi-c++-opt.
26161         (Makefile.am): Arrange to compile and run test-sys_time-c++.
26162         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
26163         gl_MODULE_INDICATOR.
26164
26165         Tests of module 'sys_stat' in C++ mode.
26166         * tests/test-sys_stat-c++.cc: New file.
26167         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
26168         (Depends-on): Add ansi-c++-opt.
26169         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
26170         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
26171         gl_MODULE_INDICATOR.
26172
26173         Tests of module 'sys_socket' in C++ mode.
26174         * tests/test-sys_socket-c++.cc: New file.
26175         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
26176         (Depends-on): Add ansi-c++-opt.
26177         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
26178         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
26179         gl_MODULE_INDICATOR.
26180
26181         Tests of module 'sys_select' in C++ mode.
26182         * tests/test-sys_select-c++.cc: New file.
26183         * modules/sys_select-tests (Files): Add it and tests/signature.h.
26184         (Depends-on): Add ansi-c++-opt.
26185         (Makefile.am): Arrange to compile and run test-sys_select-c++.
26186         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
26187         gl_MODULE_INDICATOR.
26188
26189         Tests of module 'sys_ioctl' in C++ mode.
26190         * tests/test-sys_ioctl-c++.cc: New file.
26191         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
26192         (Depends-on): Add ansi-c++-opt.
26193         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
26194         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
26195         gl_MODULE_INDICATOR.
26196
26197         Tests of module 'string' in C++ mode.
26198         * tests/test-string-c++.cc: New file.
26199         * modules/string-tests (Files): Add it and tests/signature.h.
26200         (Depends-on): Add ansi-c++-opt.
26201         (Makefile.am): Arrange to compile and run test-string-c++.
26202         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
26203         gl_MODULE_INDICATOR.
26204
26205         Tests of module 'stdlib' in C++ mode.
26206         * tests/test-stdlib-c++.cc: New file.
26207         * modules/stdlib-tests (Files): Add it and tests/signature.h.
26208         (Depends-on): Add ansi-c++-opt.
26209         (Makefile.am): Arrange to compile and run test-stdlib-c++.
26210         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
26211         gl_MODULE_INDICATOR.
26212
26213         Tests of module 'stdio' in C++ mode.
26214         * tests/test-stdio-c++.cc: New file.
26215         * modules/stdio-tests (Files): Add it and tests/signature.h.
26216         (Depends-on): Add ansi-c++-opt.
26217         (Makefile.am): Arrange to compile and run test-stdio-c++.
26218         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
26219         gl_MODULE_INDICATOR.
26220
26221         Tests of module 'spawn' in C++ mode.
26222         * tests/test-spawn-c++.cc: New file.
26223         * modules/spawn-tests (Files): Add it and tests/signature.h.
26224         (Depends-on): Add ansi-c++-opt.
26225         (Makefile.am): Arrange to compile and run test-spawn-c++.
26226         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
26227         gl_MODULE_INDICATOR.
26228
26229         Tests of module 'signal' in C++ mode.
26230         * tests/test-signal-c++.cc: New file.
26231         * modules/signal-tests (Files): Add it and tests/signature.h.
26232         (Depends-on): Add ansi-c++-opt.
26233         (Makefile.am): Arrange to compile and run test-signal-c++.
26234         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
26235         gl_MODULE_INDICATOR.
26236
26237         Tests of module 'search' in C++ mode.
26238         * tests/test-search-c++.cc: New file.
26239         * modules/search-tests (Files): Add it and tests/signature.h.
26240         (Depends-on): Add ansi-c++-opt.
26241         (Makefile.am): Arrange to compile and run test-search-c++.
26242         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
26243         gl_MODULE_INDICATOR.
26244
26245         Tests of module 'math' in C++ mode.
26246         * tests/test-math-c++.cc: New file.
26247         * modules/math-tests (Files): Add it and tests/signature.h.
26248         (Depends-on): Add ansi-c++-opt.
26249         (Makefile.am): Arrange to compile and run test-math-c++.
26250         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
26251
26252         Tests of module 'locale' in C++ mode.
26253         * tests/test-locale-c++.cc: New file.
26254         * modules/locale-tests (Files): Add it and tests/signature.h.
26255         (Depends-on): Add ansi-c++-opt.
26256         (Makefile.am): Arrange to compile and run test-locale-c++.
26257         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
26258         gl_MODULE_INDICATOR.
26259
26260         Tests of module 'langinfo' in C++ mode.
26261         * tests/test-langinfo-c++.cc: New file.
26262         * modules/langinfo-tests (Files): Add it and tests/signature.h.
26263         (Depends-on): Add ansi-c++-opt.
26264         (Makefile.am): Arrange to compile and run test-langinfo-c++.
26265         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
26266         gl_MODULE_INDICATOR.
26267
26268         Tests of module 'iconv-h' in C++ mode.
26269         * tests/test-iconv-h-c++.cc: New file.
26270         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
26271         (Depends-on): Add ansi-c++-opt.
26272         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
26273
26274         Tests of module 'glob' in C++ mode.
26275         * tests/test-glob-c++.cc: New file.
26276         * modules/glob-tests (Files): Add it.
26277         (Depends-on): Add ansi-c++-opt.
26278         (Makefile.am): Arrange to compile and run test-glob-c++.
26279
26280         Tests of module 'fcntl-h' in C++ mode.
26281         * tests/test-fcntl-h-c++.cc: New file.
26282         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
26283         (Depends-on): Add ansi-c++-opt.
26284         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
26285         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
26286         gl_MODULE_INDICATOR.
26287
26288         Tests of module 'dirent' in C++ mode.
26289         * tests/test-dirent-c++.cc: New file.
26290         * modules/dirent-tests (Files): Add it and tests/signature.h.
26291         (Depends-on): Add ansi-c++-opt.
26292         (Makefile.am): Arrange to compile and run test-dirent-c++.
26293         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
26294         gl_MODULE_INDICATOR.
26295
26296         New module 'ansi-c++-opt'.
26297         * modules/ansi-c++-opt: New file.
26298         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
26299
26300         Document C++ namespace mode.
26301         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
26302
26303         wctype: Avoid #define replacements in C++ mode.
26304         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
26305         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
26306         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
26307         In C++, define a namespaced alias symbol.
26308         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
26309         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
26310         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
26311         rule.
26312
26313         wchar: Avoid #define replacements in C++ mode.
26314         * lib/wchar.in.h: Include c++defs.h.
26315         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
26316         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
26317         symbol.
26318         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
26319         * modules/wchar (Depends-on): Add c++defs.
26320         (Makefile.am): Update wchar.h rule.
26321
26322         unistd: Avoid #define replacements in C++ mode.
26323         * lib/unistd.in.h: Include c++defs.h.
26324         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
26325         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
26326         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
26327         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
26328         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
26329         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
26330         symbol.
26331         (environ): Update.
26332         * modules/unistd (Depends-on): Add c++defs.
26333         (Makefile.am): Update unistd.h rule.
26334
26335         time: Avoid #define replacements in C++ mode.
26336         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
26337         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
26338         define a namespaced alias symbol.
26339         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
26340         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
26341         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
26342         * modules/time (Depends-on): Add c++defs, warn-on-use.
26343         (Makefile.am): Update time.h rule.
26344         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
26345         * modules/nanosleep (configure.ac): Likewise.
26346         * modules/strptime (configure.ac): Likewise.
26347         * modules/timegm (configure.ac): Likewise.
26348
26349         sys_time: Avoid #define replacements in C++ mode.
26350         * lib/sys_time.in.h: Include c++defs.h.
26351         (gettimeofday): In C++, define a namespaced alias symbol.
26352         * modules/sys_time (Depends-on): Add c++defs.
26353         (Makefile.am): Update sys/time.h rule.
26354
26355         sys_stat: Avoid #define replacements in C++ mode.
26356         * lib/sys_stat.in.h: Include c++defs.h.
26357         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
26358         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
26359         namespaced alias symbol.
26360         In C++, define a namespaced alias symbol.
26361         * modules/sys_stat (Depends-on): Add c++defs.
26362         (Makefile.am): Update sys/stat.h rule.
26363
26364         sys_socket: Avoid #define replacements in C++ mode.
26365         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
26366         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
26367         definitions also when the system has a <sys/socket.h>.
26368         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
26369         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
26370         In C++, define a namespaced alias symbol.
26371         * modules/sys_socket (Depends-on): Add c++defs.
26372         (Makefile.am): Update sys/socket.h rule.
26373
26374         sys_select: Avoid #define replacements in C++ mode.
26375         * lib/sys_select.in.h: Include c++defs.h. Enable the function
26376         definitions also when the system has a <sys/select.h>.
26377         (select): In C++, define a namespaced alias symbol.
26378         * modules/sys_select (Depends-on): Add c++defs.
26379         (Makefile.am): Update sys/select.h rule.
26380
26381         sys_ioctl: Avoid #define replacements in C++ mode.
26382         * lib/sys_ioctl.in.h: Include c++defs.h.
26383         (ioctl): In C++, define a namespaced alias symbol.
26384         * modules/sys_ioctl (Depends-on): Add c++defs.
26385         (Makefile.am): Update sys/ioctl.h rule.
26386
26387         string: Avoid #define replacements in C++ mode.
26388         * lib/string.in.h: Include c++defs.h.
26389         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
26390         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
26391         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
26392         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
26393         strsignal, strverscmp): In C++, define a namespaced alias symbol.
26394         * modules/string (Depends-on): Add c++defs.
26395         (Makefile.am): Update string.h rule.
26396
26397         stdlib: Avoid #define replacements in C++ mode.
26398         * lib/stdlib.in.h: Include c++defs.h.
26399         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
26400         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
26401         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
26402         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
26403         symbol.
26404         * modules/stdlib (Depends-on): Add c++defs.
26405         (Makefile.am): Update stdlib.h rule.
26406
26407         stdio: Avoid #define replacements in C++ mode.
26408         * lib/stdio.in.h: Include c++defs.h.
26409         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
26410         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
26411         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
26412         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
26413         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
26414         namespaced alias symbol.
26415         * modules/stdio (Depends-on): Add c++defs.
26416         (Makefile.am): Update stdio.h rule.
26417
26418         spawn: Avoid #define replacements in C++ mode.
26419         * lib/spawn.in.h: Include c++defs.h.
26420         (posix_spawn, posix_spawnp, posix_spawnattr_init,
26421         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
26422         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
26423         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
26424         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
26425         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
26426         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
26427         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
26428         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
26429         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
26430         In C++, define a namespaced alias symbol.
26431         * modules/spawn (Depends-on): Add c++defs.
26432         (Makefile.am): Update spawn.h rule.
26433
26434         signal: Avoid #define replacements in C++ mode.
26435         * lib/signal.in.h: Include c++defs.h.
26436         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
26437         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
26438         namespaced alias symbol.
26439         * modules/signal (Depends-on): Add c++defs.
26440         (Makefile.am): Update signal.h rule.
26441
26442         search: Avoid #define replacements in C++ mode.
26443         * lib/search.in.h: Include c++defs.h.
26444         (_gl_search_compar_fn, _gl_search_action_fn): New types.
26445         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
26446         symbol.
26447         * modules/search (Depends-on): Add c++defs.
26448         (Makefile.am): Update search.h rule.
26449
26450         math: Avoid #define replacements in C++ mode.
26451         * lib/math.in.h: Include c++defs.h.
26452         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
26453         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
26454         trunc, truncl): In C++, define a namespaced alias symbol.
26455         * modules/math (Depends-on): Add c++defs.
26456         (Makefile.am): Update math.h rule.
26457
26458         locale: Avoid #define replacements in C++ mode.
26459         * lib/locale.in.h: Include c++defs.h.
26460         (duplocale): In C++, define a namespaced alias symbol.
26461         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
26462         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
26463         * modules/locale (Depends-on): Add c++defs.
26464         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
26465
26466         langinfo: Avoid #define replacements in C++ mode.
26467         * lib/langinfo.in.h: Include c++defs.h.
26468         (nl_langinfo): In C++, define a namespaced alias symbol.
26469         * modules/langinfo (Depends-on): Add c++defs.
26470         (Makefile.am): Update langinfo.h rule.
26471
26472         iconv-h: Avoid #define replacements in C++ mode.
26473         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
26474         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
26475         symbol.
26476         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
26477         whenever iconv is present.
26478         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
26479         (Makefile.am): Update iconv.h rule.
26480
26481         glob: Avoid #define replacements in C++ mode.
26482         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
26483         (_gl_glob_errfunc_fn): New type.
26484         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
26485         symbol.
26486         * modules/glob (Depends-on): Add c++defs, warn-on-use.
26487         (Makefile.am): Update glob.h rule.
26488
26489         fcntl-h: Avoid #define replacements in C++ mode.
26490         * lib/fcntl.in.h: Include c++defs.h.
26491         (fcntl, open, openat): In C++, define a namespaced alias symbol.
26492         * modules/fcntl-h (Depends-on): Add c++defs.
26493         (Makefile.am): Update fcntl.h rule.
26494
26495         dirent: Avoid #define replacements in C++ mode.
26496         * lib/dirent.in.h: Include c++defs.h.
26497         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
26498         namespaced alias symbol.
26499         (dirfd): Update declaration.
26500         * modules/dirent (Depends-on): Add c++defs.
26501         (Makefile.am): Update dirent.h rule.
26502
26503         ctype: Make it usable in C++ code.
26504         * lib/ctype.in.h: Include c++defs.h.
26505         (isblank): Declare as extern "C".
26506         * modules/ctype (Depends-on): Add c++defs.
26507         (Makefile.am): Update ctype.h rule.
26508
26509         New module 'c++defs'.
26510         * modules/c++defs: New file.
26511         * build-aux/c++defs.h: New file.
26512         Reported by John W. Eaton <jwe@gnu.org>.
26513
26514 2010-03-07  Bruno Haible  <bruno@clisp.org>
26515
26516         logb: Provide missing declaration for Cygwin.
26517         * lib/math.in.h (logb): New declaration.
26518         * m4/logb.m4: New file.
26519         * modules/logb (Files): Add m4/logb.m4.
26520         (Depends-on): Add math.
26521         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
26522         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
26523         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
26524         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
26525         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
26526
26527 2010-03-07  Bruno Haible  <bruno@clisp.org>
26528
26529         Fix test-cond link error.
26530         * tests/test-cond.c: Include <stdio.h>.
26531
26532 2010-03-07  Bruno Haible  <bruno@clisp.org>
26533
26534         Fix test-dirent-safer link error.
26535         * modules/dirent-safer-tests (Makefile.am): Define
26536         test_dirent_safer_LDADD.
26537
26538 2010-03-07  Bruno Haible  <bruno@clisp.org>
26539
26540         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
26541         among default module list.
26542
26543 2010-03-07  Bruno Haible  <bruno@clisp.org>
26544
26545         Fix link error on platforms with GNU libiconv.
26546         * modules/unistr/u8-strcoll-tests (Makefile): Define
26547         test_u8_strcoll_LDADD.
26548         * modules/unistr/u16-strcoll-tests (Makefile): Define
26549         test_u16_strcoll_LDADD.
26550         * modules/unistr/u32-strcoll-tests (Makefile): Define
26551         test_u32_strcoll_LDADD.
26552
26553 2010-03-07  Bruno Haible  <bruno@clisp.org>
26554
26555         Use POSIX declarations for socket functions.
26556         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
26557         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
26558         rpl_sendto): Change declaration to match POSIX.
26559         * lib/connect.c (rpl_connect): Likewise.
26560         * lib/accept.c (rpl_accept): Likewise.
26561         * lib/bind.c (rpl_bind): Likewise.
26562         * lib/getpeername.c (rpl_getpeername): Likewise.
26563         * lib/getsockname.c (rpl_getsockname): Likewise.
26564         * lib/recv.c (rpl_recv): Likewise.
26565         * lib/send.c (rpl_send): Likewise.
26566         * lib/recvfrom.c (rpl_recvfrom): Likewise.
26567         * lib/sendto.c (rpl_sendto): Likewise.
26568
26569 2010-03-06  Bruno Haible  <bruno@clisp.org>
26570
26571         Clarify access, euidaccess, faccessat.
26572         * doc/posix-functions/faccessat.texi: Mention security problem under
26573         "Other problems", not "Portability problems".
26574         * doc/posix-functions/access.texi: Likewise. Mention a related security
26575         problem.
26576         * doc/glibc-functions/euidaccess.texi: Mention security problems.
26577         * lib/euidaccess.c: Add comments about platforms.
26578         * lib/unistd.in.h (access, euidaccess): Add warnings.
26579
26580 2010-03-07  Bruno Haible  <bruno@clisp.org>
26581
26582         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
26583         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
26584         (POSIX_SPAWN_SETSCHEDULER): Likewise.
26585         (POSIX_SPAWN_USEVFORK): Define in a way that works when
26586         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
26587         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
26588         declare when POSIX_SPAWN_SETSCHEDULER is zero.
26589         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
26590         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
26591         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
26592         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
26593         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
26594         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
26595         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
26596         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
26597         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
26598         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
26599         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
26600         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
26601         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
26602         Likewise.
26603         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
26604         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
26605         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
26606         Likewise.
26607         * tests/test-spawn.c (main): Make it work when
26608         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
26609
26610 2010-03-07  Bruno Haible  <bruno@clisp.org>
26611
26612         Fix incorrect Makefile.am generation in German locale.
26613         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
26614         Execute sed command with character range in C locale.
26615
26616 2010-03-06  Bruno Haible  <bruno@clisp.org>
26617
26618         Tests for module 'iconv-h'.
26619         * modules/iconv-h-tests: New file.
26620         * tests/test-iconv-h.c: New file.
26621
26622         New module 'iconv-h'.
26623         * modules/iconv-h: New file.
26624         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
26625         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
26626         (configure.ac): Remove gl_ICONV_H.
26627         (Makefile.am): Remove rule for iconv.h.
26628
26629 2010-03-06  Bruno Haible  <bruno@clisp.org>
26630
26631         More consistent naming of *.m4 files.
26632         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
26633         * modules/wctype (Files): Update.
26634
26635         More consistent naming of *.m4 files.
26636         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
26637         * modules/wchar (Files): Update.
26638
26639 2010-03-06  Jim Meyering  <meyering@redhat.com>
26640
26641         euidaccess: relax license to LGPLv2+
26642         * modules/euidaccess (License): Relax to LGPLv2+.
26643
26644 2010-03-06  Bruno Haible  <bruno@clisp.org>
26645
26646         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
26647         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
26648         (Makefile.am): Augment lib_SOURCES instead.
26649
26650 2010-03-04  Jim Meyering  <meyering@redhat.com>
26651
26652         utime: remove obsolete module
26653         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
26654         unnecessary for years, and has been marked as obsolete for 10 months.
26655         * modules/utime: Remove file.
26656         * lib/utime.c: Remove file.
26657         * m4/utime.m4: Remove file.
26658         * m4/utimes-null.m4: Remove file.
26659         * doc/posix-functions/utime.texi (utime): Remove reference to
26660         the module.  Move the sole "fixed by gnulib" item into the
26661         "problems not fixed by Gnulib" list.
26662         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
26663
26664 2010-03-05  Simon Josefsson  <simon@josefsson.org>
26665
26666         * modules/exit (License): Relax license to LGPLv2+.
26667         (Status): Mark as obsolete.
26668         * NEWS: Mention deprecated 'exit' module.
26669         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
26670         of now obsolete 'exit'.
26671
26672 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26673
26674         fts-lgpl: remove unused module
26675         * modules/fts-lgpl: Remove.
26676         * MODULES.html.sh (func_all_modules): Adjust.
26677         * check-module (find_included_lib_files): Adjust.
26678         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
26679
26680 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
26681
26682         copy-acl: enhance Solaris ACL error handling
26683         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
26684         * lib/set-mode-acl.c (qset_acl): Likewise.
26685
26686 2010-03-02  Bruno Haible  <bruno@clisp.org>
26687
26688         spawn: Don't override the system defined values on FreeBSD 8.
26689         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
26690         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
26691         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
26692         if HAVE_POSIX_SPAWN is 1.
26693         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
26694
26695 2010-03-01  Bruno Haible  <bruno@clisp.org>
26696
26697         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
26698         regarding Automake.
26699
26700 2010-02-25  Bruno Haible  <bruno@clisp.org>
26701
26702         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
26703         * gnulib-tool: Define 'echo' as a function only before the ksh alias
26704         setting, not afterwards.
26705         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
26706
26707 2010-02-24  Eric Blake  <eblake@redhat.com>
26708
26709         bootstrap, git-version-gen: use timestamp
26710         * build-aux/git-version-gen (scriptversion): Force UTC.
26711         * build-aux/bootstrap (scriptversion): New variable.
26712
26713         bootstrap: allow older git
26714         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
26715         older than 1.6.4.  Requested by the libvirt project.
26716
26717 2010-02-23  Eric Blake  <eblake@redhat.com>
26718
26719         warn-on-use: work with old autoconf
26720         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
26721         AS_VAR semantics of autoconf 2.60.
26722         Reported by Bruno Haible.
26723
26724         bootstrap: improve some comments
26725         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
26726         clarification comments.
26727
26728         gettimeofday: provide correct function
26729         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
26730         when replacement is declared, otherwise provide gettimeofday.
26731         Reported by Michael Goffioul.
26732
26733 2010-02-23  Jim Meyering  <meyering@redhat.com>
26734
26735         lib-ignore: relax license to "unlimited", not LGPLv2+
26736         * modules/lib-ignore (License): Relax to "unlimited".
26737
26738 2010-02-23  Jim Meyering  <meyering@redhat.com>
26739
26740         lib-ignore: relax license to LGPLv2+
26741         * modules/lib-ignore (License): Relax to LGPLv2+.
26742
26743 2010-02-22  Eric Blake  <eblake@redhat.com>
26744
26745         lseek: avoid bash 3.2 broken pipe bug
26746         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
26747         warning from bash 3.2.
26748         Reported by Ben Pfaff, with analysis from Bruno Haible.
26749
26750         bootstrap: support non-FSF copyright holder
26751         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
26752         bootstrap.conf override of COPYRIGHT_HOLDER.
26753         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
26754
26755         bootstrap: interoperate with gettext 0.14.1
26756         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
26757
26758         bootstrap: allow for alternate submodule location
26759         * build-aux/bootstrap (gnulib_path): New variable; use instead of
26760         hardcoding submodule location.
26761         (gnulib_mk): Allow direct use of Makefile.am.
26762
26763         bootstrap: use GNULIB_SRCDIR to reduce disk usage
26764         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
26765         rather than reconfiguring where the submodule points.
26766
26767         gettimeofday: restore support for platforms that lack function
26768         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
26769         replacement if function is missing.
26770         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
26771         * modules/sys_time (Makefile.am): Substitute it.
26772         * lib/sys_time.in.h (gettimeofday): Check it.
26773         Reported by Michael Goffioul.
26774
26775 2010-02-21  Bruno Haible  <bruno@clisp.org>
26776
26777         * lib/stdio.in.h (obstack_printf): Fix typo.
26778
26779 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
26780
26781         vc-list-files: use bzr ls's -R option
26782         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
26783         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
26784
26785 2010-02-21  Jim Meyering  <meyering@redhat.com>
26786
26787         init.sh: fix EXEEXT shims to work also for names like test-prog
26788         * tests/init.sh: Re-exec a better shell, when needed.
26789         If the current shell lacks support for posix $(...), an init.sh-using
26790         test will now try to find a shell that supports that.  If EXEEXT is
26791         nonempty, we also require support for hyphen-in-alias-name and shell
26792         substitutions like ${var#glob}.  Failure to find such a shell results
26793         in a skipped test.
26794
26795 2010-02-21  Bruno Haible  <bruno@clisp.org>
26796
26797         Really work around around "broken pipe" error message from bash 3.2.
26798         * gnulib-tool (func_reset_sigpipe): Remove function.
26799         (echo): In bash 3.2, define to a function that uses printf.
26800         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
26801
26802 2010-02-20  Bruno Haible  <bruno@clisp.org>
26803
26804         Restore support for automake 1.9.6 with autoconf 2.61.
26805         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
26806         Reported by James Youngman <jay@gnu.org>.
26807
26808 2010-02-20  Bruno Haible  <bruno@clisp.org>
26809
26810         Improve *printf warning condition.
26811         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
26812         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
26813         and the function is overridden due to SIGPIPE emulation.
26814
26815 2010-02-20  Bruno Haible  <bruno@clisp.org>
26816
26817         * lib/stdio.in.h: Tweak comments.
26818
26819 2010-02-19  Bruno Haible  <bruno@clisp.org>
26820
26821         Make it easier to find modules. New gnulib-tool option '--find'.
26822         * gnulib-tool: New option --find.
26823         (func_usage): Document it.
26824         (func_sanitize_modulelist): New function, extracted from
26825         func_all_modules.
26826         (func_all_modules): Invoke it.
26827         * doc/gnulib-tool.texi (Which modules?): New node.
26828
26829 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
26830
26831         * lib/sys_select.in.h: Provide select replacement even if
26832         sys/select.h exists on a system, for Interix.
26833
26834 2010-02-18  Jim Meyering  <meyering@redhat.com>
26835
26836         init.sh: don't use $(...) just yet
26837         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
26838         to accommodate e.g., Solaris' /bin/sh.
26839
26840 2010-02-17  Bruno Haible  <bruno@clisp.org>
26841
26842         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
26843         Reported by Ludovic Courtès <ludo@gnu.org>.
26844
26845 2010-02-16  Simon Josefsson  <simon@josefsson.org>
26846
26847         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
26848         linking with -lintl.
26849
26850 2010-02-17  Simon Josefsson  <simon@josefsson.org>
26851
26852         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
26853         if not provided by the system's netdb.h.  Reported by
26854         ludo@gnu.org (Ludovic Courtès).
26855
26856 2010-02-15  Jim Meyering  <meyering@redhat.com>
26857
26858         init.sh: improve portability and efficiency
26859         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
26860         "dummy" in a for loop.
26861         Use '!', not '^' to select the complement of a character set used
26862         in a "case" statement.
26863         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
26864         Suggestions from Eric Blake.
26865
26866         init.sh: automatically accommodate programs with the .exe suffix
26867         Automatically arrange for an invocation of "prog" to execute the
26868         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
26869         may use the simpler "prog", yet still work when built on a system
26870         that requires specifying the added suffix.
26871         Do this by constructing a function named "prog" that invokes
26872         "prog.exe" for each .exe file in selected directories.
26873         * tests/init.sh (find_exe_basenames_): New function.
26874         (create_exe_shim_functions_): New function.
26875         (path_prepend_): Use it.
26876
26877         maint.mk: mark syntax-check sc_*.m rules as .PHONY
26878         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
26879         "make -t syntax-check" doesn't create a ton of sc_*.m files.
26880
26881 2010-02-14  Jim Meyering  <meyering@redhat.com>
26882
26883         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
26884         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
26885         (sc_prohibit_hash_pjw_without_use): New rule.
26886
26887         maint.mk: allow the default upload destination dir to be overridden
26888         * top/maint.mk (upload_dest_dir_): Define with a default that
26889         preserves the status quo.
26890         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
26891         Reported by Peter Simons.
26892
26893         maint.mk: prohibit inclusion of "hash.h" without_use
26894         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
26895
26896 2010-02-10  Jim Meyering  <meyering@redhat.com>
26897
26898         maint.mk: prohibit inclusion of "ignore-value.h" without_use
26899         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
26900
26901 2010-02-09  Eric Blake  <ebb9@byu.net>
26902         and Bruno Haible  <bruno@clisp.org>
26903
26904         obstack-printf-posix: ensure declaration
26905         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
26906         extracted from gl_FUNC_OBSTACK_PRINTF.
26907         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
26908         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
26909         Likewise.
26910         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
26911         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
26912         0.
26913
26914 2010-02-08  Bruno Haible  <bruno@clisp.org>
26915
26916         gnulib-tool: Fix typo in 2010-02-07 commit.
26917         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
26918         Reported by Eric Blake.
26919
26920 2010-02-07  Bruno Haible  <bruno@clisp.org>
26921
26922         gnulib-tool: Fix up caching patches.
26923         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
26924         option --no-cache. Use associative arrays when supported by the shell.
26925         (sed_comments): New variable.
26926         (modcache): Renamed from do_cache.
26927         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
26928         abbreviate unnecessarily.
26929         (have_associative): New variable.
26930         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
26931         way also for ksh and zsh.
26932         (func_init_sed_convert_to_cache_statements): New function, extracted
26933         from func_cache_lookup_module. Add support for associative arrays.
26934         Don't set the c_MODULE_cached variable here. Ignore all lines before
26935         the first field header. Remove only the final newline, not all trailing
26936         newlines. Support empty fields correctly. Limit the use of 'eval' to
26937         assignments.
26938         (func_get_description, func_get_status, func_get_notice,
26939         func_get_applicability, func_get_filelist, func_get_dependencies,
26940         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
26941         func_get_automake_snippet, func_get_include_directive,
26942         func_get_link_directive, func_get_license, func_get_maintainer):
26943         Update documentation. List the unoptimized code first. Add support for
26944         associative arrays. Limit the use of 'eval' to assignments.
26945         (func_get_applicability): Undo stylistic pessimisations.
26946         (func_get_automake_snippet, func_get_include_directive): Reduce code
26947         duplication.
26948         (func_modules_transitive_closure, func_modules_add_dummy,
26949         func_modules_notice, func_modules_to_filelist, func_add_file,
26950         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
26951         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
26952         func_create_testdir, func_create_megatestdir): Update documentation.
26953
26954 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26955
26956         * gnulib-tool (func_cache_lookup_module): Store the module name
26957         belonging to the cache variable; error out if two different
26958         module names map to the same cache variable name.
26959
26960 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26961
26962         gnulib-tool: Make caching optional.
26963         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
26964         Update matching short versions of --no-changelog.
26965         (func_usage): Update.
26966         (sed_extract_cache_prog): Renamed from ...
26967         (sed_extract_prog): ... this; revert to old extraction script.
26968         (func_get_description, func_get_status)
26969         (func_get_notice, func_get_applicability, func_get_filelist)
26970         (func_get_dependencies, func_get_autoconf_early_snippet)
26971         (func_get_autoconf_snippet, func_get_automake_snippet)
26972         (func_get_include_directive, func_get_link_directive)
26973         (func_get_license, func_get_maintainer): If $do_cache is false,
26974         use old, non-caching extraction scripts.
26975         Suggestion by Bruno Haible.
26976
26977 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26978
26979         gnulib-tool: cache module metainformation.
26980         * gnulib-tool (sed_extract_prog): Match newline before each
26981         header, and rewrite header to a shell variable suffix.
26982         (func_cache_var, func_cache_lookup_module): New functions,
26983         to turn a module name into a cache variable prefix, and to
26984         look up and cache module metainformation.
26985         (func_get_description, func_get_status)
26986         (func_get_notice, func_get_applicability, func_get_filelist)
26987         (func_get_dependencies, func_get_autoconf_early_snippet)
26988         (func_get_autoconf_snippet, func_get_automake_snippet)
26989         (func_get_include_directive, func_get_link_directive)
26990         (func_get_license, func_get_maintainer): Use
26991         func_cache_lookup_module.
26992
26993 2010-02-07  Bruno Haible  <bruno@clisp.org>
26994
26995         fnctl: Fix missing dependency.
26996         * modules/fcntl (Depends-on): Add getdtablesize.
26997         Reported by John W. Eaton <jwe@gnu.org>.
26998
26999 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
27000
27001         Argp: fix recognition of short alias options.
27002
27003         * lib/argp-parse.c (convert_options): Fix improper use of
27004         `|' between character values.
27005         * tests/test-argp.c (group1_option): New alias option
27006         --read (-r).
27007         (group1_parser): Special handling for 'r'.
27008         (test15): New test case.
27009         (test_fun): Add test15.
27010         * tests/test-argp-2.sh: Update expected --help and --usage
27011         outputs.
27012
27013 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
27014
27015         * tests/test-argp.c: Fix indentation.
27016
27017 2010-02-04  Eric Blake  <ebb9@byu.net>
27018
27019         gettimeofday: expose type of second argument
27020         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
27021         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
27022         * tests/test-gettimeofday.c: Use it to silence warning.
27023         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
27024         the issue.
27025
27026 2010-02-03  Jim Meyering  <meyering@redhat.com>
27027
27028         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
27029         * lib/regcomp.c (TYPE_SIGNED): Define.
27030         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
27031
27032         regcomp.c: avoid a new -Wshadow warning
27033         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
27034
27035 2010-02-01  Jim Meyering  <meyering@redhat.com>
27036
27037         removing useless parentheses in cpp #define directives
27038         For motivation, see commit c0221df4, "define STREQ(a,b)
27039         consistently, removing useless parentheses"
27040         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
27041         * lib/mountlist.c (MNT_IGNORE): Likewise.
27042         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
27043
27044 2010-02-01  Eric Blake  <ebb9@byu.net>
27045
27046         sys_time: use link-warning
27047         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
27048         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
27049         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
27050         * modules/sys_time (Depends-on): Add warn-on-use.
27051         (Makefile.am): Always build replacement.
27052         (configure.ac): Update substitutions.
27053         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
27054         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
27055         bother with SYS_TIME_H.
27056         * modules/gettimeofday (configure.ac): Declare indicator.
27057         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
27058         in use.
27059
27060         closein-tests: silence compiler warning
27061         * tests/test-closein.c (main): Ignore fread result.
27062         * modules/closein-tests (Depends-on): Add ignore-value.
27063
27064         tests: silence warning about system return
27065         * tests/test-areadlink-with-size.c (main): Ignore system result.
27066         * tests/test-areadlink.c (main): Likewise.
27067         * tests/test-areadlinkat-with-size.c (main): Likewise.
27068         * tests/test-areadlinkat.c (main): Likewise.
27069         * tests/test-canonicalize-lgpl.c (main): Likewise.
27070         * tests/test-canonicalize.c (main): Likewise.
27071         * tests/test-chown.c (main): Likewise.
27072         * tests/test-fchownat.c (main): Likewise.
27073         * tests/test-fdutimensat.c (main): Likewise.
27074         * tests/test-fstatat.c (main): Likewise.
27075         * tests/test-futimens.c (main): Likewise.
27076         * tests/test-lchown.c (main): Likewise.
27077         * tests/test-link.c (main): Likewise.
27078         * tests/test-linkat.c (main): Likewise.
27079         * tests/test-lstat.c (main): Likewise.
27080         * tests/test-mkdir.c (main): Likewise.
27081         * tests/test-mkdirat.c (main): Likewise.
27082         * tests/test-mkfifo.c (main): Likewise.
27083         * tests/test-mkfifoat.c (main): Likewise.
27084         * tests/test-mknod.c (main): Likewise.
27085         * tests/test-readlink.c (main): Likewise.
27086         * tests/test-remove.c (main): Likewise.
27087         * tests/test-rename.c (main): Likewise.
27088         * tests/test-renameat.c (main): Likewise.
27089         * tests/test-rmdir.c (main): Likewise.
27090         * tests/test-symlink.c (main): Likewise.
27091         * tests/test-symlinkat.c (main): Likewise.
27092         * tests/test-unlink.c (main): Likewise.
27093         * tests/test-unlinkat.c (main): Likewise.
27094         * tests/test-utimens.c (main): Likewise.
27095         * tests/test-utimensat.c (main): Likewise.
27096         * modules/areadlink-tests (Depends-on): Add ignore-value.
27097         * modules/areadlink-with-size-tests (Depends-on): Likewise.
27098         * modules/areadlinkat-tests (Depends-on): Likewise.
27099         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
27100         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
27101         * modules/canonicalize-tests (Depends-on): Likewise.
27102         * modules/chown-tests (Depends-on): Likewise.
27103         * modules/fdutimensat-tests (Depends-on): Likewise.
27104         * modules/futimens-tests (Depends-on): Likewise.
27105         * modules/lchown-tests (Depends-on): Likewise.
27106         * modules/link-tests (Depends-on): Likewise.
27107         * modules/linkat-tests (Depends-on): Likewise.
27108         * modules/lstat-tests (Depends-on): Likewise.
27109         * modules/mkdir-tests (Depends-on): Likewise.
27110         * modules/mkfifo-tests (Depends-on): Likewise.
27111         * modules/mkfifoat-tests (Depends-on): Likewise.
27112         * modules/mknod-tests (Depends-on): Likewise.
27113         * modules/openat-tests (Depends-on): Likewise.
27114         * modules/readlink-tests (Depends-on): Likewise.
27115         * modules/remove-tests (Depends-on): Likewise.
27116         * modules/rename-tests (Depends-on): Likewise.
27117         * modules/renameat-tests (Depends-on): Likewise.
27118         * modules/rmdir-tests (Depends-on): Likewise.
27119         * modules/symlink-tests (Depends-on): Likewise.
27120         * modules/symlinkat-tests (Depends-on): Likewise.
27121         * modules/unlink-tests (Depends-on): Likewise.
27122         * modules/utimens-tests (Depends-on): Likewise.
27123         * modules/utimensat-tests (Depends-on): Likewise.
27124
27125 2010-01-31  Bruno Haible  <bruno@clisp.org>
27126
27127         Perform the same test for many <math.h> functions.
27128         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
27129         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
27130         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
27131         of gl_MATHFUNC.
27132         * modules/acos (configure.ac): Likewise.
27133         * modules/asin (configure.ac): Likewise.
27134         * modules/atan (configure.ac): Likewise.
27135         * modules/atan2 (configure.ac): Likewise.
27136         * modules/cbrt (configure.ac): Likewise.
27137         * modules/copysign (configure.ac): Likewise.
27138         * modules/cos (configure.ac): Likewise.
27139         * modules/cosh (configure.ac): Likewise.
27140         * modules/erf (configure.ac): Likewise.
27141         * modules/erfc (configure.ac): Likewise.
27142         * modules/exp (configure.ac): Likewise.
27143         * modules/fmod (configure.ac): Likewise.
27144         * modules/hypot (configure.ac): Likewise.
27145         * modules/j0 (configure.ac): Likewise.
27146         * modules/j1 (configure.ac): Likewise.
27147         * modules/jn (configure.ac): Likewise.
27148         * modules/lgamma (configure.ac): Likewise.
27149         * modules/log (configure.ac): Likewise.
27150         * modules/log10 (configure.ac): Likewise.
27151         * modules/log1p (configure.ac): Likewise.
27152         * modules/pow (configure.ac): Likewise.
27153         * modules/remainder (configure.ac): Likewise.
27154         * modules/sin (configure.ac): Likewise.
27155         * modules/sinh (configure.ac): Likewise.
27156         * modules/tan (configure.ac): Likewise.
27157         * modules/tanh (configure.ac): Likewise.
27158         * modules/y0 (configure.ac): Likewise.
27159         * modules/y1 (configure.ac): Likewise.
27160         * modules/yn (configure.ac): Likewise.
27161         Suggested by Paolo Bonzini.
27162
27163 2010-01-31  Bruno Haible  <bruno@clisp.org>
27164
27165         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
27166
27167 2010-01-31  Bruno Haible  <bruno@clisp.org>
27168
27169         Work around getdelim() bug on FreeBSD 8.0.
27170         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
27171         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
27172         not work.
27173         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
27174         is 1.
27175         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
27176         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
27177         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
27178         a non-zero size.
27179         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
27180
27181 2010-01-31  Bruno Haible  <bruno@clisp.org>
27182
27183         Work around getline() bug on FreeBSD 8.0.
27184         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
27185         and a non-zero size.
27186         * tests/test-getline.c (main): Likewise.
27187         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
27188         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
27189
27190 2010-01-28  Eric Blake  <ebb9@byu.net>
27191
27192         regex: fix build failure
27193         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
27194         platforms.
27195
27196 2010-01-28  Jim Meyering  <meyering@redhat.com>
27197
27198         regex: do not ignore memory allocation failure
27199         * lib/regex_internal.c (create_cd_newstate): Detect
27200         re_node_set_init_copy failure.   Extracted from glibc commit
27201         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
27202
27203         regex: sync more white-space changes from libc
27204         * lib/regex_internal.c: White-space only changes.
27205         * lib/regexec.c: Likewise.
27206
27207         regex: add many uses of __attribute_warn_unused_result__
27208         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
27209         * lib/regexec.c: Likewise.
27210         Extracted from a messy glibc commit.
27211
27212         regcomp.c: spelling and merge-artifact from glibc
27213         * lib/regcomp.c: Merge remainder of glibc's
27214         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
27215
27216         regcomp.c: sync white-space changes from glibc
27217         * lib/regcomp.c: Merge to accommodate white space
27218         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
27219
27220         regcomp.c: do not ignore internal return values
27221         * lib/regcomp.c: Do not ignore internal return values.
27222         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
27223         but without its white-space changes and spelling fixes.
27224
27225         regex_internal.h: define __attribute_warn_unused_result__
27226         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
27227
27228         maint: add a syntax-check rule to check for vulnerable Makefile.in
27229         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
27230
27231 2010-01-27  Jim Meyering  <meyering@redhat.com>
27232
27233         ncftpput-ftp: clean up spaces
27234         * build-aux/ncftpput-ftp: Make Copyright line consistent.
27235         Remove trailing blanks.
27236
27237 2010-01-27  Simon Josefsson  <simon@josefsson.org>
27238
27239         * build-aux/git-version-gen: Fix copyright statement.
27240         * build-aux/gnupload: Likewise.
27241         * tests/test-arcfour.c: Likewise.
27242         * tests/test-arctwo.c: Likewise.
27243         * tests/test-count-one-bits.c: Likewise.
27244         * tests/test-crc.c: Likewise.
27245         * tests/test-des.c: Likewise.
27246         * tests/test-gc-arcfour.c: Likewise.
27247         * tests/test-gc-arctwo.c: Likewise.
27248         * tests/test-gc-des.c: Likewise.
27249         * tests/test-gc-hmac-md5.c: Likewise.
27250         * tests/test-gc-hmac-sha1.c: Likewise.
27251         * tests/test-gc-md2.c: Likewise.
27252         * tests/test-gc-md4.c: Likewise.
27253         * tests/test-gc-md5.c: Likewise.
27254         * tests/test-gc-pbkdf2-sha1.c: Likewise.
27255         * tests/test-gc-rijndael.c: Likewise.
27256         * tests/test-gc-sha1.c: Likewise.
27257         * tests/test-gc.c: Likewise.
27258         * tests/test-gethostname.c: Likewise.
27259         * tests/test-gettimeofday.c: Likewise.
27260         * tests/test-hash.c: Likewise.
27261         * tests/test-hmac-md5.c: Likewise.
27262         * tests/test-hmac-sha1.c: Likewise.
27263         * tests/test-md2.c: Likewise.
27264         * tests/test-md4.c: Likewise.
27265         * tests/test-md5.c: Likewise.
27266         * tests/test-memchr.c: Likewise.
27267         * tests/test-memchr2.c: Likewise.
27268         * tests/test-memcmp.c: Likewise.
27269         * tests/test-memmem.c: Likewise.
27270         * tests/test-memrchr.c: Likewise.
27271         * tests/test-rawmemchr.c: Likewise.
27272         * tests/test-read-file.c: Likewise.
27273         * tests/test-rijndael.c: Likewise.
27274         * tests/test-sockets.c: Likewise.
27275         * tests/test-strchrnul.c: Likewise.
27276         * tests/test-strstr.c: Likewise.
27277         * tests/test-strtod.c: Likewise.
27278         * build-aux/ncftpput-ftp: Likewise.
27279
27280 2010-01-26  Eric Blake  <ebb9@byu.net>
27281
27282         ignore-value: update recommended header name
27283         * modules/ignore-value (Include): Only use <> for headers that
27284         exist in glibc.
27285
27286 2010-01-26  Jim Meyering  <meyering@redhat.com>
27287
27288         test-userspec.c: avoid compiler warnings
27289         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
27290         and "initialization discards qualifiers..." warnings.
27291         Put the first "uid" in its own scope, and make char* members "const".
27292
27293 2010-01-25  Bruno Haible  <bruno@clisp.org>
27294
27295         gnulib-tool: Make warning diagnostics consistent.
27296         * gnulib-tool (func_warning): New function.
27297         Use it everywhere where gnulib-tool produces output to stderr and it is
27298         not a fatal error.
27299
27300 2010-01-25  Bruno Haible  <bruno@clisp.org>
27301
27302         Fix test dependencies.
27303         * modules/xstrtol-tests (Depends-on): Add inttypes.
27304         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
27305
27306 2010-01-25 Pádraig Brady <P@draigBrady.com>
27307
27308         syntax-check: detect incorrect boolean macro values in config.h
27309         * modules/maintainer-makefile (configure.ac): Parameterize the location
27310         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
27311         The logic is from Eric Blake and the location indicated by Jim Meyering.
27312         Note the more natural CONFIG_HEADER name is prohibited by automake
27313         for backwards compatibility reasons.
27314         * top/maint.mk (sc_Wundef_boolean): New rule.
27315
27316 2010-01-25  Jim Meyering  <meyering@redhat.com>
27317
27318         bootstrap: detect MacOS 10.6's shasum, too
27319         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
27320         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
27321
27322 2010-01-23  Jim Meyering  <meyering@redhat.com>
27323
27324         xstrtoll: new module
27325         * modules/xstrtoll: New file.
27326         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
27327         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
27328         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
27329         ./configure fails if you use this module and lack "long long".
27330         * modules/xstrtoll-tests: New module.
27331         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
27332         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
27333         new init.sh-based test framework.
27334
27335 2010-01-24  Bruno Haible  <bruno@clisp.org>
27336
27337         Tests for module 'yn'.
27338         * modules/yn-tests: New file.
27339         * tests/test-yn.c: New file.
27340
27341         Tests for module 'y1'.
27342         * modules/y1-tests: New file.
27343         * tests/test-y1.c: New file.
27344
27345         Tests for module 'y0'.
27346         * modules/y0-tests: New file.
27347         * tests/test-y0.c: New file.
27348
27349         Tests for module 'tanh'.
27350         * modules/tanh-tests: New file.
27351         * tests/test-tanh.c: New file.
27352
27353         Tests for module 'tan'.
27354         * modules/tan-tests: New file.
27355         * tests/test-tan.c: New file.
27356
27357         Tests for module 'sqrt'.
27358         * modules/sqrt-tests: New file.
27359         * tests/test-sqrt.c: New file.
27360
27361         Tests for module 'sinh'.
27362         * modules/sinh-tests: New file.
27363         * tests/test-sinh.c: New file.
27364
27365         Tests for module 'sin'.
27366         * modules/sin-tests: New file.
27367         * tests/test-sin.c: New file.
27368
27369         Tests for module 'rint'.
27370         * modules/rint-tests: New file.
27371         * tests/test-rint.c: New file.
27372
27373         Tests for module 'remainder'.
27374         * modules/remainder-tests: New file.
27375         * tests/test-remainder.c: New file.
27376
27377         Tests for module 'pow'.
27378         * modules/pow-tests: New file.
27379         * tests/test-pow.c: New file.
27380
27381         Tests for module 'nextafter'.
27382         * modules/nextafter-tests: New file.
27383         * tests/test-nextafter.c: New file.
27384
27385         Tests for module 'modf'.
27386         * modules/modf-tests: New file.
27387         * tests/test-modf.c: New file.
27388
27389         Tests for module 'logb'.
27390         * modules/logb-tests: New file.
27391         * tests/test-logb.c: New file.
27392
27393         Tests for module 'log1p'.
27394         * modules/log1p-tests: New file.
27395         * tests/test-log1p.c: New file.
27396
27397         Tests for module 'log10'.
27398         * modules/log10-tests: New file.
27399         * tests/test-log10.c: New file.
27400
27401         Tests for module 'log'.
27402         * modules/log-tests: New file.
27403         * tests/test-log.c: New file.
27404
27405         Tests for module 'lgamma'.
27406         * modules/lgamma-tests: New file.
27407         * tests/test-lgamma.c: New file.
27408
27409         Tests for module 'ldexp'.
27410         * modules/ldexp-tests: New file.
27411         * tests/test-ldexp.c: New file.
27412
27413         Tests for module 'jn'.
27414         * modules/jn-tests: New file.
27415         * tests/test-jn.c: New file.
27416
27417         Tests for module 'j1'.
27418         * modules/j1-tests: New file.
27419         * tests/test-j1.c: New file.
27420
27421         Tests for module 'j0'.
27422         * modules/j0-tests: New file.
27423         * tests/test-j0.c: New file.
27424
27425         Tests for module 'hypot'.
27426         * modules/hypot-tests: New file.
27427         * tests/test-hypot.c: New file.
27428
27429         Tests for module 'fmod'.
27430         * modules/fmod-tests: New file.
27431         * tests/test-fmod.c: New file.
27432
27433         Tests for module 'fabs'.
27434         * modules/fabs-tests: New file.
27435         * tests/test-fabs.c: New file.
27436
27437         Tests for module 'exp'.
27438         * modules/exp-tests: New file.
27439         * tests/test-exp.c: New file.
27440
27441         Tests for module 'erfc'.
27442         * modules/erfc-tests: New file.
27443         * tests/test-erfc.c: New file.
27444
27445         Tests for module 'erf'.
27446         * modules/erf-tests: New file.
27447         * tests/test-erf.c: New file.
27448
27449         Tests for module 'cosh'.
27450         * modules/cosh-tests: New file.
27451         * tests/test-cosh.c: New file.
27452
27453         Tests for module 'cos'.
27454         * modules/cos-tests: New file.
27455         * tests/test-cos.c: New file.
27456
27457         Tests for module 'copysign'.
27458         * modules/copysign-tests: New file.
27459         * tests/test-copysign.c: New file.
27460
27461         Tests for module 'cbrt'.
27462         * modules/cbrt-tests: New file.
27463         * tests/test-cbrt.c: New file.
27464
27465         Tests for module 'atan2'.
27466         * modules/atan2-tests: New file.
27467         * tests/test-atan2.c: New file.
27468
27469         Tests for module 'atan'.
27470         * modules/atan-tests: New file.
27471         * tests/test-atan.c: New file.
27472
27473         Tests for module 'asin'.
27474         * modules/asin-tests: New file.
27475         * tests/test-asin.c: New file.
27476
27477         Tests for module 'acos'.
27478         * modules/acos-tests: New file.
27479         * tests/test-acos.c: New file.
27480
27481 2010-01-24  Bruno Haible  <bruno@clisp.org>
27482
27483         Fix tests for common <math.h> functions.
27484         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
27485         code snippet that references the function pointer, rather than merely
27486         calling the function. Substitute the FUNC_LIBM variable.
27487         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
27488         * modules/acos (configure.ac): Likewise.
27489         * modules/asin (configure.ac): Likewise.
27490         * modules/atan (configure.ac): Likewise.
27491         * modules/atan2 (configure.ac): Likewise.
27492         * modules/cbrt (configure.ac): Likewise.
27493         * modules/copysign (configure.ac): Likewise.
27494         * modules/cos (configure.ac): Likewise.
27495         * modules/cosh (configure.ac): Likewise.
27496         * modules/erf (configure.ac): Likewise.
27497         * modules/erfc (configure.ac): Likewise.
27498         * modules/exp (configure.ac): Likewise.
27499         * modules/fabs (configure.ac): Likewise.
27500         * modules/fmod (configure.ac): Likewise.
27501         * modules/hypot (configure.ac): Likewise.
27502         * modules/j0 (configure.ac): Likewise.
27503         * modules/j1 (configure.ac): Likewise.
27504         * modules/jn (configure.ac): Likewise.
27505         * modules/ldexp (configure.ac): Likewise.
27506         * modules/lgamma (configure.ac): Likewise.
27507         * modules/log (configure.ac): Likewise.
27508         * modules/log10 (configure.ac): Likewise.
27509         * modules/log1p (configure.ac): Likewise.
27510         * modules/logb (configure.ac): Likewise.
27511         * modules/modf (configure.ac): Likewise.
27512         * modules/nextafter (configure.ac): Likewise.
27513         * modules/pow (configure.ac): Likewise.
27514         * modules/remainder (configure.ac): Likewise.
27515         * modules/rint (configure.ac): Likewise.
27516         * modules/sin (configure.ac): Likewise.
27517         * modules/sinh (configure.ac): Likewise.
27518         * modules/tan (configure.ac): Likewise.
27519         * modules/tanh (configure.ac): Likewise.
27520         * modules/y0 (configure.ac): Likewise.
27521         * modules/y1 (configure.ac): Likewise.
27522         * modules/yn (configure.ac): Likewise.
27523
27524 2010-01-24  Bruno Haible  <bruno@clisp.org>
27525
27526         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
27527         * tests/test-acosl.c (x): New variable.
27528         (main): Store argument in x and fetch it from x.
27529         * tests/test-asinl.c (x): New variable.
27530         (main): Store argument in x and fetch it from x.
27531         * tests/test-atanl.c (x): New variable.
27532         (main): Store argument in x and fetch it from x.
27533         * tests/test-cosl.c (x): New variable.
27534         (main): Store argument in x and fetch it from x.
27535         * tests/test-expl.c (x): New variable.
27536         (main): Store argument in x and fetch it from x.
27537         * tests/test-logl.c (x): New variable.
27538         (main): Store argument in x and fetch it from x.
27539         * tests/test-sinl.c (x): New variable.
27540         (main): Store argument in x and fetch it from x.
27541         * tests/test-sqrtl.c (x): New variable.
27542         (main): Store argument in x and fetch it from x.
27543         * tests/test-tanl.c (x): New variable.
27544         (main): Store argument in x and fetch it from x.
27545
27546 2010-01-24  Bruno Haible  <bruno@clisp.org>
27547
27548         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
27549         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
27550         assignments to the initial TESTS_ENVIRONMENT.
27551         * doc/gnulib.texi (Unit test modules): Document it.
27552         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
27553         TESTS_ENVIRONMENT.
27554         * modules/btowc-tests (Makefile.am): Likewise.
27555         * modules/c-stack-tests (Makefile.am): Likewise.
27556         * modules/c-strcase-tests (Makefile.am): Likewise.
27557         * modules/copy-file-tests (Makefile.am): Likewise.
27558         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
27559         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
27560         * modules/mbrtowc-tests (Makefile.am): Likewise.
27561         * modules/mbscasecmp-tests (Makefile.am): Likewise.
27562         * modules/mbscasestr-tests (Makefile.am): Likewise.
27563         * modules/mbschr-tests (Makefile.am): Likewise.
27564         * modules/mbscspn-tests (Makefile.am): Likewise.
27565         * modules/mbsinit-tests (Makefile.am): Likewise.
27566         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
27567         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
27568         * modules/mbspbrk-tests (Makefile.am): Likewise.
27569         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
27570         * modules/mbsrchr-tests (Makefile.am): Likewise.
27571         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
27572         * modules/mbsspn-tests (Makefile.am): Likewise.
27573         * modules/mbsstr-tests (Makefile.am): Likewise.
27574         * modules/nl_langinfo-tests (Makefile.am): Likewise.
27575         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
27576         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
27577         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
27578         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
27579         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
27580         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
27581         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
27582         * modules/wcrtomb-tests (Makefile.am): Likewise.
27583         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
27584         * modules/wcsrtombs-tests (Makefile.am): Likewise.
27585         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
27586         assignments from TESTS_ENVIRONMENT.
27587         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
27588         augmentation.
27589         * modules/argp-version-etc-tests (Makefile.am): Likewise.
27590         * modules/atexit-tests (Makefile.am): Likewise.
27591         * modules/binary-io-tests (Makefile.am): Likewise.
27592         * modules/closein-tests (Makefile.am): Likewise.
27593         * modules/dprintf-posix-tests (Makefile.am): Likewise.
27594         * modules/exclude-tests (Makefile.am): Likewise.
27595         * modules/fflush-tests (Makefile.am): Likewise.
27596         * modules/fpending-tests (Makefile.am): Likewise.
27597         * modules/fprintf-posix-tests (Makefile.am): Likewise.
27598         * modules/freadahead-tests (Makefile.am): Likewise.
27599         * modules/freadptr-tests (Makefile.am): Likewise.
27600         * modules/freadseek-tests (Makefile.am): Likewise.
27601         * modules/fseek-tests (Makefile.am): Likewise.
27602         * modules/fseeko-tests (Makefile.am): Likewise.
27603         * modules/ftell-tests (Makefile.am): Likewise.
27604         * modules/ftello-tests (Makefile.am): Likewise.
27605         * modules/idpriv-drop-tests (Makefile.am): Likewise.
27606         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
27607         * modules/lseek-tests (Makefile.am): Likewise.
27608         * modules/parse-duration-tests (Makefile.am): Likewise.
27609         * modules/perror-tests (Makefile.am): Likewise.
27610         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
27611         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
27612         * modules/pipe-tests (Makefile.am): Likewise.
27613         * modules/pread-tests (Makefile.am): Likewise.
27614         * modules/printf-posix-tests (Makefile.am): Likewise.
27615         * modules/select-tests (Makefile.am): Likewise.
27616         * modules/sigpipe-tests (Makefile.am): Likewise.
27617         * modules/tsearch-tests (Makefile.am): Likewise.
27618         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
27619         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
27620         * modules/uniname/uniname-tests (Makefile.am): Likewise.
27621         * modules/uniwidth/width-tests (Makefile.am): Likewise.
27622         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
27623         * modules/version-etc-tests (Makefile.am): Likewise.
27624         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
27625         * modules/vprintf-posix-tests (Makefile.am): Likewise.
27626         * modules/xalloc-die-tests (Makefile.am): Likewise.
27627         * modules/xprintf-posix-tests (Makefile.am): Likewise.
27628         * modules/xstrtoimax-tests (Makefile.am): Likewise.
27629         * modules/xstrtol-tests (Makefile.am): Likewise.
27630         * modules/xstrtoumax-tests (Makefile.am): Likewise.
27631         * modules/yesno-tests (Makefile.am): Likewise.
27632         Suggested by Jim Meyering.
27633
27634 2010-01-24  Bruno Haible  <bruno@clisp.org>
27635
27636         More documentation.
27637         * doc/gnulib.texi (Writing modules): New chapter.
27638         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
27639         the new chapter.
27640
27641 2010-01-24  Jim Meyering  <meyering@redhat.com>
27642
27643         maint.mk: do not prepend "./" after filtering
27644         * top/maint.mk (_prepend_srcdir_prefix): New variable
27645         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
27646         "./" when $(srcdir) is ".".
27647
27648         define STREQ(a,b) consistently, removing useless parentheses
27649         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
27650         since the only risk is that "a" or "b" contains an unparenthesized
27651         comma, but if either did that, STREQ would have 3 or more arguments.
27652         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
27653         * lib/fts.c (STREQ): Remove unnecessary parentheses.
27654         * lib/hash-triple.c (STREQ): Likewise.
27655         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
27656         * lib/getugroups.c (STREQ): Likewise.
27657
27658 2010-01-23  Jim Meyering  <meyering@redhat.com>
27659
27660         maint.mk: fix syntax-check in a non-srcdir build directory
27661         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
27662         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
27663
27664 2010-01-22  Jim Meyering  <meyering@redhat.com>
27665
27666         userspec: add unit tests
27667         * tests/test-userspec.c: New file.
27668         * modules/userspec-tests: Likewise.
27669
27670 2010-01-21  Jim Meyering  <meyering@redhat.com>
27671
27672         maint.mk: handle source file names containing "." robustly
27673         * top/maint.mk (_dot_escaped_srcdir): Define.
27674         (VC_LIST): Use it in LHS of sed substitution.
27675
27676 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
27677
27678         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
27679         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
27680         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
27681         from a non-srcdir build.
27682
27683 2010-01-20  Eric Blake  <ebb9@byu.net>
27684
27685         warn-on-use: use instead of link-warning
27686         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
27687         * modules/unistd (Depends-on, Makefile.am): Likewise.
27688         * modules/arpa_inet (Depends-on): Replace link-warning with
27689         warn-on-use.
27690         (Makefile.am): Update rules accordingly.
27691         * modules/ctype (Depends-on, Makefile.am): Likewise.
27692         * modules/dirent (Depends-on, Makefile.am): Likewise.
27693         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
27694         * modules/inttypes (Depends-on, Makefile.am): Likewise.
27695         * modules/langinfo (Depends-on, Makefile.am): Likewise.
27696         * modules/locale (Depends-on, Makefile.am): Likewise.
27697         * modules/math (Depends-on, Makefile.am): Likewise.
27698         * modules/search (Depends-on, Makefile.am): Likewise.
27699         * modules/signal (Depends-on, Makefile.am): Likewise.
27700         * modules/spawn (Depends-on, Makefile.am): Likewise.
27701         * modules/stdlib (Depends-on, Makefile.am): Likewise.
27702         * modules/string (Depends-on, Makefile.am): Likewise.
27703         * modules/strings (Depends-on, Makefile.am): Likewise.
27704         * modules/sys_file (Depends-on, Makefile.am): Likewise.
27705         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
27706         * modules/sys_select (Depends-on, Makefile.am): Likewise.
27707         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
27708         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
27709         * modules/sys_times (Depends-on, Makefile.am): Likewise.
27710         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
27711         * modules/wchar (Depends-on, Makefile.am): Likewise.
27712         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
27713         should be poisoned.
27714         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
27715         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
27716         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
27717         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
27718         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
27719         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
27720         * m4/math_h.m4 (gl_MATH_H): Likewise.
27721         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
27722         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
27723         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
27724         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
27725         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
27726         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
27727         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
27728         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
27729         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
27730         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
27731         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
27732         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
27733         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
27734         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
27735         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
27736         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
27737         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
27738         GL_LINK_WARNING.
27739         * lib/ctype.in.h: Likewise.
27740         * lib/dirent.in.h: Likewise.
27741         * lib/fcntl.in.h: Likewise.
27742         * lib/inttypes.in.h: Likewise.
27743         * lib/langinfo.in.h: Likewise.
27744         * lib/locale.in.h: Likewise.
27745         * lib/math.in.h: Likewise.
27746         * lib/search.in.h: Likewise.
27747         * lib/signal.in.h: Likewise.
27748         * lib/spawn.in.h: Likewise.
27749         * lib/stdio.in.h: Likewise.
27750         * lib/stdlib.in.h: Likewise.
27751         * lib/string.in.h: Likewise.
27752         * lib/strings.in.h: Likewise.
27753         * lib/sys_file.in.h: Likewise.
27754         * lib/sys_ioctl.in.h: Likewise.
27755         * lib/sys_select.in.h: Likewise.
27756         * lib/sys_socket.in.h: Likewise.
27757         * lib/sys_stat.in.h: Likewise.
27758         * lib/sys_times.in.h: Likewise.
27759         * lib/sys_utsname.in.h: Likewise.
27760         * lib/unistd.in.h: Likewise.
27761         * lib/wchar.in.h: Likewise.
27762
27763 2010-01-20  Bruno Haible  <bruno@clisp.org>
27764
27765         Avoid duplicate -lm.
27766         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
27767         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
27768         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
27769         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
27770         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
27771         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
27772         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
27773         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
27774         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
27775         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
27776         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
27777         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
27778         Reported by Paolo Bonzini.
27779
27780 2010-01-19  Bruno Haible  <bruno@clisp.org>
27781
27782         langinfo, nl_langinfo: Relicense under LGPLv2+.
27783         * modules/langinfo (License): Change to LGPLv2+.
27784         * modules/nl_langinfo (License): Likewise.
27785         Patch by David Lutterkort <lutter@redhat.com>.
27786
27787 2010-01-19  Bruno Haible  <bruno@clisp.org>
27788
27789         Avoid compilation error with cc on OSF/1 5.1.
27790         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
27791         statement, not before.
27792         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27793
27794 2010-01-18  Bruno Haible  <bruno@clisp.org>
27795
27796         Avoid a link error due to the __printf__ symbol.
27797         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
27798         and 2.6.x.
27799         (__format__, __printf__): Remove definitions.
27800         * lib/argp-fmtstream.h: Likewise.
27801         * lib/argp.h: Likewise.
27802         * lib/error.h: Likewise.
27803         * lib/vasnprintf.h: Likewise.
27804         * lib/xprintf.h: Likewise.
27805         * lib/xvasprintf.h: Likewise.
27806         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27807
27808 2010-01-18  Bruno Haible  <bruno@clisp.org>
27809
27810         Tests for module 'tanl'.
27811         * modules/tanl-tests: New file.
27812         * tests/test-tanl.c: New file.
27813
27814         Tests for module 'sqrtl'.
27815         * modules/sqrtl-tests: New file.
27816         * tests/test-sqrtl.c: New file.
27817
27818         Tests for module 'sinl'.
27819         * modules/sinl-tests: New file.
27820         * tests/test-sinl.c: New file.
27821
27822         Tests for module 'logl'.
27823         * modules/logl-tests: New file.
27824         * tests/test-logl.c: New file.
27825
27826         Tests for module 'expl'.
27827         * modules/expl-tests: New file.
27828         * tests/test-expl.c: New file.
27829
27830         Tests for module 'cosl'.
27831         * modules/cosl-tests: New file.
27832         * tests/test-cosl.c: New file.
27833
27834         Tests for module 'atanl'.
27835         * modules/atanl-tests: New file.
27836         * tests/test-atanl.c: New file.
27837
27838         Tests for module 'asinl'.
27839         * modules/asinl-tests: New file.
27840         * tests/test-asinl.c: New file.
27841
27842         Tests for module 'acosl'.
27843         * modules/acosl-tests: New file.
27844         * tests/test-acosl.c: New file.
27845
27846         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
27847         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
27848         tanl): Use the standard gnulib idiom.
27849         * lib/cosl.c: Don't include trigl.c and sincosl.c.
27850         * lib/sinl.c: Likewise.
27851         * lib/tanl.c: Don't include trigl.c.
27852         (kernel_tanl): Make static.
27853         * lib/sincosl.c: Include trigl.h first.
27854         * lib/trigl.c: Likewise.
27855         * m4/acosl.m4: New file.
27856         * m4/asinl.m4: New file.
27857         * m4/atanl.m4: New file.
27858         * m4/cosl.m4: New file.
27859         * m4/expl.m4: New file.
27860         * m4/logl.m4: New file.
27861         * m4/sinl.m4: New file.
27862         * m4/sqrtl.m4: New file.
27863         * m4/tanl.m4: New file.
27864         * m4/mathl.m4: Remove file.
27865         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
27866         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
27867         Don't initialize GNULIB_MATHL.
27868         * modules/acosl: New file.
27869         * modules/asinl: New file.
27870         * modules/atanl: New file.
27871         * modules/cosl: New file.
27872         * modules/expl: New file.
27873         * modules/logl: New file.
27874         * modules/sinl: New file.
27875         * modules/sqrtl: New file.
27876         * modules/tanl: New file.
27877         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
27878         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
27879         substitute GNULIB_MATHL.
27880         * modules/mathl: Rewritten.
27881         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
27882         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
27883         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
27884         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
27885         * doc/posix-functions/expl.texi: Mention the 'expl' module.
27886         * doc/posix-functions/logl.texi: Mention the 'logl' module.
27887         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
27888         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
27889         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
27890
27891 2010-01-18  Bruno Haible  <bruno@clisp.org>
27892
27893         sqrt: Make gl_FUNC_SQRT requirable.
27894         * m4/sqrt.m4: New file.
27895         * modules/sqrt (Files): Add it.
27896         (configure.ac): Invoke gl_FUNC_SQRT.
27897
27898 2010-01-18  Bruno Haible  <bruno@clisp.org>
27899
27900         New modules for common <math.h> functions.
27901         * m4/mathfunc.m4: New file.
27902         * modules/acos: New file.
27903         * modules/asin: New file.
27904         * modules/atan: New file.
27905         * modules/atan2: New file.
27906         * modules/cbrt: New file.
27907         * modules/copysign: New file.
27908         * modules/cos: New file.
27909         * modules/cosh: New file.
27910         * modules/erf: New file.
27911         * modules/erfc: New file.
27912         * modules/exp: New file.
27913         * modules/fabs: New file.
27914         * modules/fmod: New file.
27915         * modules/hypot: New file.
27916         * modules/j0: New file.
27917         * modules/j1: New file.
27918         * modules/jn: New file.
27919         * modules/ldexp: New file.
27920         * modules/lgamma: New file.
27921         * modules/log: New file.
27922         * modules/log10: New file.
27923         * modules/log1p: New file.
27924         * modules/logb: New file.
27925         * modules/modf: New file.
27926         * modules/nextafter: New file.
27927         * modules/pow: New file.
27928         * modules/remainder: New file.
27929         * modules/rint: New file.
27930         * modules/sin: New file.
27931         * modules/sinh: New file.
27932         * modules/sqrt: New file.
27933         * modules/tan: New file.
27934         * modules/tanh: New file.
27935         * modules/y0: New file.
27936         * modules/y1: New file.
27937         * modules/yn: New file.
27938         * doc/posix-functions/acos.texi: Mention the 'acos' module.
27939         * doc/posix-functions/asin.texi: Mention the 'asin' module.
27940         * doc/posix-functions/atan.texi: Mention the 'atan' module.
27941         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
27942         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
27943         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
27944         * doc/posix-functions/cos.texi: Mention the 'cos' module.
27945         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
27946         * doc/posix-functions/erf.texi: Mention the 'erf' module.
27947         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
27948         * doc/posix-functions/exp.texi: Mention the 'exp' module.
27949         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
27950         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
27951         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
27952         * doc/posix-functions/j0.texi: Mention the 'j0' module.
27953         * doc/posix-functions/j1.texi: Mention the 'j1' module.
27954         * doc/posix-functions/jn.texi: Mention the 'jn' module.
27955         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
27956         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
27957         * doc/posix-functions/log.texi: Mention the 'log' module.
27958         * doc/posix-functions/log10.texi: Mention the 'log10' module.
27959         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
27960         * doc/posix-functions/logb.texi: Mention the 'logb' module.
27961         * doc/posix-functions/modf.texi: Mention the 'modf' module.
27962         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
27963         * doc/posix-functions/pow.texi: Mention the 'pow' module.
27964         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
27965         * doc/posix-functions/rint.texi: Mention the 'rint' module.
27966         * doc/posix-functions/sin.texi: Mention the 'sin' module.
27967         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
27968         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
27969         * doc/posix-functions/tan.texi: Mention the 'tan' module.
27970         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
27971         * doc/posix-functions/y0.texi: Mention the 'y0' module.
27972         * doc/posix-functions/y1.texi: Mention the 'y1' module.
27973         * doc/posix-functions/yn.texi: Mention the 'yn' module.
27974
27975 2010-01-18  Jim Meyering  <meyering@redhat.com>
27976
27977         ignore-value: relax license to LGPLv2+
27978         * modules/ignore-value (License): Relax to LGPLv2+.
27979
27980         getdate: don't leak when TZ contains two or more '"'s
27981         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
27982         double quote in TZ after the first one.
27983
27984         readtokens: do not leak internal token_lengths buffer
27985         * lib/readtokens.c (readtokens): Free the local, lengths,
27986         when the supplied "token_lengths" parameter is NULL.
27987
27988 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27989
27990         Fix a couple of missing LIBTHREAD link failures on AIX.
27991         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
27992         $(LIBTHREAD).
27993         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
27994
27995         Link test-poll against INET_PTON_LIB.
27996         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
27997         for inet_pton on Solaris 10.
27998
27999 2010-01-17  Bruno Haible  <bruno@clisp.org>
28000
28001         unistdio/*-sprintf: Fix typo in module description.
28002         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
28003         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
28004         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
28005         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
28006         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
28007         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
28008         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
28009         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28010
28011 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28012
28013         gnulib-tool: fix filelist for AIX, HP-UX ksh.
28014         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
28015         variables in shell case patterns, for AIX and HP-UX ksh.
28016
28017         Split large sed scripts, for HP-UX sed.
28018         * modules/stdio: Split sed scripts around 50 sed commands,
28019         to avoid HP-UX limit of 99 commands, in the near future.
28020         * modules/string: Likewise.
28021         * modules/unistd: Likewise.
28022
28023         gnulib-tool: avoid writing in the current directory.
28024         * gnulib-tool (func_emit_lib_Makefile_am)
28025         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
28026         not in the current directory, so concurrent gnulib-tool
28027         instances do not interfere.
28028
28029 2010-01-16  Jim Meyering  <meyering@redhat.com>
28030
28031         doc: update users.txt
28032         * users.txt: Add grep.
28033         (diffutils, gzip): Update URLs.
28034
28035 2010-01-12  Bruno Haible  <bruno@clisp.org>
28036
28037         posix_spawn: Avoid test failure on Cygwin.
28038         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
28039         characters.
28040         Reported by Simon Josefsson.
28041
28042 2010-01-12  Bruno Haible  <bruno@clisp.org>
28043
28044         * tests/test-cond.c (main): When skipping the test, show the reason.
28045
28046 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28047
28048         * lib/striconv.c (str_cd_iconv): Avoid if before free.
28049
28050 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28051
28052         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
28053         VC_LIST_ALWAYS_EXCLUDE_REGEX.
28054
28055 2010-01-12  Eric Blake  <ebb9@byu.net>
28056
28057         build: guarantee AS_VAR_IF
28058         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
28059         (gl_AS_VAR_IF): Move...
28060         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
28061         Reported by Simon Josefsson.
28062
28063 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28064
28065         * lib/stdio.in.h: Fix typo.
28066
28067 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28068
28069         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
28070         libgpg-error.
28071
28072 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28073
28074         * tests/test-xalloc-die.sh: Use $EXEEXT.
28075
28076 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28077             Bruno Haible  <bruno@clisp.org>
28078
28079         getlogin, getlogin_r: Avoid test failure.
28080         * tests/test-getlogin.c: Include <stdio.h>.
28081         (main): Skip the test when the function fails because stdin is not a
28082         tty.
28083         * tests/test-getlogin_r.c: Include <stdio.h>.
28084         (main): Skip the test when the function fails because stdin is not a
28085         tty.
28086
28087 2010-01-11  Eric Blake  <ebb9@byu.net>
28088
28089         tests: avoid more large file warnings
28090         * tests/test-fflush.c: Avoid warning about ftell use.
28091         * tests/test-fseek.c: Avoid warning about fseek use.
28092
28093 2010-01-10  Bruno Haible  <bruno@clisp.org>
28094
28095         nproc: Work better on Linux when /proc and /sys are not mounted.
28096         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
28097         as lower bound when, on glibc/Linux systems,
28098         sysconf (_SC_NPROCESSORS_CONF) returns 1.
28099         Suggested by Pádraig Brady <P@draigbrady.com>.
28100         Reported by Dmitry V. Levin <ldv@altlinux.org>.
28101
28102         nproc: Refactor.
28103         * lib/nproc.c (num_processors_via_affinity_mask): New function,
28104         extracted from num_processors.
28105         (num_processors): Call it.
28106
28107 2010-01-11  Jim Meyering  <meyering@redhat.com>
28108
28109         utimecmp: avoid new warning from upcoming gcc-4.5.0
28110         * lib/utimecmp.c (BILLION): Define using #define rather than an
28111         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
28112
28113 2010-01-11  Eric Blake  <ebb9@byu.net>
28114
28115         math: add portability warnings for classification macros
28116         * modules/math (Depends-on): Add warn-on-use.
28117         (Makefile.am): Provide new substitutions.
28118         * m4/math_h.m4 (gl_MATH_H): Require inline.
28119         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
28120         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
28121         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
28122         implement warnings.
28123
28124         unistd: warn on use of environ without module
28125         * modules/unistd (Depends-on): Add warn-on-use.
28126         (Makefile.am): Provide new substitutions.
28127         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
28128         * lib/unistd.in.h (environ): Wrap with a warning helper function.
28129
28130         stdio: warn on suspicious uses
28131         * modules/stdio (Depends-on): Add warn-on-use.
28132         (Makefile.am): Provide new substitutions.
28133         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
28134         fseeko.
28135         * lib/stdio.in.h (gets): Always warn on use.
28136         (fseek, ftell): Adjust when warnings are issued, and honor
28137         _GL_NO_LARGE_FILES as a way to silence the warning.
28138         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
28139         any warning about large file offsets.
28140         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
28141         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
28142         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
28143         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
28144         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
28145         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
28146         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
28147         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
28148
28149         warn-on-use: new module
28150         * modules/warn-on-use: New file.
28151         * build-aux/warn-on-use.h: Likewise.
28152         * m4/warn-on-use.m4: Likewise.
28153         * MODULES.html.sh (Support for building): Mention it.
28154
28155 2010-01-10  Bruno Haible  <bruno@clisp.org>
28156
28157         Tests for module 'unistr/u32-strdup'.
28158         * modules/unistr/u32-strdup-tests: New file.
28159         * tests/unistr/test-u32-strdup.c: New file.
28160
28161         Tests for module 'unistr/u16-strdup'.
28162         * modules/unistr/u16-strdup-tests: New file.
28163         * tests/unistr/test-u16-strdup.c: New file.
28164
28165         Tests for module 'unistr/u8-strdup'.
28166         * modules/unistr/u8-strdup-tests: New file.
28167         * tests/unistr/test-u8-strdup.c: New file.
28168         * tests/unistr/test-strdup.h: New file.
28169
28170         Tests for module 'unistr/u32-strncmp'.
28171         * modules/unistr/u32-strncmp-tests: New file.
28172         * tests/unistr/test-u32-strncmp.c: New file.
28173
28174         Tests for module 'unistr/u16-strncmp'.
28175         * modules/unistr/u16-strncmp-tests: New file.
28176         * tests/unistr/test-u16-strncmp.c: New file.
28177
28178         Tests for module 'unistr/u8-strncmp'.
28179         * modules/unistr/u8-strncmp-tests: New file.
28180         * tests/unistr/test-u8-strncmp.c: New file.
28181         * tests/unistr/test-strncmp.h: New file.
28182
28183         Tests for module 'unistr/u32-strcoll'.
28184         * modules/unistr/u32-strcoll-tests: New file.
28185         * tests/unistr/test-u32-strcoll.c: New file.
28186
28187         Tests for module 'unistr/u16-strcoll'.
28188         * modules/unistr/u16-strcoll-tests: New file.
28189         * tests/unistr/test-u16-strcoll.c: New file.
28190
28191         Tests for module 'unistr/u8-strcoll'.
28192         * modules/unistr/u8-strcoll-tests: New file.
28193         * tests/unistr/test-u8-strcoll.c: New file.
28194
28195         Tests for module 'unistr/u32-strcmp'.
28196         * modules/unistr/u32-strcmp-tests: New file.
28197         * tests/unistr/test-u32-strcmp.c: New file.
28198         * tests/unistr/test-u32-strcmp.h: New file.
28199
28200         Tests for module 'unistr/u16-strcmp'.
28201         * modules/unistr/u16-strcmp-tests: New file.
28202         * tests/unistr/test-u16-strcmp.c: New file.
28203         * tests/unistr/test-u16-strcmp.h: New file.
28204
28205         Tests for module 'unistr/u8-strcmp'.
28206         * modules/unistr/u8-strcmp-tests: New file.
28207         * tests/unistr/test-u8-strcmp.c: New file.
28208         * tests/unistr/test-u8-strcmp.h: New file.
28209         * tests/unistr/test-strcmp.h: New file.
28210
28211         Tests for module 'unistr/u32-strncat'.
28212         * modules/unistr/u32-strncat-tests: New file.
28213         * tests/unistr/test-u32-strncat.c: New file.
28214
28215         Tests for module 'unistr/u16-strncat'.
28216         * modules/unistr/u16-strncat-tests: New file.
28217         * tests/unistr/test-u16-strncat.c: New file.
28218
28219         Tests for module 'unistr/u8-strncat'.
28220         * modules/unistr/u8-strncat-tests: New file.
28221         * tests/unistr/test-u8-strncat.c: New file.
28222         * tests/unistr/test-strncat.h: New file.
28223
28224         Tests for module 'unistr/u32-strcat'.
28225         * modules/unistr/u32-strcat-tests: New file.
28226         * tests/unistr/test-u32-strcat.c: New file.
28227
28228         Tests for module 'unistr/u16-strcat'.
28229         * modules/unistr/u16-strcat-tests: New file.
28230         * tests/unistr/test-u16-strcat.c: New file.
28231
28232         Tests for module 'unistr/u8-strcat'.
28233         * modules/unistr/u8-strcat-tests: New file.
28234         * tests/unistr/test-u8-strcat.c: New file.
28235         * tests/unistr/test-strcat.h: New file.
28236
28237         Tests for module 'unistr/u32-stpncpy'.
28238         * modules/unistr/u32-stpncpy-tests: New file.
28239         * tests/unistr/test-u32-stpncpy.c: New file.
28240
28241         Tests for module 'unistr/u16-stpncpy'.
28242         * modules/unistr/u16-stpncpy-tests: New file.
28243         * tests/unistr/test-u16-stpncpy.c: New file.
28244
28245         Tests for module 'unistr/u8-stpncpy'.
28246         * modules/unistr/u8-stpncpy-tests: New file.
28247         * tests/unistr/test-u8-stpncpy.c: New file.
28248         * tests/unistr/test-stpncpy.h: New file.
28249
28250         Tests for module 'unistr/u32-strncpy'.
28251         * modules/unistr/u32-strncpy-tests: New file.
28252         * tests/unistr/test-u32-strncpy.c: New file.
28253
28254         Tests for module 'unistr/u16-strncpy'.
28255         * modules/unistr/u16-strncpy-tests: New file.
28256         * tests/unistr/test-u16-strncpy.c: New file.
28257
28258         Tests for module 'unistr/u8-strncpy'.
28259         * modules/unistr/u8-strncpy-tests: New file.
28260         * tests/unistr/test-u8-strncpy.c: New file.
28261         * tests/unistr/test-strncpy.h: New file.
28262
28263         Tests for module 'unistr/u32-stpcpy'.
28264         * modules/unistr/u32-stpcpy-tests: New file.
28265         * tests/unistr/test-u32-stpcpy.c: New file.
28266
28267         Tests for module 'unistr/u16-stpcpy'.
28268         * modules/unistr/u16-stpcpy-tests: New file.
28269         * tests/unistr/test-u16-stpcpy.c: New file.
28270
28271         Tests for module 'unistr/u8-stpcpy'.
28272         * modules/unistr/u8-stpcpy-tests: New file.
28273         * tests/unistr/test-u8-stpcpy.c: New file.
28274         * tests/unistr/test-stpcpy.h: New file.
28275
28276         Tests for module 'unistr/u32-strcpy'.
28277         * modules/unistr/u32-strcpy-tests: New file.
28278         * tests/unistr/test-u32-strcpy.c: New file.
28279
28280         Tests for module 'unistr/u16-strcpy'.
28281         * modules/unistr/u16-strcpy-tests: New file.
28282         * tests/unistr/test-u16-strcpy.c: New file.
28283
28284         Tests for module 'unistr/u8-strcpy'.
28285         * modules/unistr/u8-strcpy-tests: New file.
28286         * tests/unistr/test-u8-strcpy.c: New file.
28287         * tests/unistr/test-strcpy.h: New file.
28288
28289         Tests for module 'unistr/u32-strnlen'.
28290         * modules/unistr/u32-strnlen-tests: New file.
28291         * tests/unistr/test-u32-strnlen.c: New file.
28292
28293         Tests for module 'unistr/u16-strnlen'.
28294         * modules/unistr/u16-strnlen-tests: New file.
28295         * tests/unistr/test-u16-strnlen.c: New file.
28296
28297         Tests for module 'unistr/u8-strnlen'.
28298         * modules/unistr/u8-strnlen-tests: New file.
28299         * tests/unistr/test-u8-strnlen.c: New file.
28300         * tests/unistr/test-strnlen.h: New file.
28301
28302         Tests for module 'unistr/u32-strlen'.
28303         * modules/unistr/u32-strlen-tests: New file.
28304         * tests/unistr/test-u32-strlen.c: New file.
28305
28306         Tests for module 'unistr/u16-strlen'.
28307         * modules/unistr/u16-strlen-tests: New file.
28308         * tests/unistr/test-u16-strlen.c: New file.
28309
28310         Tests for module 'unistr/u8-strlen'.
28311         * modules/unistr/u8-strlen-tests: New file.
28312         * tests/unistr/test-u8-strlen.c: New file.
28313
28314         Tests for module 'unistr/u32-prev'.
28315         * modules/unistr/u32-prev-tests: New file.
28316         * tests/unistr/test-u32-prev.c: New file.
28317
28318         Tests for module 'unistr/u16-prev'.
28319         * modules/unistr/u16-prev-tests: New file.
28320         * tests/unistr/test-u16-prev.c: New file.
28321
28322         Tests for module 'unistr/u8-prev'.
28323         * modules/unistr/u8-prev-tests: New file.
28324         * tests/unistr/test-u8-prev.c: New file.
28325
28326         Tests for module 'unistr/u32-next'.
28327         * modules/unistr/u32-next-tests: New file.
28328         * tests/unistr/test-u32-next.c: New file.
28329
28330         Tests for module 'unistr/u16-next'.
28331         * modules/unistr/u16-next-tests: New file.
28332         * tests/unistr/test-u16-next.c: New file.
28333
28334         Tests for module 'unistr/u8-next'.
28335         * modules/unistr/u8-next-tests: New file.
28336         * tests/unistr/test-u8-next.c: New file.
28337
28338         Tests for module 'unistr/u32-strmbtouc'.
28339         * modules/unistr/u32-strmbtouc-tests: New file.
28340         * tests/unistr/test-u32-strmbtouc.c: New file.
28341
28342         Tests for module 'unistr/u16-strmbtouc'.
28343         * modules/unistr/u16-strmbtouc-tests: New file.
28344         * tests/unistr/test-u16-strmbtouc.c: New file.
28345
28346         Tests for module 'unistr/u8-strmbtouc'.
28347         * modules/unistr/u8-strmbtouc-tests: New file.
28348         * tests/unistr/test-u8-strmbtouc.c: New file.
28349
28350         Tests for module 'unistr/u32-strmblen'.
28351         * modules/unistr/u32-strmblen-tests: New file.
28352         * tests/unistr/test-u32-strmblen.c: New file.
28353
28354         Tests for module 'unistr/u16-strmblen'.
28355         * modules/unistr/u16-strmblen-tests: New file.
28356         * tests/unistr/test-u16-strmblen.c: New file.
28357
28358         Tests for module 'unistr/u8-strmblen'.
28359         * modules/unistr/u8-strmblen-tests: New file.
28360         * tests/unistr/test-u8-strmblen.c: New file.
28361
28362         Tests for module 'unistr/u32-cpy-alloc'.
28363         * modules/unistr/u32-cpy-alloc-tests: New file.
28364         * tests/unistr/test-u32-cpy-alloc.c: New file.
28365
28366         Tests for module 'unistr/u16-cpy-alloc'.
28367         * modules/unistr/u16-cpy-alloc-tests: New file.
28368         * tests/unistr/test-u16-cpy-alloc.c: New file.
28369
28370         Tests for module 'unistr/u8-cpy-alloc'.
28371         * modules/unistr/u8-cpy-alloc-tests: New file.
28372         * tests/unistr/test-u8-cpy-alloc.c: New file.
28373         * tests/unistr/test-cpy-alloc.h: New file.
28374
28375         Tests for module 'unistr/u32-mbsnlen'.
28376         * modules/unistr/u32-mbsnlen-tests: New file.
28377         * tests/unistr/test-u32-mbsnlen.c: New file.
28378
28379         Tests for module 'unistr/u16-mbsnlen'.
28380         * modules/unistr/u16-mbsnlen-tests: New file.
28381         * tests/unistr/test-u16-mbsnlen.c: New file.
28382
28383         Tests for module 'unistr/u8-mbsnlen'.
28384         * modules/unistr/u8-mbsnlen-tests: New file.
28385         * tests/unistr/test-u8-mbsnlen.c: New file.
28386
28387         Tests for module 'unistr/u32-chr'.
28388         * modules/unistr/u32-chr-tests: New file.
28389         * tests/unistr/test-u32-chr.c: New file.
28390
28391         Tests for module 'unistr/u16-chr'.
28392         * modules/unistr/u16-chr-tests: New file.
28393         * tests/unistr/test-u16-chr.c: New file.
28394
28395         Tests for module 'unistr/u8-chr'.
28396         * modules/unistr/u8-chr-tests: New file.
28397         * tests/unistr/test-u8-chr.c: New file.
28398         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
28399
28400         Tests for module 'unistr/u32-cmp2'.
28401         * modules/unistr/u32-cmp2-tests: New file.
28402         * tests/unistr/test-u32-cmp2.c: New file.
28403
28404         Tests for module 'unistr/u16-cmp2'.
28405         * modules/unistr/u16-cmp2-tests: New file.
28406         * tests/unistr/test-u16-cmp2.c: New file.
28407
28408         Tests for module 'unistr/u8-cmp2'.
28409         * modules/unistr/u8-cmp2-tests: New file.
28410         * tests/unistr/test-u8-cmp2.c: New file.
28411         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
28412
28413         Tests for module 'unistr/u32-cmp'.
28414         * modules/unistr/u32-cmp-tests: New file.
28415         * tests/unistr/test-u32-cmp.c: New file.
28416
28417         Tests for module 'unistr/u16-cmp'.
28418         * modules/unistr/u16-cmp-tests: New file.
28419         * tests/unistr/test-u16-cmp.c: New file.
28420
28421         Tests for module 'unistr/u8-cmp'.
28422         * modules/unistr/u8-cmp-tests: New file.
28423         * tests/unistr/test-u8-cmp.c: New file.
28424         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
28425
28426         Tests for module 'unistr/u32-set'.
28427         * modules/unistr/u32-set-tests: New file.
28428         * tests/unistr/test-u32-set.c: New file.
28429
28430         Tests for module 'unistr/u16-set'.
28431         * modules/unistr/u16-set-tests: New file.
28432         * tests/unistr/test-u16-set.c: New file.
28433
28434         Tests for module 'unistr/u8-set'.
28435         * modules/unistr/u8-set-tests: New file.
28436         * tests/unistr/test-u8-set.c: New file.
28437         * tests/unistr/test-set.h: New file.
28438
28439         Tests for module 'unistr/u32-move'.
28440         * modules/unistr/u32-move-tests: New file.
28441         * tests/unistr/test-u32-move.c: New file.
28442
28443         Tests for module 'unistr/u16-move'.
28444         * modules/unistr/u16-move-tests: New file.
28445         * tests/unistr/test-u16-move.c: New file.
28446
28447         Tests for module 'unistr/u8-move'.
28448         * modules/unistr/u8-move-tests: New file.
28449         * tests/unistr/test-u8-move.c: New file.
28450         * tests/unistr/test-move.h: New file.
28451
28452         Tests for module 'unistr/u32-cpy'.
28453         * modules/unistr/u32-cpy-tests: New file.
28454         * tests/unistr/test-u32-cpy.c: New file.
28455
28456         Tests for module 'unistr/u16-cpy'.
28457         * modules/unistr/u16-cpy-tests: New file.
28458         * tests/unistr/test-u16-cpy.c: New file.
28459
28460         Tests for module 'unistr/u8-cpy'.
28461         * modules/unistr/u8-cpy-tests: New file.
28462         * tests/unistr/test-u8-cpy.c: New file.
28463         * tests/unistr/test-cpy.h: New file.
28464
28465 2010-01-09  Bruno Haible  <bruno@clisp.org>
28466
28467         Tests for module 'unistr/u32-uctomb'.
28468         * modules/unistr/u32-uctomb-tests: New file.
28469         * tests/unistr/test-u32-uctomb.c: New file.
28470
28471         Tests for module 'unistr/u16-uctomb'.
28472         * modules/unistr/u16-uctomb-tests: New file.
28473         * tests/unistr/test-u16-uctomb.c: New file.
28474
28475         Tests for module 'unistr/u8-uctomb'.
28476         * modules/unistr/u8-uctomb-tests: New file.
28477         * tests/unistr/test-u8-uctomb.c: New file.
28478
28479         Tests for module 'unistr/u32-mbtoucr'.
28480         * modules/unistr/u32-mbtoucr-tests: New file.
28481         * tests/unistr/test-u32-mbtoucr.c: New file.
28482
28483         Tests for module 'unistr/u16-mbtoucr'.
28484         * modules/unistr/u16-mbtoucr-tests: New file.
28485         * tests/unistr/test-u16-mbtoucr.c: New file.
28486
28487         Tests for module 'unistr/u8-mbtoucr'.
28488         * modules/unistr/u8-mbtoucr-tests: New file.
28489         * tests/unistr/test-u8-mbtoucr.c: New file.
28490
28491         Tests for module 'unistr/u32-mbtouc'.
28492         * modules/unistr/u32-mbtouc-tests: New file.
28493         * tests/unistr/test-u32-mbtouc.c: New file.
28494
28495         Tests for module 'unistr/u16-mbtouc'.
28496         * modules/unistr/u16-mbtouc-tests: New file.
28497         * tests/unistr/test-u16-mbtouc.c: New file.
28498
28499         Tests for module 'unistr/u8-mbtouc'.
28500         * modules/unistr/u8-mbtouc-tests: New file.
28501         * tests/unistr/test-u8-mbtouc.c: New file.
28502
28503         Tests for module 'unistr/u32-mbtouc-unsafe'.
28504         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
28505         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
28506         * tests/unistr/test-u32-mbtouc.h: New file.
28507
28508         Tests for module 'unistr/u16-mbtouc-unsafe'.
28509         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
28510         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
28511         * tests/unistr/test-u16-mbtouc.h: New file.
28512
28513         Tests for module 'unistr/u8-mbtouc-unsafe'.
28514         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
28515         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
28516         * tests/unistr/test-u8-mbtouc.h: New file.
28517
28518         Tests for module 'unistr/u32-mblen'.
28519         * modules/unistr/u32-mblen-tests: New file.
28520         * tests/unistr/test-u32-mblen.c: New file.
28521
28522         Tests for module 'unistr/u16-mblen'.
28523         * modules/unistr/u16-mblen-tests: New file.
28524         * tests/unistr/test-u16-mblen.c: New file.
28525
28526         Tests for module 'unistr/u8-mblen'.
28527         * modules/unistr/u8-mblen-tests: New file.
28528         * tests/unistr/test-u8-mblen.c: New file.
28529
28530         Tests for module 'unistr/u32-to-u16'.
28531         * modules/unistr/u32-to-u16-tests: New file.
28532         * tests/unistr/test-u32-to-u16.c: New file.
28533
28534         Tests for module 'unistr/u32-to-u8'.
28535         * modules/unistr/u32-to-u8-tests: New file.
28536         * tests/unistr/test-u32-to-u8.c: New file.
28537
28538         Tests for module 'unistr/u16-to-u32'.
28539         * modules/unistr/u16-to-u32-tests: New file.
28540         * tests/unistr/test-u16-to-u32.c: New file.
28541
28542         Tests for module 'unistr/u16-to-u8'.
28543         * modules/unistr/u16-to-u8-tests: New file.
28544         * tests/unistr/test-u16-to-u8.c: New file.
28545
28546         Tests for module 'unistr/u8-to-u32'.
28547         * modules/unistr/u8-to-u32-tests: New file.
28548         * tests/unistr/test-u8-to-u32.c: New file.
28549
28550         Tests for module 'unistr/u8-to-u16'.
28551         * modules/unistr/u8-to-u16-tests: New file.
28552         * tests/unistr/test-u8-to-u16.c: New file.
28553
28554         Tests for module 'unistr/u32-check'.
28555         * modules/unistr/u32-check-tests: New file.
28556         * tests/unistr/test-u32-check.c: New file.
28557
28558         Tests for module 'unistr/u16-check'.
28559         * modules/unistr/u16-check-tests: New file.
28560         * tests/unistr/test-u16-check.c: New file.
28561
28562         Tests for module 'unistr/u8-check'.
28563         * modules/unistr/u8-check-tests: New file.
28564         * tests/unistr/test-u8-check.c: New file.
28565
28566         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
28567         (category_equals): New function.
28568         (main): Add more tests.
28569         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
28570
28571         * tests/unictype/test-bidi_byname.c (main): Add more tests.
28572
28573 2010-01-10  Bruno Haible  <bruno@clisp.org>
28574
28575         unistr/u*-strcoll: Try harder to distinguish different strings.
28576         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
28577         compare s1 and s2 to see if they are different.
28578
28579 2010-01-10  Bruno Haible  <bruno@clisp.org>
28580
28581         unistr/u*-stpncpy: Fix the return value.
28582         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
28583         description of the return value consistent with stpncpy in glibc.
28584         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
28585         written non-NUL unit.
28586
28587 2010-01-10  Bruno Haible  <bruno@clisp.org>
28588
28589         unistr/u*-next: Add missing dependencies.
28590         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
28591         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
28592         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
28593
28594 2010-01-10  Bruno Haible  <bruno@clisp.org>
28595
28596         unistr/u8-mbsnlen: Fix return value for incomplete character.
28597         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
28598         u8_mblen.
28599         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
28600         Remove unistr/u8-mblen.
28601         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
28602         u16_mblen.
28603         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
28604         Remove unistr/u16-mblen.
28605
28606 2010-01-10  Bruno Haible  <bruno@clisp.org>
28607
28608         wchar: Fix compilation error when <wchar.h> is used from coreutils.
28609         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
28610         Reported by Brian Gough <bjg@gnu.org> and
28611         Chris Clayton <chris2553@googlemail.com> via
28612         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
28613
28614 2010-01-09  Bruno Haible  <bruno@clisp.org>
28615
28616         unistr/u16-to-u32: Reject invalid input.
28617         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
28618         u16_mbtouc.
28619         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
28620         Remove unistr/u16-mbtouc.
28621
28622         unistr/u16-to-u8: Reject invalid input.
28623         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
28624         u16_mbtouc.
28625         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
28626         Remove unistr/u16-mbtouc.
28627
28628         unistr/u8-to-u32: Reject invalid input.
28629         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
28630         u8_mbtouc.
28631         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
28632         Remove unistr/u8-mbtouc.
28633
28634         unistr/u8-to-u16: Reject invalid input.
28635         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
28636         u8_mbtouc.
28637         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
28638         Remove unistr/u8-mbtouc.
28639
28640 2010-01-09  Bruno Haible  <bruno@clisp.org>
28641
28642         Tests for module 'getlogin'.
28643         * modules/getlogin-tests: New file.
28644         * tests/test-getlogin.c: New file.
28645
28646         New module 'getlogin'.
28647         * lib/unistd.in.h (getlogin): New declaration.
28648         * lib/getlogin.c: New file.
28649         * m4/getlogin.m4: New file.
28650         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
28651         HAVE_GETLOGIN.
28652         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
28653         HAVE_GETLOGIN.
28654         * modules/getlogin: New file.
28655         * doc/posix-functions/getlogin.texi: Mention the new module.
28656         Reported by John W. Eaton <jwe@gnu.org>.
28657
28658 2010-01-09  Bruno Haible  <bruno@clisp.org>
28659
28660         getlogin_r: Support for native Windows.
28661         * lib/getlogin_r.c: Include <windows.h>
28662         (getlogin_r): Implement for native Windows.
28663         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
28664         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
28665         via John W. Eaton <jwe@gnu.org>.
28666
28667 2010-01-09  Bruno Haible  <bruno@clisp.org>
28668
28669         getlogin_r: Small fixes.
28670         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
28671         succeeds.
28672         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
28673         before testing whether getlogin_r is declared. No need to set
28674         HAVE_DECL_GETLOGIN_R to 1.
28675         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
28676
28677 2010-01-09  Bruno Haible  <bruno@clisp.org>
28678
28679         * lib/unistd.in.h (getlogin_r): Add comment.
28680
28681 2010-01-09  Bruno Haible  <bruno@clisp.org>
28682
28683         Tests for module 'getlogin_r'.
28684         * modules/getlogin_r-tests: New file.
28685         * tests/test-getlogin_r.c: New file.
28686
28687 2010-01-09  Jim Meyering  <meyering@redhat.com>
28688
28689         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
28690         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
28691         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
28692
28693 2010-01-08  Simon Josefsson  <simon@josefsson.org>
28694
28695         * lib/dup2.c (rpl_dup2): Improve comment.
28696
28697 2010-01-08  Eric Blake  <ebb9@byu.net>
28698
28699         maint.mk: allow packages to add makefile @@ exceptions
28700         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
28701         (sc_makefile_check): Rename...
28702         (sc_makefile_at_at_check): ...to this, and use hook.
28703
28704         dup2: work around mingw bug
28705         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
28706         Reported by Simon Josefsson.
28707
28708 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
28709
28710         glob: Fix C++ compilation.
28711         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
28712         C++.
28713
28714 2010-01-07  Bruno Haible  <bruno@clisp.org>
28715
28716         Fix indentation of wctype.in.h, broken since 2007-01-06.
28717         * lib/wctype.in.h: Fix indentation of preprocessor directives.
28718
28719 2010-01-07  Bruno Haible  <bruno@clisp.org>
28720
28721         mbslen: Avoid collision with system function.
28722         * lib/string.in.h [MirBSD]: Include <wchar.h>.
28723         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
28724         * m4/mbslen.m4: New file.
28725         * modules/mbslen (Files): Add it.
28726         (configure.ac): Invoke gl_MBSLEN.
28727         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
28728         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
28729         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
28730         via Ian Beckwith <ianb@erislabs.net>.
28731
28732 2010-01-07  Bruno Haible  <bruno@clisp.org>
28733
28734         dirent: Document the last fix.
28735         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
28736
28737 2010-01-07  Bruno Haible  <bruno@clisp.org>
28738
28739         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
28740         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
28741         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
28742         va_list are defined.
28743         * doc/posix-headers/stdio.texi: Document the bug of missing types.
28744         Reported by Eric Blake.
28745
28746 2010-01-07  Bruno Haible  <bruno@clisp.org>
28747
28748         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
28749         * modules/xlist (Depends-on): Add 'list',
28750         * modules/xoset (Depends-on): Add 'oset'.
28751         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28752
28753 2010-01-07  Bruno Haible  <bruno@clisp.org>
28754
28755         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
28756         * doc/posix-functions/strncasecmp.texi: Likewise.
28757
28758 2010-01-07  Bruno Haible  <bruno@clisp.org>
28759
28760         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
28761
28762 2010-01-07  John W. Eaton  <jwe@octave.org>
28763
28764         wctype: allow C++ use
28765         * lib/wctype.in.h: Add extern "C" block for C++.
28766
28767 2010-01-06  Eric Blake  <ebb9@byu.net>
28768
28769         maint.mk: detect incorrect GFDL usage
28770         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
28771
28772 2010-01-06  Jim Meyering  <meyering@redhat.com>
28773         and Eric Blake  <ebb9@byu.net>
28774
28775         maint.mk: ignore multi-line copyright in NEWS
28776         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
28777
28778 2010-01-06  Eric Blake  <ebb9@byu.net>
28779
28780         select: add missing dependency
28781         * modules/select-tests (Depends-on): Move sockets dependency...
28782         * modules/select (Depends-on): ...here.
28783         Reported by Ian Beckwith.
28784
28785         doc: regenerate INSTALL
28786         * doc/INSTALL: Reflect recent autoconf update.
28787         * doc/INSTALL.ISO: Likewise.
28788         * doc/INSTALL.UTF-8: Likewise.
28789
28790         pread: fix compilation on glibc
28791         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
28792         Reported by Ralf Wildenhues.
28793
28794         dirent: fix test failure
28795         * lib/dirent.in.h (includes): Guarantee ino_t.
28796         Reported by Ralf Wildenhues.
28797
28798 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
28799
28800         linkat, renameat: avoid bad free
28801         * lib/at-func2.c (at_func2): Fix typo.
28802         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
28803
28804 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28805
28806         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
28807         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
28808         to avoid failure of symlink test later.
28809
28810 2010-01-06  Eric Blake  <ebb9@byu.net>
28811
28812         stdio, unistd: guarantee ssize_t
28813         * lib/unistd.in.h (includes): Ensure that types required by POSIX
28814         2008 are exposed when needed.
28815         * lib/stdio.in.h (includes): Likewise.
28816         Reported by Ralf Wildenhues.
28817
28818 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
28819
28820         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
28821         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
28822         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
28823
28824 2010-01-06  Jim Meyering  <meyering@redhat.com>
28825
28826         readtokens: this module *does* require xalloc.h
28827         It uses only functions that were omitted by the old syntax-check rule.
28828         * lib/readtokens.c: Include "xalloc.h" once again.
28829         * modules/readtokens (Depends-on): Add xalloc.
28830         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
28831
28832 2010-01-05  Eric Blake  <ebb9@byu.net>
28833
28834         maint: support 'make announcement' from a VPATH build
28835         * top/maint.mk (announcement): Look for correct NEWS file.
28836
28837 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
28838
28839         utimens (fdutimens): ignore a negative FD, per contract
28840         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
28841         when we have a valid file descriptor.  Otherwise, using a brand
28842         new glibc (with just-patched futimens that now fails with EBADF)
28843         would cause this function to fail with ENOSYS.
28844         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
28845         See also http://bugzilla.redhat.com/552320.
28846
28847 2010-01-05  Eric Blake  <ebb9@byu.net>
28848
28849         strcase: document what it provides
28850         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
28851         gnulib module.
28852         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
28853         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
28854
28855 2010-01-05  Jim Meyering  <meyering@redhat.com>
28856
28857         maint: remove useless inclusions of "xalloc.h"
28858         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
28859         * lib/readtokens.c: Likewise.
28860         * lib/same.c: Likewise.
28861         * modules/getloadavg (Depends-on): Remove xalloc.
28862         * modules/readtokens: Likewise.
28863         * modules/same: Likewise.
28864
28865         maint.mk: include 4 more function names in alloca.h-checking regexp
28866         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
28867         regexp.  Before, we would give a false-positive (saying alloca.h
28868         is included unnecessarily) when the only uses involved omitted symbols.
28869
28870         xalloc.h: use consistent formatting
28871         * lib/xalloc.h: Move declarations to start in the first column.
28872
28873 2010-01-05  Eric Blake  <ebb9@byu.net>
28874
28875         mkdir: avoid xalloc
28876         * lib/mkdir.c (includes): Drop unused header.
28877         Reported by John W. Eaton.
28878
28879 2010-01-04  Jim Meyering  <meyering@redhat.com>
28880
28881         nl_langinfo: avoid configure-time syntax error
28882         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
28883         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
28884         the empty string.  Don't let that provoke a shell syntax error.
28885
28886         regcomp, regexec, fnmatch: avoid array bounds read error
28887         * lib/regcomp.c (build_equiv_class): From glibc:
28888         Use only the low 24 bits of a findidx return value as an index
28889         into the weights array.  Patch by Ulrich Drepper:
28890         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
28891         * lib/regexec.c (check_node_accept_bytes): Likewise.
28892         * lib/fnmatch_loop.c (FCT): Likewise.
28893
28894         regcomp: skip collseq lookup when there are no rules
28895         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
28896         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
28897
28898         regcomp: recognize ill-formed { } expressions
28899         * lib/regcomp.c (parse_dup_op): From glibc:
28900         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
28901
28902         regcomp: fix typo in comment
28903         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
28904         s/satisfy/satisfies/.
28905
28906         regcomp: sync from glibc: remove dead store
28907         * lib/regcomp.c (duplicate_node_closure): Remove useless
28908         search_duplicated_node call and dead store.
28909
28910         regcomp: sync from glibc; always use nl_langinfo
28911         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
28912         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
28913         * modules/regex (Depends-on): Add nl_langinfo.
28914
28915 2010-01-04  Eric Blake  <ebb9@byu.net>
28916
28917         fdopendir: fix configure test
28918         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
28919
28920 2010-01-01  Bruno Haible  <bruno@clisp.org>
28921
28922         wchar: Remove unused configure check.
28923         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
28924
28925 2010-01-01  Eric Blake  <ebb9@byu.net>
28926
28927         headers: make check of system header explicit
28928         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
28929         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
28930         ourselves.
28931         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
28932         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
28933         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
28934         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
28935         internals.
28936         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
28937         missing.
28938         Suggested by Bruno Haible.
28939
28940 2010-01-01  Jim Meyering  <meyering@redhat.com>
28941
28942         ChangeLog: tweak to eliminate unnecessary copyright line
28943         * ChangeLog: Remove a copyright line that was mistakenly updated
28944         by today's update-copyright run.  Reported by Eric Blake.
28945
28946         test-update-copyright: don't let envvar setting cause test failure
28947         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
28948
28949 2010-01-01  Bruno Haible  <bruno@clisp.org>
28950
28951         localename: Avoid gcc warning.
28952         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
28953         function if it is not used.
28954
28955 2010-01-01  Jim Meyering  <meyering@redhat.com>
28956
28957         update nearly all FSF copyright year lists to include 2010
28958         Use the same procedure as for 2009, outlined in
28959         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
28960
28961         version-etc: set COPYRIGHT_YEAR to 2010
28962         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
28963
28964 2009-12-31  Eric Blake  <ebb9@byu.net>
28965
28966         doc: correct availability of cygwin 1.5.x getopt
28967         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
28968         variables.
28969         * doc/posix-functions/opterr.texi (opterr): Likewise.
28970         * doc/posix-functions/optind.texi (optind): Likewise.
28971         * doc/posix-functions/optopt.texi (optopt): Likewise.
28972         * doc/posix-functions/tzname.texi (tzname): Likewise.
28973
28974         openat: update maintainer
28975         * modules/openat (Maintainer): Add myself.
28976
28977         utimens: avoid shadowing warning
28978         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
28979         buffers into one, to avoid shadowing, as well as avoiding a
28980         redundant stat.
28981         Reported by Jim Meyering.
28982
28983         test-dup2: avoid compiler warning
28984         * tests/test-dup2.c (is_inheritable): Only define if used.
28985
28986 2010-01-01  Bruno Haible  <bruno@clisp.org>
28987
28988         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
28989         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
28990         defined, use wctomb instead of wcrtomb.
28991
28992 2010-01-01  Bruno Haible  <bruno@clisp.org>
28993
28994         iconv: Reject native Solaris iconv.
28995         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
28996         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
28997
28998 2009-12-31  Bruno Haible  <bruno@clisp.org>
28999
29000         * tests/test-signal.c (main): Remove test of 'SIG'.
29001
29002 2009-12-31  Bruno Haible  <bruno@clisp.org>
29003
29004         spawn: Fix incomplete fix.
29005         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
29006         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
29007         warnings for GNULIB_POSIXCHECK again.
29008         Reported by Eric Blake.
29009
29010 2009-12-31  Bruno Haible  <bruno@clisp.org>
29011
29012         Avoid namespace pollution on glibc systems.
29013         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
29014         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
29015         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
29016         glibc systems.
29017
29018 2009-12-31  Bruno Haible  <bruno@clisp.org>
29019
29020         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
29021         (gl_REPLACE_WCHAR_H): Turn into a no-op.
29022         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
29023         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
29024         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
29025         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
29026         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
29027
29028 2009-12-31  Bruno Haible  <bruno@clisp.org>
29029
29030         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
29031         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
29032         afterwards.
29033
29034 2009-12-31  Bruno Haible  <bruno@clisp.org>
29035
29036         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
29037         SYS_UTSNAME_H.
29038
29039 2009-12-31  Bruno Haible  <bruno@clisp.org>
29040
29041         spawn: Fix misapplied patch.
29042         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
29043         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
29044         warnings for GNULIB_POSIXCHECK.
29045
29046 2009-12-31  Bruno Haible  <bruno@clisp.org>
29047
29048         times: Update after sys_times changed.
29049         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
29050         * modules/times (Files): Add it.
29051         (configure.ac): Invoke gl_FUNC_TIMES.
29052
29053 2009-12-31  Bruno Haible  <bruno@clisp.org>
29054
29055         Use AC_C_INLINE where necessary.
29056         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
29057         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
29058         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
29059         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
29060         * m4/mbfile.m4 (gl_MBFILE): Likewise.
29061         * m4/mbiter.m4 (gl_MBITER): Likewise.
29062         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
29063         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
29064         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
29065         * modules/u64 (configure.ac): Likewise.
29066
29067 2009-12-31  Bruno Haible  <bruno@clisp.org>
29068
29069         Use AC_C_INLINE instead of module 'inline' where possible.
29070         * modules/inline (Description): Clarify purpose.
29071         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
29072         * modules/count-one-bits (Depends-on): Remove inline.
29073         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
29074         * modules/openat (Depends-on): Remove inline.
29075         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
29076         instead of depending on module 'inline'.
29077         * modules/filevercmp (Depends-on, configure.ac): Likewise.
29078         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
29079         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
29080         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
29081         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
29082         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
29083         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
29084         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
29085         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
29086         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
29087         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
29088         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
29089         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
29090         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
29091         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
29092         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
29093         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
29094         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
29095         Likewise.
29096         * modules/unictype/property-ascii-hex-digit (Depends-on,
29097         configure.ac): Likewise.
29098         * modules/unictype/property-bidi-arabic-digit (Depends-on,
29099         configure.ac): Likewise.
29100         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
29101         configure.ac): Likewise.
29102         * modules/unictype/property-bidi-block-separator (Depends-on,
29103         configure.ac): Likewise.
29104         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
29105         configure.ac): Likewise.
29106         * modules/unictype/property-bidi-common-separator (Depends-on,
29107         configure.ac): Likewise.
29108         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
29109         Likewise.
29110         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
29111         configure.ac): Likewise.
29112         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
29113         configure.ac): Likewise.
29114         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
29115         configure.ac): Likewise.
29116         * modules/unictype/property-bidi-european-digit (Depends-on,
29117         configure.ac): Likewise.
29118         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
29119         configure.ac): Likewise.
29120         * modules/unictype/property-bidi-left-to-right (Depends-on,
29121         configure.ac): Likewise.
29122         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
29123         configure.ac): Likewise.
29124         * modules/unictype/property-bidi-other-neutral (Depends-on,
29125         configure.ac): Likewise.
29126         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
29127         Likewise.
29128         * modules/unictype/property-bidi-segment-separator (Depends-on,
29129         configure.ac): Likewise.
29130         * modules/unictype/property-bidi-whitespace (Depends-on,
29131         configure.ac): Likewise.
29132         * modules/unictype/property-combining (Depends-on, configure.ac):
29133         Likewise.
29134         * modules/unictype/property-composite (Depends-on, configure.ac):
29135         Likewise.
29136         * modules/unictype/property-currency-symbol (Depends-on,
29137         configure.ac): Likewise.
29138         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
29139         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
29140         Likewise.
29141         * modules/unictype/property-default-ignorable-code-point (Depends-on,
29142         configure.ac): Likewise.
29143         * modules/unictype/property-deprecated (Depends-on, configure.ac):
29144         Likewise.
29145         * modules/unictype/property-diacritic (Depends-on, configure.ac):
29146         Likewise.
29147         * modules/unictype/property-extender (Depends-on, configure.ac):
29148         Likewise.
29149         * modules/unictype/property-format-control (Depends-on, configure.ac):
29150         Likewise.
29151         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
29152         Likewise.
29153         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
29154         Likewise.
29155         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
29156         Likewise.
29157         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
29158         Likewise.
29159         * modules/unictype/property-hyphen (Depends-on, configure.ac):
29160         Likewise.
29161         * modules/unictype/property-id-continue (Depends-on, configure.ac):
29162         Likewise.
29163         * modules/unictype/property-id-start (Depends-on, configure.ac):
29164         Likewise.
29165         * modules/unictype/property-ideographic (Depends-on, configure.ac):
29166         Likewise.
29167         * modules/unictype/property-ids-binary-operator (Depends-on,
29168         configure.ac): Likewise.
29169         * modules/unictype/property-ids-trinary-operator (Depends-on,
29170         configure.ac): Likewise.
29171         * modules/unictype/property-ignorable-control (Depends-on,
29172         configure.ac): Likewise.
29173         * modules/unictype/property-iso-control (Depends-on, configure.ac):
29174         Likewise.
29175         * modules/unictype/property-join-control (Depends-on, configure.ac):
29176         Likewise.
29177         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
29178         Likewise.
29179         * modules/unictype/property-line-separator (Depends-on, configure.ac):
29180         Likewise.
29181         * modules/unictype/property-logical-order-exception (Depends-on,
29182         configure.ac): Likewise.
29183         * modules/unictype/property-lowercase (Depends-on, configure.ac):
29184         Likewise.
29185         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
29186         * modules/unictype/property-non-break (Depends-on, configure.ac):
29187         Likewise.
29188         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
29189         Likewise.
29190         * modules/unictype/property-numeric (Depends-on, configure.ac):
29191         Likewise.
29192         * modules/unictype/property-other-alphabetic (Depends-on,
29193         configure.ac): Likewise.
29194         * modules/unictype/property-other-default-ignorable-code-point
29195         (Depends-on, configure.ac): Likewise.
29196         * modules/unictype/property-other-grapheme-extend (Depends-on,
29197         configure.ac): Likewise.
29198         * modules/unictype/property-other-id-continue (Depends-on,
29199         configure.ac): Likewise.
29200         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
29201         Likewise.
29202         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
29203         Likewise.
29204         * modules/unictype/property-other-math (Depends-on, configure.ac):
29205         Likewise.
29206         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
29207         Likewise.
29208         * modules/unictype/property-paired-punctuation (Depends-on,
29209         configure.ac): Likewise.
29210         * modules/unictype/property-paragraph-separator (Depends-on,
29211         configure.ac): Likewise.
29212         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
29213         Likewise.
29214         * modules/unictype/property-pattern-white-space (Depends-on,
29215         configure.ac): Likewise.
29216         * modules/unictype/property-private-use (Depends-on, configure.ac):
29217         Likewise.
29218         * modules/unictype/property-punctuation (Depends-on, configure.ac):
29219         Likewise.
29220         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
29221         Likewise.
29222         * modules/unictype/property-radical (Depends-on, configure.ac):
29223         Likewise.
29224         * modules/unictype/property-sentence-terminal (Depends-on,
29225         configure.ac): Likewise.
29226         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
29227         Likewise.
29228         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
29229         * modules/unictype/property-terminal-punctuation (Depends-on,
29230         configure.ac): Likewise.
29231         * modules/unictype/property-titlecase (Depends-on, configure.ac):
29232         Likewise.
29233         * modules/unictype/property-unassigned-code-value (Depends-on,
29234         configure.ac): Likewise.
29235         * modules/unictype/property-unified-ideograph (Depends-on,
29236         configure.ac): Likewise.
29237         * modules/unictype/property-uppercase (Depends-on, configure.ac):
29238         Likewise.
29239         * modules/unictype/property-variation-selector (Depends-on,
29240         configure.ac): Likewise.
29241         * modules/unictype/property-white-space (Depends-on, configure.ac):
29242         Likewise.
29243         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
29244         Likewise.
29245         * modules/unictype/property-xid-start (Depends-on, configure.ac):
29246         Likewise.
29247         * modules/unictype/property-zero-width (Depends-on, configure.ac):
29248         Likewise.
29249         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
29250         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
29251         Likewise.
29252
29253 2009-12-31  Bruno Haible  <bruno@clisp.org>
29254
29255         Remove unnecessary AC_C_INLINE invocation.
29256         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
29257         since 2009-08-21.
29258
29259 2009-12-31  Jim Meyering  <meyering@redhat.com>
29260
29261         maint.mk: don't require explicit gpg_key_ID in cfg.mk
29262         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
29263         With this change, we can all remove the gpg_key_ID = ... definition
29264         from our respective cfg.mk files.
29265
29266         maint.mk: create announcement template in ~/, not in /tmp
29267         * top/maint.mk (emit_upload_commands): Adjust.
29268         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
29269         Remove temporary file, .ci-msg.
29270
29271 2009-12-31  Eric Blake  <ebb9@byu.net>
29272
29273         link-warning: always build headers with link warnings
29274         * modules/arpa_inet (Makefile.am): Always build replacement
29275         header.
29276         * modules/ctype (Makefile.am): Likewise.
29277         * modules/dirent (Makefile.am): Likewise.
29278         * modules/inttypes (Makefile.am): Likewise.
29279         * modules/langinfo (Makefile.am): Likewise.
29280         * modules/locale (Makefile.am): Likewise.
29281         * modules/spawn (Makefile.am): Likewise.
29282         * modules/sys_file (Makefile.am): Likewise.
29283         * modules/sys_ioctl (Makefile.am): Likewise.
29284         * modules/sys_select (Makefile.am): Likewise.
29285         * modules/sys_socket (Makefile.am): Likewise.
29286         * modules/sys_times (Makefile.am): Likewise.
29287         * modules/sys_utsname (Makefile.am): Likewise.
29288         * modules/sys_wait (Makefile.am): Likewise.
29289         * modules/wchar (Makefile.am): Likewise.
29290         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
29291         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
29292         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
29293         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
29294         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
29295         Likewise.
29296         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
29297         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
29298         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
29299         Likewise.
29300         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
29301         Likewise.
29302         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
29303         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
29304         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
29305         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
29306         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
29307         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
29308         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
29309         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
29310         (gl_WCHAR_H_DEFAULTS): Likewise.
29311
29312 2009-12-31  Eric Blake  <ebb9@byu.net>
29313
29314         signal, spawn: use link warnings
29315         * lib/signal.in.h (sigset_t): Make unconditional.
29316         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
29317         (sigpending, sigprocmask, sigaction): Add link warnings.
29318         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
29319         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
29320         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
29321         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
29322         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
29323         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
29324         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
29325         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
29326         (posix_spawn_file_actions_destroy)
29327         (posix_spawn_file_actions_addopen)
29328         (posix_spawn_file_actions_addclose)
29329         (posix_spawn_file_actions_adddup2): Likewise.
29330         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
29331         * tests/test-signal.c (main): Enhance test.
29332
29333         spawn: improve wrapper support
29334         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
29335         (gl_SPAWN_H_DEFAULTS): New defaults.
29336         * modules/spawn (Makefile.am): Substitute them.
29337         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
29338         Only declare if missing or broken.
29339
29340         sys_times, sys_utsname: use include_next
29341         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
29342         header.
29343         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
29344         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
29345         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
29346         * modules/sys_times (Depends-on): Add include_next.
29347         (Makefile.am): Substitute additional values.
29348         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
29349         * lib/sys_times.in.h (includes): Include native header, if
29350         available.
29351         * lib/sys_utsname.in.h (includes): Likewise.
29352         * tests/test-sys_times.c (main): Enhance test.
29353
29354         fdutimensat: revert prior patch
29355         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
29356         utimens.h.
29357         Reported by Bruno Haible.
29358
29359 2009-12-30  Eric Blake  <ebb9@byu.net>
29360
29361         sys_wait: drop link-warning dependency
29362         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
29363         link-warning efforts.
29364         * lib/sys_wait.in.h: Likewise.
29365
29366         fdutimensat: remove bogus dependency
29367         * modules/fdutimensat (Depends-on): Drop inline.
29368
29369         unistd: fix typo
29370         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
29371
29372 2009-12-30  Bruno Haible  <bruno@clisp.org>
29373
29374         Fix compilation error with Solaris cc.
29375         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
29376         * lib/unicase/u16-is-invariant.c: Likewise.
29377         * lib/unicase/u32-is-invariant.c: Likewise.
29378         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
29379
29380 2009-12-30  Bruno Haible  <bruno@clisp.org>
29381
29382         Fix test crash.
29383         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
29384         locales.
29385         Reported by Simon Josefsson <simon@josefsson.org>.
29386
29387 2009-12-30  Bruno Haible  <bruno@clisp.org>
29388
29389         Fix compilation error on most platforms.
29390         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
29391         Reported by Simon Josefsson <simon@josefsson.org>
29392         and Nelson H. F. Beebe <beebe@math.utah.edu>.
29393
29394 2009-12-30  Eric Blake  <ebb9@byu.net>
29395
29396         futimens, utimensat: work around ntfs-3g bug
29397         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
29398         a ctime bug is present, and expand workaround to cover ntfs-3g.
29399         * lib/utimens.c (fdutimens, lutimens): Likewise.
29400         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
29401         (validate_timespec): Adjust return value.
29402         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
29403         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
29404         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
29405
29406 2009-12-29  Eric Blake  <ebb9@byu.net>
29407
29408         link-warning: make usage consistent
29409         * modules/ctype (Depends-on): Add link-warning.
29410         (Makefile.am): Update rules accordingly.
29411         * modules/langinfo (Depends-on, Makefile.am): Likewise.
29412         * modules/locale (Depends-on, Makefile.am): Likewise.
29413         * modules/sys_file (Makefile.am): Likewise.
29414         * modules/getopt-posix (Makefile.am): Delete unused link warning
29415         efforts.
29416         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
29417         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
29418         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
29419         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
29420
29421         stdio: remove unused variables
29422         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
29423         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
29424         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
29425
29426         tests: test more substitute headers
29427         * modules/ctype-tests: New file.
29428         * modules/dirent-tests: Likewise.
29429         * modules/spawn-tests: Likewise.
29430         * modules/sys_file-tests: Likewise.
29431         * modules/sys_ioctl-tests: Likewise.
29432         * modules/sys_wait-tests: Likewise.
29433         * tests/test-ctype.c: Likewise.
29434         * tests/test-dirent.c: Likewise.
29435         * tests/test-spawn.c: Likewise.
29436         * tests/test-sys_file.c: Likewise.
29437         * tests/test-sys_ioctl.c: Likewise.
29438         * tests/test-sys_wait.c: Likewise.
29439         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
29440         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
29441         whether or not flock is in use.
29442
29443         tests: remove License section from module
29444         * modules/arpa_inet-tests: Remove unneeded section.
29445         * modules/byteswap-tests: Likewise.
29446         * modules/ceilf-tests: Likewise.
29447         * modules/ceill-tests: Likewise.
29448         * modules/crypto/des-tests: Likewise.
29449         * modules/crypto/gc-arcfour-tests: Likewise.
29450         * modules/crypto/gc-arctwo-tests: Likewise.
29451         * modules/crypto/gc-des-tests: Likewise.
29452         * modules/crypto/gc-hmac-md5-tests: Likewise.
29453         * modules/crypto/gc-hmac-sha1-tests: Likewise.
29454         * modules/crypto/gc-md2-tests: Likewise.
29455         * modules/crypto/gc-md4-tests: Likewise.
29456         * modules/crypto/gc-md5-tests: Likewise.
29457         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
29458         * modules/crypto/gc-rijndael-tests: Likewise.
29459         * modules/crypto/gc-sha1-tests: Likewise.
29460         * modules/crypto/gc-tests: Likewise.
29461         * modules/crypto/md2-tests: Likewise.
29462         * modules/crypto/md4-tests: Likewise.
29463         * modules/fcntl-h-tests: Likewise.
29464         * modules/floorf-tests: Likewise.
29465         * modules/floorl-tests: Likewise.
29466         * modules/frexp-nolibm-tests: Likewise.
29467         * modules/frexp-tests: Likewise.
29468         * modules/frexpl-nolibm-tests: Likewise.
29469         * modules/frexpl-tests: Likewise.
29470         * modules/getaddrinfo-tests: Likewise.
29471         * modules/inttypes-tests: Likewise.
29472         * modules/isfinite-tests: Likewise.
29473         * modules/isinf-tests: Likewise.
29474         * modules/ldexpl-tests: Likewise.
29475         * modules/locale-tests: Likewise.
29476         * modules/math-tests: Likewise.
29477         * modules/netdb-tests: Likewise.
29478         * modules/netinet_in-tests: Likewise.
29479         * modules/printf-frexp-tests: Likewise.
29480         * modules/printf-frexpl-tests: Likewise.
29481         * modules/priv-set-tests: Likewise.
29482         * modules/random_r-tests: Likewise.
29483         * modules/round-tests: Likewise.
29484         * modules/roundf-tests: Likewise.
29485         * modules/roundl-tests: Likewise.
29486         * modules/search-tests: Likewise.
29487         * modules/select-tests: Likewise.
29488         * modules/signal-tests: Likewise.
29489         * modules/stdbool-tests: Likewise.
29490         * modules/stddef-tests: Likewise.
29491         * modules/stdint-tests: Likewise.
29492         * modules/stdio-tests: Likewise.
29493         * modules/stdlib-tests: Likewise.
29494         * modules/string-tests: Likewise.
29495         * modules/strings-tests: Likewise.
29496         * modules/sys_select-tests: Likewise.
29497         * modules/sys_socket-tests: Likewise.
29498         * modules/sys_stat-tests: Likewise.
29499         * modules/sys_time-tests: Likewise.
29500         * modules/sys_utsname-tests: Likewise.
29501         * modules/sysexits-tests: Likewise.
29502         * modules/time-tests: Likewise.
29503         * modules/trunc-tests: Likewise.
29504         * modules/truncf-tests: Likewise.
29505         * modules/truncl-tests: Likewise.
29506         * modules/tsearch-tests: Likewise.
29507         * modules/unistd-tests: Likewise.
29508         * modules/wchar-tests: Likewise.
29509         * modules/wctype-tests: Likewise.
29510
29511         tests: fix license on several tests
29512         * tests/test-des.c: Update to GPLv3+.
29513         * tests/test-flock.c: Likewise.
29514         * tests/test-fsync.c: Likewise.
29515         * tests/test-futimens.h: Likewise.
29516         * tests/test-gc-arcfour.c: Likewise.
29517         * tests/test-gc-arctwo.c: Likewise.
29518         * tests/test-gc-des.c: Likewise.
29519         * tests/test-gc-hmac-md5.c: Likewise.
29520         * tests/test-gc-hmac-sha1.c: Likewise.
29521         * tests/test-gc-md2.c: Likewise.
29522         * tests/test-gc-md4.c: Likewise.
29523         * tests/test-gc-md5.c: Likewise.
29524         * tests/test-gc-pbkdf2-sha1.c: Likewise.
29525         * tests/test-gc-rijndael.c: Likewise.
29526         * tests/test-gc-sha1.c: Likewise.
29527         * tests/test-gc.c: Likewise.
29528         * tests/test-getcwd.c: Likewise.
29529         * tests/test-link.c: Likewise.
29530         * tests/test-link.h: Likewise.
29531         * tests/test-lutimens.h: Likewise.
29532         * tests/test-md2.c: Likewise.
29533         * tests/test-md4.c: Likewise.
29534         * tests/test-mkdir.h: Likewise.
29535         * tests/test-rename.c: Likewise.
29536         * tests/test-rename.h: Likewise.
29537         * tests/test-safe-alloc.c: Likewise.
29538         * tests/test-utimens-common.h: Likewise.
29539         * tests/test-utimens.h: Likewise.
29540
29541         maint: sync license texts
29542         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
29543         * doc/gpl-3.0.texi: Revert copyright year update.
29544         * doc/lgpl-3.0.texi: Likewise.
29545
29546 2009-12-29  Jim Meyering  <meyering@redhat.com>
29547
29548         update nearly all FSF copyright year lists to include 2009
29549         The files named by the following are exempted:
29550             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
29551               test -f "$dst" && { echo "$dst"; continue; }
29552               test -d "$dst" || continue
29553               echo "$dst"/$(basename "$src")
29554             done > exempt
29555             git ls-files tests/unictype >> exempt
29556         In the remaining files, convert to all-interval notation if
29557         - there is already at least one year interval like 2000-2003
29558         - the file is maintained by me
29559         - the file is in lib/uni*/, where that style already prevails
29560         Otherwise, use update-copyright's default.
29561
29562 2009-12-29  Simon Josefsson  <simon@josefsson.org>
29563         and Eric Blake  <ebb9@byu.net>
29564
29565         tests: don't require debug system() to pass
29566         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
29567         * tests/test-rmdir.h (test_rmdir_func): Likewise.
29568         * tests/test-unlink.h (test_unlink_func): Likewise.
29569         * tests/test-fstatat.c (main): ...into callers.
29570         * tests/test-lstat.c (main): Likewise.
29571         * tests/test-rmdir.c (main): Likewise.
29572         * tests/test-unlink.c (main): Likewise.
29573         * tests/test-unlinkat.c (main): Likewise.
29574         * tests/test-areadlink-with-size.c (main): Don't require a
29575         debug-only system call to pass, aiding cross-testing to mingw.
29576         * tests/test-areadlink.c (main): Likewise.
29577         * tests/test-areadlinkat-with-size.c (main): Likewise.
29578         * tests/test-areadlinkat.c (main): Likewise.
29579         * tests/test-canonicalize-lgpl.c (main): Likewise.
29580         * tests/test-canonicalize.c (main): Likewise.
29581         * tests/test-chown.c (main): Likewise.
29582         * tests/test-fchownat.c (main): Likewise.
29583         * tests/test-lchown.c (main): Likewise.
29584         * tests/test-fdutimensat.c (main): Likewise.
29585         * tests/test-futimens.c (main): Likewise.
29586         * tests/test-link.c (main): Likewise.
29587         * tests/test-linkat.c (main): Likewise.
29588         * tests/test-mkdir.c (main): Likewise.
29589         * tests/test-mkdirat.c (main): Likewise.
29590         * tests/test-mkfifo.c (main): Likewise.
29591         * tests/test-mkfifoat.c (main): Likewise.
29592         * tests/test-mknod.c (main): Likewise.
29593         * tests/test-readlink.c (main): Likewise.
29594         * tests/test-remove.c (main): Likewise.
29595         * tests/test-rename.c (main): Likewise.
29596         * tests/test-renameat.c (main): Likewise.
29597         * tests/test-symlink.c (main): Likewise.
29598         * tests/test-symlinkat.c (main): Likewise.
29599         * tests/test-utimens.c (main): Likewise.
29600         * tests/test-utimensat.c (main): Likewise.
29601
29602 2009-12-29  Simon Josefsson  <simon@josefsson.org>
29603
29604         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
29605         on $(UNUSED_PARAMETER_H) to avoid build failure.
29606
29607 2009-12-28  Jim Meyering  <meyering@redhat.com>
29608
29609         update-copyright: you may specify a max. line length other than 72
29610         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
29611
29612         maint: use consistent FSF copyright line syntax
29613         * lib/posixtm.c: Add missing comma in FSF copyright line.
29614         * lib/posixtm.h: Likewise.
29615         * lib/getugroups.c: Add missing ", Inc.".
29616
29617         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
29618         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
29619         FSF copyright line.  Remove trailing blanks.
29620
29621 2009-12-28  Eric Blake  <ebb9@byu.net>
29622
29623         test-dup2: reduce dependencies
29624         * modules/cloexec (Configure.ac): Set witness.
29625         * modules/dup2-tests (Depends-on): Drop cloexec.
29626         * tests/test-dup2.c (main): Skip portion of test if cloexec module
29627         not present.
29628         Suggested by Bruno Haible.
29629
29630 2009-12-26  Bruno Haible  <bruno@clisp.org>
29631
29632         Remove an unneeded dependency.
29633         * modules/fseterr (Depends-on): Remove dup2.
29634
29635 2009-12-26  Eric Blake  <ebb9@byu.net>
29636
29637         tests: use macros.h in more places
29638         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
29639         (ASSERT_STREAM): Provide default of stderr.
29640         * tests/test-dirent-safer.c: Include macros.h, using alternate
29641         stream for assertions.
29642         * tests/test-dup-safer.c: Likewise.
29643         * tests/test-freopen-safer.c: Likewise.
29644         * tests/test-getopt.c: Likewise.
29645         * tests/test-openat-safer.c: Likewise.
29646         * tests/test-pipe.c: Likewise.
29647         * tests/test-popen-safer.c: Likewise.
29648         * modules/dirent-safer-tests (Files): Include macros.h.
29649         * modules/unistd-safer-tests (Files): Likewise.
29650         * modules/freopen-safer-tests (Files): Likewise.
29651         * modules/getopt-posix-tests (Files): Likewise.
29652         * modules/openat-safer-tests (Files): Likewise.
29653         * modules/pipe-tests (Files): Likewise.
29654
29655 2009-12-26  Bruno Haible  <bruno@clisp.org>
29656
29657         javacomp: Portability fix.
29658         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
29659         that it also works on Solaris.
29660
29661 2009-12-26  Bruno Haible  <bruno@clisp.org>
29662
29663         localename: Fix storage allocation of gl_locale_name_thread's result.
29664         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
29665         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
29666         all platforms that have 'uselocale'.
29667         (gl_locale_name_thread_unsafe): New function, extracted from
29668         gl_locale_name_thread.
29669         (gl_locale_name_thread): Call struniq on all platforms that have
29670         'uselocale'.
29671         * tests/test-localename.c (test_locale_name_thread): Check that the
29672         resulting strings are permanently allocated.
29673         * modules/localename-tests (Depends-on): Add strdup.
29674
29675 2009-12-26  Bruno Haible  <bruno@clisp.org>
29676
29677         * tests/test-localename.c (categories): Fill in the strings.
29678
29679 2009-12-26  Jim Meyering  <meyering@redhat.com>
29680
29681         isdir: complete the removal of m4/isdir.m4
29682         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
29683
29684         isdir: clean up, since at least grep still uses it
29685         * lib/isdir.c: Include "isdir.h".
29686         (S_ISDIR): Remove now-unneeded definition.
29687         * modules/isdir (Files): Add lib/isdir.h.
29688         * lib/isdir.h: New file, with declaration.
29689         * m4/isdir.m4: Remove file -- unneeded.
29690
29691 2009-12-25  Bruno Haible  <bruno@clisp.org>
29692
29693         selinux-h: Make generated .h files standalone.
29694         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
29695         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
29696         * lib/se-selinux.in.h: Likewise.
29697         * modules/selinux-h (Depends-on): Add unused-parameter.
29698         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
29699         selinux/selinux.h and selinux/context.h.
29700         Suggested by Eric Blake.
29701
29702 2009-12-25  Bruno Haible  <bruno@clisp.org>
29703
29704         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
29705         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
29706         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
29707         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
29708         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
29709
29710 2009-12-24  Bruno Haible  <bruno@clisp.org>
29711
29712         openat: Fix warning.
29713         * lib/openat-proc.c: Include <unistd.h>.
29714
29715 2009-12-24  Bruno Haible  <bruno@clisp.org>
29716
29717         New module 'unused-parameter'.
29718         * build-aux/unused-parameter.h: New file, extracted from earlier
29719         gnulib-common.m4.
29720         * modules/unused-parameter: New file.
29721         * lib/unistr.h: Include unused-parameter.h.
29722         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
29723         _GL_UNUSED.
29724         * modules/unistr/base (Depends-on): Add unused-parameter.
29725
29726 2009-12-24  Bruno Haible  <bruno@clisp.org>
29727
29728         Add missing dependencies to 'extensions' module.
29729         * m4/extensions.m4: Add comment.
29730         * modules/accept4 (Depends-on): Add extensions.
29731         * modules/dup3 (Depends-on): Likewise.
29732         * modules/fcntl (Depends-on): Likewise.
29733         * modules/futimens (Depends-on): Likewise.
29734         * modules/mknod (Depends-on): Likewise.
29735         * modules/pipe2 (Depends-on): Likewise.
29736         * modules/stat-time (Depends-on): Likewise.
29737         * modules/strcasestr-simple (Depends-on): Likewise.
29738         * modules/strsignal (Depends-on): Likewise.
29739         * modules/utimensat (Depends-on): Likewise.
29740         * modules/localcharset (Depends-on): Likewise. Needed because of
29741         gl_FCNTL_O_FLAGS.
29742         * modules/wcrtomb (Depends-on): Likewise. Needed because of
29743         AC_TYPE_MBSTATE_T.
29744         * modules/wcsnrtombs (Depends-on): Likewise.
29745         * modules/wcsrtombs (Depends-on): Likewise.
29746
29747 2009-12-24  Bruno Haible  <bruno@clisp.org>
29748
29749         binary-io: Avoid gcc warning due to SET_BINARY.
29750         * lib/binary-io.h (SET_BINARY): Cast the result to void.
29751         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
29752
29753 2009-12-24  Bruno Haible  <bruno@clisp.org>
29754
29755         Avoid future namespace pollution on glibc systems.
29756         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
29757         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
29758         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
29759         glibc systems.
29760
29761 2009-12-24  Bruno Haible  <bruno@clisp.org>
29762
29763         Refactor common macros used in tests.
29764         * tests/macros.h: New file.
29765         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
29766         and/or <stdlib.h>, if appropriate.
29767         (ASSERT, SIZEOF): Remove macros.
29768         * tests/test-areadlink-with-size.c: Likewise.
29769         * tests/test-areadlinkat.c: Likewise.
29770         * tests/test-areadlinkat-with-size.c: Likewise.
29771         * tests/test-argmatch.c: Likewise.
29772         * tests/test-argv-iter.c: Likewise.
29773         * tests/test-array-mergesort.c: Likewise.
29774         * tests/test-array_list.c: Likewise.
29775         * tests/test-array_oset.c: Likewise.
29776         * tests/test-avltree_list.c: Likewise.
29777         * tests/test-avltree_oset.c: Likewise.
29778         * tests/test-avltreehash_list.c: Likewise.
29779         * tests/test-base64.c: Likewise.
29780         * tests/test-binary-io.c: Likewise.
29781         * tests/test-bitrotate.c: Likewise.
29782         * tests/test-btowc.c: Likewise.
29783         * tests/test-byteswap.c: Likewise.
29784         * tests/test-c-ctype.c: Likewise.
29785         * tests/test-c-stack.c: Likewise.
29786         * tests/test-c-strcasecmp.c: Likewise.
29787         * tests/test-c-strcasestr.c: Likewise.
29788         * tests/test-c-strncasecmp.c: Likewise.
29789         * tests/test-c-strstr.c: Likewise.
29790         * tests/test-canonicalize-lgpl.c: Likewise.
29791         * tests/test-canonicalize.c: Likewise.
29792         * tests/test-carray_list.c: Likewise.
29793         * tests/test-ceilf1.c: Likewise.
29794         * tests/test-ceilf2.c: Likewise.
29795         * tests/test-ceill.c: Likewise.
29796         * tests/test-chown.c: Likewise.
29797         * tests/test-cloexec.c: Likewise.
29798         * tests/test-copy-acl.c: Likewise.
29799         * tests/test-copy-file.c: Likewise.
29800         * tests/test-count-one-bits.c: Likewise.
29801         * tests/test-dprintf-posix.c: Likewise.
29802         * tests/test-dup2.c: Likewise.
29803         * tests/test-dup3.c: Likewise.
29804         * tests/test-duplocale.c: Likewise.
29805         * tests/test-fbufmode.c: Likewise.
29806         * tests/test-fchdir.c: Likewise.
29807         * tests/test-fchownat.c: Likewise.
29808         * tests/test-fcntl-safer.c: Likewise.
29809         * tests/test-fcntl.c: Likewise.
29810         * tests/test-fdopendir.c: Likewise.
29811         * tests/test-fdutimensat.c: Likewise.
29812         * tests/test-fflush2.c: Likewise.
29813         * tests/test-file-has-acl.c: Likewise.
29814         * tests/test-filevercmp.c: Likewise.
29815         * tests/test-flock.c: Likewise.
29816         * tests/test-floorf1.c: Likewise.
29817         * tests/test-floorf2.c: Likewise.
29818         * tests/test-floorl.c: Likewise.
29819         * tests/test-fnmatch.c: Likewise.
29820         * tests/test-fopen.h: Likewise.
29821         * tests/test-fpending.c: Likewise.
29822         * tests/test-fprintf-posix.c: Likewise.
29823         * tests/test-fpurge.c: Likewise.
29824         * tests/test-freadable.c: Likewise.
29825         * tests/test-freadahead.c: Likewise.
29826         * tests/test-freading.c: Likewise.
29827         * tests/test-freadptr.c: Likewise.
29828         * tests/test-freadptr2.c: Likewise.
29829         * tests/test-freadseek.c: Likewise.
29830         * tests/test-freopen.c: Likewise.
29831         * tests/test-frexp.c: Likewise.
29832         * tests/test-frexpl.c: Likewise.
29833         * tests/test-fseek.c: Likewise.
29834         * tests/test-fseeko.c: Likewise.
29835         * tests/test-fstatat.c: Likewise.
29836         * tests/test-fstrcmp.c: Likewise.
29837         * tests/test-fsync.c: Likewise.
29838         * tests/test-ftell.c: Likewise.
29839         * tests/test-ftello.c: Likewise.
29840         * tests/test-func.c: Likewise.
29841         * tests/test-futimens.c: Likewise.
29842         * tests/test-fwritable.c: Likewise.
29843         * tests/test-fwriting.c: Likewise.
29844         * tests/test-getcwd.c: Likewise.
29845         * tests/test-getdate.c: Likewise.
29846         * tests/test-getdelim.c: Likewise.
29847         * tests/test-getdtablesize.c: Likewise.
29848         * tests/test-getgroups.c: Likewise.
29849         * tests/test-getline.c: Likewise.
29850         * tests/test-getndelim2.c: Likewise.
29851         * tests/test-glob.c: Likewise.
29852         * tests/test-hash.c: Likewise.
29853         * tests/test-i-ring.c: Likewise.
29854         * tests/test-iconv-utf.c: Likewise.
29855         * tests/test-iconv.c: Likewise.
29856         * tests/test-idpriv-drop.c: Likewise.
29857         * tests/test-idpriv-droptemp.c: Likewise.
29858         * tests/test-inet_ntop.c: Likewise.
29859         * tests/test-inet_pton.c: Likewise.
29860         * tests/test-isblank.c: Likewise.
29861         * tests/test-isfinite.c: Likewise.
29862         * tests/test-isinf.c: Likewise.
29863         * tests/test-isnan.c: Likewise.
29864         * tests/test-isnand.h: Likewise.
29865         * tests/test-isnanf.h: Likewise.
29866         * tests/test-isnanl.h: Likewise.
29867         * tests/test-lchown.c: Likewise.
29868         * tests/test-ldexpl.c: Likewise.
29869         * tests/test-link.c: Likewise.
29870         * tests/test-linkat.c: Likewise.
29871         * tests/test-linked_list.c: Likewise.
29872         * tests/test-linkedhash_list.c: Likewise.
29873         * tests/test-localename.c: Likewise.
29874         * tests/test-lseek.c: Likewise.
29875         * tests/test-lstat.c: Likewise.
29876         * tests/test-mbmemcasecmp.c: Likewise.
29877         * tests/test-mbmemcasecoll.c: Likewise.
29878         * tests/test-mbrtowc.c: Likewise.
29879         * tests/test-mbscasecmp.c: Likewise.
29880         * tests/test-mbscasestr1.c: Likewise.
29881         * tests/test-mbscasestr2.c: Likewise.
29882         * tests/test-mbscasestr3.c: Likewise.
29883         * tests/test-mbscasestr4.c: Likewise.
29884         * tests/test-mbschr.c: Likewise.
29885         * tests/test-mbscspn.c: Likewise.
29886         * tests/test-mbsinit.c: Likewise.
29887         * tests/test-mbsncasecmp.c: Likewise.
29888         * tests/test-mbsnrtowcs.c: Likewise.
29889         * tests/test-mbspbrk.c: Likewise.
29890         * tests/test-mbspcasecmp.c: Likewise.
29891         * tests/test-mbsrchr.c: Likewise.
29892         * tests/test-mbsrtowcs.c: Likewise.
29893         * tests/test-mbsspn.c: Likewise.
29894         * tests/test-mbsstr1.c: Likewise.
29895         * tests/test-mbsstr2.c: Likewise.
29896         * tests/test-mbsstr3.c: Likewise.
29897         * tests/test-memchr.c: Likewise.
29898         * tests/test-memchr2.c: Likewise.
29899         * tests/test-memcmp.c: Likewise.
29900         * tests/test-memmem.c: Likewise.
29901         * tests/test-memrchr.c: Likewise.
29902         * tests/test-mkdir.c: Likewise.
29903         * tests/test-mkdirat.c: Likewise.
29904         * tests/test-mkfifo.c: Likewise.
29905         * tests/test-mkfifoat.c: Likewise.
29906         * tests/test-mknod.c: Likewise.
29907         * tests/test-nanosleep.c: Likewise.
29908         * tests/test-nl_langinfo.c: Likewise.
29909         * tests/test-obstack-printf.c: Likewise.
29910         * tests/test-open.c: Likewise.
29911         * tests/test-openat.c: Likewise.
29912         * tests/test-pipe-filter-gi1.c: Likewise.
29913         * tests/test-pipe-filter-gi2-main.c: Likewise.
29914         * tests/test-pipe-filter-ii1.c: Likewise.
29915         * tests/test-pipe-filter-ii2-main.c: Likewise.
29916         * tests/test-pipe2.c: Likewise.
29917         * tests/test-popen.h: Likewise.
29918         * tests/test-posixtm.c: Likewise.
29919         * tests/test-pread.c: Likewise.
29920         * tests/test-printf-frexp.c: Likewise.
29921         * tests/test-printf-frexpl.c: Likewise.
29922         * tests/test-printf-posix.c: Likewise.
29923         * tests/test-priv-set.c: Likewise.
29924         * tests/test-quotearg.c: Likewise.
29925         * tests/test-random_r.c: Likewise.
29926         * tests/test-rawmemchr.c: Likewise.
29927         * tests/test-rbtree_list.c: Likewise.
29928         * tests/test-rbtree_oset.c: Likewise.
29929         * tests/test-rbtreehash_list.c: Likewise.
29930         * tests/test-readlink.c: Likewise.
29931         * tests/test-remove.c: Likewise.
29932         * tests/test-rename.c: Likewise.
29933         * tests/test-renameat.c: Likewise.
29934         * tests/test-rmdir.c: Likewise.
29935         * tests/test-round1.c: Likewise.
29936         * tests/test-roundf1.c: Likewise.
29937         * tests/test-roundl.c: Likewise.
29938         * tests/test-safe-alloc.c: Likewise.
29939         * tests/test-sameacls.c: Likewise.
29940         * tests/test-set-mode-acl.c: Likewise.
29941         * tests/test-setenv.c: Likewise.
29942         * tests/test-sigaction.c: Likewise.
29943         * tests/test-signbit.c: Likewise.
29944         * tests/test-sleep.c: Likewise.
29945         * tests/test-snprintf-posix.c: Likewise.
29946         * tests/test-snprintf.c: Likewise.
29947         * tests/test-sprintf-posix.c: Likewise.
29948         * tests/test-stat-time.c: Likewise.
29949         * tests/test-stat.c: Likewise.
29950         * tests/test-strcasestr.c: Likewise.
29951         * tests/test-strchrnul.c: Likewise.
29952         * tests/test-strerror.c: Likewise.
29953         * tests/test-striconv.c: Likewise.
29954         * tests/test-striconveh.c: Likewise.
29955         * tests/test-striconveha.c: Likewise.
29956         * tests/test-strsignal.c: Likewise.
29957         * tests/test-strstr.c: Likewise.
29958         * tests/test-strtod.c: Likewise.
29959         * tests/test-strverscmp.c: Likewise.
29960         * tests/test-symlink.c: Likewise.
29961         * tests/test-symlinkat.c: Likewise.
29962         * tests/test-trunc1.c: Likewise.
29963         * tests/test-trunc2.c: Likewise.
29964         * tests/test-truncf1.c: Likewise.
29965         * tests/test-truncf2.c: Likewise.
29966         * tests/test-truncl.c: Likewise.
29967         * tests/test-uname.c: Likewise.
29968         * tests/test-unlink.c: Likewise.
29969         * tests/test-unlinkat.c: Likewise.
29970         * tests/test-unsetenv.c: Likewise.
29971         * tests/test-usleep.c: Likewise.
29972         * tests/test-utimens.c: Likewise.
29973         * tests/test-utimensat.c: Likewise.
29974         * tests/test-vasnprintf-posix.c: Likewise.
29975         * tests/test-vasnprintf-posix2.c: Likewise.
29976         * tests/test-vasnprintf.c: Likewise.
29977         * tests/test-vasprintf-posix.c: Likewise.
29978         * tests/test-vasprintf.c: Likewise.
29979         * tests/test-vdprintf-posix.c: Likewise.
29980         * tests/test-vfprintf-posix.c: Likewise.
29981         * tests/test-vprintf-posix.c: Likewise.
29982         * tests/test-vsnprintf-posix.c: Likewise.
29983         * tests/test-vsnprintf.c: Likewise.
29984         * tests/test-vsprintf-posix.c: Likewise.
29985         * tests/test-wcrtomb.c: Likewise.
29986         * tests/test-wcsnrtombs.c: Likewise.
29987         * tests/test-wcsrtombs.c: Likewise.
29988         * tests/test-wctype.c: Likewise.
29989         * tests/test-wcwidth.c: Likewise.
29990         * tests/test-xfprintf-posix.c: Likewise.
29991         * tests/test-xmemdup0.c: Likewise.
29992         * tests/test-xprintf-posix.c: Likewise.
29993         * tests/test-xvasprintf.c: Likewise.
29994         * tests/unicase/test-locale-language.c: Likewise.
29995         * tests/unicase/test-mapping-part1.h: Likewise.
29996         * tests/unicase/test-predicate-part1.h: Likewise.
29997         * tests/unicase/test-u8-casecmp.c: Likewise.
29998         * tests/unicase/test-u8-casecoll.c: Likewise.
29999         * tests/unicase/test-u8-casefold.c: Likewise.
30000         * tests/unicase/test-u8-is-cased.c: Likewise.
30001         * tests/unicase/test-u8-is-casefolded.c: Likewise.
30002         * tests/unicase/test-u8-is-lowercase.c: Likewise.
30003         * tests/unicase/test-u8-is-titlecase.c: Likewise.
30004         * tests/unicase/test-u8-is-uppercase.c: Likewise.
30005         * tests/unicase/test-u8-tolower.c: Likewise.
30006         * tests/unicase/test-u8-totitle.c: Likewise.
30007         * tests/unicase/test-u8-toupper.c: Likewise.
30008         * tests/unicase/test-u16-casecmp.c: Likewise.
30009         * tests/unicase/test-u16-casecoll.c: Likewise.
30010         * tests/unicase/test-u16-casefold.c: Likewise.
30011         * tests/unicase/test-u16-is-cased.c: Likewise.
30012         * tests/unicase/test-u16-is-casefolded.c: Likewise.
30013         * tests/unicase/test-u16-is-lowercase.c: Likewise.
30014         * tests/unicase/test-u16-is-titlecase.c: Likewise.
30015         * tests/unicase/test-u16-is-uppercase.c: Likewise.
30016         * tests/unicase/test-u16-tolower.c: Likewise.
30017         * tests/unicase/test-u16-totitle.c: Likewise.
30018         * tests/unicase/test-u16-toupper.c: Likewise.
30019         * tests/unicase/test-u32-casecmp.c: Likewise.
30020         * tests/unicase/test-u32-casecoll.c: Likewise.
30021         * tests/unicase/test-u32-casefold.c: Likewise.
30022         * tests/unicase/test-u32-is-cased.c: Likewise.
30023         * tests/unicase/test-u32-is-casefolded.c: Likewise.
30024         * tests/unicase/test-u32-is-lowercase.c: Likewise.
30025         * tests/unicase/test-u32-is-titlecase.c: Likewise.
30026         * tests/unicase/test-u32-is-uppercase.c: Likewise.
30027         * tests/unicase/test-u32-tolower.c: Likewise.
30028         * tests/unicase/test-u32-totitle.c: Likewise.
30029         * tests/unicase/test-u32-toupper.c: Likewise.
30030         * tests/unicase/test-ulc-casecmp.c: Likewise.
30031         * tests/unicase/test-ulc-casecoll.c: Likewise.
30032         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
30033         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
30034         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
30035         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
30036         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
30037         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
30038         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
30039         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
30040         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
30041         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
30042         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
30043         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
30044         * tests/unictype/test-bidi_byname.c: Likewise.
30045         * tests/unictype/test-bidi_name.c: Likewise.
30046         * tests/unictype/test-bidi_of.c: Likewise.
30047         * tests/unictype/test-bidi_test.c: Likewise.
30048         * tests/unictype/test-block_list.c: Likewise.
30049         * tests/unictype/test-block_of.c: Likewise.
30050         * tests/unictype/test-block_test.c: Likewise.
30051         * tests/unictype/test-categ_and.c: Likewise.
30052         * tests/unictype/test-categ_and_not.c: Likewise.
30053         * tests/unictype/test-categ_byname.c: Likewise.
30054         * tests/unictype/test-categ_name.c: Likewise.
30055         * tests/unictype/test-categ_none.c: Likewise.
30056         * tests/unictype/test-categ_of.c: Likewise.
30057         * tests/unictype/test-categ_or.c: Likewise.
30058         * tests/unictype/test-categ_test_withtable.c: Likewise.
30059         * tests/unictype/test-combining.c: Likewise.
30060         * tests/unictype/test-decdigit.c: Likewise.
30061         * tests/unictype/test-digit.c: Likewise.
30062         * tests/unictype/test-mirror.c: Likewise.
30063         * tests/unictype/test-numeric.c: Likewise.
30064         * tests/unictype/test-pr_byname.c: Likewise.
30065         * tests/unictype/test-pr_test.c: Likewise.
30066         * tests/unictype/test-predicate-part1.h: Likewise.
30067         * tests/unictype/test-scripts.c: Likewise.
30068         * tests/unictype/test-sy_c_ident.c: Likewise.
30069         * tests/unictype/test-sy_java_ident.c: Likewise.
30070         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
30071         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
30072         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
30073         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
30074         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
30075         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
30076         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
30077         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
30078         * tests/uninorm/test-canonical-decomposition.c: Likewise.
30079         * tests/uninorm/test-compat-decomposition.c: Likewise.
30080         * tests/uninorm/test-composition.c: Likewise.
30081         * tests/uninorm/test-decomposing-form.c: Likewise.
30082         * tests/uninorm/test-decomposition.c: Likewise.
30083         * tests/uninorm/test-u8-nfc.c: Likewise.
30084         * tests/uninorm/test-u8-nfd.c: Likewise.
30085         * tests/uninorm/test-u8-nfkc.c: Likewise.
30086         * tests/uninorm/test-u8-nfkd.c: Likewise.
30087         * tests/uninorm/test-u8-normcmp.c: Likewise.
30088         * tests/uninorm/test-u8-normcoll.c: Likewise.
30089         * tests/uninorm/test-u16-nfc.c: Likewise.
30090         * tests/uninorm/test-u16-nfd.c: Likewise.
30091         * tests/uninorm/test-u16-nfkc.c: Likewise.
30092         * tests/uninorm/test-u16-nfkd.c: Likewise.
30093         * tests/uninorm/test-u16-normcmp.c: Likewise.
30094         * tests/uninorm/test-u16-normcoll.c: Likewise.
30095         * tests/uninorm/test-u32-nfc.c: Likewise.
30096         * tests/uninorm/test-u32-nfd.c: Likewise.
30097         * tests/uninorm/test-u32-nfkc.c: Likewise.
30098         * tests/uninorm/test-u32-nfkd.c: Likewise.
30099         * tests/uninorm/test-u32-normalize-big.c: Likewise.
30100         * tests/uninorm/test-u32-normcmp.c: Likewise.
30101         * tests/uninorm/test-u32-normcoll.c: Likewise.
30102         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
30103         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
30104         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
30105         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
30106         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
30107         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
30108         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
30109         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
30110         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
30111         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
30112         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
30113         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
30114         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
30115         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
30116         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
30117         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
30118         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
30119         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
30120         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
30121         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
30122         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
30123         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
30124         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
30125         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
30126         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
30127         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
30128         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
30129         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
30130         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
30131         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
30132         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
30133         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
30134         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
30135         * tests/uniwidth/test-u8-strwidth.c: Likewise.
30136         * tests/uniwidth/test-u8-width.c: Likewise.
30137         * tests/uniwidth/test-u16-strwidth.c: Likewise.
30138         * tests/uniwidth/test-u16-width.c: Likewise.
30139         * tests/uniwidth/test-u32-strwidth.c: Likewise.
30140         * tests/uniwidth/test-u32-width.c: Likewise.
30141         * tests/uniwidth/test-uc_width.c: Likewise.
30142         * tests/uniwidth/test-uc_width2.c: Likewise.
30143         * modules/acl-tests (Files): Add tests/macros.h.
30144         * modules/areadlink-tests (Files): Likewise.
30145         * modules/areadlink-with-size-tests (Files): Likewise.
30146         * modules/areadlinkat-tests (Files): Likewise.
30147         * modules/areadlinkat-with-size-tests (Files): Likewise.
30148         * modules/argmatch-tests (Files): Likewise.
30149         * modules/argv-iter-tests (Files): Likewise.
30150         * modules/array-list-tests (Files): Likewise.
30151         * modules/array-mergesort-tests (Files): Likewise.
30152         * modules/array-oset-tests (Files): Likewise.
30153         * modules/avltree-list-tests (Files): Likewise.
30154         * modules/avltree-oset-tests (Files): Likewise.
30155         * modules/avltreehash-list-tests (Files): Likewise.
30156         * modules/base64-tests (Files): Likewise.
30157         * modules/binary-io-tests (Files): Likewise.
30158         * modules/bitrotate-tests (Files): Likewise.
30159         * modules/btowc-tests (Files): Likewise.
30160         * modules/byteswap-tests (Files): Likewise.
30161         * modules/c-ctype-tests (Files): Likewise.
30162         * modules/c-stack-tests (Files): Likewise.
30163         * modules/c-strcase-tests (Files): Likewise.
30164         * modules/c-strcasestr-tests (Files): Likewise.
30165         * modules/c-strstr-tests (Files): Likewise.
30166         * modules/canonicalize-lgpl-tests (Files): Likewise.
30167         * modules/canonicalize-tests (Files): Likewise.
30168         * modules/carray-list-tests (Files): Likewise.
30169         * modules/ceilf-tests (Files): Likewise.
30170         * modules/ceill-tests (Files): Likewise.
30171         * modules/chown-tests (Files): Likewise.
30172         * modules/cloexec-tests (Files): Likewise.
30173         * modules/copy-file-tests (Files): Likewise.
30174         * modules/count-one-bits-tests (Files): Likewise.
30175         * modules/dprintf-posix-tests (Files): Likewise.
30176         * modules/dup2-tests (Files): Likewise.
30177         * modules/dup3-tests (Files): Likewise.
30178         * modules/duplocale-tests (Files): Likewise.
30179         * modules/fbufmode-tests (Files): Likewise.
30180         * modules/fchdir-tests (Files): Likewise.
30181         * modules/fcntl-safer-tests (Files): Likewise.
30182         * modules/fcntl-tests (Files): Likewise.
30183         * modules/fdopendir-tests (Files): Likewise.
30184         * modules/fdutimensat-tests (Files): Likewise.
30185         * modules/fflush-tests (Files): Likewise.
30186         * modules/filevercmp-tests (Files): Likewise.
30187         * modules/flock-tests (Files): Likewise.
30188         * modules/floorf-tests (Files): Likewise.
30189         * modules/floorl-tests (Files): Likewise.
30190         * modules/fnmatch-tests (Files): Likewise.
30191         * modules/fopen-safer-tests (Files): Likewise.
30192         * modules/fopen-tests (Files): Likewise.
30193         * modules/fpending-tests (Files): Likewise.
30194         * modules/fprintf-posix-tests (Files): Likewise.
30195         * modules/fpurge-tests (Files): Likewise.
30196         * modules/freadable-tests (Files): Likewise.
30197         * modules/freadahead-tests (Files): Likewise.
30198         * modules/freading-tests (Files): Likewise.
30199         * modules/freadptr-tests (Files): Likewise.
30200         * modules/freadseek-tests (Files): Likewise.
30201         * modules/freopen-tests (Files): Likewise.
30202         * modules/frexp-nolibm-tests (Files): Likewise.
30203         * modules/frexp-tests (Files): Likewise.
30204         * modules/frexpl-nolibm-tests (Files): Likewise.
30205         * modules/frexpl-tests (Files): Likewise.
30206         * modules/fseek-tests (Files): Likewise.
30207         * modules/fseeko-tests (Files): Likewise.
30208         * modules/fstrcmp-tests (Files): Likewise.
30209         * modules/fsync-tests (Files): Likewise.
30210         * modules/ftell-tests (Files): Likewise.
30211         * modules/ftello-tests (Files): Likewise.
30212         * modules/func-tests (Files): Likewise.
30213         * modules/futimens-tests (Files): Likewise.
30214         * modules/fwritable-tests (Files): Likewise.
30215         * modules/fwriting-tests (Files): Likewise.
30216         * modules/getcwd-tests (Files): Likewise.
30217         * modules/getdate-tests (Files): Likewise.
30218         * modules/getdelim-tests (Files): Likewise.
30219         * modules/getdtablesize-tests (Files): Likewise.
30220         * modules/getgroups-tests (Files): Likewise.
30221         * modules/getline-tests (Files): Likewise.
30222         * modules/getndelim2-tests (Files): Likewise.
30223         * modules/glob-tests (Files): Likewise.
30224         * modules/hash-tests (Files): Likewise.
30225         * modules/i-ring-tests (Files): Likewise.
30226         * modules/iconv-tests (Files): Likewise.
30227         * modules/iconv_open-utf-tests (Files): Likewise.
30228         * modules/idpriv-drop-tests (Files): Likewise.
30229         * modules/idpriv-droptemp-tests (Files): Likewise.
30230         * modules/inet_ntop-tests (Files): Likewise.
30231         * modules/inet_pton-tests (Files): Likewise.
30232         * modules/isblank-tests (Files): Likewise.
30233         * modules/isfinite-tests (Files): Likewise.
30234         * modules/isinf-tests (Files): Likewise.
30235         * modules/isnan-tests (Files): Likewise.
30236         * modules/isnand-nolibm-tests (Files): Likewise.
30237         * modules/isnand-tests (Files): Likewise.
30238         * modules/isnanf-nolibm-tests (Files): Likewise.
30239         * modules/isnanf-tests (Files): Likewise.
30240         * modules/isnanl-nolibm-tests (Files): Likewise.
30241         * modules/isnanl-tests (Files): Likewise.
30242         * modules/lchown-tests (Files): Likewise.
30243         * modules/ldexpl-tests (Files): Likewise.
30244         * modules/link-tests (Files): Likewise.
30245         * modules/linkat-tests (Files): Likewise.
30246         * modules/linked-list-tests (Files): Likewise.
30247         * modules/linkedhash-list-tests (Files): Likewise.
30248         * modules/localename-tests (Files): Likewise.
30249         * modules/lseek-tests (Files): Likewise.
30250         * modules/lstat-tests (Files): Likewise.
30251         * modules/mbmemcasecmp-tests (Files): Likewise.
30252         * modules/mbmemcasecoll-tests (Files): Likewise.
30253         * modules/mbrtowc-tests (Files): Likewise.
30254         * modules/mbscasecmp-tests (Files): Likewise.
30255         * modules/mbscasestr-tests (Files): Likewise.
30256         * modules/mbschr-tests (Files): Likewise.
30257         * modules/mbscspn-tests (Files): Likewise.
30258         * modules/mbsinit-tests (Files): Likewise.
30259         * modules/mbsncasecmp-tests (Files): Likewise.
30260         * modules/mbsnrtowcs-tests (Files): Likewise.
30261         * modules/mbspbrk-tests (Files): Likewise.
30262         * modules/mbspcasecmp-tests (Files): Likewise.
30263         * modules/mbsrchr-tests (Files): Likewise.
30264         * modules/mbsrtowcs-tests (Files): Likewise.
30265         * modules/mbsspn-tests (Files): Likewise.
30266         * modules/mbsstr-tests (Files): Likewise.
30267         * modules/memchr-tests (Files): Likewise.
30268         * modules/memchr2-tests (Files): Likewise.
30269         * modules/memcmp-tests (Files): Likewise.
30270         * modules/memmem-tests (Files): Likewise.
30271         * modules/memrchr-tests (Files): Likewise.
30272         * modules/mkdir-tests (Files): Likewise.
30273         * modules/mkfifo-tests (Files): Likewise.
30274         * modules/mkfifoat-tests (Files): Likewise.
30275         * modules/mknod-tests (Files): Likewise.
30276         * modules/nanosleep-tests (Files): Likewise.
30277         * modules/nl_langinfo-tests (Files): Likewise.
30278         * modules/obstack-printf-tests (Files): Likewise.
30279         * modules/open-tests (Files): Likewise.
30280         * modules/openat-tests (Files): Likewise.
30281         * modules/pipe-filter-gi-tests (Files): Likewise.
30282         * modules/pipe-filter-ii-tests (Files): Likewise.
30283         * modules/pipe2-tests (Files): Likewise.
30284         * modules/popen-safer-tests (Files): Likewise.
30285         * modules/popen-tests (Files): Likewise.
30286         * modules/posixtm-tests (Files): Likewise.
30287         * modules/pread-tests (Files): Likewise.
30288         * modules/printf-frexp-tests (Files): Likewise.
30289         * modules/printf-frexpl-tests (Files): Likewise.
30290         * modules/printf-posix-tests (Files): Likewise.
30291         * modules/priv-set-tests (Files): Likewise.
30292         * modules/quotearg-tests (Files): Likewise.
30293         * modules/random_r-tests (Files): Likewise.
30294         * modules/rawmemchr-tests (Files): Likewise.
30295         * modules/rbtree-list-tests (Files): Likewise.
30296         * modules/rbtree-oset-tests (Files): Likewise.
30297         * modules/rbtreehash-list-tests (Files): Likewise.
30298         * modules/readlink-tests (Files): Likewise.
30299         * modules/remove-tests (Files): Likewise.
30300         * modules/rename-tests (Files): Likewise.
30301         * modules/renameat-tests (Files): Likewise.
30302         * modules/rmdir-tests (Files): Likewise.
30303         * modules/round-tests (Files): Likewise.
30304         * modules/roundf-tests (Files): Likewise.
30305         * modules/roundl-tests (Files): Likewise.
30306         * modules/safe-alloc-tests (Files): Likewise.
30307         * modules/setenv-tests (Files): Likewise.
30308         * modules/sigaction-tests (Files): Likewise.
30309         * modules/signbit-tests (Files): Likewise.
30310         * modules/sleep-tests (Files): Likewise.
30311         * modules/snprintf-posix-tests (Files): Likewise.
30312         * modules/snprintf-tests (Files): Likewise.
30313         * modules/sprintf-posix-tests (Files): Likewise.
30314         * modules/stat-tests (Files): Likewise.
30315         * modules/stat-time-tests (Files): Likewise.
30316         * modules/strcasestr-tests (Files): Likewise.
30317         * modules/strchrnul-tests (Files): Likewise.
30318         * modules/strerror-tests (Files): Likewise.
30319         * modules/striconv-tests (Files): Likewise.
30320         * modules/striconveh-tests (Files): Likewise.
30321         * modules/striconveha-tests (Files): Likewise.
30322         * modules/strsignal-tests (Files): Likewise.
30323         * modules/strstr-tests (Files): Likewise.
30324         * modules/strtod-tests (Files): Likewise.
30325         * modules/strverscmp-tests (Files): Likewise.
30326         * modules/symlink-tests (Files): Likewise.
30327         * modules/symlinkat-tests (Files): Likewise.
30328         * modules/trunc-tests (Files): Likewise.
30329         * modules/truncf-tests (Files): Likewise.
30330         * modules/truncl-tests (Files): Likewise.
30331         * modules/uname-tests (Files): Likewise.
30332         * modules/unicase/cased-tests (Files): Likewise.
30333         * modules/unicase/ignorable-tests (Files): Likewise.
30334         * modules/unicase/locale-language-tests (Files): Likewise.
30335         * modules/unicase/tolower-tests (Files): Likewise.
30336         * modules/unicase/totitle-tests (Files): Likewise.
30337         * modules/unicase/toupper-tests (Files): Likewise.
30338         * modules/unicase/u8-casecmp-tests (Files): Likewise.
30339         * modules/unicase/u8-casecoll-tests (Files): Likewise.
30340         * modules/unicase/u8-casefold-tests (Files): Likewise.
30341         * modules/unicase/u8-is-cased-tests (Files): Likewise.
30342         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
30343         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
30344         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
30345         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
30346         * modules/unicase/u8-tolower-tests (Files): Likewise.
30347         * modules/unicase/u8-totitle-tests (Files): Likewise.
30348         * modules/unicase/u8-toupper-tests (Files): Likewise.
30349         * modules/unicase/u16-casecmp-tests (Files): Likewise.
30350         * modules/unicase/u16-casecoll-tests (Files): Likewise.
30351         * modules/unicase/u16-casefold-tests (Files): Likewise.
30352         * modules/unicase/u16-is-cased-tests (Files): Likewise.
30353         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
30354         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
30355         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
30356         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
30357         * modules/unicase/u16-tolower-tests (Files): Likewise.
30358         * modules/unicase/u16-totitle-tests (Files): Likewise.
30359         * modules/unicase/u16-toupper-tests (Files): Likewise.
30360         * modules/unicase/u32-casecmp-tests (Files): Likewise.
30361         * modules/unicase/u32-casecoll-tests (Files): Likewise.
30362         * modules/unicase/u32-casefold-tests (Files): Likewise.
30363         * modules/unicase/u32-is-cased-tests (Files): Likewise.
30364         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
30365         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
30366         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
30367         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
30368         * modules/unicase/u32-tolower-tests (Files): Likewise.
30369         * modules/unicase/u32-totitle-tests (Files): Likewise.
30370         * modules/unicase/u32-toupper-tests (Files): Likewise.
30371         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
30372         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
30373         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
30374         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
30375         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
30376         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
30377         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
30378         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
30379         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
30380         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
30381         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
30382         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
30383         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
30384         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
30385         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
30386         * modules/unictype/bidicategory-name-tests (Files): Likewise.
30387         * modules/unictype/bidicategory-of-tests (Files): Likewise.
30388         * modules/unictype/bidicategory-test-tests (Files): Likewise.
30389         * modules/unictype/block-list-tests (Files): Likewise.
30390         * modules/unictype/block-of-tests (Files): Likewise.
30391         * modules/unictype/block-test-tests (Files): Likewise.
30392         * modules/unictype/category-C-tests (Files): Likewise.
30393         * modules/unictype/category-Cc-tests (Files): Likewise.
30394         * modules/unictype/category-Cf-tests (Files): Likewise.
30395         * modules/unictype/category-Cn-tests (Files): Likewise.
30396         * modules/unictype/category-Co-tests (Files): Likewise.
30397         * modules/unictype/category-Cs-tests (Files): Likewise.
30398         * modules/unictype/category-L-tests (Files): Likewise.
30399         * modules/unictype/category-Ll-tests (Files): Likewise.
30400         * modules/unictype/category-Lm-tests (Files): Likewise.
30401         * modules/unictype/category-Lo-tests (Files): Likewise.
30402         * modules/unictype/category-Lt-tests (Files): Likewise.
30403         * modules/unictype/category-Lu-tests (Files): Likewise.
30404         * modules/unictype/category-M-tests (Files): Likewise.
30405         * modules/unictype/category-Mc-tests (Files): Likewise.
30406         * modules/unictype/category-Me-tests (Files): Likewise.
30407         * modules/unictype/category-Mn-tests (Files): Likewise.
30408         * modules/unictype/category-N-tests (Files): Likewise.
30409         * modules/unictype/category-Nd-tests (Files): Likewise.
30410         * modules/unictype/category-Nl-tests (Files): Likewise.
30411         * modules/unictype/category-No-tests (Files): Likewise.
30412         * modules/unictype/category-P-tests (Files): Likewise.
30413         * modules/unictype/category-Pc-tests (Files): Likewise.
30414         * modules/unictype/category-Pd-tests (Files): Likewise.
30415         * modules/unictype/category-Pe-tests (Files): Likewise.
30416         * modules/unictype/category-Pf-tests (Files): Likewise.
30417         * modules/unictype/category-Pi-tests (Files): Likewise.
30418         * modules/unictype/category-Po-tests (Files): Likewise.
30419         * modules/unictype/category-Ps-tests (Files): Likewise.
30420         * modules/unictype/category-S-tests (Files): Likewise.
30421         * modules/unictype/category-Sc-tests (Files): Likewise.
30422         * modules/unictype/category-Sk-tests (Files): Likewise.
30423         * modules/unictype/category-Sm-tests (Files): Likewise.
30424         * modules/unictype/category-So-tests (Files): Likewise.
30425         * modules/unictype/category-Z-tests (Files): Likewise.
30426         * modules/unictype/category-Zl-tests (Files): Likewise.
30427         * modules/unictype/category-Zp-tests (Files): Likewise.
30428         * modules/unictype/category-Zs-tests (Files): Likewise.
30429         * modules/unictype/category-and-not-tests (Files): Likewise.
30430         * modules/unictype/category-and-tests (Files): Likewise.
30431         * modules/unictype/category-byname-tests (Files): Likewise.
30432         * modules/unictype/category-name-tests (Files): Likewise.
30433         * modules/unictype/category-none-tests (Files): Likewise.
30434         * modules/unictype/category-of-tests (Files): Likewise.
30435         * modules/unictype/category-or-tests (Files): Likewise.
30436         * modules/unictype/category-test-withtable-tests (Files): Likewise.
30437         * modules/unictype/combining-class-tests (Files): Likewise.
30438         * modules/unictype/ctype-alnum-tests (Files): Likewise.
30439         * modules/unictype/ctype-alpha-tests (Files): Likewise.
30440         * modules/unictype/ctype-blank-tests (Files): Likewise.
30441         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
30442         * modules/unictype/ctype-digit-tests (Files): Likewise.
30443         * modules/unictype/ctype-graph-tests (Files): Likewise.
30444         * modules/unictype/ctype-lower-tests (Files): Likewise.
30445         * modules/unictype/ctype-print-tests (Files): Likewise.
30446         * modules/unictype/ctype-punct-tests (Files): Likewise.
30447         * modules/unictype/ctype-space-tests (Files): Likewise.
30448         * modules/unictype/ctype-upper-tests (Files): Likewise.
30449         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
30450         * modules/unictype/decimal-digit-tests (Files): Likewise.
30451         * modules/unictype/digit-tests (Files): Likewise.
30452         * modules/unictype/mirror-tests (Files): Likewise.
30453         * modules/unictype/numeric-tests (Files): Likewise.
30454         * modules/unictype/property-alphabetic-tests (Files): Likewise.
30455         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
30456         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
30457         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
30458         Likewise.
30459         * modules/unictype/property-bidi-block-separator-tests (Files):
30460         Likewise.
30461         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
30462         Likewise.
30463         * modules/unictype/property-bidi-common-separator-tests (Files):
30464         Likewise.
30465         * modules/unictype/property-bidi-control-tests (Files): Likewise.
30466         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
30467         Likewise.
30468         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
30469         Likewise.
30470         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
30471         Likewise.
30472         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
30473         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
30474         Likewise.
30475         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
30476         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
30477         Likewise.
30478         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
30479         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
30480         * modules/unictype/property-bidi-segment-separator-tests (Files):
30481         Likewise.
30482         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
30483         * modules/unictype/property-byname-tests (Files): Likewise.
30484         * modules/unictype/property-combining-tests (Files): Likewise.
30485         * modules/unictype/property-composite-tests (Files): Likewise.
30486         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
30487         * modules/unictype/property-dash-tests (Files): Likewise.
30488         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
30489         * modules/unictype/property-default-ignorable-code-point-tests (Files):
30490         Likewise.
30491         * modules/unictype/property-deprecated-tests (Files): Likewise.
30492         * modules/unictype/property-diacritic-tests (Files): Likewise.
30493         * modules/unictype/property-extender-tests (Files): Likewise.
30494         * modules/unictype/property-format-control-tests (Files): Likewise.
30495         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
30496         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
30497         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
30498         * modules/unictype/property-hex-digit-tests (Files): Likewise.
30499         * modules/unictype/property-hyphen-tests (Files): Likewise.
30500         * modules/unictype/property-id-continue-tests (Files): Likewise.
30501         * modules/unictype/property-id-start-tests (Files): Likewise.
30502         * modules/unictype/property-ideographic-tests (Files): Likewise.
30503         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
30504         * modules/unictype/property-ids-trinary-operator-tests (Files):
30505         Likewise.
30506         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
30507         * modules/unictype/property-iso-control-tests (Files): Likewise.
30508         * modules/unictype/property-join-control-tests (Files): Likewise.
30509         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
30510         * modules/unictype/property-line-separator-tests (Files): Likewise.
30511         * modules/unictype/property-logical-order-exception-tests (Files):
30512         Likewise.
30513         * modules/unictype/property-lowercase-tests (Files): Likewise.
30514         * modules/unictype/property-math-tests (Files): Likewise.
30515         * modules/unictype/property-non-break-tests (Files): Likewise.
30516         * modules/unictype/property-not-a-character-tests (Files): Likewise.
30517         * modules/unictype/property-numeric-tests (Files): Likewise.
30518         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
30519         * modules/unictype/property-other-default-ignorable-code-point-tests
30520         (Files): Likewise.
30521         * modules/unictype/property-other-grapheme-extend-tests (Files):
30522         Likewise.
30523         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
30524         * modules/unictype/property-other-id-start-tests (Files): Likewise.
30525         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
30526         * modules/unictype/property-other-math-tests (Files): Likewise.
30527         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
30528         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
30529         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
30530         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
30531         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
30532         * modules/unictype/property-private-use-tests (Files): Likewise.
30533         * modules/unictype/property-punctuation-tests (Files): Likewise.
30534         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
30535         * modules/unictype/property-radical-tests (Files): Likewise.
30536         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
30537         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
30538         * modules/unictype/property-space-tests (Files): Likewise.
30539         * modules/unictype/property-terminal-punctuation-tests (Files):
30540         Likewise.
30541         * modules/unictype/property-test-tests (Files): Likewise.
30542         * modules/unictype/property-titlecase-tests (Files): Likewise.
30543         * modules/unictype/property-unassigned-code-value-tests (Files):
30544         Likewise.
30545         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
30546         * modules/unictype/property-uppercase-tests (Files): Likewise.
30547         * modules/unictype/property-variation-selector-tests (Files): Likewise.
30548         * modules/unictype/property-white-space-tests (Files): Likewise.
30549         * modules/unictype/property-xid-continue-tests (Files): Likewise.
30550         * modules/unictype/property-xid-start-tests (Files): Likewise.
30551         * modules/unictype/property-zero-width-tests (Files): Likewise.
30552         * modules/unictype/scripts-tests (Files): Likewise.
30553         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
30554         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
30555         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
30556         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
30557         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
30558         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
30559         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
30560         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
30561         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
30562         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
30563         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
30564         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
30565         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
30566         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
30567         * modules/uninorm/composition-tests (Files): Likewise.
30568         * modules/uninorm/decomposing-form-tests (Files): Likewise.
30569         * modules/uninorm/decomposition-tests (Files): Likewise.
30570         * modules/uninorm/filter-tests (Files): Likewise.
30571         * modules/uninorm/nfc-tests (Files): Likewise.
30572         * modules/uninorm/nfd-tests (Files): Likewise.
30573         * modules/uninorm/nfkc-tests (Files): Likewise.
30574         * modules/uninorm/nfkd-tests (Files): Likewise.
30575         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
30576         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
30577         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
30578         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
30579         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
30580         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
30581         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
30582         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
30583         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
30584         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
30585         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
30586         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
30587         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
30588         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
30589         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
30590         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
30591         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
30592         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
30593         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
30594         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
30595         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
30596         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
30597         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
30598         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
30599         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
30600         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
30601         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
30602         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
30603         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
30604         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
30605         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
30606         * modules/uniwidth/u8-width-tests (Files): Likewise.
30607         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
30608         * modules/uniwidth/u16-width-tests (Files): Likewise.
30609         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
30610         * modules/uniwidth/u32-width-tests (Files): Likewise.
30611         * modules/uniwidth/width-tests (Files): Likewise.
30612         * modules/unlink-tests (Files): Likewise.
30613         * modules/unsetenv-tests (Files): Likewise.
30614         * modules/usleep-tests (Files): Likewise.
30615         * modules/utimens-tests (Files): Likewise.
30616         * modules/utimensat-tests (Files): Likewise.
30617         * modules/vasnprintf-posix-tests (Files): Likewise.
30618         * modules/vasnprintf-tests (Files): Likewise.
30619         * modules/vasprintf-posix-tests (Files): Likewise.
30620         * modules/vasprintf-tests (Files): Likewise.
30621         * modules/vdprintf-posix-tests (Files): Likewise.
30622         * modules/vfprintf-posix-tests (Files): Likewise.
30623         * modules/vprintf-posix-tests (Files): Likewise.
30624         * modules/vsnprintf-posix-tests (Files): Likewise.
30625         * modules/vsnprintf-tests (Files): Likewise.
30626         * modules/vsprintf-posix-tests (Files): Likewise.
30627         * modules/wcrtomb-tests (Files): Likewise.
30628         * modules/wcsnrtombs-tests (Files): Likewise.
30629         * modules/wcsrtombs-tests (Files): Likewise.
30630         * modules/wctype-tests (Files): Likewise.
30631         * modules/wcwidth-tests (Files): Likewise.
30632         * modules/xmemdup0-tests (Files): Likewise.
30633         * modules/xprintf-posix-tests (Files): Likewise.
30634         * modules/xvasprintf-tests (Files): Likewise.
30635
30636 2009-12-24  Eric Blake  <ebb9@byu.net>
30637
30638         test-nanosleep: fix typo
30639         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
30640         patch.
30641         Reported by Bruno Haible.
30642
30643 2009-12-24  Bruno Haible  <bruno@clisp.org>
30644
30645         Reduce namespace pollution on glibc systems.
30646         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
30647         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
30648         systems.
30649         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
30650         <getopt.h> on glibc systems.
30651         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
30652         systems.
30653         * lib/fcntl.c: Include <unistd.h> here instead.
30654
30655 2009-12-24  Bruno Haible  <bruno@clisp.org>
30656
30657         * lib/stdlib.in.h (includes): Fix typo in today's commit.
30658
30659 2009-12-24  Eric Blake  <ebb9@byu.net>
30660
30661         tests: add signature checks
30662         * tests/signature.h (SIGNATURE_CHECK): New file.
30663         * modules/atexit-tests (Files): Use it.
30664         * modules/btowc-tests (Files): Likewise.
30665         * modules/canonicalize-lgpl-tests (Files): Likewise.
30666         * modules/ceilf-tests (Files): Likewise.
30667         * modules/ceill-tests (Files): Likewise.
30668         * modules/chown-tests (Files): Likewise.
30669         * modules/dprintf-posix-tests (Files): Likewise.
30670         * modules/dup2-tests (Files): Likewise.
30671         * modules/dup3-tests (Files): Likewise.
30672         * modules/duplocale-tests (Files): Likewise.
30673         * modules/fchdir-tests (Files): Likewise.
30674         * modules/fcntl-tests (Files): Likewise.
30675         * modules/fdopendir-tests (Files): Likewise.
30676         * modules/fflush-tests (Files): Likewise.
30677         * modules/flock-tests (Files): Likewise.
30678         * modules/floorf-tests (Files): Likewise.
30679         * modules/floorl-tests (Files): Likewise.
30680         * modules/fnmatch-tests (Files): Likewise.
30681         * modules/fopen-tests (Files): Likewise.
30682         * modules/fprintf-posix-tests (Files): Likewise.
30683         * modules/freopen-tests (Files): Likewise.
30684         * modules/frexp-nolibm-tests (Files): Likewise.
30685         * modules/frexp-tests (Files): Likewise.
30686         * modules/frexpl-nolibm-tests (Files): Likewise.
30687         * modules/frexpl-tests (Files): Likewise.
30688         * modules/fseek-tests (Files): Likewise.
30689         * modules/fseeko-tests (Files): Likewise.
30690         * modules/fsync-tests (Files): Likewise.
30691         * modules/ftell-tests (Files): Likewise.
30692         * modules/ftello-tests (Files): Likewise.
30693         * modules/futimens-tests (Files): Likewise.
30694         * modules/getaddrinfo-tests (Files): Likewise.
30695         * modules/getcwd-tests (Files): Likewise.
30696         * modules/getdelim-tests (Files): Likewise.
30697         * modules/getdtablesize-tests (Files): Likewise.
30698         * modules/getgroups-tests (Files): Likewise.
30699         * modules/gethostname-tests (Files): Likewise.
30700         * modules/getline-tests (Files): Likewise.
30701         * modules/getopt-posix-tests (Files): Likewise.
30702         * modules/gettimeofday-tests (Files): Likewise.
30703         * modules/glob-tests (Files): Likewise.
30704         * modules/iconv-tests (Files): Likewise.
30705         * modules/inet_ntop-tests (Files): Likewise.
30706         * modules/inet_pton-tests (Files): Likewise.
30707         * modules/isblank-tests (Files): Likewise.
30708         * modules/lchown-tests (Files): Likewise.
30709         * modules/ldexpl-tests (Files): Likewise.
30710         * modules/link-tests (Files): Likewise.
30711         * modules/linkat-tests (Files): Likewise.
30712         * modules/lseek-tests (Files): Likewise.
30713         * modules/lstat-tests (Files): Likewise.
30714         * modules/mbrtowc-tests (Files): Likewise.
30715         * modules/mbsinit-tests (Files): Likewise.
30716         * modules/mbsnrtowcs-tests (Files): Likewise.
30717         * modules/mbsrtowcs-tests (Files): Likewise.
30718         * modules/memchr-tests (Files): Likewise.
30719         * modules/memcmp-tests (Files): Likewise.
30720         * modules/memmem-tests (Files): Likewise.
30721         * modules/memrchr-tests (Files): Likewise.
30722         * modules/mkdir-tests (Files): Likewise.
30723         * modules/mkfifo-tests (Files): Likewise.
30724         * modules/mkfifoat-tests (Files): Likewise.
30725         * modules/mknod-tests (Files): Likewise.
30726         * modules/nanosleep-tests (Files): Likewise.
30727         * modules/nl_langinfo-tests (Files): Likewise.
30728         * modules/obstack-printf-tests (Files): Likewise.
30729         * modules/open-tests (Files): Likewise.
30730         * modules/openat-tests (Files): Likewise.
30731         * modules/perror-tests (Files): Likewise.
30732         * modules/pipe2-tests (Files): Likewise.
30733         * modules/poll-tests (Files): Likewise.
30734         * modules/popen-tests (Files): Likewise.
30735         * modules/posix_spawn-tests (Files): Likewise.
30736         * modules/posix_spawnp-tests (Files): Likewise.
30737         * modules/pread-tests (Files): Likewise.
30738         * modules/printf-posix-tests (Files): Likewise.
30739         * modules/pty-tests (Files): Likewise.
30740         * modules/random_r-tests (Files): Likewise.
30741         * modules/rawmemchr-tests (Files): Likewise.
30742         * modules/readlink-tests (Files): Likewise.
30743         * modules/remove-tests (Files): Likewise.
30744         * modules/rename-tests (Files): Likewise.
30745         * modules/renameat-tests (Files): Likewise.
30746         * modules/rmdir-tests (Files): Likewise.
30747         * modules/round-tests (Files): Likewise.
30748         * modules/roundf-tests (Files): Likewise.
30749         * modules/roundl-tests (Files): Likewise.
30750         * modules/select-tests (Files): Likewise.
30751         * modules/setenv-tests (Files): Likewise.
30752         * modules/sigaction-tests (Files): Likewise.
30753         * modules/sleep-tests (Files): Likewise.
30754         * modules/snprintf-posix-tests (Files): Likewise.
30755         * modules/snprintf-tests (Files): Likewise.
30756         * modules/sprintf-posix-tests (Files): Likewise.
30757         * modules/stat-tests (Files): Likewise.
30758         * modules/strcasestr-tests (Files): Likewise.
30759         * modules/strchrnul-tests (Files): Likewise.
30760         * modules/strerror-tests (Files): Likewise.
30761         * modules/strsignal-tests (Files): Likewise.
30762         * modules/strstr-tests (Files): Likewise.
30763         * modules/strtod-tests (Files): Likewise.
30764         * modules/strverscmp-tests (Files): Likewise.
30765         * modules/symlink-tests (Files): Likewise.
30766         * modules/symlinkat-tests (Files): Likewise.
30767         * modules/times-tests (Files): Likewise.
30768         * modules/trunc-tests (Files): Likewise.
30769         * modules/truncf-tests (Files): Likewise.
30770         * modules/truncl-tests (Files): Likewise.
30771         * modules/tsearch-tests (Files): Likewise.
30772         * modules/uname-tests (Files): Likewise.
30773         * modules/unlink-tests (Files): Likewise.
30774         * modules/unsetenv-tests (Files): Likewise.
30775         * modules/usleep-tests (Files): Likewise.
30776         * modules/utimensat-tests (Files): Likewise.
30777         * modules/vasprintf-tests (Files): Likewise.
30778         * modules/vdprintf-posix-tests (Files): Likewise.
30779         * modules/vfprintf-posix-tests (Files): Likewise.
30780         * modules/vprintf-posix-tests (Files): Likewise.
30781         * modules/vsnprintf-posix-tests (Files): Likewise.
30782         * modules/vsnprintf-tests (Files): Likewise.
30783         * modules/vsprintf-posix-tests (Files): Likewise.
30784         * modules/wcrtomb-tests (Files): Likewise.
30785         * modules/wcsnrtombs-tests (Files): Likewise.
30786         * modules/wcsrtombs-tests (Files): Likewise.
30787         * modules/wcwidth-tests (Files): Likewise.
30788         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
30789         * tests/test-isinf.c (isinf): Likewise.
30790         * tests/test-isnan.c (isnan): Likewise.
30791         * tests/test-signbit.c (signbit): Likewise.
30792         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
30793         declaration, either as macro or with correct signature.
30794         (select): Ensure function under test is declared with correct
30795         signature in correct header.
30796         * tests/test-atexit.c (atexit): Likewise.
30797         * tests/test-btowc.c (btowc): Likewise.
30798         * tests/test-canonicalize-lgpl.c (realpath)
30799         (canonicalize_file_name): Likewise.
30800         * tests/test-ceilf1.c (ceilf): Likewise.
30801         * tests/test-ceill.c (ceill): Likewise.
30802         * tests/test-chown.c (chown): Likewise.
30803         * tests/test-dprintf-posix.c (dprintf): Likewise.
30804         * tests/test-dup2.c (dup2): Likewise.
30805         * tests/test-dup3.c (dup3): Likewise.
30806         * tests/test-duplocale.c (duplocale): Likewise.
30807         * tests/test-fchdir.c (fchdir): Likewise.
30808         * tests/test-fchownat.c (fchownat): Likewise.
30809         * tests/test-fcntl.c (fcntl): Likewise.
30810         * tests/test-fdopendir.c (fdopendir): Likewise.
30811         * tests/test-fflush.c (fflush): Likewise.
30812         * tests/test-flock.c (flock): Likewise.
30813         * tests/test-floorf1.c (floorf): Likewise.
30814         * tests/test-floorl.c (floorl): Likewise.
30815         * tests/test-fnmatch.c (fnmatch): Likewise.
30816         * tests/test-fopen.c (fopen): Likewise.
30817         * tests/test-fprintf-posix.c (fprintf): Likewise.
30818         * tests/test-freopen.c (freopen): Likewise.
30819         * tests/test-frexp.c (frexp): Likewise.
30820         * tests/test-frexpl.c (frexpl): Likewise.
30821         * tests/test-fseek.c (fseek): Likewise.
30822         * tests/test-fseeko.c (fseeko): Likewise.
30823         * tests/test-fstatat.c (fstatat): Likewise.
30824         * tests/test-fsync.c (fsync): Likewise.
30825         * tests/test-ftell.c (ftell): Likewise.
30826         * tests/test-ftello.c (ftello): Likewise.
30827         * tests/test-futimens.c (futimens): Likewise.
30828         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
30829         (gai_strerror): Likewise.
30830         * tests/test-getcwd.c (getcwd): Likewise.
30831         * tests/test-getdelim.c (getdelim): Likewise.
30832         * tests/test-getdtablesize.c (getdtablesize): Likewise.
30833         * tests/test-getgroups.c (getgroups): Likewise.
30834         * tests/test-gethostname.c (gethostname): Likewise.
30835         * tests/test-getline.c (getline): Likewise.
30836         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
30837         Likewise.
30838         * tests/test-gettimeofday.c (gettimeofday): Likewise.
30839         * tests/test-glob.c (glob, globfree): Likewise.
30840         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
30841         * tests/test-inet_ntop.c (inet_ntop): Likewise.
30842         * tests/test-inet_pton.c (inet_pton): Likewise.
30843         * tests/test-isblank.c (isblank): Likewise.
30844         * tests/test-lchown.c (lchown): Likewise.
30845         * tests/test-ldexpl.c (ldexpl): Likewise.
30846         * tests/test-link.c (link): Likewise.
30847         * tests/test-linkat.c (linkat): Likewise.
30848         * tests/test-lseek.c (lseek): Likewise.
30849         * tests/test-lstat.c (lstat): Likewise.
30850         * tests/test-mbrtowc.c (mbrtowc): Likewise.
30851         * tests/test-mbsinit.c (mbsinit): Likewise.
30852         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
30853         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
30854         * tests/test-memchr.c (memchr): Likewise.
30855         * tests/test-memcmp.c (memcmp): Likewise.
30856         * tests/test-memmem.c (memmem): Likewise.
30857         * tests/test-memrchr.c (memrchr): Likewise.
30858         * tests/test-mkdir.c (mkdir): Likewise.
30859         * tests/test-mkdirat.c (mkdirat): Likewise.
30860         * tests/test-mkfifo.c (mkfifo): Likewise.
30861         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
30862         * tests/test-mknod.c (mknod): Likewise.
30863         * tests/test-nanosleep.c (nanosleep): Likewise.
30864         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
30865         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
30866         Likewise.
30867         * tests/test-open.c (open): Likewise.
30868         * tests/test-openat.c (openat): Likewise.
30869         * tests/test-perror.c (perror): Likewise.
30870         * tests/test-pipe2.c (pipe2): Likewise.
30871         * tests/test-poll.c (poll): Likewise.
30872         * tests/test-popen.c (popen, pclose): Likewise.
30873         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
30874         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
30875         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
30876         (posix_spawn_file_actions_destroy)
30877         (posix_spawn_file_actions_addclose)
30878         (posix_spawn_file_actions_addopen)
30879         (posix_spawn_file_actions_adddup2): Likewise.
30880         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
30881         * tests/test-pread.c (pread): Likewise.
30882         * tests/test-printf-posix.c (printf): Likewise.
30883         * tests/test-pty.c (openpty, forkpty): Likewise.
30884         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
30885         (random_r): Likewise.
30886         * tests/test-rawmemchr.c (rawmemchr): Likewise.
30887         * tests/test-readlink.c (readlink): Likewise.
30888         * tests/test-remove.c (remove): Likewise.
30889         * tests/test-rename.c (rename): Likewise.
30890         * tests/test-renameat.c (renameat): Likewise.
30891         * tests/test-rmdir.c (rmdir): Likewise.
30892         * tests/test-round1.c (round): Likewise.
30893         * tests/test-roundf1.c (roundf): Likewise.
30894         * tests/test-roundl.c (roundl): Likewise.
30895         * tests/test-setenv.c (setenv): Likewise.
30896         * tests/test-sigaction.c (sigaction): Likewise.
30897         * tests/test-sleep.c (sleep): Likewise.
30898         * tests/test-snprintf.c (snprintf): Likewise.
30899         * tests/test-sprintf-posix.c (sprintf): Likewise.
30900         * tests/test-stat.c (stat): Likewise.
30901         * tests/test-stpncpy.c (stpncpy): Likewise.
30902         * tests/test-strcasestr.c (strcasestr): Likewise.
30903         * tests/test-strchrnul.c (strchrnul): Likewise.
30904         * tests/test-strerror.c (strerror): Likewise.
30905         * tests/test-strsignal.c (strsignal): Likewise.
30906         * tests/test-strstr.c (strstr): Likewise.
30907         * tests/test-strtod.c (strtod): Likewise.
30908         * tests/test-strverscmp.c (strverscmp): Likewise.
30909         * tests/test-symlink.c (symlink): Likewise.
30910         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
30911         * tests/test-times.c (times): Likewise.
30912         * tests/test-trunc1.c (trunc): Likewise.
30913         * tests/test-truncf1.c (truncf): Likewise.
30914         * tests/test-truncl.c (truncl): Likewise.
30915         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
30916         Likewise.
30917         * tests/test-uname.c (uname): Likewise.
30918         * tests/test-unlink.c (unlink): Likewise.
30919         * tests/test-unlinkat.c (unlinkat): Likewise.
30920         * tests/test-unsetenv.c (unsetenv): Likewise.
30921         * tests/test-usleep.c (usleep): Likewise.
30922         * tests/test-utimensat.c (utimensat): Likewise.
30923         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
30924         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
30925         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
30926         * tests/test-vprintf-posix.c (vprintf): Likewise.
30927         * tests/test-vsnprintf.c (vsnprintf): Likewise.
30928         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
30929         * tests/test-wcrtomb.c (wcrtomb): Likewise.
30930         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
30931         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
30932         * tests/test-wcwidth.c (wcwidth): Likewise.
30933
30934         build: pull in conditional headers during GNULIB_POSIXCHECK
30935         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
30936         definitions from any conditionally-included headers.
30937         * lib/stdlib.in.h (includes): Likewise.
30938         * lib/unistd.in.h (includes): Likewise.
30939
30940 2009-12-24  Bruno Haible  <bruno@clisp.org>
30941
30942         * tests/test-argv-iter.c: Include header file being tested immediately
30943         after config.h.
30944         * tests/test-base64.c: Likewise.
30945         * tests/test-flock.c: Likewise.
30946         * tests/test-fsync.c: Likewise.
30947         * tests/test-getdate.c: Likewise.
30948         * tests/test-getndelim2.c: Likewise.
30949         * tests/test-isfinite.c: Likewise.
30950         * tests/test-isinf.c: Likewise.
30951         * tests/test-strerror.c: Likewise.
30952         * tests/test-strsignal.c: Likewise.
30953
30954 2009-12-23  Eric Blake  <ebb9@byu.net>
30955
30956         unistd: work around cygwin bug
30957         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
30958         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
30959         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
30960
30961 2009-12-23  Bruno Haible  <bruno@clisp.org>
30962
30963         localename: More tests.
30964         * tests/test-localename.c (SIZEOF): New macro.
30965         (categories): New variable.
30966         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
30967         test_locale_name_default): Add test w.r.t. thread locale.
30968         (test_locale_name_thread): New function.
30969         (main): Invoke it.
30970
30971         localename: Make aware of thread locale.
30972         * lib/localename.h (gl_locale_name_thread): New declaration.
30973         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
30974         behaviour with respect to thread locale.
30975         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
30976         <langinfo.h>, glthread/lock.h.
30977         (SIZE_BITS): New macro.
30978         (string_hash): New function.
30979         (struct hash_node): New type.
30980         (HASH_TABLE_SIZE): New macro.
30981         (struniq_hash_table, struniq_lock): New variables.
30982         (struniq): New function.
30983         (gl_locale_name_thread): New function.
30984         (gl_locale_name): Invoke it.
30985         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
30986         * modules/localename (Depends-on): Add lock.
30987         Reported by Mike Gran <spk121@yahoo.com>.
30988
30989 2009-12-23  Eric Blake  <ebb9@byu.net>
30990
30991         va-args: new module
30992         * modules/va-args: New file.
30993         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
30994         * MODULES.html.sh (Core language properties): Mention it.
30995
30996         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
30997         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
30998         named alias for __attribute__((__unused__)).
30999         * lib/chown.c: Update client.
31000         * lib/fchmodat.c: Likewise.
31001         * lib/fts.c: Likewise.
31002         * lib/getdate.y: Likewise.
31003         * lib/getgroups.c: Likewise.
31004         * lib/getopt.c: Likewise.
31005         * lib/getugroups.c: Likewise.
31006         * lib/mkdir.c: Likewise.
31007         * lib/mkfifo.c: Likewise.
31008         * lib/mkfifoat.c: Likewise.
31009         * lib/mknod.c: Likewise.
31010         * lib/mknodat.c: Likewise.
31011         * lib/readlink.c: Likewise.
31012         * lib/se-context.in.h: Likewise.
31013         * lib/se-selinux.in.h: Likewise.
31014         * lib/sockets.c: Likewise.
31015         * lib/symlink.c: Likewise.
31016         * lib/symlinkat.c: Likewise.
31017         * lib/unicodeio.c: Likewise.
31018         * lib/unistr.h: Likewise.
31019         * tests/test-areadlink.c: Likewise.
31020         * tests/test-areadlinkat.c: Likewise.
31021         * tests/test-filenamecat.c: Likewise.
31022         * tests/test-fseeko.c: Likewise.
31023         * tests/test-ftello.c: Likewise.
31024         * tests/test-getdate.c: Likewise.
31025         * tests/test-getgroups.c: Likewise.
31026         * tests/test-gethostname.c: Likewise.
31027         * tests/test-quotearg.c: Likewise.
31028         * tests/test-version-etc.c: Likewise.
31029         * tests/test-xalloc-die.c: Likewise.
31030         * tests/test-xfprintf-posix.c: Likewise.
31031         * tests/test-xprintf-posix.c: Likewise.
31032         * tests/test-xvasprintf.c: Likewise.
31033
31034         tests: avoid compiler warnings
31035         * tests/test-fcntl.c (main): Delete unused parameters.
31036         * tests/test-freopen-safer.c (main): Likewise.
31037         * tests/test-xalloc-die.c (main): Mark unused parameters.
31038         * tests/test-fseeko.c (main): Likewise.
31039         * tests/test-ftello.c (main): Likewise.
31040         * tests/test-nanosleep.c (main): Avoid declaration warning.
31041         * tests/test-sleep.c (main): Likewise.
31042         * tests/test-unsetenv.c (main): Silence warning about string
31043         literal.
31044         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
31045
31046 2009-12-23  Bruno Haible  <bruno@clisp.org>
31047
31048         * tests/test-localename.c (test_locale_name): New function, extracted
31049         from main. Also test mixed situations.
31050         (test_locale_name_posix, test_locale_name_environ,
31051         test_locale_name_default): New functions.
31052         (main): Invoke them all.
31053         * modules/localename-tests (configure.ac): Test for newlocale.
31054
31055 2009-12-23  Bruno Haible  <bruno@clisp.org>
31056
31057         unistd: Ensure getcwd gets declared before being overridden.
31058         * lib/unistd.in.h: Conditionally include <io.h>.
31059
31060 2009-12-22  Bruno Haible  <bruno@clisp.org>
31061
31062         wchar: Diagnose broken combination of glibc and gcc versions and flags.
31063         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
31064         (gl_WCHAR_H): Invoke it.
31065         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
31066         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
31067         Reported by Karl Berry <karl@freefriends.org>.
31068
31069 2009-12-22  Eric Blake  <ebb9@byu.net>
31070
31071         math, unistd: avoid redundant includes
31072         * lib/math.in.h (isnan): No need to re-include <math.h>.
31073         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
31074
31075         getsubopt: work around cygwin bug
31076         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
31077         avoid conflicting with system getsubopt.
31078         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
31079         bug.
31080
31081         getopt: synchronize from glibc
31082         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
31083         parameter order.  Adjust all callers.
31084         (_getopt_internal_r, main): Adjust quoting in error messages.
31085         Drop considerations for outdated POSIX 1003.2 error message.
31086         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
31087         callers.
31088         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
31089
31090         test-getopt: test stderr behavior
31091         * modules/getopt-posix-tests (Depends-on): Add dup2.
31092         * tests/test-getopt.c (ASSERT): Avoid stderr.
31093         (main): Move stderr to a temporary file.
31094         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
31095         Instead, add parameter to inform caller if output occurred.
31096         (test_getopt): Adjust all existing tests to expect silence, and
31097         add new tests of leading ":".
31098         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
31099         glibc shortcomings with leading "-:" or "+:" in optstring.
31100         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
31101         Likewise.
31102         * doc/posix-functions/getopt.texi (getopt): Likewise.
31103
31104         test-getopt: enhance test
31105         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
31106         supports optind=0.
31107         * tests/test-getopt.c (OPTIND_MIN): Move...
31108         * tests/test-getopt.h (OPTIND_MIN): ...here.
31109         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
31110         Require that optind=0 works, since modern BSD supports it in
31111         addition to optreset, and since coreutils expects it.
31112         (test_getopt_long_only): New test.
31113         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
31114         glibc shortcomings with 'W;', and enforcement of optind=0.
31115         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
31116         Likewise.
31117
31118 2009-12-21  Bruno Haible  <bruno@clisp.org>
31119
31120         localename: Improvements for MacOS X and Cygwin.
31121         * lib/localename.h (gl_locale_name_environ): New declaration.
31122         * lib/localename.c (gl_locale_name_environ): New function, extracted from
31123         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
31124         (gl_locale_name_posix): Invoke it.
31125         (gl_locale_name_default): Add comments. Use Windows native API also on
31126         Cygwin.
31127
31128 2009-12-21  Bruno Haible  <bruno@clisp.org>
31129
31130         Update list of Win32 locale ids.
31131         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
31132         (LANG_SAMI): Renamed from LANG_SAAMI.
31133         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
31134         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
31135         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
31136         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
31137         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
31138         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
31139         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
31140         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
31141         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
31142         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
31143         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
31144         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
31145         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
31146         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
31147         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
31148         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
31149         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
31150         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
31151         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
31152         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
31153         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
31154         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
31155         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
31156         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
31157         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
31158         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
31159         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
31160         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
31161         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
31162         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
31163         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
31164         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
31165         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
31166         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
31167         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
31168         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
31169         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
31170         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
31171         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
31172         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
31173         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
31174         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
31175         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
31176         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
31177         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
31178         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
31179         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
31180         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
31181         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
31182         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
31183         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
31184         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
31185         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
31186         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
31187         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
31188         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
31189         Add more languages and countries for Sami, Sorbian. Add more countries
31190         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
31191         for Pashto. Change country for Syriac, Tswana.
31192
31193 2009-12-21  Eric Blake  <ebb9@byu.net>
31194
31195         test-utimens: avoid spurious failure
31196         * tests/test-chown.h (nap): Factor...
31197         * tests/nap.h: ...into new file.
31198         * tests/test-lchown.h (nap): Avoid duplication.
31199         * tests/test-utimens-common.h (nap): Use shared implementation,
31200         necessary on file systems with 1-second resolution.
31201         * modules/chown-tests (Files): Include new file.
31202         * modules/fdutimensat-tests (Files): Likewise.
31203         * modules/futimens-tests (Files): Likewise.
31204         * modules/lchown-tests (Files): Likewise.
31205         * modules/openat-tests (Files): Likewise.
31206         * modules/utimens-tests (Files): Likewise.
31207         * modules/utimensat-tests (Files): Likewise.
31208
31209 2009-12-19  Eric Blake  <ebb9@byu.net>
31210
31211         futimens, utimensat: work around Linux bug
31212         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
31213         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
31214         * lib/utimensat.c (rpl_utimensat): Work around it.
31215         * lib/futimens.c (rpl_futimens): Adjust comment.
31216
31217         utimens: work around Linux ctime bug
31218         * lib/utimens.c (detect_ctime_bug): New helper function.
31219         (update_timespec): Differentiate between workaround needed for
31220         this bug vs. what is needed for systems that lack utimensat.
31221         (fdutimens, lutimens): Work around bug.
31222
31223         utimens: check for ctime update
31224         * tests/test-utimens-common.h (check_ctime): Define.
31225         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
31226         * tests/test-futimens.h (test_futimens): Likewise.
31227         * tests/test-lutimens.h (test_lutimens): Likewise.
31228         * doc/posix-functions/futimens.texi (futimens): Document the bug.
31229         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
31230
31231 2009-12-19  Bruno Haible  <bruno@clisp.org>
31232
31233         dprintf-posix: Check against memory leak fixed on 2009-12-15.
31234         * tests/test-dprintf-posix2.sh: New file.
31235         * tests/test-dprintf-posix2.c: New file.
31236         * modules/dprintf-posix-tests (Files): Add them.
31237         (configure.ac): Check for getrlimit and setrlimit.
31238         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
31239
31240 2009-12-19  Bruno Haible  <bruno@clisp.org>
31241
31242         fprintf-posix: Check against memory leak fixed on 2009-12-15.
31243         * tests/test-fprintf-posix3.sh: New file.
31244         * tests/test-fprintf-posix3.c: New file.
31245         * modules/fprintf-posix-tests (Files): Add them.
31246         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
31247
31248 2009-12-19  Eric Blake  <ebb9@byu.net>
31249
31250         dirfd: fix prototype
31251         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
31252         * lib/dirfd.c (dirfd): Likewise.
31253
31254         canonicalize: reduce memory usage
31255         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
31256         allocation to size.
31257         Reported by Solar Designer <solar@openwall.com>.
31258
31259 2009-12-19  Bruno Haible  <bruno@clisp.org>
31260
31261         New module attribute 'Applicability'.
31262         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
31263         * gnulib-tool: New option --extract-applicability.
31264         (func_usage): Document it.
31265         (sed_extract_prog): Recognize it.
31266         (func_get_applicability): New function.
31267         (func_import): Generalize handling of 'link-warning' module.
31268         * modules/link-warning (Applicability): New section.
31269         * modules/arg-nonnull (Applicability): New section.
31270         Repoted by Simon Josefsson <simon@josefsson.org>.
31271
31272 2009-12-19  Bruno Haible  <bruno@clisp.org>
31273
31274         fflush: tweak
31275         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
31276         * lib/fseeko.c (rpl_fseeko): Likewise.
31277
31278 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
31279
31280         * lib/gl_list.h: Fix typo in comment.
31281
31282 2009-12-16  Eric Blake  <ebb9@byu.net>
31283
31284         fcntl: use to simplify other modules
31285         * modules/cloexec (Depends-on): Add fcntl.
31286         * modules/fchdir (Depends-on): Likewise.
31287         * modules/fd-safer-flag (Depends-on): Likewise.
31288         * modules/unistd-safer (Depends-on): Likewise.
31289         * modules/dup3 (configure.ac): Set module indicator.
31290         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
31291         missing.
31292         * lib/fchdir.c (_gl_register_dup): Fix comment.
31293         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
31294         * lib/dup-safer.c (dup_safer): Likewise.
31295         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
31296         * lib/dup3.c (dup3): Likewise.
31297         * tests/test-fchdir.c (main): Enhance test.
31298         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
31299
31300         fcntl: port portions of fcntl to mingw
31301         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
31302         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
31303         replacement for mingw.
31304         * modules/fcntl (Description): Update.
31305         (Depends-on): Add dup2.
31306         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
31307         * modules/fcntl-h (Makefile.am): Substitute it.
31308         * lib/fcntl.in.h (fcntl): Update declaration.
31309         (F_DUPFD, F_GETFD): New macros, when needed.
31310         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
31311         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
31312         * tests/test-fcntl.c (check_flags, main): Enhance test for items
31313         we now guarantee.
31314
31315         fcntl: work around cygwin bug in F_DUPFD
31316         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
31317         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
31318         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
31319         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
31320         * doc/posix-functions/fcntl.texi (fcntl): Document it.
31321
31322         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
31323         * modules/fcntl (Files): List new files.
31324         (configure.ac): Run a test.
31325         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
31326         * lib/fcntl.c (rpl_fcntl): Likewise.
31327         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
31328         (gl_FCNTL_H): Always replace fcntl.h.
31329         * modules/fcntl-h (Makefile.am): Substitute witnesses.
31330         * lib/fcntl.in.h (fcntl): Declare replacement.
31331         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
31332         needed, plus a witness.
31333         * doc/posix-functions/fcntl.texi (fcntl): Document this.
31334         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
31335         * tests/test-fcntl.c: New file.
31336         * modules/fcntl-tests: Likewise.
31337
31338         binary-io: avoid potential compilation warning
31339         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
31340         directives.
31341
31342         fflush: avoid compilation error on NetBSD
31343         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
31344         between off_t and fpos_t, since the latter is sometimes a struct.
31345         * lib/fseeko.c (rpl_fseeko): Likewise.
31346         Reported by Alexander Nasonov <alnsn@yandex.ru>.
31347
31348 2009-12-15  Eric Blake  <ebb9@byu.net>
31349
31350         fcntl-h, stdio, sys_ioctl: fix declarations
31351         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
31352         function must not take arguments.
31353         * lib/sys_ioctl.in.h (ioctl): Likewise.
31354         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
31355         (open): Add a link warning.
31356
31357 2009-12-15  Jim Meyering  <meyering@redhat.com>
31358
31359         areadlink, areadlink-with-size: relax license to LGPLv2+
31360         * modules/areadlink (License): Relax to LGPLv2+.
31361         * modules/areadlink-with-size (License): Likewise.
31362
31363 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
31364             Bruno Haible  <bruno@clisp.org>
31365
31366         *printf: Fix memory leak.
31367         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
31368         * lib/vfprintf.c (vfprintf): Likewise.
31369         * lib/dprintf.c (dprintf): Likewise.
31370         * lib/vdprintf.c (vdprintf): Likewise.
31371
31372 2009-12-14  Eric Blake  <ebb9@byu.net>
31373
31374         accept4: adjust module dependencies
31375         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
31376
31377         utimens: one more try at avoiding compiler warning
31378         * lib/utimens.c (lutimens): Lower scope of result.
31379
31380 2009-12-13  Bruno Haible  <bruno@clisp.org>
31381
31382         Move the malloc checking from module 'list' to new module 'xlist'.
31383         * modules/xlist: New file.
31384         * lib/gl_xlist.h: New file.
31385         * lib/gl_xlist.c: New file.
31386         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
31387         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
31388         gl_list_add_last, gl_list_add_before, gl_list_add_after,
31389         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
31390         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
31391         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
31392         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
31393         gl_sortedlist_nx_add): New declarations.
31394         (struct gl_list_implementation): Rename and change methods accordingly.
31395         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
31396         (gl_list_nx_create): Renamed from gl_list_create.
31397         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
31398         (gl_list_nx_set_at): Renamed from gl_list_set_at.
31399         (gl_list_nx_add_first): Renamed from gl_list_add_first.
31400         (gl_list_nx_add_last): Renamed from gl_list_add_last.
31401         (gl_list_nx_add_before): Renamed from gl_list_add_before.
31402         (gl_list_nx_add_after): Renamed from gl_list_add_after.
31403         (gl_list_nx_add_at): Renamed from gl_list_add_at.
31404         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
31405         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
31406         gl_list_create_empty.
31407         (gl_list_nx_create): Renamed from gl_list_create.
31408         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
31409         (gl_list_nx_set_at): Renamed from gl_list_set_at.
31410         (gl_list_nx_add_first): Renamed from gl_list_add_first.
31411         (gl_list_nx_add_last): Renamed from gl_list_add_last.
31412         (gl_list_nx_add_before): Renamed from gl_list_add_before.
31413         (gl_list_nx_add_after): Renamed from gl_list_add_after.
31414         (gl_list_nx_add_at): Renamed from gl_list_add_at.
31415         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
31416         * lib/gl_array_list.c: Don't include xalloc.h.
31417         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
31418         NULL upon out-of-memory.
31419         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
31420         out-of-memory.
31421         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
31422         Change return type to 'int'.
31423         (gl_array_nx_set_at): Renamed from gl_array_set_at.
31424         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
31425         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
31426         upon out-of-memory.
31427         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
31428         upon out-of-memory.
31429         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
31430         upon out-of-memory.
31431         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
31432         upon out-of-memory.
31433         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
31434         out-of-memory.
31435         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
31436         Update.
31437         (gl_array_list_implementation): Update.
31438         * lib/gl_carray_list.c: Don't include xalloc.h.
31439         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
31440         Return NULL upon out-of-memory.
31441         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
31442         out-of-memory.
31443         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
31444         Change return type to 'int'.
31445         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
31446         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
31447         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
31448         upon out-of-memory.
31449         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
31450         upon out-of-memory.
31451         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
31452         out-of-memory.
31453         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
31454         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
31455         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
31456         Update.
31457         (gl_carray_list_implementation): Update.
31458         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
31459         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
31460         gl_linked_create_empty. Return NULL upon out-of-memory.
31461         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
31462         out-of-memory.
31463         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
31464         Change return type to 'int'. Return -1 upon out-of-memory.
31465         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
31466         out-of-memory.
31467         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
31468         upon out-of-memory.
31469         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
31470         upon out-of-memory.
31471         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
31472         NULL upon out-of-memory.
31473         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
31474         upon out-of-memory.
31475         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
31476         out-of-memory.
31477         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
31478         Update.
31479         * lib/gl_linked_list.c: Don't include xalloc.h.
31480         (gl_linked_list_implementation): Update.
31481         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
31482         (add_to_bucket): Change return type to 'int'.
31483         (gl_linkedhash_list_implementation): Update.
31484         * lib/gl_anytree_list1.h (free_subtree): New function.
31485         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
31486         gl_tree_create_empty. Return NULL upon out-of-memory.
31487         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
31488         Change return type to 'int'. Return -1 upon out-of-memory.
31489         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
31490         out-of-memory.
31491         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
31492         (gl_tree_remove_node): New function, moved here from
31493         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
31494         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
31495         Update.
31496         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
31497         malloc, not xmalloc. Return NULL upon out-of-memory.
31498         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
31499         out-of-memory.
31500         (gl_tree_remove_node_from_tree): New function, extracted from
31501         gl_tree_remove_node.
31502         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
31503         upon out-of-memory.
31504         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
31505         out-of-memory.
31506         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
31507         upon out-of-memory.
31508         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
31509         upon out-of-memory.
31510         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
31511         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
31512         not xmalloc. Return NULL upon out-of-memory.
31513         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
31514         out-of-memory.
31515         (gl_tree_remove_node_from_tree): New function, extracted from
31516         gl_tree_remove_node.
31517         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
31518         upon out-of-memory.
31519         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
31520         out-of-memory.
31521         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
31522         upon out-of-memory.
31523         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
31524         upon out-of-memory.
31525         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
31526         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
31527         gl_anytree_list1.h before gl_anyavltree_list2.h.
31528         (gl_avltree_list_implementation): Update.
31529         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
31530         gl_anytree_list1.h before gl_anyavltree_list2.h.
31531         (gl_rbtree_list_implementation): Update.
31532         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
31533         Change return type to 'int'. Return -1 upon out-of-memory. Use
31534         __builtin_expect.
31535         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
31536         (gl_avltreehash_list_implementation): Update.
31537         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
31538         (gl_rbtreehash_list_implementation): Update.
31539         * modules/array-list (Depends-on): Remove xalloc.
31540         * modules/carray-list (Depends-on): Likewise.
31541         * modules/linked-list (Depends-on): Likewise.
31542         * modules/linkedhash-list (Depends-on): Likewise.
31543         * modules/avltree-list (Depends-on): Likewise.
31544         * modules/rbtree-list (Depends-on): Likewise.
31545         * modules/avltreehash-list (Depends-on): Likewise.
31546         * modules/rbtreehash-list (Depends-on): Likewise.
31547
31548         * modules/xsublist: New file.
31549         * lib/gl_xsublist.h: New file.
31550         * lib/gl_xsublist.c: New file.
31551         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
31552         (gl_sublist_nx_create): New declaration.
31553         * lib/gl_sublist.c: Don't include xalloc.h.
31554         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
31555         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
31556         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
31557         Change return type to 'int'. Return -1 upon out-of-memory.
31558         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
31559         upon out-of-memory.
31560         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
31561         NULL upon out-of-memory.
31562         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
31563         upon out-of-memory.
31564         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
31565         NULL upon out-of-memory.
31566         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
31567         NULL upon out-of-memory.
31568         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
31569         upon out-of-memory.
31570         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
31571         (gl_sublist_list_implementation): Update.
31572         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
31573         upon out-of-memory.
31574         * modules/sublist (Depends-on): Remove xalloc.
31575
31576         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
31577         * tests/test-carray_list.c: Likewise.
31578         * tests/test-linked_list.c: Likewise.
31579         * tests/test-linkedhash_list.c: Likewise.
31580         * tests/test-avltree_list.c: Likewise.
31581         * tests/test-rbtree_list.c: Likewise.
31582         * tests/test-avltreehash_list.c: Likewise.
31583         * tests/test-rbtreehash_list.c: Likewise.
31584         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
31585         * modules/carray-list-tests (Makefile.am): Likewise.
31586         * modules/linked-list-tests (Makefile.am): Likewise.
31587         * modules/linkedhash-list-tests (Makefile.am): Likewise.
31588         * modules/avltree-list-tests (Makefile.am): Likewise.
31589         * modules/rbtree-list-tests (Makefile.am): Likewise.
31590         * modules/avltreehash-list-tests (Makefile.am): Likewise.
31591         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
31592
31593         * NEWS: Mention the changes.
31594
31595         * lib/clean-temp.c: Include gl_xlist.h.
31596         * modules/clean-temp (Depends-on): Add xlist.
31597
31598         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
31599         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
31600
31601         * tests/test-array_oset.c: Include gl_xlist.h.
31602         * modules/array-oset-tests (Depends-on): Add xlist.
31603
31604         Reported by José E. Marchesi <jemarch@gnu.org>.
31605
31606 2009-12-13  Bruno Haible  <bruno@clisp.org>
31607
31608         Move the malloc checking from module 'oset' to new module 'xoset'.
31609         * modules/xoset: New file.
31610         * lib/gl_xoset.h: New file.
31611         * lib/gl_xoset.c: New file.
31612         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
31613         declarations.
31614         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
31615         (struct gl_oset_implementation): Rename and change methods accordingly.
31616         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
31617         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
31618         'int'. Mark as __warn_unused_result__.
31619         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
31620         gl_oset_create_empty.
31621         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
31622         'int'.
31623         * lib/gl_array_oset.c: Don't include xalloc.h.
31624         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
31625         malloc, not xmalloc.
31626         (grow): Change return type to 'int'. Don't call xalloc_die.
31627         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
31628         to 'int'.
31629         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
31630         'int'.
31631         (gl_array_oset_implementation): Update.
31632         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
31633         gl_tree_create_empty.
31634         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
31635         'int'.
31636         * lib/gl_avltree_oset.c: Don't include xalloc.h.
31637         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
31638         xmalloc.
31639         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
31640         not xmalloc.
31641         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
31642         xmalloc.
31643         (gl_avltree_oset_implementation): Update.
31644         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
31645         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
31646         xmalloc.
31647         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
31648         not xmalloc.
31649         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
31650         xmalloc.
31651         (gl_rbtree_oset_implementation): Update.
31652         * modules/array-oset (Depends-on): Remove xalloc.
31653         * modules/avltree-oset (Depends-on): Likewise.
31654         * modules/rbtree-oset (Depends-on): Likewise.
31655         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
31656         * tests/test-avltree_oset.c: Likewise.
31657         * tests/test-rbtree_oset.c: Likewise.
31658         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
31659         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
31660         * modules/rbtree-oset-tests (Makefile.am): Likewise.
31661         * NEWS: Mention the change.
31662
31663 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
31664
31665         maint.mk: allow a project to override release-prep commands
31666         * top/maint.mk (alpha, beta, stable): Move release-preparatory
31667         commands into a new rule.
31668         (release-prep): New rule.
31669         (release-prep-hook): New overridable variable.
31670
31671 2009-12-13  Bruno Haible  <bruno@clisp.org>
31672
31673         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
31674
31675 2009-12-13  Jim Meyering  <meyering@redhat.com>
31676
31677         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
31678         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
31679
31680 2009-12-12  Bruno Haible  <bruno@clisp.org>
31681
31682         duplocale: Tweak.
31683         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
31684
31685 2009-12-12  Karl Berry  <karl@gnu.org>
31686
31687         * config/srclist.txt (strtoll.c): tab changes, no more sync.
31688
31689 2009-12-12  Bruno Haible  <bruno@clisp.org>
31690
31691         * m4/po.m4: Undo incorrect untabification.
31692
31693 2009-12-12  Bruno Haible  <bruno@clisp.org>
31694
31695         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
31696         * modules/c-strtod (Depends-on): Add locale.
31697         * modules/c-strtold (Depends-on): Likewise.
31698
31699 2009-12-12  Bruno Haible  <bruno@clisp.org>
31700
31701         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
31702
31703 2009-12-11  Eric Blake  <ebb9@byu.net>
31704
31705         setenv: relax requirement in light of POSIX ruling
31706         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
31707         not NULL.
31708         * tests/test-setenv.c (main): Relax test.
31709         * tests/test-unsetenv.c (main): Likewise.
31710         * doc/posix-functions/setenv.texi (setenv): Document this.
31711         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
31712
31713 2009-12-11  Bruno Haible  <bruno@clisp.org>
31714
31715         New module 'fd-safer-flag'.
31716         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
31717         * lib/dup-safer.c (dup_safer_flag): Remove function.
31718         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
31719         * lib/fd-safer.c (fd_safer_flag): Remove function.
31720         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
31721         * modules/cloexec (configure.ac): Drop indicator macro.
31722         * modules/fd-safer-flag: New file.
31723         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
31724         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
31725         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
31726
31727 2009-12-11  Bruno Haible  <bruno@clisp.org>
31728
31729         Tests for module 'nl_langinfo'.
31730         * modules/nl_langinfo-tests: New file.
31731         * tests/test-nl_langinfo.sh: New file.
31732         * tests/test-nl_langinfo.c: New file.
31733
31734         New module 'nl_langinfo'.
31735         * lib/nl_langinfo.c: New file.
31736         * m4/nl_langinfo.m4: New file.
31737         * modules/nl_langinfo: New file.
31738         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
31739
31740 2009-12-11  Bruno Haible  <bruno@clisp.org>
31741
31742         Tests for module 'langinfo'.
31743         * modules/langinfo-tests: New file.
31744         * tests/test-langinfo.c: New file.
31745
31746         New module 'langinfo'.
31747         * lib/langinfo.in.h: New file.
31748         * m4/langinfo_h.m4: New file.
31749         * modules/langinfo: New file.
31750         * doc/posix-headers/langinfo.texi: Mention the new module.
31751
31752 2009-12-11  Bruno Haible  <bruno@clisp.org>
31753
31754         * lib/config.charset: Untabify.
31755
31756 2009-12-11  Bruno Haible  <bruno@clisp.org>
31757
31758         * modules/unistd-safer (configure.ac): Drop indicator macro.
31759
31760 2009-12-11  Bruno Haible  <bruno@clisp.org>
31761
31762         Move pipe2-safer code to its own file.
31763         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
31764         * lib/pipe-safer.c (pipe2_safer): Remove function.
31765         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
31766         (Makefile.am): Add it to lib_SOURCES.
31767
31768 2009-12-10  Bruno Haible  <bruno@clisp.org>
31769
31770         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
31771
31772 2009-12-10  Bruno Haible  <bruno@clisp.org>
31773
31774         Declare which arguments expect non-NULL values, for GCC and clang.
31775         * build-aux/arg-nonnull.h: New file.
31776         * modules/arg-nonnull: New file.
31777         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
31778         (inet_ntop, inet_pton): Use it.
31779         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
31780         (closedir, dirfd, opendir, scandir, alphasort): Use it.
31781         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
31782         (open, openat): Use it.
31783         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
31784         (fnmatch): Use it.
31785         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
31786         (getopt, getopt_long, getopt_long_only): Use it.
31787         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
31788         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
31789         Use it.
31790         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
31791         (iconv_open): Use it.
31792         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
31793         (strtoimax, strtoumax): Use it.
31794         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
31795         (duplocale): Use it.
31796         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
31797         (frexp, frexpl): Use it.
31798         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
31799         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
31800         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
31801         (tsearch, tfind, tdelete, twalk): Use it.
31802         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
31803         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
31804         sigpending): Use it.
31805         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
31806         (posix_spawn, posix_spawnp, posix_spawnattr_init,
31807         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
31808         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
31809         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
31810         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
31811         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
31812         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
31813         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
31814         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
31815         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
31816         Use it.
31817         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
31818         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
31819         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
31820         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
31821         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
31822         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
31823         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
31824         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
31825         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
31826         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
31827         strtoull, unsetenv): Use it.
31828         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
31829         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
31830         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
31831         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
31832         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
31833         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
31834         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
31835         (strcasecmp, strncasecmp): Use it.
31836         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
31837         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
31838         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
31839         rpl_setsockopt): Use it.
31840         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
31841         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
31842         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
31843         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
31844         (gettimeofday): Use it.
31845         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
31846         (times): Use it.
31847         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
31848         (uname): Use it.
31849         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
31850         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
31851         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
31852         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
31853         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
31854         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
31855         unlinkat, write): Use it.
31856         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
31857         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
31858         * lib/argv-iter.h: Include arg-nonnull.h.
31859         (_ATTRIBUTE_NONNULL_): Remove macro.
31860         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
31861         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
31862         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
31863         optimization.
31864         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
31865         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
31866         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
31867         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
31868         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
31869         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
31870         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
31871         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
31872         * modules/arpa_inet (Depends-on): Add arg-nonnull.
31873         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
31874         * modules/dirent (Depends-on): Add arg-nonnull.
31875         (Makefile.am): Insert arg-nonnull.h into dirent.h.
31876         * modules/fcntl-h (Depends-on): Add arg-nonnull.
31877         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
31878         * modules/fnmatch (Depends-on): Add arg-nonnull.
31879         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
31880         * modules/getopt-posix (Depends-on): Add arg-nonnull.
31881         (Makefile.am): Insert arg-nonnull.h into getopt.h.
31882         * modules/glob (Depends-on): Add arg-nonnull.
31883         (Makefile.am): Insert arg-nonnull.h into glob.h.
31884         * modules/iconv_open (Depends-on): Add arg-nonnull.
31885         (Makefile.am): Insert arg-nonnull.h into iconv.h.
31886         * modules/inttypes (Depends-on): Add arg-nonnull.
31887         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
31888         * modules/locale (Depends-on): Add arg-nonnull.
31889         (Makefile.am): Insert arg-nonnull.h into locale.h.
31890         * modules/math (Depends-on): Add arg-nonnull.
31891         (Makefile.am): Insert arg-nonnull.h into math.h.
31892         * modules/netdb (Depends-on): Add arg-nonnull.
31893         (Makefile.am): Insert arg-nonnull.h into netdb.h.
31894         * modules/search (Depends-on): Add arg-nonnull.
31895         (Makefile.am): Insert arg-nonnull.h into search.h.
31896         * modules/signal (Depends-on): Add arg-nonnull.
31897         (Makefile.am): Insert arg-nonnull.h into signal.h.
31898         * modules/spawn (Depends-on): Add arg-nonnull.
31899         (Makefile.am): Insert arg-nonnull.h into spawn.h.
31900         * modules/stdio (Depends-on): Add arg-nonnull.
31901         (Makefile.am): Insert arg-nonnull.h into stdio.h.
31902         * modules/stdlib (Depends-on): Add arg-nonnull.
31903         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
31904         * modules/string (Depends-on): Add arg-nonnull.
31905         (Makefile.am): Insert arg-nonnull.h into string.h.
31906         * modules/strings (Depends-on): Add arg-nonnull.
31907         (Makefile.am): Insert arg-nonnull.h into strings.h.
31908         * modules/sys_socket (Depends-on): Add arg-nonnull.
31909         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
31910         * modules/sys_stat (Depends-on): Add arg-nonnull.
31911         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
31912         * modules/sys_time (Depends-on): Add arg-nonnull.
31913         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
31914         * modules/sys_times (Depends-on): Add arg-nonnull.
31915         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
31916         * modules/sys_utsname (Depends-on): Add arg-nonnull.
31917         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
31918         * modules/time (Depends-on): Add arg-nonnull.
31919         (Makefile.am): Insert arg-nonnull.h into time.h.
31920         * modules/unistd (Depends-on): Add arg-nonnull.
31921         (Makefile.am): Insert arg-nonnull.h into unistd.h.
31922         * modules/wchar (Depends-on): Add arg-nonnull.
31923         (Makefile.am): Insert arg-nonnull.h into wchar.h.
31924         * modules/argv-iter (Depends-on): Add arg-nonnull.
31925         * tests/test-canonicalize.c (null_ptr): New function.
31926         (main): Use it.
31927         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
31928         (main): Use it.
31929         * tests/test-memmem.c (null_ptr): New function.
31930         (main): Use it.
31931         Reported by Jim Meyering.
31932
31933 2009-12-10  Bruno Haible  <bruno@clisp.org>
31934
31935         Use spaces for indentation, not tabs.
31936         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
31937         * m4/*.m4: Untabify.
31938         * build-aux/*.h: Untabify.
31939         * tests/**/*.[hc]: Untabify.
31940         * README: New section "Indent with spaces, not TABs", based on
31941         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
31942         * NEWS: Mention the change.
31943
31944 2009-12-10  Bruno Haible  <bruno@clisp.org>
31945
31946         pty test: Fix link error.
31947         * modules/pty-tests (Makefile.am): Add the default LDADD value to
31948         test_pty_LDADD.
31949
31950 2009-12-07  Simon Josefsson  <simon@josefsson.org>
31951
31952         * modules/pty: New file.
31953         * modules/pty-tests: New file.
31954         * m4/pty.m4: New file.
31955         * tests/test-pty.c: New file.
31956         * doc/glibc-headers/pty.texi: Modified.
31957         * doc/glibc-functions/forkpty.texi: Modified.
31958         * doc/glibc-functions/openpty.texi: Modified.
31959
31960 2009-12-10  Bruno Haible  <bruno@clisp.org>
31961
31962         Avoid syntax error in C++ mode.
31963         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
31964
31965 2009-12-10  Bruno Haible  <bruno@clisp.org>
31966
31967         Use sed with option -e.
31968         * gnulib-tool (func_version, func_emit_copyright_notice,
31969         func_emit_initmacro_end, func_import, func_create_testdir): Pass
31970         option -e to sed.
31971         * modules/link-warning (Makefile.am): Likewise.
31972
31973 2009-12-10  Jim Meyering  <meyering@redhat.com>
31974
31975         mgetgroups: do not write bytes beyond end of malloc'd buffer
31976         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
31977         username, we call getgroups with a one-element-shorter buffer,
31978         but still told it the length was original, max_n_groups.
31979
31980 2009-12-09  Eric Blake  <ebb9@byu.net>
31981
31982         cloexec: relax license
31983         * modules/cloexec (Maintainer): Add myself.
31984         (License): Use LGPL, not GPL.
31985
31986         link-warning: optimize generation
31987         * modules/link-warning (Makefile.am): Reduce process usage.
31988
31989 2009-12-09  Bruno Haible  <bruno@clisp.org>
31990
31991         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
31992         workaround was added on 2009-11-17.
31993
31994 2009-12-09  Jim Meyering  <meyering@redhat.com>
31995             Bruno Haible  <bruno@clisp.org>
31996
31997         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
31998         * modules/link-warning (Makefile.am): Make the comment-removing sed
31999         command more robust in the face of bootstrap-prepended comment lines.
32000
32001 2009-12-09  Bruno Haible  <bruno@clisp.org>
32002
32003         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
32004         most one group.
32005
32006 2009-12-09  Simon Josefsson <simon@josefsson.org>
32007             Bruno Haible  <bruno@clisp.org>
32008
32009         * build-aux/link-warning.h: Add copyright notice.
32010         * modules/link-warning (Makefile.am): Generate link-warning.h from
32011         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
32012         * NEWS: Mention change in link-warning module.
32013         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
32014         * modules/dirent (Makefile.am): Add dependency to dirent.h.
32015         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
32016         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
32017         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
32018         * modules/math (Makefile.am): Add dependency to math.h.
32019         * modules/search (Makefile.am): Add dependency to search.h.
32020         * modules/signal (Makefile.am): Add dependency to signal.h.
32021         * modules/spawn (Makefile.am): Add dependency to spawn.h.
32022         * modules/stdio (Makefile.am): Add dependency to stdio.h.
32023         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
32024         * modules/string (Makefile.am): Add dependency to string.h.
32025         * modules/strings (Makefile.am): Add dependency to strings.h.
32026         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
32027         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
32028         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
32029         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
32030         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
32031         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
32032         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
32033         * modules/unistd (Makefile.am): Add dependency to unistd.h.
32034         * modules/wchar (Makefile.am): Add dependency to wchar.h.
32035
32036 2009-12-09  Bruno Haible  <bruno@clisp.org>
32037
32038         fchdir: Optimize away rpl_fstat when possible.
32039         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
32040         REPLACE_OPEN_DIRECTORY.
32041         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
32042
32043 2009-12-09  Bruno Haible  <bruno@clisp.org>
32044
32045         * lib/fchdir.c: Update comment.
32046
32047 2009-12-09  Bruno Haible  <bruno@clisp.org>
32048
32049         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
32050
32051 2009-12-08  Eric Blake  <ebb9@byu.net>
32052
32053         fchdir: avoid memory leak on re-registration.
32054         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
32055
32056 2009-12-08  Jim Meyering  <meyering@redhat.com>
32057
32058         init.sh: avoid Solaris 10 /bin/sh portability problem
32059         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
32060         sourced script:
32061           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
32062           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
32063           bar
32064         tests/init.sh relied on that, accepting a --set-path=DIR argument,
32065         and two tests used that idiom.
32066         * tests/init.sh: Update suggested usage comments.
32067         (path_prepend_): New function, to be used in place
32068         of the --src-path=DIR option.
32069         (setup_): Move PATH-prepending code into path_prepend_.
32070         * tests/test-pread.sh: Adapt to new usage.
32071         * tests/test-xalloc-die.sh: Likewise.
32072
32073 2009-12-08  Simon Josefsson  <simon@josefsson.org>
32074
32075         * doc/gnulib.texi (Glibc pty.h): Add.
32076         * doc/glibc-functions/forkpty.texi: Add.
32077         * doc/glibc-functions/openpty.texi: Add.
32078         Suggested by Bruno Haible.
32079
32080 2009-12-08  Eric Blake  <ebb9@byu.net>
32081
32082         fchdir: fix logic bugs
32083         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
32084         * tests/test-fchdir.c (main): Enhance test.
32085         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
32086         is in use.
32087
32088         dup2: fix logic bugs
32089         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
32090         REPLACE_DUP2 to decide when rpl_dup2 is needed.
32091         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
32092         exists.
32093         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
32094
32095 2009-12-07  Eric Blake  <ebb9@byu.net>
32096
32097         unlink: fix m4 detection
32098         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
32099
32100         unistd-safer: add unit test
32101         * modules/unistd-safer-tests: New file.
32102         * tests/test-dup-safer.c: Likewise.
32103         * tests/test-cloexec.c (setmode): Avoid compiler warning.
32104         * tests/test-dup2.c (setmode): Likewise.
32105         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
32106
32107         cloexec: preserve text vs. binary across dup_cloexec
32108         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
32109         mode.
32110         * modules/dup2-tests (Depends-on): Add binary-io.
32111         * modules/cloexec-tests (Depends-on): Likewise.
32112         * tests/test-dup2.c (setmode, is_mode): New helpers.
32113         (main): Add tests that translation mode is preserved.
32114         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
32115         Reported by Bruno Haible.
32116
32117         mgetgroups: reduce duplicate listings
32118         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
32119         resulting array.
32120         * tests/test-chown.h (test_chown): Simplify client.
32121         * tests/test-lchown.h (test_lchown): Likewise.
32122
32123 2009-12-06  Bruno Haible  <bruno@clisp.org>
32124
32125         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
32126         value.
32127
32128 2009-12-06  Bruno Haible  <bruno@clisp.org>
32129
32130         * lib/progname.c: Include stdio.h, stdlib.h.
32131         (set_program_name): Reject a NULL argument.
32132
32133 2009-12-05  Eric Blake  <ebb9@byu.net>
32134
32135         pipe2-safer: new module
32136         * modules/pipe2-safer: New file.
32137         * lib/unistd-safer.h (pipe2_safer): New prototype.
32138         * lib/unistd--.h (pipe2): New wrapper.
32139         * lib/pipe-safer.c (pipe2_safer): New function.
32140         * modules/pipe (Depends-on): Add pipe2-safer.
32141         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
32142
32143         stdlib-safer: preserve cloexec flag for mkostemp[s]
32144         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
32145         fd_safer_flag.
32146
32147         unistd-safer: allow preservation of cloexec status via flag
32148         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
32149         prototypes.
32150         * lib/dup-safer.c (dup_safer_flag): New function.
32151         * lib/fd-safer.c (fd_safer_flag): Likewise.
32152         * modules/cloexec (configure.ac): Set witness.
32153
32154         test-dup2: enhance test
32155         * modules/dup2-tests (Depends-on): Add cloexec.
32156         * tests/test-dup2.c (main): Enhance test.
32157
32158         cloexec: add dup_cloexec
32159         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
32160         header and comments.
32161         * lib/cloexec.c (set_cloexec_flag): Add comments.
32162         (dup_cloexec): New function, with mingw implementation borrowed
32163         from...
32164         * lib/w32spawn.h (dup_noinherit): ...here.
32165         * modules/execute (Depends-on): Add cloexec.
32166         * modules/pipe (Depends-on): Likewise.
32167         * modules/cloexec (Depends-on): Add dup2.
32168         * modules/cloexec-tests (Files): New file.
32169         * tests/test-cloexec.c: Likewise.
32170
32171         test-xalloc-die: fix test for mingw
32172         * modules/xalloc-die-tests (Files): Add tests/init.sh.
32173         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
32174         directory and .exe suffix off argv[0] output.
32175
32176         test-fseeko: fix test for mingw
32177         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
32178         than undefining fseek, so test will pass on mingw.
32179
32180 2009-12-05  Bruno Haible  <bruno@clisp.org>
32181
32182         * lib/progname.h (set_program_name): Clarify specification.
32183         * lib/progname.c (set_program_name): Likewise.
32184         Reported by Jim Meyering.
32185
32186 2009-12-05  Jim Meyering  <meyering@redhat.com>
32187
32188         maint.mk: backslash-escape parens in default regexp
32189         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
32190         backslash-escape the literal parentheses.
32191
32192         maint.mk: news-date-check: use grep -E
32193         * top/maint.mk (today): Define a Make variable, not a...
32194         (news-date-check): ...shell variable.
32195         (news-date-regexp): Use the Make variable.
32196         Use grep's -E option.  Change the failing diagnostic to mention
32197         the variable, $(news-date-regexp).
32198
32199 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
32200
32201         maintainer-makefile: allow customization of NEWS entry format
32202         * top/maint.mk (news-date-regexp): New overridable variable.
32203         (news-date-check): Use it.
32204
32205 2009-12-04  Eric Blake  <ebb9@byu.net>
32206
32207         mgetgroups: add xgetgroups, and avoid ENOSYS failures
32208         * lib/mgetgroups.h (xgetgroups): New prototype.
32209         * lib/mgetgroups.c (xgetgroups): New wrapper.
32210         (mgetgroups): Handle ENOSYS.
32211         * modules/mgetgroups (Depends-on): Add realloc.
32212         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
32213
32214         mgetgroups: avoid argument promotion issues with -1
32215         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
32216         for invalid gid_t.
32217         * tests/test-chown.h (getegid, test_chown): Likewise.
32218         * tests/test-lchown.h (getegid, test_lchown): Likewise.
32219
32220 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
32221
32222         exclude: Fix header file problems.
32223         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
32224
32225 2009-12-01  Jim Meyering  <meyering@redhat.com>
32226
32227         fts: fts_open: do not let an empty string cause immediate failure
32228         This is required in support of GNU rm, for which the command
32229         "rm A '' B" must process and remove both A and B, in spite of
32230         the empty string argument.
32231         * lib/fts.c (fts_open): Do not let the presence of an empty string
32232         cause fts_open to fail immediately.  Most fts-using tools must be
32233         able to process all arguments, in order, and can be expected to
32234         diagnose such arguments themselves.
32235
32236 2009-11-30  Eric Blake  <ebb9@byu.net>
32237
32238         utimens: fix compilation error
32239         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
32240         Declare variable at right scope.
32241
32242 2009-11-29  Jim Meyering  <meyering@redhat.com>
32243
32244         bootstrap: handle perl-5.11's changed --version output
32245         * build-aux/bootstrap (get_version): Handle perl separately,
32246         since perl-5.11's --version output is different.
32247
32248 2009-11-28  Jim Meyering  <meyering@redhat.com>
32249
32250         userspec: depend on the inttostr module, too
32251         * modules/userspec (Depends-on): Add inttostr.
32252
32253         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
32254         * lib/userspec.c (parse_with_separator): Do not accept a user ID
32255         number of MAXUID when it evaluates to (uid_t) -1.
32256         Likewise for group ID.  Reported by Matt McCutchen in
32257         <http://savannah.gnu.org/bugs/?28113>
32258
32259         userspec: reformat to use spaces, not TABs
32260         * lib/userspec.c: Expand TABs to spaces.
32261         Add Emacs' "indent-tabs-mode: nil" hint.
32262
32263 2009-11-27  Eric Blake  <ebb9@byu.net>
32264
32265         getopt-gnu: flush out another BSD bug
32266         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
32267         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
32268         flush out BSD bug.
32269         * tests/test-getopt.h (test_getopt): End lists with NULL.
32270         * tests/test-getopt_long.h (test_getopt_long): Likewise.
32271         (test_getopt_long_posix): Enhance test.
32272         * modules/getopt-posix-tests (Depends-on): Add stdbool.
32273         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
32274         getopt-gnu.
32275         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
32276         Likewise.
32277
32278 2009-11-27  Simon Josefsson  <simon@josefsson.org>
32279
32280         * modules/idpriv-droptemp-tests (Notice): Fix text.
32281
32282 2009-11-27  Jim Meyering  <meyering@redhat.com>
32283
32284         test-xalloc-die: avoid spurious failure due to libtool argv difference
32285         In a libtool-enabled project, this test would fail due to a difference
32286         in the emitted program name, e.g.,
32287         -test-xalloc-die: memory exhausted
32288         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
32289         Use program to avoid that.
32290         * modules/xalloc-die-tests (Depends-on): Add progname.
32291         * tests/test-xalloc-die.c: Include progname.h".
32292         (program_name): Remove decl.
32293         (main): Call set_program_name.
32294         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
32295
32296 2009-11-26  Richard Jones  <rjones@redhat.com>
32297
32298         w32sock: leave win32 error in place.
32299         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
32300
32301 2009-11-26  Eric Blake  <ebb9@byu.net>
32302
32303         init.sh: suggest to use skip_ and fail_ functions in comments
32304         * tests/init.sh: Add a sentence.
32305
32306 2009-11-25  Bruno Haible  <bruno@clisp.org>
32307
32308         init.sh: add documentation in comments
32309         * tests/init.sh: Add some developer and user documentation.
32310
32311 2009-11-26  Jim Meyering  <meyering@redhat.com>
32312
32313         init.sh: accommodate even those who specify bogus srcdir manually
32314         * tests/init.sh: Normally, srcdir is guaranteed by automake and
32315         configure-time tests to be sanitized, so that there is no need to
32316         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
32317         (with no double quotes) suffices.  However, since tests may be
32318         invoked manually, and since you may explicitly set srcdir to the
32319         name of a directory containing spaces, do quote its uses here.
32320         * tests/test-pread.sh: Likewise.
32321         Suggested by Bruno Haible.
32322
32323         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
32324         * tests/test-pread.sh: Write no data into the pipe, because
32325         test-pread actually reads none.  This avoids a diagnostic,
32326         "bash: echo: write error: Broken pipe", that arises in the unusual
32327         event something is ignoring SIGPIPE, and might be interpreted
32328         as some sort of failure.  Reported by Bruno Haible.
32329
32330 2009-11-25  Jim Meyering  <meyering@redhat.com>
32331
32332         test-pread: cover failure with ESPIPE and EINVAL
32333         * tests/test-pread.c (main): Test for failure, too.
32334         * tests/test-pread.sh: Invoke with stdin on a pipe.
32335         Suggested by Eric Blake.
32336
32337         pread: improvement and fix
32338         * modules/pread (Depends-on): Depend on lseek, for portability to
32339         e.g., mingw.  Suggested by Eric Blake.
32340         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
32341
32342         unistd.in.h: correct declaration of pread
32343         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
32344         Reported by Richard W.M. Jones.
32345
32346         test-pread.sh: distribute the test script
32347         * modules/pread-tests (Files): Include test-pread.sh.
32348
32349         test-pread.sh: clean up
32350         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
32351         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
32352         That is unnecessary, since it's always ".".
32353         Suggestion from Eric Blake.
32354
32355         test-pread.sh: make executable
32356         * tests/test-pread.sh: Set executable bit.
32357         Reported by Eric Blake.
32358
32359         correct typo in test-pread.sh
32360         * tests/test-pread.sh: Add #! line.
32361
32362         test pread
32363         * tests/test-pread.c: New file.
32364         * tests/test-pread.sh: Likewise.
32365         * modules/pread-tests: Likewise.
32366
32367         pread: new module
32368         * modules/pread: New file.
32369         * lib/unistd.in.h (pread): Define/declare.
32370         * lib/pread.c (pread): New file.
32371         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
32372         * modules/unistd (Makefile.am): Substitute witnesses.
32373         * doc/posix-functions/pread.texi (pread): Update.
32374         * MODULES.html.sh: Add pread.
32375
32376 2009-11-25  Jim Meyering  <meyering@redhat.com>
32377
32378         tests/init.sh: new file to be used via most *.sh tests
32379         * tests/init.sh: New file.
32380
32381 2009-11-25  Eric Blake  <ebb9@byu.net>
32382
32383         utimens: work around older Linux failure with symlinks
32384         * lib/utimens.c (lutimensat_works_really): New variable.
32385         (fdutimens, lutimens): Use it to manage kernels that support
32386         nanosecond times on files, but not on symlinks.
32387         Reported by OndÅ™ej Vašík.
32388
32389         utimes: fix configure grammar
32390         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
32391
32392 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
32393
32394         regex: Fix fastmap for multibyte character ranges.
32395         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
32396         characters when a multibyte character range is included.
32397
32398 2009-11-22  Andy Wingo  <wingo@pobox.com>
32399
32400         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
32401         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
32402
32403 2009-11-24  Bruno Haible  <bruno@clisp.org>
32404
32405         doc: Most *_l functions exist in MacOS X 10.5.
32406         * doc/posix-functions/duplocale.texi: Update platforms list.
32407         * doc/posix-functions/freelocale.texi: Likewise.
32408         * doc/posix-functions/newlocale.texi: Likewise.
32409         * doc/posix-functions/uselocale.texi: Likewise.
32410         * doc/posix-functions/isalnum_l.texi: Likewise.
32411         * doc/posix-functions/isalpha_l.texi: Likewise.
32412         * doc/posix-functions/isblank_l.texi: Likewise.
32413         * doc/posix-functions/iscntrl_l.texi: Likewise.
32414         * doc/posix-functions/isdigit_l.texi: Likewise.
32415         * doc/posix-functions/isgraph_l.texi: Likewise.
32416         * doc/posix-functions/islower_l.texi: Likewise.
32417         * doc/posix-functions/isprint_l.texi: Likewise.
32418         * doc/posix-functions/ispunct_l.texi: Likewise.
32419         * doc/posix-functions/isspace_l.texi: Likewise.
32420         * doc/posix-functions/isupper_l.texi: Likewise.
32421         * doc/posix-functions/iswalnum_l.texi: Likewise.
32422         * doc/posix-functions/iswalpha_l.texi: Likewise.
32423         * doc/posix-functions/iswblank_l.texi: Likewise.
32424         * doc/posix-functions/iswcntrl_l.texi: Likewise.
32425         * doc/posix-functions/iswctype_l.texi: Likewise.
32426         * doc/posix-functions/iswdigit_l.texi: Likewise.
32427         * doc/posix-functions/iswgraph_l.texi: Likewise.
32428         * doc/posix-functions/iswlower_l.texi: Likewise.
32429         * doc/posix-functions/iswprint_l.texi: Likewise.
32430         * doc/posix-functions/iswpunct_l.texi: Likewise.
32431         * doc/posix-functions/iswspace_l.texi: Likewise.
32432         * doc/posix-functions/iswupper_l.texi: Likewise.
32433         * doc/posix-functions/iswxdigit_l.texi: Likewise.
32434         * doc/posix-functions/isxdigit_l.texi: Likewise.
32435         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
32436         * doc/posix-functions/strcasecmp_l.texi: Likewise.
32437         * doc/posix-functions/strcoll_l.texi: Likewise.
32438         * doc/posix-functions/strfmon_l.texi: Likewise.
32439         * doc/posix-functions/strftime_l.texi: Likewise.
32440         * doc/posix-functions/strncasecmp_l.texi: Likewise.
32441         * doc/posix-functions/strxfrm_l.texi: Likewise.
32442         * doc/posix-functions/tolower_l.texi: Likewise.
32443         * doc/posix-functions/toupper_l.texi: Likewise.
32444         * doc/posix-functions/towctrans_l.texi: Likewise.
32445         * doc/posix-functions/towlower_l.texi: Likewise.
32446         * doc/posix-functions/towupper_l.texi: Likewise.
32447         * doc/posix-functions/wcscoll_l.texi: Likewise.
32448         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
32449         * doc/posix-functions/wctrans_l.texi: Likewise.
32450         * doc/posix-functions/wctype_l.texi: Likewise.
32451         * doc/glibc-functions/strptime_l.texi: Likewise.
32452         * doc/glibc-functions/strtod_l.texi: Likewise.
32453         * doc/glibc-functions/strtof_l.texi: Likewise.
32454         * doc/glibc-functions/strtol_l.texi: Likewise.
32455         * doc/glibc-functions/strtold_l.texi: Likewise.
32456         * doc/glibc-functions/strtoll_l.texi: Likewise.
32457         * doc/glibc-functions/strtoul_l.texi: Likewise.
32458         * doc/glibc-functions/strtoull_l.texi: Likewise.
32459         * doc/glibc-functions/wcsftime_l.texi: Likewise.
32460         * doc/glibc-functions/wcstod_l.texi: Likewise.
32461         * doc/glibc-functions/wcstof_l.texi: Likewise.
32462         * doc/glibc-functions/wcstol_l.texi: Likewise.
32463         * doc/glibc-functions/wcstold_l.texi: Likewise.
32464         * doc/glibc-functions/wcstoll_l.texi: Likewise.
32465         * doc/glibc-functions/wcstoul_l.texi: Likewise.
32466         * doc/glibc-functions/wcstoull_l.texi: Likewise.
32467
32468 2009-11-24  Bruno Haible  <bruno@clisp.org>
32469
32470         duplocale: Fix logic bug.
32471         * lib/duplocale.c: Don't include <langinfo.h>.
32472         (_NL_LOCALE_NAME): Remove macro.
32473         (rpl_duplocale): Use setlocale instead of nl_langinfo.
32474         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
32475
32476 2009-11-23  Jim Meyering  <meyering@redhat.com>
32477
32478         test-update-copyright: don't hard-code /usr/bin/perl
32479         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
32480         perl to print the current year.  Gilles Espinasse reported that
32481         the replaced use of perl was hard-coded as /usr/bin/perl.
32482
32483 2009-11-23  Bruno Haible  <bruno@clisp.org>
32484
32485         duplocale: Add support for glibc 2.3.x.
32486         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
32487
32488 2009-11-22  Bruno Haible  <bruno@clisp.org>
32489
32490         vasnprintf: Tiny optimization.
32491         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
32492         MacOS X.
32493
32494 2009-11-22  Bruno Haible  <bruno@clisp.org>
32495
32496         Tests for module 'duplocale'.
32497         * modules/duplocale-tests: New file.
32498         * tests/test-duplocale.c: New file.
32499
32500         New module 'duplocale'.
32501         * m4/duplocale.m4: New file.
32502         * lib/locale.in.h (duplocale): New declaration.
32503         * lib/duplocale.c: New file.
32504         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
32505         gl_LOCALE_H_DEFAULTS): New macros.
32506         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
32507         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
32508         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
32509         REPLACE_DUPLOCALE.
32510         * modules/duplocale: New file.
32511         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
32512
32513 2009-11-22  Bruno Haible  <bruno@clisp.org>
32514
32515         * modules/locale-tests (configure.ac): Test for newlocale function.
32516         * tests/test-locale.c: When the system has extended locale functions,
32517         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
32518
32519         locale: Make locale_t available when possible.
32520         * lib/locale.in.h: Include <xlocale.h> when it exists.
32521         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
32522         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
32523         * modules/locale (Depends-on): Add extensions.
32524         (Makefile.am): Also substitute HAVE_XLOCALE_H.
32525         * doc/posix-headers/locale.texi: Document the problem with locale_t.
32526
32527 2009-11-22  Bruno Haible  <bruno@clisp.org>
32528
32529         Add comments.
32530         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
32531         invocation.
32532         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
32533         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
32534         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
32535
32536 2009-11-22  Bruno Haible  <bruno@clisp.org>
32537
32538         error: account for the possibility of freopen (stdout).
32539         * lib/error.c: Include <unistd.h>.
32540         (flush_stdout): New function, extracted from error and error_at_line.
32541         Determine stdout's fd dynamically.
32542         (error, error_at_line): Invoke flush_stdout.
32543         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
32544         * modules/error (Depends-on): Add unistd.
32545
32546 2009-11-22  Bruno Haible  <bruno@clisp.org>
32547
32548         diffseq: Add comment.
32549         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
32550
32551 2009-11-22  Jim Meyering  <meyering@redhat.com>
32552
32553         c-stack: avoid defining an unused static function
32554         * lib/c-stack.c (find_stack_direction): Do not define this function
32555         when it will not be used.
32556
32557         diffseq: avoid spurious gcc warnings
32558         * lib/diffseq.h (IF_LINT2): Define.
32559         (compareseq): Use it to initialize two members of "part".
32560         This avoids two used-uninitialized warnings.
32561
32562 2009-11-21  Jim Meyering  <meyering@redhat.com>
32563
32564         c-stack: avoid "ignoring return value of `write'" warning
32565         * lib/c-stack.c: Include "ignore-value.h".
32566         (die): Explicitly ignore each write return value.
32567         * modules/c-stack (Depends-on): Add ignore-value.
32568
32569 2009-11-21  Bruno Haible  <bruno@clisp.org>
32570
32571         diffseq: reduce scope of variable 'best'.
32572         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
32573         variable, earlier used for two different purposes.
32574
32575 2009-11-21  Jim Meyering  <meyering@redhat.com>
32576
32577         diffseq: remove useless assignment to "best"
32578         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
32579         assignment.  At that point "best" is already guaranteed to be zero.
32580
32581 2009-11-20  Eric Blake  <ebb9@byu.net>
32582
32583         build: mention ftp redirector in release announcements
32584         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
32585         values that used to come from cfg.mk; mention FTP redirect URL.
32586         * build-aux/announce-gen: Mention the mirror list.
32587         Suggested by Karl Berry.
32588
32589         nanosleep: improve port to mingw
32590         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
32591         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
32592         LIB_NANOSLEEP, but only when needed.
32593         * modules/select (Link): Document LIBSOCKET.
32594         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
32595         enough.
32596
32597         nanosleep: work around cygwin bug
32598         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
32599         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
32600         bug.
32601         (getnow): Delete, not needed.
32602         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
32603         LIB_CLOCK_GETTIME.
32604         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
32605         clock-time, gettime.
32606         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
32607         bug.
32608         * modules/nanosleep-tests: New test.
32609         * tests/test-nanosleep.c: New file.
32610
32611         sleep: work around cygwin bug
32612         * lib/sleep.c (rpl_sleep): Work around the bug.
32613         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
32614         (gl_PREREQ_SLEEP): Delete unused macro.
32615         * modules/sleep (Depends-on): Add verify.
32616         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
32617         * modules/unistd (Makefile.am): Substitute witness.
32618         * lib/unistd.in.h (sleep): Update prototype.
32619         * doc/posix-functions/sleep.texi (sleep): Document the bug.
32620         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
32621         * modules/sleep-tests (Depends-on): Check for alarm.
32622
32623 2009-11-20  Jim Meyering  <meyering@redhat.com>
32624
32625         maint.mk: improve sc_prohibit_magic_number_exit
32626         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
32627         so it does not match uses like System.exit(1).
32628         Add comments showing how to correct all offenders.
32629
32630 2009-11-19  Eric Blake  <ebb9@byu.net>
32631
32632         xalloc-die-tests: add missing library
32633         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
32634
32635         test-xvasprintf: silence compiler warnings
32636         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
32637         empty string from gcc.
32638
32639 2009-11-19  Jim Meyering  <meyering@redhat.com>
32640
32641         xfreopen: new module, from coreutils
32642         * modules/xfreopen: New module.
32643         * lib/xfreopen.c: New file.
32644         * lib/xfreopen.h: New file.
32645         * MODULES.html.sh (File stream based Input/Output"): Add it.
32646
32647 2009-11-19  Eric Blake  <ebb9@byu.net>
32648
32649         manywarnings: depend on warnings
32650         * modules/manywarnings (Depends-on): Add warnings.
32651
32652         build: avoid compiler warnings
32653         * lib/select.c (rpl_select): Delete unused variable.
32654         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
32655
32656 2009-11-18  Eric Blake  <ebb9@byu.net>
32657
32658         tests: avoid false negative with --with-packager
32659         * tests/test-version-etc.sh: Discard packager information.
32660         * tests/test-argp-version-etc-1.sh: Likewise.
32661         Reported by Mike Frysinger.
32662
32663         utimens: fix regression on Solaris
32664         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
32665         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
32666         can only change fd timestamps via futimesat.  Instead, use an
32667         additional witness macro to avoid BSD bug.
32668         Reported by Jim Meyering.
32669
32670 2009-11-17  Eric Blake  <ebb9@byu.net>
32671
32672         usleep: use it to simplify tests
32673         * modules/stat-time-tests (Depends-on): Add usleep.
32674         (configure.ac): Drop usleep check.
32675         * modules/chown-tests (Depends-on, configure.ac): Likewise.
32676         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
32677         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
32678         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
32679         * modules/openat-tests (Depends-on, configure.ac): Likewise.
32680         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
32681         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
32682         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
32683         Likewise.
32684         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
32685         * tests/test-lchown.h (nap): Likewise.
32686         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
32687         * tests/test-stat-time.c (nap): Likewise.
32688         * tests/test-utimens-common.h (nap): Update comments.
32689
32690         usleep: new module
32691         * modules/usleep: New file.
32692         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
32693         * lib/usleep.c (usleep): Likewise.
32694         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
32695         * modules/unistd (Makefile.am): Substitute witnesses.
32696         * lib/unistd.in.h (usleep): Add declaration.
32697         * doc/pastposix-functions/usleep.texi (usleep): Document this.
32698         * MODULES.html.sh (Date and time): Likewise.
32699         * modules/usleep-tests (Depends-on): New test.
32700         * tests/test-usleep.c: New file.
32701
32702         chown: work around OpenBSD bug
32703         * lib/chown.c (rpl_chown): Work around the bug.
32704         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
32705         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
32706         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
32707         * modules/chown (Depends-on): Add stdbool.
32708         * modules/lchown (Depends-on): Likewise.
32709         * doc/posix-functions/chown.texi (chown): Document the bug.
32710         * doc/posix-functions/lchown.texi (lchown): Likewise.
32711         * tests/test-lchown.h (test_chown): Relax test.
32712
32713         mkstemp: avoid conflict with C++ keyword template
32714         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
32715         * lib/mkostemp.c (mkostemp): Likewise.
32716         * lib/mkostemps.c (mkostemps): Likewise.
32717         * lib/mkstemp.c (mkstemp): Likewise.
32718         * lib/mkstemps.c (mkstemps): Likewise.
32719
32720         xalloc-die-tests: optimize
32721         * tests/test-xalloc-die.sh: Reduce number of processes.
32722
32723 2009-11-17  Simon Josefsson  <simon@josefsson.org>
32724
32725         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
32726         patch from ludo@gnu.org (Ludovic Courtès).
32727
32728 2009-11-17  Jim Meyering  <meyering@redhat.com>
32729
32730         version-etc: use proper license string
32731         * modules/version-etc (License): Use LGPL, not LGPLv3+.
32732         * modules/version-etc-fsf: Likewise.
32733
32734 2009-11-17  Simon Josefsson  <simon@josefsson.org>
32735
32736         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
32737         printed to stdout.  Deal with EOL differences.
32738
32739 2009-11-17  Eric Blake  <ebb9@byu.net>
32740
32741         unsetenv: work around Solaris bug
32742         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
32743         * lib/unsetenv.c (rpl_unsetenv): Work around it.
32744         Reported by Jim Meyering.
32745
32746         vasnprintf: avoid compiler warnings
32747         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
32748         variables.
32749         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
32750
32751 2009-11-17  Simon Josefsson  <simon@josefsson.org>
32752
32753         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
32754         settings since xalloc-die is no longer the self test,
32755         xalloc-die.sh is.
32756
32757 2009-11-17  Jim Meyering  <meyering@redhat.com>
32758
32759         test-xalloc-die.sh: make the code agree with the commit log
32760         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
32761         at the end, just in case you happen to have a test-xalloc-die
32762         program in some other PATH directory.
32763
32764         test-xalloc-die.sh: fix a portability bug
32765         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
32766         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
32767         Otherwise, argv[0] (as often seen in diagnostics) would be too
32768         system-dependent, sometimes with, and sometimes without the leading "./".
32769
32770         version-etc-fsf: relax license to LGPLv3+
32771         * modules/version-etc-fsf (License): Relax license.
32772
32773 2009-11-16  Eric Blake  <ebb9@byu.net>
32774
32775         xalloc-die-tests: avoid printing null pointer
32776         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
32777         shell script.
32778         * tests/test-xalloc-die.c (program_name): Declare.
32779         * tests/test-xalloc-die.sh (tmpfiles): New file.
32780
32781         setenv, unsetenv: work around various bugs
32782         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
32783         (setenv) [HAVE_SETENV]: Work around bugs.
32784         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
32785         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
32786         for bugs.
32787         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
32788         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
32789         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
32790         * modules/stdlib (Makefile.am): Update substitutions.
32791         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
32792         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
32793         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
32794         * modules/setenv-tests: New test.
32795         * modules/unsetenv-tests: Likewise.
32796         * tests/test-setenv.c: New file.
32797         * tests/test-unsetenv.c: Likewise.
32798
32799 2009-11-16  Jim Meyering  <meyering@redhat.com>
32800
32801         version-etc: relax license to LGPLv3+
32802         * modules/version-etc (License): Relax license.
32803
32804         better AC_REQUIRE expanded-before-required-warning avoidance
32805         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
32806         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
32807         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
32808         which is no longer needed.
32809
32810 2009-11-16  Eric Blake  <ebb9@byu.net>
32811
32812         test-freading: clean up temporary file
32813         * tests/test-freading.c (main): Remove file on success, and use
32814         ASSERT more liberally.
32815         Reported by Jim Meyering.
32816
32817 2009-11-16  Jim Meyering  <meyering@redhat.com>
32818
32819         avoid new AC_REQUIRE expanded-before-required warnings
32820         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
32821         merely using it.
32822         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
32823         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
32824
32825 2009-11-15  Simon Josefsson  <simon@josefsson.org>
32826
32827         * tests/test-xalloc-die.c: New file.
32828         * modules/xalloc-die-tests: New file.
32829         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
32830         XFAIL_TESTS so it can be appended by modules.
32831
32832 2009-11-15  Simon Josefsson  <simon@josefsson.org>
32833
32834         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
32835         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
32836
32837 2009-11-14  Eric Blake  <ebb9@byu.net>
32838
32839         fnmatch: avoid compiler warning
32840         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
32841         to silence compiler warning about mismatch signedness in ?:.
32842         Reported by Robert Millan.
32843
32844         intprops: add double-inclusion guard
32845         * lib/intprops.h: Allow idempotent includes.
32846         Suggested by Bruce Korb.
32847
32848         openat: detect Solaris fchownat bug
32849         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
32850         penalizing glibc chownat when only lchownat is broken.
32851         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
32852         trailing slash bugs.
32853         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
32854         * modules/openat-tests (Files): Include more files.
32855         (Depends-on): Add mgetgroups, sleep, stat-time.
32856         (configure.ac): Add additional checks.
32857         (Makefile.am): Build new test.
32858         * tests/test-fchownat.c: New file.
32859
32860         lchown: detect Solaris and FreeBSD bug
32861         * lib/lchown.c (rpl_lchown): Work around bug.
32862         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
32863         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
32864         * modules/unistd (Makefile.am): Populate it.
32865         * lib/unistd.in.h (lchown): Update declaration.
32866         * doc/posix-functions/lchown.texi (lchown): Document the bug.
32867         * modules/lchown-tests: New file.
32868         * tests/test-lchown.h (test_lchown): Likewise.
32869         * tests/test-lchown.c (main): Likewise.
32870
32871         chown: detect Solaris and FreeBSD bug
32872         * lib/chown.c (rpl_chown): Work around bug.
32873         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
32874         (gl_PREREQ_CHOWN): Delete.
32875         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
32876         * modules/unistd (Makefile.am): Populate it.
32877         * lib/unistd.in.h (chown): Update declaration.
32878         * lib/lchown.c (chown): Update client.
32879         * modules/lchown (Depends-on): Add lstat.
32880         * doc/posix-functions/chown.texi (chown): Document the bug.
32881         * doc/posix-functions/getgroups.texi (getgroups): Document
32882         getgroups pitfall.
32883         * modules/chown-tests: New file.
32884         * tests/test-chown.h (test_chown): Likewise.
32885         * tests/test-chown.c (main): Likewise.
32886
32887 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
32888
32889         gnulib-tool: correctly detect absence of m4 directories
32890         * gnulib-tool: Avoid extra newline on data passed to wc -l.
32891
32892 2009-11-14  Jim Meyering  <meyering@redhat.com>
32893
32894         maint.mk: Prohibit inclusion of "xalloc.h" without use.
32895         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
32896
32897 2009-11-14  John W. Eaton  <jwe@gnu.org>
32898
32899         strftime.h: wrap funtion declaration in extern "C" block
32900         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
32901
32902 2009-11-13  Eric Blake  <ebb9@byu.net>
32903
32904         getgroups: avoid compiler warning
32905         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
32906
32907         getgroups: work around FreeBSD bug
32908         * lib/getgroups.c (rpl_getgroups): Work around the bug.
32909         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
32910         * doc/posix-functions/getgroups.texi (getgroups): Document it.
32911         * tests/test-getgroups.c (main): Fix buffer overrun.
32912
32913         getgroups: avoid compilation failure
32914         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
32915         * modules/getgroups (Depends-on): Add stdint.
32916
32917 2009-11-13  Jim Meyering  <meyering@redhat.com>
32918
32919         test-getgroups: avoid compilation failure
32920         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
32921
32922 2009-11-13  Eric Blake  <ebb9@byu.net>
32923
32924         mgetgroups: new module, taken from coreutils
32925         * modules/mgetgroups: New file.
32926         * lib/mgetgroups.h: Likewise.
32927         * lib/mgetgroups.c (mgetgroups): Likewise.
32928         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
32929         * MODULES.html.sh (Users and groups): Mention it.
32930
32931         getgroups: don't expose GETGROUPS_T to user
32932         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
32933         an element at a time if GETGROUPS_T is wrong size.
32934         * lib/getugroups.h (getugroups): Change signature.
32935         * lib/unistd.in.h (getgroups): Likewise.
32936         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
32937         signature needs fixing.
32938         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
32939         AC_TYPE_GETGROUPS.
32940         * modules/group-member (Depends-on): Add getgroups.
32941         * lib/group-member.c (group_info, get_group_info): Use gid_t.
32942         (group_member): Rely on getgroups replacement.
32943         * lib/getugroups.c (getugroups): Use gid_t.
32944         * tests/test-getgroups.c (main): Likewise.
32945         * NEWS: Mention the signature change.
32946         * doc/posix-functions/getgroups.texi (getgroups): Mention the
32947         problem with signature.
32948         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
32949         GETGROUPS_T is still useful for setgroups.
32950
32951         getgroups, getugroups: provide stubs for mingw
32952         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
32953         * lib/getugroups.c (getugroups): Likewise.
32954         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
32955         function.  Modernize replacement scheme.
32956         (gl_PREREQ_GETGROUPS): Delete.
32957         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
32958         * modules/getgroups (configure.ac): Declare witness.
32959         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
32960         * modules/unistd (Depends-on): Substitute witness.
32961         * lib/unistd.in.h (getgroups): Declare replacement.
32962
32963         getgroups: avoid calling exit
32964         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
32965         drop xalloc.
32966         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
32967         dependencies.
32968         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
32969         exiting, in the rare case of malloc failure.
32970
32971         getgroups: fix logic error
32972         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
32973         has more than 20 groups.
32974         * modules/getgroups-tests: New test.
32975         * tests/test-getgroups.c: New file.
32976
32977 2009-11-13  Simon Josefsson  <simon@josefsson.org>
32978
32979         * tests/test-base64.c: Improve.
32980
32981 2009-11-13  Simon Josefsson  <simon@josefsson.org>
32982
32983         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
32984         Blake <ebb9@byu.net>.
32985
32986 2009-11-13  Simon Josefsson  <simon@josefsson.org>
32987
32988         * tests/test-xvasprintf.c: Add %s%s related checks.
32989
32990 2009-11-12  Eric Blake  <ebb9@byu.net>
32991
32992         version-etc: match standards.texi style
32993         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
32994         and use <> only for URLs.
32995
32996 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
32997
32998         fts: do not fail on a submount during traversal
32999         * lib/fts.c (fts_build): Read the stat info again after opening
33000         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
33001         Original report at http://bugzilla.redhat.com/501848.
33002
33003 2009-11-12  Jim Meyering  <meyering@redhat.com>
33004
33005         bootstrap: sync from coreutils
33006         * build-aux/bootstrap (bootstrap_epilogue): New function.
33007         Use git_modules_config in one more place.  This make bootstrap's
33008         --gnulib-srcdir option more useful for testing.
33009
33010         bootstrap: generalize autoheader check
33011         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
33012         AC_CONFIG_HEADERS.
33013
33014 2009-11-11  Eric Blake  <ebb9@byu.net>
33015
33016         mkfifoat: use new modules for Solaris and BSD bugs
33017         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
33018         * lib/mkfifoat.c (mknodat): Split...
33019         * lib/mknodat.c (mknodat): ...into new file.
33020         * modules/mkfifoat (Files): Ship new file.
33021         (Depends-on): Add mkfifo, mknod.
33022         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
33023         (Depends-on): Add symlink.
33024         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
33025         redundant with test_mkfifo.h.
33026         (do_mkfifoat, do_mknodat): New helpers.
33027
33028         mknod: new module
33029         * modules/mknod: New file.
33030         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
33031         * lib/mknod.c (mknod): Likewise.
33032         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
33033         defaults.
33034         * modules/sys_stat (Makefile.am): Substitute them.
33035         * lib/sys_stat.in.h (mknod): Declare replacement.
33036         * MODULES.html.sh (Support for systems lacking POSIX:2008):
33037         Document it.
33038         * doc/posix-functions/mknod.texi (mknod): Likewise.
33039         * modules/mknod-tests: New test.
33040         * tests/test-mknod.c: Likewise.
33041
33042         mkfifo: new module
33043         * modules/mkfifo: New file.
33044         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
33045         * lib/mkfifo.c (mkfifo): Likewise.
33046         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
33047         defaults.
33048         * modules/sys_stat (Makefile.am): Substitute them.
33049         * lib/sys_stat.in.h (mkfifo): Declare replacement.
33050         * MODULES.html.sh (Support for systems lacking POSIX:2008):
33051         Document it.
33052         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
33053         * modules/mkfifo-tests: New test.
33054         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
33055         from test-mkfifoat.c.
33056         * tests/test-mkfifo.c: New file.
33057
33058         readlink: detect FreeBSD bug
33059         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
33060         slash on symlink.
33061         * doc/posix-functions/readlink.texi (readlink): Document the bug.
33062         * tests/test-readlink.h (test_readlink): Enhance test.
33063
33064         symlink: detect FreeBSD bug
33065         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
33066         slash on symlink.
33067         * doc/posix-functions/symlink.texi (symlink): Document the bug.
33068         * tests/test-symlink.h (test_symlink): Enhance test.
33069
33070 2009-11-10  Eric Blake  <ebb9@byu.net>
33071
33072         link: detect FreeBSD bug
33073         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
33074         symlink.
33075         * doc/posix-functions/link.texi (link): Document the bug.
33076         * tests/test-link.h (test_link): Enhance test.
33077         * tests/test-linkat.c (main): Update caller.
33078
33079         unlink, remove: detect FreeBSD bug
33080         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
33081         slash on symlink.
33082         * doc/posix-functions/unlink.texi (unlink): Document the bug.
33083         * doc/posix-functions/remove.texi (remove): Likewise.
33084         * tests/test-unlink.h (test_unlink): Enhance test.
33085         * tests/test-remove.c (main): Likewise.
33086
33087 2009-11-09  Eric Blake  <ebb9@byu.net>
33088
33089         rename: detect FreeBSD bug
33090         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
33091         slash on symlink.
33092         * modules/renameat-tests (Depends-on): Add filenamecat.
33093         * tests/test-rename.h (test_rename): Allow one more errno.
33094         * tests/test-renameat.c (main): Likewise.
33095         * doc/posix-functions/rename.texi (rename): Document the bug.
33096
33097         open: detect FreeBSD bug
33098         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
33099         symlink.
33100         * doc/posix-functions/open.texi (open): Document the bug.
33101         * doc/posix-functions/utimes.texi (utimes): Likewise.
33102         * tests/test-open.h (test_open): Add parameters, and test symlink
33103         handling.
33104         * tests/test-open.c (main): Adjust caller.
33105         * tests/test-fcntl-safer.c (main): Likewise.
33106         * modules/open-tests (Depends-on): Add stdbool, symlink.
33107         * modules/fcntl-safer-tests (Depends-on): Likewise.
33108         * tests/test-openat.c (main): Add test-open tests.
33109
33110         stat: detect FreeBSD bug
33111         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
33112         symlink.
33113         * doc/posix-functions/stat.texi (stat): Document the bug.
33114         * tests/test-stat.h (test_stat_func): Add argument.
33115         * tests/test-stat.c (main): Adjust caller.
33116         * tests/test-fstatat.c (main): Likewise.
33117         * modules/stat-tests (Depends-on): Add stdbool, symlink.
33118         Reported by Jim Meyering.
33119
33120 2009-11-09  James Youngman  <jay@gnu.org>
33121
33122         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
33123         * lib/strftime.c: Correct placement of #include "ignore-value.h".
33124
33125 2009-11-08  Jim Meyering  <meyering@redhat.com>
33126
33127         utimens: remove invalid futimesat call
33128         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
33129         It used the file descriptor of the target file as the DIR_FD
33130         parameter and NULL as the file name.  That caused failure with
33131         errno == EFAULT on FreeBSD-8.0-rc2
33132
33133 2009-11-07  Eric Blake  <ebb9@byu.net>
33134
33135         fflush, freadseek: use fseeko, not fseek
33136         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
33137         (clear_ungetc_buffer): Avoid potential problems on large files.
33138         * lib/freadseek.c (freadseek): Likewise.
33139         * modules/freadseek (Depends-on): Add fseeko.
33140         * modules/fseek (configure.ac): Set a witness.
33141         * tests/test-fflush.c (main): Use fseeko.
33142         * tests/test-fpurge.c (fseek): Disable link warning.
33143         * tests/test-freadable.c (fseek): Likewise.
33144         * tests/test-freading.c (fseek): Likewise.
33145         * tests/test-fseeko.c (fseek): Likewise.
33146         * tests/test-ftell.c (fseek): Likewise.
33147         * tests/test-ftello.c (fseek): Likewise.
33148         * tests/test-fwritable.c (fseek): Likewise.
33149         * tests/test-fwriting.c (fseek): Likewise.
33150
33151 2009-11-06  Simon Josefsson  <simon@josefsson.org>
33152
33153         * modules/memchr (Depends-on): Drop getpagesize dependency.
33154
33155 2009-11-06  Simon Josefsson  <simon@josefsson.org>
33156
33157         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
33158         Reported by Ludovic Courtès.
33159         * build-aux/pmccabe2html: Improve example usage.
33160         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
33161
33162 2009-11-06  Jim Meyering  <meyering@redhat.com>
33163
33164         do-release-commit-and-tag: New module.
33165         Automate the release-commit and tag process.
33166         * build-aux/do-release-commit-and-tag: New script, from coreutils.
33167         * modules/do-release-commit-and-tag: New file.
33168         * MODULES.html.sh (Support for maintaining and releasing): Add it.
33169
33170 2009-11-06  Simon Josefsson  <simon@josefsson.org>
33171
33172         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
33173         because test-select.c uses inet_pton.
33174
33175 2009-11-06  Simon Josefsson  <simon@josefsson.org>
33176
33177         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
33178         GETADDRINFO_LIB.  Bump serial number.
33179         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
33180         Suggested by Eric Blake <ebb9@byu.net>.
33181
33182 2009-11-05  Eric Blake  <ebb9@byu.net>
33183
33184         strtod: detect darwin bug
33185         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
33186         Reported by Leo Davis.
33187
33188         freopen-safer: new module
33189         * modules/freopen-safer: New module.
33190         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
33191         * lib/freopen-safer.c (freopen_safer): New file.
33192         * lib/stdio-safer.h (freopen_safer): New declaration.
33193         * lib/stdio--.h (freopen): New override.
33194         * MODULES.html.sh (File stream based Input/Output): Mention it.
33195         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
33196         freopen-safer module.
33197         * doc/posix-functions/stderr.texi (stderr): Likewise.
33198         * doc/posix-functions/stdin.texi (stdin): Likewise.
33199         * doc/posix-functions/stdout.texi (stdout): Likewise.
33200         * modules/freopen-safer-tests: New test.
33201         * tests/test-reopen-safer.c: New file.
33202
33203 2009-11-05  Jim Meyering  <meyering@redhat.com>
33204
33205         maint.mk: Prohibit inclusion of "close-stream.h" without use.
33206         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
33207
33208 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33209
33210         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
33211
33212 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33213
33214         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
33215
33216 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33217
33218         Fix link error.
33219         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
33220         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
33221
33222 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33223
33224         * tests/test-func.c: Also test value of __func__.
33225
33226 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33227
33228         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
33229         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
33230
33231 2009-11-05  Bruno Haible  <bruno@clisp.org>
33232
33233         Fix link error.
33234         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
33235         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
33236         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
33237
33238 2009-11-05  Bruno Haible  <bruno@clisp.org>
33239
33240         Tests for module 'inet_pton'.
33241         * modules/inet_pton-tests: New file.
33242         * tests/test-inet_pton.c: New file.
33243
33244 2009-11-05  Bruno Haible  <bruno@clisp.org>
33245
33246         Tests for module 'inet_ntop'.
33247         * modules/inet_ntop-tests: New file.
33248         * tests/test-inet_ntop.c: New file.
33249
33250 2009-11-04  Eric Blake  <ebb9@byu.net>
33251
33252         stdlib-safer: wrap all mkstemp variants
33253         * modules/mkostemp (configure.ac): Set witness.
33254         * modules/mkostemps (configure.ac): Likewise.
33255         * modules/mkstemps (configure.ac): Likewise.
33256         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
33257         (mkstemps_safer): Wrap more functions.
33258         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
33259         wrapping.
33260         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
33261         (mkstemps_safer): Implement the wrappers.
33262
33263         mkstemps, mkostemps: new modules
33264         * modules/mkostemps: New module.
33265         * modules/mkstemps: Likewise.
33266         * lib/mkostemps.c (mkostemps): New file.
33267         * lib/mkstemps.c (mkstemps): Likewise.
33268         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
33269         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
33270         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
33271         * modules/stdlib (Makefile.am): Substitute them.
33272         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
33273         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
33274         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
33275         * doc/gnulib.texi (Glibc stdlib.h): Include them.
33276         * MODULES.html.sh (File system functions): Mention them.
33277
33278         tempname: resync from glibc
33279         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
33280         same values for __GT_FILE as glibc.  Abort even when assertions
33281         are disabled.
33282         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
33283         match its value otherwise.  Allow idempotent inclusion.
33284         * lib/mkdtemp.c (mkdtemp): Adjust caller.
33285         * lib/mkostemp.c (mkostemp): Likewise.
33286         * lib/mkstemp.c (mkstemp): Likewise.
33287         * lib/tmpfile.c (tmpfile): Likewise.
33288         * NEWS: Document this.
33289
33290         utimens: fix use of futimens on older Linux
33291         * lib/utimens.c (fdutimens): Use updated, rather than original,
33292         timespec to avoid bug in older Linux kernel.
33293         Reported by Simon Josefsson.
33294
33295 2009-11-04  Bruno Haible  <bruno@clisp.org>
33296
33297         Make num_processors more flexible and consistent.
33298         * lib/nproc.h (enum nproc_query): New type.
33299         (num_processors): Add a 'query' argument.
33300         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
33301         (num_processors): Add a 'query' argument. Test the value of the
33302         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
33303         mingw, count the number of CPUs available for the current process.
33304         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
33305         Check for sched_getaffinity and sched_getaffinity_np.
33306         * modules/nproc (Depends-on): Add c-ctype, extensions.
33307         * NEWS: Mention the change.
33308
33309 2009-11-03  Bruno Haible  <bruno@clisp.org>
33310
33311         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
33312
33313 2009-11-03  Jim Meyering  <meyering@redhat.com>
33314
33315         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
33316         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
33317         if it is defined.
33318
33319 2009-11-02  Eric Blake  <ebb9@byu.net>
33320
33321         mktime, timegm: share common declaration
33322         * lib/mktime-internal.h: New file.
33323         * lib/mktime.c: Use it rather than open-coding a declaration.
33324         * lib/timegm.c: Likewise.
33325         * modules/mktime (Files): Ship it.
33326         * modules/timegm (Files): Likewise.
33327         Suggested by Bruno Haible.
33328
33329         test-update-copyright: update test to match script changes
33330         * tests/test-update-copyright.sh: Avoid hard-coding perl
33331         location.  Don't update *.bak created by earlier runs.
33332
33333 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
33334             Simon Josefsson  <simon@josefsson.org>
33335             Bruno Haible  <bruno@clisp.org>
33336
33337         Fix link error on Solaris 8.
33338         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
33339         also in libnsl. Define also INET_PTON_LIB.
33340         * modules/inet_pton (Link): New section.
33341
33342 2009-11-02  Simon Josefsson  <simon@josefsson.org>
33343             Bruno Haible  <bruno@clisp.org>
33344
33345         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
33346         * modules/inet_ntop (Link): New section.
33347         Reported by Boyan Kasarov <bkasarov@gmail.com>.
33348
33349 2009-11-02  Eric Blake  <ebb9@byu.net>
33350
33351         maint: avoid compiler warnings in m4 macros
33352         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
33353         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
33354
33355 2009-11-02  Simon Josefsson  <simon@josefsson.org>
33356
33357         * m4/pmccabe2html.m4: Remove file.
33358         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
33359         function.  Change maintainer.
33360         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
33361         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
33362         Courtès).
33363
33364 2009-10-31  Eric Blake  <ebb9@byu.net>
33365
33366         fseeko: fix m4 regression
33367         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
33368         regression from 2009-10-27.
33369         Reported by Ralf Wildenhues.
33370
33371 2009-10-31  Jim Meyering  <meyering@redhat.com>
33372
33373         inttostr: aesthetics and improved (compile-time) safety
33374         Define inttype_is_signed rather than inttype_is_unsigned,
33375         since the sole use is via "#if inttype_is_signed".
33376         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
33377         inttype_is_unsigned.
33378         * lib/offtostr.c (inttype_is_signed): Likewise.
33379         * lib/uinttostr.c (inttype_is_signed): Likewise.
33380         * lib/umaxtostr.c (inttype_is_signed): Likewise.
33381         * lib/inttostr.c (inttostr): Use verify to cross-check the
33382         inttype_is_signed value and the signedness of the actual type.
33383         * modules/inttostr (Depends-on): Add verify.
33384
33385 2009-10-30  Eric Blake  <ebb9@byu.net>
33386
33387         build: avoid compiler warnings
33388         * lib/fchmodat.c (lchmod): Mark unused variables.
33389         * lib/getopt.c (_getopt_initialize): Likewise.
33390         * lib/mktime.c (__mktime_internal): Provide prototype.
33391         * lib/inttostr.c (inttostr): Avoid compiler warning even with
33392         older gcc that do not understand #pragma GCC diagnostic.
33393         * lib/uinttostr.c (inttype_is_unsigned): Define.
33394         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
33395
33396 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
33397
33398         stat: fix compilation on AIX
33399         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
33400         only see struct stat64.
33401
33402 2009-10-30  Eric Blake  <ebb9@byu.net>
33403
33404         exclude: make more robust
33405         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
33406         rather than masking a coding bug.
33407         Suggested by Bruno Haible.
33408
33409 2009-10-30  Jim Meyering  <meyering@redhat.com>
33410
33411         perl scripts: remove #!/usr/bin/perl in favor of more portable...
33412         Rather than putting #!/usr/bin/perl on the first line,
33413         start with a variant of what's recommended by "man perlrun" that
33414         invokes the first "perl" program from your shell's search path.
33415         * build-aux/gitlog-to-changelog: Replace #!... as above.
33416         Add a "Local Variables" perl mode setting.
33417         Prompted by a patch from Ludovic Courtès.
33418         Improved by Eric Blake.
33419         * build-aux/useless-if-before-free: Likewise.
33420         * build-aux/announce-gen: Likewise.
33421         * build-aux/update-copyright: Likewise.
33422
33423 2009-10-29  Eric Blake  <ebb9@byu.net>
33424
33425         filenamecat-lgpl: adjust clients
33426         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
33427         filenamecat.
33428         * modules/renameat (Depends-on): Likewise.
33429
33430         filenamecat: split into filenamecat-lgpl
33431         * modules/filenamecat-lgpl: New module.
33432         * modules/filenamecat (Files): Move library-safe files into
33433         filenamecat-lgpl.
33434         (Depends-on): Add filenamecat-lgpl.
33435         (configure.ac): Declare witness.
33436         * lib/filenamecat.h (file_name_concat): Only declare when using
33437         GPL module.
33438         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
33439         Move...
33440         * lib/filenamecat-lgpl.c: ...into new file.
33441         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
33442         (gl_FILE_NAME_CONCAT): Use it.
33443         * MODULES.html.sh (File system functions): Mention new module.
33444
33445         argp: avoid memory leak
33446         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
33447         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
33448         base_name, since the latter malloc()s and can call exit().
33449         Leak introduced 2006-07-03.
33450
33451         dirname-lgpl: adjust clients that don't need full dirname
33452         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
33453         * modules/filenamecat (Depends-on): Likewise.
33454         * modules/linkat (Depends-on): Likewise.
33455         * modules/mkancesdirs (Depends-on): Likewise.
33456         * modules/mkdir (Depends-on): Likewise.
33457         * modules/openat (Depends-on): Likewise.
33458         * modules/savewd (Depends-on): Likewise.
33459         * modules/rename (Depends-on): Likewise.
33460         (License): Relax license.
33461         * modules/mkdir-tests (Depends-on): Drop progname.
33462         (Makefile.am): Delete unneeded LDADD.
33463         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
33464
33465         dirname: split into dirname-lgpl
33466         * modules/dirname-lgpl: New module.
33467         * modules/dirname (Files): Move library-safe files into
33468         dirname-lgpl.
33469         (Depends-on): Add dirname-lgpl.
33470         (configure.ac): Declare witness.
33471         * modules/double-slash-root (License): Relax license.
33472         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
33473         module.
33474         * lib/dirname.c (dir_len, mdir_name): Move...
33475         * lib/dirname-lgpl.c: ...into new file.
33476         * lib/basename.c (last_component, base_len): Move...
33477         * lib/basename-lgpl.c: ...into new file.
33478         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
33479         (gl_DIRNAME): Use it.
33480         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
33481         Mention new module.
33482         * modules/dirname-tests (Depends-on): Add progname.
33483         * tests/test-dirname.c (program_name): Delete.
33484
33485         mkdir: make safe for libraries
33486         * modules/mkdir (Depends-on): Drop xalloc.
33487         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
33488         exit.
33489
33490         tests: avoid some compiler warnings
33491         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
33492         literals.
33493         * tests/test-memchr.c (main): Avoid type mismatch.
33494         * tests/test-arpa_inet.c (main): Avoid unused parameters.
33495         * tests/test-base64.c (main): Likewise.
33496         * tests/test-getdelim.c (main): Likewise.
33497         * tests/test-gethostname.c (main): Likewise.
33498         * tests/test-getline.c (main): Likewise.
33499         * tests/test-netinet_in.c (main): Likewise.
33500         * tests/test-select.c (open_server_socket, main): Likewise.
33501         * tests/test-select-stdin.c (main): Likewise.
33502         * tests/test-sockets.c (main): Likewise.
33503         * tests/test-strsignal.c (main): Likewise.
33504         * tests/test-sys_select.c (main): Likewise.
33505         * tests/test-sys_socket.c (main): Likewise.
33506         * tests/test-u64.c (main): Likewise.
33507         * tests/test-xfprintf-posix.c (main): Likewise.
33508         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
33509
33510         sockets: avoid compiler warning
33511         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
33512
33513         maint: detect usage(1) and other suspicious exits
33514         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
33515
33516 2009-10-29  Jim Meyering  <meyering@redhat.com>
33517
33518         timespec: long-to-int truncation could make timespec_cmp malfunction
33519         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
33520         a multiple of 2^32 nanoseconds as no difference.
33521
33522 2009-10-28  Jim Meyering  <meyering@redhat.com>
33523
33524         fprintftime: wrap macro code argument in "do {...} while(0)"
33525         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
33526         cpy macro must be a statement that can be followed by a semicolon.
33527         Now that the else clause contains a comment and is hence longer
33528         than one line, I require curly braces.  That in turn requires
33529         that we wrap this code block in the standard do...while(0).
33530
33531         fprintftime: remove stray semicolon from previous change
33532         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
33533
33534         fprintftime: avoid a warning about ignored fwrite return value
33535         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
33536         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
33537         that is unsafe.
33538         * modules/fprintftime (Depends-on): Add ignore-value.
33539
33540         exclude: avoid an unwarranted warning
33541         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
33542
33543 2009-10-27  Eric Blake  <ebb9@byu.net>
33544
33545         fseek: avoid compilation failure when fflush is replaced
33546         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
33547         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
33548         module is in use.
33549         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
33550         module is not in use; since REPLACE_FSEEK worked otherwise.
33551         (GNULIB_FTELLO): Likewise for ftell.
33552         Reported by Ian Beckwith and others.
33553
33554 2009-10-27  Bruno Haible  <bruno@clisp.org>
33555
33556         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
33557         Reported by Jim Meyering.
33558
33559 2009-10-27  Jim Meyering  <jim@meyering.net>
33560             Bruno Haible  <bruno@clisp.org>
33561
33562         Avoid warning despite dropping the return value of fwrite.
33563         * lib/unicodeio.c: Include ignore-value.h.
33564         (fwrite_success_callback): Explicitly ignore fwrite's return value.
33565         * modules/unicodeio (Depends-on): Add ignore-value.
33566
33567 2009-10-26  Eric Blake  <ebb9@byu.net>
33568
33569         areadlinkat: fix fallback path
33570         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
33571         pointer and zero.
33572
33573 2009-10-22  Pádraig Brady  <P@draigBrady.com>
33574
33575         Use a better IO block size for modern systems
33576         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
33577         * lib/md2.c: Likewise.
33578         * lib/md4.c: Likewise.
33579         * lib/md5.c: Likewise.
33580         * lib/sha1.c: Likewise.
33581         * lib/sha256.c: Likewise.
33582         * lib/sha512.c: Likewise.
33583
33584 2009-10-22  Eric Blake  <ebb9@byu.net>
33585
33586         tests: avoid several compiler warnings
33587         * tests/test-getcwd.c (main): Avoid buffer underflow.
33588         * tests/test-getdate.c (main): String literals are not safe with
33589         putenv, so use setenv.  Declare unused argument.
33590         * modules/getdate-tests (Depends-on): Add setenv.
33591         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
33592         problems with string literals in char *.
33593         * tests/test-hash.c (main): Avoid shadowing declaration.
33594         (insert_new): Treat string literals as char const *.
33595         * tests/test-getopt.h (test_getopt): Likewise.
33596         (getopt_loop): Alter types to minimize casting elsewhere.
33597         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
33598         (test_getopt_long_posix): Likewise.
33599         (do_getopt_long): Add wrapper to minimize casting.
33600         * tests/test-atexit.c (clear_temp_file): Use void.
33601         * tests/test-areadlink-with-size.c (main): Declare unused
33602         arguments.
33603         * tests/test-areadlink.c (main): Likewise.
33604         * tests/test-areadlinkat-with-size.c (main): Likewise.
33605         * tests/test-areadlinkat.c (main): Likewise.
33606         * tests/test-canonicalize-lgpl.c (main): Likewise.
33607         * tests/test-canonicalize.c (main): Likewise.
33608         * tests/test-dirent-safer.c (main): Likewise.
33609         * tests/test-dirname.c (main): Likewise.
33610         * tests/test-dup2.c (main): Likewise.
33611         * tests/test-fchdir.c (main): Likewise.
33612         * tests/test-fcntl-h.c (main): Likewise.
33613         * tests/test-fcntl-safer.c (main): Likewise.
33614         * tests/test-fdopendir.c (main): Likewise.
33615         * tests/test-fdutimensat.c (main): Likewise.
33616         * tests/test-fflush.c (main): Likewise.
33617         * tests/test-filenamecat.c (main): Likewise.
33618         * tests/test-filevercmp.c (main): Likewise.
33619         * tests/test-fopen-safer.c (main): Likewise.
33620         * tests/test-fopen.c (main): Likewise.
33621         * tests/test-fpending.c (main): Likewise.
33622         * tests/test-fpurge.c (main): Likewise.
33623         * tests/test-freading.c (main): Likewise.
33624         * tests/test-fstatat.c (main): Likewise.
33625         * tests/test-fsync.c (main): Likewise.
33626         * tests/test-futimens.c (main): Likewise.
33627         * tests/test-getndelim2.c (main): Likewise.
33628         * tests/test-gettimeofday.c (main): Likewise.
33629         * tests/test-getopt.c (main): Likewise.
33630         * tests/test-i-ring.c (main): Likewise.
33631         * tests/test-inttypes.c (main): Likewise.
33632         * tests/test-link.c (main): Likewise.
33633         * tests/test-lstat.c (main): Likewise.
33634         * tests/test-math.c (main): Likewise.
33635         * tests/test-md5.c (main): Likewise.
33636         * tests/test-memchr2.c (main): Likewise.
33637         * tests/test-memrchr.c (main): Likewise.
33638         * tests/test-mkdir.c (main): Likewise.
33639         * tests/test-mkdirat.c (main): Likewise.
33640         * tests/test-mkfifoat.c (main): Likewise.
33641         * tests/test-open.c (main): Likewise.
33642         * tests/test-openat-safer.c (main): Likewise.
33643         * tests/test-openat.c (main): Likewise.
33644         * tests/test-quotearg.c (main): Likewise.
33645         * tests/test-rawmemchr.c (main): Likewise.
33646         * tests/test-readlink.c (main): Likewise.
33647         * tests/test-remove.c (main): Likewise.
33648         * tests/test-rename.c (main): Likewise.
33649         * tests/test-renameat.c (main): Likewise.
33650         * tests/test-rmdir.c (main): Likewise.
33651         * tests/test-sha1.c (main): Likewise.
33652         * tests/test-signal.c (main): Likewise.
33653         * tests/test-sigaction.c (main): Likewise.
33654         * tests/test-stat.c (main): Likewise.
33655         * tests/test-stat-time.c (main): Likewise.
33656         * tests/test-stddef.c (main): Likewise.
33657         * tests/test-stdint.c (main): Likewise.
33658         * tests/test-stdio.c (main): Likewise.
33659         * tests/test-stdlib.c (main): Likewise.
33660         * tests/test-strchrnul.c (main): Likewise.
33661         * tests/test-strerror.c (main): Likewise.
33662         * tests/test-string.c (main): Likewise.
33663         * tests/test-strtod.c (main): Likewise.
33664         * tests/test-strverscmp.c (main): Likewise.
33665         * tests/test-symlink.c (main): Likewise.
33666         * tests/test-symlinkat.c (main): Likewise.
33667         * tests/test-sys_stat.c (main): Likewise.
33668         * tests/test-sys_time.c (main): Likewise.
33669         * tests/test-time.c (main): Likewise.
33670         * tests/test-unistd.c (main): Likewise.
33671         * tests/test-unlink.c (main): Likewise.
33672         * tests/test-unlinkat.c (main): Likewise.
33673         * tests/test-utimens.c (main): Likewise.
33674         * tests/test-utimensat.c (main): Likewise.
33675         * tests/test-version-etc.c (main): Likewise.
33676         * tests/test-wchar.c (main): Likewise.
33677         * tests/test-wctype.c (main): Likewise.
33678         * tests/test-xprintf-posix.c (main): Likewise.
33679         * tests/test-posixtm.c (main): Likewise.
33680         (STREQ): Delete unused macro.
33681         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
33682         shadowed variables.
33683         * tests/test-memchr.c (main): Likewise.
33684
33685 2009-10-21  Eric Blake  <ebb9@byu.net>
33686
33687         areadlinkat: avoid failure on older glibc
33688         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
33689         rather than mis-comparing 0 against FUNC_RESULT of char*.
33690
33691 2009-10-21  Bruno Haible  <bruno@clisp.org>
33692
33693         * modules/stpncpy (License): Relicense under LGPLv2+.
33694         Reported by David Lutterkort <lutter@redhat.com>.
33695
33696 2009-10-20  Eric Blake  <ebb9@byu.net>
33697
33698         utimensat: work around Solaris 9 bug
33699         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
33700         has trailing slash bugs.
33701         * tests/test-lutimens.h (test_lutimens): Enhance test.
33702         * tests/test-utimens.h (test_utimens): Likewise.
33703         * doc/posix-functions/utime.texi (utime): Enhance documentation.
33704         * doc/posix-functions/utimes.texi (utimes): Likewise.
33705         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
33706         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
33707         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
33708         * doc/posix-functions/futimens.texi (futimens): Likewise.
33709
33710         fdutimensat: new module
33711         * modules/fdutimensat: New file.
33712         * lib/fdutimensat.c (fdutimensat): Likewise.
33713         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
33714         * MODULES.html.sh (File system functions): Mention module.
33715         * modules/fdutimensat-tests: New test.
33716         * tests/test-fdutimensat.c: Likewise.
33717
33718         doc: regenerate INSTALL
33719         * doc/INSTALL: Reflect recent autoconf update.
33720         * doc/INSTALL.ISO: Likewise.
33721         * doc/INSTALL.UTF-8: Likewise.
33722
33723 2009-10-20  Pádraig Brady  <P@draigBrady.com>
33724
33725         acl: warn if ACL support is not detected
33726         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
33727
33728 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
33729
33730         * lib/nproc.h: Add extern "C" block for C++.
33731
33732 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
33733             Bruno Haible  <bruno@clisp.org>
33734
33735         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
33736         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
33737         * doc/posix-functions/isalpha.texi: Likewise.
33738         * doc/posix-functions/isblank.texi: Likewise.
33739         * doc/posix-functions/iscntrl.texi: Likewise.
33740         * doc/posix-functions/isdigit.texi: Likewise.
33741         * doc/posix-functions/isgraph.texi: Likewise.
33742         * doc/posix-functions/islower.texi: Likewise.
33743         * doc/posix-functions/isprint.texi: Likewise.
33744         * doc/posix-functions/ispunct.texi: Likewise.
33745         * doc/posix-functions/isspace.texi: Likewise.
33746         * doc/posix-functions/isupper.texi: Likewise.
33747         * doc/posix-functions/isxdigit.texi: Likewise.
33748
33749 2009-10-18  Bruno Haible  <bruno@clisp.org>
33750
33751         Tests for module 'isblank'.
33752         * modules/isblank-tests: New file.
33753         * tests/test-isblank.c: New file.
33754
33755         New module 'isblank'.
33756         * lib/isblank.c: New file.
33757         * m4/isblank.m4: New file.
33758         * modules/isblank: New file.
33759         * doc/posix-functions/isblank.texi: Mention the new module.
33760
33761 2009-10-18  Bruno Haible  <bruno@clisp.org>
33762
33763         New module 'ctype'.
33764         * lib/ctype.in.h: New file.
33765         * m4/ctype.m4: New file.
33766         * modules/ctype: New file.
33767         * doc/posix-headers/ctype.texi: Mention the new module.
33768
33769 2009-10-18  Jim Meyering  <meyering@redhat.com>
33770
33771         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
33772         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
33773         right after its initialization, rather than farther down.
33774         Keeping these in close proximity makes it easier to ensure
33775         that each such variable is initialized.  E.g.,
33776
33777             LIB_CLOCK_GETTIME=
33778             AC_SUBST([LIB_CLOCK_GETTIME])
33779
33780         This change also increments these serial numbers.
33781         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
33782         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
33783         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
33784
33785 2009-10-18  Bruno Haible  <bruno@clisp.org>
33786
33787         Don't let environment variables perturb build.
33788         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
33789         (gl_PREREQ_GETHRXTIME): ... not here.
33790
33791 2009-10-18  Bruno Haible  <bruno@clisp.org>
33792
33793         Avoid symlink attack in localcharset module.
33794         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
33795         (O_NOFOLLOW): Define fallback.
33796         (get_charset_aliases): Don't open the file if it is a symbolic link.
33797         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
33798         gl_FCNTL_H.
33799         (gl_FCNTL_H): Require it.
33800         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
33801         * modules/localcharset (Files): Add m4/fcntl_h.m4.
33802         Reported by Fergal Glynn <fglynn@veracode.com>.
33803
33804 2009-10-18  Bruno Haible  <bruno@clisp.org>
33805
33806         Implement nproc for mingw.
33807         * lib/nproc.c: Include <windows.h>
33808         (num_processors): On native Windows platforms, try GetSystemInfo.
33809
33810 2009-10-18  Bruno Haible  <bruno@clisp.org>
33811
33812         Implement nproc for IRIX.
33813         * lib/nproc.c: Include <sys/sysmp.h>.
33814         (num_processors): On IRIX systems, try sysmp.
33815         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
33816
33817 2009-10-18  Bruno Haible  <bruno@clisp.org>
33818
33819         Implement nproc for HP-UX.
33820         * lib/nproc.c: Include <sys/pstat.h>
33821         (num_processors): On HP-UX systems, try pstat_getdynamic.
33822         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
33823         pstat_getdynamic.
33824
33825 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
33826             Bruno Haible  <bruno@clisp.org>
33827
33828         Implement nproc for NetBSD, OpenBSD.
33829         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
33830         (ARRAY_SIZE): New macro.
33831         (num_processors): On BSD systems, try sysctl of HW_NCPU.
33832         * m4/nproc.m4: New file.
33833         * modules/nproc (Files): Add m4/nproc.m4.
33834         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
33835         (Makefile.am): Instead, augment lib_SOURCES.
33836
33837 2009-10-18  Bruno Haible  <bruno@clisp.org>
33838
33839         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
33840         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
33841         sys/param.h.
33842
33843 2009-10-16  Eric Blake  <ebb9@byu.net>
33844
33845         utimensat: new module
33846         * modules/utimensat: New file.
33847         * lib/utimensat.c (utimensat): Likewise.
33848         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
33849         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
33850         so we can work around Linux bugs.
33851         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
33852         * modules/sys_stat (Makefile.am): Substitute them.
33853         * lib/sys_stat.in.h (utimensat): Declare it.
33854         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
33855         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
33856         * modules/utimensat-tests: New test.
33857         * tests/test-utimensat.c: Likewise.
33858
33859         utimens: let lutimens work on non-symlinks
33860         * lib/utimens.c (lutimens): Fall back to utimens rather than
33861         failing with ENOSYS, when file is not a symlink.
33862         (utimens): Reduce redirection.
33863         * tests/test-lutimens.h (test_lutimens): Update test to cover
33864         non-symlinks.
33865         * tests/test-utimens.h (test_utimens): Update test to cover
33866         symlinks.
33867         * tests/test-utimens.c (main): Update caller.
33868
33869         utimens: cache whether utimensat syscall works
33870         * lib/utimens.c (utimensat_works_really): New cache variable.
33871         (fdutimens, lutimens): Use it to avoid failing syscall.
33872
33873         test-stat-time, test-utimens: improve portability
33874         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
33875         ext4 on alpha, and for cygwin.
33876         * tests/test-utimens-common.h: New file.
33877         (nap): Factor delays into single function.
33878         * tests/test-lutimens.h (test_lutimens): Use new header.
33879         * tests/test-futimens.h (test_futimens): Likewise.
33880         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
33881         timestamps to occur from same machine, as was done previously for
33882         test_utimens.
33883         * modules/utimens-tests (Files): Ship new file.
33884         * modules/futimens-tests (Files): Likewise.
33885         Reported in part by Jim Meyering.
33886
33887         sys_stat: sort replacement declarations
33888         * lib/sys_stat.in.h: Sort declarations.
33889         * lib/futimens.c (futimens): Fix typo.
33890
33891 2009-10-15  Jim Meyering  <meyering@redhat.com>
33892
33893         don't let environment settings perturb build
33894         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
33895         could cause a configure-time and/or build-time malfunction.
33896         Typically, a configure-time function-in-library test is performed
33897         via code like this:
33898
33899           LIB_VAR=
33900           AC_SUBST([LIB_VAR])
33901           prefix_saved_LIBS=$LIBS
33902             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
33903                        [test "$ac_cv_search_FUNC" = "none required" ||
33904                         LIB_VAR=$ac_cv_search_FUNC])
33905           LIBS=$prefix_saved_LIBS
33906
33907         However, in each of the files affected by this change, the LIB_VAR=
33908         initialization was omitted.  Thus, when set in the environment, its
33909         value would propagate into generated Makefiles when FUNC is not found
33910         in LIB_NAME.
33911         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
33912         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
33913         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
33914
33915 2009-10-14  Eric Blake  <ebb9@byu.net>
33916
33917         fchdir: avoid infinite recursion in mingw
33918         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
33919         recursing.
33920
33921         test-stat-time: port to mingw
33922         * tests/test-stat-time.c (force_unlink): Return a value.
33923         (test_ctime) [W32]: Fix compilation error.
33924         (nap): Don't call usleep with too large an argument.  Use
33925         force_unlink.
33926         * doc/pastposix-functions/usleep.texi (usleep): Document the
33927         portability issue.
33928
33929 2009-10-13  Jim Meyering  <meyering@redhat.com>
33930
33931         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
33932         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
33933         * modules/pipe-filter-ii: Likewise.
33934         * modules/sys_socket-tests: Likewise.
33935         * modules/tsearch-tests: Likewise.
33936         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
33937         (check): Depend on it.
33938
33939 2009-10-12  Eric Blake  <ebb9@byu.net>
33940
33941         utimens-tests: port to NFS file systems
33942         * tests/test-utimens.h (test_utimens): Refactor utimecmp
33943         comparisons to avoid spurious failures from timestamp drift
33944         between NFS machines.
33945
33946 2009-10-12  Eric Blake  <ebb9@byu.net>
33947
33948         stat-time-tests: minor cleanups
33949         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
33950         * tests/test-stat-time.c (nap): Separate assignment from call.
33951         Suggested by Paolo Bonzini and Bruno Haible.
33952
33953         sys_stat: guarantee struct timespec
33954         * lib/sys_stat.in.h (includes): Always include <time.h>
33955         * modules/sys_stat (Depends-on): Add time.
33956         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
33957         mode_t permission values.
33958         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
33959         get at subsecond timestamps.
33960
33961 2009-10-10  Eric Blake  <ebb9@byu.net>
33962
33963         futimens: new module
33964         * modules/futimens: New file.
33965         * lib/futimens.c (futimens): Likewise.
33966         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
33967         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
33968         we can work around Linux bugs.
33969         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
33970         * modules/sys_stat (Makefile.am): Substitute them.
33971         * lib/sys_stat.in.h (futimens): Declare it.
33972         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
33973         * doc/posix-functions/futimens.texi (futimens): Likewise.
33974         * modules/futimens-tests: New test.
33975         * tests/test-futimens.c: Likewise.
33976
33977         utimens: introduce fdutimens
33978         * lib/utimens.h (fdutimens): New prototype.
33979         * lib/utimens.c (gl_futimens): Move guts...
33980         (fdutimens): ...to new interface.
33981         * tests/test-utimens.c (do_fdutimens): Use it.
33982
33983         utimens: add UTIME_NOW and UTIME_OMIT support
33984         * lib/utimens.c (validate_timespec, update_timespec): New helper
33985         functions.
33986         (gl_futimens, lutimens): Use them.
33987         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
33988         stdbool, sys_stat.
33989         (Link): Mention resulting library dependency.
33990         * modules/utimecmp (Link): Likewise.
33991         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
33992         (Makefile.am): Pick up library dependency.
33993         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
33994         definition.
33995         * tests/test-sys_stat.c: Test the definitions.
33996         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
33997         * NEWS: Document library dependency.
33998
33999         utimecmp: support symlink timestamps
34000         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
34001         hashing when possible.  Use pathconf when available.
34002         (SYSCALL_RESOLUTION): Recognize tighter resolution.
34003         * modules/utimecmp (Depends-on): Add lstat.
34004
34005         utimens: add lutimens interface
34006         * lib/utimens.c (lutimens): New function.
34007         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
34008         * lib/utimens.h (lutimens): Declare new interface.
34009         * tests/test-utimens.c (main): Enhance test.
34010         * tests/test-lutimens.h (test_lutimens): New file.
34011         * modules/utimens-tests (Files): Distribute it.
34012         (Depends-on): Add symlink.
34013         (configure.ac): Check for usleep.
34014
34015         utimens: validate futimens usage
34016         * lib/utimens.c (gl_futimens): Require valid fd up front, using
34017         fewer syscalls on failure later on.  Avoid compiler warning on
34018         mingw.
34019         * modules/utimens (Depends-on): Add dup2.
34020
34021         utimens: add test
34022         * modules/utimens-tests: New test.
34023         * tests/test-utimens.h: New file.
34024         * tests/test-futimens.h: Likewise.
34025         * tests/test-utimens.c: Likewise.
34026
34027         doc: mention timestamp portability issues
34028         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
34029         instead.
34030         * doc/posix-functions/utime.texi (utime): Likewise.
34031         * doc/posix-functions/utimes.texi (utimes): Likewise.
34032         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
34033         instead.
34034         * doc/posix-functions/futimens.texi (futimens): Mention utimens
34035         module.
34036         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
34037         Mention weakness with symlink timestamps.
34038         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
34039         to utimensat/futimens instead.
34040         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
34041
34042         test-dup2: enhance test
34043         * tests/test-dup2.c (main): Also check AT_FDCWD.
34044
34045         test-stat-time: avoid more spurious failures
34046         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
34047         xfs; and avoid race if the two timestamps cross quantization edge.
34048
34049         relocatable: prefer 'file system' over 'filesystem'
34050         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
34051         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
34052         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
34053         * doc/relocatable.texi (Enabling Relocatability): Likewise.
34054         * lib/relocatable.c (compute_curr_prefix): Likewise.
34055
34056 2009-10-10  Jim Meyering  <meyering@redhat.com>
34057
34058         stat-time-tests: check for the usleep function
34059         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
34060
34061 2009-10-10  Bruno Haible  <bruno@clisp.org>
34062
34063         * modules/xnanosleep: Put the Link section after the Include section.
34064
34065 2009-10-09  Eric Blake  <ebb9@byu.net>
34066
34067         dup2: work around FreeBSD 6.1 bug
34068         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
34069         * doc/posix-functions/dup2.texi (dup2): Document it.
34070         Reported by Nelson H. F. Beebe and Jim Meyering.
34071
34072         test-stat-time: port to buggy NFS clients
34073         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
34074         (test_ctime): Also skip test if mtime and ctime are skewed.
34075
34076         maint: prefer 'file system' over 'filesystem'
34077         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
34078         * doc/posix-functions/lstat.texi (lstat): Likewise.
34079         * lib/file-has-acl.c (file_has_acl): Likewise.
34080         * lib/fwriteerror.c [TEST]: Likewise.
34081         * tests/test-areadlink.h (test_areadlink): Likewise.
34082         * tests/test-areadlinkat-with-size.c (main): Likewise.
34083         * tests/test-areadlinkat.c (main): Likewise.
34084         * tests/test-canonicalize-lgpl.c (main): Likewise.
34085         * tests/test-canonicalize.c (main): Likewise.
34086         * tests/test-fstatat.c (main): Likewise.
34087         * tests/test-linkat.c (main): Likewise.
34088         * tests/test-lstat.h (test_lstat_func): Likewise.
34089         * tests/test-mkdir.h (test_mkdir): Likewise.
34090         * tests/test-readlink.h (test_readlink): Likewise.
34091         * tests/test-remove.c (main): Likewise.
34092         * tests/test-rename.h (test_rename): Likewise.
34093         * tests/test-renameat.c (main): Likewise.
34094         * tests/test-rmdir.h (test_rmdir_func): Likewise.
34095         * tests/test-symlink.h (test_symlink): Likewise.
34096         * tests/test-symlinkat.c (main): Likewise.
34097         * tests/test-unlink.h (test_unlink_func): Likewise.
34098         * tests/test-unlinkat.c (main): Likewise.
34099
34100         maint: make realtime library usage explicit
34101         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
34102         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
34103         * modules/settime (Link): Likewise.
34104         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
34105
34106         test-stat-time: speed up execution
34107         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
34108         warning on mingw.
34109         (nap): New helper function.
34110         (prepare_test): Use it to reduce sleep time.
34111         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
34112         execution.
34113         * modules/stat-time-tests (configure.ac): Check for usleep.
34114
34115 2009-10-09  Jim Meyering  <meyering@redhat.com>
34116
34117         selinux-h: always use getfilecon wrappers
34118         * lib/getfilecon.c: New file.
34119         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
34120         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
34121         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
34122         (fgetfilecon): Provide a stub.
34123         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
34124         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
34125         file unconditionally.
34126         When <selinux/selinux.h> is found, arrange to use wrappers.
34127         * modules/selinux-h (Files): Add getfilecon.c.
34128         (Makefile.am): Substitute include-next-related bits
34129         into the now-always-generated selinux/selinux.h file.
34130         * doc/glibc-functions/lgetfilecon.texi: New file.
34131         * doc/glibc-functions/fgetfilecon.texi: New file.
34132         * doc/glibc-functions/getfilecon.texi: New file.
34133         * doc/glibc-functions/getfilecon-desc.texi: New file.
34134         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
34135         which to pull in the new files.
34136         * MODULES.html.sh (Misc): Add selinux-h.
34137
34138 2009-10-08  Jim Meyering  <meyering@redhat.com>
34139
34140         unistd: fix comment typo
34141         * lib/unistd.in.h (euidaccess): Fix a comment typo.
34142
34143 2009-10-08  Eric Blake  <ebb9@byu.net>
34144
34145         areadlink: use SIZE_MAX consistently
34146         * modules/areadlink (Depends-on): Add stdint.
34147         * modules/areadlink-with-size (Depends-on): Likewise.
34148         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
34149         gives NULL; drop sys/types, since unistd gives size_t; and add
34150         stdint for SIZE_MAX.
34151         (SIZE_MAX): Rely on headers.
34152         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
34153         and add stdint.
34154         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
34155         (SIZE_MAX): Likewise.
34156         (INITIAL_BUF_SIZE): Turn into enum.
34157         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
34158
34159 2009-10-08  Jim Meyering  <meyering@redhat.com>
34160
34161         areadlinkat: avoid compilation failure
34162         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
34163         Fix typo in comment.
34164
34165 2009-10-07  Eric Blake  <ebb9@byu.net>
34166
34167         areadlinkat-with-size: new module
34168         * modules/areadlinkat-with-size: New module.
34169         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
34170         * lib/areadlink.h (areadlinkat): Declare it.
34171         * MODULES.html.sh (File system functions): Mention it.
34172         * modules/areadlinkat-with-size-tests: New test.
34173         * tests/test-areadlinkat-with-size.c: New file.
34174
34175         xreadlinkat: new module
34176         * modules/xreadlinkat: New module.
34177         * lib/xreadlinkat.c (xreadlinkat): New file.
34178         * lib/xreadlink.h (xreadlinkat): Declare it.
34179         * MODULES.html.sh (File system functions): Mention it.
34180
34181         areadlinkat: new module
34182         * lib/at-func.c (FUNC_FAIL): New define.
34183         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
34184         * modules/areadlinkat: New module.
34185         * lib/linkat.c (areadlinkat): Move...
34186         * lib/areadlinkat.c (areadlinkat): ...to new file.
34187         * lib/areadlink.h (areadlinkat): Declare it.
34188         * modules/linkat (Depends-on): Add areadlinkat.
34189         * MODULES.html.sh (File system functions): Mention it.
34190         * modules/areadlinkat-tests: New test.
34191         * tests/test-areadlinkat.c: New file.
34192
34193         areadlink, areadlink-with-size: add tests
34194         * modules/areadlink-tests: New test.
34195         * modules/areadlink-with-size-tests: Likewise.
34196         * tests/test-areadlink.h: New file.
34197         * tests/test-areadlink.c: Likewise.
34198         * tests/test-areadlink-with-size.c: Likewise.
34199
34200         maint: minor cleanups
34201         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
34202         _UNUSED_PARAMETER_ instead.
34203         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
34204         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
34205         * modules/linkat-tests (Files): Distribute test-link.h.
34206
34207         openat, utimens: whitespace cleanup
34208         * lib/openat.c: Prefer space throughout, rather than mix of 8
34209         spaces vs. tabs.
34210         * lib/at-func.c: Likewise.
34211         * lib/utimens.c: Likewise.
34212
34213         openat: avoid using wrong fd
34214         * lib/openat.c (openat_permissive): Reject user's fd if saving the
34215         working directory chooses same fd.
34216         * lib/at-func.c (AT_FUNC_NAME): Likewise.
34217
34218         mkdir, mkdirat: fix cygwin 1.5.x bug
34219         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
34220         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
34221         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
34222         bug.
34223         (gl_PREREQ_MKDIR): Delete unused macro.
34224         * modules/mkdir (Files): Track file rename.
34225         (configure.ac): Update macro name.
34226         * modules/openat (Depends-on): Add mkdir.
34227         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
34228
34229         mkdir, mkdirat: add tests
34230         * modules/mkdir-tests: New test.
34231         * tests/test-mkdir.h: New file.
34232         * tests/test-mkdir.c: Likewise.
34233         * tests/test-mkdirat.c: Likewise.
34234         * modules/openat-tests (Files): Add new files.
34235         (Makefile.am): Run new test.
34236
34237 2009-10-06  Eric Blake  <ebb9@byu.net>
34238
34239         doc: tweak *at function documentation
34240         * doc/posix-functions/faccessat.texi (faccessat): Mention
34241         known issue with replacement.
34242         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
34243         * doc/posix-functions/linkat.texi (linkat): Likewise.
34244         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
34245         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
34246         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
34247         * doc/posix-functions/renameat.texi (renameat): Likewise.
34248         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
34249
34250         openat: fix GNU/Hurd bug in unlinkat
34251         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
34252         broken.
34253         * doc/posix-functions/unlink.texi (unlink): Document this.
34254         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
34255
34256         fdopendir: fix GNU/Hurd bug
34257         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
34258         allowing non-directory fds.
34259         * lib/fdopendir.c (rpl_fdopendir): Work around it.
34260         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
34261         * modules/dirent (Makefile.am): Substitute it.
34262         * lib/dirent.in.h (fdopendir): Declare replacement.
34263         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
34264         * tests/test-fdopendir.c (main): Test something other than
34265         /dev/null, since on Hurd that behaves like a directory.
34266
34267         test-symlink: port to GNU/Hurd
34268         * tests/test-symlink.h (test_symlink): Relax expected errno.
34269
34270         doc: tweak more cygwin information
34271         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
34272         now compatible with glibc.
34273         * doc/posix-functions/getopt.texi (getopt): Likewise.
34274
34275         getopt-gnu: add another test
34276         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
34277         guarantee behavior relied on by m4.
34278         * tests/test-getopt.c (main): Use it.
34279         * modules/getopt-posix-tests (Depends-on): Add setenv.
34280         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
34281
34282         getopt: fix compilation on darwin
34283         * lib/getopt.in.h (includes): Leave breadcrumbs during system
34284         include.
34285         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
34286         Reported by Ludovic Courtès.
34287
34288 2009-10-06  Bruno Haible  <bruno@clisp.org>
34289
34290         * modules/size_max (Description): Discourage its use.
34291         Reported by Simon Josefsson.
34292
34293 2009-10-06  Jim Meyering  <meyering@redhat.com>
34294
34295         linkat: avoid compilation failure
34296         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
34297
34298 2009-10-05  Eric Blake  <ebb9@byu.net>
34299
34300         linkat: support Linux 2.6.17
34301         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
34302         linkat on Linux, but allow cache variable override.
34303         * lib/linkat.c (rpl_linkat): Define override.
34304         * modules/linkat (Depends-on): Add symlinkat.
34305         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
34306         * modules/unistd (Makefile.am): Substitute it.
34307         * lib/unistd.in.h (linkat): Declare replacement.
34308         Reported by Pádraig Brady.
34309
34310         quotearg: port test to systems with C.UTF-8 locale
34311         * tests/test-quotearg.c (struct result_strings): Add another
34312         member, differentiating between C.ASCII and C.UTF-8 handling.
34313         (compare_strings): Add parameter.
34314         (main): Adjust all callers.
34315
34316         getopt: avoid clash with FreeBSD _getopt_internal
34317         * lib/getopt.in.h (_getopt_internal): Override the name.
34318         * lib/getopt_int.h (includes): Pick up any overrides.
34319         Reported by Reuben Thomas.
34320
34321         hash: allow C89 compilation
34322         * lib/hash.c (check_tuning): Move declaration before statement.
34323         Reported by Reuben Thomas.
34324
34325 2009-10-05  Karl Berry  <karl@gnu.org>
34326
34327         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
34328
34329 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
34330             Bruno Haible  <bruno@clisp.org>
34331
34332         * lib/uname.c (uname): Use a table-driven algorithm to compute
34333         Windows NT versions.
34334
34335 2009-10-04  Bruno Haible  <bruno@clisp.org>
34336
34337         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
34338         program_invocation_short_name.
34339         * modules/progname (configure.ac): Test for presence of
34340         program_invocation_short_name.
34341         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
34342
34343 2009-10-04  Bruno Haible  <bruno@clisp.org>
34344
34345         * lib/progname.c (set_program_name): Fix comment.
34346         Reported by Jim Meyering.
34347
34348 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
34349             Bruno Haible  <bruno@clisp.org>
34350
34351         * lib/uname.c: Include <string.h>.
34352         (uname): Do only one call to GetVersionEx in the common case.
34353
34354 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
34355             Bruno Haible  <bruno@clisp.org>
34356
34357         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
34358         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
34359         (uname): Add support for Windows CE and various non-x86 CPU types.
34360
34361 2009-10-03  Bruno Haible  <bruno@clisp.org>
34362
34363         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
34364         invocation to tests/configure.ac.
34365         Reported by Ian Beckwith <ianb@erislabs.net>.
34366
34367 2009-10-02  Eric Blake  <ebb9@byu.net>
34368
34369         fchdir: avoid compiler warning
34370         * lib/fchdir.c (canonicalize_file_name)
34371         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
34372
34373         test-open: support mingw errno values
34374         * tests/test-open.h (test_open): Relax test.
34375         * tests/test-fopen.h (test_fopen): Likewise.
34376         * tests/test-openat-safer.c (main): Likewise.
34377
34378         open: fix opening directory on mingw
34379         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
34380
34381         test-open: on GNU/Hurd, /dev/null is a directory
34382         * tests/test-fopen.h (main): Rename...
34383         (test_fopen): ...to this.  Use a guaranteed non-directory when
34384         confirming open behavior on trailing slash.
34385         * tests/test-openat-safer.c (main): Likewise.
34386         * tests/test-open.h (main): Likewise....
34387         (test_open): ...to this.
34388         * tests/test-fopen.c (main): Adjust caller.
34389         * tests/test-fopen-safer.c (main): Likewise.
34390         * tests/test-open.c (main): Likewise.
34391         * tests/test-fcntl-safer.c (main): Likewise.
34392         Reported by Samuel Thibault.
34393
34394         rename, fchdir: don't ignore chdir failure
34395         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
34396         * lib/rename.c (rpl_rename) [W32]: Likewise.
34397         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
34398         an empty destination directory if source cannot be renamed,
34399         although there is still possibility for failure.
34400         * doc/posix-functions/rename.texi (rename): Document the race.
34401         Reported by Jim Meyering.
34402
34403         maint: cleanup whitespace in recent commits
34404         * lib/rename.c (rpl_rename): Remove tabs.
34405         * tests/test-link.h (test_link): Likewise.
34406         * lib/fchdir.c (get_name): Likewise.
34407         Reported by Jim Meyering.
34408
34409 2009-10-02  Ben Pfaff  <blp@gnu.org>
34410
34411         relocatable-prog-wrapper: Add missing dependency on
34412         double-slash-root.
34413         * modules/relocatable-prog-wrapper: Add dependency.
34414         Reported by Ian Beckwith <ianb@erislabs.net>.
34415
34416 2009-10-02  Eric Blake  <ebb9@byu.net>
34417
34418         renameat: fix Solaris bugs
34419         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
34420         needed fixing.
34421         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
34422         * modules/stdio (Makefile.am): Substitute it.
34423         * lib/stdio.in.h (renameat): Declare replacement.
34424         * lib/renameat.c (rpl_renameat): Implement fix.
34425
34426         renameat: new module
34427         * modules/renameat: New file.
34428         * lib/renameat.c (renameat): Likewise.
34429         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
34430         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
34431         * modules/stdio (Makefile.am): Substitute them.
34432         * lib/stdio.in.h (renameat): Declare it.
34433         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34434         * doc/posix-functions/renameat.texi (renameat): Likewise.
34435         * modules/renameat-tests: New test.
34436         * tests/test-renameat.c: Likewise.
34437
34438         rename: fix mingw bugs
34439         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
34440         directory overwrite bugs.
34441
34442         rename: fix another cygwin 1.5 bug
34443         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
34444         checks.
34445         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
34446         unnecessary cygwin workarounds.  Also work around bug with moving
34447         full directory onto an empty one.
34448         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
34449
34450         rename-dest-slash: merge into rename module
34451         * modules/rename-dest-slash (Status): Mark obsolete.
34452         (Depends-on): Add rename.
34453         (Files): Let rename do it all.
34454         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
34455         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
34456         * m4/rename-dest-slash.m4: ...so this file can be deleted.
34457         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
34458         * lib/rename.c (rpl_rename): Update comments.
34459
34460         rename: fix cygwin 1.5.x bugs
34461         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
34462         * lib/rename.c (rpl_rename): Work around them.
34463         * modules/rename (Depends-on): Add same-inode.
34464
34465         rename: fix Solaris 10 bug
34466         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
34467         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
34468         was the only bug.
34469
34470         rename: fix Solaris 9 bug
34471         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
34472         on non-directory.  Avoid calling exit.
34473         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
34474         strdup.
34475         * modules/rename-tests (Depends-on): Drop lstat.
34476         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
34477         (gl_PREREQ_RENAME): Delete unused macro.
34478
34479         rename-dest-slash: fix NetBSD bug
34480         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
34481         links.
34482         * modules/rename-dest-slash (Depends-on): Add same-inode.
34483
34484         rename-tests: new test, exposes several platform bugs
34485         * modules/rename-tests: New file.
34486         * tests/test-rename.h: Likewise.
34487         * tests/test-rename.c: Likewise.
34488         * doc/posix-functions/rename.texi (rename): Improve documentation,
34489         including bugs that will eventually be fixed in gnulib.
34490
34491 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
34492
34493         * lib/uname.c: Include <stdlib.h>
34494         (uname): Assume version info is available.
34495
34496 2009-10-02  Jim Meyering  <meyering@redhat.com>
34497
34498         gnu-web-doc-update: correct --help output
34499         * build-aux/gnu-web-doc-update: Make --help output relevant.
34500
34501         gnu-web-doc-update: add standard options
34502         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
34503
34504         gnu-web-doc-update: New module.
34505         Use this script to automatically update the on-line web documentation
34506         for your GNU project at http://www.gnu.org/software/$pkg/manual/
34507         * modules/gnu-web-doc-update: New file, from coreutils.
34508         * build-aux/gnu-web-doc-update: New script.
34509
34510 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
34511
34512         link: LoadLibrary is not needed.
34513         * lib/link.c: Use GetModuleHandle.
34514
34515 2009-10-01  Eric Blake  <ebb9@byu.net>
34516
34517         getopt: bump serial number
34518         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
34519         change.
34520
34521         tests: tighten link, rmdir, and remove tests
34522         * tests/test-link.h (includes): No need to use <config.h> here.
34523         Clean up if directory hard link was created, otherwise test for
34524         trailing '.'.
34525         * tests/test-linkat.c (main): Simplify.
34526         * tests/test-remove.c (main): Enhance test for trailing '.'.
34527         * tests/test-rmdir.h (test_rmdir_func): Likewise.
34528
34529 2009-10-01  Jim Meyering  <meyering@redhat.com>
34530
34531         maint.mk: requiring "make major" was annoying, for a "minor" release.
34532         What is intended is "stable", to contrast with alpha and beta,
34533         so require "make stable", not "make major".
34534         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
34535         (get_tool_versions): Likewise.
34536         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
34537
34538 2009-09-30  Ben Pfaff  <blp@gnu.org>
34539
34540         Fix broken build of replacement for Windows tmpfile().
34541         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
34542         flags argument added along with the 'mkostemp' module.
34543
34544 2009-09-28  Bruno Haible  <bruno@clisp.org>
34545
34546         Avoid identifier clash with POSIX function 'remove' defined as a macro.
34547         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
34548         to 'remove_elt'.
34549         (gl_list_remove): Update.
34550         * lib/gl_list.c (gl_list_remove): Update.
34551         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
34552         to 'remove_elt'.
34553         (gl_oset_remove): Update.
34554         * lib/gl_list.c (gl_oset_remove): Update.
34555         Reported by Eric Blake.
34556
34557 2009-09-28  Eric Blake  <ebb9@byu.net>
34558
34559         doc: mention yet more cygwin 1.7 status
34560         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
34561         cygwin.
34562         * doc/glibc-functions/execvpe.texi (execvpe): New file.
34563         * doc/gnulib.texi (Glibc unistd.h): Mention it.
34564
34565         argp: fix test failure
34566         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
34567         that are not upper-case.  Pass correct range to tolower.
34568
34569 2009-09-27  Jim Meyering  <meyering@redhat.com>
34570
34571         test-yesno: work around sparc-dash here-document infelicity
34572         Without this change, the literal \177 byte in a here document
34573         would make dash 0.5.5.1-3 access uninitialized memory.
34574         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
34575         Instead, use a marker, "@", and filter through tr to create the desired
34576         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
34577
34578 2009-09-27  Bruno Haible  <bruno@clisp.org>
34579
34580         Disable untested support for new flavours of ACLs on AIX.
34581         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
34582         progress.
34583         * lib/set-mode-acl.c (qset_acl): Likewise.
34584
34585 2008-12-07  Bruno Haible  <bruno@clisp.org>
34586
34587         Add support for new flavours of ACLs on AIX. (Untested.)
34588         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
34589         (file_has_acl): Add support for newer AIX.
34590         * lib/set-mode-acl.c (qset_acl): Likewise.
34591         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
34592         Rainer Tammer <tammer@tammer.net>.
34593
34594 2009-09-26  Eric Blake  <ebb9@byu.net>
34595
34596         argp: fix compilation of getopt
34597         * lib/getopt.in.h (includes): Use different guard than glibc.
34598         Reported by Sergey Poznyakoff.
34599
34600         doc: mention more cygwin 1.7 status
34601         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
34602         bug.
34603         * doc/posix-functions/execl.texi (execl): Likewise.
34604         * doc/posix-functions/execle.texi (execle): Likewise.
34605         * doc/posix-functions/execlp.texi (execlp): Likewise.
34606         * doc/posix-functions/execv.texi (execv): Likewise.
34607         * doc/posix-functions/execve.texi (execve): Likewise.
34608         * doc/posix-functions/execvp.texi (execvp): Likewise.
34609         * doc/glibc-functions/canonicalize_file_name.texi
34610         (canonicalize_file_name): Cygwin 1.7 now provides this.
34611         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
34612         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
34613         on AT_SYMLINK_NOFOLLOW.
34614
34615 2009-09-24  Eric Blake  <ebb9@byu.net>
34616
34617         test-linkat: make test more robust
34618         * tests/test-linkat.c (main): Avoid collision with EEXIST.
34619
34620         getopt: fix inclusion guards for cygwin
34621         * modules/getopt-posix (Depends-on): Add include-next.
34622         (Makefile.am): Substitute more items in replacement header.
34623         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
34624         <getopt.h>.
34625         * lib/getopt.in.h (includes): Use split inclusion guard, and
34626         prefer <getopt.h> over include <unistd.h> when one is present.
34627         (option): Also override name of 'struct option'.
34628
34629         same-inode: revert prior change; it is not yet ready
34630         * NEWS: Undo mention of this change.
34631         * lib/same-inode.h (same-inode.h): Undo tri-state change.
34632         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
34633         * lib/cycle-check.c (cycle_check): Likewise.
34634         * lib/same.c (same_name): Likewise.
34635         * lib/at-func2.c (at_func2): Likewise.
34636
34637 2009-09-23  Eric Blake  <ebb9@byu.net>
34638
34639         linkat: new module
34640         * modules/linkat: New file.
34641         * lib/at-func2.c (at_func2): Likewise.
34642         * lib/linkat.c (linkat): Likewise.
34643         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
34644         * lib/openat-priv.h (at_func2): Add declaration.
34645         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
34646         * modules/unistd (Makefile.am): Substitute them.
34647         * lib/unistd.in.h (linkat): Declare it.
34648         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34649         * doc/posix-functions/linkat.texi (linkat): Likewise.
34650         * doc/posix-functions/link.texi (link): Tweak wording.
34651         * tests/test-link.c (main): Move guts...
34652         * tests/test-link.h (test_link): ...into new file.
34653         * modules/linkat-tests: New test.
34654         * tests/test-linkat.c: Likewise.
34655         * modules/link-tests (Files): Ship new file.
34656         (Depends-on): Add stdbool.
34657
34658         dirname: add library-safe mdir_name
34659         * lib/dirname.h (mdir_name): New prototype.
34660         * lib/dirname.c (dir_name): Move guts...
34661         (mdir_name): ...to new function that avoids xalloc_die.
34662
34663         fchdir: another mingw fix
34664         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
34665         * lib/fchdir.c (get_name): New helper method; skips canonicalize
34666         on mingw (where it has not yet been ported), and make it optional
34667         elsewhere.
34668         (_gl_register_fd): Use it.
34669
34670         same-inode: make SAME_INODE tri-state, to port to mingw
34671         * NEWS: Mention this change.
34672         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
34673         st_ino always being 0.
34674         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
34675         * lib/cycle-check.c (cycle_check): Likewise.
34676         * lib/same.c (same_name): Likewise.
34677
34678         lstat: avoid mingw compilation error
34679         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
34680         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
34681         lstat ourselves.
34682         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
34683         was adequate.
34684         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
34685         the checks for lstat.
34686         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
34687
34688         link: fix test failure on Solaris 9
34689         * lib/link.c (rpl_link): Don't assume link will catch bogus
34690         trailing slash on source.
34691
34692         test-symlinkat: enhance test
34693         * tests/test-readlink.c (main): Move guts...
34694         * tests/test-readlink.h (test_readlink): ...into new file.
34695         * tests/test-symlink.c (main): Move guts...
34696         * tests/test-symlink.h (test_symlink): ...into new file.
34697         * tests/test-symlinkat.c (main): Use new files for further
34698         coverage.
34699         (do_symlink, do_readlink): New helper functions.
34700         * modules/symlink-tests (Files): Ship new file.
34701         (Depends-on): Add stdbool.
34702         * modules/readlink-tests (Files): Ship new file.
34703         (Depends-on): Add stdbool.
34704         * modules/symlinkat-tests (Files): Use new files.
34705
34706 2009-09-23  Eric Blake  <ebb9@byu.net>
34707
34708         readlink: document portability issue with symlink length
34709         * doc/posix-functions/lstat.texi (lstat): Mention that some file
34710         systems have bogus st_size on symlinks, and mention the
34711         areadlink-with-size module.
34712         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
34713         * doc/posix-functions/readlink.texi (readlink): Mention the
34714         areadlink module, and ERANGE failure.
34715         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
34716         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
34717
34718         readlink: fix Solaris 9 bug with trailing slash
34719         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
34720         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
34721         * doc/posix-functions/readlink.texi (readlink): Document this.
34722         * modules/readlink-tests: New test.
34723         * tests/test-readlink.c: Likewise.
34724
34725         readlink: fix cygwin 1.5.x bug with return type
34726         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
34727         * lib/unistd.in.h (readlink): Use ssize_t.
34728         * lib/readlink.c (readlink): Likewise.
34729         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
34730         * modules/unistd (Makefile.am): Substitute it.
34731         * lib/unistd.in.h (readlink): Declare replacement.
34732         * doc/posix-functions/readlink.texi (readlink): Document this.
34733
34734         symlink: use throughout gnulib
34735         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
34736         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
34737         symlink is not used.
34738         * modules/symlinkat (Depends-on): Add symlink.
34739         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
34740         * modules/canonicalize-tests (Depends-on): Likewise.
34741         * modules/lstat-tests (Depends-on): Likewise.
34742         * modules/openat-tests (Depends-on): Likewise.
34743         * modules/remove-tests (Depends-on): Likewise.
34744         * modules/rmdir-tests (Depends-on): Likewise.
34745         * modules/unlink-tests (Depends-on): Likewise.
34746         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
34747         * tests/test-canonicalize.c (symlink): Likewise.
34748         * tests/test-fstatat.c (symlink): Likewise.
34749         * tests/test-lstat.c (symlink): Likewise.
34750         * tests/test-remove.c (symlink): Likewise.
34751         * tests/test-rmdir.c (symlink): Likewise.
34752         * tests/test-unlink.c (symlink): Likewise.
34753         * tests/test-unlinkat.c (symlink): Likewise.
34754
34755         symlink: new module, for Solaris 9 bug
34756         * modules/symlink: New file.
34757         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
34758         * lib/symlink.c: Likewise.
34759         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
34760         * modules/unistd (Makefile.am): Substitute them.
34761         * lib/unistd.in.h (symlink): Declare replacement.
34762         * MODULES.html.sh (File system functions): Mention it.
34763         * doc/posix-functions/symlink.texi (symlink): Likewise.
34764         * modules/symlink-tests: New test.
34765         * tests/test-symlink.c: Likewise.
34766
34767 2009-09-23  Bruno Haible  <bruno@clisp.org>
34768
34769         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
34770         when needed.
34771         Test case: gnulib-tool --import --with-tests atexit inttypes.
34772         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
34773
34774 2009-09-23  Bruno Haible  <bruno@clisp.org>
34775
34776         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
34777         subcommand, not in a subshell.
34778
34779 2009-09-22  Eric Blake  <ebb9@byu.net>
34780
34781         unistd: sort replacement declarations
34782         * lib/unistd.in.h: Sort declarations.
34783
34784         open, openat: minor optimization
34785         * lib/open.c (open): If open succeeded, len is non-zero.
34786         * lib/openat.c (rpl_openat): Likewise.
34787
34788         link-follow: ensure correct result
34789         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
34790         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
34791         distinguish between possible failures.
34792
34793 2009-09-21  Eric Blake  <ebb9@byu.net>
34794
34795         fts: avoid compiler warning
34796         * lib/fts.c (dirent_inode_sort_may_be_useful)
34797         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
34798
34799 2009-09-19  Bruno Haible  <bruno@clisp.org>
34800
34801         * lib/progreloc.c (canonicalize_file_name): New declaration.
34802
34803 2009-09-19  Eric Blake  <ebb9@byu.net>
34804
34805         link: fix quoting
34806         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
34807
34808         openat: fix openat bugs on Solaris 9
34809         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
34810         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
34811         * modules/openat (Depends-on): Add open.
34812         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
34813         * modules/fcntl-h (Makefile.am): Substitute it.
34814         * lib/fcntl.in.h (openat): Declare replacement.
34815         * doc/posix-functions/openat.texi (openat): Document this.
34816
34817         openat: move fstatat and unlinkat into correct files
34818         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
34819         compiled.
34820         * lib/openat.c (fstatat, unlinkat): Move...
34821         * lib/fstatat.c (fstatat): ...into correct files.
34822         * lib/unlinkat.c (unlinkat): Likewise.
34823
34824         openat: fix unlinkat bugs on Solaris 9
34825         * lib/unlinkat.c (unlinkat): New file.
34826         * modules/openat (Depends-on): Add unlink.
34827         (Files): Distribute it.
34828         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
34829         trailing slash behavior is broken.
34830         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
34831         * modules/unistd (Makefile.am): Substitute it.
34832         * lib/unistd.in.h (unlinkat): Declare replacement.
34833         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
34834
34835         openat: fix fstatat bugs on Solaris 9
34836         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
34837         stat.
34838         * doc/posix-functions/fstatat.texi (fstatat): Document this.
34839
34840         test-unlinkat: enhance test, to expose Solaris 9 bug
34841         * tests/test-unlink.c (main): Factor guts...
34842         * tests/test-unlink.h (test_rmdir_func): ...into new file.
34843         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
34844         * tests/test-rmdir.c (main): Adjust caller.
34845         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
34846         (unlinker): New helper function.
34847         (rmdirat): Enhance check.
34848         * modules/rmdir-tests (Depends-on): Add stdbool.
34849         * modules/unlink-tests (Depends-on): Likewise.
34850         (Files): Add test-unlink.h.
34851         * modules/openat-tests (Files): Likewise.
34852         (Depends-on): Add unlinkdir.
34853
34854         test-fstatat: new test, to expose Solaris 9 bugs
34855         * tests/test-stat.c (main): Factor guts...
34856         * tests/test-stat.h (test_stat_func): ...into new file.
34857         * tests/test-lstat.c (main): Factor guts...
34858         * tests/test-lstat.h (test_lstat_func): ...into new file.
34859         * tests/test-fstatat.c: New file.
34860         * modules/stat-tests (Files): Add test-stat.h.
34861         * modules/lstat-tests (Files): Add test-lstat.h.
34862         (Depends-on): Add stdbool.
34863         * modules/openat-tests (Depends-on): Add pathmax.
34864         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
34865         (Makefile.am): Run new test.
34866
34867         remove: new module, for mingw and Solaris 9 bugs
34868         * modules/remove: New file.
34869         * lib/remove.c: Likewise.
34870         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
34871         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
34872         * modules/stdio (Makefile.am): Use them.
34873         * lib/stdio.in.h (remove): Declare replacement.
34874         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34875         * doc/posix-functions/remove.texi (remove): Likewise.
34876         * modules/remove-tests: New test.
34877         * tests/test-remove.c: Likewise.
34878
34879         unlink: new module, for Solaris 9 bug
34880         * modules/unlink: New file.
34881         * lib/unlink.c: Likewise.
34882         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
34883         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
34884         * modules/unistd (Makefile.am): Use them.
34885         * lib/unistd.in.h (stat): Declare replacement.
34886         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34887         * doc/posix-functions/unlink.texi (unlink): Likewise.
34888         * modules/unlink-tests: New test.
34889         * tests/test-unlink.c: Likewise.
34890
34891         lstat: fix Solaris 9 bug
34892         * lib/lstat.c (lstat): Also check for trailing slash on
34893         non-symlink, non-directories.  Use stat module to simplify logic.
34894         * doc/posix-functions/lstat.texi (lstat): Document it.
34895         * modules/lstat-tests (Depends-on): Add errno, same-inode.
34896         (configure.ac): Check for symlink.
34897         * tests/test-lstat.c (main): Add more tests.
34898
34899         stat: add as dependency to other modules
34900         * modules/chown (Depends-on): Add stat.
34901         * modules/euidaccess (Depends-on): Likewise.
34902         * modules/fchdir (Depends-on): Likewise.
34903         * modules/isdir (Depends-on): Likewise.
34904         * modules/link (Depends-on): Likewise.
34905         * modules/lstat (Depends-on): Likewise.
34906         * modules/mkdir-p (Depends-on): Likewise.
34907         * modules/modechange (Depends-on): Likewise.
34908         * modules/open (Depends-on): Likewise.
34909         * modules/readlink (Depends-on): Likewise.
34910         * modules/same (Depends-on): Likewise.
34911
34912         stat: fix Solaris 9 bug
34913         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
34914         slash.
34915         * lib/stat.c (rpl_stat): Work around it.
34916         * doc/posix-functions/stat.texi (stat): Update documentation.
34917
34918         stat: new module, for mingw bug
34919         * modules/stat: New file.
34920         * lib/stat.c: Likewise.
34921         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
34922         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
34923         * modules/sys_stat (Makefile.am): Use them.
34924         * lib/sys_stat.in.h (stat): Declare replacement.
34925         * lib/openat.c (fstatat): Deal with lstat and stat being function
34926         macros.
34927         * modules/openat (Depends-on): Add inline.
34928         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34929         * doc/posix-functions/stat.texi (stat): Likewise.
34930         * modules/stat-tests: New test.
34931         * tests/test-stat.c: Likewise.
34932
34933 2009-09-19  Jim Meyering  <meyering@redhat.com>
34934
34935         syntax-check: detect unnecessary inclusion of canonicalize.h
34936         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
34937
34938 2009-09-19  Eric Blake  <ebb9@byu.net>
34939
34940         canonicalize-lgpl: adjust clients to use correct header
34941         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
34942         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
34943         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
34944         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
34945         * lib/progreloc.c (includes): Likewise.
34946
34947 2009-09-19  Jim Meyering  <meyering@redhat.com>
34948
34949         test-posixtm.c: correct a comment
34950         * tests/test-posixtm.c: Correct first-line comment.
34951         Spotted by Eric Blake.
34952
34953 2009-09-16  Jim Meyering  <meyering@redhat.com>
34954
34955         posixtm-tests: make T const-correct; add a test case
34956         * tests/test-posixtm.c (T): Declare const.
34957         Add a test for -(2^31+1).
34958         Remove useless can-succeed-only-in-2002 test.
34959
34960         posixtm-tests: adjust the sole failing test
34961         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
34962         expected output matches what mktime now produces.  Cross-checked via
34963         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
34964
34965         posixtm: move #ifdef'd tests into a new module
34966         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
34967         * tests/test-posixtm.c: ... this new file.
34968         * modules/posixtm-tests: New module.
34969
34970 2009-09-19  Eric Blake  <ebb9@byu.net>
34971
34972         openat: simplify use of at-func.c
34973         * lib/at-func.c (includes): Include prerequisites here, to
34974         simplify requirements on client files.
34975         * lib/openat-priv.h: Add double-inclusion guard.
34976         * lib/faccessat.c (includes): Simplify.
34977         * lib/fchmodat.c (includes): Likewise.
34978         * lib/fchownat.c (includes): Likewise.
34979         * lib/mkdirat.c (includes): Likewise.
34980         * lib/mkfifoat.c (includes): Likewise.
34981         * lib/symlinkat.c (includes): Likewise.
34982
34983         openat: allow return of fd 0
34984         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
34985         * modules/save-cwd (Depends-on): Replace fcntl-safer with
34986         unistd-safer.
34987         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
34988         <fcntl.h>; this module does not leak fds.
34989         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
34990         must be allowed to return 0, leaving openat_safer to add the
34991         safety.
34992         (openat_permissive): Avoid writing to just-opened fd 2 if
34993         restoring the current directory fails.
34994         * lib/openat-die.c (openat_restore_fail): Add comment.
34995         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
34996         (save_cwd): Guarantee safe fd, but without use of open_safer.
34997         * tests/test-openat.c: New test.
34998         * modules/openat-tests (Files, Makefile.am): Distribute and build
34999         new file.
35000
35001         relocatable-prog-wrapper: fix build
35002         * modules/relocatable-prog-wrapper (Files): Update name of
35003         canonicalize m4 file, broken on 2009-09-17.
35004         Reported by emad hajjar <aleppos@hotmail.com>.
35005
35006 2009-09-19  Bruno Haible  <bruno@clisp.org>
35007
35008         * lib/safe-alloc.h: Use the standard header with GPL copyright.
35009         * lib/safe-alloc.c: Likewise.
35010         Reported by Ian Beckwith <ianb@erislabs.net>.
35011
35012 2009-09-18  Bruno Haible  <bruno@clisp.org>
35013
35014         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
35015         Reported by <erobles@sensacd.com.mx>.
35016
35017 2009-09-17  Eric Blake  <ebb9@byu.net>
35018
35019         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
35020         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
35021         slashes when checking if last component is missing.
35022         * tests/test-canonicalize.c (main): Test this.
35023
35024         canonicalize, canonicalize-lgpl: honor // if distinct from /
35025         * modules/canonicalize (Files): Add double-slash-root.m4.
35026         * modules/canonicalize-lgpl (Files): Likewise.
35027         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
35028         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
35029         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
35030         fallback definition.
35031         (canonicalize_filename_mode): Use it to protect //.
35032         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
35033         (__realpath): Likewise.
35034         * tests/test-canonicalize.c (main): Test this.
35035         * tests/test-canonicalize-lgpl.c (main): Likewise.
35036         * modules/canonicalize-tests (Depends-on): Add same-inode.
35037         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
35038
35039         canonicalize-lgpl: fix glibc bug with trailing slash
35040         * m4/canonicalize-lgpl.m4: Move contents...
35041         * m4/canonicalize.m4: ...here.
35042         (gl_CANONICALIZE_LGPL): Factor realpath check...
35043         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
35044         glibc 2.3.5 bug, fixed 2005-04-27.
35045         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
35046         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
35047         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
35048         * modules/canonicalize-lgpl (Files): Manage file rename.
35049         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
35050         * modules/stdlib (Makefile.am): Substitute witness.
35051         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
35052         is needed.
35053         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
35054         replacement is required.
35055         * lib/canonicalize.c (canonicalize_file_name): Likewise.
35056         * doc/glibc-functions/canonicalize_file_name.texi
35057         (canonicalize_file_name): Document this.
35058         * doc/posix-functions/realpath.texi (realpath): Likewise.
35059
35060         canonicalize-lgpl: reject non-directory with trailing slash
35061         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
35062         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
35063         catches failures in glibc 2.3.5.
35064         * tests/test-canonicalize.c (main): Likewise.
35065
35066         canonicalize-lgpl: use native realpath if it works
35067         * lib/canonicalize-lgpl.c (realpath): Guard with
35068         FUNC_REALPATH_WORKS.
35069         * lib/stdlib.in.h (realpath): Make declaration optional based on
35070         HAVE_REALPATH.
35071         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
35072         native realpath works.
35073         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
35074         * modules/stdlib (Makefile.am): Substitute witness.
35075
35076         canonicalize, canonicalize-lgpl: use <stdlib.h>
35077         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
35078         (Include): Mention <stdlib.h>.
35079         (configure.ac): Mention functions we provide.
35080         * modules/canonicalize (configure.ac): Likewise.
35081         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
35082         realpath if canonicalize_file_name is missing.
35083         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
35084         * modules/stdlib (Makefile.am): Substitute witnesses.
35085         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
35086         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
35087         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
35088         * NEWS: Document this.
35089         * doc/glibc-functions/canonicalize_file_name.texi
35090         (canonicalize_file_name): Likewise.
35091         * doc/posix-functions/realpath.texi (realpath): Likewise.
35092         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
35093
35094         test-canonicalize: consolidate into single C program
35095         * tests/test-canonicalize.sh: Delete; move setup into...
35096         * tests/test-canonicalize.c (main): ...the program, making it
35097         easier to run in debugger.  Add some tests.
35098         * modules/canonicalize-tests (Files): Remove unused file.
35099         (Depends-on): Add progname.
35100         (configure.ac, Makefile.am): Simplify.
35101
35102         test-canonicalize-lgpl: consolidate into single C program
35103         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
35104         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
35105         easier to run in debugger.  Add some tests.
35106         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
35107         (configure.ac, Makefile.am): Simplify.
35108
35109         canonicalize: avoid resolvepath
35110         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
35111         unnecessary checks.
35112         * lib/canonicalize.c (includes): Simplify.
35113         (canonicalize_file_name): Drop resolvepath implementation.
35114         * modules/canonicalize (Depends-on): Drop filenamecat.
35115
35116         canonicalize: don't lose errno
35117         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
35118         over calls to free.
35119
35120         canonicalize: simplify errno handling
35121         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
35122         assignment.
35123
35124         canonicalize, canonicalize-lgpl: update module dependencies
35125         * modules/canonicalize (Depends-on): Add extensions, lstat,
35126         pathmax, stdlib.
35127         (Files): Drop pathmax.h.
35128         (configure.ac): Adjust macro name.
35129         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
35130         lstat, stdlib, sys_stat.
35131         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
35132         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
35133         extensions.
35134         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
35135         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
35136         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
35137         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
35138         declaration, if available.
35139         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
35140         we can rely on the readlink module.
35141         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
35142         (includes): Use <unistd.h> unconditionally.
35143
35144 2009-09-17  Eric Blake  <ebb9@byu.net>
35145
35146         maint: make Include sections of modules consistent
35147         * modules/alloca: Use only header name; no need to list #include.
35148         * modules/alloca-opt: Likewise.
35149         * modules/arpa_inet: Likewise.
35150         * modules/canon-host: Likewise.
35151         * modules/configmake: Likewise.
35152         * modules/dirent: Likewise.
35153         * modules/eealloc: Likewise.
35154         * modules/environ: Likewise.
35155         * modules/fchdir: Likewise.
35156         * modules/fcntl: Likewise.
35157         * modules/fcntl-h: Likewise.
35158         * modules/gethrxtime: Likewise.
35159         * modules/gettime: Likewise.
35160         * modules/ignore-value: Likewise.
35161         * modules/inet_ntop: Likewise.
35162         * modules/inet_pton: Likewise.
35163         * modules/inttypes: Likewise.
35164         * modules/isnand-nolibm: Likewise.
35165         * modules/isnanf-nolibm: Likewise.
35166         * modules/mbchar: Likewise.
35167         * modules/mbfile: Likewise.
35168         * modules/mbiter: Likewise.
35169         * modules/mbuiter: Likewise.
35170         * modules/netdb: Likewise.
35171         * modules/netinet_in: Likewise.
35172         * modules/nproc: Likewise.
35173         * modules/pagealign_alloc: Likewise.
35174         * modules/poll: Likewise.
35175         * modules/printf-frexp: Likewise.
35176         * modules/pthread: Likewise.
35177         * modules/putenv: Likewise.
35178         * modules/random_r: Likewise.
35179         * modules/relocatable-prog: Likewise.
35180         * modules/search: Likewise.
35181         * modules/select: Likewise.
35182         * modules/selinux-h: Likewise.
35183         * modules/settime: Likewise.
35184         * modules/signal: Likewise.
35185         * modules/size_max: Likewise.
35186         * modules/socklen: Likewise.
35187         * modules/ssize_t: Likewise.
35188         * modules/stdarg: Likewise.
35189         * modules/stdbool: Likewise.
35190         * modules/stddef: Likewise.
35191         * modules/stdint: Likewise.
35192         * modules/stdio: Likewise.
35193         * modules/stdlib: Likewise.
35194         * modules/string: Likewise.
35195         * modules/strings: Likewise.
35196         * modules/sys_file: Likewise.
35197         * modules/sys_ioctl: Likewise.
35198         * modules/sys_select: Likewise.
35199         * modules/sys_socket: Likewise.
35200         * modules/sys_stat: Likewise.
35201         * modules/sys_time: Likewise.
35202         * modules/sys_times: Likewise.
35203         * modules/sys_utsname: Likewise.
35204         * modules/sys_wait: Likewise.
35205         * modules/sysexits: Likewise.
35206         * modules/time: Likewise.
35207         * modules/times: Likewise.
35208         * modules/tmpfile: Likewise.
35209         * modules/trim: Likewise.
35210         * modules/unistd: Likewise.
35211         * modules/wchar: Likewise.
35212         * modules/wctype: Likewise.
35213
35214 2009-09-17  Bruno Haible  <bruno@clisp.org>
35215
35216         Make getdate.y compile on QNX and NetBSD 5 / i386.
35217         * m4/getdate.m4 (gl_GETDATE): Conditionally define
35218         TIME_T_FITS_IN_LONG_INT.
35219         * lib/getdate.y (long_time_t): New type.
35220         (relative_time): Change type of 'seconds' field to long_time_t.
35221         (get_date): Update types of local variables. Check against overflow
35222         during conversion from long_time_t to time_t.
35223         Reported by Matt Kraai <kraai@ftbfs.org>
35224         and Hasso Tepper <hasso@netbsd.org>.
35225
35226 2009-09-17  Bruno Haible  <bruno@clisp.org>
35227
35228         * modules/COPYING: Update copyright years.
35229         * modules/README: Likeiwse.
35230         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
35231         Reported by Ian Beckwith <ianb@erislabs.net>.
35232
35233 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
35234
35235         * users.txt: Update references for gnuit package.
35236
35237 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
35238
35239         * m4/getdelim.m4: Fix typo in copyright line.
35240
35241 2009-09-17  Bruno Haible  <bruno@clisp.org>
35242
35243         * lib/atoll.c: Use the standard header with GPL copyright.
35244         * lib/argz.in.h: Likewise.
35245         * lib/glob.c: Likewise.
35246         * lib/glob-libc.h: Likewise.
35247         * lib/random_r.c: Likewise.
35248         * lib/siglist.h: Likewise.
35249         * lib/strsignal.c: Likewise.
35250         Reported by Ian Beckwith <ianb@erislabs.net>.
35251
35252 2009-09-17  Eric Blake  <ebb9@byu.net>
35253
35254         rmdir: ensure correct dependency order
35255         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
35256
35257 2009-09-17  Bruno Haible  <bruno@clisp.org>
35258
35259         Disable assertion that fails on NetBSD 5 / i386.
35260         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
35261         Reported by Sam Steingold <sds@gnu.org>
35262         and Hasso Tepper <hasso@netbsd.org>.
35263
35264 2009-09-16  Eric Blake  <ebb9@byu.net>
35265
35266         unlinkdir: port to mingw
35267         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
35268         on which no one can unlink a directory.
35269
35270         stdlib: sort witness names
35271         * modules/stdlib (Makefile.am): Sort replacements.
35272         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
35273         * lib/stdlib.in.h: Likewise.
35274
35275         parse-duration-tests: avoid link failure
35276         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
35277         LIBINTL.
35278         Reported by Tom G. Christensen.
35279
35280         openat-tests: ensure unlinkat behaves like rmdir
35281         * tests/test-rmdir.c (main): Factor guts...
35282         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
35283         * modules/rmdir-tests (Files): Ship new file.
35284         * modules/openat-tests: New test.
35285         * tests/test-unlinkat.c: Likewise.
35286
35287         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
35288         * modules/rmdir-errno (Status, Notice): Now obsolete.
35289
35290         rmdir: work around cygwin 1.5.x and mingw bugs
35291         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
35292         * lib/rmdir.c (rmdir): Work around it.
35293         * modules/rmdir (Status, Notice): No longer obsolete.
35294         (Files): Add dos.m4.
35295         (Depends-on): Add unistd.
35296         (configure.ac): Set witnesses.
35297         (License): Relax to LGPLv2+.
35298         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
35299         * modules/unistd (Makefile.am): Substitute witnesses.
35300         * lib/unistd.in.h (rmdir): Declare replacement.
35301         * doc/posix-functions/rmdir.texi (rmdir): Document this.
35302         * modules/rmdir-tests: New tests.
35303         * tests/test-rmdir.c: Likewise.
35304
35305 2009-09-15  Eric Blake  <ebb9@byu.net>
35306
35307         fchdir: improve use of replacement functions
35308         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
35309         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
35310         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
35311         REPLACE_CLOSEDIR.
35312         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
35313         * modules/sys_stat (Makefile.am): Substitute correct witness.
35314         * modules/dirent (Makefile.am): Likewise.
35315         * modules/unistd (Makefile.am): Likewise.
35316         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
35317         * lib/unistd.in.h (dup): Likewise.
35318         * lib/sys_stat.in.h (fstat): Likewise.
35319
35320         maint: ignore gnulib-tool temp files
35321         * .gitignore: Ignore files created during gnulib-tool --test.
35322
35323 2009-09-13  Jim Meyering  <meyering@redhat.com>
35324
35325         posixtm: don't reject a time that specify "60" as the number of seconds
35326         * lib/posixtm.c (posixtime): The code to reject invalid dates
35327         would also reject a time specified with the .60 suffix.
35328         But POSIX allows that, in order to accommodate leap seconds.
35329         So don't reject it.
35330         (main): Adjust tests accordingly.
35331         * modules/posixtm (Depends-on): Add stpcpy.
35332
35333 2009-09-11  Jim Meyering  <meyering@redhat.com>
35334
35335         announce-gen: include [$release_type] in emitted Subject:
35336         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
35337         e.g., [stable] in the emitted Subject: line.
35338
35339 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35340
35341         Remove obsolete macros from several modules.
35342         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
35343         obsolete Autoconf macros with their modern counterparts.
35344         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
35345         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
35346         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
35347         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
35348         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
35349         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
35350         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
35351         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
35352         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
35353         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
35354         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
35355         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
35356         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
35357         * m4/sockets.m4 (gl_SOCKETS): Likewise.
35358         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
35359         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
35360         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
35361         * m4/time_r.m4 (gl_TIME_R): Likewise.
35362         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
35363         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
35364         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
35365
35366         Fix copyright header in build-aux scripts.
35367         * build-aux/git-version-gen: Fix copyright header to match GPLv3
35368         recommendation.
35369         * build-aux/ncftpput-ftp: Likewise.
35370         * build-aux/update-copyright: Likewise.
35371
35372 2009-09-09  Eric Blake  <ebb9@byu.net>
35373
35374         test-link: allow Linux choice of errno
35375         * tests/test-link.c (main): Relax test for alternate error.
35376
35377         strndup: fix improper m4 caching
35378         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
35379         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
35380         (gl_PREREQ_STRNDUP): Delete.
35381         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
35382         * modules/string (Makefile.am): Substitute it.
35383         * lib/string.in.h (strndup): Modernize prototype.
35384
35385         getcwd: port to mingw
35386         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
35387         different from the POSIX assumptions made throughout the getcwd
35388         module; fortunately, the mingw getcwd does not need replacement.
35389         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
35390         * modules/getcwd-tests: New test.
35391         * tests/test-getcwd.c: Likewise.
35392
35393         link: fix platform bugs
35394         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
35395         * lib/link.c (link): Work around them.  Fix related mingw bug.
35396         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
35397         * modules/unistd (Makefile.am): Substitute it.
35398         * lib/unistd.in.h (link): Declare replacement.
35399         * doc/posix-functions/link.texi (link): Document this.
35400         * modules/link (Depends-on): Add strdup-posix, sys_stat.
35401
35402         test-link: consolidate into single C program, test more cases
35403         * tests/test-link.sh: Delete.
35404         * tests/test-link.c: Test more error conditions.  Exposes bugs on
35405         at least Cygwin and Solaris.
35406         * modules/link-tests (Files): Remove unused file.
35407         (Depends-on): Add errno, sys_stat.
35408         (Makefile.am): Simplify.
35409
35410 2009-09-08  Bruno Haible  <bruno@clisp.org>
35411
35412         Work around towlower, towupper bug on mingw.
35413         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
35414         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
35415         * doc/posix-functions/towlower.texi: Mention the mingw bug.
35416         * doc/posix-functions/towupper.texi: Likewise.
35417         Reported by Eric Blake.
35418
35419 2009-09-08  Jim Meyering  <meyering@redhat.com>
35420
35421         build: don't try to run autoheader if we don't use it
35422         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
35423         is not used in configure.ac.
35424
35425 2009-09-08  Eric Blake  <ebb9@byu.net>
35426
35427         euidaccess: fix compilation error
35428         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
35429
35430         rawmemchr: relax license
35431         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
35432         okay.
35433         Reported by Jim Meyering.
35434
35435         mkfifoat: new module
35436         * modules/mkfifoat: New file.
35437         * lib/mkfifoat.c: Likewise.
35438         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
35439         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
35440         * modules/sys_stat (Makefile.am): Use them.
35441         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
35442         * MODULES.html.sh (File system functions): Mention module.
35443         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
35444         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
35445         * modules/mkfifoat-tests: New test.
35446         * tests/test-mkfifoat.c: Likewise.
35447
35448         strchrnul: relax license
35449         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
35450         okay.
35451         Reported by Jim Meyering.
35452
35453 2009-09-08  Eric Blake  <ebb9@byu.net>
35454
35455         fstatat: fix compilation on Solaris
35456         * lib/fstatat.c (includes): Add fcntl.h.
35457         Reported by Pádraig Brady.
35458
35459 2009-09-07  Eric Blake  <ebb9@byu.net>
35460
35461         rename: modernize replacement
35462         * modules/rename (Depends-on): Add stdio.
35463         (configure.ac): Declare witness.
35464         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
35465         stdio take care of replacement.
35466         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
35467         * modules/stdio (Makefile.am): Substitute them.
35468         * lib/stdio.in.h (rename): Declare replacement.
35469         * lib/rename.c (includes): Allow cross-compilation to non-windows
35470         machines.
35471         * doc/posix-functions/rename.texi (rename): Improve
35472         documentation.
35473
35474         stdio: sort witness names
35475         * modules/stdio (Makefile.am): Sort replacements.
35476         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
35477         * lib/stdio.in.h: Likewise.
35478
35479         getcwd: minor cleanups
35480         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
35481         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
35482
35483         openat: provide more convenience names
35484         * modules/faccessat (configure.ac): Add C witness.
35485         * lib/unistd.in.h (readlinkat): Fix typo.
35486         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
35487         convenience wrappers.
35488         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
35489         wrappers in syntax checks.
35490
35491 2009-09-06  Eric Blake  <ebb9@byu.net>
35492
35493         doc: fix comments in recent patches
35494         * lib/faccessat.c: Mention correct function.
35495         * lib/fchmodat.c: Likewise.
35496         * lib/fchownat.c: Likewise.
35497         * lib/symlinkat.c: Likewise.
35498         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
35499         constants.
35500
35501         faccessat, symlinkat: continue cleanup of previous patch
35502         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
35503         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
35504         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
35505         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
35506         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
35507         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
35508         set.
35509
35510 2009-09-06  Bruno Haible  <bruno@clisp.org>
35511
35512         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
35513         (fstatat): Declare if GNULIB_FSTATAT is set.
35514         (mkdirat): Declare if GNULIB_MKDIRAT is set.
35515         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
35516         (unlinkat): Declare if GNULIB_UNLINKAT is set.
35517         * modules/fcntl-h (Files): Remove m4/openat.m4.
35518         * modules/sys_stat (Files): Remove m4/openat.m4.
35519         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
35520         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
35521         * modules/unistd (Files): Remove m4/openat.m4.
35522         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
35523         GNULIB_OPENAT.
35524         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
35525         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
35526         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
35527         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
35528         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
35529         gl_OPENAT_DEFAULTS.
35530         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
35531         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
35532         Don't require gl_OPENAT_DEFAULTS.
35533         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
35534         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
35535         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
35536         (gl_OPENAT_DEFAULTS): Remove macro.
35537
35538 2009-09-06  Bruno Haible  <bruno@clisp.org>
35539
35540         * modules/openat (configure.ac): Remove unneeded witness.
35541
35542 2009-09-06  Bruno Haible  <bruno@clisp.org>
35543
35544         Set errno to ENOSYS when a function is entirely unsupported.
35545         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
35546         EOPNOTSUPP.
35547         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
35548         * modules/chown (Depends-on): Remove errno.
35549
35550 2009-09-06  Bruno Haible  <bruno@clisp.org>
35551
35552         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
35553
35554 2009-09-06  Bruno Haible  <bruno@clisp.org>
35555
35556         * lib/sys_stat.in.h: Fix preprocessor command indentation.
35557
35558 2009-09-06  Ben Pfaff  <blp@gnu.org>
35559             Bruno Haible  <bruno@clisp.org>
35560
35561         Work around a glibc bug in strtok_r.
35562         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
35563         Undefine if UNDEFINE_STRTOK_R is set.
35564         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
35565         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
35566         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
35567         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
35568         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
35569         UNDEFINE_STRTOK_R.
35570         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
35571
35572 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
35573
35574         exclude: minor fix
35575         * lib/exclude.c: Include wctype.h
35576
35577 2009-09-06  Akim Demaille  <demaille@gostai.com>
35578
35579         bootstrap: improve error message
35580         * build-aux/bootstrap (find_tool): Upon failure, report the list
35581         of candidates.
35582         Honor the initial value of the envvar.
35583
35584 2009-09-05  Eric Blake  <ebb9@byu.net>
35585
35586         symlinkat: new module
35587         * modules/symlinkat: New file.
35588         * lib/symlinkat.c: Likewise.
35589         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
35590         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
35591         * modules/unistd (Makefile.am): Use them.
35592         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
35593         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
35594         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
35595         * MODULES.html.sh (File system functions): Mention module.
35596         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
35597         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
35598         * modules/symlinkat-tests: New test.
35599         * tests/test-symlinkat.c: Likewise.
35600
35601         test-openat-safer: add more checks
35602         * tests/test-openat-safer.c (main): Check more code paths.
35603
35604 2009-09-05  Jim Meyering  <meyering@redhat.com>
35605
35606         syntax-check: detect unnecessary inclusion of openat.h
35607         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
35608
35609 2009-09-05  Bruno Haible  <bruno@clisp.org>
35610
35611         Support towlower, towupper.
35612         * doc/posix-functions/towlower.texi: Mention module wctype.
35613         * doc/posix-functions/towupper.texi: Likewise.
35614         * lib/wctype.in.h (towlower, towupper): New functions.
35615         * tests/test-wctype.c: Include stdio.h, stdlib.h.
35616         (ASSERT): New macro.
35617         (e): New variable.
35618         (main): Test also towlower, towupper. Test WEOF argument.
35619         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
35620
35621 2009-09-05  Bruno Haible  <bruno@clisp.org>
35622
35623         Fix conversion behaviour when the input is invalid.
35624         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
35625         mark occurring in first pass of indirect conversion.
35626         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
35627         input.
35628         Found by clang's static analyzer.
35629
35630 2009-09-05  Bruno Haible  <bruno@clisp.org>
35631
35632         * tests/test-striconveh.c (main): Test indirect conversion on platforms
35633         where direct conversion is possible.
35634
35635 2009-09-04  Eric Blake  <ebb9@byu.net>
35636
35637         openat: fail with ENOENT on empty name
35638         * lib/openat-proc.c (openat_proc_name): Special-case the empty
35639         buffer.
35640
35641         link-follow: fix logic bug in prior patch
35642         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
35643         reversed sense of yes and no in prior patch.  Avoid confusing
35644         compilation failure with desired semantics.
35645
35646         link-follow: accomodate mingw and cross-compilation
35647         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
35648         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
35649         cross-compilation results to -1, to make linkat easier to
35650         implement when cross-compiling.  Trivially support mingw.
35651         * modules/link-follow (configure.ac): Call new name.
35652         * NEWS: Mention this.
35653
35654 2009-09-03  Eric Blake  <ebb9@byu.net>
35655
35656         faccessat: compile replacement
35657         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
35658         needed.
35659
35660         fts: fix compilation error
35661         * lib/fts.c (includes): Re-add "openat.h", for
35662         openat_needs_fchdir.
35663
35664         faccessat: new module
35665         * modules/faccessat: New file.
35666         * lib/faccessat.c: Likewise.
35667         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
35668         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
35669         * modules/unistd (Makefile.am): Use it.
35670         * lib/unistd.in.h (faccessat): Declare it.
35671         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
35672         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
35673         * MODULES.html.sh (File system functions): Mention it.
35674         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
35675         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
35676
35677         euidaccess: prefer POSIX over non-standard implementation
35678         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
35679         * lib/euidaccess.c (euidaccess): Use it if available.
35680
35681         openat: make template easier to use
35682         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
35683         AT_FUNC_F2 to be undefined.
35684         (VALIDATE_FLAG): New macro; use it to reject bad flags.
35685         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
35686         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
35687         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
35688         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
35689         Likewise.
35690         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
35691         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
35692         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
35693         Likewise.
35694
35695         openat: declare in POSIX headers
35696         * NEWS: Mention this.
35697         * modules/openat (configure.ac): Declare witnesses.
35698         (Depends-on): Add fcntl-h, sys_stat, unistd.
35699         (Include): Mention correct headers.
35700         * modules/fcntl-h (Depends-on): Add link-warning.
35701         (Files): Add openat.m4.
35702         (Makefile.am): Substitute witnesses.
35703         * modules/sys_stat (Files, Makefile.am): Likewise.
35704         * modules/unistd (Files, Makefile.am): Likewise.
35705         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
35706         (gl_OPENAT_DEFAULTS): New macro.
35707         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
35708         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
35709         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
35710         (SYS_STAT_H): Remove unused variable.
35711         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
35712         * lib/fcntl--.h (includes): Remove unneeded header.
35713         * lib/openat-safer.c (includes): Likewise.
35714         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
35715         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
35716         appropriate headers.
35717         (__OPENAT_PREFIX): Delete.
35718         * lib/fcntl.in.h (openat): Provide declaration.
35719         (AT_FDCWD): Fix Solaris bug.
35720         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
35721         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
35722         * lib/fchmodat.c (includes):  Adjust to find declaration.
35723         * lib/fchownat.c (includes): Likewise.
35724         * lib/mkdirat.c (includes): Likewise.
35725         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
35726         still visible.
35727
35728 2009-09-02  Eric Blake  <ebb9@byu.net>
35729
35730         errno: use consistently
35731         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
35732         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
35733         * lib/canonicalize.c (ELOOP): Likewise.
35734         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
35735         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
35736         * lib/lchown.c (EOPNOTSUPP): Likewise.
35737         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
35738         * lib/savewd.c (ESTALE): Likewise.
35739         * lib/settime.c (ENOSYS): Likewise.
35740         * lib/utimens.c (ENOSYS): Likewise.
35741         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
35742         * lib/chdir-safer.c (ELOOP): Likewise.
35743         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
35744         * modules/c-stack (Depends-on): Add errno.
35745         * modules/canonicalize (Depends-on): Likewise.
35746         * modules/chdir-safer (Depends-on): Likewise.
35747         * modules/fdopendir (Depends-on): Likewise.
35748         * modules/inet_ntop (Depends-on): Likewise.
35749         * modules/inet_pton (Depends-on): Likewise.
35750         * modules/lchown (Depends-on): Likewise.
35751         * modules/openat (Depends-on): Likewise.
35752         * modules/savewd (Depends-on): Likewise.
35753         * modules/settime (Depends-on): Likewise.
35754         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
35755
35756         fts: avoid leaking fds
35757         * modules/fts (Depends-on): Add cloexec.
35758         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
35759         flag.
35760
35761         fts: make directory fds more robust
35762         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
35763         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
35764
35765         backupfile, chdir-long, fts, savedir: make safer
35766         * lib/backupfile.c (includes): Use "dirent--.h", since
35767         numbered_backup can write to stderr during readdir.
35768         * lib/savedir.c (includes): Likewise.
35769         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
35770         emulation can write to stderr on failure.
35771         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
35772         * lib/getcwd.c: Document why opendir_safer is unused.
35773         * lib/glob.c: Likewise.
35774         * lib/scandir.c: Likewise.
35775         * lib/openat-proc.c: Likewise, for open_safer.
35776         * modules/backupfile (Depends-on): Add dirent-safer.
35777         * modules/savedir (Depends-on): Likewise.
35778         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
35779         * modules/chdir-long (Depends-on): Add openat-safer.
35780
35781         openat-safer: new module
35782         * modules/openat-safer: New file.
35783         * lib/openat-safer.c: Likewise.
35784         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
35785         * lib/fcntl-safer.h (openat_safer): Declare.
35786         * lib/fcntl--.h (openat): Override.
35787         * MODULES.html.sh (File descriptor based I/O): Mention it.
35788         * lib/openat.h: Add double-inclusion guards.
35789         * lib/openat.c (includes): Only include "fcntl-safer.h", not
35790         "fcntl--.h", so we can implement openat.
35791         * modules/openat-safer-tests: New test.
35792         * tests/test-openat-safer.c: New file.
35793
35794         dirent-safer: new module
35795         * modules/dirent-safer: New file.
35796         * lib/dirent--.h: Likewise.
35797         * lib/dirent-safer.h: Likewise.
35798         * lib/opendir-safer.c: Likewise.
35799         * m4/dirent-safer.m4: Likewise.
35800         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
35801         * modules/dirent-safer-tests: New test.
35802         * tests/test-dirent-safer.c: New file.
35803         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
35804
35805         fdopendir: optimize on mingw
35806         * lib/unistd.in.h (_gl_directory_name): New prototype.
35807         * lib/fchdir.c (_gl_directory_name): Implement it.
35808         (fchdir): Use it to simplify implementation.
35809         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
35810         fchdir, when available, to avoid calling [f]chdir().
35811
35812         fdopendir: split into its own module
35813         * lib/openat.c (fdopendir): Move...
35814         * lib/fdopendir.c: ...into new file.
35815         * modules/fdopendir: New module.
35816         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
35817         * modules/openat (Depends-on): Add fdopendir.
35818         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
35819         fdopendir here.
35820         * modules/savedir (Depends-on): Only need fdopendir, not full
35821         openat.
35822         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
35823         * lib/openat.h (fdopendir): Drop prototype.
35824         * lib/dirent.in.h (fdopendir): Provide prototype.
35825         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
35826         * modules/dirent (Makefile.am): Substitute them.
35827         * MODULES.html.sh (File system functions): Mention it.
35828         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
35829         * modules/fdopendir-tests: New file.
35830         * tests/test-fdopendir.c: Likewise.
35831
35832         fchdir: use more consistent macro convention
35833         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
35834         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
35835         REPLACE_FCHDIR, rather than relying on config.h macros.
35836         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
35837         inside a single make-time REPLACE_FCHDIR block, rather than using
35838         the config.h FCHDIR_REPLACEMENT.
35839         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
35840         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
35841         Manage fstat replacement.
35842         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
35843         REPLACE_FCHDIR.
35844         * modules/sys_stat (Files): Add m4/unistd_h.m4.
35845         (Makefile.am): Substitute REPLACE_FCHDIR.
35846         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
35847         FCHDIR_REPLACEMENT.
35848         * lib/dup-safer.c (dup_safer): Likewise.
35849         * lib/dup2.c (rpl_dup2): Likewise.
35850         * lib/dup3.c (rpl_dup3): Likewise.
35851         * lib/open.c (rpl_open): Likewise.
35852
35853         fchdir: simplify error handling, and support dup3
35854         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
35855         stdbool, malloc-posix, realloc-posix.
35856         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
35857         (ensure_dirs_slot): Return false on allocation failure.
35858         (rpl_dup2): Delete.
35859         (_gl_register_dup): New function.
35860         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
35861         (_gl_register_fd): Close fd on allocation failure.
35862         * lib/fcntl.in.h (_gl_register_fd): Update signature.
35863         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
35864         prototype.
35865         (rpl_dup2_fchdir): Delete prototype.
35866         * lib/open.c (open): Update caller.
35867         * lib/dup2.c (dup2): Track fchdir metadata.
35868         * lib/dup3.c (dup3): Likewise.
35869         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
35870         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
35871
35872 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35873
35874         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
35875         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
35876         don't pass arguments to AC_OUTPUT.
35877
35878 2009-09-02  Bruno Haible  <bruno@clisp.org>
35879
35880         * modules/mkdtemp (License): Relicense under LGPLv2+.
35881         Reported by Paolo Bonzini.
35882
35883 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35884
35885         Replace uses of obsolete autoconf macros in Jim's modules.
35886         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
35887         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
35888         can evoke a warning from autoconf when run with -Wobsolete
35889         enabled.  They were declared obsolete for good reasons (see
35890         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
35891         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
35892         should not continue using the deprecated macros.
35893         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
35894         obsolete Autoconf macros with modern counterparts.
35895         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
35896         * m4/dos.m4 (gl_AC_DOS): Likewise.
35897         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
35898         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
35899         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
35900         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
35901         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
35902         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
35903         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
35904         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
35905         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
35906         Likewise.
35907         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
35908         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
35909         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
35910         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
35911         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
35912         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
35913
35914 2009-09-01  Eric Blake  <ebb9@byu.net>
35915
35916         fchdir: fix off-by-one bug in previous patch
35917         * lib/fchdir.c (rpl_fstat): Use correct bounds.
35918         (_gl_unregister_fd): Delete useless if.
35919
35920 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
35921
35922         maint.mk: sort the list of syntax-check rules
35923         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
35924         easier to get a sense of progress when the rules are run sequentially
35925         and take a long time.
35926
35927 2009-09-01  Simon Josefsson  <simon@josefsson.org>
35928
35929         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
35930         * modules/netinet_in: Likewise.
35931         * modules/sys_file: Likewise.
35932         * modules/sys_ioctl: Likewise.
35933         * modules/sys_select: Likewise.
35934         * modules/sys_socket: Likewise.
35935         * modules/sys_stat: Likewise.
35936         * modules/sys_time: Likewise.
35937         * modules/sys_times: Likewise.
35938         * modules/sys_utsname: Likewise.
35939         * modules/sys_wait: Likewise.
35940
35941 2009-09-01  Jim Meyering  <meyering@redhat.com>
35942
35943         fts: help ensure that return values are not ignored
35944         * lib/fts_.h (__GNUC_PREREQ): Define.
35945         (__attribute_warn_unused_result__): Define.
35946         (fts_children, fts_close, fts_open, fts_read): Declare with
35947         __attribute_warn_unused_result__.
35948
35949         fts: fts_close now fails also when closing a dir file descriptor fails
35950         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
35951         and propagate to caller, along with errno.
35952
35953         announce-gen: correct formatting in --help output
35954         * build-aux/announce-gen (usage): Move the one-line description in
35955         --help output "up", to where it belongs, just after Usage:.
35956
35957 2009-08-31  Eric Blake  <ebb9@byu.net>
35958
35959         fchdir: port to mingw
35960         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
35961         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
35962         opened, then use a substitute.
35963         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
35964         replacement.
35965         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
35966         (_gl_register_fd): No need to check stat if open already filters
35967         all directories.
35968         (fchdir): Fix error condition to match POSIX.
35969         * modules/fchdir (Depends-on): Add sys_stat.
35970         * doc/posix-functions/open.texi (open): Document the limitation.
35971         * modules/fchdir-tests: New file.
35972         * tests/test-fchdir.c: Likewise.
35973
35974         canonicalize: allow cross-testing from cygwin to mingw
35975         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
35976         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
35977         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
35978         Likewise.
35979         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
35980         target does not support symlinks.
35981         * tests/test-canonicalize-lgpl.sh: Likewise.
35982
35983         chown: avoid compilation warning on mingw
35984         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
35985         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
35986         mingw.
35987         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
35988         * modules/chown (Depends-on): Add errno.
35989
35990 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
35991
35992         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
35993         command.
35994
35995 2009-08-31  Jim Meyering  <meyering@redhat.com>
35996
35997         canonicalize: remove useless initialization
35998         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
35999         initialization of local, "end".
36000
36001 2009-08-30  Bruno Haible  <bruno@clisp.org>
36002
36003         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
36004         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
36005         ENOSYS.
36006
36007 2009-08-30  Bruno Haible  <bruno@clisp.org>
36008
36009         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
36010         /usr/xpg4/bin/tr when it exists.
36011         * tests/test-pipe-filter-gi1.sh: Likewise.
36012
36013 2009-08-30  Bruno Haible  <bruno@clisp.org>
36014
36015         Work around deficient /usr/bin/id program on Solaris.
36016         * tests/test-file-has-acl.sh (ID): New variable.
36017         * tests/test-set-mode-acl.sh (ID): Likewise.
36018         * tests/test-copy-acl.sh (ID): Likewise.
36019         * tests/test-copy-file.sh (ID): Likewise.
36020
36021 2009-08-30  Bruno Haible  <bruno@clisp.org>
36022
36023         New module 'xstriconveh'.
36024         * lib/xstriconveh.h: New file.
36025         * lib/xstriconveh.c: New file.
36026         * modules/xstriconveh: New file.
36027
36028 2009-08-30  Bruno Haible  <bruno@clisp.org>
36029
36030         Make it easier to use mem_cd_iconveh.
36031         * lib/striconveh.h (iconveh_t): New type.
36032         (iconveh_open, iconveh_close): New declarations.
36033         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
36034         with a single 'const iconveh_t *' argument.
36035         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
36036         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
36037         with a single 'const iconveh_t *' argument.
36038         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
36039         * tests/test-striconveh.c (main): Update.
36040         * NEWS: Mention the change.
36041
36042 2009-08-30  Bruno Haible  <bruno@clisp.org>
36043
36044         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
36045         problem.
36046
36047 2009-08-30  Bruno Haible  <bruno@clisp.org>
36048
36049         Work around iconv_open problem on Solaris.
36050         * lib/iconv_open-solaris.gperf: New file.
36051         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
36052         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
36053         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
36054         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
36055         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
36056         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
36057
36058 2009-08-29  Jim Meyering  <meyering@redhat.com>
36059
36060         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
36061         * top/maint.mk (cvs-check): Remove target; it was just an alias
36062         to the better-named vc-diff-check.
36063         (maintainer-distcheck): Remove rule.  It was used only from
36064         the (alpha/beta/major) target, and all of its commands but one
36065         were coreutils-specific.
36066         (vc-dist): Remove rule.
36067         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
36068         Run vc-diff-check, not vc-dist.
36069         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
36070
36071 2009-08-27  Bruno Haible  <bruno@clisp.org>
36072
36073         * tests/test-bitrotate.c (main): Remove test that uses a shift count
36074         of 0.
36075
36076 2009-08-27  Bruno Haible  <bruno@clisp.org>
36077
36078         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
36079         compilers.
36080         * doc/func.texi: Document the SunPRO C bug.
36081
36082 2009-08-27  Bruno Haible  <bruno@clisp.org>
36083
36084         Fix link error on Solaris.
36085         * tests/test-parse-duration.c (xstrdup): Remove function.
36086
36087 2009-08-26  Pádraig Brady  <P@draigbrady.com>
36088
36089         ignore-value: handle pointer types, too
36090         * lib/ignore-value.h (__attribute__): Remove definition.
36091         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
36092         of a more concise and more-often effective "(void) i" statement.
36093         (ignore_ptr): New function to suppress warnings from functions that
36094         return pointers, and to make it explicit that one function doesn't
36095         handle all cases.
36096
36097 2009-08-25  Bruno Haible  <bruno@clisp.org>
36098
36099         dup2: work around a Linux bug.
36100         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
36101         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
36102         * doc/posix-functions/dup2.texi: Mention the Linux bug.
36103         Reported by Simon Josefsson.
36104
36105 2009-08-25  Jim Meyering  <meyering@redhat.com>
36106
36107         libguestfs uses gnulib
36108         * users.txt: Add libguestfs.
36109
36110 2009-08-24  Eric Blake  <ebb9@byu.net>
36111
36112         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
36113         * lib/pipe2.c (includes): Add binary-io.h.
36114         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
36115
36116 2009-08-24  Bruno Haible  <bruno@clisp.org>
36117
36118         Tolerate declared but missing accept4 syscall.
36119         * lib/accept4.c (accept4): Invoke original accept4 function first, if
36120         available.
36121         * lib/sys_socket.in.h (accept4): If the function is already present,
36122         override it.
36123         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
36124         * modules/accept4 (Makefile.am): Compile accept4.c always.
36125         Reported by Paolo Bonzini and Eric Blake.
36126
36127 2009-08-23  Bruno Haible  <bruno@clisp.org>
36128
36129         New module 'accept4'.
36130         * lib/sys_socket.in.h (accept4): New declaration.
36131         * lib/accept4.c: New file.
36132         * m4/accept4.m4: New file.
36133         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
36134         GNULIB_ACCEPT4, HAVE_ACCEPT4.
36135         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
36136         HAVE_ACCEPT4.
36137         * modules/accept4: New file.
36138         * doc/glibc-functions/accept4.texi: Mention the new module.
36139
36140 2009-08-24  Jim Meyering  <meyering@redhat.com>
36141
36142         progname: also set global program_invocation_name, when possible
36143         Before this change, a libtool-enabled program that calls glibc's
36144         error function would report the program name as
36145         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
36146         * modules/progname (configure.ac): Check for a declaration of
36147         program_invocation_name.
36148         * lib/progname.c:  Include <errno.h>.
36149         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
36150         Set program_invocation_name.
36151
36152 2009-08-23  Bruno Haible  <bruno@clisp.org>
36153
36154         * lib/dup3.c: Include <string.h>.
36155
36156 2009-08-23  Bruno Haible  <bruno@clisp.org>
36157
36158         * lib/dup3.c (dup3): Test only once whether the system actually exists.
36159         * lib/pipe2.c (pipe2): Likewise.
36160         Suggested by Eric Blake.
36161
36162 2009-08-23  Bruno Haible  <bruno@clisp.org>
36163
36164         Tolerate declared but missing dup3 syscall.
36165         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
36166         * lib/unistd.in.h (dup3): If the function is already present,
36167         override it.
36168         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
36169         * modules/dup3 (Makefile.am): Compile dup3.c always.
36170         Reported by Paolo Bonzini.
36171
36172 2009-08-23  Bruno Haible  <bruno@clisp.org>
36173
36174         Tolerate declared but missing pipe2 syscall.
36175         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
36176         available.
36177         * lib/unistd.in.h (pipe2): If the function is already present,
36178         override it.
36179         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
36180         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
36181         Reported by Paolo Bonzini.
36182
36183 2009-08-23  Bruno Haible  <bruno@clisp.org>
36184
36185         * lib/pipe2.c (pipe2): Move #ifs inside function.
36186
36187 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
36188
36189         quotearg: document limitations of quote_these_too
36190         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
36191         those limitations are created.
36192         * lib/quotearg.h (set_char_quoting): Document that digits and
36193         letters that are special after backslash are not permitted.
36194         (quotearg_char): Cross-reference set_char_quoting documentation.
36195
36196 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
36197
36198         quotearg: implement custom_quoting_style
36199         * lib/quotearg.c: (struct quoting_options): Add left_quote and
36200         right_quote fields.
36201         (set_custom_quoting): New public function.
36202         (quotearg_buffer_restyled): Add left_quote and right_quote
36203         arguments, handle them very much like locale quoting, and update
36204         all uses.
36205         (quotearg_n_custom): New public function.
36206         (quotearg_n_custom_mem): New public function.
36207         (quotearg_custom): New public function.
36208         (quotearg_custom_mem): New public function.
36209         * lib/quotearg.h: Prototype and document new public functions.
36210         (enum quoting_style): For escape_quoting_style and
36211         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
36212         ignored even though they're otherwise like c_quoting_style.
36213         Add custom_quoting_style member and document with comparison to
36214         clocale_quoting_style.
36215         * tests/test-quotearg.c (custom_quotes): New array.
36216         (custom_results): New array.
36217         (main): Extend to test custom quoting.
36218
36219 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
36220
36221         quotearg: fix right quote escaping when it's in quote_these_too
36222         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
36223         quote, be sure to prepend only one backslash.
36224         * tests/test-quotearg.c (use_quote_double_quotes): New function.
36225         (main): Test it.
36226
36227 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
36228
36229         quotearg-tests: test escaping of embedded locale quotes
36230         * tests/test-quotearg.c (struct result_strings): Add member for
36231         new input.
36232         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
36233         (inputs): Add new input.
36234         (results_g): Add expected results.
36235         (flag_results): Likewise.
36236         (locale_results): Likewise.
36237         (compare_strings): Check those.
36238
36239 2009-08-23  Bruno Haible  <bruno@clisp.org>
36240
36241         Tests for module 'dup3'.
36242         * modules/dup3-tests: New file.
36243         * tests/test-dup3.c: New file.
36244
36245         New module 'dup3'.
36246         * lib/unistd.in.h (dup3): New declaration.
36247         * lib/dup3.c: New file.
36248         * m4/dup3.m4: New file.
36249         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
36250         HAVE_DUP3.
36251         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
36252         * modules/dup3: New file.
36253         * doc/glibc-functions/dup3.texi: Mention the new module.
36254
36255 2009-08-23  Bruno Haible  <bruno@clisp.org>
36256
36257         Tweak the dup2 test.
36258         * tests/test-dup2.c (main): Create the test file empty. Verify that an
36259         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
36260         the test file is still empty. Fix argument order of lseek.
36261
36262 2009-08-23  Bruno Haible  <bruno@clisp.org>
36263
36264         Avoid test link errors when the modules getopt-gnu, gettext are used.
36265         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
36266         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36267
36268 2009-08-23  Bruno Haible  <bruno@clisp.org>
36269
36270         Fix getdtablesize() on mingw.
36271         * lib/getdtablesize.c (getdtablesize): Implement differently.
36272         * lib/unistd.in.h (getdtablesize): Improve comment.
36273
36274 2009-08-23  Bruno Haible  <bruno@clisp.org>
36275
36276         New module 'mkostemp'.
36277         Based on Ulrich Drepper's 2007-08-10 change in glibc.
36278         * lib/stdlib.in.h (mksotemp): New declaration.
36279         * lib/mkostemp.c: New file, from glibc with modifications.
36280         * lib/tempname.h (GT_FILE): Remove outdated comment.
36281         (gen_tempname): Add flags argument.
36282         * lib/tempname.c (__GT_BIGFILE): Remove macro.
36283         (__GT_FILE): Map to 1.
36284         (small_open, large_open): Remove macros.
36285         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
36286         * lib/mkstemp.c (mkstemp): Update.
36287         * lib/mkdtemp.c (mkdtemp): Likewise.
36288         * m4/mkostemp.m4: New file.
36289         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
36290         HAVE_MKOSTEMP.
36291         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
36292         HAVE_MKOSTEMP.
36293         * modules/mkostemp: New file, based on modules/mkstemp.
36294         * doc/glibc-functions/mkostemp.texi: Mention the new module.
36295         * NEWS: Mention the change.
36296
36297 2009-08-23  Bruno Haible  <bruno@clisp.org>
36298
36299         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
36300         Reported by Eric Blake.
36301
36302 2009-08-23  Bruno Haible  <bruno@clisp.org>
36303
36304         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
36305         Reported by Eric Blake.
36306
36307 2009-08-23  Bruno Haible  <bruno@clisp.org>
36308
36309         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
36310         * modules/pipe2 (Depends-on): Likewise.
36311
36312 2009-08-23  Eric Blake  <ebb9@byu.net>
36313
36314         fcntl-h: add O_TTY_INIT support
36315         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
36316         * tests/test-fcntl-h.c (o): Test it.
36317         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
36318
36319         fcntl-h: rename from fcntl, in preparation for fcntl(2)
36320         * modules/fcntl: Move <fcntl.h> header replacement...
36321         * modules/fcntl-h: ...to new name, so as not to collide with
36322         like-named function.
36323         * tests/test-fcntl.c: Rename...
36324         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
36325         * modules/fcntl-tests: Rename...
36326         * modules/fcntl-h-tests: ...to this.  Update test file name.
36327         * modules/chdir-long (Depends-on): Update clients.
36328         * modules/chdir-safer (Depends-on): Likewise.
36329         * modules/fcntl-safer (Depends-on): Likewise.
36330         * modules/fts (Depends-on): Likewise.
36331         * modules/mkancesdirs (Depends-on): Likewise.
36332         * modules/mkdir-p (Depends-on): Likewise.
36333         * modules/open (Depends-on): Likewise.
36334         * modules/savewd (Depends-on): Likewise.
36335         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
36336         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
36337
36338 2009-08-22  Bruno Haible  <bruno@clisp.org>
36339
36340         * modules/binary-io (License): Relicense under LGPL.
36341         * modules/pipe2 (License): Likewise.
36342
36343 2009-08-22  Bruno Haible  <bruno@clisp.org>
36344
36345         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
36346         return value.
36347         * lib/pipe-filter-gi.c (filter_init): Likewise.
36348         Reported by Eric Blake.
36349
36350 2009-08-22  Bruno Haible  <bruno@clisp.org>
36351
36352         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
36353         * modules/pipe (Depends-on): Add pipe2.
36354
36355 2009-08-22  Bruno Haible  <bruno@clisp.org>
36356
36357         Tests for module 'pipe2'.
36358         * modules/pipe2-tests: New file.
36359         * tests/test-pipe2.c: New file.
36360
36361         New module 'pipe2'.
36362         * lib/unistd.in.h (pipe2): New declaration.
36363         * lib/pipe2.c: New file.
36364         * m4/pipe2.m4: New file.
36365         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
36366         HAVE_PIPE2.
36367         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
36368         * modules/pipe2: New file.
36369         * doc/glibc-functions/pipe2.texi: Mention the new module.
36370
36371 2009-08-22  Bruno Haible  <bruno@clisp.org>
36372
36373         Reference some new glibc functions.
36374         * doc/glibc-functions/accept4.texi: New file.
36375         * doc/glibc-functions/dup3.texi: New file.
36376         * doc/glibc-functions/mkostemp.texi: New file.
36377         * doc/glibc-functions/pipe2.texi: New file.
36378         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
36379         (Glibc sys/socket.h): Refer to accept4.
36380         (Glibc unistd.h): Refer to dup3, pipe2.
36381         Reported by Eric Blake.
36382
36383 2009-08-22  Jim Meyering  <meyering@redhat.com>
36384             Bruno Haible  <bruno@clisp.org>
36385
36386         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
36387         This makes it so packages using automake-1.11's silent-rules option
36388         can print e.g., a single "GEN    configmake.h" line, rather than
36389         the 30+ statements that perform the job.  If you want to see the
36390         actual commands, you can still run "make V=1".
36391         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
36392         so that make output is abbreviated when those variables are defined
36393         appropriately.
36394         * modules/argz: Likewise.
36395         * modules/arpa_inet: Likewise.
36396         * modules/byteswap: Likewise.
36397         * modules/configmake: Likewise.
36398         * modules/dirent: Likewise.
36399         * modules/errno: Likewise.
36400         * modules/fcntl: Likewise.
36401         * modules/float: Likewise.
36402         * modules/fnmatch: Likewise.
36403         * modules/getopt-posix: Likewise.
36404         * modules/glob: Likewise.
36405         * modules/iconv_open: Likewise.
36406         * modules/inttypes: Likewise.
36407         * modules/localcharset: Likewise.
36408         * modules/locale: Likewise.
36409         * modules/math: Likewise.
36410         * modules/netdb: Likewise.
36411         * modules/netinet_in: Likewise.
36412         * modules/poll: Likewise.
36413         * modules/posix_spawnp-tests: Likewise.
36414         * modules/sched: Likewise.
36415         * modules/search: Likewise.
36416         * modules/selinux-h: Likewise.
36417         * modules/signal: Likewise.
36418         * modules/spawn: Likewise.
36419         * modules/stdarg: Likewise.
36420         * modules/stdbool: Likewise.
36421         * modules/stddef: Likewise.
36422         * modules/stdint: Likewise.
36423         * modules/stdio: Likewise.
36424         * modules/stdlib: Likewise.
36425         * modules/string: Likewise.
36426         * modules/strings: Likewise.
36427         * modules/sys_file: Likewise.
36428         * modules/sys_ioctl: Likewise.
36429         * modules/sys_select: Likewise.
36430         * modules/sys_socket: Likewise.
36431         * modules/sys_stat: Likewise.
36432         * modules/sys_time: Likewise.
36433         * modules/sys_times: Likewise.
36434         * modules/sys_utsname: Likewise.
36435         * modules/sys_wait: Likewise.
36436         * modules/sysexits: Likewise.
36437         * modules/time: Likewise.
36438         * modules/unistd: Likewise.
36439         * modules/wchar: Likewise.
36440         * modules/wctype: Likewise.
36441
36442 2009-08-22  Jim Meyering  <meyering@redhat.com>
36443
36444         announce-gen: detect write failure
36445         * build-aux/announce-gen: Add Coda at end.
36446         Remove equivalent-but-more-verbose block at top.
36447
36448 2009-08-19  Akim Demaille  <demaille@gostai.com>
36449
36450         bootstrap: --help to stdout.
36451         * bootstrap (usage): Don't send --help to stderr.
36452         Use a here doc instead of a long string.
36453
36454 2009-08-21  Eric Blake  <ebb9@byu.net>
36455
36456         test-popen-safer: split from test-popen
36457         * tests/test-popen.c (main): Move...
36458         * tests/test-popen.h: ...into new file.
36459         * tests/test-popen-safer2.c: New file.
36460         * modules/popen-tests (Files): Add test-popen.h.
36461         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
36462         Suggested by Bruno Haible.
36463
36464         test-fcntl-safer: split from test-open
36465         * tests/test-open.c (main): Move...
36466         * tests/test-open.h: ...into new file.
36467         * tests/test-fcntl-safer.c: New file.
36468         * modules/open-tests (Files): Add test-open.h.
36469         * modules/fcntl-safer-tests: New file.
36470         Suggested by Bruno Haible.
36471
36472         test-fopen-safer: split from test-fopen
36473         * tests/test-fopen.c (main): Move...
36474         * tests/test-fopen.h: ...into new file.
36475         * tests/test-fopen-safer.c: New file.
36476         * modules/fopen-tests (Files): Add test-fopen.h.
36477         * modules/fopen-safer-tests: New file.
36478         Suggested by Bruno Haible.
36479
36480 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
36481
36482         popen-safer: test O_CLOEXEC at run-time.
36483         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
36484
36485 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
36486
36487         fcntl: move more flags to the header
36488         * lib/cloexec.c: Do not define FD_CLOEXEC here.
36489         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
36490         * lib/fcntl.in.h: Do both things here.
36491
36492 2009-08-21  Jim Meyering  <meyering@redhat.com>
36493
36494         consistently remove $@-t before redirecting to it
36495         * modules/argz: Remove $@-t and $@ before redirecting to the former.
36496         * modules/alloca-opt: Likewise.
36497         * modules/byteswap: Likewise.
36498         * modules/fnmatch: Likewise.
36499         * modules/getopt-posix: Likewise.
36500         * modules/glob: Likewise.
36501         * modules/poll: Likewise.
36502         * modules/posix_spawnp-tests: Likewise.
36503         * modules/sys_socket: Likewise.
36504         * modules/sysexits: Likewise.
36505
36506 2009-08-21  Eric Blake  <ebb9@byu.net>
36507
36508         popen: simplify access to original popen
36509         * lib/popen.c (rpl_popen): No need to worry about popen being a
36510         macro.
36511         Reported by Bruno Haible.
36512
36513 2009-08-20  Eric Blake  <ebb9@byu.net>
36514
36515         build: avoid some compiler warnings
36516         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
36517         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
36518         type.
36519         (new_exclude_segment, excluded_file_pattern_p)
36520         (excluded_file_name_p): Reduce scope.
36521         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
36522         old-style declaration.
36523
36524 2009-08-20  Simon Josefsson  <simon@josefsson.org>
36525
36526         * tests/test-exclude1.sh: Handle Windows EOL.
36527         * tests/test-exclude2.sh: Likewise.
36528         * tests/test-exclude3.sh: Likewise.
36529         * tests/test-exclude4.sh: Likewise.
36530         * tests/test-exclude5.sh: Likewise.
36531         * tests/test-exclude6.sh: Likewise.
36532         * tests/test-exclude7.sh: Likewise.
36533
36534 2009-08-19  Akim Demaille  <demaille@gostai.com>
36535
36536         bootstrap: find sha1sum when named gsha1sum.
36537         * bootstrap (find_tool): New.
36538         ($SHA1SUM): New.
36539         Use it.
36540
36541 2009-08-20  Jim Meyering  <meyering@redhat.com>
36542
36543         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
36544         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
36545         expression that converts "." in a file name to "\." in the resulting
36546         regexp.  Start with a dummy statement, so that prior shell variable
36547         definitions are expanded portably.  Reported by Simon Josefsson.
36548
36549 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
36550
36551         Fix polling for writeability of a screen buffer.
36552         * lib/poll.c: Distinguish input and screen buffers for the
36553         Win32 implementation.
36554         * lib/select.c: Likewise.
36555
36556 2009-08-19  Eric Blake  <ebb9@byu.net>
36557
36558         popen-safer: prevent popen from clobbering std descriptors
36559         * modules/popen-safer: New file.
36560         * lib/popen-safer.c: Likewise.
36561         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
36562         * lib/stdio--.h (popen): Provide override.
36563         * lib/stdio-safer.h (popen_safer): Provide declaration.
36564         * tests/test-popen.c (includes): Partially test this.
36565         * modules/popen-safer-tests: New file, for more tests.
36566         * tests/test-popen-safer.c: Likewise.
36567         * MODULES.html.sh (file stream based Input/Output): Mention it.
36568
36569         tests: test some of the *-safer modules
36570         * modules/fopen-safer (Depends-on): Add fopen.
36571         * modules/fcntl-safer (Depends-on): Add fcntl.
36572         * modules/stdlib-safer (Depends-on): Add stdlib.
36573         (configure.ac): Set indicator.
36574         * modules/unistd-safer (configure.ac): Likewise.
36575         * modules/tmpfile-safer (configure.ac): Likewise.
36576         (Depends-on): Add tmpfile.
36577         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
36578         active.
36579         * tests/test-fopen.c (includes): Test safer versions when they are
36580         in use.
36581         * tests/test-open.c (includes): Likewise.
36582
36583         popen: fix cygwin 1.5 bug when stdin closed
36584         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
36585         * modules/popen: New file.
36586         * modules/popen-tests: Likewise.
36587         * tests/test-popen.c: Likewise.
36588         * m4/popen.m4: Likewise.
36589         * lib/popen.c: Likewise.
36590         * lib/stdio.in.h (popen): New declaration.
36591         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
36592         * modules/stdio (Makefile.am): Likewise.
36593         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
36594
36595 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
36596
36597         maint.mk: give full control over update-copyright exclusions
36598         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
36599         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
36600         (update-copyright): Don't force inclusion of top-level
36601         ChangeLog.  Don't force exclusion of all COPYING files, but make
36602         them the default exclusion instead.
36603
36604 2009-08-16  Bruno Haible  <bruno@clisp.org>
36605
36606         Fix test failures on Solaris 10.
36607         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
36608         tests when Solaris iconv() is used.
36609         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
36610         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
36611         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
36612         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
36613         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
36614
36615 2009-08-16  Bruno Haible  <bruno@clisp.org>
36616
36617         Fix test failures on Solaris 10.
36618         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
36619         'tr' program and pass it as first argument.
36620         * tests/test-pipe-filter-gi1.sh: Likewise.
36621         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
36622         program as first argument.
36623         * tests/test-pipe-filter-gi1.c (main): Likewise.
36624
36625 2009-08-16  Eric Blake  <ebb9@byu.net>
36626
36627         fpurge: fix previous commits
36628         * modules/fpurge (Makefile.am): Make replacement conditional,
36629         partially reverting 2007-04-29 change; missed in previous
36630         attempt.
36631         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
36632         is missing.
36633
36634 2009-08-16  Bruno Haible  <bruno@clisp.org>
36635
36636         Clarify fpurge's effect on the file position.
36637         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
36638         * tests/test-fpurge.c (main): Make a second pass for checking the file
36639         position.
36640
36641 2009-08-16  Bruno Haible  <bruno@clisp.org>
36642
36643         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
36644         declaration of fpurge is missing.
36645         * tests/test-fpurge.c (main): Check that the file has not more contents
36646         than expected. Close the file before removing it.
36647
36648 2009-08-15  Eric Blake  <ebb9@byu.net>
36649
36650         fpurge: don't wrap working cygwin implementation
36651         * lib/fpurge.c (fpurge): Fix comment typo.
36652         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
36653         1.7 to avoid replacement.
36654         * tests/test-fpurge.c (main): Enhance test.
36655
36656 2009-08-15  Eric Blake  <ebb9@byu.net>
36657         and Jim Meyering  <meyering@redhat.com>
36658
36659         test-update-copyright: skip if perl is insufficient
36660         * tests/test-update-copyright.sh: Failure to run maintainer tool
36661         should not cause testsuite failure on cygwin 1.5.
36662
36663 2009-08-14  Eric Blake  <ebb9@byu.net>
36664
36665         doc: mention more functions added in cygwin 1.7.0
36666         * doc/posix-headers/limits.texi (limits.h): Update for recent
36667         cygwin additions.
36668         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
36669         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
36670         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
36671         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
36672         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
36673
36674 2009-08-14  Eric Blake  <ebb9@byu.net>
36675
36676         maint.mk: simplify update-copyright rule
36677         * top/maint.mk (update-copyright-local): Delete, and document how
36678         to do it in cfg.mk instead.
36679         (update-copyright-exclude-regexp): Delete, and document how to do
36680         it in .x-update-copyright instead.
36681         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
36682         exclude ChangeLog.
36683
36684 2009-08-14  Bruno Haible  <bruno@clisp.org>
36685
36686         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
36687
36688 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
36689
36690         maint.mk: support update-copyright-env
36691         * top/maint.mk (update-copyright-env): Define place-holder.
36692         (update-copyright): Expand $(update-copyright-env) before
36693         invoking update-copyright.
36694
36695 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
36696
36697         update-copyright: implement forced reformatting
36698         * build-aux/update-copyright: Implement and document
36699         UPDATE_COPYRIGHT_FORCE.
36700         * tests/test-update-copyright.sh: Test it.
36701
36702 2009-08-14  Eric Blake  <ebb9@byu.net>
36703         and Bruno Haible  <bruno@clisp.org>
36704
36705         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
36706         * tests/test-locale.c: Revert previous patch related to NULL.
36707         * tests/test-stdio.c: Likewise.
36708         * tests/test-stdlib.c: Likewise.
36709         * tests/test-string.c: Likewise.
36710         * tests/test-unistd.c: Likewise.
36711         * modules/time-tests (Depends-on): Add verify.
36712         * modules/wchar-tests (Depends-on): Likewise.
36713         * tests/test-time.c: Test for NULL compliance.
36714         * tests/test-wchar.c: Likewise.
36715         * modules/locale (Depends-on): Add stddef.
36716         * modules/stdio (Depends-on): Likewise.
36717         * modules/stdlib (Depends-on): Likewise.
36718         * modules/string (Depends-on): Likewise.
36719         * modules/time (Depends-on): Likewise.
36720         * modules/unistd (Depends-on): Likewise.
36721         * modules/wchar (Depends-on): Likewise.
36722         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
36723         * lib/stdlib.in.h (includes): Likewise.
36724         * lib/string.in.h (includes): Likewise.
36725         * lib/time.in.h (includes): Likewise.
36726         * lib/unistd.in.h (includes): Likewise.
36727         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
36728         replaced.
36729         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
36730         * m4/stddef_h.m4: New file.
36731         * modules/stddef: Likewise.
36732         * lib/stddef.in.h: Likewise.
36733         * modules/stddef-tests: Likewise.
36734         * tests/test-stddef.c: Likewise.
36735         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
36736         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
36737         * doc/posix-headers/locale.texi (locale.h): Likewise.
36738         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
36739         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
36740         * doc/posix-headers/string.texi (string.h): Likewise.
36741         * doc/posix-headers/time.texi (time.h): Likewise.
36742         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
36743         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
36744
36745 2009-08-14  Eric Blake  <ebb9@byu.net>
36746
36747         doc: improve git diff of texinfo files
36748         * .gitattributes: Add rule for *.texi files, with hint on how to
36749         use it.
36750         Copied from m4, and based on a report by Bruno Haible.
36751
36752 2009-08-14  Bruno Haible  <bruno@clisp.org>
36753
36754         Disable multithread support by default on Cygwin 1.5.x for real.
36755         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
36756
36757 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
36758
36759         update-copyright: much ado about intervals
36760         * build-aux/update-copyright: Implement and document
36761         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
36762         of copyright year intervals.
36763         Also, document UPDATE_COPYRIGHT_YEAR.
36764         * tests/test-update-copyright.sh: Test it.
36765
36766         update-copyright: convert 2-digit to 4-digit years
36767         * build-aux/update-copyright: Implement and document.
36768         * tests/test-update-copyright.sh: Update.
36769
36770 2009-08-14  Jim Meyering  <meyering@redhat.com>
36771
36772         test-exclude: avoid coreutils "make check" failure
36773         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
36774         just as in test-argmatch.c.
36775
36776 2009-08-13  Eric Blake  <ebb9@byu.net>
36777
36778         test-dup2: fix bad assumption
36779         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
36780         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
36781
36782         test-version-etc: fix CRLF portability issue
36783         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
36784         recognize \r.
36785         * tests/test-argp-version-etc-1.sh: Likewise.
36786
36787         getopt: update client modules
36788         * modules/argp (Depends-on): Use getopt-gnu.
36789         * modules/git-merge-changelog (Depends-on): Likewise.
36790         * modules/long-options (Depends-on): Likewise.
36791         * modules/xstrtol (Depends-on): Likewise.
36792
36793 2009-08-13  Simon Josefsson  <simon@josefsson.org>
36794
36795         * tests/test-version-etc.sh: Don't fail on different
36796         project/version.  Don't fail on CRLF differences.  Rewrite to use
36797         multiple -e instead of multiple sed forks, suggested by Eric Blake
36798         <ebb9@byu.net>.
36799         * tests/test-argp-version-etc-1.sh: Likewise.
36800
36801 2009-08-13  Simon Josefsson  <simon@josefsson.org>
36802
36803         * tests/test-version-etc.sh: Don't fail on different
36804         project/version.
36805
36806 2009-08-12  Bruno Haible  <bruno@clisp.org>
36807
36808         Tests for modules 'getopt-posix', 'getopt-gnu'.
36809         * modules/getopt-posix-tests: New file.
36810         * tests/test-getopt.c: New file.
36811         * tests/test-getopt.h: New file.
36812         * tests/test-getopt_long.h: New file.
36813
36814         New modules 'getopt-posix', 'getopt-gnu'.
36815         * modules/getopt-gnu: New file, renamed from modules/getopt.
36816         * modules/getopt-posix: New file.
36817         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
36818         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
36819         (gl_GETOPT): Remove macro.
36820         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
36821         Disable the test against BSD systems that declare optreset. Test
36822         against mingw bug. Test against lack of support of optional arguments
36823         on many platforms.
36824         * doc/glibc-headers/getopt.texi: Update module name and list of
36825         relevant platforms.
36826         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
36827         'getopt-gnu' and more portability problems.
36828         * NEWS: Mention the changes.
36829
36830 2009-08-12  Bruno Haible  <bruno@clisp.org>
36831
36832         Ensure that optarg etc. get declared by <unistd.h>.
36833         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
36834         AC_USE_SYSTEM_EXTENSIONS.
36835         * modules/getopt (Depends-on): Add 'extensions'.
36836
36837 2009-08-12  Bruno Haible  <bruno@clisp.org>
36838
36839         Avoid test link errors.
36840         * modules/pipe-filter-ii-tests (Makefile.am): Define
36841         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
36842         * modules/pipe-filter-gi-tests (Makefile.am): Define
36843         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
36844         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36845
36846 2009-08-12  Bruno Haible  <bruno@clisp.org>
36847
36848         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
36849         gl_GETOPT_SUBSTITUTE before.
36850         (gl_GETOPT): Use it.
36851         * m4/argp.m4 (gl_ARGP): Update.
36852         Reported by Sergey Poznyakoff.
36853
36854         * m4/getopt.m4: Reorder macros.
36855         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
36856         (gl_GETOPT_SUBSTITUTE): Remove macro.
36857
36858 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
36859
36860         Minor improvement in gitlog-to-changelog
36861
36862         * build-aux/gitlog-to-changelog: New option `--format' makes
36863         output format string configurable.
36864
36865 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
36866
36867         Optimize exclude: use hash tables for non-wildcard patterns.
36868
36869         * lib/exclude.c: Include hash.h and mbuiter.h
36870         (struct exclude_pattern, exclude_segment): New data types.
36871         (struct exclude): Rewrite.
36872         (fnmatch_pattern_has_wildcards): New function.
36873         (new_exclude_segment, free_exclude_segment): New functions.
36874         (excluded_file_pattern_p, excluded_file_name_p): New functions.
36875         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
36876         * lib/exclude.h (is_fnmatch_pattern): New prototype.
36877         * modules/exclude: Depend on hash and mbuiter.
36878
36879         * modules/exclude-tests: New file.
36880         * tests/test-exclude.c: New file.
36881         * tests/test-exclude1.sh: New file.
36882         * tests/test-exclude2.sh: New file.
36883         * tests/test-exclude3.sh: New file.
36884         * tests/test-exclude4.sh: New file.
36885         * tests/test-exclude5.sh: New file.
36886         * tests/test-exclude6.sh: New file.
36887         * tests/test-exclude7.sh: New file.
36888
36889 2009-08-12  Bruno Haible  <bruno@clisp.org>
36890
36891         Ensure that getopt() gets declared by <unistd.h>.
36892         * lib/unistd.in.h: Conditionally include getopt.h.
36893         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
36894         Set GNULIB_UNISTD_H_GETOPT.
36895         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
36896         GNULIB_UNISTD_H_GETOPT.
36897         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
36898
36899 2009-08-12  Bruno Haible  <bruno@clisp.org>
36900
36901         Clarify logic.
36902         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
36903         gl_replace_getopt instead of GETOPT_H.
36904
36905 2009-08-12  Bruno Haible  <bruno@clisp.org>
36906
36907         * m4/getopt.m4: Add comments.
36908
36909 2009-08-12  Bruno Haible  <bruno@clisp.org>
36910
36911         Disable multithread support by default on Cygwin 1.5.x.
36912         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
36913         set gl_use_threads=no if not specified otherwise.
36914
36915 2009-08-11  Bruno Haible  <bruno@clisp.org>
36916
36917         Avoid compilation error on NetBSD 5.0.
36918         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
36919         * tests/test-stdio.c: Likewise.
36920         * tests/test-stdlib.c: Likewise.
36921         * tests/test-string.c: Likewise.
36922         * tests/test-unistd.c: Likewise.
36923         Reported by Greg Troxel <gdt@ir.bbn.com>
36924         at <https://savannah.gnu.org/support/?106973>.
36925
36926 2009-08-11  Bruno Haible  <bruno@clisp.org>
36927
36928         * modules/dup2-tests (Depends-on): Remove close.
36929
36930         Undo 2009-07-19 commit.
36931         * modules/acl-tests (Depends-on): Remove close.
36932         * modules/binary-io-tests (Depends-on): Likewise.
36933         * modules/closein-tests (Depends-on): Likewise.
36934         * modules/flock-tests (Depends-on): Likewise.
36935         * modules/fsync-tests (Depends-on): Likewise.
36936         * modules/lseek-tests (Depends-on): Likewise.
36937         * modules/pipe-tests (Depends-on): Likewise.
36938         * modules/posix_spawn-tests (Depends-on): Likewise.
36939         * modules/posix_spawnp-tests (Depends-on): Likewise.
36940         * modules/stat-time-tests (Depends-on): Likewise.
36941         * modules/yesno-tests (Depends-on): Likewise.
36942
36943 2009-08-10  Bruno Haible  <bruno@clisp.org>
36944
36945         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
36946
36947 2009-08-10  Bruno Haible  <bruno@clisp.org>
36948
36949         Fix a gcc warning.
36950         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
36951
36952 2009-08-10  Bruno Haible  <bruno@clisp.org>
36953
36954         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
36955         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
36956         not only the first time.
36957         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
36958         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
36959         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
36960         is 1, not only the the first time.
36961
36962 2009-08-10  Bruno Haible  <bruno@clisp.org>
36963
36964         Make it possible to use module 'gethostname' without module 'close'.
36965         * lib/unistd.in.h (close): Evoke a link error only if
36966         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
36967         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
36968         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
36969         * modules/unistd (Makefile.am): Substitute
36970         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
36971         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
36972         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
36973         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
36974         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
36975         * modules/sys_ioctl (Makefile.am): Substitute
36976         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
36977         * modules/socket (configure.ac): On native Windows, set
36978         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
36979         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
36980         Reported by Sam Steingold <sds@gnu.org>.
36981
36982 2009-08-10  Bruno Haible  <bruno@clisp.org>
36983
36984         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
36985         * modules/ioctl (configure.ac): Likewise.
36986
36987 2009-08-10  Bruno Haible  <bruno@clisp.org>
36988
36989         Avoid collision between gnulib wrapper and libintl wrapper.
36990         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
36991         already defined in intl/printf.c.
36992         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
36993         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
36994
36995 2009-08-09  Bruno Haible  <bruno@clisp.org>
36996
36997         Make <sys/select.h> really self-contained, also on Solaris 10.
36998         * lib/sys_select.in.h: Include <string.h>.
36999         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
37000         Solaris 10 problem.
37001         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
37002         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
37003         Reported by Jim Meyering.
37004
37005 2009-08-09  Bruno Haible  <bruno@clisp.org>
37006
37007         Avoid warnings from 'aclocal' that are due to a use of macro name
37008         AM_XGETTEXT_OPTION that is not defined in automake.
37009         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
37010         automake.
37011         * modules/error (configure.ac): Likewise.
37012         * modules/propername (configure.ac): Likewise.
37013         * modules/vasprintf (configure.ac): Likewise.
37014         * modules/verror (configure.ac): Likewise.
37015         * modules/xprintf (configure.ac): Likewise.
37016         * modules/xvasprintf (configure.ac): Likewise.
37017
37018 2009-08-08  Bruno Haible  <bruno@clisp.org>
37019
37020         Avoid compilation error in C++ mode.
37021         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
37022         Reported by Sam Steingold <sds@gnu.org>.
37023
37024 2009-08-08  Bruno Haible  <bruno@clisp.org>
37025
37026         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
37027         for the various Unix platforms.
37028         * doc/posix-headers/limits.texi: Update platforms list regarding
37029         HOST_NAME_MAX.
37030         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37031
37032 2009-08-07  Jim Meyering  <meyering@redhat.com>
37033
37034         selinux-at: fix typo in a comment
37035         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
37036         Spotted by Paolo Bonzini.
37037
37038         selinux-at: remove redundant m4 code, add documentation
37039         * modules/selinux-at (configure.ac): Remove redundant code.
37040         LIB_SELINUX is already set via the dependent module, selinux-h.
37041         (Include): Add quotes around selinux-at.h.
37042         * lib/selinux-at.h: Add documentation.
37043         Reported by Bruno Haible in
37044         http://marc.info/?l=gnulib-bug&m=124958988300749
37045
37046 2009-08-07  Bruno Haible  <bruno@clisp.org>
37047
37048         Avoid link error on MacOS X 10.3 and 10.4.
37049         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
37050         on non-ELF systems.
37051         * lib/argp-pv.c (argp_program_version): Likewise.
37052         Reported by Simon Josefsson.
37053
37054 2009-08-07  Simon Josefsson  <simon@josefsson.org>
37055
37056         * tests/test-version-etc.sh: Use $EXEEXT.
37057
37058 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
37059
37060         update-copyright: update documentation to point to maint.mk
37061         * build-aux/update-copyright: Here.
37062
37063 2009-08-06  Jim Meyering  <meyering@redhat.com>
37064
37065         maint.mk: support update-copyright-local
37066         * top/maint.mk (update-copyright-local): Define place-holder.
37067         (update-copyright): Depend on $(update-copyright-local).
37068
37069 2009-08-06  Jim Meyering  <meyering@redhat.com>
37070
37071         selinux-at: new module
37072         Initially written for coreutils, this module will soon be
37073         used by findutils, too.
37074         * MODULES.html.sh [Misc]: Add selinux-at.
37075         * lib/selinux-at.h: New file, from coreutils.
37076         * lib/selinux-at.c: Likewise.
37077         * modules/selinux-at: Likewise.
37078         (License): Change from LGPL to GPL, since it depends
37079         on the GPL'd openat module.
37080
37081         doc: update README
37082         * README: Remove references to cogito.
37083         Remove cvs-repo-updating instructions from 2007.
37084         Don't imply that CVS is better if you have limited disk space.
37085
37086 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37087
37088         update-copyright: support C-style comments
37089         * build-aux/update-copyright: Implement and document.
37090         * tests/test-update-copyright.sh: Test.
37091
37092 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37093
37094         update-copyright: support omitted "(C)"
37095         * build-aux/update-copyright: Implement and document.  Also,
37096         allow variable whitespace before "(C)".
37097         * tests/test-update-copyright.sh: Test.
37098
37099 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37100
37101         update-copyright: don't trip on non-FSF copyright statements
37102         * build-aux/update-copyright: Fix so that the first correctly
37103         formatted FSF copyright statement is recognized no matter what
37104         appears before it.  Update documentation.
37105         * tests/test-update-copyright.sh: Test that.
37106
37107 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37108
37109         update-copyright: clean up code a little
37110         * build-aux/update-copyright: Append "_re" to the name of any
37111         variable holding a regular expression.
37112         Replace "old" and "new" with "stmt" in variable names.
37113         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
37114         handled correctly.
37115         Format code more consistently.
37116
37117 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37118
37119         update-copyright-tests: improve portability
37120         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
37121         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
37122
37123 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
37124
37125         update-copyright: support @copyright{} and &copy;
37126         * build-aux/update-copyright: Implement and document.
37127         * tests/test-update-copyright.sh: Test.
37128
37129 2009-08-04  Jim Meyering  <meyering@redhat.com>
37130
37131         update-copyright-tests: correctly test EOL=\r\n handling
37132         * tests/test-update-copyright.sh: Put \r at the end of some lines
37133         for the dos-eol tests.  Based on a patch by Joel E. Denny.
37134
37135         maint.mk: make update-copyright exclusion list more configurable
37136         * top/maint.mk (update-copyright): Default to excluding COPYING,
37137         but allow an override, in case someone does want to update that file.
37138
37139         maint.mk: don't update copyright date in COPYING
37140         * top/maint.mk (update-copyright): Exclude COPYING.
37141
37142         maint.mk: add a copyright-updating rule
37143         * top/maint.mk (update-copyright): New rule.
37144         Derived from coreutils/Makefile.am.
37145
37146         update-copyright: rename some variables
37147         * build-aux/update-copyright: Rename a few variables for clarity.
37148         Tweak syntax.  List Joel E. Denny as coauthor.
37149
37150 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
37151
37152         update-copyright: fix bug for 2-digit last year and add tests
37153         * build-aux/update-copyright: Fix bug.
37154         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
37155         specified.
37156         * modules/update-copyright-tests: New
37157         * tests/test-update-copyright.sh: New.
37158
37159 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
37160
37161         update-copyright: handle leading tabs in line prefix
37162         * build-aux/update-copyright: Count leading tabs as 8 spaces
37163         when computing margin.  This helps with the formatting of
37164         ChangeLogs, for example.
37165         Fix documentation a little.
37166
37167 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
37168
37169         update-copyright: support EOL=\r\n
37170         * build-aux/update-copyright: Implement that.
37171
37172 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
37173
37174         update-copyright: automatically format copyright statements
37175         * build-aux/update-copyright: Implement that.
37176         Also, be a little more predictable and safer by always failing
37177         when the full copyright format is not perfectly recognized as an
37178         unbroken whole.  Discussed at
37179         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
37180         Rewrite documentation.
37181
37182 2009-08-03  Bruno Haible  <bruno@clisp.org>
37183
37184         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
37185
37186 2009-08-02  Bruno Haible  <bruno@clisp.org>
37187
37188         Tests for module 'uname'.
37189         * modules/uname-tests: New file.
37190         * tests/test-uname.c: New file.
37191
37192         New module 'uname'.
37193         * lib/uname.c: New file.
37194         * m4/uname.m4: New file.
37195         * modules/uname: New file.
37196         * doc/posix-functions/uname.texi: Mention the new module.
37197
37198 2009-08-02  Bruno Haible  <bruno@clisp.org>
37199
37200         Tests for module 'sys_utsname'.
37201         * modules/sys_utsname-tests: New file.
37202         * tests/test-sys_utsname.c: New file.
37203
37204         New module 'sys_utsname'.
37205         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
37206         * m4/sys_utsname_h.m4: New file.
37207         * modules/sys_utsname: New file.
37208         * doc/posix-headers/sys_utsname.texi: Mention the new module.
37209
37210 2009-08-02  Bruno Haible  <bruno@clisp.org>
37211
37212         Implicitly initialize the sockets library.
37213         * lib/gethostname.c: Include sockets.h.
37214         (rpl_gethostname): Invoke gl_sockets_startup.
37215         * lib/socket.c: Include sockets.h.
37216         (rpl_socket): Invoke gl_sockets_startup.
37217         * modules/gethostname (Depends-on): Add sockets.
37218         * modules/socket (Depends-on): Likewise.
37219         * tests/test-poll.c: Don't include sockets.h.
37220         (main): Don't invoke gl_sockets_startup.
37221         * tests/test-select.c: Don't include sockets.h.
37222         (main): Don't invoke gl_sockets_startup.
37223
37224 2009-08-02  Bruno Haible  <bruno@clisp.org>
37225
37226         Allow multiple calls to gl_sockets_startup.
37227         * lib/sockets.c (initialized_sockets_version): New variable.
37228         (gl_sockets_startup): Do nothing if already called for this or a higher
37229         version.
37230         (gl_sockets_cleanup): Reset initialized_sockets_version.
37231
37232 2009-08-03  Simon Josefsson  <simon@josefsson.org>
37233
37234         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
37235         different project/version.
37236
37237 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
37238             Bruno Haible  <bruno@clisp.org>
37239
37240         Tests for module 'pipe-filter-gi'.
37241         * modules/pipe-filter-gi-tests: New file.
37242         * tests/test-pipe-filter-gi1.sh: New file.
37243         * tests/test-pipe-filter-gi1.c: New file.
37244         * tests/test-pipe-filter-gi2.sh: New file.
37245         * tests/test-pipe-filter-gi2-main.c: New file.
37246         * tests/test-pipe-filter-gi2-child.c: New file.
37247
37248         New module 'pipe-filter-gi'.
37249         * lib/pipe-filter-gi.c: New file.
37250         * modules/pipe-filter-gi: New file.
37251
37252 2009-08-02  Bruno Haible  <bruno@clisp.org>
37253             Paolo Bonzini  <bonzini@gnu.org>
37254
37255         Tests for module 'pipe-filter-ii'.
37256         * modules/pipe-filter-ii-tests: New file.
37257         * tests/test-pipe-filter-ii1.sh: New file.
37258         * tests/test-pipe-filter-ii1.c: New file.
37259         * tests/test-pipe-filter-ii2.sh: New file.
37260         * tests/test-pipe-filter-ii2-main.c: New file.
37261         * tests/test-pipe-filter-ii2-child.c: New file.
37262
37263         New module 'pipe-filter-ii'.
37264         * lib/pipe-filter.h: New file.
37265         * lib/pipe-filter-ii.c: New file.
37266         * lib/pipe-filter-aux.h: New file.
37267         * modules/pipe-filter-ii: New file.
37268
37269 2009-08-02  Simon Josefsson  <simon@josefsson.org>
37270
37271         * lib/gc-libgcrypt.c: Change copyright to FSF.
37272         * lib/gc-gnulib.c: Likewise.
37273
37274 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
37275
37276         * lib/gethostname.c: Include limits.h.
37277
37278 2009-08-02  Simon Josefsson  <simon@josefsson.org>
37279             Bruno Haible  <bruno@clisp.org>
37280
37281         Ensure HOST_NAME_MAX as part of the gethostname module.
37282         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
37283         define also HOST_NAME_MAX.
37284         * tests/test-gethostname.c: Include <limits.h>.
37285         (main): Check also HOST_NAME_MAX.
37286         * doc/posix-headers/limits.texi: Document the mingw problem.
37287
37288 2009-08-02  Bruno Haible  <bruno@clisp.org>
37289
37290         * lib/gethostname.c (gethostname): Fix handling of large len argument.
37291         Add comments.
37292
37293 2009-03-31  Simon Josefsson  <simon@josefsson.org>
37294
37295         * lib/gethostname.c: Add Windows wrapper.
37296         * m4/gethostname.m4: Look for gethostname in -lws2_32.
37297         * modules/gethostname: Depend on sys_socket & errno, for also
37298         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
37299         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
37300
37301 2009-07-31  Jim Meyering  <meyering@redhat.com>
37302
37303         getloadavg: fix symbol name in comment
37304         * lib/getloadavg.c: Correct a typo I introduced when adding
37305         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
37306         Matt Kraai spotted the problem.
37307
37308 2009-07-29  Matt Kraai  <mkraai@beckman.com>
37309
37310         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
37311         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
37312         code also if ! defined N_NAME_POINTER.
37313         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
37314         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
37315         but the n_name member is a 12-byte array.
37316
37317 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
37318
37319         update-copyright: generalize comment handling
37320         * build-aux/update-copyright: Handle copyright statements
37321         within more comment styles.
37322         Document usage.
37323         Report any file with an external copyright holder or parse failure.
37324
37325 2009-07-29  Jim Meyering  <meyering@redhat.com>
37326
37327         mktime: correct setting of REPLACE_MKTIME
37328         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
37329
37330         update-copyright: new module
37331         * modules/update-copyright: New file.
37332         * build-aux/update-copyright: New file.
37333         * MODULES.html.sh (maint+release support): Add update-copyright.
37334
37335 2009-07-27  Bruno Haible  <bruno@clisp.org>
37336
37337         Fix compilation error when <ctime> is used and mktime is replaced.
37338         * lib/time.in.h (mktime): New declaration.
37339         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
37340         REPLACE_MKTIME instead of defining mktime in config.h.
37341         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
37342         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
37343         Reported by Ross McFarland <rwmcfa1@neces.com>.
37344
37345 2009-07-27  Bruno Haible  <bruno@clisp.org>
37346
37347         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
37348         Reported by Matt Kraai <mkraai@beckman.com>.
37349
37350 2009-07-25  Jim Meyering  <meyering@redhat.com>
37351
37352         maint.mk: avoid warnings about missing files
37353         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
37354         diagnostic when .prev-version does not exist.
37355         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
37356         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
37357         nonexistent cfg.mk.
37358         Suggestions from Simon Josefsson.
37359
37360 2009-07-25  Bruno Haible  <bruno@clisp.org>
37361
37362         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
37363         defined as macros. Needed on QNX 6.4.1.
37364         Reported by Matt Kraai <mkraai@beckman.com>.
37365
37366 2009-07-23  Jim Meyering  <meyering@redhat.com>
37367
37368         maint.mk: invoke "make dist" with a working value of XZ_OPT
37369         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
37370
37371 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
37372
37373         Make fseeko.c compile on QNX.
37374         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
37375
37376 2009-07-22  Peter Simons  <simons@cryp.to>
37377
37378         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
37379         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
37380         * lib/md4.h: Likewise.
37381         * lib/md5.h: Likewise.
37382         * lib/sha1.h: Likewise.
37383         * lib/sha256.h: Likewise.
37384         * lib/sha512.h: Likewise.
37385
37386         tests-sha1: don't assign literal string to 'char *' variable
37387         * tests/test-sha1.c (main): Declare locals with "const" to match
37388         attributes of the right hand side.
37389
37390 2009-07-21  Eric Blake  <ebb9@byu.net>
37391
37392         dup2: fix more mingw problems
37393         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
37394         fd to itself.
37395         * doc/posix-functions/dup2.texi (dup2): Document the bug.
37396         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
37397         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
37398         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
37399         care of mingw bugs.
37400
37401 2009-07-21  Jim Meyering  <meyering@redhat.com>
37402
37403         vc-list-files: avoid failure when /bin/sh is dash
37404         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
37405         On some Debian based systems, /bin/sh is a symlink to dash, and running
37406         this command would omit the "/" following each 'tests' prefix:
37407           dash -x build-aux/vc-list-files -C . tests
37408         That is because bash and dash work differently:
37409           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
37410           bash ok
37411           dash odd
37412
37413 2009-07-21  Eric Blake  <ebb9@byu.net>
37414
37415         dup2-tests: test previous patch
37416         * modules/dup2-tests: New file.
37417         * tests/test-dup2.c: Likewise.
37418         * tests/test-open.c (main): Avoid unspecified behavior.
37419         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
37420         test.
37421
37422         dup2: work around mingw and cygwin 1.5 bug
37423         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
37424         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
37425         * modules/unistd (Makefile.am): Substitute it.
37426         * lib/unistd.in.h (dup2): Declare the replacement.
37427         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
37428         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
37429         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
37430         * modules/execute (Depends-on): Add dup2.
37431         * modules/fseterr (Depends-on): Likewise.
37432         * modules/pipe (Depends-on): Likewise.
37433         * modules/posix_spawn-internal (Depends-on): Likewise.
37434
37435 2009-07-21  Bruno Haible  <bruno@clisp.org>
37436
37437         * modules/.gitattributes: New file.
37438
37439 2009-07-20  Bruno Haible  <bruno@clisp.org>
37440
37441         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
37442         (main): Use it.
37443
37444 2009-07-20  Eric Blake  <ebb9@byu.net>
37445
37446         test-pipe: make a bit more robust.
37447         * tests/test-pipe.c (myerr): Allow error messages regardless of
37448         what we do to stderr.
37449         (test_pipe): Rearrange to avoid deadlock.
37450         (child_main): Try a larger read, to ensure we avoided deadlock.
37451         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
37452         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
37453         if misused.
37454
37455 2009-07-19  Jim Meyering  <meyering@redhat.com>
37456
37457         fts: avoid false-positive cycle-detection
37458         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
37459         for each new command line argument.
37460
37461 2009-07-19  Bruno Haible  <bruno@clisp.org>
37462
37463         Fix build error on mingw with the modules sys_select and unistd.
37464         * modules/acl-tests (Depends-on): Add close.
37465         * modules/binary-io-tests (Depends-on): Likewise.
37466         * modules/closein-tests (Depends-on): Likewise.
37467         * modules/flock-tests (Depends-on): Likewise.
37468         * modules/fsync-tests (Depends-on): Likewise.
37469         * modules/lseek-tests (Depends-on): Likewise.
37470         * modules/pipe-tests (Depends-on): Likewise.
37471         * modules/posix_spawn-tests (Depends-on): Likewise.
37472         * modules/posix_spawnp-tests (Depends-on): Likewise.
37473         * modules/stat-time-tests (Depends-on): Likewise.
37474         * modules/yesno-tests (Depends-on): Likewise.
37475
37476 2009-07-19  Bruno Haible  <bruno@clisp.org>
37477
37478         Unify conditionals.
37479         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
37480         macros, not at the compiler macros.
37481         * lib/pipe.c: Likewise.
37482         * lib/execute.c: Likewise.
37483         * lib/spawni.c: Likewise.
37484
37485 2009-07-19  Bruno Haible  <bruno@clisp.org>
37486
37487         Fix handling of closed stdin/stdout/stderr on mingw.
37488         * lib/w32spawn.h: Include unistd.h.
37489         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
37490         file descriptor with O_NOINHERIT flag.
37491         (fd_safer_noinherit): New function, based on fd-safer.c.
37492         (dup_safer_noinherit): New function, based on dup-safer.c.
37493         (undup_safer_noinherit): New function.
37494         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
37495         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
37496         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
37497         instead of fd_safer.
37498         * tests/test-pipe.c: Include <windows.h>.
37499         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
37500         result.
37501
37502         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
37503         from main.
37504         (test_pipe): Pass an extra argument for disambiguation.
37505         (main): Invoke parent_main or child_main.
37506
37507         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
37508         consistently.
37509
37510 2009-07-18  Eric Blake  <ebb9@byu.net>
37511
37512         test-pipe: fix mingw build
37513         * tests/test-pipe.c (main): Avoid fcntl on mingw.
37514
37515 2009-07-18  Bruno Haible  <bruno@clisp.org>
37516
37517         * modules/pipe-tests (Makefile.am): Fix typo.
37518
37519 2009-07-18  Eric Blake  <ebb9@byu.net>
37520
37521         error: fix mingw build
37522         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
37523         Reported by Bruno Haible.
37524
37525         error: avoid undefined use of stdout
37526         * lib/error.c (error, error_at_line): Check that fd 1 is open
37527         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
37528         is handling faults and the close_stdout module wants to report the
37529         detection of closed stdout as an error.
37530
37531 2009-07-17  Eric Blake  <ebb9@byu.net>
37532
37533         pipe: be robust in face of closed fds
37534         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
37535         should cause child to misbehave.
37536         * modules/pipe-tests: New module.
37537         * tests/test-pipe.c: New file.
37538         * tests/test-pipe.sh: New file.
37539         Reported by Akim Demaille.
37540
37541 2009-07-14  Bruno Haible  <bruno@clisp.org>
37542
37543         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
37544         Reported by anonymous kc.
37545
37546 2009-07-07  Jim Meyering  <meyering@redhat.com>
37547
37548         maint.mk: don't look for translatable strings in *.m4 or *.mk
37549         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
37550         when searching for translatable strings.
37551
37552 2009-07-05  Jim Meyering  <meyering@redhat.com>
37553
37554         remove superfluous parentheses in STREQ definition
37555         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
37556         * lib/getugroups.c (STREQ): Likewise.
37557         * lib/fnmatch.c (STREQ): Likewise.
37558         Spotted by Bruno Haible.
37559
37560 2009-07-04  Jim Meyering  <meyering@redhat.com>
37561
37562         argv-iter: new module
37563         * MODULES.html.sh: Add argv-iter.
37564         * lib/argv-iter.c, lib/argv-iter.h: New files.
37565         * modules/argv-iter: New file.
37566         * modules/argv-iter-tests: New file.
37567         * tests/test-argv-iter.c: Test it.
37568
37569 2009-07-04  Bruno Haible  <bruno@clisp.org>
37570
37571         Fix assertion.
37572         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
37573         contains more exact copies of a given entry than file2, leave the extra
37574         copies unpaired rather than aborting.
37575         Reported by Eric Blake.
37576
37577 2009-07-02  Bruno Haible  <bruno@clisp.org>
37578
37579         Speedup git-merge-changelog for git cherry-pick.
37580         * lib/git-merge-changelog.c (struct entries_mapping): New type.
37581         (entries_mapping_get): New function, extracted from compute_mapping.
37582         (entries_mapping_reverse_get): New function.
37583         (compute_mapping): Add a 'full' argument. Return the result in a
37584         'struct entries_mapping'.
37585         (main): Update. Access the mappings through entries_mapping_get.
37586         Reported by Eric Blake.
37587
37588 2009-07-02  Bruno Haible  <bruno@clisp.org>
37589
37590         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
37591         best_i.
37592
37593 2009-07-02  Bruno Haible  <bruno@clisp.org>
37594
37595         Speed up approximate search for matching ChangeLog entries.
37596         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
37597         argument. Call fstrcmp_bounded instead of fstrcmp.
37598         (compute_mapping, try_split_merged_entry, main): Update callers.
37599
37600 2009-07-02  Bruno Haible  <bruno@clisp.org>
37601
37602         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
37603
37604 2009-06-30  Bruno Haible  <bruno@clisp.org>
37605
37606         Reduce the number of uc_is_cased calls.
37607         * lib/unicase.h (casing_suffix_context_t): Add
37608         'first_char_except_ignorable' field.
37609         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
37610         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
37611         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
37612         Update initializer.
37613         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
37614         case-ignorable characters.
37615         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
37616         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
37617         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
37618         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
37619         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
37620
37621 2009-06-30  Bruno Haible  <bruno@clisp.org>
37622
37623         Tests for module 'unicase/ignorable'.
37624         * modules/unicase/ignorable-tests: New file.
37625         * tests/unicase/test-ignorable.c: New file, generated by
37626         gen-uni-tables.
37627
37628         Tests for module 'unicase/cased'.
37629         * modules/unicase/cased-tests: New file.
37630         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
37631         * tests/unicase/test-predicate-part1.h: New file, derived from
37632         tests/unictype/test-predicate-part1.h.
37633         * tests/unicase/test-predicate-part2.h: New file, same as
37634         tests/unictype/test-predicate-part2.h.
37635
37636         Fix evaluation of "Before C" condition of FINAL_SIGMA.
37637         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
37638         (output_casing_properties): New function.
37639         (main): Call it.
37640         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
37641         * lib/unicase/cased.c: Include unictype/bitmap.h.
37642         (uc_is_cased): Define through a bitmap lookup.
37643         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
37644         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
37645         (uc_is_case_ignorable): Define through a bitmap lookup.
37646         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
37647         lib/unictype/bitmap.h.
37648         (Depends-on): Add inline. Clean up.
37649         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
37650         lib/unictype/bitmap.h.
37651         (Depends-on): Add inline. Clean up.
37652         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
37653         recognition.
37654         * tests/unicase/test-u16-tolower.c (main): Likewise.
37655         * tests/unicase/test-u32-tolower.c (main): Likewise.
37656
37657 2009-06-30  Bruno Haible  <bruno@clisp.org>
37658
37659         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
37660         * lib/unicase/u16-casemap.c: Likewise.
37661         * lib/unicase/u32-casemap.c: Likewise.
37662
37663 2009-06-29  Bruno Haible  <bruno@clisp.org>
37664
37665         Define u32_casefold as a wrapper around u32_ct_casefold.
37666         * lib/unicase/u32-casefold.c: Update.
37667         * modules/unicase/u32-casefold (Depends-on): Add
37668         unicase/u32-ct-casefold, unicase/empty-prefix-context,
37669         unicase/empty-suffix-context. Clean up.
37670
37671         Define u16_casefold as a wrapper around u16_ct_casefold.
37672         * lib/unicase/u16-casefold.c: Update.
37673         * modules/unicase/u16-casefold (Depends-on): Add
37674         unicase/u16-ct-casefold, unicase/empty-prefix-context,
37675         unicase/empty-suffix-context. Clean up.
37676
37677         Define u8_casefold as a wrapper around u8_ct_casefold.
37678         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
37679         * lib/unicase/u8-casefold.c: Update.
37680         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
37681         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
37682
37683         Define u32_totitle as a wrapper around u32_ct_totitle.
37684         * lib/unicase/u32-totitle.c: Update.
37685         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
37686         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
37687
37688         Define u16_totitle as a wrapper around u16_ct_totitle.
37689         * lib/unicase/u16-totitle.c: Update.
37690         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
37691         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
37692
37693         Define u8_totitle as a wrapper around u8_ct_totitle.
37694         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
37695         functions.
37696         (FUNC): Delegate to U_CT_TOTITLE.
37697         * lib/unicase/u8-totitle.c: Update.
37698         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
37699         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
37700
37701         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
37702         invocation.
37703         * modules/unicase/u32-tolower (Depends-on): Add
37704         unicase/empty-prefix-context, unicase/empty-suffix-context.
37705
37706         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
37707         invocation.
37708         * modules/unicase/u16-tolower (Depends-on): Add
37709         unicase/empty-prefix-context, unicase/empty-suffix-context.
37710
37711         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
37712         * modules/unicase/u8-tolower (Depends-on): Add
37713         unicase/empty-prefix-context, unicase/empty-suffix-context.
37714
37715         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
37716         invocation.
37717         * modules/unicase/u32-toupper (Depends-on): Add
37718         unicase/empty-prefix-context, unicase/empty-suffix-context.
37719
37720         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
37721         invocation.
37722         * modules/unicase/u16-toupper (Depends-on): Add
37723         unicase/empty-prefix-context, unicase/empty-suffix-context.
37724
37725         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
37726         * modules/unicase/u8-toupper (Depends-on): Add
37727         unicase/empty-prefix-context, unicase/empty-suffix-context.
37728
37729         New module 'unicase/u32-ct-casefold'.
37730         * lib/unicase/u32-ct-casefold.c: New file.
37731         * modules/unicase/u32-ct-casefold: New file.
37732
37733         New module 'unicase/u16-ct-casefold'.
37734         * lib/unicase/u16-ct-casefold.c: New file.
37735         * modules/unicase/u16-ct-casefold: New file.
37736
37737         New module 'unicase/u8-ct-casefold'.
37738         * lib/unicase/u8-ct-casefold.c: New file.
37739         * lib/unicase/u-ct-casefold.h: New file, derived from
37740         lib/unicase/u-casefold.h.
37741         * modules/unicase/u8-ct-casefold: New file.
37742
37743         New module 'unicase/u32-ct-totitle'.
37744         * lib/unicase/u32-ct-totitle.c: New file.
37745         * modules/unicase/u32-ct-totitle: New file.
37746
37747         New module 'unicase/u16-ct-totitle'.
37748         * lib/unicase/u16-ct-totitle.c: New file.
37749         * modules/unicase/u16-ct-totitle: New file.
37750
37751         New module 'unicase/u8-ct-totitle'.
37752         * lib/unicase/u8-ct-totitle.c: New file.
37753         * lib/unicase/u-ct-totitle.h: New file, derived from
37754         lib/unicase/u-totitle.h.
37755         * modules/unicase/u8-ct-totitle: New file.
37756
37757         New module 'unicase/u32-ct-tolower'.
37758         * lib/unicase/u32-ct-tolower.c: New file.
37759         * modules/unicase/u32-ct-tolower: New file.
37760
37761         New module 'unicase/u16-ct-tolower'.
37762         * lib/unicase/u16-ct-tolower.c: New file.
37763         * modules/unicase/u16-ct-tolower: New file.
37764
37765         New module 'unicase/u8-ct-tolower'.
37766         * lib/unicase/u8-ct-tolower.c: New file.
37767         * modules/unicase/u8-ct-tolower: New file.
37768
37769         New module 'unicase/u32-ct-toupper'.
37770         * lib/unicase/u32-ct-toupper.c: New file.
37771         * modules/unicase/u32-ct-toupper: New file.
37772
37773         New module 'unicase/u16-ct-toupper'.
37774         * lib/unicase/u16-ct-toupper.c: New file.
37775         * modules/unicase/u16-ct-toupper: New file.
37776
37777         New module 'unicase/u8-ct-toupper'.
37778         * lib/unicase/u8-ct-toupper.c: New file.
37779         * modules/unicase/u8-ct-toupper: New file.
37780
37781         Add context arguments to u*_casemap functions.
37782         * lib/unicase/unicasemap.h: Include unicase.h.
37783         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
37784         suffix_context arguments.
37785         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
37786         functions.
37787         (FUNC): Add prefix_context and suffix_context arguments. Use
37788         uc_is_cased and uc_is_case_ignorable.
37789         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
37790         * lib/unicase/u16-casemap.c: Likewise.
37791         * lib/unicase/u32-casemap.c: Likewise.
37792         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
37793         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
37794         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
37795         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
37796         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
37797         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
37798
37799         New module 'unicase/u32-suffix-context'.
37800         * lib/unicase/u32-suffix-context.c: New file.
37801         * modules/unicase/u32-suffix-context: New file.
37802
37803         New module 'unicase/u16-suffix-context'.
37804         * lib/unicase/u16-suffix-context.c: New file.
37805         * modules/unicase/u16-suffix-context: New file.
37806
37807         New module 'unicase/u8-suffix-context'.
37808         * lib/unicase/u8-suffix-context.c: New file.
37809         * lib/unicase/u-suffix-context.h: New file.
37810         * modules/unicase/u8-suffix-context: New file.
37811
37812         New module 'unicase/empty-suffix-context'.
37813         * lib/unicase/empty-suffix-context.c: New file.
37814         * modules/unicase/empty-suffix-context: New file.
37815
37816         New module 'unicase/u32-prefix-context'.
37817         * lib/unicase/u32-prefix-context.c: New file.
37818         * modules/unicase/u32-prefix-context: New file.
37819
37820         New module 'unicase/u16-prefix-context'.
37821         * lib/unicase/u16-prefix-context.c: New file.
37822         * modules/unicase/u16-prefix-context: New file.
37823
37824         New module 'unicase/u8-prefix-context'.
37825         * lib/unicase/u8-prefix-context.c: New file.
37826         * lib/unicase/u-prefix-context.h: New file.
37827         * lib/unicase/context.h: New file.
37828         * modules/unicase/u8-prefix-context: New file.
37829
37830         New module 'unicase/empty-prefix-context'.
37831         * lib/unicase/empty-prefix-context.c: New file.
37832         * modules/unicase/empty-prefix-context: New file.
37833
37834         New module 'unicase/ignorable'.
37835         * lib/unicase/ignorable.c: New file.
37836         * modules/unicase/ignorable: New file.
37837
37838         New module 'unicase/cased'.
37839         * lib/unicase/caseprop.h: New file.
37840         * lib/unicase/cased.c: New file.
37841         * modules/unicase/cased: New file.
37842
37843         New functions for case mapping of substrings.
37844         * lib/unicase.h (casing_prefix_context_t): New type.
37845         (unicase_empty_prefix_context): New variable.
37846         (u8_casing_prefix_context, u16_casing_prefix_context,
37847         u32_casing_prefix_context, u8_casing_prefixes_context,
37848         u16_casing_prefixes_context, u32_casing_prefixes_context): New
37849         declarations.
37850         (casing_suffix_context_t): New type.
37851         (unicase_empty_suffix_context): New variable.
37852         (u8_casing_suffix_context, u16_casing_suffix_context,
37853         u32_casing_suffix_context, u8_casing_suffixes_context,
37854         u16_casing_suffixes_context, u32_casing_suffixes_context,
37855         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
37856         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
37857         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
37858         declarations.
37859
37860 2009-06-28  Jim Meyering  <meyering@redhat.com>
37861
37862         boostrap: indent only with spaces
37863         * build-aux/bootstrap: Indent only with spaces, never TABs.
37864
37865         bootstrap: split long lines
37866         * build-aux/bootstrap: Keep line length < 80.
37867
37868         bootstrap: sync from coreutils
37869         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
37870         just as autoreconf does.  Verify a list of prerequisite
37871         package-name,version-number pairs if defined in bootstrap.conf.
37872         Refer to README-prereq, if prerequisites are not satisfied.
37873
37874 2009-06-27  Eric Blake  <ebb9@byu.net>
37875
37876         tests: add test for bogus NULL definition
37877         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
37878         * tests/test-stdlib.c: Likewise.
37879         * tests/test-string.c: Likewise.
37880         * tests/test-locale.c: Likewise.
37881         * tests/test-unistd.c: Likewise.
37882         * modules/stdio-tests (Depends-on): Add verify.
37883         * modules/stdlib-tests (Depends-on): Likewise.
37884         * modules/string-tests (Depends-on): Likewise.
37885         * modules/locale-tests (Depends-on): Likewise.
37886         * modules/unistd-tests (Depends-on): Likewise.
37887
37888 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
37889
37890         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
37891         self-explaining comment.
37892         * m4/selinux-selinux-h: Update serial.
37893         (gl_LIBSELINUX): New macro, adding a warning for missing development
37894         packages to code extracted from...
37895         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
37896         Add warning for missing development packages here, too.
37897
37898 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
37899
37900         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
37901
37902 2009-06-25  Eric Blake  <ebb9@byu.net>
37903
37904         version-etc: fix regression
37905         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
37906         gcc.
37907         (version_etc): Use it, to catch bugs with trailing NULL.
37908         * lib/version-etc.c (version_etc_arn): Delete unused argument.
37909         (version_etc_va): Fix logic bug.
37910         * modules/version-etc-tests: Add test.
37911         * tests/test-version-etc.c: New file.
37912         * tests/test-version-etc.sh: Likewise.
37913
37914 2009-06-25  Sam Steingold  <sds@gnu.org>
37915
37916         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
37917         mbtowc declaration.
37918
37919 2009-06-25  Eric Blake  <ebb9@byu.net>
37920
37921         fpurge: migrate into <stdio.h>
37922         * lib/fpurge.h: Delete...
37923         * lib/stdio.in.h (fpurge): ...and declare here, instead.
37924         * lib/fpurge.c (fpurge): Change declaring header.
37925         * modules/fpurge (Files): Drop deleted file.
37926         (Depends-on): Add stdio.
37927         (configure.ac): Set witness.
37928         * modules/stdio (Makefile.am): Support fpurge macros.
37929         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
37930         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
37931         * lib/fflush.c: Update client.
37932         * tests/test-fpurge.c: Likewise.
37933         * NEWS: Mention the change.
37934
37935 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
37936
37937         * lib/argp-version-etc.c (program_authors): Add const
37938         qualifier.
37939         * lib/version-etc.c: Fix typos in the comments.
37940         * modules/argp-version-etc: Depends on version-etc.
37941
37942 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
37943
37944         argp-version-etc: new module.
37945
37946         * lib/argp-version-etc.c: New file.
37947         * lib/argp-version-etc.h: New file.
37948         * modules/argp-version-etc: New file.
37949         * modules/argp-version-etc-tests: New file.
37950         * tests/test-argp-version-etc.c: New test.
37951         * tests/test-argp-version-etc-1.sh: New test.
37952
37953 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
37954
37955         Provide additional interfaces and documentation for version-etc
37956         module.
37957
37958         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
37959         interfaces.
37960         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
37961         prototypes.
37962
37963 2009-06-24  Bruno Haible  <bruno@clisp.org>
37964
37965         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
37966         HAVE_LIB${NAME} macro.
37967         Reported by Sam Steingold <sds@gnu.org>.
37968
37969 2009-06-23  Simon Josefsson  <simon@josefsson.org>
37970
37971         * modules/hash-tests (test_hash_LDADD): Link to libintl when
37972         needed.
37973
37974 2009-06-21  Bruno Haible  <bruno@clisp.org>
37975
37976         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
37977         work.
37978         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
37979         together with LIB${NAME}, LTLIB${NAME}.
37980         Reported by Sam Steingold <sds@gnu.org>.
37981
37982 2009-06-20  Jim Meyering  <meyering@redhat.com>
37983
37984         tests: make sc_require_test_exit_idiom more generic
37985         * top/maint.mk (Exit_witness_file): New overridable variable.
37986         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
37987         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
37988
37989 2009-06-19  Jim Meyering  <meyering@redhat.com>
37990
37991         hash: reverse order of src/dst parameters in an internal interface
37992         * lib/hash.c (transfer_entries): Reverse order of parameters to
37993         put DST before SRC.  Adjust callers.
37994
37995         tests: test-hash: avoid wholesale duplication
37996         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
37997         Instead, use a loop and add a single conditional.
37998
37999         tests: test-hash: allow seed selection via a command line argument
38000         * tests/test-hash.c (get_seed): New function.
38001         (main): Use it.
38002
38003 2009-06-19  Eric Blake  <ebb9@byu.net>
38004
38005         hash: avoid memory leak on allocation failure
38006         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
38007         failure.  Factor repeated algorithm...
38008         (transfer_entries): ...into new helper routine.
38009         (hash_delete): React to hash_rehash return value.
38010
38011         hash: reduce memory pressure in hash_rehash no-op case
38012         * lib/hash.c (next_prime): Avoid overflow.
38013         (hash_initialize): Factor bucket size computation...
38014         (compute_bucket_size): ...into new helper function.
38015         (hash_rehash): Use new function and open coding to reduce memory
38016         pressure, and avoid a memory leak in USE_OBSTACK code.
38017         Reported by Jim Meyering.
38018
38019 2009-06-18  Eric Blake  <ebb9@byu.net>
38020
38021         hash: make rotation more obvious
38022         * modules/hash (Depends-on): Add bitrotate and stdint.
38023         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
38024         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
38025         (SIZE_MAX): Rely on headers for definition.
38026         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
38027         (raw_hasher): Use rotr_sz.
38028         Suggested by Jim Meyering.
38029
38030         hash: fix memory leak in last patch
38031         * lib/hash.c (hash_rehash): Avoid memory leak.
38032
38033         hash: avoid no-op rehashing
38034         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
38035
38036         hash: provide default callback functions
38037         * lib/hash.c (raw_hasher, raw_comparator): New functions.
38038         (hash_initialize): Use them as defaults.
38039         * tests/test-hash.c (main): Test this.
38040
38041         hash: minor optimization
38042         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
38043         when possible.
38044         (hash_initialize): Document this promise.
38045         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
38046         * tests/test-hash.c (hash_compare_strings): Test this.
38047
38048 2009-06-18  Bruno Haible  <bruno@clisp.org>
38049
38050         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
38051         going to be replaced anyway.
38052
38053 2009-06-18  Bruno Haible  <bruno@clisp.org>
38054
38055         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
38056         in one place.
38057         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
38058         be replaced anyway.
38059
38060 2009-06-18  Eric Blake  <ebb9@byu.net>
38061
38062         hash: check for resize before insertion
38063         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
38064         threshold before insertion, so that a pathological hash_rehash
38065         that fills every bucket can still trigger another rehash.
38066
38067 2009-06-18  Jim Meyering  <meyering@redhat.com>
38068
38069         hash-tests: add a loop around the small tests
38070         * tests/test-hash.c (main): Repeat small tests with selected
38071         small initial table sizes.
38072
38073 2009-06-17  Eric Blake  <ebb9@byu.net>
38074
38075         hash: minor cleanups
38076         * lib/hash.h (hash_entry): Make opaque, by moving...
38077         * lib/hash.c (hash_entry): ...here.
38078         (hash_insert): Clarify restrictions on what can be inserted.
38079         (hash_get_next): Clarify when it is safe to remove an element
38080         during traversal.
38081         (check_tuning): Skip verification when tuning is known safe.
38082         (hash_initialize): Clarify restrictions on tuning.
38083
38084 2009-06-17  Jim Meyering  <jim@meyering.net>
38085         and Eric Blake  <ebb9@byu.net>
38086
38087         hash-tests: new module
38088         * modules/hash-tests: New file.
38089         * tests/test-hash.c: New file.
38090
38091 2009-06-17  Eric Blake  <ebb9@byu.net>
38092
38093         strstr-simple: document new module
38094         * MODULES.html.sh: Document new module.
38095
38096         strstr, strcasestr: replace on platforms with broken memchr
38097         * modules/strstr: Split into...
38098         * modules/strstr-simple: ...new module that does not care about
38099         performance, but does care about glibc bug.
38100         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
38101         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
38102         if platform memchr is broken, per Debian bug 521737.
38103         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
38104         memchr.
38105         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
38106         * doc/posix-functions/strstr.texi (strstr): Document the fix.
38107         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
38108         * modules/mountlist (Depends-on): Add strstr-simple.
38109         * modules/gen-uni-tables (Depends-on): Likewise.
38110         * modules/argz (Depends-on): Add strstr.
38111
38112 2009-06-17  Bruno Haible  <bruno@clisp.org>
38113
38114         * modules/posix_spawn-internal (Depends-on): Add errno.
38115
38116 2009-06-17  Bruno Haible  <bruno@clisp.org>
38117
38118         Define missing ESTALE on Interix 3.5.
38119         * lib/errno.in.h (ESTALE): Assign a value if missing.
38120         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
38121         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
38122         missing.
38123         * doc/posix-headers/errno.texi: Mention the Interix bug.
38124         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
38125
38126 2009-06-15  Eric Blake  <ebb9@byu.net>
38127
38128         memchr, memchr2: add valgrind exception
38129         * lib/memchr.valgrind: New file.
38130         * lib/memchr2.valgrind: New file.
38131         * modules/memchr (Files): Distribute valgrind file.
38132         * modules/memchr2 (Files): Likewise.
38133
38134         docs: memchr is no longer obsolete
38135         * MODULES.html.sh: Move memchr from obsolete to string.h section.
38136         * lib/string.in.h (memchr): Simplify logic.
38137
38138 2009-06-14  Jim Meyering  <meyering@redhat.com>
38139
38140         link-follow: fix the "checking..." message to not mention trailing slash
38141         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
38142         never considered trailing slashes.
38143
38144 2009-06-14  Bruno Haible  <bruno@clisp.org>
38145
38146         * m4/memchr.m4: Mention also the bug on IA-64.
38147         * doc/posix-functions/memchr.texi: Likewise.
38148
38149 2009-06-12  Eric Blake  <ebb9@byu.net>
38150
38151         memchr: detect broken x86_64 and alpha implementations
38152         * modules/memchr-tests (Depends-on): Move mmap detection...
38153         * modules/memchr (Depends-on): ...here.
38154         (configure.ac): Set indicator.
38155         * lib/string.in.h (memchr): Declare replacement.
38156         * modules/string (Makefile.am): Trigger replacement.
38157         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
38158         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
38159         bugs.
38160         * doc/posix-functions/memchr.texi (memchr): Document the bug.
38161         * modules/getpagesize (License): Relax license.
38162
38163 2009-06-11  Bruno Haible  <bruno@clisp.org>
38164
38165         * lib/idpriv.h: Add more references.
38166
38167 2009-06-08  Bruno Haible  <bruno@clisp.org>
38168
38169         Tests for module 'idpriv-droptemp'.
38170         * modules/idpriv-droptemp-tests: New file.
38171         * tests/test-idpriv-droptemp.sh: New file.
38172         * tests/test-idpriv-droptemp.su.sh: New file.
38173         * tests/test-idpriv-droptemp.c: New file.
38174
38175         New module 'idpriv-droptemp'.
38176         * lib/idpriv-droptemp.c: New file.
38177         * modules/idpriv-droptemp: New file.
38178
38179 2009-06-08  Bruno Haible  <bruno@clisp.org>
38180
38181         Tests for module 'idpriv-drop'.
38182         * modules/idpriv-drop-tests: New file.
38183         * tests/test-idpriv-drop.sh: New file.
38184         * tests/test-idpriv-drop.su.sh: New file.
38185         * tests/test-idpriv-drop.c: New file.
38186
38187         New module 'idpriv-drop'.
38188         * lib/idpriv.h: New file.
38189         * lib-idpriv-drop.c: New file.
38190         * m4/idpriv.m4: New file.
38191         * modules/idpriv-drop: New file.
38192
38193 2009-06-08  Bruno Haible  <bruno@clisp.org>
38194
38195         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
38196         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
38197         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
38198         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
38199         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
38200         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
38201         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
38202
38203 2009-06-08  Eric Blake  <ebb9@byu.net>
38204
38205         test-strstr: use memory fence, when possible
38206         * tests/test-strstr.c (main): Use memory fence, in order to be
38207         more likely to trigger Debian bug 521737.
38208         * modules/strstr-tests (Files): Pull in additional files.
38209
38210         memchr: no longer obsolete, for wider field testing
38211         * modules/memchr (Status, Notice): Delete, this module is no
38212         longer obsolete.
38213         * modules/vasnprintf (Depends-on): Add memchr.
38214
38215 2009-06-07  Jim Meyering  <meyering@redhat.com>
38216
38217         hash: declare some functions with the warn_unused_result attribute
38218         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
38219
38220 2009-06-07  Bruno Haible  <bruno@clisp.org>
38221
38222         * tests/test-alignof.c: Don't test int64_t if it does not exist.
38223         Reported by Eric Blake.
38224
38225 2009-06-06  Eric Blake  <ebb9@byu.net>
38226
38227         test-alignof: fix typo with long double
38228         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
38229         compiler error.
38230
38231 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
38232
38233         Escape non-texinfo { and }s.
38234         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
38235         markup error.
38236
38237 2009-06-04  Jim Meyering  <meyering@redhat.com>
38238
38239         gitlog-to-changelog: don't infloop on an empty commit log
38240         * build-aux/gitlog-to-changelog: Warn about an empty log message.
38241         Reported by Boris Petersen <transacid@centerim.org>.
38242
38243 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
38244
38245         version-etc: extend for packagers
38246         Add three new configure options, intended for packagers:
38247           --with-packager="packager name"
38248           --with-packager-version="packager-specific version"
38249           --with-packager-bug-reports="packager bug reporting"
38250         An example with coreutils:
38251           $ ./configure \
38252             --with-packager=Gentoo \
38253             --with-packager-bug-report=http://bugs.gentoo.org/ \
38254             --with-packager-version="patchset 1.6"
38255           $ ./src/ls --version | head -n2
38256           ls (GNU coreutils) 7.1-dirty
38257           Packaged by Gentoo (patchset 1.6)
38258         Note that the bug reporting info via --help doesn't show up because
38259         coreutils uses its own custom emit_bug_reporting_address() implementation
38260         in src/system.h.  If it didn't, it'd look like:
38261           $ ./src/ls --help | tail -n4
38262           Report bugs to <bug-coreutils@gnu.org>.
38263           Report Gentoo bugs to <http://bugs.gentoo.org/>.
38264           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
38265           General help using GNU software: <http://www.gnu.org/gethelp/>.
38266         * lib/version-etc.c: Print new information, if provided.
38267         * m4/version-etc.m4: New file.
38268         * modules/version-etc (Files): Add m4/version-etc.m4.
38269         (configure.ac): Add gl_VERSION_ETC.
38270
38271 2009-05-31  Bruno Haible  <bruno@clisp.org>
38272
38273         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
38274         and 'int64_t'.
38275         * modules/alignof-tests (Dependencies): Add stdint.
38276         Reported by Eric Blake.
38277
38278 2009-05-31  Bruno Haible  <bruno@clisp.org>
38279
38280         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
38281         restriction due to compiler bugs.
38282         Reported by Eric Blake.
38283
38284 2009-05-31  Simon Josefsson  <simon@josefsson.org>
38285             Bruno Haible  <bruno@clisp.org>
38286
38287         Fix test-alignof failure.
38288         * lib/alignof.h (alignof_slot): New macro.
38289         (alignof_type): New macro, with the same semantics as the previous
38290         'alignof'.
38291         (alignof): Alias to alignof_slot.
38292         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
38293         check that the results are usable as constant expressions.
38294
38295 2009-05-31  Bruno Haible  <bruno@clisp.org>
38296
38297         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
38298         * tests/test-memchr.c (main): Check that memchr does not read past the
38299         first occurrence of the byte.
38300         * tests/test-strstr.c (main): Update comment.
38301         Suggested by Eric Blake.
38302
38303 2009-05-30  Bruno Haible  <bruno@clisp.org>
38304
38305         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
38306         detail how to use dumpbin.
38307         Reported by David Byron <dbyron@dbyron.com>.
38308
38309 2009-06-02  Simon Josefsson  <simon@josefsson.org>
38310
38311         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
38312
38313 2009-06-02  Simon Josefsson  <simon@josefsson.org>
38314
38315         * m4/manywarnings.m4: Add GCC 4.4 warnings.
38316
38317 2009-05-28  Bruno Haible  <bruno@clisp.org>
38318
38319         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
38320         build-aux/ files.
38321
38322 2009-05-28  Simon Josefsson  <simon@josefsson.org>
38323
38324         * gnulib-tool (func_import): Transform license on build-aux/ files too.
38325
38326 2009-05-27  Simon Josefsson  <simon@josefsson.org>
38327
38328         * gnulib-tool (sed_transform_main_lib_file)
38329         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
38330         regexps.
38331
38332 2009-05-26  Simon Josefsson  <simon@josefsson.org>
38333
38334         * tests/test-strstr.c: Add another self-test.
38335         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
38336         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
38337
38338 2009-05-23  Bruno Haible  <bruno@clisp.org>
38339
38340         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
38341         change.
38342
38343 2009-05-21  Bruno Haible  <bruno@clisp.org>
38344
38345         Simplify use of mode_t varargs.
38346         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
38347         uses 'mode_t' or 'int'.
38348         * lib/openat.c (openat): Likewise.
38349         * lib/open-safer.c (open_safer): Likewise.
38350         * m4/mode_t.m4: New file.
38351         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
38352         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
38353         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
38354         * modules/open (Files): Add m4/mode_t.m4.
38355         * modules/openat (Files): Likewise.
38356         * modules/fcntl-safer (Files): Likewise.
38357         Suggested by Eric Blake.
38358
38359 2009-05-21  Pádraig Brady  <P@draigbrady.com>
38360
38361         * doc/glibc-functions/fallocate.texi: New file.
38362         * doc/gnulib.texi: Include it.
38363
38364 2009-05-21  Eric Blake  <ebb9@byu.net>
38365             Bruno Haible  <bruno@clisp.org>
38366
38367         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
38368         invocations.
38369         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
38370
38371 2009-05-21  Eric Blake  <ebb9@byu.net>
38372             Bruno Haible  <bruno@clisp.org>
38373
38374         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
38375         include_next. Fix of 2008-11-20 commit.
38376         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
38377         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
38378         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
38379         NEXT_MATH_H.
38380         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
38381         instead of NEXT_MATH_H.
38382
38383 2009-05-21  Bruno Haible  <bruno@clisp.org>
38384
38385         Avoid redefinition warnings for SIZE_MAX.
38386         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
38387         Reported by Simon Josefsson.
38388
38389 2009-05-21  Bruno Haible  <bruno@clisp.org>
38390
38391         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
38392         AC_CACHE_VAL.
38393
38394 2009-05-20  Bruno Haible  <bruno@clisp.org>
38395
38396         Make zeroptr.h work on mingw.
38397         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
38398         mprotect.
38399         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
38400         * modules/memchr2-tests (configure.ac): Likewise.
38401         * modules/memcmp-tests (configure.ac): Likewise.
38402         * modules/memmem-tests (configure.ac): Likewise.
38403         * modules/memrchr-tests (configure.ac): Likewise.
38404         Reported by Simon Josefsson.
38405
38406 2009-05-20  Simon Josefsson  <simon@josefsson.org>
38407
38408         * tests/test-glob.c: Include string.h for strcmp prototype.
38409
38410 2009-05-20  Simon Josefsson  <simon@josefsson.org>
38411
38412         * modules/getdelim (Depends-on): Add explicit stdint, although it
38413         was implicitly already pulled in via realloc-posix.
38414         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
38415
38416 2009-05-20  Simon Josefsson  <simon@josefsson.org>
38417
38418         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
38419         G. Christensen" <tgc@jupiterrise.com>.
38420         * m4/sys_socket_h.m4: Check for sa_family_t.
38421         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
38422         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
38423         * tests/test-sys_socket.c: Check that sa_family_t works.
38424
38425 2009-05-18  Eric Blake  <ebb9@byu.net>
38426
38427         maint.mk: allow gnulib_dir in VPATH build
38428         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
38429
38430 2009-05-15  Jim Meyering  <meyering@redhat.com>
38431
38432         maint.mk: Give gnulib_dir a default definition.
38433         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
38434         Thus, most packages no longer need to specify this variable in cfg.mk
38435
38436 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
38437
38438         rename.m4: fix typos that would make non-mingw cross-configure fail
38439         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
38440
38441 2009-05-13  Eric Blake  <ebb9@byu.net>
38442
38443         mmap-anon: avoid out-of-order autoconf expansion
38444         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
38445         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
38446         * modules/memchr-tests (Depends-on): Add extensions.
38447         * modules/memchr2-tests (Depends-on): Add extensions.
38448         * modules/memcmp-tests (Depends-on): Add extensions.
38449         * modules/memmem-tests (Depends-on): Add extensions.
38450         * modules/memrchr-tests (Depends-on): Add extensions.
38451
38452 2009-05-13  Bruno Haible  <bruno@clisp.org>
38453
38454         Make some tests ISO C 99 compliant.
38455         * tests/zerosize-ptr.h: New file.
38456         * tests/test-memchr.c: Include zerosize-ptr.h.
38457         (main): Use a zero-size object pointer instead of NULL.
38458         * tests/test-memchr2.c: Include zerosize-ptr.h.
38459         (main): Use a zero-size object pointer instead of NULL.
38460         * tests/test-memcmp.c: Include zerosize-ptr.h.
38461         (main): Use a zero-size object pointer instead of NULL.
38462         * tests/test-memmem.c: Include zerosize-ptr.h.
38463         (main): Use a zero-size object pointer instead of NULL.
38464         * tests/test-memrchr.c: Include zerosize-ptr.h.
38465         (main): Use a zero-size object pointer instead of NULL.
38466         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
38467         m4/mmap-anon.m4.
38468         (Depends-on): Add getpagesize.
38469         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38470         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
38471         m4/mmap-anon.m4.
38472         (Depends-on): Add getpagesize.
38473         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38474         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
38475         m4/mmap-anon.m4.
38476         (Depends-on): Add getpagesize.
38477         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38478         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
38479         m4/mmap-anon.m4.
38480         (Depends-on): Add getpagesize.
38481         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38482         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
38483         m4/mmap-anon.m4.
38484         (Depends-on): Add getpagesize.
38485         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38486
38487 2009-05-12  Bruno Haible  <bruno@clisp.org>
38488
38489         Tests for module 'alignof'.
38490         * modules/alignof-tests: New file.
38491         * tests/test-alignof.c: New file.
38492
38493 2009-05-12  Bruno Haible  <bruno@clisp.org>
38494
38495         Fix alignof macro.
38496         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
38497         vendor compilers that are always correct.
38498
38499 2009-05-12  Bruno Haible  <bruno@clisp.org>
38500
38501         Make the MAP_ANONYMOUS detection work on HP-UX 11.
38502         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
38503         not whether its fully works.
38504
38505 2009-05-12  Bruno Haible  <bruno@clisp.org>
38506
38507         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
38508
38509 2009-05-12  Jim Meyering  <meyering@redhat.com>
38510
38511         * top/maint.mk: Adjust backslash alignment.
38512
38513 2009-05-11  Simon Josefsson  <simon@josefsson.org>
38514
38515         * top/maint.mk: Make $(srcdir)/build-aux configurable.
38516
38517 2009-05-11  Eric Blake  <ebb9@byu.net>
38518
38519         argp: avoid undefined behavior
38520         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
38521         macros.
38522
38523 2009-05-08  Simon Josefsson  <simon@josefsson.org>
38524
38525         * tests/test-vc-list-files-git.sh: Do git config of user.email and
38526         user.name to prevent git commit from complaining.
38527
38528 2009-05-10  Bruno Haible  <bruno@clisp.org>
38529
38530         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
38531         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
38532         it rewrites every file name only once.
38533         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
38534
38535 2009-05-08  Bruno Haible  <bruno@clisp.org>
38536
38537         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
38538         instead of 'max'.
38539
38540 2009-05-08  Simon Josefsson  <simon@josefsson.org>
38541
38542         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
38543         sockaddr_storage test.
38544
38545 2009-05-07  Simon Josefsson  <simon@josefsson.org>
38546
38547         * modules/sys_socket (Makefile.am): Substitute
38548         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
38549         * m4/sys_socket_h.m4: Check for sockaddr_storage.
38550         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
38551         * tests/test-sys_socket.c: Check sockaddr_storage.
38552
38553 2009-05-08  Bruno Haible  <bruno@clisp.org>
38554
38555         New module 'alignof'.
38556         * lib/alignof.h: New file.
38557         * modules/alignof: New file.
38558
38559 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
38560             Bruno Haible  <bruno@clisp.org>
38561
38562         Fix test-file-has-acl on FreeBSD.
38563         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
38564         mask is implicitly added.
38565         * tests/test-file-has-acl.c: Include <signal.h>.
38566         (main): Terminate the test after 5 seconds.
38567         * modules/acl-tests (configure.ac): Check for alarm function.
38568
38569 2009-05-04  Bruno Haible  <bruno@clisp.org>
38570
38571         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
38572         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
38573         * modules/errno (configure.ac): Drop AC_REQUIRE.
38574         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
38575         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
38576
38577 2009-05-04  Simon Josefsson  <simon@josefsson.org>
38578
38579         * modules/glob-tests: New module.
38580         * tests/test-glob.c: Add.
38581
38582 2009-05-04  Simon Josefsson  <simon@josefsson.org>
38583
38584         * modules/fnmatch-tests: New module.
38585         * tests/test-fnmatch.c: Add.
38586
38587 2009-05-04  Eric Blake  <ebb9@byu.net>
38588
38589         maint: make the new no-submodule-changes rule VPATH-safe
38590         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
38591
38592 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
38593             Bruno Haible  <bruno@clisp.org>
38594
38595         acl: Fix infinite loop on FreeBSD.
38596         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
38597         of return value from acl_get_entry.
38598         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
38599         Likewise.
38600
38601 2009-05-03  Bruno Haible  <bruno@clisp.org>
38602
38603         * lib/acl-internal.h (acl_entries): Clarify return value.
38604         * lib/acl_entries.c (acl_entries): Likewise.
38605
38606 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
38607
38608         Bug fix in acl module.
38609         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
38610
38611 2009-05-03  Bruno Haible  <bruno@clisp.org>
38612
38613         Create gperf-generated file in the source dir, not in the build dir.
38614         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
38615         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
38616         * modules/unicase/locale-language (unicase/locale-languages.h):
38617         Likewise.
38618         * modules/unicase/special-casing (unicase/special-casing-table.h):
38619         Likewise.
38620         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
38621         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
38622         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
38623         Reported by Ralf Wildenhues.
38624
38625 2009-05-03  Bruno Haible  <bruno@clisp.org>
38626
38627         * modules/fnmatch (Description, configure.ac): Taken from
38628         fnmatch-posix.
38629         * modules/fnmatch-posix: Turn into a symbolic reference to the
38630         'fnmatch' module, and deprecate.
38631         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
38632
38633 2009-05-03  Bruno Haible  <bruno@clisp.org>
38634
38635         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
38636         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
38637         Reported by Ralf Wildenhues.
38638
38639 2009-05-04  Simon Josefsson  <simon@josefsson.org>
38640
38641         * m4/fnmatch.m4: Fix fnmatch re-define.
38642
38643 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
38644
38645         priv-set: new module and tests; adapt write-any-file
38646         * lib/priv-set.c: New file.
38647         * lib/priv-set.h: New file.
38648         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
38649         * lib/write-any-file.c: Simplify by using priv-set module.
38650         * m4/priv-set.m4: New file.
38651         * modules/priv-set: New file.
38652         * modules/unlinkdir: Add dependency on priv-set module.
38653         * modules/write-any-file: Likewise.
38654
38655         Tests for module 'priv-set'.
38656         * modules/priv-set-tests: New file.
38657         * tests/test-priv-set.c: New file.
38658
38659 2009-05-03  Jim Meyering  <meyering@redhat.com>
38660             Bruno Haible  <bruno@clisp.org>
38661
38662         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
38663         use the converted UTF-8 variant of the name instead.
38664
38665 2009-05-03  Jim Meyering  <meyering@redhat.com>
38666
38667         tests: tighten some getdate tests
38668         * tests/test-getdate.c (main): Tighten tests: require equality,
38669         not just greater than.  Set TZ envvar to UTC0.
38670
38671 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
38672
38673         getdate: correctly interpret "next monday" when run on a Monday
38674         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
38675         that e.g., "next tues" (when run on a tuesday) results in a date
38676         that is one week in the future, and not today's date.
38677         I.e., add a week when the wday is the same as the current one.
38678         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
38679         and earlier by Martin Bernreuther and Jan Minář.
38680         * tests/test-getdate.c (main): Check that "next DAY" is always in
38681         the future and that "last DAY" is always in the past.
38682
38683 2009-05-02  Jim Meyering  <meyering@redhat.com>
38684
38685         build: ensure that a release build fails when a submodule is unclean
38686         * top/maint.mk (no-submodule-changes): New rule.
38687         (alpha beta major): Depend on it.
38688
38689 2009-05-02  Bruno Haible  <bruno@clisp.org>
38690
38691         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
38692         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
38693         shell variable gl_fnmatch_required to detect which variant is
38694         requested.
38695         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
38696         gl_FUNC_FNMATCH_POSIX.
38697         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
38698         exclude fnmatch-posix.
38699
38700 2009-05-02  Bruno Haible  <bruno@clisp.org>
38701
38702         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
38703         * modules/mbsrtowcs (License): Change to LGPLv2+.
38704         * modules/strnlen1 (License): Likewise.
38705         Reported by Simon Josefsson.
38706
38707 2009-05-02  Bruno Haible  <bruno@clisp.org>
38708
38709         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
38710         "cross".
38711         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
38712         gnulib-tool was called with option --source-base=lib.
38713
38714 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38715
38716         Use automake *-local hooks without commands, for extensibility.
38717         * modules/localcharset (Makefile.am): Rename install-exec-local
38718         rule to install-exec-localcharset, and make it a prerequisite of
38719         install-exec-local.  Likewise, rename the uninstall-local rule to
38720         uninstall-localcharset, and make it a prerequisite of the former.
38721
38722 2009-05-01  Bruno Haible  <bruno@clisp.org>
38723
38724         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
38725         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
38726         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
38727         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
38728         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
38729         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
38730         m4/locale-zh.m4, m4/codeset.m4.
38731
38732         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
38733         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
38734         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
38735         m4/locale-zh.m4.
38736
38737         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
38738         REPLACE_WCRTOMB if mbstate_t must be replaced.
38739         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
38740         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
38741
38742 2009-05-01  Bruno Haible  <bruno@clisp.org>
38743
38744         Avoid compiler warnings when redefining macros defined by <libintl.h>.
38745         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
38746         dngettext, dcngettext, textdomain, bindtextdomain,
38747         bind_textdomain_codeset): Undefine before redefining.
38748
38749 2009-04-30  Bruno Haible  <bruno@clisp.org>
38750
38751         Fix bug introduced on 2009-04-25.
38752         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
38753         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
38754         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
38755         is defined.
38756         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
38757         is defined.
38758         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
38759         is defined.
38760         Reported by Elbert_Pol <elbert.pol@gmail.com>.
38761
38762 2009-04-28  Bruno Haible  <bruno@clisp.org>
38763
38764         Comment tweaks.
38765         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
38766         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
38767         * lib/unicase.h (u*_casexfrm): Likewise.
38768         Reported by Paolo Bonzini.
38769
38770 2009-04-28  Bruno Haible  <bruno@clisp.org>
38771
38772         Fix a compilation error.
38773         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
38774         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
38775         Reported by Jim Meyering.
38776
38777 2009-04-27  Bruno Haible  <bruno@clisp.org>
38778
38779         New module 'libunistring'.
38780         * modules/libunistring: New file.
38781         * m4/libunistring.m4: New file.
38782         * MODULES.html.sh (Unicode string functions): Add it.
38783
38784 2009-04-27  Eric Blake  <ebb9@byu.net>
38785
38786         maint.mk: allow package-specific header to provide <config.h>
38787         * top/maint.mk (sc_require_config_h): New variable.
38788         (sc_require_config_h, sc_require_config_h_first): Use it.
38789
38790 2009-04-27  Simon Josefsson  <simon@josefsson.org>
38791
38792         * top/maint.mk (sc_avoid_if_before_free): Except
38793         useless-if-before-free script.
38794
38795 2009-04-27  Eric Blake  <ebb9@byu.net>
38796
38797         maintainer-makefile: depend on all required helper scripts
38798         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
38799         useless-if-before-free.
38800         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
38801         version, rather than assuming gnulib checkout is available.
38802         Reported by Simen Josefsson.
38803
38804 2009-04-26  Bruno Haible  <bruno@clisp.org>
38805
38806         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
38807         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
38808         "../" or "..".
38809
38810 2009-04-26  Bruno Haible  <bruno@clisp.org>
38811
38812         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
38813         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
38814         AC_LIB_HAVE_LINKFLAGS.
38815
38816 2009-04-26  Bruno Haible  <bruno@clisp.org>
38817
38818         Simplify calling convention of u*_conv_from_encoding.
38819         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
38820         u32_conv_from_encoding): Expect a resultbuf argument and return the
38821         result directly as a pointer.
38822         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
38823         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
38824         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
38825         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
38826         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
38827         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
38828         Update.
38829         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
38830         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
38831         * lib/vasnprintf.c (VASNPRINTF): Update.
38832         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
38833         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
38834         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
38835         * NEWS: Mention the change.
38836
38837 2009-04-26  Bruno Haible  <bruno@clisp.org>
38838
38839         Simplify calling convention of u*_conv_to_encoding.
38840         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
38841         u32_conv_to_encoding): Expect a resultbuf argument and return the
38842         result directly as a pointer.
38843         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
38844         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
38845         freeing scaled_offsets if mem_iconveha failed.
38846         * lib/unicase/u-casexfrm.h (FUNC): Update.
38847         * lib/uninorm/u-normxfrm.h (FUNC): Update.
38848         * lib/vasnprintf.c (VASNPRINTF): Update.
38849         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
38850         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
38851         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
38852         * NEWS: Mention the change.
38853
38854 2009-04-26  Bruno Haible  <bruno@clisp.org>
38855
38856         Avoid test failures on AIX and OSF/1.
38857         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
38858         malloc(0).
38859         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
38860         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
38861         Likewise.
38862         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
38863         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
38864         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
38865         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
38866         * doc/posix-functions/malloc.texi: Document the portability problem
38867         related to malloc(0).
38868
38869 2009-04-26  Bruno Haible  <bruno@clisp.org>
38870
38871         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
38872         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
38873         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
38874
38875 2009-04-25  Bruno Haible  <bruno@clisp.org>
38876
38877         Avoid link error when creating a namespace clean library.
38878         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
38879         as macro with arguments if already defined as an alias.
38880         * lib/signbitf.c (gl_signbitf): Don't undefine.
38881         * lib/signbitd.c (gl_signbitd): Don't undefine.
38882         * lib/signbitl.c (gl_signbitl): Don't undefine.
38883
38884 2009-04-25  Jim Meyering  <meyering@redhat.com>
38885
38886         vc-list-files: fix another quoting bug
38887         * build-aux/vc-list-files: Avoid sed backslash expansion
38888         of pathological directory names.
38889
38890 2009-04-25  Eric Blake  <ebb9@byu.net>
38891
38892         vc-list-files: fix shell quoting error
38893         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
38894         timestamp.
38895
38896 2009-04-25  Jim Meyering  <meyering@redhat.com>
38897
38898         vc-list-files: restore lost functionality with subdir argument
38899         * build-aux/vc-list-files: When given a non-"." sub-directory
38900         argument, substitute the $dir/ prefix back onto each resulting name.
38901         Otherwise, coreutils' root_tests check would fail.
38902
38903 2009-04-24  Eric Blake  <ebb9@byu.net>
38904
38905         vc-list-files: ignore git symlinks
38906         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
38907         than ls-files, to ignore git symlinks.
38908
38909         maint.mk: import improvements from m4
38910         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
38911         (move_if_change): Delete unused macro.
38912         (news-date-check, vc-diff-check): Support VPATH builds.
38913         (announcement): Likewise.  Split --bootstrap-tools list...
38914         (boostrap-tools): ...into separate list, which can be overridden
38915         in cfg.mk.
38916         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
38917         requiring dependency on useless-if-before-free module.
38918         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
38919         Support VPATH builds.
38920
38921 2009-04-24  Jim Meyering  <meyering@redhat.com>
38922
38923         maint.mk: remove coreutils-specific rules and variables
38924         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
38925         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
38926         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
38927
38928         maint.mk: remove obsolete rule
38929         * top/maint.mk (rel-check): Remove rule.
38930         (WGET, WGETFLAGS): Remove now-unused variables.
38931
38932 2009-04-24  Simon Josefsson  <simon@josefsson.org>
38933
38934         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
38935         consistency.
38936
38937         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
38938         '$(PATH_SEPARATOR)' instead of ':'.
38939
38940 2009-04-24  Simon Josefsson  <simon@josefsson.org>
38941
38942         * lib/getopt1.c (main): Use 'const' for static array.
38943
38944 2009-04-24  Simon Josefsson  <simon@josefsson.org>
38945
38946         * top/maint.mk: Sync with coreutils.
38947         * NEWS: Explain incompatibilities.
38948
38949 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38950             Bruno Haible  <bruno@clisp.org>
38951
38952         Fix cross-compilation results.
38953         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
38954         statement, as third argument of AC_TRY_RUN.
38955         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
38956         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
38957         Likewise.
38958         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
38959         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
38960         Likewise.
38961         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
38962         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
38963         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
38964
38965 2009-04-20  Bruno Haible  <bruno@clisp.org>
38966
38967         Avoid test failure on mingw.
38968         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
38969
38970 2009-04-20  Bruno Haible  <bruno@clisp.org>
38971
38972         Avoid compilation error on mingw.
38973         * modules/localename-tests (Depends-on): Add locale.
38974
38975 2009-04-19  Bruno Haible  <bruno@clisp.org>
38976
38977         Support for building a shared library on Windows platforms.
38978         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
38979         (main): Test the presence of UNINORM_NFC here.
38980         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
38981         (main): Test the presence of UNINORM_NFD here.
38982         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
38983         (main): Test the presence of UNINORM_NFKC here.
38984         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
38985         (main): Test the presence of UNINORM_NFKD here.
38986
38987 2009-04-19  Bruno Haible  <bruno@clisp.org>
38988
38989         Avoid a compiler warning.
38990         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
38991         Change type of variable 'sequence'.
38992
38993 2009-04-19  Bruno Haible  <bruno@clisp.org>
38994
38995         * modules/configmake (Makefile.am): When the contents of configmake.h
38996         does not change, arrange to preserve its modification time.
38997
38998 2009-04-17  Simon Josefsson  <simon@josefsson.org>
38999
39000         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
39001         gettext domain.
39002
39003 2009-04-16  Jim Meyering  <meyering@redhat.com>
39004
39005         useless-if-before-free: improve conversion code
39006         * build-aux/useless-if-before-free: Adjust code-in-comment to match
39007         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
39008
39009 2009-04-14  Bruno Haible  <bruno@clisp.org>
39010
39011         * modules/fcntl (Depends-on): Add extensions.
39012         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
39013
39014 2009-04-12  Ben Pfaff  <blp@gnu.org>
39015
39016         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
39017         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
39018
39019 2009-03-20  Ben Pfaff  <blp@gnu.org>
39020
39021         Make rename replace existing destinations on Windows.
39022         * m4/rename.m4: Add test for Mingw.
39023         * lib/rename.c: Add rename replacement that uses MoveFileEx with
39024         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
39025         * doc/posix-functions/rename.texi: Document.
39026
39027 2009-04-10  Bruno Haible  <bruno@clisp.org>
39028
39029         New include file "iconveh.h".
39030         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
39031         * lib/striconveh.h: Include it.
39032         (enum iconv_ilseq_handler): Remove definition.
39033         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
39034         striconveh.h.
39035         * lib/striconveha.c: Include striconveh.h.
39036         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
39037         * modules/striconveh (Files): Add lib/iconveh.h.
39038         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
39039         lib/striconveh.h.
39040
39041 2009-04-10  Bruno Haible  <bruno@clisp.org>
39042
39043         * lib/uniconv.h: Update comment.
39044
39045 2009-04-10  Bruno Haible  <bruno@clisp.org>
39046
39047         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
39048         always.
39049         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
39050         * lib/unistr/u16-mbtouc-aux.c: Likewise.
39051         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
39052         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
39053         "unistring-notinline.h", so that the function gets defined always.
39054         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
39055         * lib/unistr/u8-uctomb.c: Likewise.
39056         * lib/unistr/u16-mbtouc.c: Likewise.
39057         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
39058         * lib/unistr/u16-uctomb.c: Likewise.
39059         * lib/unistr/u32-mbtouc.c: Likewise.
39060         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
39061         * lib/unistr/u32-uctomb.c: Likewise.
39062
39063 2009-04-10  Bruno Haible  <bruno@clisp.org>
39064
39065         Mark 'utime' obsolete.
39066         * modules/utime (Status, Notice): New sections.
39067         Suggested by Jim Meyering.
39068
39069         Fix cross-compile guess for utime test.
39070         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
39071         autoconf.
39072         * doc/posix-functions/utime.texi: Give more precisions.
39073         Reported by Jan <ipif@ymail.com>.
39074
39075 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
39076
39077         filevercmp: correct today's change
39078         * lib/filevercmp.c: Also handle coreutils' test inputs.
39079         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
39080
39081         Fix regression in 'filevercmp' module. Thanks Sven Joachim
39082         for reporting it.
39083         * lib/filevercmp.c: Special handle for "", "." and "..".
39084         * tests/test-filevercmp.c: Enlarge the set suite.
39085
39086 2009-04-07  Jim Meyering  <meyering@redhat.com>
39087
39088         useless-if-before-free: show how to remove braced useless free, too
39089         * build-aux/useless-if-before-free: still only in a comment, though.
39090
39091 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
39092
39093         maint.mk: import changes to syntax-check macros from coreutils
39094         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
39095         Use them in the relevant macros.
39096
39097 2009-04-06  Bruno Haible  <bruno@clisp.org>
39098
39099         Fix unportable use of bit-fields.
39100         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
39101         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
39102         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
39103
39104 2009-04-06  Bruno Haible  <bruno@clisp.org>
39105
39106         Avoid test failures on AIX and OSF/1.
39107         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
39108         that malloc(0) = NULL.
39109         * tests/unicase/test-u8-tolower.c (check): Likewise.
39110         * tests/unicase/test-u8-totitle.c (check): Likewise.
39111         * tests/unicase/test-u8-toupper.c (check): Likewise.
39112         * tests/unicase/test-u16-casefold.c (check): Likewise.
39113         * tests/unicase/test-u16-tolower.c (check): Likewise.
39114         * tests/unicase/test-u16-totitle.c (check): Likewise.
39115         * tests/unicase/test-u16-toupper.c (check): Likewise.
39116         * tests/unicase/test-u32-casefold.c (check): Likewise.
39117         * tests/unicase/test-u32-tolower.c (check): Likewise.
39118         * tests/unicase/test-u32-totitle.c (check): Likewise.
39119         * tests/unicase/test-u32-toupper.c (check): Likewise.
39120         * tests/uninorm/test-u8-nfc.c (check): Likewise.
39121         * tests/uninorm/test-u8-nfd.c (check): Likewise.
39122         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
39123         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
39124         * tests/uninorm/test-u16-nfc.c (check): Likewise.
39125         * tests/uninorm/test-u16-nfd.c (check): Likewise.
39126         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
39127         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
39128         * tests/uninorm/test-u32-nfc.c (check): Likewise.
39129         * tests/uninorm/test-u32-nfd.c (check): Likewise.
39130         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
39131         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
39132
39133 2009-04-05  Bruno Haible  <bruno@clisp.org>
39134
39135         Work around an autoconf limitation.
39136         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
39137         comment line if it would be longer than 3 KB.
39138
39139 2009-04-05  Bruno Haible  <bruno@clisp.org>
39140
39141         Avoid test failure with libiconv-1.13.
39142         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
39143         of the expected test results.
39144
39145 2009-04-05  Bruno Haible  <bruno@clisp.org>
39146
39147         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
39148         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
39149         that it should be installed.
39150
39151 2009-04-05  Bruno Haible  <bruno@clisp.org>
39152
39153         * gnulib-tool: New option --copy-file.
39154         (func_usage): Document it.
39155         (func_dest_tmpfilename): Moved out of func_import.
39156         (func_add_file, func_update_file): New functions, extracted from
39157         func_import.
39158         (func_import): Update.
39159
39160 2009-04-05  Karl Berry  <karl@gnu.org>
39161
39162         * README: prominently mention gnulib-tool.
39163         Rearrange sections so getting the code is near the top.
39164
39165 2009-04-05  Bruno Haible  <bruno@clisp.org>
39166
39167         * lib/unicase.h: Mention u*_cmp2.
39168         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
39169         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
39170         * lib/unicase/ulc-casecmp.c: Likewise.
39171         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
39172         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
39173         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
39174         unistr/u8-cmp.
39175         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
39176         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
39177         unistr/u16-cmp.
39178         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
39179         unistr/u32-cmp.
39180
39181         * lib/uninorm.h: Mention u*_cmp2.
39182         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
39183         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
39184         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
39185         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
39186         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
39187         unistr/u8-cmp.
39188         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
39189         unistr/u16-cmp.
39190         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
39191         unistr/u32-cmp.
39192
39193         New module 'unistr/u32-cmp2'.
39194         * lib/unistr/u32-cmp2.c: New file.
39195         * modules/unistr/u32-cmp2: New file.
39196
39197         New module 'unistr/u16-cmp2'.
39198         * lib/unistr/u16-cmp2.c: New file.
39199         * modules/unistr/u16-cmp2: New file.
39200
39201         New module 'unistr/u8-cmp2'.
39202         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
39203         * lib/unistr/u8-cmp2.c: New file.
39204         * lib/unistr/u-cmp2.h: New file.
39205         * modules/unistr/u8-cmp2: New file.
39206
39207 2009-04-05  Bruno Haible  <bruno@clisp.org>
39208
39209         * lib/unictype.h (uc_property_is_valid): New macro.
39210         * tests/unictype/test-pr_byname.c (main): Use it.
39211
39212         * lib/unistr.h: Doc fixes.
39213         * lib/uniconv.h: Doc fixes.
39214         * lib/unictype.h: Doc fixes.
39215
39216 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
39217
39218         Port coreutils 7.2 to Solaris 8.
39219
39220         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
39221         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
39222         for Solaris 8.  This is a bit of a hack, as it means it's the
39223         caller's responsibility to add -lnsl if needed, but most likely it
39224         won't be needed since only getaddrinfo uses this and getaddrinfo
39225         isn't needed on Solaris 8.
39226
39227         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
39228         problem to Solaris 8 encountered with coreutils 7.2, which
39229         resulted in a message "fnmatch.c:292: warning: passing argument 4
39230         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
39231         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
39232
39233 2009-04-03  Simon Josefsson  <simon@josefsson.org>
39234
39235         * m4/ld-version-script.m4: Add FIXME comment.
39236
39237 2009-04-02  Simon Josefsson  <simon@josefsson.org>
39238
39239         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
39240         SOVERSION variable.
39241
39242 2009-04-02  Bruno Haible  <bruno@clisp.org>
39243
39244         * Makefile (info, html, dvi, pdf): Combine the rules.
39245         Suggested by Jim Meyering.
39246
39247 2009-04-01  Bruno Haible  <bruno@clisp.org>
39248
39249         * Makefile (info, html, dvi, pdf): New targets.
39250         Reported by Reuben Thomas <rrt@sc3d.org>.
39251
39252 2009-04-01  Bruno Haible  <bruno@clisp.org>
39253
39254         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
39255         can be put into PATH.
39256         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
39257
39258 2009-04-01  Bruno Haible  <bruno@clisp.org>
39259
39260         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
39261
39262 2009-04-01  Bruno Haible  <bruno@clisp.org>
39263
39264         Rename module 'visibility'.
39265         * modules/lib-symbol-visibility: Renamed from modules/visibility.
39266         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
39267         * doc/gnulib.texi: Update.
39268         * MODULES.html.sh (Misc): Update.
39269         * NEWS: Mention the change.
39270
39271 2009-04-01  Simon Josefsson  <simon@josefsson.org>
39272
39273         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
39274         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
39275         Eric Blake <ebb9@byu.net> for review.
39276         * MODULES.html.sh: Add lib-msvc-compat.
39277         * doc/gnulib.texi: Link to new section.
39278         * m4/ld-output-def.m4: New file.
39279         * doc/ld-output-def.texi: New file.
39280
39281 2009-04-01  Simon Josefsson  <simon@josefsson.org>
39282
39283         Rename ld-version-script to lib-symbol-versions.  Suggested by
39284         Bruno Haible <bruno@clisp.org>.
39285         * modules/ld-version-script: Renamed to lib-symbol-versions.
39286         * doc/ld-version-script.texi: Fix module name.
39287         * MODULES.html.sh: Add lib-symbol-versions.
39288
39289 2009-03-31  Simon Josefsson  <simon@josefsson.org>
39290
39291         * modules/u64-tests: New file.
39292         * tests/test-u64.c: New file.
39293
39294 2009-03-04  Simon Josefsson  <simon@josefsson.org>
39295
39296         * MODULES.html.sh: Mention u64.
39297         * modules/u64: New module.
39298         * modules/crypto/sha512: Depend on u64 module instead of providing
39299         u64.h.
39300
39301 2009-03-27  Eric Blake  <ebb9@byu.net>
39302
39303         test-strerror: make debugging EAI_SYSTEM easier
39304         * modules/getaddrinfo-tests (Depends-on): Add strerror.
39305         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
39306         failure was EAI_SYSTEM.
39307
39308 2009-03-25  Bruno Haible  <bruno@clisp.org>
39309
39310         Fix a problem with --enable-relocatable on Solaris 7.
39311         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
39312         since 2008-02-24.
39313
39314 2009-03-25  Eric Blake  <ebb9@byu.net>
39315
39316         test-sockets: avoid gcc warning
39317         * tests/test-sockets.c (main): Silence compiler warning.
39318
39319 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
39320
39321         New modules nproc, pthread, contributed by Glen Lenker.
39322
39323         * MODULES.html.sh: Add pthread, nproc.
39324         * lib/nproc.c: New file.
39325         * lib/nproc.h: New file.
39326         * lib/pthread.in.h: New file.
39327         * m4/pthread.m4: New file.
39328         * modules/nproc: New file.
39329         * modules/pthread: New file.
39330
39331 2009-03-24  Simon Josefsson  <simon@josefsson.org>
39332
39333         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
39334         New variable.
39335
39336 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
39337
39338         filevercmp: handle simple~ and numbered.~3~ backup suffixes
39339         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
39340         * tests/test-filevercmp.c: Add tests for backup suffixes.
39341
39342 2009-03-24  Simon Josefsson  <simon@josefsson.org>
39343
39344         * modules/stdlib (Depends-on): Add stdint, needed when defining
39345         struct random_data on, for example, HP-UX 10.20.  Reported by
39346         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
39347
39348 2009-03-24  Simon Josefsson  <simon@josefsson.org>
39349
39350         * lib/readline.c (readline): Call fflush on stdout after printing
39351         prompt.
39352
39353 2009-03-20  Bruno Haible  <bruno@clisp.org>
39354
39355         Remove dependency from 'close' module to -lws2_32 on native Windows.
39356         * lib/close-hook.h: New file.
39357         * lib/close-hook.c: New file.
39358         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
39359         w32sock.h.
39360         (_gl_close_fd_maybe_socket): Remove function.
39361         (rpl_close): Invoke execute_all_close_hooks instead of
39362         _gl_close_fd_maybe_socket.
39363         * lib/sockets.c: Include close-hook.h, w32sock.h.
39364         (close_fd_maybe_socket): New function, essentially from lib/close.c.
39365         (close_sockets_hook): New variable.
39366         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
39367         (gl_sockets_cleanup): Unregister it.
39368         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
39369         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
39370         * modules/close-hook: New file.
39371         * modules/close (Files): Remove lib/w32sock.h.
39372         (Depends-on): Add close-hook.
39373         (Link): Remove section.
39374         * modules/sockets (Files): Add lib/w32sock.h.
39375         (Depends-on): Add close-hook.
39376         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
39377         invocation.
39378         * NEWS: Mention that LIB_CLOSE is gone.
39379
39380 2009-03-23  Eric Blake  <ebb9@byu.net>
39381
39382         signal-tests: test previous patch
39383         * tests/test-signal.c: New file.
39384         * modules/signal-tests: Likewise.
39385
39386         signal.h: always support 'volatile sig_atomic_t'
39387         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
39388         (gl_SIGNAL_H_DEFAULTS): Add a default.
39389         * modules/signal (Makefile.am): Substitute if needed.
39390         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
39391         users can blindly add volatile.
39392         * doc/posix-headers/signal.texi (signal.h): Document it.
39393         Reported by Matthew Woehlke.
39394
39395 2009-03-23  Jim Meyering  <meyering@redhat.com>
39396
39397         pathmax: PATH_MAX: use pathconf only when available
39398         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
39399         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
39400         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
39401         This avoids a link failure in a PSP cross-compilation environment
39402         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
39403
39404         * lib/vasnprintf.c (divide): Fix typo in comment.
39405
39406 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39407
39408         * gnulib-tool (func_filter_filelist): Fix comment.
39409
39410 2009-03-20  Bruno Haible  <bruno@clisp.org>
39411
39412         Make sockets.h self-contained.
39413         * lib/sockets.c: Include sockets.h first.
39414         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
39415
39416 2009-03-19  Eric Blake  <ebb9@byu.net>
39417
39418         doc: mention more functions added in cygwin 1.7.0
39419         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
39420         addition.
39421         * doc/posix-functions/log2f.texi: Likewise.
39422
39423 2009-03-19  Jim Meyering  <meyering@redhat.com>
39424
39425         fsusage: avoid syntax error due to statement-before-declaration
39426         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
39427         after all declarations.  Reported by Matthew Woehlke in
39428         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
39429
39430 2009-03-18  Eric Blake  <ebb9@byu.net>
39431
39432         build-aux/compile: sync from automake
39433         * build-aux/compile: New file, from automake.
39434         * config/srclist.txt: Mention build-aux/compile.
39435
39436 2009-03-17  Bruno Haible  <bruno@clisp.org>
39437
39438         * lib/git-merge-changelog.c: Fix typo in comment.
39439         Reported by Reuben Thomas <rrt@sc3d.org>.
39440
39441 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
39442
39443         * m4/regex.m4: update and improve help for
39444         --without-included-regex.
39445
39446 2009-03-17  Simon Josefsson  <simon@josefsson.org>
39447
39448         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
39449         failure on missing include files.
39450
39451 2009-03-17  Eric Blake  <ebb9@byu.net>
39452
39453         doc: mention more functions added in cygwin 1.7.0
39454         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
39455         addition.
39456         * doc/posix-functions/fwscanf.texi: Likewise.
39457         * doc/posix-functions/swprintf.texi: Likewise.
39458         * doc/posix-functions/swscanf.texi: Likewise.
39459         * doc/posix-functions/vfwprintf.texi: Likewise.
39460         * doc/posix-functions/vfwscanf.texi: Likewise.
39461         * doc/posix-functions/vswprintf.texi: Likewise.
39462         * doc/posix-functions/vswscanf.texi: Likewise.
39463         * doc/posix-functions/vwprintf.texi: Likewise.
39464         * doc/posix-functions/vwscanf.texi: Likewise.
39465         * doc/posix-functions/wcscasecmp.texi: Likewise.
39466         * doc/posix-functions/wcsdup.texi: Likewise.
39467         * doc/posix-functions/wcsftime.texi: Likewise.
39468         * doc/posix-functions/wcsncasecmp.texi: Likewise.
39469         * doc/posix-functions/wprintf.texi: Likewise.
39470         * doc/posix-functions/wscanf.texi: Likewise.
39471         * doc/glibc-functions/gethostbyname2.texi: Likewise.
39472
39473 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39474
39475         maint.mk: really add $(AM_MAKEFLAGS)
39476         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
39477         was inadvertently omitted in the last commit.
39478         Spotted by Bruno Haible.
39479
39480         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
39481         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
39482         $(AM_MAKEFLAGS)' rather than plain `make'.
39483
39484         gnulib-tool: execute $MAKE not make
39485         * gnulib-tool: Default $MAKE to 'make'.
39486         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
39487         than make.  Initialize $MAKE in the do-autobuild script.
39488
39489         gnulib-tool: use $MAKE not make in generated files
39490         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
39491         make, in generated files.  Initialize $MAKE in the do-autobuild
39492         script.
39493
39494         * top/GNUmakefile (_have-git-version-gen): Fix typo.
39495
39496         GNUmakefile: disable parallelism only for multiple, recursive targets
39497         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
39498         additions in the Makefile.
39499         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
39500         by Automake.
39501         (.NOTPARALLEL): Only disable parallel builds if multiple targets
39502         are listed on the command line and at least one of them is
39503         listed in $(ALL_RECURSIVE_TARGETS).
39504
39505 2009-03-14  Bruno Haible  <bruno@clisp.org>
39506
39507         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
39508         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
39509         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
39510         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
39511         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
39512         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
39513         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
39514         unistr/u8-uctomb.
39515         * modules/unistr/u8-strchr (Depends-on): Likewise.
39516         * modules/unistr/u8-strrchr (Depends-on): Likewise.
39517         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
39518         unistr/u16-uctomb.
39519         * modules/unistr/u16-strchr (Depends-on): Likewise.
39520         * modules/unistr/u16-strrchr (Depends-on): Likewise.
39521
39522 2009-03-12  Bruno Haible  <bruno@clisp.org>
39523
39524         Work around select() bug on Interix 3.5.
39525         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
39526         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
39527         * m4/select.m4: New file.
39528         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
39529         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
39530         * modules/select (Files): Add m4/select.m4.
39531         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
39532         * modules/nanosleep (Depends-on): Add select.
39533         * modules/poll (Depends-on): Likewise.
39534         * doc/posix-functions/select.texi: Mention the Interix bug.
39535         Reported by Markus Duft <mduft@gentoo.org>.
39536
39537         * lib/select.c: Renamed from lib/winsock-select.c.
39538         * modules/select (Files): Add lib/select.c, remove
39539         lib/winsock-select.c.
39540         (configure.ac): Update.
39541
39542 2009-03-12  Jim Meyering  <meyering@redhat.com>
39543
39544         avoid gcc warnings about unused macro definitions
39545         * lib/readtokens.c (STREQ): Remove unused definition.
39546         * lib/xmalloc.c (SIZE_MAX): Likewise.
39547         * lib/openat-die.c (N_): Likewise.
39548         * lib/mountlist.c (SIZE_MAX): Remove definition.
39549         Instead, include <stdint.h>.
39550         * lib/readutmp.c: Likewise.
39551         * modules/readutmp (Depends-on): Add stdint.
39552         * modules/mountlist (Depends-on): Add stdint.
39553         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
39554
39555 2009-03-10  Bruno Haible  <bruno@clisp.org>
39556
39557         Tests for module 'mbmemcasecoll'.
39558         * modules/mbmemcasecoll-tests: New file.
39559         * tests/test-mbmemcasecoll1.sh: New file.
39560         * tests/test-mbmemcasecoll2.sh: New file.
39561         * tests/test-mbmemcasecoll3.sh: New file.
39562         * tests/test-mbmemcasecoll.c: New file.
39563
39564         New module 'mbmemcasecoll'.
39565         * lib/mbmemcasecoll.h: New file.
39566         * lib/mbmemcasecoll.c: New file.
39567         * modules/mbmemcasecoll: New file.
39568
39569         * tests/test-mbmemcasecmp.h: New file, extracted from
39570         tests/test-mbmemcasecmp.c.
39571         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
39572         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
39573         (main): Update.
39574         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
39575
39576 2009-03-09  Bruno Haible  <bruno@clisp.org>
39577
39578         Tests for module 'mbmemcasecmp'.
39579         * modules/mbmemcasecmp-tests: New file.
39580         * tests/test-mbmemcasecmp1.sh: New file.
39581         * tests/test-mbmemcasecmp2.sh: New file.
39582         * tests/test-mbmemcasecmp3.sh: New file.
39583         * tests/test-mbmemcasecmp.c: New file.
39584
39585         New module 'mbmemcasecmp'.
39586         * lib/mbmemcasecmp.h: New file.
39587         * lib/mbmemcasecmp.c: New file.
39588         * modules/mbmemcasecmp: New file.
39589
39590 2009-03-09  Bruno Haible  <bruno@clisp.org>
39591
39592         Tests for module 'unicase/ulc-casecoll'.
39593         * modules/unicase/ulc-casecoll-tests: New file.
39594         * tests/unicase/test-ulc-casecoll1.sh: New file.
39595         * tests/unicase/test-ulc-casecoll2.sh: New file.
39596         * tests/unicase/test-ulc-casecoll.c: New file.
39597
39598         New module 'unicase/ulc-casecoll'.
39599         * lib/unicase.h (ulc_casecoll): New declaration.
39600         * lib/unicase/ulc-casecoll.c: New file.
39601         * modules/unicase/ulc-casecoll: New file.
39602
39603         New module 'unicase/ulc-casexfrm'.
39604         * lib/unicase.h (ulc_casexfrm): New declaration.
39605         * lib/unicase/ulc-casexfrm.c: New file.
39606         * modules/unicase/ulc-casexfrm: New file.
39607
39608 2009-03-09  Bruno Haible  <bruno@clisp.org>
39609
39610         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
39611         invocations.
39612
39613         * m4/mbscasecmp.m4: Remove file.
39614         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
39615         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
39616
39617         * m4/mbscasestr.m4: Remove file.
39618         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
39619         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
39620
39621         * m4/mbschr.m4: Remove file.
39622         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
39623         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
39624
39625         * m4/mbscspn.m4: Remove file.
39626         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
39627         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
39628
39629         * m4/mbslen.m4: Remove file.
39630         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
39631         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
39632
39633         * m4/mbsncasecmp.m4: Remove file.
39634         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
39635         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
39636
39637         * m4/mbsnlen.m4: Remove file.
39638         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
39639         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
39640
39641         * m4/mbspbrk.m4: Remove file.
39642         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
39643         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
39644
39645         * m4/mbspcasecmp.m4: Remove file.
39646         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
39647         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
39648
39649         * m4/mbsrchr.m4: Remove file.
39650         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
39651         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
39652
39653         * m4/mbssep.m4: Remove file.
39654         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
39655         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
39656
39657         * m4/mbsspn.m4: Remove file.
39658         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
39659         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
39660
39661         * m4/mbsstr.m4: Remove file.
39662         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
39663         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
39664
39665         * m4/mbstok_r.m4: Remove file.
39666         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
39667         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
39668
39669         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
39670
39671         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
39672         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
39673
39674         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
39675
39676 2009-03-08  Bruno Haible  <bruno@clisp.org>
39677
39678         Tests for module 'unicase/ulc-casecmp'.
39679         * modules/unicase/ulc-casecmp-tests: New file.
39680         * tests/unicase/test-ulc-casecmp1.sh: New file.
39681         * tests/unicase/test-ulc-casecmp2.sh: New file.
39682         * tests/unicase/test-ulc-casecmp.c: New file.
39683
39684         New module 'unicase/ulc-casecmp'.
39685         * lib/unicase.h (ulc_casecmp): New declaration.
39686         * lib/unicase/ulc-casecmp.c: New file.
39687         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
39688         'const SRC_UNIT *'.
39689         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
39690         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
39691         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
39692         * modules/unicase/ulc-casecmp: New file.
39693
39694         Tests for module 'unicase/u32-is-cased'.
39695         * modules/unicase/u32-is-cased-tests: New file.
39696         * tests/unicase/test-u32-is-cased.c: New file.
39697
39698         Tests for module 'unicase/u16-is-cased'.
39699         * modules/unicase/u16-is-cased-tests: New file.
39700         * tests/unicase/test-u16-is-cased.c: New file.
39701
39702         Tests for module 'unicase/u8-is-cased'.
39703         * modules/unicase/u8-is-cased-tests: New file.
39704         * tests/unicase/test-u8-is-cased.c: New file.
39705         * tests/unicase/test-is-cased.h: New file.
39706
39707         New module 'unicase/u32-is-cased'.
39708         * lib/unicase/u32-is-cased.c: New file.
39709         * modules/unicase/u32-is-cased: New file.
39710
39711         New module 'unicase/u16-is-cased'.
39712         * lib/unicase/u16-is-cased.c: New file.
39713         * modules/unicase/u16-is-cased: New file.
39714
39715         New module 'unicase/u8-is-cased'.
39716         * lib/unicase/u8-is-cased.c: New file.
39717         * lib/unicase/u-is-cased.h: New file.
39718         * modules/unicase/u8-is-cased: New file.
39719
39720         Tests for module 'unicase/u32-is-casefolded'.
39721         * modules/unicase/u32-is-casefolded-tests: New file.
39722         * tests/unicase/test-u32-is-casefolded.c: New file.
39723
39724         Tests for module 'unicase/u16-is-casefolded'.
39725         * modules/unicase/u16-is-casefolded-tests: New file.
39726         * tests/unicase/test-u16-is-casefolded.c: New file.
39727
39728         Tests for module 'unicase/u8-is-casefolded'.
39729         * modules/unicase/u8-is-casefolded-tests: New file.
39730         * tests/unicase/test-u8-is-casefolded.c: New file.
39731         * tests/unicase/test-is-casefolded.h: New file.
39732
39733         New module 'unicase/u32-is-casefolded'.
39734         * lib/unicase/u32-is-casefolded.c: New file.
39735         * modules/unicase/u32-is-casefolded: New file.
39736
39737         New module 'unicase/u16-is-casefolded'.
39738         * lib/unicase/u16-is-casefolded.c: New file.
39739         * modules/unicase/u16-is-casefolded: New file.
39740
39741         New module 'unicase/u8-is-casefolded'.
39742         * lib/unicase/u8-is-casefolded.c: New file.
39743         * modules/unicase/u8-is-casefolded: New file.
39744
39745         Tests for module 'unicase/u32-is-titlecase'.
39746         * modules/unicase/u32-is-titlecase-tests: New file.
39747         * tests/unicase/test-u32-is-titlecase.c: New file.
39748
39749         Tests for module 'unicase/u16-is-titlecase'.
39750         * modules/unicase/u16-is-titlecase-tests: New file.
39751         * tests/unicase/test-u16-is-titlecase.c: New file.
39752
39753         Tests for module 'unicase/u8-is-titlecase'.
39754         * modules/unicase/u8-is-titlecase-tests: New file.
39755         * tests/unicase/test-u8-is-titlecase.c: New file.
39756         * tests/unicase/test-is-titlecase.h: New file.
39757
39758         New module 'unicase/u32-is-titlecase'.
39759         * lib/unicase/u32-is-titlecase.c: New file.
39760         * modules/unicase/u32-is-titlecase: New file.
39761
39762         New module 'unicase/u16-is-titlecase'.
39763         * lib/unicase/u16-is-titlecase.c: New file.
39764         * modules/unicase/u16-is-titlecase: New file.
39765
39766         New module 'unicase/u8-is-titlecase'.
39767         * lib/unicase/u8-is-titlecase.c: New file.
39768         * modules/unicase/u8-is-titlecase: New file.
39769
39770         Tests for module 'unicase/u32-is-lowercase'.
39771         * modules/unicase/u32-is-lowercase-tests: New file.
39772         * tests/unicase/test-u32-is-lowercase.c: New file.
39773
39774         Tests for module 'unicase/u16-is-lowercase'.
39775         * modules/unicase/u16-is-lowercase-tests: New file.
39776         * tests/unicase/test-u16-is-lowercase.c: New file.
39777
39778         Tests for module 'unicase/u8-is-lowercase'.
39779         * modules/unicase/u8-is-lowercase-tests: New file.
39780         * tests/unicase/test-u8-is-lowercase.c: New file.
39781         * tests/unicase/test-is-lowercase.h: New file.
39782
39783         New module 'unicase/u32-is-lowercase'.
39784         * lib/unicase/u32-is-lowercase.c: New file.
39785         * modules/unicase/u32-is-lowercase: New file.
39786
39787         New module 'unicase/u16-is-lowercase'.
39788         * lib/unicase/u16-is-lowercase.c: New file.
39789         * modules/unicase/u16-is-lowercase: New file.
39790
39791         New module 'unicase/u8-is-lowercase'.
39792         * lib/unicase/u8-is-lowercase.c: New file.
39793         * modules/unicase/u8-is-lowercase: New file.
39794
39795         Tests for module 'unicase/u32-is-uppercase'.
39796         * modules/unicase/u32-is-uppercase-tests: New file.
39797         * tests/unicase/test-u32-is-uppercase.c: New file.
39798
39799         Tests for module 'unicase/u16-is-uppercase'.
39800         * modules/unicase/u16-is-uppercase-tests: New file.
39801         * tests/unicase/test-u16-is-uppercase.c: New file.
39802
39803         Tests for module 'unicase/u8-is-uppercase'.
39804         * modules/unicase/u8-is-uppercase-tests: New file.
39805         * tests/unicase/test-u8-is-uppercase.c: New file.
39806         * tests/unicase/test-is-uppercase.h: New file.
39807
39808         New module 'unicase/u32-is-uppercase'.
39809         * lib/unicase/u32-is-uppercase.c: New file.
39810         * modules/unicase/u32-is-uppercase: New file.
39811
39812         New module 'unicase/u16-is-uppercase'.
39813         * lib/unicase/u16-is-uppercase.c: New file.
39814         * modules/unicase/u16-is-uppercase: New file.
39815
39816         New module 'unicase/u8-is-uppercase'.
39817         * lib/unicase/u8-is-uppercase.c: New file.
39818         * modules/unicase/u8-is-uppercase: New file.
39819
39820         New module 'unicase/u32-is-invariant'.
39821         * lib/unicase/u32-is-invariant.c: New file.
39822         * modules/unicase/u32-is-invariant: New file.
39823
39824         New module 'unicase/u16-is-invariant'.
39825         * lib/unicase/u16-is-invariant.c: New file.
39826         * modules/unicase/u16-is-invariant: New file.
39827
39828         New module 'unicase/u8-is-invariant'.
39829         * lib/unicase/u8-is-invariant.c: New file.
39830         * lib/unicase/invariant.h: New file.
39831         * lib/unicase/u-is-invariant.h: New file.
39832         * modules/unicase/u8-is-invariant: New file.
39833
39834         Tests for module 'unicase/u32-casecoll'.
39835         * modules/unicase/u32-casecoll-tests: New file.
39836         * tests/unicase/test-u32-casecoll.c: New file.
39837
39838         Tests for module 'unicase/u16-casecoll'.
39839         * modules/unicase/u16-casecoll-tests: New file.
39840         * tests/unicase/test-u16-casecoll.c: New file.
39841
39842         Tests for module 'unicase/u8-casecoll'.
39843         * modules/unicase/u8-casecoll-tests: New file.
39844         * tests/unicase/test-u8-casecoll.c: New file.
39845
39846         New module 'unicase/u32-casecoll'.
39847         * lib/unicase/u32-casecoll.c: New file.
39848         * modules/unicase/u32-casecoll: New file.
39849
39850         New module 'unicase/u16-casecoll'.
39851         * lib/unicase/u16-casecoll.c: New file.
39852         * modules/unicase/u16-casecoll: New file.
39853
39854         New module 'unicase/u8-casecoll'.
39855         * lib/unicase/u8-casecoll.c: New file.
39856         * lib/unicase/u-casecoll.h: New file.
39857         * modules/unicase/u8-casecoll: New file.
39858
39859         New module 'unicase/u32-casexfrm'.
39860         * lib/unicase/u32-casexfrm.c: New file.
39861         * modules/unicase/u32-casexfrm: New file.
39862
39863         New module 'unicase/u16-casexfrm'.
39864         * lib/unicase/u16-casexfrm.c: New file.
39865         * modules/unicase/u16-casexfrm: New file.
39866
39867         New module 'unicase/u8-casexfrm'.
39868         * lib/unicase/u8-casexfrm.c: New file.
39869         * lib/unicase/u-casexfrm.h: New file.
39870         * modules/unicase/u8-casexfrm: New file.
39871
39872         Tests for module 'unicase/u32-casecmp'.
39873         * modules/unicase/u32-casecmp-tests: New file.
39874         * tests/unicase/test-u32-casecmp.c: New file.
39875
39876         Tests for module 'unicase/u16-casecmp'.
39877         * modules/unicase/u16-casecmp-tests: New file.
39878         * tests/unicase/test-u16-casecmp.c: New file.
39879
39880         Tests for module 'unicase/u8-casecmp'.
39881         * modules/unicase/u8-casecmp-tests: New file.
39882         * tests/unicase/test-u8-casecmp.c: New file.
39883         * tests/unicase/test-casecmp.h: New file.
39884
39885         New module 'unicase/u32-casecmp'.
39886         * lib/unicase/u32-casecmp.c: New file.
39887         * modules/unicase/u32-casecmp: New file.
39888
39889         New module 'unicase/u16-casecmp'.
39890         * lib/unicase/u16-casecmp.c: New file.
39891         * modules/unicase/u16-casecmp: New file.
39892
39893         New module 'unicase/u8-casecmp'.
39894         * lib/unicase/u8-casecmp.c: New file.
39895         * lib/unicase/u-casecmp.h: New file.
39896         * modules/unicase/u8-casecmp: New file.
39897
39898         Tests for module 'unicase/u32-casefold'.
39899         * modules/unicase/u32-casefold-tests: New file.
39900         * tests/unicase/test-u32-casefold.c: New file.
39901
39902         Tests for module 'unicase/u16-casefold'.
39903         * modules/unicase/u16-casefold-tests: New file.
39904         * tests/unicase/test-u16-casefold.c: New file.
39905
39906         Tests for module 'unicase/u8-casefold'.
39907         * modules/unicase/u8-casefold-tests: New file.
39908         * tests/unicase/test-u8-casefold.c: New file.
39909
39910         New module 'unicase/u32-casefold'.
39911         * lib/unicase/u32-casefold.c: New file.
39912         * modules/unicase/u32-casefold: New file.
39913
39914         New module 'unicase/u16-casefold'.
39915         * lib/unicase/u16-casefold.c: New file.
39916         * modules/unicase/u16-casefold: New file.
39917
39918         New module 'unicase/u8-casefold'.
39919         * lib/unicase/u8-casefold.c: New file.
39920         * lib/unicase/u-casefold.h: New file.
39921         * modules/unicase/u8-casefold: New file.
39922
39923         New module 'unicase/tocasefold'.
39924         * lib/unicase/casefold.h: New file.
39925         * lib/unicase/tocasefold.c: New file.
39926         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
39927         * modules/unicase/tocasefold: New file.
39928
39929         Tests for module 'unicase/u32-totitle'.
39930         * modules/unicase/u32-totitle-tests: New file.
39931         * tests/unicase/test-u32-totitle.c: New file.
39932
39933         Tests for module 'unicase/u16-totitle'.
39934         * modules/unicase/u16-totitle-tests: New file.
39935         * tests/unicase/test-u16-totitle.c: New file.
39936
39937         Tests for module 'unicase/u8-totitle'.
39938         * modules/unicase/u8-totitle-tests: New file.
39939         * tests/unicase/test-u8-totitle.c: New file.
39940
39941         New module 'unicase/u32-totitle'.
39942         * lib/unicase/u32-totitle.c: New file.
39943         * modules/unicase/u32-totitle: New file.
39944
39945         New module 'unicase/u16-totitle'.
39946         * lib/unicase/u16-totitle.c: New file.
39947         * modules/unicase/u16-totitle: New file.
39948
39949         New module 'unicase/u8-totitle'.
39950         * lib/unicase/u8-totitle.c: New file.
39951         * lib/unicase/u-totitle.h: New file.
39952         * modules/unicase/u8-totitle: New file.
39953
39954         Tests for module 'unicase/u32-tolower'.
39955         * modules/unicase/u32-tolower-tests: New file.
39956         * tests/unicase/test-u32-tolower.c: New file.
39957
39958         Tests for module 'unicase/u16-tolower'.
39959         * modules/unicase/u16-tolower-tests: New file.
39960         * tests/unicase/test-u16-tolower.c: New file.
39961
39962         Tests for module 'unicase/u8-tolower'.
39963         * modules/unicase/u8-tolower-tests: New file.
39964         * tests/unicase/test-u8-tolower.c: New file.
39965
39966         New module 'unicase/u32-tolower'.
39967         * lib/unicase/u32-tolower.c: New file.
39968         * modules/unicase/u32-tolower: New file.
39969
39970         New module 'unicase/u16-tolower'.
39971         * lib/unicase/u16-tolower.c: New file.
39972         * modules/unicase/u16-tolower: New file.
39973
39974         New module 'unicase/u8-tolower'.
39975         * lib/unicase/u8-tolower.c: New file.
39976         * modules/unicase/u8-tolower: New file.
39977
39978         Tests for module 'unicase/u32-toupper'.
39979         * modules/unicase/u32-toupper-tests: New file.
39980         * tests/unicase/test-u32-toupper.c: New file.
39981
39982         Tests for module 'unicase/u16-toupper'.
39983         * modules/unicase/u16-toupper-tests: New file.
39984         * tests/unicase/test-u16-toupper.c: New file.
39985
39986         Tests for module 'unicase/u8-toupper'.
39987         * modules/unicase/u8-toupper-tests: New file.
39988         * tests/unicase/test-u8-toupper.c: New file.
39989
39990         New module 'unicase/u32-toupper'.
39991         * lib/unicase/u32-toupper.c: New file.
39992         * modules/unicase/u32-toupper: New file.
39993
39994         New module 'unicase/u16-toupper'.
39995         * lib/unicase/u16-toupper.c: New file.
39996         * modules/unicase/u16-toupper: New file.
39997
39998         New module 'unicase/u8-toupper'.
39999         * lib/unicase/u8-toupper.c: New file.
40000         * modules/unicase/u8-toupper: New file.
40001
40002         New module 'unicase/u32-casemap'.
40003         * lib/unicase/u32-casemap.c: New file.
40004         * modules/unicase/u32-casemap: New file.
40005
40006         New module 'unicase/u16-casemap'.
40007         * lib/unicase/u16-casemap.c: New file.
40008         * modules/unicase/u16-casemap: New file.
40009
40010         New module 'unicase/u8-casemap'.
40011         * lib/unicase/unicasemap.h: New file.
40012         * lib/unicase/u8-casemap.c: New file.
40013         * lib/unicase/u-casemap.h: New file.
40014         * modules/unicase/u8-casemap: New file.
40015
40016         New module 'unicase/special-casing'.
40017         * lib/unicase/special-casing.h: New file.
40018         * lib/unicase/special-casing.c: New file.
40019         * lib/unicase/special-casing-table.gperf: New file, generated by
40020         gen-uni-tables.c.
40021         * modules/unicase/special-casing: New file.
40022
40023         Tests for module 'unicase/locale-language'.
40024         * modules/unicase/locale-language-tests: New file.
40025         * tests/unicase/test-locale-language.sh: New file.
40026         * tests/unicase/test-locale-language.c: New file.
40027
40028         New module 'unicase/locale-language'.
40029         * lib/unicase/locale-language.c: New file.
40030         * lib/unicase/locale-languages.gperf: New file.
40031         * modules/unicase/locale-language: New file.
40032
40033         Generate more tables for case conversion and case folding.
40034         * lib/gen-uni-tables.c (SCC_*): New enum items.
40035         (struct special_casing_rule): New type.
40036         (casing_rules, num_casing_rules, allocated_casing_rules): New
40037         variables.
40038         (add_casing_rule, fill_casing_rules): New functions.
40039         (struct casefold_rule): New type.
40040         (casefolding_rules, num_casefolding_rules,
40041         allocated_casefolding_rules): New variables.
40042         (fill_casefolding_rules): New function.
40043         (unicode_casefold): New variable.
40044         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
40045         sort_casing_rules, output_casing_rules): New functions.
40046         (main): Accept to more arguments: SpecialCasing.txt and
40047         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
40048         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
40049         Output mapping for casefolding.
40050
40051         * lib/unicase.h: Include stdbool.h, uninorm.h.
40052         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
40053         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
40054         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
40055         arguments.
40056         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
40057         resultp arguments.
40058         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
40059         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
40060         resultp arguments.
40061         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
40062         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
40063         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
40064         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
40065         declarations.
40066         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
40067
40068 2009-03-08  Bruno Haible  <bruno@clisp.org>
40069
40070         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
40071         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
40072         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
40073         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
40074
40075 2009-03-07  Bruno Haible  <bruno@clisp.org>
40076
40077         Adjust u*_normcmp, u*_normcoll API.
40078         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
40079         u16_normcoll, u32_normcoll): Change failure conventions.
40080         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
40081         errno and return -1.
40082         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
40083
40084 2009-03-07  Bruno Haible  <bruno@clisp.org>
40085
40086         Tests for module 'uninorm/u32-normcoll'.
40087         * modules/uninorm/u32-normcoll-tests: New file.
40088         * tests/uninorm/test-u32-normcoll.c: New file.
40089
40090         Tests for module 'uninorm/u16-normcoll'.
40091         * modules/uninorm/u16-normcoll-tests: New file.
40092         * tests/uninorm/test-u16-normcoll.c: New file.
40093
40094         Tests for module 'uninorm/u8-normcoll'.
40095         * modules/uninorm/u8-normcoll-tests: New file.
40096         * tests/uninorm/test-u8-normcoll.c: New file.
40097
40098 2009-03-07  Bruno Haible  <bruno@clisp.org>
40099
40100         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
40101         tests/uninorm/test-u32-normcmp.c.
40102         * tests/uninorm/test-u32-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/u32-normcmp-tests (Files): Add
40107         tests/uninorm/test-u32-normcmp.h.
40108         (Depends-on): Remove uninorm/u32-normcmp.
40109
40110         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
40111         tests/uninorm/test-u16-normcmp.c.
40112         * tests/uninorm/test-u16-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/u16-normcmp-tests (Files): Add
40117         tests/uninorm/test-u16-normcmp.h.
40118         (Depends-on): Remove uninorm/u16-normcmp.
40119
40120         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
40121         tests/uninorm/test-u8-normcmp.c.
40122         * tests/uninorm/test-u8-normcmp.c: Include it.
40123         (test_nonascii): New function, extracted from main. Add some more
40124         tests.
40125         (main): Invoke test_ascii and test_nonascii.
40126         * modules/uninorm/u8-normcmp-tests (Files): Add
40127         tests/uninorm/test-u8-normcmp.h.
40128         (Depends-on): Remove uninorm/u8-normcmp.
40129
40130 2009-03-07  Bruno Haible  <bruno@clisp.org>
40131
40132         New module 'uninorm/u32-normcoll'.
40133         * lib/uninorm/u32-normcoll.c: New file.
40134         * modules/uninorm/u32-normcoll: New file.
40135
40136         New module 'uninorm/u16-normcoll'.
40137         * lib/uninorm/u16-normcoll.c: New file.
40138         * modules/uninorm/u16-normcoll: New file.
40139
40140         New module 'uninorm/u8-normcoll'.
40141         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
40142         declarations.
40143         * lib/uninorm/u8-normcoll.c: New file.
40144         * lib/uninorm/u-normcoll.h: New file.
40145         * modules/uninorm/u8-normcoll: New file.
40146
40147         New module 'uninorm/u32-normxfrm'.
40148         * lib/uninorm/u32-normxfrm.c: New file.
40149         * modules/uninorm/u32-normxfrm: New file.
40150
40151         New module 'uninorm/u16-normxfrm'.
40152         * lib/uninorm/u16-normxfrm.c: New file.
40153         * modules/uninorm/u16-normxfrm: New file.
40154
40155         New module 'uninorm/u8-normxfrm'.
40156         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
40157         declarations.
40158         * lib/uninorm/u8-normxfrm.c: New file.
40159         * lib/uninorm/u-normxfrm.h: New file.
40160         * modules/uninorm/u8-normxfrm: New file.
40161
40162 2009-03-07  Bruno Haible  <bruno@clisp.org>
40163
40164         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
40165         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
40166         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
40167
40168 2009-03-07  Bruno Haible  <bruno@clisp.org>
40169
40170         New module 'memxfrm'.
40171         * lib/memxfrm.h: New file.
40172         * lib/memxfrm.c: New file.
40173         * modules/memxfrm: New file.
40174
40175 2009-03-07  Bruno Haible  <bruno@clisp.org>
40176
40177         New module 'memcmp2'.
40178         * lib/memcmp2.h: New file.
40179         * lib/memcmp2.c: New file.
40180         * modules/memcmp2: New file.
40181
40182 2009-03-07  Bruno Haible  <bruno@clisp.org>
40183
40184         Tests for module 'uninorm/decomposing-form'.
40185         * modules/uninorm/decomposing-form-tests: New file.
40186         * tests/uninorm/test-decomposing-form.c: New file.
40187
40188         New module 'uninorm/decomposing-form'.
40189         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
40190         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
40191         Add 'decomposing_variant' field.
40192         * lib/uninorm/decomposing-form.c: New file.
40193         * lib/uninorm/nfc.c (uninorm_nfc): Update.
40194         * lib/uninorm/nfd.c (uninorm_nfd): Update.
40195         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
40196         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
40197         * modules/uninorm/decomposing-form: New file.
40198         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
40199         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
40200
40201 2009-03-07  Bruno Haible  <bruno@clisp.org>
40202
40203         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
40204         strings.
40205
40206 2009-03-06  Bruno Haible  <bruno@clisp.org>
40207
40208         Tests for module 'uninorm/u32-normcmp'.
40209         * tests/uninorm/test-u32-normcmp.c: New file.
40210         * modules/uninorm/u32-normcmp-tests: New file.
40211
40212         Tests for module 'uninorm/u16-normcmp'.
40213         * tests/uninorm/test-u16-normcmp.c: New file.
40214         * modules/uninorm/u16-normcmp-tests: New file.
40215
40216         Tests for module 'uninorm/u8-normcmp'.
40217         * tests/uninorm/test-u8-normcmp.c: New file.
40218         * modules/uninorm/u8-normcmp-tests: New file.
40219
40220         New module 'uninorm/u32-normcmp'.
40221         * lib/uninorm/u32-normcmp.c: New file.
40222         * modules/uninorm/u32-normcmp: New file.
40223
40224         New module 'uninorm/u16-normcmp'.
40225         * lib/uninorm/u16-normcmp.c: New file.
40226         * modules/uninorm/u16-normcmp: New file.
40227
40228         New module 'uninorm/u8-normcmp'.
40229         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
40230         declarations.
40231         * lib/uninorm/u8-normcmp.c: New file.
40232         * lib/uninorm/u-normcmp.h: New file.
40233         * modules/uninorm/u8-normcmp: New file.
40234
40235 2009-03-06  Bruno Haible  <bruno@clisp.org>
40236
40237         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
40238         Reported by Eric Blake.
40239
40240 2009-03-06  Eric Blake  <ebb9@byu.net>
40241             Bruno Haible  <bruno@clisp.org>
40242
40243         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
40244         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
40245         condition.
40246         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
40247         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
40248         condition.
40249         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
40250
40251 2009-03-06  Eric Blake  <ebb9@byu.net>
40252
40253         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
40254         to avoid compiler warnings.
40255         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
40256
40257 2009-03-05  Bruno Haible  <bruno@clisp.org>
40258
40259         * tests/test-ftell.c (main): Disable test beyond end of file on
40260         FreeMiNT.
40261         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
40262
40263 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
40264
40265         * lib/filevercmp.c: Move hidden files up in ordering.
40266         * tests/test-filevercmp.c: Add tests for hidden files.
40267
40268 2009-03-04  Bruno Haible  <bruno@clisp.org>
40269
40270         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
40271         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
40272         AM_CFLAGS.
40273         Reported by Simon Josefsson.
40274
40275 2009-03-03  Bruno Haible  <bruno@clisp.org>
40276
40277         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
40278         Reported by Simon Josefsson.
40279
40280         * doc/ld-version-script.texi: Update node reference.
40281
40282 2009-03-03  Bruno Haible  <bruno@clisp.org>
40283
40284         * modules/visibility (License): Change to 'unlimited'.
40285         Suggested by Simon Josefsson.
40286
40287 2009-03-03  Jim Meyering  <meyering@redhat.com>
40288
40289         unlinkdir: cannot_unlink_dir may modify process state
40290         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
40291         it's neither thread-safe nor appropriate for use in a library.
40292
40293 2009-03-03  Eric Blake  <ebb9@byu.net>
40294
40295         test-closein: silence test under Darwin
40296         * tests/test-closein.sh: Ignore stderr from cat, since we don't
40297         care if it dies from EPIPE or EBADF.
40298
40299 2009-03-03  Bruno Haible  <bruno@clisp.org>
40300
40301         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
40302         earlier.
40303         * doc/visibility.texi: Fix @node and @section.
40304
40305 2009-03-03  Simon Josefsson  <simon@josefsson.org>
40306
40307         * doc/gnulib.texi: Link to sections for ld version script and
40308         visibility.
40309         * doc/visibility.texi: Add @node and @section.
40310         * modules/ld-version-script: New module.
40311         * m4/ld-version-script.m4: New file.
40312         * doc/ld-version-script.texi: New file.
40313
40314 2009-03-02  David Lutterkort  <lutter@redhat.com>
40315
40316         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
40317         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40318
40319 2009-03-02  Bruno Haible  <bruno@clisp.org>
40320
40321         * doc/visibility.texi: Mention libtool's -export-symbols option.
40322
40323 2009-03-02  Jim Meyering  <meyering@redhat.com>
40324
40325         announce-gen: new option: --no-print-checksums
40326         * build-aux/announce-gen (usage): Describe it.
40327         (print_checksums): Print a newline here, not in the [*] footnote.
40328         (main): Honor it.
40329
40330 2009-03-01  Bruno Haible  <bruno@clisp.org>
40331
40332         Use socklen_t in the native Windows replacements prototypes.
40333         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
40334         instead of 'int'.
40335         * lib/getsockopt.c (rpl_getsockopt): Likewise.
40336         * lib/setsockopt.c (rpl_setsockopt): Likewise.
40337         * modules/getsockopt (Depends-on): Add socklen.
40338         * modules/setsockopt (Depends-on): Add socklen.
40339
40340 2009-03-01  Bruno Haible  <bruno@clisp.org>
40341
40342         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
40343         least 4.2.
40344
40345 2009-03-01  Eric Blake  <ebb9@byu.net>
40346             Bruno Haible  <bruno@clisp.org>
40347
40348         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
40349         error messages.
40350         * lib/wait-process.c (wait_subprocess): Omit error message about
40351         deadly signal sent to the child of termsigp != NULL.
40352
40353 2009-03-01  Eric Blake  <ebb9@byu.net>
40354
40355         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
40356
40357 2009-03-01  Bruno Haible  <bruno@clisp.org>
40358
40359         Avoid a gcc warning.
40360         * tests/test-sched.c (b): Make global.
40361         Reported by Eric Blake.
40362
40363 2009-01-19  Martin Lambers  <marlam@marlam.de>
40364
40365         Provide POSIX semantics for socket timeout options on W32.
40366         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
40367         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
40368         * modules/setsockopt: Depend on sys_time module for struct timeval.
40369         * modules/getsockopt: Depend on sys_time module for struct timeval.
40370
40371 2009-03-01  Simon Josefsson  <simon@josefsson.org>
40372
40373         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
40374         __USE_GNU, for consistency with netdb.in.h.
40375         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40376
40377 2009-03-01  Bruno Haible  <bruno@clisp.org>
40378
40379         More support for FreeMiNT.
40380         * lib/fseeko.c (rpl_fseeko): Complete last commit.
40381         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40382
40383 2009-03-01  Bruno Haible  <bruno@clisp.org>
40384
40385         More support for FreeMiNT.
40386         * lib/fpurge.c (fpurge): Correct last commit.
40387         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40388
40389 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40390
40391         Fix unportable awk script in vc-list-files.
40392         * build-aux/vc-list-files: In the replacement awk script, use
40393         substr with a second argument of 1, not zero.
40394         Report by Simon Josefsson.
40395
40396 2009-02-28  Bruno Haible  <bruno@clisp.org>
40397
40398         More support for FreeMiNT.
40399         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
40400         to FreeMiNT today.
40401         * lib/fwriting.c (fwriting): Likewise.
40402         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
40403
40404 2009-02-28  Bruno Haible  <bruno@clisp.org>
40405
40406         * tests/test-freadseek.c (main): Disable test beyond end of file on
40407         FreeMiNT.
40408         * tests/test-ftello.c (main): Likewise.
40409         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
40410
40411 2009-02-28  Bruno Haible  <bruno@clisp.org>
40412
40413         Add tentative support for FreeMiNT.
40414         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
40415         * lib/fpurge.c (fpurge): Likewise.
40416         * lib/freadable.c (freadable): Likewise.
40417         * lib/freading.c (freading): Likewise.
40418         * lib/freadptr.c (freadptr): Likewise.
40419         * lib/freadseek.c (freadptrinc): Likewise.
40420         * lib/fseeko.c (rpl_fseeko): Likewise.
40421         * lib/fseterr.c (fseterr): Likewise.
40422         * lib/fwritable.c (fwritable): Likewise.
40423         * lib/fwriting.c (fwriting): Likewise.
40424         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
40425         Hourihane.
40426         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40427
40428 2009-02-28  Bruno Haible  <bruno@clisp.org>
40429
40430         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
40431         SIGCHLD.
40432         Reported by Jim Meyering.
40433
40434 2009-02-28  Bruno Haible  <bruno@clisp.org>
40435
40436         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
40437         Mention the results of these tests on various platforms.
40438         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
40439         order.
40440         * doc/posix-functions/printf.texi: Likewise.
40441         * doc/posix-functions/snprintf.texi: Likewise.
40442         * doc/posix-functions/sprintf.texi: Likewise.
40443         * doc/posix-functions/vfprintf.texi: Likewise.
40444         * doc/posix-functions/vprintf.texi: Likewise.
40445         * doc/posix-functions/vsnprintf.texi: Likewise.
40446         * doc/posix-functions/vsprintf.texi: Likewise.
40447         * doc/glibc-functions/obstack_printf.texi: Likewise.
40448         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
40449
40450 2009-02-28  Bruno Haible  <bruno@clisp.org>
40451
40452         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
40453         Reported by Loïc Minier <lool@dooz.org>.
40454
40455 2009-02-27  Bruno Haible  <bruno@clisp.org>
40456
40457         * gnulib-tool (func_import): Make the sed expression used to create the
40458         sed script for updating the .gitignore file POSIX compliant.
40459         Reported by Eric Blake.
40460
40461 2009-02-27  Bruno Haible  <bruno@clisp.org>
40462
40463         * gnulib-tool (sed): Don't alias as "sed --posix".
40464         Reported by Eric Blake.
40465
40466 2009-02-27  Bruno Haible  <bruno@clisp.org>
40467
40468         Avoid test link errors.
40469         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
40470         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
40471         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
40472         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
40473         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40474
40475 2009-02-27  Bruno Haible  <bruno@clisp.org>
40476
40477         Avoid spurious "(cached)" in configure output.
40478         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
40479         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
40480         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
40481         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
40482         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
40483         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
40484         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
40485         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
40486         Reported by Eric Blake.
40487
40488 2009-02-27  Eric Blake  <ebb9@byu.net>
40489
40490         printf: fix regression in previous patch
40491         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
40492
40493 2009-02-27  Bruno Haible  <bruno@clisp.org>
40494
40495         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
40496         value.
40497         * lib/stdint.in.h: Likewise.
40498         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
40499
40500 2009-02-27  Eric Blake  <ebb9@byu.net>
40501
40502         doc: mention more functions added in cygwin 1.7.0
40503         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
40504         addition.
40505         * doc/posix-functions/open_wmemstream.texi: Likewise.
40506         * doc/posix-functions/wcsnlen.texi: Likewise.
40507         * doc/posix-functions/wcsnrtombs.texi: Likewise.
40508         * doc/posix-functions/wcstod.texi: Likewise.
40509         * doc/posix-functions/wcstof.texi: Likewise.
40510         * doc/posix-functions/wcstoimax.texi: Likewise.
40511         * doc/posix-functions/wcstok.texi: Likewise.
40512         * doc/posix-functions/wcstoumax.texi: Likewise.
40513
40514         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
40515         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
40516         * doc/posix-functions/fprintf.texi: Update.
40517         * doc/posix-functions/printf.texi: Update.
40518         * doc/posix-functions/snprintf.texi: Update.
40519         * doc/posix-functions/sprintf.texi: Update.
40520         * doc/posix-functions/vfprintf.texi: Update.
40521         * doc/posix-functions/vprintf.texi: Update.
40522         * doc/posix-functions/vsnprintf.texi: Update.
40523         * doc/posix-functions/vsprintf.texi: Update.
40524         * doc/glibc-functions/obstack_printf.texi: Update.
40525         * doc/glibc-functions/obstack_vprintf.texi: Update.
40526
40527 2009-02-26  Eric Blake  <ebb9@byu.net>
40528
40529         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
40530         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
40531         compilation bug by using runtime conversion.
40532         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
40533         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
40534         * modules/ceill-tests (Files): Use nan.h.
40535         * modules/floorl-tests (Files): Likewise.
40536         * modules/frexpl-tests (Files): Likewise.
40537         * modules/isnanl-tests (Files): Likewise.
40538         * modules/ldexpl-tests (Files): Likewise.
40539         * modules/roundl-tests (Files): Likewise.
40540         * modules/truncl-tests (Files): Likewise.
40541         * tests/test-ceill.c (main): Use a working NaN.
40542         * tests/test-floorl.c (main): Likewise.
40543         * tests/test-frexpl.c (main): Likewise.
40544         * tests/test-isnan.c (test_long_double): Likewise.
40545         * tests/test-isnanl.h (main): Likewise.
40546         * tests/test-ldexpl.h (main): Likewise.
40547         * tests/test-roundl.h (main): Likewise.
40548         * tests/test-truncl.h (main): Likewise.
40549         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
40550
40551 2009-02-26  Eric Blake  <ebb9@byu.net>
40552             Bruno Haible  <bruno@clisp.org>
40553
40554         Work around a *printf bug with %ls on Solaris.
40555         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
40556         precision is specified, sprintf stops converting the wide string
40557         argument when the number of bytes that have been produced by this
40558         conversion equals or exceeds the precision.
40559         * doc/posix-functions/fprintf.texi: Update.
40560         * doc/posix-functions/printf.texi: Update.
40561         * doc/posix-functions/snprintf.texi: Update.
40562         * doc/posix-functions/sprintf.texi: Update.
40563         * doc/posix-functions/vfprintf.texi: Update.
40564         * doc/posix-functions/vprintf.texi: Update.
40565         * doc/posix-functions/vsnprintf.texi: Update.
40566         * doc/posix-functions/vsprintf.texi: Update.
40567         * doc/glibc-functions/obstack_printf.texi: Update.
40568         * doc/glibc-functions/obstack_vprintf.texi: Update.
40569
40570 2009-02-26  Eric Blake  <ebb9@byu.net>
40571
40572         stdlib: favor compiler check of random.h
40573         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
40574         to avoid an ObjC random.h installed by Swarm.
40575
40576 2009-02-26  Bruno Haible  <bruno@clisp.org>
40577
40578         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
40579         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
40580         Reported by Gary V. Vaughan <gary@gnu.org>.
40581
40582 2009-02-26  Bruno Haible  <bruno@clisp.org>
40583
40584         Fix *printf behaviour regarding the %ls directive.
40585         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
40586         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
40587         NEED_PRINTF_DIRECTIVE_LS.
40588         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
40589         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
40590         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
40591         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
40592         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
40593         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
40594         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
40595         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
40596         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
40597         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
40598         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
40599         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
40600         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
40601         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
40602         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
40603         * doc/posix-functions/fprintf.texi: Update.
40604         * doc/posix-functions/printf.texi: Update.
40605         * doc/posix-functions/snprintf.texi: Update.
40606         * doc/posix-functions/sprintf.texi: Update.
40607         * doc/posix-functions/vfprintf.texi: Update.
40608         * doc/posix-functions/vprintf.texi: Update.
40609         * doc/posix-functions/vsnprintf.texi: Update.
40610         * doc/posix-functions/vsprintf.texi: Update.
40611         * doc/glibc-functions/obstack_printf.texi: Update.
40612         * doc/glibc-functions/obstack_vprintf.texi: Update.
40613         Reported by Eric Blake.
40614
40615 2009-02-25  Bruno Haible  <bruno@clisp.org>
40616
40617         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
40618         with known value.
40619         Reported by Gary V. Vaughan <gary@gnu.org>.
40620
40621 2009-02-25  Bruno Haible  <bruno@clisp.org>
40622
40623         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
40624         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
40625         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
40626         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
40627         Reported by Gary V. Vaughan <gary@gnu.org>.
40628
40629 2009-02-25  Bruno Haible  <bruno@clisp.org>
40630
40631         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
40632         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
40633         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
40634         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
40635         Reported by Gary V. Vaughan <gary@gnu.org>.
40636
40637 2009-02-25  Eric Blake  <ebb9@byu.net>
40638
40639         tests: skip fseek/ftell tests if ungetc is broken
40640         * m4/ungetc.m4: New file.
40641         * modules/fseek-tests: Split test, so ungetc dependency is
40642         separate from rest of test.
40643         * modules/fseeko-tests: Likewise.
40644         * modules/ftell-tests: Likewise.
40645         * modules/ftello-tests: Likewise.
40646         * tests/test-fseek.c (main): Isolate ungetc dependency.
40647         * tests/test-fseeko.c (main): Likewise.
40648         * tests/test-ftell.c (main): Likewise.
40649         * tests/test-ftello.c (main): Likewise.
40650         * tests/test-fseek2.sh: New file.
40651         * tests/test-fseeko2.sh: Likewise.
40652         * tests/test-ftell2.sh: Likewise.
40653         * tests/test-ftello2.sh: Likewise.
40654
40655 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
40656
40657         test-getaddrinfo: fix usage of skip return code 77
40658         * tests/test-gettaddrinfo.c: Return skip code 77 only
40659         for first occurance of skip (4x77 is not 77)
40660
40661 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
40662
40663         strtod: avoid C99 decl-after-statement
40664         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
40665
40666 2009-02-24  Eric Blake  <ebb9@byu.net>
40667
40668         strtod: detect HP-UX 11.31 bug
40669         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
40670         Reported by Gary V. Vaughan.
40671
40672 2009-02-23  Bruno Haible  <bruno@clisp.org>
40673
40674         Fix invalid read past end of memory block.
40675         * lib/vasnprintf.c (DCHAR_SET): Define.
40676         (local_wcslen): Define only when needed.
40677         (local_strnlen, local_wcsnlen): New functions.
40678         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
40679         directives that involve a conversion ourselves.
40680         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
40681         wcsnlen, mbrtowc, wcrtomb.
40682         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
40683         * tests/test-vasprintf-posix.c (test_function): Likewise.
40684         * tests/test-snprintf-posix.h (test_function): Likewise.
40685         * tests/test-sprintf-posix.h (test_function): Likewise.
40686         Reported by Ben Pfaff <blp@cs.stanford.edu>.
40687
40688 2009-02-22  Bruno Haible  <bruno@clisp.org>
40689
40690         Implement new clarified decomposition of Hangul syllables.
40691         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
40692         of type LTV, return only a pairwise decomposition.
40693         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
40694         Likewise.
40695         * tests/uninorm/test-decomposition.c (main): Updated expected result.
40696         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
40697         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
40698
40699 2009-02-22  Bruno Haible  <bruno@clisp.org>
40700
40701         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
40702         zero-length results and shrink excess allocated memory.
40703         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
40704         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
40705         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
40706         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
40707         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
40708         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
40709         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
40710         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
40711         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
40712         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
40713         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
40714         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
40715
40716 2009-02-21  Bruno Haible  <bruno@clisp.org>
40717
40718         * doc/gnulib.texi: Include safe-alloc.texi earlier.
40719         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
40720         spaces after a period. Put a space between a macro name and its
40721         argument list. Trivial rewordings.
40722         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
40723         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
40724         (main): Return 0 explicitly.
40725
40726 2009-02-21  Bruno Haible  <bruno@clisp.org>
40727
40728         Tests for module 'uninorm/filter'.
40729         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
40730         * modules/uninorm/filter-tests: New file.
40731
40732         New module 'uninorm/filter'.
40733         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
40734         uninorm_filter_flush, uninorm_filter_free): New declarations.
40735         * lib/uninorm/uninorm-filter.c: New file.
40736         * modules/uninorm/filter: New file.
40737
40738 2009-02-21  Bruno Haible  <bruno@clisp.org>
40739
40740         Tests for module 'uninorm/nfkc'.
40741         * tests/uninorm/test-nfkc.c: New file.
40742         * tests/uninorm/test-u8-nfkc.c: New file.
40743         * tests/uninorm/test-u16-nfkc.c: New file.
40744         * tests/uninorm/test-u32-nfkc.c: New file.
40745         * tests/uninorm/test-u32-nfkc-big.sh: New file.
40746         * tests/uninorm/test-u32-nfkc-big.c: New file.
40747         * modules/uninorm/nfkc-tests: New file.
40748
40749         New module 'uninorm/nfkc'.
40750         * lib/uninorm/nfkc.c: New file.
40751         * modules/uninorm/nfkc: New file.
40752
40753         Tests for module 'uninorm/nfkd'.
40754         * tests/uninorm/test-nfkd.c: New file.
40755         * tests/uninorm/test-u8-nfkd.c: New file.
40756         * tests/uninorm/test-u16-nfkd.c: New file.
40757         * tests/uninorm/test-u32-nfkd.c: New file.
40758         * tests/uninorm/test-u32-nfkd-big.sh: New file.
40759         * tests/uninorm/test-u32-nfkd-big.c: New file.
40760         * modules/uninorm/nfkd-tests: New file.
40761
40762         New module 'uninorm/nfkd'.
40763         * lib/uninorm/nfkd.c: New file.
40764         * modules/uninorm/nfkd: New file.
40765
40766         Tests for module 'uninorm/nfc'.
40767         * tests/uninorm/test-nfc.c: New file.
40768         * tests/uninorm/test-u8-nfc.c: New file.
40769         * tests/uninorm/test-u16-nfc.c: New file.
40770         * tests/uninorm/test-u32-nfc.c: New file.
40771         * tests/uninorm/test-u32-nfc-big.sh: New file.
40772         * tests/uninorm/test-u32-nfc-big.c: New file.
40773         * modules/uninorm/nfc-tests: New file.
40774
40775         New module 'uninorm/nfc'.
40776         * lib/uninorm/nfc.c: New file.
40777         * modules/uninorm/nfc: New file.
40778
40779         Tests for module 'uninorm/nfd'.
40780         * tests/uninorm/test-nfd.c: New file.
40781         * tests/uninorm/test-u8-nfd.c: New file.
40782         * tests/uninorm/test-u16-nfd.c: New file.
40783         * tests/uninorm/test-u32-nfd.c: New file.
40784         * tests/uninorm/test-u32-nfd-big.sh: New file.
40785         * tests/uninorm/test-u32-nfd-big.c: New file.
40786         * tests/uninorm/test-u32-normalize-big.h: New file.
40787         * tests/uninorm/test-u32-normalize-big.c: New file.
40788         * tests/uninorm/NormalizationTest.txt: New file, created from
40789         Unicode 5.1.0 NormalizationTest.txt.
40790         * modules/uninorm/nfd-tests: New file.
40791
40792         New module 'uninorm/nfd'.
40793         * lib/uninorm/nfd.c: New file.
40794         * modules/uninorm/nfd: New file.
40795
40796         New module 'uninorm/u32-normalize'.
40797         * lib/uninorm/u32-normalize.c: New file.
40798         * modules/uninorm/u32-normalize: New file.
40799
40800         New module 'uninorm/u16-normalize'.
40801         * lib/uninorm/u16-normalize.c: New file.
40802         * modules/uninorm/u16-normalize: New file.
40803
40804         New module 'uninorm/u8-normalize'.
40805         * lib/uninorm/u8-normalize.c: New file.
40806         * lib/uninorm/normalize-internal.h: New file.
40807         * lib/uninorm/u-normalize-internal.h: New file.
40808         * modules/uninorm/u8-normalize: New file.
40809
40810         New module 'uninorm/decompose-internal'.
40811         * lib/uninorm/decompose-internal.c: New file.
40812         * modules/uninorm/decompose-internal: New file.
40813
40814         Tests for module 'uninorm/composition'.
40815         * tests/uninorm/test-composition.c: New file.
40816         * modules/uninorm/composition-tests: New file.
40817
40818         New module 'uninorm/composition'.
40819         * lib/uninorm/composition.c: New file.
40820         * lib/uninorm/composition-table.gperf: New file, generated by
40821         gen-uni-tables.
40822         * modules/uninorm/composition: New file.
40823
40824         Tests for module 'uninorm/compat-decomposition'.
40825         * tests/uninorm/test-compat-decomposition.c: New file.
40826         * modules/uninorm/compat-decomposition-tests: New file.
40827
40828         New module 'uninorm/compat-decomposition'.
40829         * lib/uninorm/decompose-internal.h: New file.
40830         * lib/uninorm/compat-decomposition.c: New file.
40831         * modules/uninorm/compat-decomposition: New file.
40832
40833         Tests for module 'uninorm/canonical-decomposition'.
40834         * tests/uninorm/test-canonical-decomposition.c: New file.
40835         * modules/uninorm/canonical-decomposition-tests: New file.
40836
40837         New module 'uninorm/canonical-decomposition'.
40838         * lib/uninorm/canonical-decomposition.c: New file.
40839         * modules/uninorm/canonical-decomposition: New file.
40840
40841         Tests for module 'uninorm/decomposition'.
40842         * tests/uninorm/test-decomposition.c: New file.
40843         * modules/uninorm/decomposition-tests: New file.
40844
40845         New module 'uninorm/decomposition'.
40846         * lib/uninorm/decomposition.c: New file.
40847         * modules/uninorm/decomposition: New file.
40848
40849         New module 'uninorm/decomposition-table'.
40850         * lib/uninorm/decomposition-table.h: New file.
40851         * lib/uninorm/decomposition-table.c: New file.
40852         * lib/uninorm/decomposition-table1.h: New file, generated by
40853         gen-uni-tables.
40854         * lib/uninorm/decomposition-table2.h: New file, generated by
40855         gen-uni-tables.
40856         * modules/uninorm/decomposition-table: New file.
40857
40858         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
40859         (UC_DECOMP_*): New enumeration items.
40860         (get_decomposition): New function.
40861         (struct decomp_table): New type.
40862         (output_decomposition, output_decomposition_tables): New functions.
40863         (unicode_composition_exclusions): New variable.
40864         (fill_composition_exclusions, debug_output_composition_tables): New
40865         functions.
40866         (main): Accept one more argument. Invoke fill_composition_exclusions.
40867         Output decomposition and composition tables.
40868
40869         New module 'uninorm/base'.
40870         * lib/uninorm.h: New file.
40871         * lib/unictype.h: Update comment.
40872         * modules/uninorm/base: New file.
40873
40874 2009-02-21  David Lutterkort  <lutter@redhat.com>
40875
40876         Tests for module 'safe-alloc'.
40877         * tests/test-safe-alloc.c: New file.
40878         * modules/safe-alloc-tests: New file.
40879
40880         New module 'safe-alloc'.
40881         * lib/safe-alloc.h: New file.
40882         * lib/safe-alloc.c: New file.
40883         * m4/safe-alloc.m4: New file.
40884         * modules/safe-alloc: New file.
40885         * doc/safe-alloc.texi: New file.
40886         * doc/gnulib.texi: Include it.
40887         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
40888         safe-alloc.
40889
40890 2009-02-18  Bruno Haible  <bruno@clisp.org>
40891
40892         Fix link error on non-glibc systems.
40893         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
40894         variable.
40895         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40896
40897 2009-02-18  Jim Meyering  <meyering@redhat.com>
40898
40899         fts: avoid used-uninitialized error due to recent change
40900         * lib/fts.c (fts_read): Guard uses of the new member,
40901         parent->fts_n_dirs_remaining, since it's not relevant for
40902         the parent of a directory specified on the command-line.
40903
40904 2009-02-17  James Youngman  <jay@gnu.org>
40905             Bruno Haible  <bruno@clisp.org>
40906
40907         * m4/include_next.m4: Reformulate comment.
40908
40909 2009-02-16  Jim Meyering  <meyering@redhat.com>
40910
40911         fts: add #if guards so that the fts_lgpl module still builds
40912         * lib/fts.c: Guard just-added hash-table-using parts with
40913         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
40914         Reported by Simon Josefsson.
40915
40916 2009-02-15  Bruno Haible  <bruno@clisp.org>
40917
40918         * modules/array-mergesort-tests: New file.
40919         * tests/test-array-mergesort.c: New file.
40920
40921         New module 'array-mergesort'.
40922         * modules/array-mergesort: New file.
40923         * lib/array-mergesort.h: New file.
40924
40925 2009-02-15  Bruno Haible  <bruno@clisp.org>
40926
40927         Fix 2009-02-07 commit.
40928         * lib/gen-uni-tables.c (output_predicate, output_category,
40929         output_combclass, output_bidi_category, output_decimal_digit,
40930         output_digit, output_numeric, output_mirror, output_scripts,
40931         output_ident_category, output_simple_mapping): Fix format directives.
40932         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
40933
40934 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
40935
40936         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
40937         fixes are available from IBM.
40938
40939 2009-02-13  Jim Meyering  <meyering@redhat.com>
40940
40941         fts: arrange not to stat non-directories in more cases
40942         This makes GNU find (when it doesn't need to stat each file)
40943         *much* more efficient at traversing reiserfs file systems.
40944         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
40945         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
40946         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
40947         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
40948         (leaf_optimization_applies): New function.
40949         (LCO_hash, LCO_compare): New helper functions.
40950         (link_count_optimize_ok): New function.
40951         (fts_stat): Initialize new member (if dir).
40952         (fts_read): Decrement parent's fts_n_dirs_remaining count if
40953         we've just stat'ed a directory.  Skip the stat call when possible.
40954         ---
40955         Note this AFS-related exchange:
40956         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
40957         and note find's pioctl call in find/fstype.c.
40958         But that is necessary only if you want to enable the
40959         optimization for AFS, and for now, I don't.
40960
40961         fts: move a function definition "up" (no semantic change)
40962         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
40963         "up" to precede upcoming use of a related function.
40964
40965 2009-02-11  Jim Meyering  <meyering@redhat.com>
40966
40967         fts: correct internal computation of nlinks (optimization-related)
40968         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
40969         whether the current entry is a directory, so don't test it.
40970
40971 2009-02-10  Bruno Haible  <bruno@clisp.org>
40972
40973         Tests for module 'uniwbrk/ulc-wordbreaks'.
40974         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
40975         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
40976         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
40977
40978         Tests for module 'uniwbrk/u32-wordbreaks'.
40979         * modules/uniwbrk/u32-wordbreaks-tests: New file.
40980         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
40981
40982         Tests for module 'uniwbrk/u16-wordbreaks'.
40983         * modules/uniwbrk/u16-wordbreaks-tests: New file.
40984         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
40985
40986         Tests for module 'uniwbrk/u8-wordbreaks'.
40987         * modules/uniwbrk/u8-wordbreaks-tests: New file.
40988         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
40989
40990 2009-02-10  Bruno Haible  <bruno@clisp.org>
40991
40992         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
40993         property.
40994         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
40995         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
40996         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
40997
40998 2009-02-10  Simon Josefsson  <simon@josefsson.org>
40999
41000         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
41001         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
41002
41003 2009-02-10  Bruno Haible  <bruno@clisp.org>
41004
41005         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
41006         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
41007         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
41008         * lib/unilbrk/u8-possible-linebreaks.c: Update.
41009         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
41010         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
41011
41012 2009-02-09  Simon Josefsson  <simon@josefsson.org>
41013
41014         * lib/sockets.h (gl_fd_to_handle): New function.
41015
41016         * tests/test-sockets.c: Call gl_fd_to_handle.
41017
41018 2009-02-09  Bruno Haible  <bruno@clisp.org>
41019
41020         * doc/havelib.texi: Document the conventions on bi-arch systems.
41021
41022 2009-02-08  Bruno Haible  <bruno@clisp.org>
41023
41024         Document the AC_LIB_LINKFLAGS macro.
41025         * doc/havelib.texi: New file, mostly written on 2005-05-24.
41026         * doc/gnulib.texi: Include it.
41027
41028 2009-02-08  Bruno Haible  <bruno@clisp.org>
41029
41030         Fix wrong order of sections, compared to TOC.
41031         * doc/gnulib.texi: Include relocatable-maint.texi after the
41032         "Regular expressions" node, not before.
41033
41034 2009-02-08  Bruno Haible  <bruno@clisp.org>
41035
41036         Tests for module 'unicase/totitle'.
41037         * modules/unicase/totitle-tests: New file.
41038
41039         Tests for module 'unicase/tolower'.
41040         * modules/unicase/tolower-tests: New file.
41041
41042         Tests for module 'unicase/toupper'.
41043         * modules/unicase/toupper-tests: New file.
41044         * tests/unicase/test-mapping-part1.h: New file.
41045         * tests/unicase/test-mapping-part2.h: New file.
41046
41047         New module 'unicase/totitle'.
41048         * modules/unicase/totitle: New file.
41049         * lib/unicase/totitle.c: New file.
41050
41051         New module 'unicase/tolower'.
41052         * modules/unicase/tolower: New file.
41053         * lib/unicase/tolower.c: New file.
41054
41055         New module 'unicase/toupper'.
41056         * modules/unicase/toupper: New file.
41057         * lib/unicase/toupper.c: New file.
41058         * lib/unicase/simple-mapping.h: New file.
41059
41060         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
41061         (mapping_table): New structure.
41062         (output_simple_mapping): New function.
41063         (main): Invoke output_simple_mapping_test and output_simple_mapping.
41064         * modules/gen-uni-tables (Description): Update.
41065         * lib/unicase/toupper.h: New file, automatically generated by
41066         gen-uni-tables.
41067         * lib/unicase/tolower.h: New file, automatically generated by
41068         gen-uni-tables.
41069         * lib/unicase/totitle.h: New file, automatically generated by
41070         gen-uni-tables.
41071         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
41072         gen-uni-tables.
41073         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
41074         gen-uni-tables.
41075         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
41076         gen-uni-tables.
41077
41078         New module 'unicase/base'.
41079         * modules/unicase/base: New file.
41080         * lib/unicase.h: New file.
41081
41082 2009-02-08  Bruno Haible  <bruno@clisp.org>
41083
41084         New module 'uniwbrk/ulc-wordbreaks'.
41085         * modules/uniwbrk/ulc-wordbreaks: New file.
41086         * lib/uniwbrk/ulc-wordbreaks.c: New file.
41087
41088         New module 'uniwbrk/u32-wordbreaks'.
41089         * modules/uniwbrk/u32-wordbreaks: New file.
41090         * lib/uniwbrk/u32-wordbreaks.c: New file.
41091
41092         New module 'uniwbrk/u16-wordbreaks'.
41093         * modules/uniwbrk/u16-wordbreaks: New file.
41094         * lib/uniwbrk/u16-wordbreaks.c: New file.
41095
41096         New module 'uniwbrk/u8-wordbreaks'.
41097         * modules/uniwbrk/u8-wordbreaks: New file.
41098         * lib/uniwbrk/u8-wordbreaks.c: New file.
41099         * lib/uniwbrk/u-wordbreaks.h: New file.
41100
41101         New module 'uniwbrk/table'.
41102         * modules/uniwbrk/table: New file.
41103         * lib/uniwbrk/wbrktable.h: New file.
41104         * lib/uniwbrk/wbrktable.c: New file.
41105
41106         New module 'uniwbrk/wordbreak-property'.
41107         * modules/uniwbrk/wordbreak-property: New file.
41108         * lib/uniwbrk/wordbreak-property.c: New file.
41109
41110         * lib/gen-uni-tables.c (WBP_*): New enum items.
41111         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
41112         (unicode_org_wbp): New variable.
41113         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
41114         New functions.
41115         (wbp_table): New structure.
41116         (output_wbp, output_wbrk_tables): New functions.
41117         (main): Accept additional argument. Invoke fill_org_wbp,
41118         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
41119         output_wbrk_tables.
41120         * modules/gen-uni-tables (Description): Update.
41121         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
41122         gen-uni-tables.
41123
41124         New module 'uniwbrk/base'.
41125         * modules/uniwbrk/base: New file.
41126         * lib/uniwbrk.h: New file.
41127
41128 2009-02-08  Bruno Haible  <bruno@clisp.org>
41129
41130         Update to Unicode 5.1.0.
41131         * lib/gen-uni-tables.c (is_property_alphabetic): Include
41132         U+2185..U+2188.
41133         (is_property_default_ignorable_code_point): Don't include characters
41134         of category Cc or Cs and not-a-characters.
41135         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
41136         U+0D79, U+109E, U+109F, U+A60C.
41137         * lib/unictype/bidi_of.h: Regenerated.
41138         * lib/unictype/blocks.h: Regenerated.
41139         * lib/unictype/categ_C.h: Regenerated.
41140         * lib/unictype/categ_Cf.h: Regenerated.
41141         * lib/unictype/categ_Cn.h: Regenerated.
41142         * lib/unictype/categ_L.h: Regenerated.
41143         * lib/unictype/categ_Ll.h: Regenerated.
41144         * lib/unictype/categ_Lm.h: Regenerated.
41145         * lib/unictype/categ_Lo.h: Regenerated.
41146         * lib/unictype/categ_Lu.h: Regenerated.
41147         * lib/unictype/categ_M.h: Regenerated.
41148         * lib/unictype/categ_Mc.h: Regenerated.
41149         * lib/unictype/categ_Me.h: Regenerated.
41150         * lib/unictype/categ_Mn.h: Regenerated.
41151         * lib/unictype/categ_N.h: Regenerated.
41152         * lib/unictype/categ_Nd.h: Regenerated.
41153         * lib/unictype/categ_Nl.h: Regenerated.
41154         * lib/unictype/categ_No.h: Regenerated.
41155         * lib/unictype/categ_P.h: Regenerated.
41156         * lib/unictype/categ_Pd.h: Regenerated.
41157         * lib/unictype/categ_Pe.h: Regenerated.
41158         * lib/unictype/categ_Pf.h: Regenerated.
41159         * lib/unictype/categ_Pi.h: Regenerated.
41160         * lib/unictype/categ_Po.h: Regenerated.
41161         * lib/unictype/categ_Ps.h: Regenerated.
41162         * lib/unictype/categ_S.h: Regenerated.
41163         * lib/unictype/categ_Sk.h: Regenerated.
41164         * lib/unictype/categ_Sm.h: Regenerated.
41165         * lib/unictype/categ_So.h: Regenerated.
41166         * lib/unictype/categ_of.h: Regenerated.
41167         * lib/unictype/combining.h: Regenerated.
41168         * lib/unictype/ctype_alnum.h: Regenerated.
41169         * lib/unictype/ctype_alpha.h: Regenerated.
41170         * lib/unictype/ctype_graph.h: Regenerated.
41171         * lib/unictype/ctype_lower.h: Regenerated.
41172         * lib/unictype/ctype_print.h: Regenerated.
41173         * lib/unictype/ctype_punct.h: Regenerated.
41174         * lib/unictype/ctype_upper.h: Regenerated.
41175         * lib/unictype/decdigit.h: Regenerated.
41176         * lib/unictype/digit.h: Regenerated.
41177         * lib/unictype/mirror.h: Regenerated.
41178         * lib/unictype/numeric.h: Regenerated.
41179         * lib/unictype/pr_alphabetic.h: Regenerated.
41180         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
41181         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
41182         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
41183         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
41184         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
41185         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
41186         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
41187         * lib/unictype/pr_combining.h: Regenerated.
41188         * lib/unictype/pr_dash.h: Regenerated.
41189         * lib/unictype/pr_decimal_digit.h: Regenerated.
41190         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
41191         * lib/unictype/pr_deprecated.h: Regenerated.
41192         * lib/unictype/pr_diacritic.h: Regenerated.
41193         * lib/unictype/pr_extender.h: Regenerated.
41194         * lib/unictype/pr_format_control.h: Regenerated.
41195         * lib/unictype/pr_grapheme_base.h: Regenerated.
41196         * lib/unictype/pr_grapheme_extend.h: Regenerated.
41197         * lib/unictype/pr_grapheme_link.h: Regenerated.
41198         * lib/unictype/pr_id_continue.h: Regenerated.
41199         * lib/unictype/pr_id_start.h: Regenerated.
41200         * lib/unictype/pr_ideographic.h: Regenerated.
41201         * lib/unictype/pr_ignorable_control.h: Regenerated.
41202         * lib/unictype/pr_lowercase.h: Regenerated.
41203         * lib/unictype/pr_math.h: Regenerated.
41204         * lib/unictype/pr_numeric.h: Regenerated.
41205         * lib/unictype/pr_other_alphabetic.h: Regenerated.
41206         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
41207         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
41208         * lib/unictype/pr_other_id_continue.h: Regenerated.
41209         * lib/unictype/pr_other_lowercase.h: Regenerated.
41210         * lib/unictype/pr_other_math.h: Regenerated.
41211         * lib/unictype/pr_punctuation.h: Regenerated.
41212         * lib/unictype/pr_sentence_terminal.h: Regenerated.
41213         * lib/unictype/pr_soft_dotted.h: Regenerated.
41214         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
41215         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
41216         * lib/unictype/pr_unified_ideograph.h: Regenerated.
41217         * lib/unictype/pr_uppercase.h: Regenerated.
41218         * lib/unictype/pr_xid_continue.h: Regenerated.
41219         * lib/unictype/pr_xid_start.h: Regenerated.
41220         * lib/unictype/pr_zero_width.h: Regenerated.
41221         * lib/unictype/scripts.h: Regenerated.
41222         * lib/unictype/scripts_byname.gperf: Regenerated.
41223         * lib/unictype/sy_java_ident.h: Regenerated.
41224         * lib/unilbrk/lbrkprop1.h: Regenerated.
41225         * lib/unilbrk/lbrkprop2.h: Regenerated.
41226         * tests/unictype/test-categ_C.c: Regenerated.
41227         * tests/unictype/test-categ_Cf.c: Regenerated.
41228         * tests/unictype/test-categ_Cn.c: Regenerated.
41229         * tests/unictype/test-categ_L.c: Regenerated.
41230         * tests/unictype/test-categ_Ll.c: Regenerated.
41231         * tests/unictype/test-categ_Lm.c: Regenerated.
41232         * tests/unictype/test-categ_Lo.c: Regenerated.
41233         * tests/unictype/test-categ_Lu.c: Regenerated.
41234         * tests/unictype/test-categ_M.c: Regenerated.
41235         * tests/unictype/test-categ_Mc.c: Regenerated.
41236         * tests/unictype/test-categ_Me.c: Regenerated.
41237         * tests/unictype/test-categ_Mn.c: Regenerated.
41238         * tests/unictype/test-categ_N.c: Regenerated.
41239         * tests/unictype/test-categ_Nd.c: Regenerated.
41240         * tests/unictype/test-categ_Nl.c: Regenerated.
41241         * tests/unictype/test-categ_No.c: Regenerated.
41242         * tests/unictype/test-categ_P.c: Regenerated.
41243         * tests/unictype/test-categ_Pd.c: Regenerated.
41244         * tests/unictype/test-categ_Pe.c: Regenerated.
41245         * tests/unictype/test-categ_Pf.c: Regenerated.
41246         * tests/unictype/test-categ_Pi.c: Regenerated.
41247         * tests/unictype/test-categ_Po.c: Regenerated.
41248         * tests/unictype/test-categ_Ps.c: Regenerated.
41249         * tests/unictype/test-categ_S.c: Regenerated.
41250         * tests/unictype/test-categ_Sk.c: Regenerated.
41251         * tests/unictype/test-categ_Sm.c: Regenerated.
41252         * tests/unictype/test-categ_So.c: Regenerated.
41253         * tests/unictype/test-ctype_alnum.c: Regenerated.
41254         * tests/unictype/test-ctype_alpha.c: Regenerated.
41255         * tests/unictype/test-ctype_graph.c: Regenerated.
41256         * tests/unictype/test-ctype_lower.c: Regenerated.
41257         * tests/unictype/test-ctype_print.c: Regenerated.
41258         * tests/unictype/test-ctype_punct.c: Regenerated.
41259         * tests/unictype/test-ctype_upper.c: Regenerated.
41260         * tests/unictype/test-decdigit.h: Regenerated.
41261         * tests/unictype/test-digit.h: Regenerated.
41262         * tests/unictype/test-numeric.h: Regenerated.
41263         * tests/unictype/test-pr_alphabetic.c: Regenerated.
41264         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
41265         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
41266         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
41267         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
41268         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
41269         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
41270         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
41271         * tests/unictype/test-pr_combining.c: Regenerated.
41272         * tests/unictype/test-pr_dash.c: Regenerated.
41273         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
41274         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
41275         * tests/unictype/test-pr_deprecated.c: Regenerated.
41276         * tests/unictype/test-pr_diacritic.c: Regenerated.
41277         * tests/unictype/test-pr_extender.c: Regenerated.
41278         * tests/unictype/test-pr_format_control.c: Regenerated.
41279         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
41280         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
41281         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
41282         * tests/unictype/test-pr_id_continue.c: Regenerated.
41283         * tests/unictype/test-pr_id_start.c: Regenerated.
41284         * tests/unictype/test-pr_ideographic.c: Regenerated.
41285         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
41286         * tests/unictype/test-pr_lowercase.c: Regenerated.
41287         * tests/unictype/test-pr_math.c: Regenerated.
41288         * tests/unictype/test-pr_numeric.c: Regenerated.
41289         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
41290         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
41291         Regenerated.
41292         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
41293         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
41294         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
41295         * tests/unictype/test-pr_other_math.c: Regenerated.
41296         * tests/unictype/test-pr_punctuation.c: Regenerated.
41297         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
41298         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
41299         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
41300         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
41301         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
41302         * tests/unictype/test-pr_uppercase.c: Regenerated.
41303         * tests/unictype/test-pr_xid_continue.c: Regenerated.
41304         * tests/unictype/test-pr_xid_start.c: Regenerated.
41305         * tests/unictype/test-pr_zero_width.c: Regenerated.
41306
41307         Update to Unicode 5.1.0.
41308         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
41309         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
41310         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
41311         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
41312         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
41313         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
41314         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
41315         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
41316         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
41317         (nonspacing_table_ind): Update.
41318         * tests/uniwidth/test-uc_width2.sh: Update expected result.
41319
41320         Update to Unicode 5.1.0.
41321         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
41322         code transform.
41323         * lib/uniname/uniname.c (unicode_character_name,
41324         unicode_name_character): Add the range 0x1Fxxx to the code transform.
41325         * lib/uniname/uninames.h: Regenerated.
41326         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
41327
41328 2009-02-07  Bruno Haible  <bruno@clisp.org>
41329
41330         Merge gen-ctype and gen-lbrk into a single program.
41331         * lib/gen-uni-tables.c: New file, incorporating
41332         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
41333         Add directory prefixes to the names of the generated files.
41334         * lib/unictype/gen-ctype.c: Remove file.
41335         * lib/unilbrk/gen-lbrk.c: Remove file.
41336         * modules/gen-uni-tables: New file.
41337         * modules/unictype/gen-ctype: Remove file.
41338         * modules/unilbrk/gen-lbrk: Remove file.
41339
41340 2009-02-07  Bruno Haible  <bruno@clisp.org>
41341
41342         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
41343
41344         New module 'unistr/u32-strcoll'.
41345         * modules/unistr/u32-strcoll: New file.
41346         * lib/unistr/u32-strcoll.c: New file.
41347
41348         New module 'unistr/u16-strcoll'.
41349         * modules/unistr/u16-strcoll: New file.
41350         * lib/unistr/u16-strcoll.c: New file.
41351
41352         New module 'unistr/u8-strcoll'.
41353         * modules/unistr/u8-strcoll: New file.
41354         * lib/unistr/u8-strcoll.c: New file.
41355         * lib/unistr/u-strcoll.h: New file.
41356
41357 2009-02-07  Bruno Haible  <bruno@clisp.org>
41358
41359         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
41360         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
41361         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
41362         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
41363         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
41364         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
41365
41366 2009-02-07  Bruno Haible  <bruno@clisp.org>
41367
41368         Make 64-bit clean.
41369         * lib/unictype/gen-ctype.c (output_predicate, output_category,
41370         output_combclass, output_bidi_category, output_decimal_digit,
41371         output_digit, output_numeric, output_mirror, output_scripts,
41372         output_ident_category): Use proper width specifier in format strings.
41373
41374 2009-02-07  Bruno Haible  <bruno@clisp.org>
41375
41376         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
41377         failure behaviour.
41378
41379 2009-02-07  Jim Meyering  <meyering@redhat.com>
41380
41381         regex: avoid compilation failure with upcoming gcc-4.4
41382         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
41383         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
41384         "... error: integer overflow in preprocessor expression".
41385
41386 2009-02-05  Ben Pfaff  <blp@gnu.org>
41387
41388         Fix link errors on Windows when close module is used.
41389         * modules/close: Add $(LIB_CLOSE) to Link section.
41390         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
41391         $(LIB_CLOSE) on Windows.
41392
41393 2009-02-05  Jim Meyering  <meyering@redhat.com>
41394
41395         still avoid unused-parameter warnings, but do it cleanly
41396         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
41397         (get_fs_usage): Cast to void instead.
41398         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
41399         (dev_from_mount_options, read_file_system_list): Cast to void.
41400         Prompted by Bruno Haible.
41401
41402 2009-02-04  Jim Meyering  <meyering@redhat.com>
41403
41404         fsusage.c: correct copyright year
41405         * lib/fsusage.c: Reflect year in which the change is pushed into
41406
41407         avoid misc. warnings
41408         * lib/fsusage.c (UNUSED_PARAM): Define.
41409         (get_fs_usage): Mark parameter "disk" as unused.
41410         * lib/getugroups.c (getgrent): Use "void" in prototype.
41411         * lib/mountlist.c: Mark unused parameters.
41412         (read_file_system_list): Declare a local with "const".
41413         * lib/nanosleep.c (getnow): Declare static.
41414         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
41415
41416         dirfd: set errno upon failure
41417         * lib/dirfd.c: Include <errno.h>.
41418         Set errno to ENOTSUP when returning -1.
41419         * modules/dirfd (Depends-on): Add errno.
41420         Suggested by John Kodis <kodis@comcast.net>.
41421
41422 2009-02-01  Bruno Haible  <bruno@clisp.org>
41423
41424         Don't assume sizeof (long) >= sizeof (void *).
41425         * lib/memcmp.c: Include stdint.h.
41426         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
41427         srcp2 to 'const byte *'.
41428         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
41429         types to uintptr_t.
41430         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
41431         * modules/memcmp (Depends-on): Add stdint.
41432         Reported by Ozkan Sezer <sezeroz@gmail.com>.
41433
41434 2009-01-30  Eric Blake  <ebb9@byu.net>
41435
41436         fix more require-before-expand issues
41437         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
41438         expand, AC_PROG_AWK.
41439         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
41440
41441 2009-01-28  Eric Blake  <ebb9@byu.net>
41442
41443         version-etc: use consistent URL formatting
41444         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
41445         Improve formatting.  Use fputs for string without %.
41446
41447 2009-01-28  Jim Meyering  <meyering@redhat.com>
41448
41449         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
41450         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
41451         "underquoted definition of NAME" from autoconf-2.59.
41452
41453 2009-01-28  Bruno Haible  <bruno@clisp.org>
41454
41455         * doc/gnulib.texi: Add "Obsolete modules" to index.
41456
41457 2009-01-28  Jim Meyering  <meyering@redhat.com>
41458
41459         useless-if-before-free: recognize more variants
41460         * build-aux/useless-if-before-free: Also recognize e.g.,
41461         if (NULL != p) free (p);
41462
41463 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
41464
41465         test-getaddrinfo: skip (don't fail) this test when there's no network
41466         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
41467         on the presumption that it means you lack network access.
41468
41469 2009-01-26  Jim Meyering  <meyering@redhat.com>
41470
41471         fflush: avoid warnings on modern systems
41472         * lib/fflush.c (rpl_fflush): Move declarations of locals,
41473         pos and result, into scopes where they're used.
41474
41475 2009-01-26  Eric Blake  <ebb9@byu.net>
41476
41477         Silence warning reintroduced by recent extensions patch.
41478         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
41479         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
41480         autoconf.
41481
41482         Backport improved autoconf semantics of AC_DEFUN_ONCE.
41483         * m4/00gnulib.m4: New file.
41484         * gnulib-tool (func_get_filelist): Always use it.
41485         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
41486         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
41487
41488 2009-01-25  Bruno Haible  <bruno@clisp.org>
41489
41490         Make test-quotearg work on MacOS X and AIX.
41491         * tests/test-quotearg.sh: New file.
41492         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
41493         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
41494         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
41495         include <libintl.h>.
41496         (fake_locale): Remove variable.
41497         (gettext, dgettext, dcgettext): Remove functions.
41498         (main): Instead of setting a fake locale, set a real locale. Call
41499         textdomain and bindtextdomain.
41500         * modules/quotearg-tests (Files): Add the new files.
41501         (Depends-on): Add gettext, setenv, unsetenv.
41502         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
41503         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
41504         Augment TESTS_ENVIRONMENT.
41505
41506 2009-01-25  Bruno Haible  <bruno@clisp.org>
41507
41508         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
41509         fr_FR.ISO8859-1 locale on MacOS X.
41510         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
41511         ja_JP.eucJP locale on MacOS X.
41512         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
41513         zh_CN.GB18030 locale on MacOS X.
41514
41515 2009-01-25  Bruno Haible  <bruno@clisp.org>
41516
41517         Avoid link errors on MacOS X 10.3.
41518         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
41519         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
41520
41521 2009-01-25  Bruno Haible  <bruno@clisp.org>
41522
41523         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
41524         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
41525         * modules/pipe (Files): Remove m4/posix_spawn.m4.
41526         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
41527         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
41528         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
41529         posix_spawnattr_init, posix_spawnattr_setsigmask,
41530         posix_spawnattr_setflags, posix_spawnattr_destroy.
41531
41532         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
41533         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
41534         * modules/execute (Files): Remove m4/posix_spawn.m4.
41535         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
41536         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
41537         posix_spawnattr_init, posix_spawnattr_setsigmask,
41538         posix_spawnattr_setflags, posix_spawnattr_destroy.
41539
41540 2009-01-25  Bruno Haible  <bruno@clisp.org>
41541
41542         * lib/glthread/threadlib.c: Include <stdlib.h>.
41543
41544 2009-01-25  Bruno Haible  <bruno@clisp.org>
41545
41546         * lib/glthread/threadlib.c (dummy): New declaration.
41547
41548 2009-01-25  Bruno Haible  <bruno@clisp.org>
41549
41550         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
41551         multibyte characters also for the GB18030 encoding. Don't crash when
41552         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
41553
41554 2009-01-25  Bruno Haible  <bruno@clisp.org>
41555
41556         Avoid redefining 'struct random_data' on OSF/1 5.1.
41557         * lib/stdlib.in.h: Include <random.h> if it exists.
41558         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
41559         HAVE_RANDOM_H. Include <random.h> when testing whether
41560         'struct random_data' exists.
41561         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
41562
41563 2009-01-25  Bruno Haible  <bruno@clisp.org>
41564
41565         Don't install charset.alias on MacOS X >= 10.3.
41566         * lib/localcharset.c (DARWIN7): New macro.
41567         (get_charset_aliases): Hardcode the result for Darwin7.
41568         * modules/localcharset (install-exec-local): Don't install
41569         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
41570
41571 2009-01-25  Bruno Haible  <bruno@clisp.org>
41572
41573         Don't install charset.alias on mingw and Cygwin.
41574         * modules/localcharset (install-exec-local): Don't install
41575         charset.alias on mingw and Cygwin, if the file does not yet exist.
41576         The result for these platforms is hardcoded in localcharset.c.
41577
41578 2009-01-25  Bruno Haible  <bruno@clisp.org>
41579
41580         Make it possible again to use AC_GNU_SOURCE together with gnulib.
41581         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
41582         before requiring AC_USE_SYSTEM_EXTENSIONS.
41583
41584 2009-01-25  Jim Meyering  <meyering@redhat.com>
41585
41586         c-strtod: avoid warnings
41587         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
41588         "assignment discards qualifiers from pointer target type" warnings.
41589
41590 2009-01-24  Bruno Haible  <bruno@clisp.org>
41591
41592         Add support for non-UTF-8 locales on MacOS X.
41593         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
41594         canonical encodings. For Darwin 7 and newer, don't map traditional
41595         encodings to UTF-8.
41596         Reported by Vincent Lefevre <vincent@vinc17.org>
41597         at <http://savannah.gnu.org/bugs/?25235>.
41598
41599 2009-01-24  Bruno Haible  <bruno@clisp.org>
41600
41601         * doc/gnulib.texi (Obsolete modules): New section.
41602         Reported by Mike Frysinger <vapier@gentoo.org>.
41603
41604 2009-01-24  Bruno Haible  <bruno@clisp.org>
41605
41606         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
41607         (%.dvi): New rule.
41608
41609 2009-01-24  Bruno Haible  <bruno@clisp.org>
41610
41611         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
41612         Reported by Eric Blake.
41613
41614 2009-01-24  Bruno Haible  <bruno@clisp.org>
41615
41616         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
41617         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
41618         Reported by Gary V. Vaughan <gary@gnu.org>.
41619
41620 2009-01-24  Bruno Haible  <bruno@clisp.org>
41621
41622         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
41623
41624 2009-01-23  Bruno Haible  <bruno@clisp.org>
41625
41626         Make c-strtod, c-strtold usable in libraries.
41627         * lib/c-strtod.c: Include string.h instead of xalloc.h.
41628         (C_STRTOD): Call strdup instead of xstrdup.
41629         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
41630         * modules/c-strtold (Depends-on): Likewise.
41631         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
41632         * NEWS: Mention the change.
41633         Reported by Michael Gold <mgold@ncf.ca>.
41634
41635 2009-01-23  Jim Meyering  <meyering@redhat.com>
41636
41637         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
41638         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
41639         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
41640
41641 2009-01-23  Simon Josefsson  <simon@josefsson.org>
41642
41643         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
41644         GNU CoreUtils.
41645         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
41646         * modules/version-etc (Description): Update.
41647
41648 2009-01-22  Bruno Haible  <bruno@clisp.org>
41649
41650         Cache the C locale object.
41651         * lib/c-strtod.c (c_locale_cache): New variable.
41652         (c_locale): New function.
41653         (C_STRTOD): Use it, and don't call freelocale.
41654         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
41655         Suggested by Paolo Bonzini.
41656
41657 2009-01-21  Bruno Haible  <bruno@clisp.org>
41658
41659         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
41660         conditions other than overflow.
41661
41662 2009-01-21  Bruno Haible  <bruno@clisp.org>
41663
41664         * lib/c-strtod.c: Include errno.h.
41665         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
41666         value from STRTOD_L and STRTOD.
41667
41668 2009-01-21  Bruno Haible  <bruno@clisp.org>
41669         and Jim Meyering  <meyering@redhat.com>
41670
41671         nanosleep: skip configure test (fail it) for apple universal builds
41672         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
41673         universal builds, assume that nanosleep does not work.
41674         * modules/nanosleep (Depends-on): Add multiarch.
41675
41676         mktime: skip configure test (fail it) for apple universal builds
41677         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
41678         universal builds, assume that mktime does not work.
41679         * modules/mktime (Depends-on): Add multiarch.
41680
41681 2009-01-21  Eric Blake  <ebb9@byu.net>
41682
41683         multiarch: avoid expand-before-require warning
41684         * modules/multiarch (configure.ac): Require, rather than expand,
41685         gl_MULTIARCH.
41686         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
41687         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
41688         enforce that all clients require it.  Partial reversion of
41689         2008-12-29 patch.
41690
41691         error: avoid expand-before-require warning
41692         * modules/errno (configure.ac): Require, rather than expand,
41693         gl_HEADER_ERRNO_H.
41694         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
41695         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
41696         enforce that all clients require it.
41697
41698         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
41699         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
41700         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
41701         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
41702
41703 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
41704
41705         Revert:
41706         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
41707
41708         regex: do not depend on obsolete modules.
41709         * modules/regex: Remove memcmp and memmove.
41710
41711 2009-01-20  Bruno Haible  <bruno@clisp.org>
41712
41713         Make the 'link' module link on Windows NT 4.
41714         * lib/link.c (_WIN32_WINNT): Don't define.
41715         (CreateHardLinkFuncType): New type.
41716         (CreateHardLinkFunc, initialized): New variables.
41717         (initialize): New function.
41718         (link): Invoke CreateHardLink indirectly through the function pointer.
41719
41720 2009-01-20  Bruno Haible  <bruno@clisp.org>
41721
41722         Fix compilation failure on mingw.
41723         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
41724
41725 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
41726
41727         * doc/c-strtod.texi: Mention a couple of restrictions.
41728
41729 2009-01-20  Jim Meyering  <meyering@redhat.com>
41730
41731         gettimeofday: move more declarations out of functions
41732         * lib/gettimeofday.c: Move extern declarations of tzset and
41733         gmtime out of containing functions.  Prompted by Bruno Haible.
41734
41735 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
41736
41737         regex: do not depend on obsolete modules.
41738         * modules/regex: Remove memcmp and memmove.
41739
41740 2009-01-19  Bruno Haible  <bruno@clisp.org>
41741
41742         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
41743         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
41744         gl_BIGENDIAN, not AC_C_BIGENDIAN.
41745         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
41746         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
41747
41748 2009-01-19  Bruno Haible  <bruno@clisp.org>
41749
41750         * tests/test-link.c: Include <errno.h>.
41751         (main): Exit with code 77 when a hard link cannot be created due to
41752         the file system.
41753         * tests/test-link.sh: Skip test when a hard link cannot be created due
41754         to the file system.
41755         Suggested by Eric Blake.
41756
41757 2009-01-19  Martin Lambers  <marlam@marlam.de>
41758
41759         * modules/link-tests: New file.
41760         * tests/test-link.sh: New file.
41761         * tests/test-link.c: New file.
41762
41763 2009-01-19  Eric Blake  <ebb9@byu.net>
41764
41765         doc: mention another function added in cygwin 1.7.0
41766         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
41767         Another new function in cygwin 1.7.
41768
41769 2009-01-19  Bruno Haible  <bruno@clisp.org>
41770
41771         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
41772         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
41773         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
41774         gl_BIGENDIAN, not AC_C_BIGENDIAN.
41775         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
41776         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
41777         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
41778         * m4/md4.m4 (gl_MD4): Likewise.
41779         * m4/md5.m4 (gl_MD5): Likewise.
41780         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
41781         * m4/sha1.m4 (gl_SHA1): Likewise.
41782         * m4/sha256.m4 (gl_SHA256): Likewise.
41783         * m4/sha512.m4 (gl_SHA512): Likewise.
41784
41785 2009-01-19  Bruno Haible  <bruno@clisp.org>
41786
41787         * modules/uniname/uniname-tests (Depends-on): Add progname.
41788         * tests/uniname/test-uninames.c: Include progname.h.
41789         (main): Call set_program_name.
41790
41791         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
41792         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
41793         (main): Call set_program_name.
41794
41795         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
41796         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
41797         (main): Call set_program_name.
41798
41799         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
41800         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
41801         (main): Call set_program_name.
41802
41803         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
41804         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
41805         (main): Call set_program_name.
41806
41807         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
41808         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
41809         (main): Call set_program_name.
41810
41811         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
41812         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
41813         (main): Call set_program_name.
41814
41815         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
41816         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
41817         (main): Call set_program_name.
41818
41819         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
41820         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
41821         (main): Call set_program_name.
41822
41823 2009-01-19  Eric Blake  <ebb9@byu.net>
41824
41825         test-unistd: test previous patch
41826         * tests/test-unistd.c: Test *_FILENO macros.
41827
41828         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
41829         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
41830         Guarantee a definition.
41831         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
41832         * modules/unistd-safer (Depends-on): Add dependency on unistd.
41833         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
41834         * lib/dup-safer.c (STDERR_FILENO): Likewise.
41835         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
41836         Likewise.
41837         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
41838         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
41839         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
41840         Likewise.
41841         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
41842         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
41843         (STDERR_FILENO): Likewise.
41844         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
41845         (STDERR_FILENO): Likewise.
41846         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
41847         (STDERR_FILENO): Likewise.
41848         Reported by Elbert Pol.
41849
41850 2009-01-19  Eric Blake  <ebb9@byu.net>
41851
41852         doc: mention more functions added in cygwin 1.7.0
41853         * doc/posix-functions/abort.texi (abort): Update wording related
41854         to cygwin.
41855         * doc/posix-functions/daylight.texi (daylight): Likewise.
41856         * doc/posix-functions/optarg.texi (optarg): Likewise.
41857         * doc/posix-functions/optarg.texi (opterr): Likewise.
41858         * doc/posix-functions/optarg.texi (optind): Likewise.
41859         * doc/posix-functions/optarg.texi (optopt): Likewise.
41860         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
41861         worked in 1.5.x, and was withdrawn in 1.7.
41862         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
41863         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
41864         cygwin versions.
41865         * doc/posix-functions/perror.texi (perror): Likewise.
41866         * doc/posix-functions/printf.texi (printf): Likewise.
41867         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
41868         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
41869         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
41870         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
41871         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
41872         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
41873         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
41874         Likewise.
41875         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
41876         Likewise.
41877         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
41878         this function.
41879         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
41880         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
41881         Likewise.
41882         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
41883         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
41884         * doc/posix-functions/confstr.texi (confstr): Likewise.
41885         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
41886         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
41887         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
41888         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
41889         * doc/posix-functions/fputws.texi (fputws): Likewise.
41890         * doc/posix-functions/fwide.texi (fwide): Likewise.
41891         * doc/posix-functions/getwc.texi (getwc): Likewise.
41892         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
41893         * doc/posix-functions/putwc.texi (putwc): Likewise.
41894         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
41895         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
41896         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
41897         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
41898         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
41899         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
41900         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
41901         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
41902         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
41903         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
41904         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
41905
41906 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
41907
41908         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
41909         * lib/ioctl.c: Include <sys/ioctl.h>.
41910
41911 2009-01-19  Simon Josefsson  <simon@josefsson.org>
41912
41913         * modules/getdate-tests (Depends-on): Add progname.
41914         * tests/test-getdate.c: Use progname module, to avoid link errors
41915         on non-glibc systems.
41916
41917 2009-01-18  Simon Josefsson  <simon@josefsson.org>
41918
41919         * modules/filenamecat-tests (Depends-on): Add progname.
41920         * modules/fstrcmp-tests (Depends-on): Likewise.
41921
41922         * tests/test-filenamecat.c: Use progname module, to avoid link
41923         errors on non-glibc systems.
41924         * tests/test-fstrcmp.c: Likewise.
41925
41926 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
41927
41928         gettimeofday: avoid warning: nested extern declaration of 'localtime'
41929         * lib/gettimeofday.c: Move extern declaration out of function.
41930
41931 2009-01-18  Bruno Haible  <bruno@clisp.org>
41932
41933         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
41934         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
41935         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
41936
41937 2009-01-18  Bruno Haible  <bruno@clisp.org>
41938
41939         * lib/strftime.c (MEMPCPY): Remove unused macro.
41940         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
41941
41942 2009-01-18  Martin Lambers  <marlam@marlam.de>
41943
41944         New module 'link'.
41945         * lib/unistd.in.h (link): New declaration.
41946         * lib/link.c: New file.
41947         * m4/link.m4: New file.
41948         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
41949         HAVE_LINK.
41950         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
41951         * modules/link: New file.
41952         * doc/posix-functions/link.texi: Mention the new module.
41953
41954 2009-01-18  Bruno Haible  <bruno@clisp.org>
41955
41956         * tests/test-avltree_list.c (main): Call set_program_name.
41957         * tests/test-avltree_oset.c (main): Likewise.
41958         * tests/test-obstack-printf.c: Include progname.h.
41959         (main): Call set_program_name.
41960         * tests/test-quotearg.c: Include progname.h.
41961         (main): Call set_program_name.
41962         * tests/test-xmemdup0.c: Include progname.h.
41963         (main): Call set_program_name.
41964
41965 2009-01-18  Bruno Haible  <bruno@clisp.org>
41966
41967         New module 'alphasort'.
41968         * lib/dirent.in.h (alphasort): New declaration.
41969         * lib/alphasort.c: New file, from glibc with modifications.
41970         * m4/alphasort.m4: New file.
41971         * modules/alphasort: New file.
41972         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
41973         HAVE_ALPHASORT.
41974         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
41975         HAVE_ALPHASORT.
41976         * doc/posix-functions/alphasort.texi: Mention the new module and the
41977         portability problems.
41978
41979 2009-01-18  Bruno Haible  <bruno@clisp.org>
41980
41981         New module 'scandir'.
41982         * lib/dirent.in.h (scandir): New declaration.
41983         * lib/scandir.c: New file, from glibc with modifications.
41984         * m4/scandir.m4: New file.
41985         * modules/scandir: New file.
41986         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
41987         HAVE_SCANDIR.
41988         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
41989         HAVE_SCANDIR.
41990         * doc/posix-functions/scandir.texi: Mention the new module and the
41991         portability problems.
41992
41993 2009-01-17  Bruno Haible  <bruno@clisp.org>
41994
41995         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
41996         Update documentation.
41997         (func_remove_suffix): Escape all dots in the suffix. Update
41998         documentation.
41999         (func_filter_filelist): Update documentation.
42000         Reported by Ralf Wildenhues.
42001
42002 2009-01-17  Bruno Haible  <bruno@clisp.org>
42003
42004         * modules/dprintf-posix-tests: New file.
42005         * tests/test-dprintf-posix.sh: New file.
42006         * tests/test-dprintf-posix.c: New file.
42007
42008         New modules 'dprintf', 'dprintf-posix'.
42009         * lib/stdio.in.h (dprintf): New declaration.
42010         * lib/dprintf.c: New file.
42011         * m4/dprintf.m4: New file.
42012         * m4/dprintf-posix.m4: New file.
42013         * modules/dprintf: New file.
42014         * modules/dprintf-posix: New file.
42015         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
42016         HAVE_DPRINTF, REPLACE_DPRINTF.
42017         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
42018         HAVE_DPRINTF, REPLACE_DPRINTF.
42019         * doc/posix-functions/dprintf.texi: Mention the new modules.
42020
42021 2009-01-17  Bruno Haible  <bruno@clisp.org>
42022
42023         * modules/vdprintf-posix-tests: New file.
42024         * tests/test-vdprintf-posix.sh: New file.
42025         * tests/test-vdprintf-posix.c: New file.
42026
42027         New modules 'vdprintf', 'vdprintf-posix'.
42028         * lib/stdio.in.h (vdprintf): New declaration.
42029         * lib/vdprintf.c: New file.
42030         * m4/vdprintf.m4: New file.
42031         * m4/vdprintf-posix.m4: New file.
42032         * modules/vdprintf: New file.
42033         * modules/vdprintf-posix: New file.
42034         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
42035         HAVE_VDPRINTF, REPLACE_VDPRINTF.
42036         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
42037         HAVE_VDPRINTF, REPLACE_VDPRINTF.
42038         * doc/posix-functions/vdprintf.texi: Mention the new modules.
42039
42040 2009-01-17  Bruno Haible  <bruno@clisp.org>
42041
42042         Fix replacement of fopen on mingw.
42043         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
42044         mingw.
42045
42046 2009-01-17  Bruno Haible  <bruno@clisp.org>
42047
42048         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
42049         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
42050
42051 2009-01-17  Bruno Haible  <bruno@clisp.org>
42052
42053         Avoid test-fflush2.sh failure on mingw.
42054         * tests/test-fflush2.c: Include binary-io.h.
42055         (main): Put standard input into binary mode.
42056         * modules/fflush-tests (Depends-on): Add binary-io.
42057
42058 2009-01-17  Bruno Haible  <bruno@clisp.org>
42059
42060         * lib/wchar.in.h: In another particular situation, include only the
42061         system's <wchar.h> file.
42062         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
42063         Reported by Albert Chin-A-Young <china@thewrittenword.com>
42064         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
42065
42066 2009-01-17  Bruno Haible  <bruno@clisp.org>
42067
42068         Support for stripping executables in --enable-relocatable.
42069         * build-aux/install-reloc: Expect one more argument, or an environment
42070         variable RELOC_STRIP_PROG. If set, strip the destination program and
42071         its wrapper.
42072         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
42073         RELOC_STRIP_PROG.
42074         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
42075         to set RELOCATABLE_STRIP.
42076         * NEWS: Mention the new Makefile requirement.
42077
42078 2009-01-17  Bruno Haible  <bruno@clisp.org>
42079
42080         * build-aux/install-reloc: Remove debugging information left over by
42081         C compiler on MacOS X.
42082
42083 2009-01-17  Bruno Haible  <bruno@clisp.org>
42084
42085         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
42086         * lib/progreloc.c (find_executable): Fix type of pointer passed to
42087         _NSGetExecutablePath.
42088
42089 2009-01-16  Jim Meyering  <meyering@redhat.com>
42090
42091         strerror: avoid warnings about discarding "const"
42092         * lib/strerror.c (rpl_strerror): Instead of returning a const
42093         string from each and every "case", use a variable, and add a single
42094         cast after the switch.
42095
42096 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
42097
42098         * lib/arpa_inet.in.h: Add extern "C" block for C++.
42099
42100 2009-01-16  Bruno Haible  <bruno@clisp.org>
42101
42102         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
42103         array initializer syntax that also works in C++ mode.
42104         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
42105
42106 2009-01-16  Jim Meyering  <meyering@redhat.com>
42107
42108         poll: suppress a warning
42109         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
42110         to ignore "...unsigned expression < 0 is always false" warnings.
42111
42112 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
42113
42114         poll: remove declarations of unused variables
42115         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
42116         sockbuf and optlen.
42117
42118 2009-01-15  Bruno Haible  <bruno@clisp.org>
42119
42120         Make fflush-after-ungetc POSIX compliant on BSD systems.
42121         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
42122         (clear_ungetc_buffer): Implement also for other systems.
42123         (rpl_fflush): On glibc systems, invoke
42124         clear_ungetc_buffer_preserving_position. Otherwise, invoke
42125         clear_ungetc_buffer after fetching the stream's position, not before.
42126
42127 2009-01-15  Bruno Haible  <bruno@clisp.org>
42128
42129         Make fflush-after-ungetc POSIX compliant on glibc systems.
42130         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
42131         after ungetc.
42132         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
42133         (rpl_fflush): On glibc systems, simply call the system's fflush
42134         function after clearing the ungetc buffer.
42135         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
42136         Instead, lseek only to the end of file, then use the system's fseeko
42137         for the rest. On glibc systems, reset the EOF indicator bit.
42138
42139 2009-01-15  Jim Meyering  <meyering@redhat.com>
42140
42141         openmp.m4: revert quote-adding change, for portability to older autoconf
42142         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
42143         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
42144         Simon Josefsson noticed the problem when using autoconf-2.61.
42145
42146 2009-01-15  Bruno Haible  <bruno@clisp.org>
42147
42148         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
42149         * tests/test-fflush2.c (ASSERT): Always fail.
42150         (main): Add two tests for fflush() after ungetc(), taking into account
42151         the Austin Group's clarification.
42152         Suggested by Eric Blake.
42153
42154 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
42155
42156         mktime.m4: remove K&R-style function prototypes
42157         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
42158         for the Sun C++ compiler.
42159
42160 2009-01-14  Bruno Haible  <bruno@clisp.org>
42161
42162         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
42163         while including <wchar.h>.
42164         * lib/wchar.in.h: In two particular situations on HP-UX, include only
42165         the system's <wchar.h> file.
42166         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
42167
42168 2009-01-14  Bruno Haible  <bruno@clisp.org>
42169
42170         * m4/csharp.m4: Don't mention gettext on the serial number line.
42171         * m4/csharpexec.m4: Likewise.
42172         * m4/eaccess.m4: Likewise.
42173         * m4/javaexec.m4: Likewise.
42174         * m4/sig_atomic_t.m4: Likewise.
42175         * m4/tmpdir.m4: Likewise.
42176         * m4/intldir.m4: Bump gettext version.
42177         * m4/lib-ld.m4: Likewise.
42178
42179 2009-01-14  Bruno Haible  <bruno@clisp.org>
42180
42181         * lib/progname.c (set_program_name): Add more comments.
42182         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
42183
42184 2009-01-14  Simon Josefsson  <simon@josefsson.org>
42185
42186         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
42187         were sys/stat.h does not define it.
42188
42189 2009-01-14  Jim Meyering  <meyering@redhat.com>
42190
42191         many *.m4 files: improve m4 quoting
42192         99% of this change was performed by running the following commands:
42193         git ls-files | grep '\.m4$' | xargs perl -pi \
42194           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
42195           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
42196           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
42197           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
42198         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
42199         The remainder were to add Copyright dates, increment serial numbers,
42200         undo some changes in comments, exclude m4/intl.m4, and add quotes
42201         around the "1" in ",1" where the unusual spacing prohibited the
42202         above regexps from doing the job.  For more details, see
42203         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
42204         * m4/acl.m4: Modified.
42205         * m4/afs.m4: Likewise.
42206         * m4/alloca.m4: Likewise.
42207         * m4/argp.m4: Likewise.
42208         * m4/argz.m4: Likewise.
42209         * m4/atexit.m4: Likewise.
42210         * m4/bison-i18n.m4: Likewise.
42211         * m4/bison.m4: Likewise.
42212         * m4/byteswap.m4: Likewise.
42213         * m4/c-stack.m4: Likewise.
42214         * m4/c-strtod.m4: Likewise.
42215         * m4/calloc.m4: Likewise.
42216         * m4/canonicalize-lgpl.m4: Likewise.
42217         * m4/chown.m4: Likewise.
42218         * m4/clock_time.m4: Likewise.
42219         * m4/codeset.m4: Likewise.
42220         * m4/copy-file.m4: Likewise.
42221         * m4/csharp.m4: Likewise.
42222         * m4/csharpcomp.m4: Likewise.
42223         * m4/csharpexec.m4: Likewise.
42224         * m4/d-ino.m4: Likewise.
42225         * m4/d-type.m4: Likewise.
42226         * m4/dirfd.m4: Likewise.
42227         * m4/double-slash-root.m4: Likewise.
42228         * m4/eaccess.m4: Likewise.
42229         * m4/eealloc.m4: Likewise.
42230         * m4/environ.m4: Likewise.
42231         * m4/errno_h.m4: Likewise.
42232         * m4/euidaccess.m4: Likewise.
42233         * m4/execute.m4: Likewise.
42234         * m4/fatal-signal.m4: Likewise.
42235         * m4/fchdir.m4: Likewise.
42236         * m4/fcntl_h.m4: Likewise.
42237         * m4/fileblocks.m4: Likewise.
42238         * m4/filenamecat.m4: Likewise.
42239         * m4/findprog.m4: Likewise.
42240         * m4/flexmember.m4: Likewise.
42241         * m4/fnmatch.m4: Likewise.
42242         * m4/fopen.m4: Likewise.
42243         * m4/fpending.m4: Likewise.
42244         * m4/fprintf-posix.m4: Likewise.
42245         * m4/free.m4: Likewise.
42246         * m4/frexp.m4: Likewise.
42247         * m4/frexpl.m4: Likewise.
42248         * m4/fsusage.m4: Likewise.
42249         * m4/ftruncate.m4: Likewise.
42250         * m4/gc-camellia.m4: Likewise.
42251         * m4/gc-random.m4: Likewise.
42252         * m4/gc.m4: Likewise.
42253         * m4/getaddrinfo.m4: Likewise.
42254         * m4/getcwd-abort-bug.m4: Likewise.
42255         * m4/getcwd-path-max.m4: Likewise.
42256         * m4/getdate.m4: Likewise.
42257         * m4/getdomainname.m4: Likewise.
42258         * m4/getgroups.m4: Likewise.
42259         * m4/gethostname.m4: Likewise.
42260         * m4/gethrxtime.m4: Likewise.
42261         * m4/getline.m4: Likewise.
42262         * m4/getloadavg.m4: Likewise.
42263         * m4/getndelim2.m4: Likewise.
42264         * m4/getpass.m4: Likewise.
42265         * m4/gettext.m4: Likewise.
42266         * m4/gettime.m4: Likewise.
42267         * m4/gettimeofday.m4: Likewise.
42268         * m4/gnulib-common.m4: Likewise.
42269         * m4/group-member.m4: Likewise.
42270         * m4/host-os.m4: Likewise.
42271         * m4/iconv.m4: Likewise.
42272         * m4/iconv_open.m4: Likewise.
42273         * m4/inet_ntop.m4: Likewise.
42274         * m4/inet_pton.m4: Likewise.
42275         * m4/inline.m4: Likewise.
42276         * m4/intldir.m4: Likewise.
42277         * m4/intlmacosx.m4: Likewise.
42278         * m4/intmax.m4: Likewise.
42279         * m4/intmax_t.m4: Likewise.
42280         * m4/inttypes.m4: Likewise.
42281         * m4/inttypes_h.m4: Likewise.
42282         * m4/inttypes-pri.m4: Likewise.
42283         * m4/isapipe.m4: Likewise.
42284         * m4/isnand.m4: Likewise.
42285         * m4/isnanf.m4: Likewise.
42286         * m4/isnanl.m4: Likewise.
42287         * m4/javacomp.m4: Likewise.
42288         * m4/javaexec.m4: Likewise.
42289         * m4/jm-winsz1.m4: Likewise.
42290         * m4/jm-winsz2.m4: Likewise.
42291         * m4/lchown.m4: Likewise.
42292         * m4/lcmessage.m4: Likewise.
42293         * m4/ldexpl.m4: Likewise.
42294         * m4/lib-ld.m4: Likewise.
42295         * m4/lib-link.m4: Likewise.
42296         * m4/libsigsegv.m4: Likewise.
42297         * m4/link-follow.m4: Likewise.
42298         * m4/localcharset.m4: Likewise.
42299         * m4/locale-fr.m4: Likewise.
42300         * m4/locale-ja.m4: Likewise.
42301         * m4/locale-tr.m4: Likewise.
42302         * m4/locale-zh.m4: Likewise.
42303         * m4/lock.m4: Likewise.
42304         * m4/longlong.m4: Likewise.
42305         * m4/ls-mntd-fs.m4: Likewise.
42306         * m4/lstat.m4: Likewise.
42307         * m4/malloc.m4: Likewise.
42308         * m4/mathl.m4: Likewise.
42309         * m4/mbrtowc.m4: Likewise.
42310         * m4/mbstate_t.m4: Likewise.
42311         * m4/mbswidth.m4: Likewise.
42312         * m4/memchr.m4: Likewise.
42313         * m4/memcmp.m4: Likewise.
42314         * m4/memcpy.m4: Likewise.
42315         * m4/memmem.m4: Likewise.
42316         * m4/memmove.m4: Likewise.
42317         * m4/mempcpy.m4: Likewise.
42318         * m4/memrchr.m4: Likewise.
42319         * m4/memset.m4: Likewise.
42320         * m4/minmax.m4: Likewise.
42321         * m4/mkdir-slash.m4: Likewise.
42322         * m4/mkdtemp.m4: Likewise.
42323         * m4/mktime.m4: Likewise.
42324         * m4/mmap-anon.m4: Likewise.
42325         * m4/mountlist.m4: Likewise.
42326         * m4/nanosleep.m4: Likewise.
42327         * m4/nls.m4: Likewise.
42328         * m4/nocrash.m4: Likewise.
42329         * m4/open.m4: Likewise.
42330         * m4/openat.m4: Likewise.
42331         * m4/openmp.m4: Likewise.
42332         * m4/pathmax.m4: Likewise.
42333         * m4/perl.m4: Likewise.
42334         * m4/physmem.m4: Likewise.
42335         * m4/pipe.m4: Likewise.
42336         * m4/po.m4: Likewise.
42337         * m4/poll.m4: Likewise.
42338         * m4/posixtm.m4: Likewise.
42339         * m4/posixver.m4: Likewise.
42340         * m4/printf-frexp.m4: Likewise.
42341         * m4/printf-frexpl.m4: Likewise.
42342         * m4/printf-posix.m4: Likewise.
42343         * m4/printf-posix-rpl.m4: Likewise.
42344         * m4/printf.m4: Likewise.
42345         * m4/progtest.m4: Likewise.
42346         * m4/putenv.m4: Likewise.
42347         * m4/readline.m4: Likewise.
42348         * m4/readlink.m4: Likewise.
42349         * m4/readutmp.m4: Likewise.
42350         * m4/realloc.m4: Likewise.
42351         * m4/regex.m4: Likewise.
42352         * m4/relocatable.m4: Likewise.
42353         * m4/relocatable-lib.m4: Likewise.
42354         * m4/rename-dest-slash.m4: Likewise.
42355         * m4/rename.m4: Likewise.
42356         * m4/rmdir-errno.m4: Likewise.
42357         * m4/rmdir.m4: Likewise.
42358         * m4/roundf.m4: Likewise.
42359         * m4/roundl.m4: Likewise.
42360         * m4/rpmatch.m4: Likewise.
42361         * m4/save-cwd.m4: Likewise.
42362         * m4/selinux-selinux-h.m4: Likewise.
42363         * m4/setenv.m4: Likewise.
42364         * m4/settime.m4: Likewise.
42365         * m4/sig2str.m4: Likewise.
42366         * m4/sig_atomic_t.m4: Likewise.
42367         * m4/signalblocking.m4: Likewise.
42368         * m4/signbit.m4: Likewise.
42369         * m4/sigpipe.m4: Likewise.
42370         * m4/sockets.m4: Likewise.
42371         * m4/sockpfaf.m4: Likewise.
42372         * m4/st_dm_mode.m4: Likewise.
42373         * m4/stat-time.m4: Likewise.
42374         * m4/stdbool.m4: Likewise.
42375         * m4/stdint.m4: Likewise.
42376         * m4/stdint_h.m4: Likewise.
42377         * m4/stpcpy.m4: Likewise.
42378         * m4/stpncpy.m4: Likewise.
42379         * m4/strcase.m4: Likewise.
42380         * m4/strchrnul.m4: Likewise.
42381         * m4/strcspn.m4: Likewise.
42382         * m4/strdup.m4: Likewise.
42383         * m4/strftime.m4: Likewise.
42384         * m4/strndup.m4: Likewise.
42385         * m4/strnlen.m4: Likewise.
42386         * m4/strpbrk.m4: Likewise.
42387         * m4/strptime.m4: Likewise.
42388         * m4/strsep.m4: Likewise.
42389         * m4/strtod.m4: Likewise.
42390         * m4/strtoimax.m4: Likewise.
42391         * m4/strtok_r.m4: Likewise.
42392         * m4/strtol.m4: Likewise.
42393         * m4/strtoll.m4: Likewise.
42394         * m4/strtoul.m4: Likewise.
42395         * m4/strtoull.m4: Likewise.
42396         * m4/strtoumax.m4: Likewise.
42397         * m4/strverscmp.m4: Likewise.
42398         * m4/threadlib.m4: Likewise.
42399         * m4/timegm.m4: Likewise.
42400         * m4/tm_gmtoff.m4: Likewise.
42401         * m4/tmpdir.m4: Likewise.
42402         * m4/tmpfile.m4: Likewise.
42403         * m4/tzset.m4: Likewise.
42404         * m4/uintmax_t.m4: Likewise.
42405         * m4/unlinkdir.m4: Likewise.
42406         * m4/unlocked-io.m4: Likewise.
42407         * m4/uptime.m4: Likewise.
42408         * m4/userspec.m4: Likewise.
42409         * m4/utimbuf.m4: Likewise.
42410         * m4/utime.m4: Likewise.
42411         * m4/utimes-null.m4: Likewise.
42412         * m4/utimes.m4: Likewise.
42413         * m4/vararrays.m4: Likewise.
42414         * m4/vasnprintf.m4: Likewise.
42415         * m4/vfprintf-posix.m4: Likewise.
42416         * m4/vprintf-posix.m4: Likewise.
42417         * m4/wait-process.m4: Likewise.
42418         * m4/wchar_t.m4: Likewise.
42419         * m4/wint_t.m4: Likewise.
42420         * m4/write-any-file.m4: Likewise.
42421         * m4/yield.m4: Likewise.
42422
42423 2009-01-13  Bruno Haible  <bruno@clisp.org>
42424
42425         Avoid test-copy-file.sh failures when ACL support insufficient.
42426         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
42427         TESTS_ENVIRONMENT.
42428         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
42429         Reported by Jim Meyering.
42430
42431 2009-01-13  Bruno Haible  <bruno@clisp.org>
42432
42433         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
42434         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
42435         * modules/unistdio/u8-printf-parse (Files): Likewise.
42436         * modules/unistdio/u32-printf-parse (Files): Likewise.
42437         * modules/unistdio/ulc-printf-parse (Files): Likewise.
42438
42439 2009-01-13  Simon Josefsson  <simon@josefsson.org>
42440
42441         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
42442         and m4/inttypes_h.m4 too.
42443
42444 2009-01-12  Eric Blake  <ebb9@byu.net>
42445
42446         tests: IRIX 6.2 cc can't compile -0.0 into .data
42447         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
42448         rather than at compile-time.
42449         * tests/test-floorl.c (minus_zero): Likewise.
42450         * tests/test-frexpl.c (minus_zero): Likewise.
42451         * tests/test-isnan.c (minus_zerol): Likewise.
42452         * tests/test-isnanl.h (minus_zero): Likewise.
42453         * tests/test-ldexpl.c (minus_zero): Likewise.
42454         * tests/test-roundl.c (minus_zero): Likewise.
42455         * tests/test-signbit.c (minus_zerol): Likewise.
42456         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
42457         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
42458         * tests/test-truncl.c (minus_zero): Likewise.
42459         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
42460         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
42461         Reported by Tom G. Christensen and Nelson H. F. Beebe.
42462
42463 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
42464
42465         regex: fix glibc bug 9697
42466         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
42467         handling.
42468
42469 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
42470
42471         regex: fix glibc bug 697
42472         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
42473         being NULL also if there are no backreferences.
42474
42475 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
42476
42477         regex: merge glibc changes
42478         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
42479         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
42480         re_string_skip_chars, re_string_reconstruct): Likewise.
42481         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
42482
42483 2009-01-07  Jim Meyering  <meyering@redhat.com>
42484
42485         poll: filter through cppi
42486         * lib/poll.c: Indent cpp directives to reflect nesting.
42487
42488 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
42489
42490         poll: don't return uninitialized
42491         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
42492
42493 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
42494
42495         avoid compile failure on AIX 6.1
42496         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
42497         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
42498
42499 2009-01-04  Jim Meyering  <meyering@redhat.com>
42500
42501         remove duplicate inclusion of <stdio.h>
42502         * tests/test-fprintf-posix.c: Likewise.
42503         * tests/test-printf-posix.c: Likewise.
42504         * tests/test-snprintf-posix.c: Likewise.
42505         * tests/test-sprintf-posix.c: Likewise.
42506         * tests/test-vasprintf-posix.c: Likewise.
42507         * tests/test-vfprintf-posix.c: Likewise.
42508         * tests/test-vprintf-posix.c: Likewise.
42509         * tests/test-vsnprintf-posix.c: Likewise.
42510         * tests/test-vsprintf-posix.c: Likewise.
42511
42512 2009-01-03  Jim Meyering  <meyering@redhat.com>
42513
42514         gnulib-tool: fix sed-based filtering
42515         * gnulib-tool (func_filter_filelist): Remove extra backslash
42516         in sed_fff_filter definition.
42517
42518 2009-01-02  Jim Meyering  <meyering@redhat.com>
42519
42520         strftime: avoid compilation failure on Solaris 2.6
42521         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
42522         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
42523         Don't #define mbrlen or mbsinit, since now they're guaranteed to
42524         be available.  Reported by Tom G. Christensen.  Details in
42525         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
42526
42527 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42528             Bruno Haible  <bruno@clisp.org>
42529
42530         Speed up gnulib-tool by doing more string processing through shell
42531         built-ins.
42532         * gnulib-tool (fast_func_append): New variable.
42533         (func_remove_prefix, func_remove_suffix): New functions.
42534         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
42535         (func_filter_filelist): New function.
42536         (func_get_dependencies): Use func_remove_suffix instead of sed.
42537         (func_get_automake_snippet): Use func_filter_filelist instead of a
42538         subshell and sed invocation.
42539
42540 2009-01-01  Bruno Haible  <bruno@clisp.org>
42541
42542         Fix a security bug.
42543         * gnulib-tool (func_import, import, update): Don't allow the characters
42544         '"', '$', '`', '\' in macro arguments that become part of commands that
42545         are evaluated.
42546
42547 2009-01-01  Bruno Haible  <bruno@clisp.org>
42548
42549         * gnulib-tool (func_reset_sigpipe): Add more comments.
42550
42551 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42552
42553         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
42554         func_emit_tests_Makefile_am, func_import): Abort loops early if we
42555         already know the answer.
42556
42557 2009-01-01  Jim Meyering  <meyering@redhat.com>
42558
42559         * lib/version-etc.c (version_etc_va): Update copyright year.
42560
42561 2008-12-30  Bruno Haible  <bruno@clisp.org>
42562
42563         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
42564         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
42565         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
42566
42567 2008-12-29  Eric Blake  <ebb9@byu.net>
42568
42569         multiarch: avoid autoconf AC_REQUIRE bug
42570         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
42571         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
42572         2.63 and older.
42573         Reported by Bruno Haible, and analyzed in
42574         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
42575
42576 2008-12-29  Bruno Haible  <bruno@clisp.org>
42577
42578         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
42579         files in subdirectories correctly.
42580         Reported by Ralf Wildenhues.
42581
42582 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42583
42584         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
42585         rather than 'join FILE -', for Solaris join.
42586
42587 2008-12-29  Bruno Haible  <bruno@clisp.org>
42588
42589         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
42590         quoting.
42591         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
42592         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
42593         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
42594         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
42595         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
42596         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
42597         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
42598         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
42599         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
42600         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
42601         * m4/nls.m4 (AM_NLS): Likewise.
42602         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
42603         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
42604         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
42605         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
42606         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
42607         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
42608         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
42609         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
42610         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
42611         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
42612         * m4/xsize.m4 (gl_XSIZE): Likewise.
42613         Suggested by Jim Meyering.
42614
42615 2008-11-17  Bruce Korb  <bkorb@gnu.org>
42616
42617         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
42618         * lib/parse-duration.c: use a switch instead of cascading if's.
42619
42620 2008-12-29  Eric Blake  <ebb9@byu.net>
42621
42622         wchar.h: supply WEOF on Irix 5.3
42623         * lib/wchar.in.h (wint_t): Also supply WEOF.
42624         * lib/wctype.in.h (wint_t): Likewise.
42625         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
42626         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
42627         Reported by Tom G. Christensen.
42628
42629 2008-12-26  Bruno Haible  <bruno@clisp.org>
42630
42631         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
42632         i486, i586, i686.
42633
42634 2008-12-26  Bruno Haible  <bruno@clisp.org>
42635
42636         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
42637
42638 2008-12-26  Bruno Haible  <bruno@clisp.org>
42639
42640         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
42641         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
42642         not __STDC_CONSTANT_MACROS.
42643         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
42644
42645 2008-12-25  Bruno Haible  <bruno@clisp.org>
42646
42647         Add support for universal builds to vasnprintf.
42648         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
42649         universal builds, guess no.
42650         * modules/vasnprintf-posix (Depends-on): Add multiarch.
42651         * modules/vasprintf-posix (Depends-on): Likewise.
42652         * modules/fprintf-posix (Depends-on): Likewise.
42653         * modules/vfprintf-posix (Depends-on): Likewise.
42654         * modules/snprintf-posix (Depends-on): Likewise.
42655         * modules/vsnprintf-posix (Depends-on): Likewise.
42656         * modules/sprintf-posix (Depends-on): Likewise.
42657         * modules/vsprintf-posix (Depends-on): Likewise.
42658         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
42659         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
42660         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
42661         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
42662         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
42663         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
42664         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
42665
42666         Add support for universal builds to <inttypes.h>.
42667         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
42668         _SCNu64_PREFIX): In Apple
42669         universal builds, define directly, using _LP64.
42670         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
42671         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
42672         * modules/inttypes (Depends-on): Add multiarch.
42673         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
42674
42675         Add support for universal builds to <stdint.h>.
42676         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
42677         universal builds, define directly, using _LP64.
42678         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
42679         Apple universal builds, don't test for the size and suffix of ptrdiff_t
42680         and size_t.
42681         * modules/stdint (Depends-on): Add multiarch.
42682         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
42683
42684         New module 'multiarch'.
42685         * modules/multiarch: New file.
42686         * m4/multiarch.m4: New file.
42687
42688 2008-12-25  Bruno Haible  <bruno@clisp.org>
42689
42690         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
42691
42692 2008-12-25  Bruno Haible  <bruno@clisp.org>
42693
42694         * modules/btowc (License): Relicense under LGPLv2+.
42695         * modules/mbsinit (License): Likewise.
42696         * modules/mbrtowc (License): Likewise.
42697         * modules/wcrtomb (License): Likewise.
42698         * modules/streq (License): Likewise.
42699         Reported by David Lutterkort <lutter@redhat.com>.
42700
42701 2008-12-23  Bruno Haible  <bruno@clisp.org>
42702
42703         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
42704
42705 2008-12-23  Bruno Haible  <bruno@clisp.org>
42706
42707         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
42708         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
42709         GETADDRINFO_LIB, not in LIBS.
42710         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
42711         * modules/canon-host (Link): Likewise.
42712         * NEWS: Mention the change.
42713         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
42714         GETADDRINFO_LIB.
42715
42716 2008-12-22  Bruno Haible  <bruno@clisp.org>
42717
42718         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
42719         * doc/posix-functions/iswalpha_l.texi: Likewise.
42720         * doc/posix-functions/iswblank_l.texi: Likewise.
42721         * doc/posix-functions/iswcntrl_l.texi: Likewise.
42722         * doc/posix-functions/iswctype_l.texi: Likewise.
42723         * doc/posix-functions/iswdigit_l.texi: Likewise.
42724         * doc/posix-functions/iswgraph_l.texi: Likewise.
42725         * doc/posix-functions/iswlower_l.texi: Likewise.
42726         * doc/posix-functions/iswprint_l.texi: Likewise.
42727         * doc/posix-functions/iswpunct_l.texi: Likewise.
42728         * doc/posix-functions/iswspace_l.texi: Likewise.
42729         * doc/posix-functions/iswupper_l.texi: Likewise.
42730         * doc/posix-functions/iswxdigit_l.texi: Likewise.
42731         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
42732         * doc/posix-functions/open_wmemstream.texi: Likewise.
42733         * doc/posix-functions/swscanf.texi: Likewise.
42734         * doc/posix-functions/towctrans_l.texi: Likewise.
42735         * doc/posix-functions/towlower.texi: Likewise.
42736         * doc/posix-functions/towlower_l.texi: Likewise.
42737         * doc/posix-functions/towupper.texi: Likewise.
42738         * doc/posix-functions/towupper_l.texi: Likewise.
42739         * doc/posix-functions/vfwprintf.texi: Likewise.
42740         * doc/posix-functions/vfwscanf.texi: Likewise.
42741         * doc/posix-functions/vswscanf.texi: Likewise.
42742         * doc/posix-functions/vwprintf.texi: Likewise.
42743         * doc/posix-functions/vwscanf.texi: Likewise.
42744         * doc/posix-functions/wcpcpy.texi: Likewise.
42745         * doc/posix-functions/wcpncpy.texi: Likewise.
42746         * doc/posix-functions/wcscasecmp.texi: Likewise.
42747         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
42748         * doc/posix-functions/wcscoll_l.texi: Likewise.
42749         * doc/posix-functions/wcsdup.texi: Likewise.
42750         * doc/posix-functions/wcsncasecmp.texi: Likewise.
42751         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
42752         * doc/posix-functions/wcsnlen.texi: Likewise.
42753         * doc/posix-functions/wcsnrtombs.texi: Likewise.
42754         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
42755         * doc/posix-functions/wctrans_l.texi: Likewise.
42756         * doc/posix-functions/wctype_l.texi: Likewise.
42757         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
42758         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
42759         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
42760         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
42761         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
42762         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
42763         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
42764         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
42765         * doc/glibc-functions/wcschrnul.texi: Likewise.
42766         * doc/glibc-functions/wcsftime_l.texi: Likewise.
42767         * doc/glibc-functions/wcstod_l.texi: Likewise.
42768         * doc/glibc-functions/wcstof_l.texi: Likewise.
42769         * doc/glibc-functions/wcstol_l.texi: Likewise.
42770         * doc/glibc-functions/wcstold_l.texi: Likewise.
42771         * doc/glibc-functions/wcstoll_l.texi: Likewise.
42772         * doc/glibc-functions/wcstoq.texi: Likewise.
42773         * doc/glibc-functions/wcstoul_l.texi: Likewise.
42774         * doc/glibc-functions/wcstoull_l.texi: Likewise.
42775         * doc/glibc-functions/wcstouq.texi: Likewise.
42776         * doc/glibc-functions/wmempcpy.texi: Likewise.
42777
42778 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
42779             Eric Blake  <ebb9@byu.net>
42780             Paolo Bonzini  <bonzini@gnu.org>
42781             Bruno Haible  <bruno@clisp.org>
42782
42783         Make c-stack work on Haiku.
42784         * lib/c-stack.c (SA_ONSTACK): Define fallback.
42785         (c_stack_action): Use SA_ONSTACK flag.
42786
42787 2008-12-22  Bruno Haible  <bruno@clisp.org>
42788
42789         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
42790
42791 2008-12-22  Bruno Haible  <bruno@clisp.org>
42792
42793         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
42794         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
42795         being overridden.
42796         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
42797         New macros.
42798         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
42799         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
42800         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
42801         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
42802
42803 2008-12-22  Bruno Haible  <bruno@clisp.org>
42804
42805         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
42806         from test code.
42807
42808 2008-12-22  Eric Blake  <ebb9@byu.net>
42809
42810         Avoid gcc warnings on cygwin.
42811         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
42812         Avoid unused variable.
42813         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
42814         Likewise.
42815
42816 2008-12-22  Bruno Haible  <bruno@clisp.org>
42817
42818         Remove HAVE_MBRTOWC conditionals.
42819         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
42820         (mbscasecmp): Assume mbrtowc function.
42821         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
42822         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
42823         * lib/mbschr.c: Include mbuiter.h unconditionally.
42824         (mbschr): Assume mbrtowc function.
42825         * lib/mbscspn.c: Include mbuiter.h unconditionally.
42826         (mbscspn): Assume mbrtowc function.
42827         * lib/mbslen.c: Include mbuiter.h unconditionally.
42828         (mbslen): Assume mbrtowc function.
42829         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
42830         (mbsncasecmp): Assume mbrtowc function.
42831         * lib/mbsnlen.c: Include mbiter.h unconditionally.
42832         (mbsnlen): Assume mbrtowc function.
42833         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
42834         (mbspbrk): Assume mbrtowc function.
42835         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
42836         (mbspcasecmp): Assume mbrtowc function.
42837         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
42838         (mbsrchr): Assume mbrtowc function.
42839         * lib/mbssep.c: Include mbuiter.h unconditionally.
42840         (mbssep): Assume mbrtowc function.
42841         * lib/mbsspn.c: Include mbuiter.h unconditionally.
42842         (mbsspn): Assume mbrtowc function.
42843         * lib/mbsstr.c: Include mbuiter.h unconditionally.
42844         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
42845         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
42846         (mbstok_r): Assume mbrtowc function.
42847         * lib/propername.c: Include mbuiter.h unconditionally.
42848         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
42849         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
42850         (trim2): Assume mbrtowc function.
42851         * lib/mbswidth.c (mbsinit): Remove fallback definition.
42852         (mbsnwidth): Assume mbrtowc function.
42853         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
42854         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
42855         fallback definitions.
42856         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
42857
42858 2008-12-22  Bruno Haible  <bruno@clisp.org>
42859
42860         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
42861
42862 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
42863
42864         * modules/regex: Request emulations for the mb*/wc* functions we need.
42865         * m4/regex.m4: Don't look for those functions here.
42866         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
42867
42868 2008-12-22  Bruno Haible  <bruno@clisp.org>
42869
42870         * modules/fnmatch (Depends-on): Remove duplicated dependency.
42871
42872 2008-12-21  Bruno Haible  <bruno@clisp.org>
42873
42874         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
42875         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
42876         (Include): Remove conditionalization.
42877         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
42878         (Include): Remove conditionalization.
42879         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
42880         (Include): Remove conditionalization.
42881         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
42882         * m4/mbfile.m4 (gl_MBFILE): Likewise.
42883         * NEWS: Mention the change.
42884         Reported by Alan Hourihane <alanh@fairlite.co.uk>
42885         via Sergey Poznyakoff <gray@gnu.org.ua>.
42886
42887 2008-12-21  Bruno Haible  <bruno@clisp.org>
42888
42889         * MODULES.html.sh (Extended multibyte and wide character utilities
42890         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
42891         wcrtomb, wcsrtombs.
42892         (Support for systems lacking POSIX:2008): Add accept, bind, close,
42893         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
42894         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
42895         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
42896
42897 2008-12-21  Bruno Haible  <bruno@clisp.org>
42898
42899         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
42900
42901 2008-12-21  Bruno Haible  <bruno@clisp.org>
42902
42903         * modules/wcsnrtombs-tests: New file.
42904         * tests/test-wcsnrtombs1.sh: New file.
42905         * tests/test-wcsnrtombs2.sh: New file.
42906         * tests/test-wcsnrtombs3.sh: New file.
42907         * tests/test-wcsnrtombs4.sh: New file.
42908         * tests/test-wcsnrtombs.c: New file.
42909
42910         New module 'wcsnrtombs'.
42911         * lib/wchar.in.h (wcsnrtombs): New declaration.
42912         * lib/wcsnrtombs.c: New file.
42913         * lib/wcsrtombs-state.c: New file.
42914         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
42915         (internal_state): Remove variable.
42916         * m4/wcsnrtombs.m4: New file.
42917         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
42918         compilation units.
42919         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
42920         HAVE_WCSNRTOMBS.
42921         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
42922         HAVE_WCSNRTOMBS.
42923         * modules/wcsnrtombs: New file.
42924         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
42925         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
42926
42927 2008-12-21  Bruno Haible  <bruno@clisp.org>
42928
42929         * modules/wcsrtombs-tests: New file.
42930         * tests/test-wcsrtombs1.sh: New file.
42931         * tests/test-wcsrtombs2.sh: New file.
42932         * tests/test-wcsrtombs3.sh: New file.
42933         * tests/test-wcsrtombs4.sh: New file.
42934         * tests/test-wcsrtombs.c: New file.
42935
42936         New module 'wcsrtombs'.
42937         * lib/wchar.in.h (wcsrtombs): New declaration.
42938         * lib/wcsrtombs.c: New file.
42939         * m4/wcsrtombs.m4: New file.
42940         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
42941         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
42942         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
42943         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
42944         * modules/wcsrtombs: New file.
42945         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
42946         bugs.
42947
42948 2008-12-21  Bruno Haible  <bruno@clisp.org>
42949
42950         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
42951         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
42952         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
42953         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
42954         if not correct.
42955         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
42956         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
42957         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
42958         m4/locale-zh.m4, m4/codeset.m4.
42959         * doc/posix-functions/wcrtomb.texi: Document the bug.
42960
42961 2008-12-21  Bruno Haible  <bruno@clisp.org>
42962
42963         Work around a btowc() bug on IRIX 6.5.
42964         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
42965         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
42966         REPLACE_WTOBC if not.
42967         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
42968         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
42969         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
42970
42971 2008-12-21  Bruno Haible  <bruno@clisp.org>
42972
42973         * modules/wcrtomb-tests: New file.
42974         * tests/test-wcrtomb.sh: New file.
42975         * tests/test-wcrtomb.c: New file.
42976
42977         New module 'wcrtomb'.
42978         * lib/wchar.in.h (wcrtomb): New declaration.
42979         * lib/wcrtomb.c: New file.
42980         * m4/wcrtomb.m4: New file.
42981         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
42982         HAVE_WCRTOMB.
42983         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
42984         HAVE_WCRTOMB.
42985         * modules/wcrtomb: New file.
42986         * doc/posix-functions/wcrtomb.texi: Mention the new module.
42987
42988 2008-12-21  Bruno Haible  <bruno@clisp.org>
42989
42990         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
42991         * modules/mbsrtowcs (Files): Likewise.
42992         * modules/wctob (Files): Likewise.
42993         * modules/c-strcase-tests (Files): Likewise.
42994         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
42995         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
42996         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
42997         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
42998         * modules/vasnprintf-posix-tests (Files): Likewise.
42999
43000 2008-12-21  William Pursell  <bill.pursell@gmail.com>
43001
43002         gitlog-to-changelog: pass all command-line arguments to git-log
43003         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
43004         it is sometimes convenient to filter the commits in various ways.
43005         gitlog-to-changelog only allows --since to specify a start date,
43006         but git-log itself supports many other filtering mechanisms.
43007         At the moment, I want to filter by branch name.  Rather than
43008         adding a --branch option to gitlog-to-changelog, it seems more
43009         flexible to simply pass all options directly to git-log and let
43010         git do the work.  Notice that this effectively makes --since a
43011         redundant option for gitlog-to-changelog, but removing it would
43012         require current usage to change since calls would then require
43013         an additional '--'.
43014
43015 2008-12-21  Bruno Haible  <bruno@clisp.org>
43016
43017         * modules/mbsnrtowcs-tests: New file.
43018         * tests/test-mbsnrtowcs1.sh: New file.
43019         * tests/test-mbsnrtowcs2.sh: New file.
43020         * tests/test-mbsnrtowcs3.sh: New file.
43021         * tests/test-mbsnrtowcs4.sh: New file.
43022         * tests/test-mbsnrtowcs.c: New file.
43023
43024         New module 'mbsnrtowcs'.
43025         * lib/wchar.in.h (mbsnrtowcs): New declaration.
43026         * lib/mbsnrtowcs.c: New file.
43027         * lib/mbsrtowcs-state.c: New file.
43028         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
43029         (internal_state): Remove variable.
43030         * m4/mbsnrtowcs.m4: New file.
43031         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
43032         compilation units.
43033         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
43034         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
43035         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
43036         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
43037         * modules/mbsnrtowcs: New file.
43038         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
43039         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
43040         portability problem.
43041
43042 2008-12-21  Bruno Haible  <bruno@clisp.org>
43043
43044         Work around mbsrtowcs bug.
43045         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
43046         (gl_FUNC_MBSRTOWCS): Invoke it.
43047         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
43048         m4/locale-zh.m4.
43049         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
43050
43051 2008-12-21  Bruno Haible  <bruno@clisp.org>
43052
43053         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
43054
43055 2008-12-21  Bruno Haible  <bruno@clisp.org>
43056
43057         Update doc for AIX.
43058         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
43059         16-bit wchar_t type.
43060         * doc/posix-functions/btowc.texi: Likewise.
43061         * doc/posix-functions/fgetwc.texi: Likewise.
43062         * doc/posix-functions/fgetws.texi: Likewise.
43063         * doc/posix-functions/fputwc.texi: Likewise.
43064         * doc/posix-functions/fputws.texi: Likewise.
43065         * doc/posix-functions/fwide.texi: Likewise.
43066         * doc/posix-functions/fwprintf.texi: Likewise.
43067         * doc/posix-functions/fwscanf.texi: Likewise.
43068         * doc/posix-functions/getwchar.texi: Likewise.
43069         * doc/posix-functions/getwc.texi: Likewise.
43070         * doc/posix-functions/iswalnum.texi: Likewise.
43071         * doc/posix-functions/iswalpha.texi: Likewise.
43072         * doc/posix-functions/iswblank.texi: Likewise.
43073         * doc/posix-functions/iswcntrl.texi: Likewise.
43074         * doc/posix-functions/iswctype.texi: Likewise.
43075         * doc/posix-functions/iswdigit.texi: Likewise.
43076         * doc/posix-functions/iswgraph.texi: Likewise.
43077         * doc/posix-functions/iswlower.texi: Likewise.
43078         * doc/posix-functions/iswprint.texi: Likewise.
43079         * doc/posix-functions/iswpunct.texi: Likewise.
43080         * doc/posix-functions/iswspace.texi: Likewise.
43081         * doc/posix-functions/iswupper.texi: Likewise.
43082         * doc/posix-functions/iswxdigit.texi: Likewise.
43083         * doc/posix-functions/mbrtowc.texi: Likewise.
43084         * doc/posix-functions/mbsrtowcs.texi: Likewise.
43085         * doc/posix-functions/mbstowcs.texi: Likewise.
43086         * doc/posix-functions/mbtowc.texi: Likewise.
43087         * doc/posix-functions/putwchar.texi: Likewise.
43088         * doc/posix-functions/putwc.texi: Likewise.
43089         * doc/posix-functions/swprintf.texi: Likewise.
43090         * doc/posix-functions/tolower.texi: Likewise.
43091         * doc/posix-functions/toupper.texi: Likewise.
43092         * doc/posix-functions/towctrans.texi: Likewise.
43093         * doc/posix-functions/ungetwc.texi: Likewise.
43094         * doc/posix-functions/vswprintf.texi: Likewise.
43095         * doc/posix-functions/wcrtomb.texi: Likewise.
43096         * doc/posix-functions/wcscat.texi: Likewise.
43097         * doc/posix-functions/wcschr.texi: Likewise.
43098         * doc/posix-functions/wcscmp.texi: Likewise.
43099         * doc/posix-functions/wcscoll.texi: Likewise.
43100         * doc/posix-functions/wcscpy.texi: Likewise.
43101         * doc/posix-functions/wcscspn.texi: Likewise.
43102         * doc/posix-functions/wcsftime.texi: Likewise.
43103         * doc/posix-functions/wcslen.texi: Likewise.
43104         * doc/posix-functions/wcsncat.texi: Likewise.
43105         * doc/posix-functions/wcsncmp.texi: Likewise.
43106         * doc/posix-functions/wcsncpy.texi: Likewise.
43107         * doc/posix-functions/wcspbrk.texi: Likewise.
43108         * doc/posix-functions/wcsrchr.texi: Likewise.
43109         * doc/posix-functions/wcsrtombs.texi: Likewise.
43110         * doc/posix-functions/wcsspn.texi: Likewise.
43111         * doc/posix-functions/wcsstr.texi: Likewise.
43112         * doc/posix-functions/wcstod.texi: Likewise.
43113         * doc/posix-functions/wcstof.texi: Likewise.
43114         * doc/posix-functions/wcstoimax.texi: Likewise.
43115         * doc/posix-functions/wcstok.texi: Likewise.
43116         * doc/posix-functions/wcstold.texi: Likewise.
43117         * doc/posix-functions/wcstoll.texi: Likewise.
43118         * doc/posix-functions/wcstol.texi: Likewise.
43119         * doc/posix-functions/wcstombs.texi: Likewise.
43120         * doc/posix-functions/wcstoull.texi: Likewise.
43121         * doc/posix-functions/wcstoul.texi: Likewise.
43122         * doc/posix-functions/wcstoumax.texi: Likewise.
43123         * doc/posix-functions/wcswidth.texi: Likewise.
43124         * doc/posix-functions/wcsxfrm.texi: Likewise.
43125         * doc/posix-functions/wctob.texi: Likewise.
43126         * doc/posix-functions/wctomb.texi: Likewise.
43127         * doc/posix-functions/wctrans.texi: Likewise.
43128         * doc/posix-functions/wctype.texi: Likewise.
43129         * doc/posix-functions/wcwidth.texi: Likewise.
43130         * doc/posix-functions/wmemchr.texi: Likewise.
43131         * doc/posix-functions/wmemcmp.texi: Likewise.
43132         * doc/posix-functions/wmemcpy.texi: Likewise.
43133         * doc/posix-functions/wmemmove.texi: Likewise.
43134         * doc/posix-functions/wmemset.texi: Likewise.
43135         * doc/posix-functions/wprintf.texi: Likewise.
43136         * doc/posix-functions/wscanf.texi: Likewise.
43137
43138 2008-12-21  Bruno Haible  <bruno@clisp.org>
43139
43140         Update doc for HP-UX 11.11.
43141         * doc/posix-functions/btowc.texi: Clarify that the function is missing
43142         in HP-UX version 11.00, not in all versions of HP-UX 11.
43143         * doc/posix-functions/fwide.texi: Likewise.
43144         * doc/posix-functions/fwprintf.texi: Likewise.
43145         * doc/posix-functions/fwscanf.texi: Likewise.
43146         * doc/posix-functions/inet_ntop.texi: Likewise.
43147         * doc/posix-functions/inet_pton.texi: Likewise.
43148         * doc/posix-functions/mbrlen.texi: Likewise.
43149         * doc/posix-functions/mbrtowc.texi: Likewise.
43150         * doc/posix-functions/mbsinit.texi: Likewise.
43151         * doc/posix-functions/mbsrtowcs.texi: Likewise.
43152         * doc/posix-functions/swprintf.texi: Likewise.
43153         * doc/posix-functions/swscanf.texi: Likewise.
43154         * doc/posix-functions/towctrans.texi: Likewise.
43155         * doc/posix-functions/vfwprintf.texi: Likewise.
43156         * doc/posix-functions/vswprintf.texi: Likewise.
43157         * doc/posix-functions/vwprintf.texi: Likewise.
43158         * doc/posix-functions/wcrtomb.texi: Likewise.
43159         * doc/posix-functions/wcsrtombs.texi: Likewise.
43160         * doc/posix-functions/wcsstr.texi: Likewise.
43161         * doc/posix-functions/wctob.texi: Likewise.
43162         * doc/posix-functions/wctrans.texi: Likewise.
43163         * doc/posix-functions/wmemchr.texi: Likewise.
43164         * doc/posix-functions/wmemcmp.texi: Likewise.
43165         * doc/posix-functions/wmemcpy.texi: Likewise.
43166         * doc/posix-functions/wmemmove.texi: Likewise.
43167         * doc/posix-functions/wmemset.texi: Likewise.
43168         * doc/posix-functions/wprintf.texi: Likewise.
43169         * doc/posix-functions/wscanf.texi: Likewise.
43170
43171 2008-12-21  Bruno Haible  <bruno@clisp.org>
43172
43173         Work around a portability problem.
43174         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
43175         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
43176
43177 2008-12-20  Bruno Haible  <bruno@clisp.org>
43178
43179         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
43180         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
43181         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
43182         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
43183         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
43184
43185         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
43186         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
43187         set.
43188         (GNULIB_defined_mbstate_t): New macro.
43189         (mbsinit): Redefine if REPLACE_MBSINIT is set.
43190         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
43191         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
43192         reuses the system's mbrtowc function but works around the bugs.
43193         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
43194         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
43195         macros.
43196         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
43197         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
43198         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
43199         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
43200         REPLACE_MBSINIT if mbsinit needs to be overridden.
43201         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
43202         REPLACE_MBSINIT, REPLACE_MBRTOWC.
43203         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
43204         REPLACE_MBSINIT, REPLACE_MBRTOWC.
43205         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
43206         m4/locale-zh.m4.
43207         (Depends): Add mbsinit.
43208         * modules/mbsinit (Depends): Add mbrtowc.
43209         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
43210
43211 2008-12-20  Bruno Haible  <bruno@clisp.org>
43212
43213         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
43214         so that there are no conversion errors on AIX.
43215         * tests/test-mbsrtowcs.c (main): LIkewise.
43216
43217 2008-12-20  Bruno Haible  <bruno@clisp.org>
43218
43219         Work around wctob bug on Solaris <= 9.
43220         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
43221         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
43222         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
43223         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
43224         * modules/wctob (Files): Add m4/locale-fr.m4.
43225         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
43226
43227 2008-12-20  Bruno Haible  <bruno@clisp.org>
43228
43229         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
43230         /dev/null.
43231         * tests/test-select-in.sh: Likewise.
43232         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43233
43234 2008-12-20  Bruno Haible  <bruno@clisp.org>
43235
43236         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
43237         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
43238         Cygwin 1.5.x.
43239
43240 2008-12-20  Bruno Haible  <bruno@clisp.org>
43241
43242         Ensure mbstate_t is defined on HP-UX 11.11.
43243         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
43244         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
43245         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
43246         AC_USE_SYSTEM_EXTENSIONS.
43247         * modules/fnmatch (Depends-on): Add extensions.
43248         * modules/mbrlen (Depends-on): Likewise.
43249         * modules/mbrtowc (Depends-on): Likewise.
43250         * modules/mbsinit (Depends-on): Likewise.
43251         * modules/mbsrtowcs (Depends-on): Likewise.
43252         * modules/mbswidth (Depends-on): Likewise.
43253         * modules/quotearg (Depends-on): Likewise.
43254         * modules/strftime (Depends-on): Likewise.
43255
43256 2008-12-20  Bruno Haible  <bruno@clisp.org>
43257
43258         Ensure wctob is declared on IRIX 6.5.
43259         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
43260         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
43261         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
43262         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
43263         of HAVE_WCTOB.
43264         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
43265         HAVE_WCTOB.
43266         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
43267
43268 2008-12-19  Bruno Haible  <bruno@clisp.org>
43269
43270         * modules/mbsrtowcs-tests: New file.
43271         * tests/test-mbsrtowcs1.sh: New file.
43272         * tests/test-mbsrtowcs2.sh: New file.
43273         * tests/test-mbsrtowcs3.sh: New file.
43274         * tests/test-mbsrtowcs4.sh: New file.
43275         * tests/test-mbsrtowcs.c: New file.
43276
43277         New module 'mbsrtowcs'.
43278         * lib/wchar.in.h (mbsrtowcs): New declaration.
43279         * lib/mbsrtowcs.c: New file.
43280         * m4/mbsrtowcs.m4: New file.
43281         * modules/mbsrtowcs: New file.
43282         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
43283         HAVE_MBSRTOWCS.
43284         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
43285         HAVE_MBSRTOWCS.
43286         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
43287
43288 2008-12-19  Bruno Haible  <bruno@clisp.org>
43289
43290         New module 'mbrlen'.
43291         * lib/wchar.in.h (mbrlen): New declaration.
43292         * lib/mbrlen.c: New file.
43293         * m4/mbrlen.m4: New file.
43294         * modules/mbrlen: New file.
43295         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
43296         HAVE_MBRLEN.
43297         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
43298         HAVE_MBRLEN.
43299         * doc/posix-functions/mbrlen.texi: Document the new module.
43300
43301 2008-12-19  Bruno Haible  <bruno@clisp.org>
43302
43303         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
43304         * modules/mbrtowc (Depends-on): Add verify.
43305         Suggested by Paul Eggert.
43306
43307 2008-12-18  Bruno Haible  <bruno@clisp.org>
43308
43309         * modules/mbsinit-tests: New file.
43310         * tests/test-mbsinit.sh: New file.
43311         * tests/test-mbsinit.c: New file.
43312
43313 2008-12-18  Bruno Haible  <bruno@clisp.org>
43314
43315         * modules/mbrtowc-tests: New file.
43316         * tests/test-mbrtowc1.sh: New file.
43317         * tests/test-mbrtowc2.sh: New file.
43318         * tests/test-mbrtowc3.sh: New file.
43319         * tests/test-mbrtowc4.sh: New file.
43320         * tests/test-mbrtowc.c: New file.
43321
43322         New module 'mbrtowc'.
43323         * lib/wchar.in.h (mbstate_t): Override when the system does not have
43324         mbsinit and mbrtowc.
43325         (mbrtowc): New declaration.
43326         * lib/mbrtowc.c: New file.
43327         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
43328         * modules/mbrtowc: New file.
43329         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
43330         HAVE_MBRTOWC.
43331         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
43332         HAVE_MBRTOWC.
43333         * doc/posix-functions/mbrtowc.texi: Document the new module.
43334
43335 2008-12-18  Bruno Haible  <bruno@clisp.org>
43336
43337         New module 'wctob'.
43338         * lib/wchar.in.h (wctob): New declaration.
43339         * lib/wctob.c: New file.
43340         * m4/wctob.m4: New file.
43341         * modules/wctob: New file.
43342         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
43343         HAVE_WCTOB.
43344         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
43345         * doc/posix-functions/wctob.texi: Document the new module.
43346
43347 2008-12-18  Bruno Haible  <bruno@clisp.org>
43348
43349         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
43350         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
43351
43352 2008-12-18  Simon Josefsson  <simon@josefsson.org>
43353
43354         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
43355         G. Christensen" <tgc@jupiterrise.com>.
43356
43357         * lib/flock.c: Need to include errno.h.  Reported by "Tom
43358         G. Christensen" <tgc@jupiterrise.com>.
43359
43360         * lib/flock.c: Need to include string.h.  Reported by "Tom
43361         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
43362         <ebb9@byu.net>.
43363
43364 2008-12-18  Bruno Haible  <bruno@clisp.org>
43365
43366         * m4/locale-ja.m4: New file, from GNU gettext.
43367
43368 2008-12-17  Bruno Haible  <bruno@clisp.org>
43369
43370         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
43371         Suggested by Eric Blake.
43372
43373 2008-12-17  Bruno Haible  <bruno@clisp.org>
43374
43375         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
43376
43377 2008-12-17  Bruno Haible  <bruno@clisp.org>
43378
43379         * lib/mbsinit.c: Include verify.h. Verify an assumption.
43380         * modules/mbsinit (Depends-on): Add verify.
43381         Suggested by Paul Eggert.
43382
43383 2008-12-17  Bruno Haible  <bruno@clisp.org>
43384
43385         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
43386         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
43387         gl_FUNC_MBRTOWC.
43388         * m4/mbiter.m4 (gl_MBITER): LIkewise.
43389         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
43390         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
43391         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
43392         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
43393         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
43394         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
43395         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
43396         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
43397         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
43398         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
43399         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
43400         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
43401         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
43402         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
43403         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
43404         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
43405         * modules/trim (configure.ac): Likewise.
43406
43407 2008-12-17  Bruno Haible  <bruno@clisp.org>
43408
43409         * modules/btowc-tests: New file.
43410         * tests/test-btowc1.sh: New file.
43411         * tests/test-btowc2.sh: New file.
43412         * tests/test-btowc.c: New file.
43413
43414         New module 'btowc'.
43415         * lib/wchar.in.h (btowc): New declaration.
43416         * lib/btowc.c: New file.
43417         * m4/btowc.m4: New file.
43418         * modules/btowc: New file.
43419         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
43420         HAVE_BTOWC.
43421         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
43422         * doc/posix-functions/btowc.texi: Document the new module.
43423
43424 2008-12-17  Bruno Haible  <bruno@clisp.org>
43425
43426         New module 'mbsinit'.
43427         * lib/wchar.in.h (mbsinit): New declaration.
43428         * lib/mbsinit.c: New file.
43429         * m4/mbsinit.m4: New file.
43430         * modules/mbsinit: New file.
43431         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
43432         HAVE_MBSINIT.
43433         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
43434         HAVE_MBSINIT.
43435         * doc/posix-functions/mbsinit.texi: Document the new module.
43436
43437 2008-12-16  Bruno Haible  <bruno@clisp.org>
43438
43439         * lib/unistd.in.h: Add comment.
43440         * tests/test-environ.c: Don't include <stdlib.h>.
43441
43442 2008-12-16  Bruno Haible  <bruno@clisp.org>
43443
43444         * lib/parse-duration.h (parse_duration): Document return value
43445         convention.
43446         * lib/parse-duration.c: Include specification header first. Add
43447         comments.
43448         (_): Remove macro.
43449         (parse_year_month_day, parse_hour_minute_second): Move side effects
43450         outside of strchr call.
43451         (parse_non_iso8601): Move side effects outside of isspace call.
43452         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
43453         call.
43454
43455 2008-12-16  Bruno Haible  <bruno@clisp.org>
43456
43457         * tests/test-parse-duration.sh: Produce no output when the test
43458         succeeds.
43459
43460 2008-12-16  Bruno Haible  <bruno@clisp.org>
43461
43462         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
43463         expressions.
43464
43465 2008-12-15  Bruno Haible  <bruno@clisp.org>
43466
43467         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
43468         * doc/glibc-functions/flistxattr.texi: Likewise.
43469         * doc/glibc-functions/fopencookie.texi: Likewise.
43470         * doc/glibc-functions/fremovexattr.texi: Likewise.
43471         * doc/glibc-functions/fsetxattr.texi: Likewise.
43472         * doc/glibc-functions/getxattr.texi: Likewise.
43473         * doc/glibc-functions/lgetxattr.texi: Likewise.
43474         * doc/glibc-functions/listxattr.texi: Likewise.
43475         * doc/glibc-functions/llistxattr.texi: Likewise.
43476         * doc/glibc-functions/lremovexattr.texi: Likewise.
43477         * doc/glibc-functions/lsetxattr.texi: Likewise.
43478         * doc/glibc-functions/removexattr.texi: Likewise.
43479         * doc/glibc-functions/setxattr.texi: Likewise.
43480         * doc/posix-functions/open_memstream.texi: Likewise.
43481
43482 2008-12-15  Eric Blake  <ebb9@byu.net>
43483
43484         Update doc for cygwin 1.7.
43485         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
43486         functions.
43487         * doc/posix-functions/fchmodat.texi: Likewise.
43488         * doc/posix-functions/fchownat.texi: Likewise.
43489         * doc/posix-functions/fdopendir.texi: Likewise.
43490         * doc/posix-functions/fmemopen.texi: Likewise.
43491         * doc/posix-functions/freeaddrinfo.texi: Likewise.
43492         * doc/posix-functions/fstatat.texi: Likewise.
43493         * doc/posix-functions/futimens.texi: Likewise.
43494         * doc/posix-functions/gai_strerror.texi: Likewise.
43495         * doc/posix-functions/getaddrinfo.texi: Likewise.
43496         * doc/posix-functions/getnameinfo.texi: Likewise.
43497         * doc/posix-functions/if_freenameindex.texi: Likewise.
43498         * doc/posix-functions/if_indextoname.texi: Likewise.
43499         * doc/posix-functions/if_nameindex.texi: Likewise.
43500         * doc/posix-functions/if_nametoindex.texi: Likewise.
43501         * doc/posix-functions/insque.texi: Likewise.
43502         * doc/posix-functions/linkat.texi: Likewise.
43503         * doc/posix-functions/llrint.texi: Likewise.
43504         * doc/posix-functions/llrintf.texi: Likewise.
43505         * doc/posix-functions/llrintl.texi: Likewise.
43506         * doc/posix-functions/lockf.texi: Likewise.
43507         * doc/posix-functions/lrintl.texi: Likewise.
43508         * doc/posix-functions/mkdirat.texi: Likewise.
43509         * doc/posix-functions/mkfifoat.texi: Likewise.
43510         * doc/posix-functions/mknodat.texi: Likewise.
43511         * doc/posix-functions/mq_close.texi: Likewise.
43512         * doc/posix-functions/mq_getattr.texi: Likewise.
43513         * doc/posix-functions/mq_notify.texi: Likewise.
43514         * doc/posix-functions/mq_open.texi: Likewise.
43515         * doc/posix-functions/mq_receive.texi: Likewise.
43516         * doc/posix-functions/mq_send.texi: Likewise.
43517         * doc/posix-functions/mq_setattr.texi: Likewise.
43518         * doc/posix-functions/mq_timedreceive.texi: Likewise.
43519         * doc/posix-functions/mq_timedsend.texi: Likewise.
43520         * doc/posix-functions/mq_unlink.texi: Likewise.
43521         * doc/posix-functions/open_memstream.texi: Likewise.
43522         * doc/posix-functions/openat.texi: Likewise.
43523         * doc/posix-functions/posix_fadvise.texi: Likewise.
43524         * doc/posix-functions/posix_fallocate.texi: Likewise.
43525         * doc/posix-functions/posix_madvise.texi: Likewise.
43526         * doc/posix-functions/posix_memalign.texi: Likewise.
43527         * doc/posix-functions/posix_openpt.texi: Likewise.
43528         * doc/posix-functions/readlinkat.texi: Likewise.
43529         * doc/posix-functions/remque.texi: Likewise.
43530         * doc/posix-functions/renameat.texi: Likewise.
43531         * doc/posix-functions/rintl.texi: Likewise.
43532         * doc/posix-functions/sem_unlink.texi: Likewise.
43533         * doc/posix-functions/shm_open.texi: Likewise.
43534         * doc/posix-functions/shm_unlink.texi: Likewise.
43535         * doc/posix-functions/signgam.texi: Likewise.
43536         * doc/posix-functions/sigset.texi: Likewise.
43537         * doc/posix-functions/stpcpy.texi: Likewise.
43538         * doc/posix-functions/stpncpy.texi: Likewise.
43539         * doc/posix-functions/strerror.texi: Likewise.
43540         * doc/posix-functions/strtod.texi: Likewise.
43541         * doc/posix-functions/symlinkat.texi: Likewise.
43542         * doc/posix-functions/unlinkat.texi: Likewise.
43543         * doc/posix-functions/utimensat.texi: Likewise.
43544         * doc/glibc-functions/bindresvport.texi: Likewise.
43545         * doc/glibc-functions/dn_expand.texi: Likewise.
43546         * doc/glibc-functions/exp10.texi: Likewise.
43547         * doc/glibc-functions/exp10f.texi: Likewise.
43548         * doc/glibc-functions/fgetxattr.texi: Likewise.
43549         * doc/glibc-functions/flistxattr.texi: Likewise.
43550         * doc/glibc-functions/fopencookie.texi: Likewise.
43551         * doc/glibc-functions/freeifaddrs.texi: Likewise.
43552         * doc/glibc-functions/fremovexattr.texi: Likewise.
43553         * doc/glibc-functions/fsetxattr.texi: Likewise.
43554         * doc/glibc-functions/getifaddrs.texi: Likewise.
43555         * doc/glibc-functions/getxattr.texi: Likewise.
43556         * doc/glibc-functions/lgetxattr.texi: Likewise.
43557         * doc/glibc-functions/listxattr.texi: Likewise.
43558         * doc/glibc-functions/llistxattr.texi: Likewise.
43559         * doc/glibc-functions/lremovexattr.texi: Likewise.
43560         * doc/glibc-functions/lsetxattr.texi: Likewise.
43561         * doc/glibc-functions/pow10.texi: Likewise.
43562         * doc/glibc-functions/pow10f.texi: Likewise.
43563         * doc/glibc-functions/rcmd_af.texi: Likewise.
43564         * doc/glibc-functions/removexattr.texi: Likewise.
43565         * doc/glibc-functions/res_init.texi: Likewise.
43566         * doc/glibc-functions/res_mkquery.texi: Likewise.
43567         * doc/glibc-functions/res_query.texi: Likewise.
43568         * doc/glibc-functions/res_querydomain.texi: Likewise.
43569         * doc/glibc-functions/res_send.texi: Likewise.
43570         * doc/glibc-functions/rresvport_af.texi: Likewise.
43571         * doc/glibc-functions/setxattr.texi: Likewise.
43572         * doc/glibc-functions/strcasestr.texi: Likewise.
43573
43574 2008-12-15  Bruno Haible  <bruno@clisp.org>
43575
43576         Fix compilation error on OSF/1 4.0.
43577         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
43578         <sys/time.h>, simply delegate to the system header.
43579         Reported by Daniel Richard G. <oss@teragram.com>.
43580
43581 2008-12-15  Bruno Haible  <bruno@clisp.org>
43582
43583         * doc/posix-functions/openat.texi: Mention the 'openat' module.
43584         * doc/posix-functions/fchmodat.texi: Likewise.
43585         * doc/posix-functions/fchownat.texi: Likewise.
43586         * doc/posix-functions/fdopendir.texi: Likewise.
43587         * doc/posix-functions/fstatat.texi: Likewise.
43588         * doc/posix-functions/mkdirat.texi: Likewise.
43589         * doc/posix-functions/unlinkat.texi: Likewise.
43590
43591 2008-12-14  Bruno Haible  <bruno@clisp.org>
43592
43593         Update doc for POSIX:2008.
43594         * doc/posix-functions/faccessat.texi: New file.
43595         * doc/posix-functions/fchmodat.texi: New file.
43596         * doc/posix-functions/fchownat.texi: New file.
43597         * doc/posix-functions/fdopendir.texi: New file.
43598         * doc/posix-functions/fstatat.texi: New file.
43599         * doc/posix-functions/futimens.texi: New file.
43600         * doc/posix-functions/linkat.texi: New file.
43601         * doc/posix-functions/mkdirat.texi: New file.
43602         * doc/posix-functions/mkfifoat.texi: New file.
43603         * doc/posix-functions/mknodat.texi: New file.
43604         * doc/posix-functions/open_wmemstream.texi: New file.
43605         * doc/posix-functions/openat.texi: New file.
43606         * doc/posix-functions/psiginfo.texi: New file.
43607         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
43608         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
43609         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
43610         * doc/posix-functions/readlinkat.texi: New file.
43611         * doc/posix-functions/renameat.texi: New file.
43612         * doc/posix-functions/strerror_l.texi: New file.
43613         * doc/posix-functions/symlinkat.texi: New file.
43614         * doc/posix-functions/unlinkat.texi: New file.
43615         * doc/posix-functions/utimensat.texi: New file.
43616         * doc/gnulib.texi (Function Substitutes): Add these subsections.
43617
43618 2008-12-14  Bruno Haible  <bruno@clisp.org>
43619
43620         Update doc for POSIX:2008.
43621         * doc/posix-functions/alphasort.texi: Renamed from
43622         doc/glibc-functions/alphasort.texi.
43623         * doc/posix-functions/dirfd.texi: Renamed from
43624         doc/glibc-functions/dirfd.texi.
43625         * doc/posix-functions/dprintf.texi: Renamed from
43626         doc/glibc-functions/dprintf.texi.
43627         * doc/posix-functions/duplocale.texi: Renamed from
43628         doc/glibc-functions/duplocale.texi.
43629         * doc/posix-functions/fexecve.texi: Renamed from
43630         doc/glibc-functions/fexecve.texi.
43631         * doc/posix-functions/fmemopen.texi: Renamed from
43632         doc/glibc-functions/fmemopen.texi.
43633         * doc/posix-functions/freelocale.texi: Renamed from
43634         doc/glibc-functions/freelocale.texi.
43635         * doc/posix-functions/getdate_err.texi: Renamed from
43636         doc/glibc-functions/getdate_err.texi.
43637         * doc/posix-functions/isalnum_l.texi: Renamed from
43638         doc/glibc-functions/isalnum_l.texi.
43639         * doc/posix-functions/isalpha_l.texi: Renamed from
43640         doc/glibc-functions/isalpha_l.texi.
43641         * doc/posix-functions/isblank_l.texi: Renamed from
43642         doc/glibc-functions/isblank_l.texi.
43643         * doc/posix-functions/iscntrl_l.texi: Renamed from
43644         doc/glibc-functions/iscntrl_l.texi.
43645         * doc/posix-functions/isdigit_l.texi: Renamed from
43646         doc/glibc-functions/isdigit_l.texi.
43647         * doc/posix-functions/isgraph_l.texi: Renamed from
43648         doc/glibc-functions/isgraph_l.texi.
43649         * doc/posix-functions/islower_l.texi: Renamed from
43650         doc/glibc-functions/islower_l.texi.
43651         * doc/posix-functions/isprint_l.texi: Renamed from
43652         doc/glibc-functions/isprint_l.texi.
43653         * doc/posix-functions/ispunct_l.texi: Renamed from
43654         doc/glibc-functions/ispunct_l.texi.
43655         * doc/posix-functions/isspace_l.texi: Renamed from
43656         doc/glibc-functions/isspace_l.texi.
43657         * doc/posix-functions/isupper_l.texi: Renamed from
43658         doc/glibc-functions/isupper_l.texi.
43659         * doc/posix-functions/iswalnum_l.texi: Renamed from
43660         doc/glibc-functions/iswalnum_l.texi.
43661         * doc/posix-functions/iswalpha_l.texi: Renamed from
43662         doc/glibc-functions/iswalpha_l.texi.
43663         * doc/posix-functions/iswblank_l.texi: Renamed from
43664         doc/glibc-functions/iswblank_l.texi.
43665         * doc/posix-functions/iswcntrl_l.texi: Renamed from
43666         doc/glibc-functions/iswcntrl_l.texi.
43667         * doc/posix-functions/iswctype_l.texi: Renamed from
43668         doc/glibc-functions/iswctype_l.texi.
43669         * doc/posix-functions/iswdigit_l.texi: Renamed from
43670         doc/glibc-functions/iswdigit_l.texi.
43671         * doc/posix-functions/iswgraph_l.texi: Renamed from
43672         doc/glibc-functions/iswgraph_l.texi.
43673         * doc/posix-functions/iswlower_l.texi: Renamed from
43674         doc/glibc-functions/iswlower_l.texi.
43675         * doc/posix-functions/iswprint_l.texi: Renamed from
43676         doc/glibc-functions/iswprint_l.texi.
43677         * doc/posix-functions/iswpunct_l.texi: Renamed from
43678         doc/glibc-functions/iswpunct_l.texi.
43679         * doc/posix-functions/iswspace_l.texi: Renamed from
43680         doc/glibc-functions/iswspace_l.texi.
43681         * doc/posix-functions/iswupper_l.texi: Renamed from
43682         doc/glibc-functions/iswupper_l.texi.
43683         * doc/posix-functions/iswxdigit_l.texi: Renamed from
43684         doc/glibc-functions/iswxdigit_l.texi.
43685         * doc/posix-functions/isxdigit_l.texi: Renamed from
43686         doc/glibc-functions/isxdigit_l.texi.
43687         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
43688         doc/glibc-functions/mbsnrtowcs.texi.
43689         * doc/posix-functions/mkdtemp.texi: Renamed from
43690         doc/glibc-functions/mkdtemp.texi.
43691         * doc/posix-functions/newlocale.texi: Renamed from
43692         doc/glibc-functions/newlocale.texi.
43693         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
43694         doc/glibc-functions/nl_langinfo_l.texi.
43695         * doc/posix-functions/open_memstream.texi: Renamed from
43696         doc/glibc-functions/open_memstream.texi.
43697         * doc/posix-functions/opterr.texi: Renamed from
43698         doc/glibc-functions/opterr.texi.
43699         * doc/posix-functions/optind.texi: Renamed from
43700         doc/glibc-functions/optind.texi.
43701         * doc/posix-functions/optopt.texi: Renamed from
43702         doc/glibc-functions/optopt.texi.
43703         * doc/posix-functions/psignal.texi: Renamed from
43704         doc/glibc-functions/psignal.texi.
43705         * doc/posix-functions/scandir.texi: Renamed from
43706         doc/glibc-functions/scandir.texi.
43707         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
43708         doc/glibc-functions/sched_get_priority_min.texi.
43709         * doc/posix-functions/signgam.texi: Renamed from
43710         doc/glibc-functions/signgam.texi.
43711         * doc/posix-functions/stpcpy.texi: Renamed from
43712         doc/glibc-functions/stpcpy.texi.
43713         * doc/posix-functions/stpncpy.texi: Renamed from
43714         doc/glibc-functions/stpncpy.texi.
43715         * doc/posix-functions/strcasecmp_l.texi: Renamed from
43716         doc/glibc-functions/strcasecmp_l.texi.
43717         * doc/posix-functions/strcoll_l.texi: Renamed from
43718         doc/glibc-functions/strcoll_l.texi.
43719         * doc/posix-functions/strfmon_l.texi: Renamed from
43720         doc/glibc-functions/strfmon_l.texi.
43721         * doc/posix-functions/strftime_l.texi: Renamed from
43722         doc/glibc-functions/strftime_l.texi.
43723         * doc/posix-functions/strncasecmp_l.texi: Renamed from
43724         doc/glibc-functions/strncasecmp_l.texi.
43725         * doc/posix-functions/strndup.texi: Renamed from
43726         doc/glibc-functions/strndup.texi.
43727         * doc/posix-functions/strnlen.texi: Renamed from
43728         doc/glibc-functions/strnlen.texi.
43729         * doc/posix-functions/strsignal.texi: Renamed from
43730         doc/glibc-functions/strsignal.texi.
43731         * doc/posix-functions/strxfrm_l.texi: Renamed from
43732         doc/glibc-functions/strxfrm_l.texi.
43733         * doc/posix-functions/timer_gettime.texi: Renamed from
43734         doc/glibc-functions/timer_gettime.texi.
43735         * doc/posix-functions/tolower_l.texi: Renamed from
43736         doc/glibc-functions/tolower_l.texi.
43737         * doc/posix-functions/toupper_l.texi: Renamed from
43738         doc/glibc-functions/toupper_l.texi.
43739         * doc/posix-functions/towctrans_l.texi: Renamed from
43740         doc/glibc-functions/towctrans_l.texi.
43741         * doc/posix-functions/towlower_l.texi: Renamed from
43742         doc/glibc-functions/towlower_l.texi.
43743         * doc/posix-functions/towupper_l.texi: Renamed from
43744         doc/glibc-functions/towupper_l.texi.
43745         * doc/posix-functions/uselocale.texi: Renamed from
43746         doc/glibc-functions/uselocale.texi.
43747         * doc/posix-functions/vdprintf.texi: Renamed from
43748         doc/glibc-functions/vdprintf.texi.
43749         * doc/posix-functions/wcpcpy.texi:
43750         Renamed from doc/glibc-functions/wcpcpy.texi.
43751         * doc/posix-functions/wcpncpy.texi: Renamed from
43752         doc/glibc-functions/wcpncpy.texi.
43753         * doc/posix-functions/wcscasecmp.texi: Renamed from
43754         doc/glibc-functions/wcscasecmp.texi.
43755         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
43756         doc/glibc-functions/wcscasecmp_l.texi.
43757         * doc/posix-functions/wcscoll_l.texi: Renamed from
43758         doc/glibc-functions/wcscoll_l.texi.
43759         * doc/posix-functions/wcsdup.texi: Renamed from
43760         doc/glibc-functions/wcsdup.texi.
43761         * doc/posix-functions/wcsncasecmp.texi: Renamed from
43762         doc/glibc-functions/wcsncasecmp.texi.
43763         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
43764         doc/glibc-functions/wcsncasecmp_l.texi.
43765         * doc/posix-functions/wcsnlen.texi: Renamed from
43766         doc/glibc-functions/wcsnlen.texi.
43767         * doc/posix-functions/wcsnrtombs.texi: Renamed from
43768         doc/glibc-functions/wcsnrtombs.texi.
43769         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
43770         doc/glibc-functions/wcsxfrm_l.texi.
43771         * doc/posix-functions/wctrans_l.texi: Renamed from
43772         doc/glibc-functions/wctrans_l.texi.
43773         * doc/posix-functions/wctype_l.texi: Renamed from
43774         doc/glibc-functions/wctype_l.texi.
43775         * doc/gnulib.texi (Function Substitutes): Add these subsections.
43776         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
43777         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
43778         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
43779         these subsections.
43780         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
43781         Remove sections.
43782
43783 2008-12-14  Bruno Haible  <bruno@clisp.org>
43784
43785         Update doc for POSIX:2008.
43786         * doc/posix-functions/*.texi: Update URL of POSIX specification.
43787
43788 2008-12-14  Bruno Haible  <bruno@clisp.org>
43789
43790         Update doc for POSIX:2008.
43791         * doc/pastposix-functions/bcmp.texi: Renamed from
43792         doc/posix-functions/bcmp.texi.
43793         * doc/pastposix-functions/bcopy.texi: Renamed from
43794         doc/posix-functions/bcopy.texi.
43795         * doc/pastposix-functions/bsd_signal.texi: Renamed from
43796         doc/posix-functions/bsd_signal.texi.
43797         * doc/pastposix-functions/bzero.texi: Renamed from
43798         doc/posix-functions/bzero.texi.
43799         * doc/pastposix-functions/ecvt.texi: Renamed from
43800         doc/posix-functions/ecvt.texi.
43801         * doc/pastposix-functions/fcvt.texi: Renamed from
43802         doc/posix-functions/fcvt.texi.
43803         * doc/pastposix-functions/ftime.texi: Renamed from
43804         doc/posix-functions/ftime.texi.
43805         * doc/pastposix-functions/gcvt.texi: Renamed from
43806         doc/posix-functions/gcvt.texi.
43807         * doc/pastposix-functions/getcontext.texi: Renamed from
43808         doc/posix-functions/getcontext.texi.
43809         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
43810         doc/posix-functions/gethostbyaddr.texi.
43811         * doc/pastposix-functions/gethostbyname.texi: Renamed from
43812         doc/posix-functions/gethostbyname.texi.
43813         * doc/pastposix-functions/getwd.texi: Renamed from
43814         doc/posix-functions/getwd.texi.
43815         * doc/pastposix-functions/h_errno.texi: Renamed from
43816         doc/posix-functions/h_errno.texi.
43817         * doc/pastposix-functions/index.texi: Renamed from
43818         doc/posix-functions/index.texi.
43819         * doc/pastposix-functions/makecontext.texi: Renamed from
43820         doc/posix-functions/makecontext.texi.
43821         * doc/pastposix-functions/mktemp.texi: Renamed from
43822         doc/posix-functions/mktemp.texi.
43823         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
43824         doc/posix-functions/pthread_attr_getstackaddr.texi.
43825         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
43826         doc/posix-functions/pthread_attr_setstackaddr.texi.
43827         * doc/pastposix-functions/rindex.texi: Renamed from
43828         doc/posix-functions/rindex.texi.
43829         * doc/pastposix-functions/scalb.texi: Renamed from
43830         doc/posix-functions/scalb.texi.
43831         * doc/pastposix-functions/setcontext.texi: Renamed from
43832         doc/posix-functions/setcontext.texi.
43833         * doc/pastposix-functions/swapcontext.texi: Renamed from
43834         doc/posix-functions/swapcontext.texi.
43835         * doc/pastposix-functions/ualarm.texi: Renamed from
43836         doc/posix-functions/ualarm.texi.
43837         * doc/pastposix-functions/usleep.texi: Renamed from
43838         doc/posix-functions/usleep.texi.
43839         * doc/pastposix-functions/vfork.texi: Renamed from
43840         doc/posix-functions/vfork.texi.
43841         * doc/pastposix-functions/wcswcs.texi: Renamed from
43842         doc/posix-functions/wcswcs.texi.
43843         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
43844         (Function Substitutes): Update.
43845
43846 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43847
43848         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
43849         m4/strerror.m4.
43850
43851 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43852             Bruno Haible  <bruno@clisp.org>
43853
43854         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
43855
43856 2008-12-13  Bruno Haible  <bruno@clisp.org>
43857
43858         * modules/strtoull (Depends-on): Remove unistd.
43859
43860 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43861
43862         * modules/strtoull (Depends-on): Add stdlib.
43863
43864 2008-12-11  Simon Josefsson  <simon@josefsson.org>
43865
43866         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
43867
43868 2008-12-10  Jim Meyering  <meyering@redhat.com>
43869
43870         gl_ASSERT: don't say assertions are disabled when they're not
43871         * m4/assert.m4 (gl_ASSERT): Do not make configure report
43872         "checking whether to enable assertions... no", when they are in
43873         fact enabled.  This is solely a bug in the output of configure.
43874         In spite of saying "no", NDEBUG was not defined in that case.
43875         Also, as noted by Eric Blake, leave assertions enabled upon
43876         --enable-assert=INVALID.
43877
43878 2008-12-10  Bruno Haible  <bruno@clisp.org>
43879
43880         Change MODULES.html to refer to POSIX:2008 where possible.
43881         * MODULES.html.sh (POSIX2008_URL): New variable.
43882         (posix_headers): Remove sys/timeb, ucontext.
43883         (posix2001_headers): New variable.
43884         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
43885         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
43886         index, makecontext, mktemp, pthread_attr_getstackaddr,
43887         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
43888         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
43889         (posix2001_functions): New variable.
43890         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
43891         otherwise.
43892
43893 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43894
43895         add missing include to parse-duration.c
43896         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
43897         * modules/parse-duration (Depends-on): Add xalloc.
43898
43899         fix sed script reading maint.mk
43900         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
43901         (syntax-check-rules): Use it.
43902
43903 2008-12-09  Bruno Haible  <bruno@clisp.org>
43904
43905         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
43906         MacOS X 10.4/PowerPC.
43907         Reported by Simon Josefsson.
43908
43909 2008-12-08  Jim Meyering  <meyering@redhat.com>
43910
43911         work around mingw's lack of some S_IF definitions
43912         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
43913         Reported by Simon Josefsson.
43914
43915 2008-12-08  Bruno Haible  <bruno@clisp.org>
43916
43917         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
43918         applied to variables. Needed on MacOS X 10.4/PowerPC.
43919         Reported by Simon Josefsson.
43920
43921 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
43922         and Eric Blake  <ebb9@byu.net>
43923
43924         assert: honor --enable-assert
43925         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
43926         order to honor --enable-assert, rather than treating it as a
43927         synonym for --disable-assert.
43928
43929 2008-12-08  Jim Meyering  <meyering@redhat.com>
43930
43931         * lib/posixtm.c: Remove now-useless declaration of mktime.
43932
43933         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
43934
43935 2008-12-07  Bruno Haible  <bruno@clisp.org>
43936
43937         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
43938         test_once): Mark functions as static.
43939         * tests/test-tls.c (test_tls): Likewise.
43940
43941 2008-12-07  Bruno Haible  <bruno@clisp.org>
43942
43943         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
43944         iconv_register_autodetect.
43945
43946 2008-12-07  Jim Meyering  <meyering@redhat.com>
43947
43948         posixtm.c: avoid a warning
43949         * lib/posixtm.c (posixtime): Don't initialize tm0.
43950         It's no longer needed to placate gcc4's -Wuninitialized,
43951         and the attempt to placate would elicit a new warning.
43952
43953         unicodeio.c: mark unused parameters
43954         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
43955         (fallback_failure_callback): Likewise.
43956
43957 2008-12-07  Bruno Haible  <bruno@clisp.org>
43958
43959         * gnulib-tool (func_create_testdir): When building the tests
43960         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
43961         Reported by Simon Josefsson.
43962
43963 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43964
43965         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
43966
43967 2008-12-06  Bruno Haible  <bruno@clisp.org>
43968
43969         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
43970         Suggested by Eric Blake.
43971
43972 2008-12-06  Bruno Haible  <bruno@clisp.org>
43973
43974         Fix a c-stack test failure on MacOS X.
43975         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
43976         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
43977         handler for SIGBUS as well.
43978         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
43979         install a signal handler for SIGBUS as well.
43980         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
43981
43982 2008-12-06  Bruno Haible  <bruno@clisp.org>
43983
43984         Advocacy documentation.
43985         * doc/gnulib-intro.texi (Benefits): New section.
43986         * doc/gnulib.texi: Update.
43987
43988 2008-12-06  Bruno Haible  <bruno@clisp.org>
43989
43990         Document the 'manywarnings' module.
43991         * doc/manywarnings.texi: New file.
43992         * doc/gnulib.texi: Include it.
43993
43994 2008-12-05  Eric Blake  <ebb9@byu.net>
43995
43996         tests: silence some gcc warnings
43997         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
43998         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
43999         type mismatches.
44000
44001 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44002             Bruno Haible  <bruno@clisp.org>
44003
44004         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
44005
44006 2008-11-29  Jim Meyering  <meyering@redhat.com>
44007
44008         unicodeio.c: mark unused parameters
44009         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
44010         (fallback_failure_callback): Likewise.
44011
44012         fts: fix a thinko
44013         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
44014         (set_stat_type): Return S_IF*-valued "type" directly.
44015         Prompted by James Youngman's spotting a related bug.
44016         Confirmed by further testing through find.
44017
44018         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
44019         * lib/fts.c (D_TYPE): Define.
44020         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
44021         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
44022         (s_ifmt_shift_bits): New function.
44023         (set_stat_type): New function.
44024         (fts_build): When not calling fts_stat, call set_stat_type
44025         to propagate dirent.d_type info to fts_read caller.
44026         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
44027         fts_statp->st_mode type information may be valid.
44028
44029 2008-11-28  Simon Josefsson  <simon@josefsson.org>
44030
44031         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
44032         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
44033         <sds@gnu.org>.
44034
44035 2008-11-20  Bruno Haible  <bruno@clisp.org>
44036
44037         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
44038         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
44039         INCLUDE_NEXT.
44040         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
44041         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
44042         * modules/math (Makefile.am): Substitute
44043         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
44044         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
44045
44046 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
44047             Bruno Haible  <bruno@clisp.org>
44048
44049         * lib/stdint.in.h: Define all type macros so that their expansion is
44050         a single typedef'ed token. Fixes a compilation failure in Boost which
44051         does "using ::int8_t;".
44052
44053 2008-11-18  Simon Josefsson  <simon@josefsson.org>
44054
44055         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
44056         gl_MANYWARN_ALL_GCC.
44057         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
44058         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
44059         * modules/manywarnings: New file.
44060         * MODULES.html.sh: Mention manywarnings module.
44061
44062 2008-11-18  Bruno Haible  <bruno@clisp.org>
44063
44064         * doc/gnulib-tool.texi (Unit tests): New section.
44065
44066 2008-11-18  Simon Josefsson  <simon@josefsson.org>
44067
44068         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
44069         paths like 'lib/po/foo.po'.
44070
44071 2008-11-17  Simon Josefsson  <simon@josefsson.org>
44072
44073         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
44074         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
44075
44076 2008-11-17  Simon Josefsson  <simon@josefsson.org>
44077
44078         * m4/warnings.m4: Use CPPFLAGS to really check whether the
44079         parameter works.
44080
44081 2008-11-17  Simon Josefsson  <simon@josefsson.org>
44082
44083         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
44084
44085 2008-11-17  Bruce Korb  <bkorb@gnu.org>
44086
44087         * modules/parse-duration-tests: New file.
44088         * tests/test-parse-duration.sh: New file.
44089         * tests/test-parse-duration.c: New file.
44090
44091         New module 'parse-duration'.
44092         * lib/parse-duration.h: New file.
44093         * lib/parse-duration.c: New file.
44094         * modules/parse-duration: New file.
44095
44096 2008-11-17  Bruno Haible  <bruno@clisp.org>
44097
44098         * tests/test-select-out.sh: Comment out the first pipe test.
44099         Reported by Simon Josefsson.
44100
44101 2008-11-17  Bruno Haible  <bruno@clisp.org>
44102
44103         * modules/getaddrinfo (Depends-on): Add servent, hostent.
44104         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
44105         gl_HOSTENT.
44106
44107 2008-11-17  Bruno Haible  <bruno@clisp.org>
44108
44109         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
44110         -lnetwork and -lnet. Needed for Haiku and BeOS.
44111
44112 2008-11-16  Bruno Haible  <bruno@clisp.org>
44113
44114         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
44115
44116 2008-11-16  Bruno Haible  <bruno@clisp.org>
44117
44118         Avoid test failure on Haiku.
44119         * tests/test-fsync.c: Include <errno.h>.
44120         (main): Don't require that fsync (0) fails.
44121
44122 2008-11-15  Bruno Haible  <bruno@clisp.org>
44123
44124         New module 'hostent'.
44125         * modules/hostent: New file.
44126         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
44127
44128 2008-11-15  Bruno Haible  <bruno@clisp.org>
44129
44130         New module 'servent'.
44131         * modules/servent: New file.
44132         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
44133
44134 2008-11-15  Bruno Haible  <bruno@clisp.org>
44135
44136         Avoid generating same test program with two different rules.
44137         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
44138         test-frexp to test-frexp-nolibm.
44139         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
44140         test-frexpl to test-frexpl-nolibm.
44141
44142 2008-11-15  Bruno Haible  <bruno@clisp.org>
44143
44144         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
44145         $(FREXPL_LIBM).
44146
44147 2008-11-15  Bruno Haible  <bruno@clisp.org>
44148
44149         * lib/netdb.in.h: Activate the definitions also when the system's
44150         <netdb.h> has 'struct addrinfo'.
44151         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
44152         EAI_OVERFLOW or AI_NUMERICSERV.
44153         * doc/posix-headers/netdb.texi: Document the problem.
44154
44155 2008-11-15  Bruno Haible  <bruno@clisp.org>
44156
44157         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
44158
44159         Make the 'sched' module work on platforms where <sched.h> exists but
44160         is incomplete (such as Haiku).
44161         * lib/sched.in.h; Include the system's <sched.h> if it exists.
44162         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
44163         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
44164         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
44165         HAVE_STRUCT_SCHED_PARAM.
44166         * modules/sched (Depends-on): Add include_next.
44167         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
44168         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
44169         * doc/posix-headers/sched.texi: Document the issue.
44170
44171 2008-11-13  Jim Meyering  <meyering@redhat.com>
44172
44173         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
44174         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
44175         test would fail due to the difference in the Report bugs to ...
44176         line.  The expected address is empty, "<>", while the actual
44177         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
44178
44179 2008-11-12  Bruno Haible  <bruno@clisp.org>
44180
44181         lstat: don't compile lstat.c on systems lacking lstat
44182         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
44183         which don't have lstat; this is handled by lib/sys_stat.in.h already.
44184         Reported by Daniel P. Berrange via Jim Meyering.
44185
44186 2008-11-12  Jim Meyering  <meyering@redhat.com>
44187
44188         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
44189
44190 2008-11-12  Simon Josefsson  <simon@josefsson.org>
44191
44192         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
44193         instead.
44194
44195 2008-11-12  Bruno Haible  <bruno@clisp.org>
44196
44197         * lib/unicodeio.c: Include unistr.h.
44198         (utf8_wctomb): Remove function.
44199         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
44200
44201 2008-11-12  Simon Josefsson  <simon@josefsson.org>
44202
44203         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
44204         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
44205         <bruno@clisp.org>.
44206         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
44207
44208 2008-11-12  Simon Josefsson  <simon@josefsson.org>
44209
44210         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
44211         * doc/gnulib.texi: Add section for warnings.
44212
44213 2008-11-11  Bruno Haible  <bruno@clisp.org>
44214
44215         * lib/sockets.h: Add a comment.
44216
44217 2008-11-11  Karl Berry  <karl@gnu.org>
44218
44219         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
44220
44221 2008-11-11  Eric Blake  <ebb9@byu.net>
44222
44223         fdl.texi: avoid git symlinks
44224         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
44225
44226 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
44227
44228         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
44229
44230 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
44231
44232         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
44233         (gl_WARN_ADD): Substitute $2 if literal.
44234
44235 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
44236
44237         * m4/warning.m4: Remove.
44238
44239 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
44240
44241         * m4/warnings.m4: Almost complete rewrite. :-)
44242
44243 2008-11-10  Simon Josefsson  <simon@josefsson.org>
44244
44245         * modules/warnings: New module.
44246         * m4/warnings.m4: New file.
44247         * MODULES.html.sh: Mention warnings module.
44248         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
44249         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44250
44251 2008-11-10  Eric Blake  <ebb9@byu.net>
44252
44253         fdl.texi: make a symlink to the latest version
44254         * doc/standards.texi: Revert today's earlier change.
44255         * doc/fdl-1.2.texi: Rename from old fdl.texi...
44256         * doc/fdl.texi: ...and replace this with a symlink to the newer
44257         fdl-1.3.texi.
44258
44259 2008-11-10  Bruno Haible  <bruno@clisp.org>
44260
44261         * tests/test-select-fd.c (main): Accept the result file name as fourth
44262         argument.
44263         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
44264         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
44265
44266 2008-11-10  Bruno Haible  <bruno@clisp.org>
44267
44268         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
44269         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
44270         as autoconf-substituted macros.
44271         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
44272         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
44273         gl_NETDB_H_DEFAULTS. Set these variables.
44274         * modules/netdb (Makefile.am): Substitute these variables.
44275
44276 2008-11-10  Eric Blake  <ebb9@byu.net>
44277
44278         standards.texi: include correct file for FDL 1.3
44279         * doc/standards.texi (GNU Free Documentation License): Change
44280         include file to pull in FDL 1.3, not 1.2.
44281
44282         fdl.texi: revert accidental change to license
44283         * doc/fdl.texi: This is FDL 1.2, not 1.3.
44284
44285 2008-11-10  Bruno Haible  <bruno@clisp.org>
44286
44287         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
44288         cross-compiling guesses also when the native compile gives no result.
44289
44290 2008-11-10  Bruno Haible  <bruno@clisp.org>
44291
44292         * lib/spawni.c (__spawni): Force variable into the stack.
44293
44294 2008-11-10  Bruno Haible  <bruno@clisp.org>
44295
44296         Add support for Haiku.
44297         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
44298         glibc and BeOS, but also on Haiku.
44299         * lib/fpurge.c (fpurge): Likewise.
44300         * lib/freadable.c (freadable): Likewise.
44301         * lib/freadahead.c (freadahead): Likewise.
44302         * lib/freading.c (freading): Likewise.
44303         * lib/freadptr.c (freadptr): Likewise.
44304         * lib/freadseek.c (freadptrinc): Likewise.
44305         * lib/fseeko.c (rpl_fseeko): Likewise.
44306         * lib/fseterr.c (fseterr): Likewise.
44307         * lib/fwritable.c (fwritable): Likewise.
44308         * lib/fwriting.c (fwriting): Likewise.
44309         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
44310
44311 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
44312
44313         * lib/config.charset: Treat Haiku like BeOS.
44314
44315 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
44316
44317         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
44318         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
44319
44320 2008-11-08  Bruno Haible  <bruno@clisp.org>
44321
44322         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
44323         AC_CACHE_CHECK.
44324
44325 2008-11-08  Bruno Haible  <bruno@clisp.org>
44326
44327         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
44328
44329 2008-11-08  Bruno Haible  <bruno@clisp.org>
44330
44331         * tests/test-select-fd.c: New file.
44332         * tests/test-select-in.sh: New file.
44333         * tests/test-select-out.sh: New file.
44334         * tests/test-select-stdin.c: New file.
44335         * modules/select-tests (Files): Add the new files.
44336         (Depends-on): Add gettimeofday.
44337         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
44338         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
44339         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
44340
44341 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
44342             Bruno Haible  <bruno@clisp.org>
44343
44344         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
44345
44346 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
44347
44348         * build-aux/pmccabe2html: Added support for C++ source files.
44349
44350 2008-11-05  Ben Pfaff  <blp@gnu.org>
44351
44352         Fix lib/close.c build on Windows.
44353         * modules/close (Files): Add lib/w32sock.h.
44354
44355 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
44356
44357         Accept Bison's NEWS format.
44358         * build-aux/announce-gen (print_news_deltas): Tweak
44359         $re_prefix.
44360
44361 2008-11-04  Bruno Haible  <bruno@clisp.org>
44362
44363         * modules/random_r (Maintainer): Add glibc.
44364
44365 2008-11-04  Simon Josefsson  <simon@josefsson.org>
44366
44367         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
44368         by karl@freefriends.org (Karl Berry).
44369         * doc/alloca.texi: Likewise.
44370         * doc/c-ctype.texi: Likewise.
44371         * doc/c-strcase.texi: Likewise.
44372         * doc/c-strcaseeq.texi: Likewise.
44373         * doc/c-strcasestr.texi: Likewise.
44374         * doc/c-strstr.texi: Likewise.
44375         * doc/c-strtod.texi: Likewise.
44376         * doc/c-strtold.texi: Likewise.
44377         * doc/ctime.texi: Likewise.
44378         * doc/error.texi: Likewise.
44379         * doc/fdl.texi: Likewise.
44380         * doc/gcd.texi: Likewise.
44381         * doc/getdate.texi: Likewise.
44382         * doc/gnulib-intro.texi: Likewise.
44383         * doc/gnulib-tool.texi: Likewise.
44384         * doc/gnulib.texi: Likewise.
44385         * doc/inet_ntoa.texi: Likewise.
44386         * doc/maintain.texi: Likewise.
44387         * doc/make-stds.texi: Likewise.
44388         * doc/quote.texi: Likewise.
44389         * doc/regexprops-generic.texi: Likewise.
44390         * doc/standards.texi: Likewise.
44391         * doc/verify.texi: Likewise.
44392         * doc/visibility.texi: Likewise.
44393         * doc/gnulib.texi (GNU Free Documentation License): Include
44394         fdl-1.3.texi instead of fdl.texi.
44395
44396 2008-11-04  Simon Josefsson  <simon@josefsson.org>
44397
44398         * doc/fdl-1.3.texi: New file, from
44399         <http://www.gnu.org/licenses/fdl-1.3.texi>.
44400         * modules/fdl-1.3: Add.
44401         * MODULES.html.sh: Add fdl-1.3.
44402
44403 2008-11-03  Bruno Haible  <bruno@clisp.org>
44404
44405         Make determination of absolute name of header file work with AIX xlc.
44406         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
44407         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
44408         preprocessing.
44409         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
44410         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
44411
44412 2008-11-03  Simon Josefsson  <simon@josefsson.org>
44413
44414         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
44415         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
44416         <ludo@gnu.org>.
44417
44418 2008-11-02  Bruno Haible  <bruno@clisp.org>
44419
44420         Mark 'strpbrk' obsolete.
44421         * modules/strpbrk (Status, Notice): New sections.
44422         * modules/strtok_r (Depends-on): Add strpbrk.
44423
44424 2008-11-02  Bruno Haible  <bruno@clisp.org>
44425
44426         Mark 'strdup' obsolete.
44427         * modules/strdup (Status, Notice): New sections.
44428         * modules/findprog (Depends-on): Add strdup.
44429         * modules/getaddrinfo (Depends-on): Likewise.
44430         * modules/localename (Depends-on): Likewise.
44431         * modules/relocatable-lib (Depends-on): Likewise.
44432         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
44433         * modules/relocatable-prog (Depends-on): Likewise.
44434         * modules/trim (Depends-on): Likewise.
44435         * modules/unictype/gen-ctype (Depends-on): Likewise.
44436         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
44437
44438 2008-11-02  Bruno Haible  <bruno@clisp.org>
44439
44440         Mark 'strcspn' obsolete.
44441         * modules/strcspn (Status, Notice): New sections.
44442
44443 2008-11-02  Bruno Haible  <bruno@clisp.org>
44444
44445         Mark 'rmdir' obsolete.
44446         * modules/rmdir (Status, Notice): New sections.
44447         * modules/clean-temp (Depends-on): Add rmdir.
44448         * modules/openat (Depends-on): Likewise.
44449
44450 2008-11-02  Bruno Haible  <bruno@clisp.org>
44451
44452         Mark 'raise' obsolete.
44453         * modules/raise (Status, Notice): New sections.
44454         (Include): Specify <signal.h>.
44455         * modules/stdio (Depends-on): Add raise.
44456         * modules/write (Depends-on): Likewise.
44457
44458 2008-11-02  Bruno Haible  <bruno@clisp.org>
44459
44460         Mark 'memset' obsolete.
44461         * modules/memset (Status, Notice): New sections.
44462
44463 2008-11-02  Bruno Haible  <bruno@clisp.org>
44464
44465         Mark 'memmove' obsolete.
44466         * modules/memmove (Status, Notice): New sections.
44467         * modules/argp (Depends-on): Add memmove.
44468         * modules/argz (Depends-on): Likewise.
44469         * modules/canonicalize (Depends-on): Likewise.
44470         * modules/canonicalize-lgpl (Depends-on): Likewise.
44471         * modules/fts (Depends-on): Likewise.
44472         * modules/getcwd (Depends-on): Likewise.
44473         * modules/human (Depends-on): Likewise.
44474         * modules/regex (Depends-on): Likewise.
44475         * modules/striconveh (Depends-on): Likewise.
44476         * modules/trim (Depends-on): Likewise.
44477         * modules/unistr/u8-move (Depends-on): Likewise.
44478         * modules/unistr/u16-move (Depends-on): Likewise.
44479         * modules/unistr/u32-move (Depends-on): Likewise.
44480
44481 2008-11-02  Bruno Haible  <bruno@clisp.org>
44482
44483         Mark 'memcpy' obsolete.
44484         * modules/memcpy (Status, Notice): New sections.
44485
44486 2008-11-02  Bruno Haible  <bruno@clisp.org>
44487
44488         Mark 'memcmp' obsolete.
44489         * modules/memcmp (Status, Notice): New sections.
44490         * modules/argmatch (Depends-on): Add memchr.
44491         * modules/backupfile (Depends-on): Likewise.
44492         * modules/c-strcasestr (Depends-on): Likewise.
44493         * modules/crypto/des (Depends-on): Likewise.
44494         * modules/csharpcomp (Depends-on): Likewise.
44495         * modules/fnmatch (Depends-on): Likewise.
44496         * modules/git-merge-changelog (Depends-on): Likewise.
44497         * modules/isnand (Depends-on): Likewise.
44498         * modules/isnand-nolibm (Depends-on): Likewise.
44499         * modules/isnanf (Depends-on): Likewise.
44500         * modules/isnanf-nolibm (Depends-on): Likewise.
44501         * modules/isnanl (Depends-on): Likewise.
44502         * modules/isnanl-nolibm (Depends-on): Likewise.
44503         * modules/mbchar (Depends-on): Likewise.
44504         * modules/memcoll (Depends-on): Likewise.
44505         * modules/quotearg (Depends-on): Likewise.
44506         * modules/regex (Depends-on): Likewise.
44507         * modules/relocatable-prog (Depends-on): Likewise.
44508         * modules/same (Depends-on): Likewise.
44509         * modules/signbit (Depends-on): Likewise.
44510         * modules/strcasestr-simple (Depends-on): Likewise.
44511         * modules/unictype/gen-ctype (Depends-on): Likewise.
44512         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
44513         * modules/uniname/uniname (Depends-on): Likewise.
44514         * modules/unistr/u8-cmp (Depends-on): Likewise.
44515
44516 2008-11-02  Bruno Haible  <bruno@clisp.org>
44517
44518         Mark 'memchr' obsolete.
44519         * modules/memchr (Status, Notice): New sections.
44520         * modules/argp (Depends-on): Add memchr.
44521         * modules/base64 (Depends-on): Likewise.
44522         * modules/c-strcasestr (Depends-on): Likewise.
44523         * modules/chdir-long (Depends-on): Likewise.
44524         * modules/fnmatch (Depends-on): Likewise.
44525         * modules/getsubopt (Depends-on): Likewise.
44526         * modules/git-merge-changelog (Depends-on): Likewise.
44527         * modules/glob (Depends-on): Likewise.
44528         * modules/strcasestr-simple (Depends-on): Likewise.
44529         * modules/strnlen (Depends-on): Likewise.
44530
44531 2008-11-02  Bruno Haible  <bruno@clisp.org>
44532
44533         Mark 'atexit' obsolete.
44534         * modules/atexit (Status, Notice): New sections.
44535         * modules/chdir-long (Depends-on): Add atexit.
44536         * modules/wait-process (Depends-on): Likewise.
44537
44538 2008-11-02  Bruno Haible  <bruno@clisp.org>
44539
44540         * gnulib-tool: New option --with-obsolete.
44541         (func_usage): Document it.
44542         (func_modules_transitive_closure): Drop obsolete dependencies if
44543         incobsolete is not true.
44544         (func_import): Read and save the incobsolete variable to the cache.
44545
44546 2008-11-02  Bruno Haible  <bruno@clisp.org>
44547
44548         * modules/TEMPLATE-EXTENDED: New field 'Status'.
44549         * gnulib-tool: New option --extract-status.
44550         (func_usage): Document it.
44551         (sed_extract_prog): Recognize it.
44552         (func_get_status): New function.
44553
44554 2008-10-30  Simon Josefsson  <simon@josefsson.org>
44555
44556         * modules/sockets (License): Change from LGPL to LGPLv2+.
44557
44558 2008-10-28  Simon Josefsson  <simon@josefsson.org>
44559
44560         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
44561
44562 2008-10-28  Simon Josefsson  <simon@josefsson.org>
44563
44564         * MODULES.html.sh (Support for systems lacking POSIX:2001):
44565         Mention times and sys_times.
44566         * modules/sys_times, modules/sys_times-tests: New modules.
44567         * modules/times, modules/times-tests: Likewise
44568         * m4/sys_times_h.m4: New file.
44569         * lib/sys_times.in.h: Likewise
44570         * lib/times.c: Likewise.
44571         * tests/test-sys_times.c: Likewise.
44572         * tests/test-times.c: Likewise.
44573         * doc/posix-headers/sys_times.texi: Update.
44574         * doc/posix-functions/times.texi: Update.
44575
44576 2008-10-28  Jim Meyering  <meyering@redhat.com>
44577
44578         * modules/tempname (Depends-on): Add lstat.
44579
44580         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
44581
44582 2008-10-28  Simon Josefsson  <simon@josefsson.org>
44583
44584         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
44585         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
44586         using idiom used elsewhere in gnulib.
44587
44588 2008-10-27  Jim Meyering  <meyering@redhat.com>
44589
44590         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
44591
44592 2008-10-27  Simon Josefsson  <simon@josefsson.org>
44593
44594         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
44595         TESTS_ENVIRONMENT, for shell scripts that needs to call built
44596         programs.
44597         * tests/test-argp-2.sh: Use $EXEEXT when needed.
44598
44599 2008-10-27  Simon Josefsson  <simon@josefsson.org>
44600
44601         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
44602
44603 2008-10-27  Bruno Haible  <bruno@clisp.org>
44604
44605         * tests/test-lstat.c: Include <stdio.h>.
44606
44607 2008-10-27  Simon Josefsson  <simon@josefsson.org>
44608
44609         * modules/lstat-tests: New module.
44610         * tests/test-lstat.c: New file.
44611
44612 2008-10-26  Jim Meyering  <meyering@redhat.com>
44613
44614         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
44615
44616 2008-10-26  Simon Josefsson  <simon@josefsson.org>
44617             Bruno Haible  <bruno@clisp.org>
44618
44619         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
44620         * modules/configmake (Include): Add a note that the include must come
44621         after all system headers.
44622         * lib/javaversion.c: Include configmake.h after all other includes.
44623
44624 2008-10-26  Bruno Haible  <bruno@clisp.org>
44625
44626         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
44627         HAVE_STRUCT_RANDOM_DATA to 1.
44628         (gl_STDLIB_H): Simplify.
44629
44630 2008-10-26  Simon Josefsson  <simon@josefsson.org>
44631
44632         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
44633         substitute HAVE_STRUCT_RANDOM_DATA.
44634         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
44635         random_data.
44636         * modules/stdlib (Makefile.am): Substitute
44637         HAVE_STRUCT_RANDOM_DATA.
44638
44639 2008-10-26  Simon Josefsson  <simon@josefsson.org>
44640
44641         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
44642         * doc/gnulib-intro.texi (Copyright): Likewise.
44643
44644 2008-10-26  Simon Josefsson  <simon@josefsson.org>
44645
44646         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
44647         findings.
44648
44649 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
44650             Bruno Haible  <bruno@clisp.org>
44651
44652         * lib/unistd.in.h: Include <winsock2.h>.
44653         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
44654         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
44655         Provide dummy declarations.
44656         (gethostname): Override.
44657         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
44658         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
44659         gl_PREREQ_SYS_H_WINSOCK2.
44660         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
44661         * doc/posix-functions/gethostname.texi: More details.
44662
44663 2008-10-25  Bruno Haible  <bruno@clisp.org>
44664
44665         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
44666         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
44667         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
44668
44669         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
44670         here ...
44671         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
44672         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
44673         gl_UNISTD_H_DEFAULTS.
44674
44675 2008-10-25  Eric Blake  <ebb9@byu.net>
44676
44677         signbit: avoid spurious compiler failure
44678         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
44679         declarations inside function.
44680
44681 2008-10-24  Simon Josefsson  <simon@josefsson.org>
44682             Bruno Haible  <bruno@clisp.org>
44683
44684         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
44685         * modules/random_r (Depends-on): Add stdint.
44686
44687 2008-10-24  Bruno Haible  <bruno@clisp.org>
44688
44689         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
44690         Eggert.
44691         * modules/strerror (License): Likewise.
44692
44693 2008-10-24  Jim Meyering  <meyering@redhat.com>
44694
44695         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
44696         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
44697
44698 2008-10-24  Eric Blake  <ebb9@byu.net>
44699
44700         getgroups: fix compilation when getgroups is available
44701         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
44702         but with <config.h> override of getgroups disabled.
44703
44704 2008-10-24  Simon Josefsson  <simon@josefsson.org>
44705
44706         * doc/gnulib.texi (Header files): Add note about C++ problems.
44707         Explained by Bruno Haible <bruno@clisp.org>.
44708
44709 2008-10-23  Bruno Haible  <bruno@clisp.org>
44710
44711         Define a dummy SA_NODEFER macro on Interix.
44712         * lib/signal.in.h (SA_NODEFER): Define fallback.
44713         Reported by Aleksey Cheusov <cheusov@tut.by> via
44714         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
44715
44716 2008-10-23  Bruno Haible  <bruno@clisp.org>
44717
44718         * modules/freadahead (License): Change to LGPLv2+.
44719         Suggested by Simon Josefsson.
44720
44721 2008-10-23  Jim Meyering  <meyering@redhat.com>
44722
44723         random_r: new module
44724         * modules/random_r: New file.
44725         * m4/random_r.m4: New file.
44726         * lib/random_r.c: New file, from glibc.
44727         * modules/random_r-tests: New file.
44728         * tests/test-random_r.c: New file.
44729         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
44730          Declare.
44731         (RAND_MAX): Define.
44732         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
44733         * modules/stdlib: Substitute them, too.
44734         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
44735         * doc/glibc-functions/initstate_r.texi: Mention the new module.
44736         * doc/glibc-functions/random_r.texi: Likewise.
44737         * doc/glibc-functions/setstate_r.texi: Likewise.
44738         * doc/glibc-functions/srandom_r.texi: Likewise.
44739         * config/srclist.txt: Mention it.
44740
44741 2008-10-23  David Lutterkort  <lutter@redhat.com>
44742
44743         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
44744         link requirement
44745
44746 2008-10-23  Jim Meyering  <meyering@redhat.com>
44747
44748         selinux-h: mark parameters of stub functions as intentionally unused
44749         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
44750         * lib/se-context.in.h: Likewise.
44751
44752 2008-10-22  Simon Josefsson  <simon@josefsson.org>
44753
44754         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
44755
44756 2008-10-22  Simon Josefsson  <simon@josefsson.org>
44757
44758         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
44759
44760 2008-10-22  Eric Blake  <ebb9@byu.net>
44761
44762         glthread/thread: avoid compiler warning
44763         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
44764         Add unreachable abort to silence compiler.
44765
44766 2008-10-22  Eric Blake  <ebb9@byu.net>
44767
44768         netdb: also supply struct addrinfo for cygwin 1.5.x
44769         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
44770         older cygwin.
44771         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
44772         cygwin.
44773         * doc/posix-headers/netdb.texi (netdb.h): Document this.
44774
44775 2008-10-22  Bruno Haible  <bruno@clisp.org>
44776
44777         * users.txt: Update entry about pspp.
44778
44779 2008-10-21  Bruno Haible  <bruno@clisp.org>
44780
44781         Simplification.
44782         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
44783         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
44784
44785         Simplification.
44786         * lib/ioctl.c (ioctl): Don't undefine.
44787         * lib/socket.c (socket): Don't undefine.
44788
44789         Remove unused module indicator macros.
44790         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
44791         GNULIB_$1 as a C macro.
44792
44793         * doc/posix-functions/close.texi: Undo last change.
44794         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
44795         Windows platforms.
44796
44797 2008-10-21  Bruno Haible  <bruno@clisp.org>
44798
44799         Add gethostname() declaration to <unistd.h>.
44800         * lib/unistd.in.h (gethostname): New declaration.
44801         * lib/gethostname.c: Include <unistd.h>.
44802         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
44803         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
44804         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
44805         and HAVE_GETHOSTNAME.
44806         * modules/gethostname (Depends-on): Add unistd.
44807         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44808         (Include): Specify <unistd.h>.
44809         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
44810         HAVE_GETHOSTNAME.
44811         * tests/test-gethostname.c: Include <unistd.h> first.
44812
44813 2008-10-21  Bruno Haible  <bruno@clisp.org>
44814
44815         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
44816         * modules/select-tests (Depends-on): Likewise.
44817         Reported by Simon Josefsson.
44818
44819 2008-10-21  Simon Josefsson  <simon@josefsson.org>
44820
44821         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
44822         * lib/accept.c: New file, based on winsock.c.
44823         * lib/bind.c: New file, based on winsock.c.
44824         * lib/connect.c: New file, based on winsock.c.
44825         * lib/getpeername.c: New file, based on winsock.c.
44826         * lib/getsockname.c: New file, based on winsock.c.
44827         * lib/getsockopt.c: New file, based on winsock.c.
44828         * lib/ioctl.c: New file, based on winsock.c.
44829         * lib/listen.c: New file, based on winsock.c.
44830         * lib/recv.c: New file, based on winsock.c.
44831         * lib/recvfrom.c: New file, based on winsock.c.
44832         * lib/send.c: New file, based on winsock.c.
44833         * lib/sendto.c: New file, based on winsock.c.
44834         * lib/setsockopt.c: New file, based on winsock.c.
44835         * lib/shutdown.c: New file, based on winsock.c.
44836         * lib/socket.c: New file, based on winsock.c.
44837         * lib/w32sock.h: New file, based on winsock.c.
44838         * lib/winsock.c: Remove file.
44839         * modules/accept: Likewise.
44840         * modules/bind: Likewise.
44841         * modules/connect: Likewise.
44842         * modules/getpeername: Likewise.
44843         * modules/getsockname: Likewise.
44844         * modules/getsockopt: Likewise.
44845         * modules/ioctl: Likewise.
44846         * modules/listen: Likewise.
44847         * modules/recv: Likewise.
44848         * modules/recvfrom: Likewise.
44849         * modules/send: Likewise.
44850         * modules/sendto: Likewise.
44851         * modules/setsockopt: Likewise.
44852         * modules/shutdown: Likewise.
44853         * modules/socket: Use socket.c instead of winsock.c.
44854         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
44855         * doc/posix-functions/accept.texi: Doc fix.
44856         * doc/posix-functions/bind.texi: Doc fix.
44857         * doc/posix-functions/close.texi: Doc fix.
44858         * doc/posix-functions/connect.texi: Doc fix.
44859         * doc/posix-functions/getpeername.texi: Doc fix.
44860         * doc/posix-functions/getsockname.texi: Doc fix.
44861         * doc/posix-functions/getsockopt.texi: Doc fix.
44862         * doc/posix-functions/ioctl.texi: Doc fix.
44863         * doc/posix-functions/listen.texi: Doc fix.
44864         * doc/posix-functions/recv.texi: Doc fix.
44865         * doc/posix-functions/recvfrom.texi: Doc fix.
44866         * doc/posix-functions/send.texi: Doc fix.
44867         * doc/posix-functions/sendto.texi: Doc fix.
44868         * doc/posix-functions/setsockopt.texi: Doc fix.
44869         * doc/posix-functions/shutdown.texi: Doc fix.
44870         * doc/posix-functions/socket.texi: Doc fix.
44871
44872 2008-10-20  Bruno Haible  <bruno@clisp.org>
44873
44874         Take into account the role of SIGABRT_COMPAT on Windows 2008.
44875         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
44876         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
44877         as an alias for SIGABRT.
44878         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
44879         (sigaction): Map it to SIGABRT.
44880         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
44881
44882 2008-10-20  Bruno Haible  <bruno@clisp.org>
44883
44884         * lib/fts.c: Don't include lstat.h.
44885         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
44886
44887         Move the lstat() declaration to <sys/stat.h>.
44888         * lib/lstat.h: Remove file.
44889         * lib/sys_stat.in.h: Add special invocation convention.
44890         (lstat): New declaration.
44891         * lib/lstat.c (orig_lstat): New function.
44892         (rpl_lstat): Use orig_lstat instead of lstat.
44893         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
44894         AC_C_INLINE. Set REPLACE_LSTAT.
44895         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
44896         and REPLACE_LSTAT.
44897         * modules/lstat (Files): Remove lib/lstat.h.
44898         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
44899         (Include): Specify <sys/stat.h> instead of lstat.h.
44900         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
44901         REPLACE_LSTAT.
44902         * NEWS: Mention the change.
44903
44904 2008-10-20  Bruno Haible  <bruno@clisp.org>
44905
44906         * modules/posix_spawn-tests: New file.
44907         * tests/test-posix_spawn3.c: New file.
44908
44909 2008-10-20  Bruno Haible  <bruno@clisp.org>
44910
44911         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
44912         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
44913         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
44914         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
44915         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
44916
44917 2008-10-20  Bruno Haible  <bruno@clisp.org>
44918
44919         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
44920         of posix_spawn on AIX 5.3.
44921
44922 2008-10-20  Bruno Haible  <bruno@clisp.org>
44923
44924         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
44925
44926 2008-10-20  Bruno Haible  <bruno@clisp.org>
44927
44928         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
44929         of AC_LANG_PROGRAM.
44930
44931 2008-10-20  Simon Josefsson  <simon@josefsson.org>
44932
44933         * lib/netdb.in.h: Don't define GNU specific constants until they
44934         are supported or needed.  Reported by Bruno Haible
44935         <bruno@clisp.org>.
44936
44937 2008-10-20  Simon Josefsson  <simon@josefsson.org>
44938
44939         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
44940
44941 2008-10-20  Simon Josefsson  <simon@josefsson.org>
44942
44943         * lib/getaddrinfo.h: Remove file.
44944         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
44945         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
44946         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
44947         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
44948         * modules/netdb: Substitute GNULIB_GETADDRINFO.
44949         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
44950         * tests/test-getaddrinfo.c: Likewise.
44951         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
44952         * NEWS: Mention change.
44953
44954 2008-10-19  Bruno Haible  <bruno@clisp.org>
44955
44956         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
44957
44958 2008-10-19  Bruno Haible  <bruno@clisp.org>
44959
44960         * lib/wait-process.c: Include simply <sys/wait.h>.
44961         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
44962         WIFSTOPPED): Remove fallback definitions.
44963         * modules/wait-process (Depends-on): Add sys_wait.
44964
44965         New module 'sys_wait'.
44966         * modules/sys_wait: New file.
44967         * lib/sys_wait.in.h: New file, partially copied from
44968         lib/wait-process.c.
44969         * m4/sys_wait_h.m4: New file.
44970         * doc/posix-headers/sys_wait.texi: Mention the new module.
44971
44972 2008-10-19  Bruno Haible  <bruno@clisp.org>
44973
44974         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
44975
44976 2008-10-19  Bruno Haible  <bruno@clisp.org>
44977
44978         Assume that waitpid() fills an 'int' status, not a 'union wait'.
44979         * lib/wait-process.c (WAIT_T): Remove type.
44980         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
44981         (wait_subprocess): Update.
44982
44983 2008-10-19  Bruno Haible  <bruno@clisp.org>
44984
44985         New module 'atoll'.
44986         * modules/atoll: New file.
44987         * lib/stdlib.in.h (atoll): New declaration.
44988         * lib/atoll.c: New file, from glibc with modifications.
44989         * m4/atoll.m4: New file.
44990         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
44991         HAVE_ATOLL.
44992         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
44993         * doc/posix-functions/atoll.texi: Mention the new module.
44994
44995 2008-10-19  Bruno Haible  <bruno@clisp.org>
44996
44997         Add strtoull() declaration to <stdlib.h>.
44998         * lib/stdlib.in.h (strtoull): New declaration.
44999         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
45000         Set HAVE_STRTOULL.
45001         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
45002         HAVE_STRTOULL.
45003         * modules/strtoull (Depends-on): Add stdlib.
45004         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45005         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
45006         HAVE_STRTOULL.
45007
45008 2008-10-19  Bruno Haible  <bruno@clisp.org>
45009
45010         Add strtoll() declaration to <stdlib.h>.
45011         * lib/stdlib.in.h (strtoll): New declaration.
45012         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
45013         Set HAVE_STRTOLL.
45014         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
45015         HAVE_STRTOLL.
45016         * modules/strtoll (Depends-on): Add stdlib.
45017         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45018         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
45019
45020 2008-10-19  Bruno Haible  <bruno@clisp.org>
45021
45022         * modules/bcopy (Depends-on): Add strings.
45023         (Include): Specify <strings.h>.
45024
45025 2008-10-19  Bruno Haible  <bruno@clisp.org>
45026
45027         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
45028
45029 2008-10-19  Bruno Haible  <bruno@clisp.org>
45030
45031         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
45032         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
45033         mingw.
45034
45035 2008-10-19  Bruno Haible  <bruno@clisp.org>
45036
45037         * lib/atanl.c: Don't include isnanl.h.
45038         * lib/cosl.c: Likewise.
45039         * lib/ldexpl.c: Likewise.
45040         * lib/logl.c: Likewise.
45041         * lib/sinl.c: Likewise.
45042         * lib/sqrtl.c: Likewise.
45043         * lib/tanl.c: Likewise.
45044
45045         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
45046         * lib/isnanf.h: Remove file.
45047         * lib/isnand.h: Remove file.
45048         * lib/isnanl.h: Remove file.
45049         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
45050         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
45051         macros.
45052         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
45053         HAVE_ISNANF, don't define it as a C macro.
45054         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
45055         HAVE_ISNAND, don't define it as a C macro.
45056         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
45057         HAVE_ISNANL, don't define it as a C macro.
45058         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
45059         HAVE_ISNAN[FDL].
45060         * modules/isnanf (Files): Remove lib/isnanf.h.
45061         (Depends-on): Add math.
45062         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
45063         (Include): Specify <math.h> instead of isnanf.h.
45064         * modules/isnand (Files): Remove lib/isnand.h.
45065         (Depends-on): Add math.
45066         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
45067         (Include): Specify <math.h> instead of isnand.h.
45068         * modules/isnanl (Files): Remove lib/isnanl.h.
45069         (Depends-on): Add math.
45070         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
45071         (Include): Specify <math.h> instead of isnanl.h.
45072         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
45073         HAVE_ISNAN[FDL].
45074         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
45075         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
45076         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
45077         * NEWS: Mention the change.
45078
45079 2008-10-18  Bruno Haible  <bruno@clisp.org>
45080
45081         Add getusershell(), setusershell(), endusershell() declarations to
45082         <unistd.h>.
45083         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
45084         declarations.
45085         * lib/getusershell.c: Include unistd.h.
45086         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
45087         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
45088         HAVE_GETUSERSHELL.
45089         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
45090         and HAVE_GETUSERSHELL.
45091         * modules/getusershell (Depends-on): Add unistd, extensions.
45092         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45093         (Include): Specify <unistd.h>.
45094         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
45095         HAVE_GETUSERSHELL.
45096
45097 2008-10-18  Bruno Haible  <bruno@clisp.org>
45098
45099         Add a getloadavg() declaration to <stdlib.h>.
45100         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
45101         getloadavg declaration.
45102         (getloadavg): New declaration.
45103         * lib/getloadavg.c: Include <stdlib.h> first.
45104         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
45105         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
45106         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
45107         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
45108         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
45109         * modules/getloadavg (Depends-on): Add stdlib, extensions.
45110         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45111         (Include): Specify <stdlib.h>.
45112         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
45113         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
45114
45115 2008-10-18  Bruno Haible  <bruno@clisp.org>
45116
45117         * lib/dirchownmod.c: Don't include lchmod.h.
45118
45119         Move the lchmod() declaration to <sys/stat.h>.
45120         * lib/lchmod.h: Remove file.
45121         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
45122         (lchmod): New declaration, moved here from lib/lchown.h.
45123         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
45124         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
45125         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
45126         and HAVE_LCHMOD.
45127         * modules/lchmod (Files): Remove lib/lchmod.h.
45128         (Depends-on): Add sys_stat, extensions.
45129         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
45130         (Include): Specify <sys/stat.h> instead of lchmod.h.
45131         * modules/sys_stat (Depends-on): Add link-warning.
45132         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
45133         definition of GL_LINK_WARNING.
45134         * NEWS: Mention the change.
45135
45136 2008-10-18  Bruno Haible  <bruno@clisp.org>
45137
45138         * lib/fchdir.c: Don't include dirfd.h.
45139         * lib/fts.c: Likewise.
45140         * lib/getcwd.c: Likewise.
45141         * lib/glob.c: Likewise.
45142
45143         Move the dirfd() declaration to <dirent.h>.
45144         * lib/dirfd.h: Remove file.
45145         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
45146         (dirfd): New declaration.
45147         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
45148         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
45149         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
45150         HAVE_DECL_DIRFD.
45151         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
45152         HAVE_DECL_DIRFD.
45153         * modules/dirfd (Files): Remove lib/dirfd.h.
45154         (Depends-on): Add dirent, extensions.
45155         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
45156         (Include): Specify <dirent.h> instead of dirfd.h.
45157         * modules/dirent (Depends-on): Add link-warning.
45158         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
45159         definition of GL_LINK_WARNING.
45160         * NEWS: Mention the change.
45161
45162 2008-10-18  Bruno Haible  <bruno@clisp.org>
45163
45164         Move the euidaccess() declaration to <unistd.h>.
45165         * lib/euidaccess.h: Remove file.
45166         * lib/unistd.in.h (euidaccess): New declaration.
45167         * lib/euidaccess.c: Don't include euidaccess.h.
45168         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
45169         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
45170         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
45171         and HAVE_EUIDACCESS.
45172         * modules/euidaccess (Files): Remove lib/euidaccess.h.
45173         (Depends-on): Add unistd.
45174         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45175         (Include): Specify <unistd.h> instead of euidaccess.h.
45176         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
45177         HAVE_EUIDACCESS.
45178         * NEWS: Mention the change.
45179
45180 2008-10-18  Bruno Haible  <bruno@clisp.org>
45181
45182         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
45183
45184         Move the getdomainname() declaration to <unistd.h>.
45185         * lib/getdomainname.h: Remove file.
45186         * lib/unistd.in.h (getdomainname): New declaration.
45187         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
45188         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
45189         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
45190         HAVE_GETDOMAINNAME.
45191         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45192         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
45193         * modules/getdomainname (Files): Remove lib/getdomainname.h.
45194         (Depends-on): Add unistd, extensions.
45195         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45196         (Includes): Specify <unistd.h> instead of getdomainname.h.
45197         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
45198         HAVE_GETDOMAINNAME.
45199         * NEWS: Mention the change.
45200
45201 2008-10-18  Bruno Haible  <bruno@clisp.org>
45202
45203         * modules/dirent: New file.
45204         * m4/dirent_h.m4: New file.
45205         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
45206         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
45207         * modules/fchdir (Files): Remove lib/dirent.in.h.
45208         (Depends-on): Add dirent.
45209         (Makefile.am): Move rules to modules/dirent.
45210         * doc/posix-headers/dirent.texi: Mention the new module.
45211
45212 2008-10-18  Bruno Haible  <bruno@clisp.org>
45213
45214         Avoid -Wunused-parameter warnings in public gnulib header files.
45215         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
45216         macro.
45217         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
45218
45219 2008-10-18  Bruno Haible  <bruno@clisp.org>
45220
45221         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
45222         * doc/glibc-functions/error.texi: Mention the module 'error'.
45223         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
45224         * doc/glibc-functions/getdomainname.texi: Mention the module
45225         'getdomainname'.
45226         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
45227         * doc/glibc-functions/getpagesize.texi: Mention the module
45228         'getpagesize'.
45229         * doc/glibc-functions/getusershell.texi: Mention the module
45230         'getusershell'.
45231         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
45232         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
45233         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
45234         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
45235         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
45236         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
45237         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
45238         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
45239         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
45240         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
45241         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
45242         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
45243         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
45244         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
45245
45246 2008-10-17  Bruno Haible  <bruno@clisp.org>
45247
45248         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
45249         HP-UX and IRIX, use -0.0L.
45250         * tests/test-ceill.c (minus_zero): Likewise.
45251         * tests/test-floorl.c (minus_zero): Likewise.
45252         * tests/test-frexpl.c (minus_zero): Likewise.
45253         * tests/test-isnan.c (minus_zerol): Likewise.
45254         * tests/test-isnanl.h (minus_zero): Likewise.
45255         * tests/test-ldexpl.c (minus_zero): Likewise.
45256         * tests/test-roundl.c (minus_zero): Likewise.
45257         * tests/test-signbit.c (minus_zerol): Likewise.
45258         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
45259         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
45260         * tests/test-truncl.c (minus_zero): Likewise.
45261         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
45262         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
45263         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
45264         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
45265
45266 2008-10-17  Bruno Haible  <bruno@clisp.org>
45267
45268         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
45269         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
45270         that it gets activated only for gcc >= 3.0.
45271         * lib/dirent.in.h: Likewise.
45272         * lib/errno.in.h: Likewise.
45273         * lib/fcntl.in.h: Likewise.
45274         * lib/float.in.h: Likewise.
45275         * lib/iconv.in.h: Likewise.
45276         * lib/inttypes.in.h: Likewise.
45277         * lib/locale.in.h: Likewise.
45278         * lib/math.in.h: Likewise.
45279         * lib/netdb.in.h: Likewise.
45280         * lib/netinet_in.in.h: Likewise.
45281         * lib/search.in.h: Likewise.
45282         * lib/signal.in.h: Likewise.
45283         * lib/spawn.in.h: Likewise.
45284         * lib/stdarg.in.h: Likewise.
45285         * lib/stdint.in.h: Likewise.
45286         * lib/stdio.in.h: Likewise.
45287         * lib/stdlib.in.h: Likewise.
45288         * lib/string.in.h: Likewise.
45289         * lib/strings.in.h: Likewise.
45290         * lib/sys_file.in.h: Likewise.
45291         * lib/sys_ioctl.in.h: Likewise.
45292         * lib/sys_select.in.h: Likewise.
45293         * lib/sys_socket.in.h: Likewise.
45294         * lib/sys_stat.in.h: Likewise.
45295         * lib/sys_time.in.h: Likewise.
45296         * lib/sysexits.in.h: Likewise.
45297         * lib/time.in.h: Likewise.
45298         * lib/unistd.in.h: Likewise.
45299         * lib/wchar.in.h: Likewise.
45300         * lib/wctype.in.h: Likewise.
45301         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
45302
45303 2008-10-17  Jim Meyering  <meyering@redhat.com>
45304
45305         ignore-value: don't depend on inline module
45306         * modules/ignore-value (Depends-on): Remove 'inline'.
45307         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
45308         Suggestion from Bruno Haible.
45309
45310 2008-10-17  Bruno Haible  <bruno@clisp.org>
45311
45312         New implementation of condition variables for Win32.
45313         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
45314         (gl_linked_waitqueue_t): New type.
45315         (gl_cond_t): Use it.
45316         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
45317         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
45318         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
45319         (glthread_cond_init_func, glthread_cond_wait_func,
45320         glthread_cond_timedwait_func, glthread_cond_signal_func,
45321         glthread_cond_broadcast_func, glthread_cond_destroy_func):
45322         Reimplemented on the basis of gl_linked_waitqueue_t.
45323         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
45324         gl_waitqueue_t.
45325         (gl_rwlock_t): Update.
45326         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
45327
45328 2008-10-17  Simon Josefsson  <simon@josefsson.org>
45329
45330         * modules/recvfrom (Depends-on): Add dependency on getpeername.
45331         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
45332
45333 2008-10-17  Jim Meyering  <meyering@redhat.com>
45334
45335         ignore-value: new module
45336         * modules/ignore-value: New file.
45337         * lib/ignore-value.h: New file.
45338         * MODULES.html.sh (Compiler warning management): New section,
45339         just for this module.  More to come.
45340
45341 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
45342
45343         open-safer.c: avoid 'signed and unsigned in conditional...' warning
45344         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
45345         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
45346
45347 2008-10-16  Jim Meyering  <meyering@redhat.com>
45348
45349         openat-die.c: avoid 'no previous prototype' warning
45350         * lib/openat-die.c: Include "openat.h".
45351         Reported by Reuben Thomas <rrt@sc3d.org>.
45352
45353 2008-10-16  Simon Josefsson  <simon@josefsson.org>
45354
45355         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
45356         * lib/netdb.in.h: Fix typo.
45357         Reported by Bruno Haible  <bruno@clisp.org>
45358
45359         * lib/netdb.in.h: Include sys/socket.h for platforms without
45360         netdb.h, to get structures like hostent on MinGW.
45361         * modules/netdb (Depends-on): Add sys_socket.
45362
45363 2008-10-15  Simon Josefsson  <simon@josefsson.org>
45364
45365         * modules/netdb, modules/netdb-tests: New file.
45366         * m4/netdb_h.m4: New file.
45367         * lib/netdb.in.h: Add, currently just an empty file pending
45368         definitions.
45369         * tests/test-netdb.c: New file.
45370         * doc/posix-headers/netdb.texi: Mention that we replace it if
45371         needed.
45372         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
45373         netdb.
45374
45375 2008-10-15  Simon Josefsson  <simon@josefsson.org>
45376
45377         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
45378         with code.
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): Add a comment.
45384
45385 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
45386
45387         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
45388         * tests/test-select.c: Likewise,
45389
45390 2008-10-13  Bruno Haible  <bruno@clisp.org>
45391
45392         * lib/glthread/cond.c (glthread_cond_wait_func,
45393         glthread_cond_timedwait_func): Fix variable name.
45394         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
45395
45396 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
45397
45398         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
45399         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
45400         struct sockaddr.sa_len.
45401         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
45402
45403 2008-10-13  Simon Josefsson  <simon@josefsson.org>
45404
45405         * build-aux/pmccabe2html: Add css and css_url parameters.
45406
45407 2008-10-12  Bruno Haible  <bruno@clisp.org>
45408
45409         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
45410         calling aclx_get.
45411         Reported by Rainer Tammer <tammer@tammer.net>.
45412
45413 2008-10-12  Bruno Haible  <bruno@clisp.org>
45414
45415         Use msvcrt aware primitives for creation/termination of Win32 threads.
45416         * lib/glthread/thread.c: Include <process.h>.
45417         (glthread_create_func): Use _beginthreadex instead of CreateThread.
45418         (wrapper_func): Update signature.
45419         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
45420
45421 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
45422             Bruno Haible  <bruno@clisp.org>
45423
45424         Provide a Win32 implementation of the 'cond' module.
45425         * lib/glthread/cond.h [USE_WIN32]: New implementation.
45426         * lib/glthread/cond.c (glthread_cond_init_func,
45427         glthread_cond_wait_func, glthread_cond_timedwait_func,
45428         glthread_cond_signal_func, glthread_cond_broadcast_func,
45429         glthread_cond_destroy_func) [USE_WIN32]: New functions.
45430         * modules/cond (Dependencies): Add gettimeofday.
45431
45432 2008-10-11  Bruno Haible  <bruno@clisp.org>
45433
45434         Make sleep work on older versions of mingw.
45435         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
45436         only whether it exists.
45437         * doc/posix-functions/sleep.texi: Mention the problem with older
45438         versions of mingw.
45439
45440 2008-10-11  Bruno Haible  <bruno@clisp.org>
45441
45442         New module 'shutdown'.
45443         * modules/shutdown: New file.
45444         * lib/sys_socket.in.h (shutdown): New declaration.
45445         * lib/winsock.c (shutdown): New function.
45446         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
45447         GNULIB_SHUTDOWN.
45448         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
45449         * doc/posix-functions/shutdown.texi: Document the new module.
45450
45451 2008-10-11  Jim Meyering  <meyering@redhat.com>
45452
45453         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
45454
45455 2008-10-11  Bruno Haible  <bruno@clisp.org>
45456
45457         New module 'fclose'.
45458         * modules/fclose: New file.
45459         * lib/stdio.in.h (fclose): New declaration.
45460         * lib/fclose.c: New file.
45461         * m4/fclose.m4: New file.
45462         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
45463         REPLACE_FCLOSE.
45464         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
45465         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
45466         REPLACE_FCLOSE.
45467         * modules/close (Depends-on): fclose.
45468         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
45469
45470 2008-10-11  Bruno Haible  <bruno@clisp.org>
45471
45472         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
45473         set errno and don't call _close.
45474
45475 2008-10-10  Bruno Haible  <bruno@clisp.org>
45476
45477         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
45478         ACL, not afterwards. Fixes test failure on Cygwin.
45479
45480 2008-10-09  Ben Pfaff  <blp@gnu.org>
45481
45482         * build-aux/announce-gen: Fix gnulib version related part of usage
45483         message.  Die with a useful error message if no tarballs are
45484         found.
45485
45486 2008-10-10  Jim Meyering  <meyering@redhat.com>
45487
45488         bootstrap: use git's --depth=N option only if it's supported
45489         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
45490         recognize the --depth option.  Reported by Pádraig Brady.
45491
45492 2008-10-09  Bruno Haible  <bruno@clisp.org>
45493
45494         New module 'ioctl'.
45495         * modules/ioctl: New file.
45496         * lib/sys_socket.in.h (ioctl): Remove declaration.
45497         * lib/winsock.c: Include <sys/ioctl.h>.
45498         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
45499         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
45500         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
45501         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
45502         * doc/posix-functions/ioctl.texi: Mention the new module.
45503
45504 2008-10-09  Bruno Haible  <bruno@clisp.org>
45505
45506         New module 'sys_ioctl'.
45507         * lib/sys_ioctl.in.h: New file.
45508         * m4/sys_ioctl_h.m4: New file.
45509         * modules/sys_ioctl: New file.
45510         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
45511
45512 2008-10-09  Bruno Haible  <bruno@clisp.org>
45513
45514         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
45515         * lib/winsock.c: Include <stdarg.h>.
45516         (rpl_ioctl): Change to second argument 'int' and then varargs.
45517
45518 2008-10-09  Bruno Haible  <bruno@clisp.org>
45519
45520         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
45521         when the sys_socket module is present and the system has <winsock2.h>.
45522
45523 2008-10-09  Bruno Haible  <bruno@clisp.org>
45524
45525         * doc/posix-functions/close.texi: Mention module 'close' instead of
45526         module 'sys_socket'.
45527
45528 2008-10-09  Bruno Haible  <bruno@clisp.org>
45529
45530         * doc/glibc-headers/sys_ioctl.texi: New file.
45531         * doc/gnulib.texi: Include it.
45532
45533 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45534             Bruno Haible  <bruno@clisp.org>
45535
45536         Combine the two replacements of 'close'.
45537         * lib/sys_socket.in.h (close): Define to a reminder to include
45538         <unistd.h>.
45539         (_gl_close_fd_maybe_socket): New declaration.
45540         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
45541         * lib/winsock.c (close): Remove undefinition.
45542         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
45543         needed for the gnulib module 'close'.
45544         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
45545         define to an error symbol or to a warning, if suitable.
45546         * lib/close.c: Include <sys/socket.h>.
45547         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
45548         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
45549         UNISTD_H_HAVE_WINSOCK2_H.
45550         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
45551         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45552         UNISTD_H_HAVE_WINSOCK2_H.
45553         * modules/sys_socket (Files): Add m4/unistd_h.m4.
45554         (configure.ac): Set a module indicator.
45555         (Makefile.am): Substitute GNULIB_CLOSE.
45556         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
45557         * modules/poll-tests (Depends-on): Add close.
45558         * modules/select-tests (Depends-on): Likewise.
45559
45560 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45561             Bruno Haible  <bruno@clisp.org>
45562
45563         New module 'close'.
45564         * modules/close: New file.
45565         * lib/unistd.in.h (close): Move declaration out of the
45566         FCHDIR_REPLACEMENT scope.
45567         (_gl_unregister_fd): New declaration.
45568         * lib/close.c: New file.
45569         * lib/fchdir.c (rpl_close): Remove function.
45570         * m4/close.m4: New file.
45571         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
45572         close.
45573         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
45574         REPLACE_CLOSE.
45575         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
45576         REPLACE_CLOSE.
45577         * modules/fchdir (Depends-on): Add close.
45578
45579 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45580             Bruno Haible  <bruno@clisp.org>
45581
45582         * lib/fcntl.in.h (open): Simplify conditionals.
45583         (_gl_register_fd): New declaration.
45584         * lib/fchdir.c (rpl_open): Remove function.
45585         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
45586         also.
45587         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
45588         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
45589         open.
45590
45591 2008-10-09  Jim Meyering  <meyering@redhat.com>
45592
45593         GNUmakefile: use the more name-space-friendly "_version"
45594         * top/GNUmakefile (_dummy): Update.
45595         (_version): Rename from "version".
45596
45597 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45598             Bruno Haible  <bruno@clisp.org>
45599
45600         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
45601         rpl_close.
45602         (_gl_register_fd): New function, extracted from rpl_open.
45603         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
45604         (rpl_open, rpl_opendir): Use _gl_register_fd.
45605
45606 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45607
45608         Fix organization of 'open' replacement.
45609         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
45610         (gl_FUNC_OPEN): Use it.
45611         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
45612
45613 2008-10-08  Bruno Haible  <bruno@clisp.org>
45614
45615         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
45616
45617 2008-10-08  Simon Josefsson  <simon@josefsson.org>
45618
45619         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
45620         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
45621         listen).
45622
45623 2008-10-08  Eric Blake  <ebb9@byu.net>
45624
45625         GNUmakefile: add 'make version' target
45626         * top/GNUmakefile (_curr-ver): Split version update rules...
45627         (version): ...into a target.
45628
45629 2008-10-07  Bruno Haible  <bruno@clisp.org>
45630
45631         Use a more portable replacement expression for -0.0L.
45632         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
45633         instead of -0.0L. Fix m4 quotation.
45634
45635         * tests/test-signbit.c: Include <float.h>.
45636         (minus_zero): New variable.
45637         (test_signbitl): Use minus_zero instead of -zero.
45638         * modules/signbit-tests (Depends-on): Add float.
45639
45640         * tests/test-ceill.c: Include <float.h>.
45641         (zero): Remove variable.
45642         (minus_zero): New variable.
45643         (main): Use minus_zero instead of -zero.
45644         * modules/ceill-tests (Depends-on): Add float.
45645
45646         * tests/test-floorl.c: Include <float.h>.
45647         (zero): Remove variable.
45648         (minus_zero): New variable.
45649         (main): Use minus_zero instead of -zero.
45650         * modules/floorl-tests (Depends-on): Add float.
45651
45652         * tests/test-roundl.c: Include <float.h>.
45653         (zero): Remove variable.
45654         (minus_zero): New variable.
45655         (main): Use minus_zero instead of -zero.
45656         * modules/roundl-tests (Depends-on): Add float.
45657
45658         * tests/test-truncl.c: Include <float.h>.
45659         (zero): Remove variable.
45660         (minus_zero): New variable.
45661         (main): Use minus_zero instead of -zero.
45662         * modules/truncl-tests (Depends-on): Add float.
45663
45664         * tests/test-frexpl.c (zero): Remove variable.
45665         (minus_zero): New variable.
45666         (main): Use minus_zero instead of -zero.
45667         * modules/frexpl-tests (Depends-on): Add float.
45668
45669         * tests/test-isnan.c (zerol): Remove variable.
45670         (minus_zerol): New variable.
45671         (test_long_double): Use minus_zerol instead of -zerol.
45672         * modules/isnan-tests (Depends-on): Add float.
45673
45674         * tests/test-isnanl.h (zero): Remove variable.
45675         (minus_zero): New variable.
45676         (main): Use minus_zero instead of -zero.
45677         * modules/isnanl-nolibm-tests (Depends-on): Add float.
45678         * modules/isnanl-tests (Depends-on): Add float.
45679
45680         * tests/test-ldexpl.c (zero): Remove variable.
45681         (minus_zero): New variable.
45682         (main): Use minus_zero instead of -zero.
45683         * modules/ldexpl-tests (Depends-on): Add float.
45684
45685         * tests/test-snprintf-posix.h (zerol): Remove variable.
45686         (minus_zerol): New variable.
45687         (test_function): Use minus_zerol instead of -zerol.
45688         * modules/snprintf-posix-tests (Depends-on): Add float.
45689         * modules/vsnprintf-posix-tests (Depends-on): Add float.
45690
45691         * tests/test-sprintf-posix.h (zerol): Remove variable.
45692         (minus_zerol): New variable.
45693         (test_function): Use minus_zerol instead of -zerol.
45694         * modules/sprintf-posix-tests (Depends-on): Add float.
45695         * modules/vsprintf-posix-tests (Depends-on): Add float.
45696
45697         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
45698         (minus_zerol): New variable.
45699         (test_function): Use minus_zerol instead of -zerol.
45700         * modules/vasnprintf-posix-tests (Depends-on): Add float.
45701
45702         * tests/test-vasprintf-posix.c (zerol): Remove variable.
45703         (minus_zerol): New variable.
45704         (test_function): Use minus_zerol instead of -zerol.
45705         * modules/vasprintf-posix-tests (Depends-on): Add float.
45706
45707 2008-10-07  Simon Josefsson  <simon@josefsson.org>
45708
45709         * MODULES.html.sh (Support for building documentation): Mention
45710         pmccabe2html.  Sort entries.
45711
45712         Add pmccabe2html module, from gnupdf.
45713         * build-aux/pmccabe.css: New file.
45714         * build-aux/pmccabe2html: New file.
45715         * m4/pmccabe2html.m4: New file.
45716         * modules/pmccabe2html: New file.
45717
45718 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
45719
45720         flock: new module
45721         * MODULES.html.sh: Add to list of modules.
45722         * lib/flock.c: flock implementation for Windows and Unix systems
45723         which have fcntl.
45724         * doc/glibc-functions/flock.texi: Update documentation.
45725         * lib/sys_file.in.h: <sys/file.h> header file.
45726         * m4/flock.m4: M4 macros.
45727         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
45728         * modules/flock: flock module.
45729         * modules/flock-tests: flock tests module.
45730         * modules/sys_file: sys/file.h module.
45731         * tests/test-flock.c: test suite for flock.
45732
45733 2008-10-06  Jim Meyering  <meyering@redhat.com>
45734
45735         bootstrap: check for LT_INIT more portably still ;-)
45736         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
45737         Spotted by Bruno Haible.
45738
45739 2008-10-06  Eric Blake  <ebb9@byu.net>
45740
45741         test-signbit: avoid tripping Irix cc bug on -0.0L
45742         * tests/test-signbit.c (minus_zerol): Delete, and replace with
45743         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
45744         entire testsuite consistent and avoids an Irix 6.2 bug.
45745
45746 2008-10-05  Bruno Haible  <bruno@clisp.org>
45747             Jim Meyering  <jim@meyering.net>
45748
45749         Add an option for ignoring EPIPE during close_stdout.
45750         * lib/closeout.h: Include <stdbool.h>.
45751         (close_stdout_set_ignore_EPIPE): New declaration.
45752         * lib/closeout.c: Include <stdbool.h>.
45753         (ignore_EPIPE): New variable.
45754         (close_stdout_set_ignore_EPIPE): New function.
45755         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
45756         * lib/close-stream.c (close_stream): Mention the possible EPIPE
45757         failure.
45758         * modules/closeout (Depends-on): Add stdbool.
45759
45760 2008-10-05  Bruno Haible  <bruno@clisp.org>
45761
45762         * modules/accept: New file.
45763         * modules/bind: New file.
45764         * modules/connect: New file.
45765         * modules/getpeername: New file.
45766         * modules/getsockname: New file.
45767         * modules/getsockopt: New file.
45768         * modules/listen: New file.
45769         * modules/recv: New file.
45770         * modules/recvfrom: New file.
45771         * modules/send: New file.
45772         * modules/sendto: New file.
45773         * modules/setsockopt: New file.
45774         * modules/socket: New file.
45775         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
45776         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
45777         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
45778         the particular module is requested. Add a link warning when the
45779         particular module is not requested.
45780         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
45781         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
45782         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
45783         the particular module is requested.
45784         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
45785         gl_SYS_SOCKET_H_DEFAULTS): New macros.
45786         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
45787         * modules/sys_socket (Depends-on): Add link-warning.
45788         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
45789         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
45790         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
45791         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
45792         GL_LINK_WARNING.
45793         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
45794         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
45795         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
45796         * doc/posix-functions/getpeername.texi: Mention the new module
45797         'getpeername'.
45798         * doc/posix-functions/getsockname.texi: Mention the new module
45799         'getsockname'.
45800         * doc/posix-functions/getsockopt.texi: Mention the new module
45801         'getsockopt'.
45802         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
45803         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
45804         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
45805         * doc/posix-functions/send.texi: Mention the new module 'send'.
45806         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
45807         * doc/posix-functions/setsockopt.texi: Mention the new module
45808         'setsockopt'.
45809         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
45810         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
45811         listen, connect, accept.
45812         * modules/select-tests (Depends-on): Likewise.
45813
45814 2008-10-05  Bruno Haible  <bruno@clisp.org>
45815
45816         * lib/winsock.c (strerror): Remove unused #undef.
45817         (rpl_close): Remove unused local variable.
45818
45819         * modules/sys_socket (Depends-on); Add errno.
45820
45821 2008-10-05  Bruno Haible  <bruno@clisp.org>
45822
45823         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
45824         (select): Add a link warning when the 'select' module is not used.
45825         * modules/sys_select (Depends-on): Add link-warning.
45826         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
45827         Suggested by Paolo Bonzini.
45828
45829 2008-10-05  Jim Meyering  <meyering@redhat.com>
45830
45831         bootstrap: check for LT_INIT more portably
45832         * build-aux/bootstrap: Avoid using grep -E, since it's not
45833         portable enough.  Suggestion from Bruno Haible.
45834
45835 2008-10-05  Bruno Haible  <bruno@clisp.org>
45836
45837         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
45838         as being fixed by gnulib.
45839
45840 2008-10-05  Bruno Haible  <bruno@clisp.org>
45841
45842         * modules/select-tests: New file, mostly copied from
45843         modules/sys_select-tests.
45844         * tests/test-select.c: New file, mostly copied from
45845         tests/test-sys_select.c.
45846         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
45847         * modules/sys_select-tests (Depends-on): Remove all dependencies.
45848         (Makefile.am): Remove test_sys_select_LDADD.
45849
45850         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
45851         to an undefined symbol, for an error message.
45852         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
45853         (gl_SYS_SELECT_H_DEFAULTS): New macro.
45854         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
45855         winsock-select.c here.
45856         * modules/sys_select (Files): Remove lib/winsock-select.c.
45857         (Depends-on): Remove alloca.
45858         (Makefile.am): Substitute GNULIB_SELECT.
45859         * modules/select: New file.
45860         * doc/posix-functions/select.texi: Update.
45861
45862 2008-10-05  Bruno Haible  <bruno@clisp.org>
45863
45864         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
45865         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
45866         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
45867         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
45868         getdtablesize.
45869         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
45870         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
45871
45872 2008-10-05  Bruno Haible  <bruno@clisp.org>
45873
45874         * modules/getdtablesize-tests: New file.
45875         * tests/test-getdtablesize.c: New file.
45876
45877         New module 'getdtablesize'.
45878         * lib/unistd.in.h (getdtablesize): New declaration.
45879         * lib/getdtablesize.c: New file.
45880         * m4/getdtablesize.m4: New file.
45881         * modules/getdtablesize: New file.
45882         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45883         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
45884         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
45885         HAVE_GETDTABLESIZE.
45886         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
45887
45888 2008-10-05  Bruno Haible  <bruno@clisp.org>
45889
45890         * modules/sched (Makefile.am): Fix typo.
45891         Reported by Simon Josefsson.
45892
45893 2008-10-05  Jim Meyering  <meyering@redhat.com>
45894
45895         bootstrap: check for LT_INIT, too
45896         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
45897         are deprecated.  Suggestion from Ralf Wildenhues.
45898
45899 2008-10-05  Bruno Haible  <bruno@clisp.org>
45900
45901         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
45902         overriding them by ours.
45903         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
45904
45905 2008-10-05  Jim Meyering  <meyering@redhat.com>
45906
45907         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
45908         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
45909         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
45910
45911 2008-10-04  Bruno Haible  <bruno@clisp.org>
45912
45913         * modules/dup2 (License): Change to LGPLv2+.
45914         * modules/sleep (License): Likewise.
45915         * modules/perror (License): Likewise.
45916         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
45917         Blake.
45918         * modules/signal (License): Likewise.
45919         * modules/sigprocmask (License): Likewise.
45920         * modules/raise (License): Change to LGPLv2+, with approval by Jim
45921         Meyering.
45922
45923 2008-10-04  Bruno Haible  <bruno@clisp.org>
45924
45925         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
45926         Reported by Rainer Tammer <tammer@tammer.net>.
45927
45928 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
45929             Bruno Haible  <bruno@clisp.org>
45930
45931         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
45932         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
45933         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
45934
45935 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
45936
45937         filevercmp: new module
45938         * lib/filevercmp.h: New function filevercmp comparing version strings.
45939         * lib/filevercmp.c: Implementation of filevercmp function.
45940         * modules/filevercmp: Module metadata.
45941         * tests/test-filevercmp.c: Unit test for new module.
45942         * modules/filevercmp-tests: Unit test metadata.
45943         * MODULES.html.sh: Add filevercmp module.
45944
45945 2008-10-03  Bruno Haible  <bruno@clisp.org>
45946
45947         * lib/c-ctype.h: Add comment.
45948         Reported by Jim Meyering.
45949
45950 2008-10-02  Bruno Haible  <bruno@clisp.org>
45951
45952         * modules/posix_spawn-internal (Depends-on): Add 'open'.
45953
45954 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
45955
45956         * build-aux/bootstrap: Allow renaming bootstrap, and change the
45957         name of bootstrap.conf accordingly.
45958
45959 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
45960
45961         * build-aux/bootstrap: Install git-merge-changelog configuration
45962         items into .gitconfig if needed.
45963
45964 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
45965
45966         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
45967         git repository, and initialize/update it accordingly.
45968
45969 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
45970
45971         * modules/fsync-tests: New file.
45972         * tests/test-fsync.c: New file.
45973
45974         New module 'fsync'.
45975         * lib/fsync.c: New file.
45976         * m4/fsync.m4: New file.
45977         * modules/fsync: New file.
45978         * lib/unistd.in.h (fsync): New declaration.
45979         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
45980         GNULIB_FSYNC and HAVE_FSYNC.
45981         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
45982         * MODULES.html.sh (posix_functions): Add fsync.
45983         * doc/posix-functions/fsync.texi: Mention the new module.
45984
45985 2008-10-02  Jim Meyering  <meyering@redhat.com>
45986
45987         fts.c: sync with similar code from coreutils' remove.c
45988         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
45989         Guard also with "#if defined __linux__", since for now at least,
45990         this code is Linux-kernel-specific.
45991
45992 2008-10-02  Jim Meyering  <meyering@redhat.com>
45993
45994         fts: bug fixes
45995         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
45996         Include <sys/vfs.h>, not <sys/statfs.h>.
45997
45998         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
45999         Include <sys/vfs.h>, not <sys/statfs.h>.
46000
46001 2008-10-01  Bruno Haible  <bruno@clisp.org>
46002
46003         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
46004         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
46005         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
46006         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
46007         * doc/posix-functions/posix_spawnp.texi: Likewise.
46008         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
46009         whether posix_spawn actually works.
46010         * m4/pipe.m4 (gl_PIPE): Likewise.
46011         * modules/execute (Files): Add m4/posix_spawn.m4.
46012         * modules/pipe (Files): Add m4/posix_spawn.m4.
46013         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
46014
46015 2008-10-01  Jim Meyering  <meyering@redhat.com>
46016
46017         remove trailing spaces
46018         * NEWS: Likewise.
46019         * lib/poll.c (poll): Likewise.
46020         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
46021         * lib/winsock.c (rpl_close): Likewise.
46022         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
46023         * modules/yield: Likewise.
46024         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
46025         * tests/test-sys_select.c (connect_to_socket): Likewise.
46026
46027         fts.c: adjust a new interface to be more generally useful
46028         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
46029         (fts_build): Adjust caller.
46030
46031 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46032
46033         * modules/cond-tests: New file.
46034         * tests/test-cond.c: New file.
46035
46036 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46037             Bruno Haible  <bruno@clisp.org>
46038
46039         * modules/cond (Dependencies): Add errno, time.
46040         * lib/glthread/cond.h: Include <time.h>.
46041         (gl_cond_define, gl_cond_define_initialized): Use the same definition
46042         across platforms.
46043
46044 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46045             Bruno Haible  <bruno@clisp.org>
46046
46047         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
46048
46049 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46050             Bruno Haible  <bruno@clisp.org>
46051
46052         * modules/tls-tests (Depends-on): Add thread, yield.
46053         (configure.ac): Remove all checks.
46054         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
46055         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
46056         gl_thread_self): Remove definitions. Include glthread/thread.h and
46057         glthread/yield.h instead.
46058         (test_tls): Pass an additional NULL argument to gl_thread_join.
46059
46060 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46061             Bruno Haible  <bruno@clisp.org>
46062
46063         * modules/lock-tests (Depends-on): Add thread, yield.
46064         (configure.ac): Remove all checks.
46065         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
46066         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
46067         gl_thread_self): Remove definitions. Include glthread/thread.h and
46068         glthread/yield.h instead.
46069         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
46070         additional NULL argument to gl_thread_join.
46071
46072 2008-09-30  Bruno Haible  <bruno@clisp.org>
46073
46074         Fix the Win32 implementation of the 'thread' module.
46075         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
46076         pointer type.
46077         (gl_thread_self): Invoke gl_thread_self_func.
46078         (gl_thread_self_func): New declaration.
46079         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
46080         (do_init_self_key, init_self_key): New functions.
46081         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
46082         Remove some fields.
46083         (running_threads, running_lock): Remove variables.
46084         (get_current_thread_handle): New function.
46085         (gl_thread_self_func, wrapper_func, glthread_create_func,
46086         glthread_join_func, gl_thread_exit_func): Largely rewritten and
46087         simplified.
46088
46089 2008-09-30  Bruno Haible  <bruno@clisp.org>
46090
46091         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
46092         files.
46093
46094 2008-09-30  Jim Meyering  <meyering@redhat.com>
46095
46096         fts.m4: correct the test for statfs.f_type
46097         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
46098         when checking for statfs.f_type.
46099
46100 2008-09-15  Simon Josefsson  <simon@josefsson.org>
46101
46102         tests: avoid some compiler warnings
46103         * tests/test-memchr.c (main): Pass NULL indirectly.
46104         * tests/test-getdate.c (main): Remove unused variable 'ret'.
46105
46106 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
46107
46108         getdate.y: disallow countable dayshifts like "4 yesterday ago"
46109         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
46110         exactly specified dayshifts.
46111         (dayshift): New rule.
46112         (rel): Add dayshift.
46113         (relative_time_table) [tomorrow, yesterday, today, now]:
46114         Use tDAY_SHIFT in place of tDAY_UNIT.
46115         * tests/test-getdate.c: Add tests for now-disallowed countable
46116         dayshifts, e.g., "4 yesterday ago".
46117
46118 2008-09-29  Bruno Haible  <bruno@clisp.org>
46119
46120         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
46121         * tests/test-posix_spawn1.in.sh: Renamed from
46122         tests/test-posix_spawn.in.sh.
46123         * tests/test-posix_spawn2.c: New file.
46124         * tests/test-posix_spawn2.in.sh: New file.
46125         * modules/posix_spawnp-tests (Files): Update.
46126         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
46127
46128 2008-09-29  Bruno Haible  <bruno@clisp.org>
46129
46130         Propagate effects of putenv/setenv/unsetenv to child processes.
46131         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
46132         * lib/pipe.c (create_pipe): Likewise.
46133
46134 2008-09-29  Bruno Haible  <bruno@clisp.org>
46135
46136         Enable use of shell scripts as executables in mingw.
46137         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
46138         run the program as a shell script.
46139         * lib/pipe.c (create_pipe): Likewise.
46140         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
46141         resulting array.
46142
46143 2008-09-29  Eric Blake  <ebb9@byu.net>
46144
46145         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
46146
46147 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
46148
46149         * doc/posix-functions/accept.texi: Update mingw problems.
46150         * doc/posix-functions/bind.texi: Update mingw problems.
46151         * doc/posix-functions/close.texi: Update mingw problems.
46152         * doc/posix-functions/connect.texi: Update mingw problems.
46153         * doc/posix-functions/getpeername.texi: Update mingw problems.
46154         * doc/posix-functions/getsockname.texi: Update mingw problems.
46155         * doc/posix-functions/getsockopt.texi: Update mingw problems.
46156         * doc/posix-functions/ioctl.texi: Update mingw problems.
46157         * doc/posix-functions/listen.texi: Update mingw problems.
46158         * doc/posix-functions/recv.texi: Update mingw problems.
46159         * doc/posix-functions/recvfrom.texi: Update mingw problems.
46160         * doc/posix-functions/select.texi: Update mingw problems.
46161         * doc/posix-functions/send.texi: Update mingw problems.
46162         * doc/posix-functions/sendto.texi: Update mingw problems.
46163         * doc/posix-functions/setsockopt.texi: Update mingw problems.
46164         * doc/posix-functions/socket.texi: Update mingw problems.
46165
46166 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
46167             Bruno Haible  <bruno@clisp.org>
46168
46169         * lib/sys_select.in.h: Include sys/time.h.
46170         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
46171         * modules/sys_select: Depend on sys_time.
46172         * tests/test-sys_select.c: Test that sys/select.h defines struct
46173         timeval fully.
46174
46175 2008-09-29  Bruno Haible  <bruno@clisp.org>
46176
46177         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
46178         * lib/sys_select.in.h: Likewise.
46179
46180 2008-09-29  Bruno Haible  <bruno@clisp.org>
46181
46182         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
46183
46184 2008-09-29  Bruno Haible  <bruno@clisp.org>
46185
46186         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
46187         Set LIBSOCKET instead of augmenting LIBS.
46188         * modules/sockets (Link): New section.
46189         * modules/sockets-tests (test_sockets_LDADD): New variable.
46190         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
46191         * modules/poll-tests (test_poll_LDADD): New variable.
46192         * NEWS: Document the change.
46193
46194 2008-09-29  Bruno Haible  <bruno@clisp.org>
46195
46196         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
46197         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
46198         ARPA_INET_H directly.
46199         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
46200
46201 2008-09-28  Bruno Haible  <bruno@clisp.org>
46202
46203         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
46204         from gl_HEADER_SYS_SOCKET.
46205         (gl_HEADER_SYS_SOCKET): Invoke it.
46206         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
46207
46208 2008-09-28  Bruno Haible  <bruno@clisp.org>
46209
46210         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
46211         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
46212         Needed on OSF/1 4.0.
46213
46214 2008-09-28  Bruno Haible  <bruno@clisp.org>
46215
46216         Override open more carefully.
46217         * lib/open.c (orig_open): New function.
46218         (rpl_open): Use orig_open instead of open.
46219         * lib/fcntl.in.h: Add special invocation convention.
46220         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
46221         (gl_FUNC_OPEN): Invoke it.
46222
46223         Override freopen more carefully.
46224         * lib/freopen.c (orig_freopen): New function.
46225         (rpl_freopen): Use orig_freopen instead of freopen.
46226         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
46227         (gl_FUNC_FREOPEN): Invoke it.
46228
46229         Override fopen more carefully.
46230         * lib/fopen.c (orig_fopen): New function.
46231         (rpl_fopen): Use orig_fopen instead of fopen.
46232         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
46233         (gl_FUNC_FOPEN): Invoke it.
46234         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
46235
46236 2008-09-28  Bruno Haible  <bruno@clisp.org>
46237
46238         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
46239         SIGPIPE.
46240
46241 2008-09-28  Bruno Haible  <bruno@clisp.org>
46242
46243         * tests/test-sigaction.c (handler, main): Disable the check whether
46244         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
46245         glibc systems with LinuxThreads.
46246
46247 2008-09-28  Bruno Haible  <bruno@clisp.org>
46248
46249         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
46250
46251         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
46252         with AIX xlc.
46253         * lib/fcntl.in.h (open): Likewise.
46254         Reported by Rainer Tammer <tammer@tammer.net>.
46255
46256 2008-09-28  Bruno Haible  <bruno@clisp.org>
46257
46258         * modules/posix_spawnp-tests: New file.
46259         * tests/test-posix_spawn.c: New file.
46260         * tests/test-posix_spawn.in.sh: New file.
46261
46262         New module 'posix_spawnp'.
46263         * modules/posix_spawnp: New file.
46264         * lib/spawnp.c: New file, from GNU libc with modifications.
46265         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
46266
46267         New module 'posix_spawn'.
46268         * modules/posix_spawn: New file.
46269         * lib/spawn.c: New file, from GNU libc with modifications.
46270         * doc/posix-functions/posix_spawn.texi: Mention the new module.
46271
46272         New module 'posix_spawnattr_destroy'.
46273         * modules/posix_spawnattr_destroy: New file.
46274         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
46275         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
46276         module.
46277
46278         New module 'posix_spawnattr_setsigmask'.
46279         * modules/posix_spawnattr_setsigmask: New file.
46280         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
46281         modifications.
46282         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
46283         new module.
46284
46285         New module 'posix_spawnattr_getsigmask'.
46286         * modules/posix_spawnattr_getsigmask: New file.
46287         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
46288         modifications.
46289         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
46290         new module.
46291
46292         New module 'posix_spawnattr_setsigdefault'.
46293         * modules/posix_spawnattr_setsigdefault: New file.
46294         * lib/spawnattr_setdefault.c: New file, from GNU libc with
46295         modifications.
46296         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
46297         new module.
46298
46299         New module 'posix_spawnattr_getsigdefault'.
46300         * modules/posix_spawnattr_getsigdefault: New file.
46301         * lib/spawnattr_getdefault.c: New file, from GNU libc with
46302         modifications.
46303         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
46304         new module.
46305
46306         New module 'posix_spawnattr_setschedpolicy'.
46307         * modules/posix_spawnattr_setschedpolicy: New file.
46308         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
46309         modifications.
46310         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
46311         new module.
46312
46313         New module 'posix_spawnattr_getschedpolicy'.
46314         * modules/posix_spawnattr_getschedpolicy: New file.
46315         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
46316         modifications.
46317         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
46318         new module.
46319
46320         New module 'posix_spawnattr_setschedparam'.
46321         * modules/posix_spawnattr_setschedparam: New file.
46322         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
46323         modifications.
46324         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
46325         new module.
46326
46327         New module 'posix_spawnattr_getschedparam'.
46328         * modules/posix_spawnattr_getschedparam: New file.
46329         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
46330         modifications.
46331         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
46332         new module.
46333
46334         New module 'posix_spawnattr_setpgroup'.
46335         * modules/posix_spawnattr_setpgroup: New file.
46336         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
46337         modifications.
46338         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
46339         module.
46340
46341         New module 'posix_spawnattr_getpgroup'.
46342         * modules/posix_spawnattr_getpgroup: New file.
46343         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
46344         modifications.
46345         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
46346         module.
46347
46348         New module 'posix_spawnattr_setflags'.
46349         * modules/posix_spawnattr_setflags: New file.
46350         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
46351         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
46352         module.
46353
46354         New module 'posix_spawnattr_getflags'.
46355         * modules/posix_spawnattr_getflags: New file.
46356         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
46357         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
46358         module.
46359
46360         New module 'posix_spawnattr_init'.
46361         * modules/posix_spawnattr_init: New file.
46362         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
46363         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
46364         module.
46365
46366         New module 'posix_spawn_file_actions_destroy'.
46367         * modules/posix_spawn_file_actions_destroy: New file.
46368         * lib/spawn_faction_destroy.c: New file, from GNU libc with
46369         modifications.
46370         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
46371         the new module.
46372
46373         New module 'posix_spawn_file_actions_addopen'.
46374         * modules/posix_spawn_file_actions_addopen: New file.
46375         * lib/spawn_faction_addopen.c: New file, from GNU libc with
46376         modifications.
46377         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
46378         the new module.
46379
46380         New module 'posix_spawn_file_actions_adddup2'.
46381         * modules/posix_spawn_file_actions_adddup2: New file.
46382         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
46383         modifications.
46384         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
46385         the new module.
46386
46387         New module 'posix_spawn_file_actions_addclose'.
46388         * modules/posix_spawn_file_actions_addclose: New file.
46389         * lib/spawn_faction_addclose.c: New file, from GNU libc with
46390         modifications.
46391         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
46392         the new module.
46393
46394         New module 'posix_spawn_file_actions_init'.
46395         * modules/posix_spawn_file_actions_init: New file.
46396         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
46397         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
46398         new module.
46399
46400         New module 'posix_spawn-internal'.
46401         * modules/posix_spawn-internal: New file.
46402         * lib/spawn_int.h: New file, from GNU libc with modifications.
46403         * lib/spawni.c: New file, from GNU libc with modifications.
46404         * m4/posix_spawn.m4: New file.
46405
46406         New module 'spawn'.
46407         * modules/spawn: New file.
46408         * lib/spawn.in.h: New file, from GNU libc with modifications.
46409         * m4/spawn_h.m4: New file.
46410         * doc/posix-headers/spawn.texi: Mention the new module.
46411
46412 2008-09-28  Bruno Haible  <bruno@clisp.org>
46413
46414         * modules/sched-tests: New file.
46415         * tests/test-sched.c: New file.
46416
46417         New module 'sched'.
46418         * modules/sched: New file.
46419         * lib/sched.in.h: New file.
46420         * m4/sched_h.m4: New file.
46421         * doc/posix-headers/sched.texi: Mention the new module.
46422
46423 2008-09-27  Eric Blake  <ebb9@byu.net>
46424
46425         Fix previous patch, and tweak references to $0.
46426         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
46427         (func_version, func_gnulib_dir): Don't call this program
46428         gnulib-tool.
46429         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
46430         with using $0 in function.
46431         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
46432         (func_fatal_error): Reuse the name the user invoked us with.
46433
46434 2008-09-27  Bruno Haible  <bruno@clisp.org>
46435
46436         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
46437         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
46438         (gl_ICONV_H): Not here.
46439         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
46440         instead of assigning ICONV_H directly.
46441
46442         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
46443         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
46444         WCHAR_H directly.
46445
46446 2008-09-27  Bruno Haible  <bruno@clisp.org>
46447
46448         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
46449         * modules/arpa_inet (Depends-on): Add link-warning.
46450         (Makefile.am): Insert the definition of GL_LINK-WARNING.
46451         * modules/unistd (Makefile.am): Likewise.
46452
46453 2008-09-26  Bruno Haible  <bruno@clisp.org>
46454
46455         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
46456         variables.
46457         (func_version): Essentially copied from gnulib-tool.
46458         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
46459         func_readlink): Copied from gnulib-tool.
46460
46461 2008-09-26  Bruno Haible  <bruno@clisp.org>
46462
46463         * gnulib-tool (func_version): Change directory to $gnulib_dir before
46464         invoking git-version-gen.
46465
46466 2008-09-26  Bruno Haible  <bruno@clisp.org>
46467
46468         * posix-modules: Update to directory names changed on 2008-01-19.
46469         Remove commas in output before splitting into words. No more need to
46470         avoid 'ftruncate' since 2007-02-19.
46471
46472 2008-09-26  Bruno Haible  <bruno@clisp.org>
46473
46474         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
46475
46476 2008-09-26  Bruno Haible  <bruno@clisp.org>
46477
46478         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
46479         * modules/fwriteerror (Depends-on): Add errno.
46480
46481 2008-09-26  Bruno Haible  <bruno@clisp.org>
46482
46483         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
46484         * tests/test-vc-list-files-cvs.sh: Likewise.
46485
46486 2008-09-26  Bruno Haible  <bruno@clisp.org>
46487
46488         * doc/posix-headers/sys_resource.texi: Reorder items.
46489
46490 2008-09-26  Jim Meyering  <meyering@redhat.com>
46491
46492         fts: tweak inode comparison function
46493         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
46494         inode numbers, as documented.
46495
46496         fts: sort dirent entries on inode number before traversing
46497         This avoids a quadratic, seek-related performance penalty when
46498         operating on a directory containing many entries (measurable at 10k;
46499         3.5 hours at 2 million entries with a cold cache) on certain types
46500         of file systems, including ext3 and ext4, but not tmpfs.
46501         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
46502         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
46503         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
46504         (fs_handles_readdir_ordered_dirents_efficiently): New function.
46505         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
46506         (fts_build): Set the stat.st_ino member from D_INO.
46507         If it is likely to be useful, sort dirent entries on inode number.
46508
46509         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
46510         and the struct statfs.f_type member.
46511         * modules/fts (Depends-on): Add d-ino.
46512
46513 2008-09-26  Bruno Haible  <bruno@clisp.org>
46514
46515         * modules/sigpipe-die (Depends-on): Add sigpipe.
46516
46517         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
46518         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
46519         and GNULIB_STDIO_H_SIGPIPE are set.
46520         * lib/stdio-write.c: New file.
46521         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
46522         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
46523         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
46524         REPLACE_STDIO_WRITE_FUNCS.
46525         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
46526         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
46527         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
46528         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
46529         * modules/stdio (Files): Add lib/stdio-write.c.
46530         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
46531         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
46532         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
46533         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
46534         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
46535         REPLACE_FPRINTF_POSIX.
46536         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
46537         REPLACE_PRINTF_POSIX.
46538         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
46539         REPLACE_VFPRINTF_POSIX.
46540         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
46541         REPLACE_VPRINTF_POSIX.
46542         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
46543         SIGPIPE issue.
46544         * doc/posix-functions/fputc.texi: Likewise.
46545         * doc/posix-functions/fputs.texi: Likewise.
46546         * doc/posix-functions/fwrite.texi: Likewise.
46547         * doc/posix-functions/printf.texi: Likewise.
46548         * doc/posix-functions/putc.texi: Likewise.
46549         * doc/posix-functions/putchar.texi: Likewise.
46550         * doc/posix-functions/puts.texi: Likewise.
46551         * doc/posix-functions/vfprintf.texi: Likewise.
46552         * doc/posix-functions/vprintf.texi: Likewise.
46553
46554         * modules/safe-write (Depends-on): Add write.
46555
46556         * modules/sigpipe-tests: New file.
46557         * tests/test-sigpipe.c: New file.
46558         * tests/test-sigpipe.sh: New file.
46559
46560         * modules/write: New file.
46561         * lib/unistd.in.h: Include <sys/types.h>.
46562         (write): New declaration.
46563         * lib/write.c: New file.
46564         * m4/write.m4: New file.
46565         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46566         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
46567         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
46568         GNULIB_WRITE, REPLACE_WRITE.
46569         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
46570         and the SIGPIPE issue.
46571
46572         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
46573         (raise): New declaration.
46574         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
46575         (ext_signal): New function.
46576         (rpl_raise): New function.
46577         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
46578         GNULIB_SIGNAL_H_SIGPIPE.
46579         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
46580         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
46581
46582         * modules/sigpipe: New file.
46583         * m4/sigpipe.m4: New file.
46584
46585 2008-09-25  Derek Price  <derek@ximbiot.com>
46586             Bruno Haible  <bruno@clisp.org>
46587
46588         * gnulib-tool (func_import): Report all license incompatibilities, not
46589         just the first one.
46590
46591 2008-09-25  Bruno Haible  <bruno@clisp.org>
46592
46593         * gnulib-tool (func_import): When computing the edits, consider not
46594         only the Makefile.ams that exist but also those that will be generated.
46595
46596 2008-09-25  Simon Josefsson  <simon@josefsson.org>
46597
46598         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
46599         fixes gnulib-tool --test warning about duplicate dependency.
46600
46601 2008-09-25  Bruno Haible  <bruno@clisp.org>
46602
46603         * gnulib-tool: Don't ask the user to perform edits in the generated
46604         Makefile.ams.
46605         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
46606         apply to the Makefile.am being generated.
46607         (func_emit_tests_Makefile_am): Execute edits that apply to the
46608         Makefile.am being generated.
46609         (func_import): Setup list of Makefile.am edits before emitting the
46610         Makefile.ams, not at the end.
46611         (func_create_testdir): Update.
46612         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
46613
46614 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46615
46616         * gnulib-tool (func_import): Store the --tests-base option in the
46617         comment in gnulib-cache.m4.
46618
46619 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
46620
46621         * NEWS: Document increased portability that sys_select now provides.
46622
46623         * lib/sys_select.in.h: Install select wrapper.
46624         * lib/sys_socket.in.h: Use more descriptive name when there is no
46625         select wrapper.
46626         * lib/winsock-select.c: New.
46627         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
46628         Require gl_HEADER_SYS_SOCKET.
46629         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
46630         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
46631         * tests/test-sys_select.c: Add functional tests.
46632
46633 2008-09-24  Eric Blake  <ebb9@byu.net>
46634
46635         open, fopen: close fd leak in last patch
46636         * lib/open.c (rpl_open): Close fd before returning error.
46637         * lib/fopen.c (rpl_fopen): Close fd before returning error.
46638         * doc/posix-functions/open.texi (open): Document that Irix also
46639         has the bug.
46640         * doc/posix-functions/fopen.texi (fopen): Likewise.
46641         Reported by Paolo Bonzini.
46642
46643 2008-09-24  Bruno Haible  <bruno@clisp.org>
46644
46645         Ensure that a filename ending in a slash cannot be used to access a
46646         non-directory.
46647         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
46648         to check whether it's really a directory.
46649         * lib/fopen.c: Include fcntl.h, unistd.h.
46650         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
46651         and fdopen().
46652         * modules/fopen (Depends-on): Add unistd.
46653         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
46654         * tests/test-fopen.c (main): Likewise.
46655         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
46656         * doc/posix-functions/fopen.texi: Likewise.
46657         Reported by Eric Blake.
46658
46659 2008-09-23  Eric Blake  <ebb9@byu.net>
46660
46661         c-stack: avoid compiler optimizations when provoking overflow
46662         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
46663         recursion harder to optimize, to ensure a stack overflow occurs.
46664         * tests/test-c-stack.c (recurse): Likewise.
46665         Borrowed from libsigsegv.
46666
46667         c-stack: work around Irix sigaltstack bug
46668         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
46669         whether sigaltstack uses wrong end of stack_t (copied in part from
46670         libsigsegv).
46671         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
46672         Irix bug, without requiring an over-allocation.
46673         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
46674         bug.
46675
46676         fopen: document mingw bug on directories
46677         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
46678         not allowing a stream visiting a directory, even though reading
46679         from such a stream is not portable.
46680
46681 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
46682
46683         * lib/poll.c: Rewrite.
46684         * modules/poll: Depend on alloca.
46685
46686 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
46687
46688         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
46689         instead define prototypes for a full set of wrappers.  Ensure
46690         that Cygwin does not use the compatibility code, which is only
46691         for MinGW.
46692         * lib/winsock.c: New.
46693         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
46694         * modules/sys_socket: Add lib/winsock.c.
46695
46696         * modules/poll-tests: Add errno and perror.
46697         * tests/test-poll.c: Use ioctl, not ioctlsocket.
46698
46699 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
46700
46701         * tests/test-poll.c: Downgrade minimum needed Winsock version.
46702
46703 2008-09-23  Bruno Haible  <bruno@clisp.org>
46704
46705         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
46706         * doc/glibc-functions/*: Likewise.
46707
46708 2008-09-23  Simon Josefsson  <simon@josefsson.org>
46709
46710         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
46711         success.
46712
46713 2008-09-22  Eric Blake  <ebb9@byu.net>
46714             Bruno Haible  <bruno@clisp.org>
46715
46716         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
46717         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
46718         supply %A but mishandle pseudo-NaN.
46719         Reported by Simon Josefsson.
46720
46721 2008-09-21  Bruno Haible  <bruno@clisp.org>
46722
46723         * tests/test-lock.c (main): Tweak skip message.
46724         * tests/test-tls.c (main): Likewise.
46725
46726 2008-09-21  Bruno Haible  <bruno@clisp.org>
46727
46728         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
46729         whether 'struct sigaction' has sa_sigaction here...
46730         (gl_PREREQ_SIG_HANDLER_H): ... not here.
46731         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
46732
46733 2008-09-21  Bruno Haible  <bruno@clisp.org>
46734
46735         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
46736         section.
46737         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
46738         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
46739         the new section.
46740         (Support for obsolete systems lacking POSIX:2001): New section.
46741         (String handling <string.h>): Move strdup to the new section.
46742         Suggested by Simon Josefsson and Paolo Bonzini.
46743
46744 2008-09-21  Bruno Haible  <bruno@clisp.org>
46745
46746         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
46747         exponents in %e and %g results on 'long double'. Needed for mingw's
46748         improved *printf functions.
46749         * tests/test-vasprintf-posix.c (test_function): Likewise.
46750         * tests/test-snprintf-posix.h (test_function): Likewise.
46751         * tests/test-sprintf-posix.h (test_function): Likewise.
46752         Reported by Eric Blake.
46753
46754 2008-09-21  Bruno Haible  <bruno@clisp.org>
46755
46756         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
46757         * tests/test-sprintf-posix.h (test_function): Likewise.
46758
46759 2008-09-21  Bruno Haible  <bruno@clisp.org>
46760
46761         * modules/getpass (Depends-on): Add strdup-posix.
46762
46763         New module 'strdup-posix'.
46764         * modules/strdup-posix: New file.
46765         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
46766         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
46767         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
46768         REPLACE_STRDUP.
46769         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
46770         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
46771         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
46772         strdup-posix.
46773
46774         * modules/strdup (Depends-on): Remove malloc-posix.
46775
46776 2008-09-20  Bruno Haible  <bruno@clisp.org>
46777
46778         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
46779         Wildenhues.
46780
46781 2008-09-20  Bruno Haible  <bruno@clisp.org>
46782
46783         Ensure that wint_t gets defined on IRIX 5.3.
46784         * lib/wchar.in.h (wint_t): Define if not defined by the system.
46785         * lib/wctype.in.h (wint_t): Likewise.
46786         (__wctype_wint_t): Remove type.
46787         (isw*): Use wint_t instead of __wctype_wint_t.
46788         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
46789         * modules/wchar (Files): Add m4/wint_t.m4.
46790         (Makefile.am): Substitute HAVE_WINT_T.
46791         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
46792         * tests/test-wctype.c: Check that wint_t is defined.
46793         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
46794         * doc/posix-headers/wctype.texi: Likewise.
46795         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46796
46797 2008-09-18  Bruno Haible  <bruno@clisp.org>
46798
46799         * gnulib-tool (func_exit): Update comment.
46800
46801 2008-09-18  Simon Josefsson  <simon@josefsson.org>
46802
46803         * modules/getaddrinfo (Depends-on): Remove strdup, this module
46804         assumes strdup exists and does not depend on strdup to return
46805         ENOMEM on out of memory conditions.
46806
46807 2008-09-18  Bruno Haible  <bruno@clisp.org>
46808
46809         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
46810         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
46811         digits for the exponent.
46812
46813 2008-09-18  Jim Meyering  <meyering@redhat.com>
46814             Bruno Haible  <bruno@clisp.org>
46815
46816         * lib/vasnprintf.c (decimal_point_char): Define also if
46817         NEED_PRINTF_INFINITE_LONG_DOUBLE.
46818
46819 2008-09-16  Bruno Haible  <bruno@clisp.org>
46820         and Eric Blake  <ebb9@byu.net>
46821
46822         vasnprintf: support Irix 5.3
46823         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
46824         that mishandle long double infinity.
46825         Reported by Tom G. Christensen.
46826
46827 2008-09-16  Bruno Haible  <bruno@clisp.org>
46828
46829         * doc/glibc-functions/scandir.texi: Mention the function is missing on
46830         Solaris 9.
46831         * doc/glibc-functions/alphasort.texi: Likewise.
46832         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
46833
46834 2008-09-16  Jim Meyering  <meyering@redhat.com>
46835
46836         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
46837         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
46838         a umask modification leak out of a subshell.  Otherwise, the
46839         opensolaris /bin/sh would be accepted and thus cause unwarranted
46840         failures in the coreutils test suite.
46841
46842 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
46843
46844         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
46845         to succeed.
46846
46847 2008-09-16  Jim Meyering  <meyering@redhat.com>
46848
46849         avoid spurious test failure when library is built without ACL support
46850         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
46851         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
46852         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
46853         * tests/test-copy-acl.sh: Likewise.
46854
46855 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46856
46857         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
46858         based on character occurrence counts.
46859
46860 2008-09-15  Eric Blake  <ebb9@byu.net>
46861
46862         tests: avoid some compiler warnings
46863         * tests/test-memchr.c (main): Pass NULL indirectly.
46864         * tests/test-closein.c (main): Avoid unused variable.
46865
46866 2008-09-15  Bruno Haible  <bruno@clisp.org>
46867
46868         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
46869         are missing on OpenBSD 4.0 individually.
46870         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
46871
46872 2008-09-15  Bruno Haible  <bruno@clisp.org>
46873
46874         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
46875         * doc/posix-functions/strerror.texi: Mention also Cygwin.
46876         * doc/posix-functions/perror.texi: Likewise.
46877         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
46878         is missing.
46879         Reported by Eric Blake.
46880
46881         * lib/errno.in.h: Use replacement values >= 2000.
46882         Reported by Eric Blake.
46883
46884 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46885
46886         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
46887         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
46888         limit.
46889         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
46890         compareseq was aborted.
46891
46892 2008-09-14  Bruno Haible  <bruno@clisp.org>
46893
46894         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
46895         yvec_edit_count.
46896         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
46897         (fstrcmp_bounded): Simplify result computation accordingly.
46898
46899 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46900
46901         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
46902         (fstrcmp): Define in terms of fstrcmp_bounded.
46903         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
46904         lower_bound argument.
46905         Return quickly if the result is certainly < lower_bound.
46906         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
46907
46908 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46909
46910         * lib/diffseq.h (EARLY_ABORT): New macro.
46911         (compareseq): Change return type to bool. Return true when EARLY_ABORT
46912         evaluates to true.
46913
46914 2008-09-14  Bruno Haible  <bruno@clisp.org>
46915
46916         * modules/perror-tests: New file.
46917         * tests/test-perror.sh: New file.
46918         * tests/test-perror.c: New file.
46919
46920         New module 'perror'.
46921         * lib/stdio.in.h (perror): New declaration.
46922         * lib/perror.c: New file.
46923         * m4/perror.m4: New file.
46924         * modules/perror: New file.
46925         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
46926         * doc/posix-functions/perror.texi: Mention the perror module.
46927         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
46928         REPLACE_PERROR.
46929         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
46930         REPLACE_PERROR.
46931
46932 2008-09-14  Bruno Haible  <bruno@clisp.org>
46933
46934         * modules/stdio (Makefile.am): Reorder to match the order in
46935         lib/stdio.in.h.
46936         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
46937
46938 2008-09-13  Bruno Haible  <bruno@clisp.org>
46939
46940         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
46941
46942 2008-09-13  Bruno Haible  <bruno@clisp.org>
46943
46944         Extend strerror to cover the added errno values.
46945         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
46946         (rpl_strerror): Provide error messages for the added errno values and
46947         for the WSA* values.
46948         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
46949         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
46950         strerror.
46951         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
46952         * modules/strerror (Depends-on): Add errno.
46953         * doc/posix-functions/strerror.texi: Document the change.
46954         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
46955         and EOVERFLOW.
46956
46957 2008-09-13  Bruno Haible  <bruno@clisp.org>
46958
46959         * modules/EOVERFLOW: Remove file.
46960         * m4/eoverflow.m4: Remove file.
46961         * modules/EOVERFLOW-tests: Remove file.
46962         * tests/test-EOVERFLOW.c: Remove file.
46963         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
46964         * modules/ftell (Depends-on): Likewise.
46965         * modules/getdelim (Depends-on): Likewise.
46966         * modules/getugroups (Depends-on): Likewise.
46967         * modules/poll (Depends-on): Likewise.
46968         * modules/snprintf (Depends-on): Likewise.
46969         * modules/sprintf-posix (Depends-on): Likewise.
46970         * modules/vasnprintf (Depends-on): Likewise.
46971         * modules/vasprintf (Depends-on): Likewise.
46972         * modules/vfprintf-posix (Depends-on): Likewise.
46973         * modules/vsnprintf (Depends-on): Likewise.
46974         * modules/vsprintf-posix (Depends-on): Likewise.
46975         * modules/xvasprintf (Depends-on): Likewise.
46976         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
46977         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
46978         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
46979         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
46980         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
46981         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
46982         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
46983         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
46984         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
46985         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
46986         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
46987         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
46988         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
46989         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
46990         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
46991         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
46992         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
46993         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
46994         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
46995         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
46996         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
46997         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
46998         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
46999         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
47000         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
47001         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
47002         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
47003         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
47004         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
47005         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
47006         * MODULES.html.sh: Remove EOVERFLOW.
47007         * NEWS: Mention the change.
47008
47009 2008-09-13  Bruno Haible  <bruno@clisp.org>
47010
47011         * modules/errno-tests: New file.
47012         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
47013
47014         * lib/errno.in.h: New file.
47015         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
47016         * modules/errno: New file.
47017         * doc/posix-headers/errno.texi: Update documentation.
47018         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
47019
47020 2008-09-13  Bruno Haible  <bruno@clisp.org>
47021
47022         * tests/test-poll.c: Use #if for native Windows, rather than testing
47023         __MSVCRT__.
47024
47025 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47026             Bruno Haible  <bruno@clisp.org>
47027
47028         * lib/glob.c: Don't include <pwd.h> on native Windows.
47029         (WINDOWS32): New macro.
47030         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
47031
47032 2008-09-13  Bruno Haible  <bruno@clisp.org>
47033
47034         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
47035         (ETIMEDOUT): Remove macro.
47036         (glthread_cond_timedwait_multithreaded): New declaration.
47037         (glthread_cond_timedwait): Use it.
47038         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
47039         (glthread_cond_timedwait_multithreaded): New function.
47040
47041 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
47042
47043         * modules/poll-tests: Do not check for io.h.
47044         * tests/test-poll.c: Check for __MSVCRT__ instead.
47045
47046 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
47047
47048         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
47049         * modules/poll-tests: Add inet_pton, stdbool, sockets.
47050         * tests/test-poll.c: Use them.  Use _pipe on Windows.
47051
47052 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
47053
47054         * modules/poll-tests: New.
47055         * tests/test-poll.c: New.
47056
47057 2008-09-12  Eric Blake  <ebb9@byu.net>
47058
47059         frexp: test for NetBSD failure on -0.0
47060         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
47061         not all, bugs from NetBSD 3.0 have been fixed.
47062         * doc/posix-functions/frexp.texi (frexp): Document bug.
47063         Reported by Thomas Klausner.
47064
47065         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
47066         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
47067         literal -0.0.
47068         Reported by Jonathan C. Patschke <jp@centtech.com>.
47069
47070 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47071
47072         * lib/glthread/cond.h: Use dummy implementation also if
47073         USE_WIN32_THREADS.
47074
47075 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47076
47077         * modules/fnmatch-posix (License): Change to LGPLv2+.
47078         * modules/fnmatch-gnu (License): Likewise.
47079
47080 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47081
47082         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
47083
47084 2008-09-11  Jim Meyering  <meyering@redhat.com>
47085
47086         * users.txt: Add gtk-vnc.
47087
47088 2008-09-08  Simon Josefsson  <simon@josefsson.org>
47089
47090         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
47091         rotate amounts.
47092
47093         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
47094         required for 16-bit and 8-bit rotates.
47095         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
47096         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
47097         UINT8_MAX instead of hard-coded constants.
47098         Suggested by Paul Eggert.
47099
47100 2008-09-07  Bruno Haible  <bruno@clisp.org>
47101
47102         * tests/test-striconveh.c (main): Check behaviour when converting from
47103         UTF-7.
47104
47105         Make striconveh work better with stateful encodings.
47106         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
47107         that iconv does not increment the inptr when returning -1/EINVAL.
47108
47109 2008-09-07  Bruno Haible  <bruno@clisp.org>
47110
47111         * build-aux/config.rpath: Update according to libtool-2.2.6.
47112         * build-aux/config.libpath: Likewise.
47113
47114 2008-09-06  Bruno Haible  <bruno@clisp.org>
47115
47116         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
47117         * lib/freadptr.c (freadptr): Likewise.
47118         * lib/freadseek.c (freadptrinc): Likewise.
47119         Reported by Simon Josefsson.
47120
47121 2008-09-06  Bruno Haible  <bruno@clisp.org>
47122
47123         * modules/freadptr (License): Change to LGPLv2+.
47124         * modules/freadseek (License): Likewise.
47125         Suggested by Eric Blake.
47126
47127         * modules/memchr2 (License): Change to LGPLv2+.
47128         Approved by Eric Blake.
47129
47130 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47131             Bruno Haible  <bruno@clisp.org>
47132
47133         Make gnulib-tool work with native 'sed' on AIX.
47134         * gnulib-tool (sed_noop): New variable.
47135         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
47136         func_add_or_update, func_create_testdir): Use it to initialize sed
47137         script variables.
47138         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
47139
47140 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
47141             Bruno Haible  <bruno@clisp.org>
47142
47143         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
47144         also works after #include directives.
47145
47146 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
47147
47148         getdate.y: reject an out-of-range timezone value
47149         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
47150         the range [-24...+24].  When specified with only one or two digits,
47151         * tests/test-getdate.c: Tests for the fix.
47152         * doc/getdate.texi: Document this change.
47153
47154 2008-09-03  Bruno Haible  <bruno@clisp.org>
47155
47156         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
47157
47158 2008-09-02  Simon Josefsson  <simon@josefsson.org>
47159
47160         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
47161         <bruce.korb@gmail.com> with ideas from Ben Pfaff
47162         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
47163         Blake <ebb9@byu.net>.
47164
47165         * tests/test-bitrotate.c: Add more test vectors.
47166
47167 2008-09-02  Eric Blake  <ebb9@byu.net>
47168
47169         vasnprintf-posix: handle large precision via %.*d
47170         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
47171         when handling it ourselves.
47172         * tests/test-vasnprintf-posix.c (test_function): Add test.
47173         * tests/test-snprintf-posix.h (test_function): Likewise.
47174         * tests/test-sprintf-posix.h (test_function): Likewise.
47175         * tests/test-vasprintf-posix.c (test_function): Likewise.
47176         Reported by Alain Guibert.
47177
47178 2008-09-01  Eric Blake  <ebb9@byu.net>
47179
47180         c-stack: make configure-time check more robust
47181         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
47182         successful sigaction call.
47183         Reported by Tom G. Christensen.
47184
47185 2008-09-01  Bruno Haible  <bruno@clisp.org>
47186
47187         New module 'findprog-lgpl'.
47188         * modules/findprog-lgpl: New file.
47189         * lib/findprog-lgpl.c: New file.
47190         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
47191         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
47192         to decide whether to use strdup or xstrdup, concatenated_filename or
47193         xconcatenated_filename.
47194
47195 2008-09-01  Bruno Haible  <bruno@clisp.org>
47196
47197         Split module 'concat-filename' into 'concat-filename' (LGPL) and
47198         'xconcat-filename' (GPL).
47199         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
47200         (License): Change to LGPLv2+.
47201         * modules/xconcat-filename: New file.
47202         * lib/concat-filename.h (concatenated_filename): Change specification.
47203         (xconcatenated_filename): New declaration.
47204         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
47205         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
47206         memory situations.
47207         * lib/xconcat-filename.c: New file.
47208         * NEWS: Mention the change.
47209         * lib/findprog.c: Include concat-filename.h, not filename.h.
47210         (find_in_path): Use xconcatenated_filename instead of
47211         concatenated_filename.
47212         * lib/javacomp.c: Include concat-filename.h, not filename.h.
47213         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
47214         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
47215         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
47216         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
47217         instead of concatenated_filename.
47218         * lib/javaexec.c: Include concat-filename.h, not filename.h.
47219         (execute_java_class): Use xconcatenated_filename instead of
47220         concatenated_filename.
47221         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
47222         * modules/javacomp (Depends-on): Likewise.
47223         * modules/javaexec (Depends-on): Likewise.
47224
47225 2008-09-01  Bruno Haible  <bruno@clisp.org>
47226
47227         Split module 'filename' into 'filename' and 'concat-filename'.
47228         * modules/filename: Keep only lib/filename.h.
47229         (License): Change to LGPLv2+.
47230         * modules/concat-filename: New file, extracted from modules/filename.
47231         * lib/filename.h (concatenated_filename): Remove declaration.
47232         * lib/concat-filename.h: New file, extracted from lib/filename.h.
47233         * lib/concat-filename.c: Include concat-filename.h.
47234         * NEWS: Mention the change.
47235
47236 2008-09-01  Simon Josefsson  <simon@josefsson.org>
47237
47238         * lib/bitrotate.h (rotl8, rotr8): Add.
47239
47240         * modules/bitrotate (configure.ac): Need
47241         AC_REQUIRE([AC_C_INLINE]).
47242         (Description): Mention stdint.h.  Reported by Bruno Haible
47243         <bruno@clisp.org>.
47244
47245         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
47246         Paolo Bonzini <bonzini@gnu.org>.
47247
47248 2008-08-31  Bruno Haible  <bruno@clisp.org>
47249
47250         Assume Solaris specific bi-arch conventions on Solaris systems.
47251         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
47252         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
47253         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
47254         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
47255         like acl_libdirstem.
47256         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
47257         acl_libdirstem.
47258         * NEWS: Mention the change.
47259         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
47260
47261 2008-08-31  Jim Meyering  <meyering@redhat.com>
47262
47263         * lib/strftime.h: Add comments describing the two added arguments.
47264
47265         remove duplicate #include directives
47266         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
47267         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
47268
47269 2008-08-31  Bruno Haible  <bruno@clisp.org>
47270
47271         New module 'sigpipe-die'.
47272         * modules/sigpipe-die: New file.
47273         * lib/sigpipe-die.h: New file.
47274         * lib/sigpipe-die.c: New file.
47275         * MODULES.html.sh (Signal handling): Add sigpipe-die.
47276
47277 2008-08-31  Bruno Haible  <bruno@clisp.org>
47278
47279         Don't override previously installed signal handlers.
47280         * lib/fatal-signal.c (saved_sigactions): New variable.
47281         (uninstall_handlers): Reset the signal to the saved handler, not
47282         to SIG_DFL (except when ignored).
47283         (install_handlers): Save the previous handlers.
47284
47285 2008-08-30  Bruno Haible  <bruno@clisp.org>
47286
47287         * gnulib-tool (func_reset_sigpipe): New function.
47288         (func_get_automake_snippet, func_modules_transitive_closure,
47289         func_import): Invoke it before a join command that reads from stdin,
47290         to avoid "echo: write error: Broken pipe" error messages on stderr.
47291         Reported by Sam Steingold <sds@gnu.org>.
47292
47293 2008-08-30  Bruno Haible  <bruno@clisp.org>
47294
47295         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
47296         Code copied from m4/open.m4.
47297         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
47298         access and the filename ends in a slash. Code copied from lib/open.c.
47299         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
47300         * tests/test-fopen.c (main): Check against bug with trailing slash.
47301
47302 2008-08-29  Bruno Haible  <bruno@clisp.org>
47303
47304         Avoid some "gcc -pedantic" warnings.
47305         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
47306         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
47307         * lib/dirent.in.h: Likewise.
47308         * lib/fcntl.in.h: Likewise.
47309         * lib/float.in.h: Likewise.
47310         * lib/iconv.in.h: Likewise.
47311         * lib/inttypes.in.h: Likewise.
47312         * lib/locale.in.h: Likewise.
47313         * lib/math.in.h: Likewise.
47314         * lib/netinet_in.in.h: Likewise.
47315         * lib/search.in.h: Likewise.
47316         * lib/signal.in.h: Likewise.
47317         * lib/stdarg.in.h: Likewise.
47318         * lib/stdint.in.h: Likewise.
47319         * lib/stdio.in.h: Likewise.
47320         * lib/stdlib.in.h: Likewise.
47321         * lib/string.in.h: Likewise.
47322         * lib/strings.in.h: Likewise.
47323         * lib/sys_select.in.h: Likewise.
47324         * lib/sys_socket.in.h: Likewise.
47325         * lib/sys_stat.in.h: Likewise.
47326         * lib/sys_time.in.h: Likewise.
47327         * lib/sysexits.in.h: Likewise.
47328         * lib/time.in.h: Likewise.
47329         * lib/unistd.in.h: Likewise.
47330         * lib/wchar.in.h: Likewise.
47331         * lib/wctype.in.h: Likewise.
47332         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
47333         * modules/fchdir (Makefile.am): Likewise.
47334         * modules/fcntl (Makefile.am): Likewise.
47335         * modules/float (Makefile.am): Likewise.
47336         * modules/iconv_open (Makefile.am): Likewise.
47337         * modules/inttypes (Makefile.am): Likewise.
47338         * modules/locale (Makefile.am): Likewise.
47339         * modules/math (Makefile.am): Likewise.
47340         * modules/netinet_in (Makefile.am): Likewise.
47341         * modules/search (Makefile.am): Likewise.
47342         * modules/signal (Makefile.am): Likewise.
47343         * modules/stdarg (Makefile.am): Likewise.
47344         * modules/stdint (Makefile.am): Likewise.
47345         * modules/stdio (Makefile.am): Likewise.
47346         * modules/stdlib (Makefile.am): Likewise.
47347         * modules/string (Makefile.am): Likewise.
47348         * modules/strings (Makefile.am): Likewise.
47349         * modules/sys_select (Makefile.am): Likewise.
47350         * modules/sys_socket (Makefile.am): Likewise.
47351         * modules/sys_stat (Makefile.am): Likewise.
47352         * modules/sys_time (Makefile.am): Likewise.
47353         * modules/sysexits (Makefile.am): Likewise.
47354         * modules/time (Makefile.am): Likewise.
47355         * modules/unistd (Makefile.am): Likewise.
47356         * modules/wchar (Makefile.am): Likewise.
47357         * modules/wctype (Makefile.am): Likewise.
47358         Reported by Reuben Thomas <rrt@sc3d.org>.
47359
47360 2008-08-29  Bruno Haible  <bruno@clisp.org>
47361
47362         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
47363         any more.
47364
47365 2008-08-29  Simon Josefsson  <simon@josefsson.org>
47366
47367         * MODULES.html.sh (Misc): Add bitrotate.
47368
47369         * modules/bitrotate: New file.
47370
47371         * lib/bitrotate.h: New file.
47372
47373         * modules/bitrotate-tests: New file.
47374
47375         * tests/test-bitrotate.c: New file.
47376
47377         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
47378         on the bitrotate module.
47379
47380         * lib/arctwo.c: Use new bitrotate module.
47381
47382 2008-08-29  Jim Meyering  <meyering@redhat.com>
47383
47384         bootstrap: merge changes from coreutils
47385         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
47386         of copied files.  Remove a kludge, now that this is fixed.
47387         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
47388         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
47389         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
47390
47391 2008-08-29  Bruno Haible  <bruno@clisp.org>
47392
47393         * MODULES.html.sh: Remove --cvs-urls option.
47394
47395 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
47396
47397         maint.mk: adjust to file name change
47398         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
47399
47400 2008-08-28  Jim Meyering  <meyering@redhat.com>
47401
47402         * modules/getndelim2 (License): Relicense to LGPLv2+.
47403         Approved by Richard Stallman for the version of 1995, and by
47404         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
47405
47406 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
47407
47408         * lib/getdelim.c (flockfile, funlockfile): Make all of them
47409         dummy if one is not available.  Do not touch them if
47410         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
47411         (getc_maybe_unlocked): New.
47412         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
47413
47414 2008-08-26  Eric Blake  <ebb9@byu.net>
47415
47416         doc/INSTALL: resync from autoconf
47417         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
47418         (INSTALL_PRELUDE): Delete; this is done more efficiently by
47419         moving...
47420         * install.texi [!autoconf]: ...here.  Resync from autoconf.
47421         * INSTALL: Regenerate.
47422         * INSTALL.ISO: New file.
47423         * INSTALL.UTF-8: Likewise.
47424
47425 2008-08-26  Jim Meyering  <meyering@redhat.com>
47426
47427         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
47428         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
47429         these definitions conditional, so that they may be overridden, too.
47430
47431 2008-08-26  Bruno Haible  <bruno@clisp.org>
47432
47433         Generate INSTALL file variants with prettier quotes.
47434         * doc/Makefile (INSTALL_PRELUDE): New macro.
47435         (INSTALL): Use it.
47436         (INSTALL.ISO, INSTALL.UTF-8): New rules.
47437
47438 2008-08-26  Bruno Haible  <bruno@clisp.org>
47439
47440         Run makeinfo in an English locale.
47441         * doc/Makefile (MAKEINFO): New variable.
47442
47443 2008-08-26  Bruno Haible  <bruno@clisp.org>
47444
47445         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
47446         Suggested by Eric Blake.
47447
47448 2008-08-25  Bruno Haible  <bruno@clisp.org>
47449
47450         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
47451
47452 2008-08-25  Eric Blake  <ebb9@byu.net>
47453
47454         c-stack: test that stack overflow can be caught
47455         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
47456         that platform allows handling stack overflow; at least OS/2 EMX
47457         has sigaltstack, but crashes before transferring control to
47458         handler on stack overflow.
47459         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
47460         check for HAVE_STACK_OVERFLOW_HANDLING.
47461         Reported by Elbert Pol.
47462
47463 2008-08-25  Bruno Haible  <bruno@clisp.org>
47464
47465         * doc/posix-functions/strftime.texi: Fix description of strftime
47466         module.
47467
47468 2008-08-24  Bruno Haible  <bruno@clisp.org>
47469
47470         * tests/uniwidth/test-uc_width2.c: New file.
47471         * tests/uniwidth/test-uc_width2.sh: New file.
47472         * modules/uniwidth/width-tests (Files): Add the new files.
47473         (TESTS): Add uniwidth/test-uc_width2.sh.
47474         (TESTS_ENVIRONMENT): New variable.
47475         (check_PROGRAMS): Add test-uc_width2.
47476         (test_uc_width2_SOURCES): New variable.
47477
47478         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
47479         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
47480         not 0x00AB.
47481         Reported by Alexander V. Lukyanov <lav@netis.ru>.
47482
47483 2008-08-22  Eric Blake  <ebb9@byu.net>
47484
47485         test-lock, test-tls: mention why a test is skipped
47486         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
47487         skipped.
47488         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
47489
47490         count-one-bits: relax license
47491         * modules/count-one-bits (License): Relicense to LGPLv2+.
47492         Suggested by Ludovic Courtès, approved by Ben Pfaff.
47493
47494 2008-08-22  Andreas Schwab  <schwab@suse.de>
47495
47496         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
47497         Remove spurious space in assignment.
47498
47499 2008-08-21  Simon Josefsson  <simon@josefsson.org>
47500
47501         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
47502         Paul Eggert <eggert@CS.UCLA.EDU>.
47503
47504 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
47505
47506         * modules/gettext: Add m4/threadlib.m4.
47507
47508 2008-08-19  Eric Blake  <ebb9@byu.net>
47509
47510         test-c-stack: fix compilation failure on FreeBSD 5.0
47511         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
47512         headers before <sys/resource.h>.
47513         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
47514         the bug.
47515         Reported by Nelson H. F. Beebe.
47516
47517         strverscmp: migrate from "strverscmp.h" to <string.h>
47518         * modules/string (Makefile.am): Add new hooks.
47519         * modules/strverscmp (Files): Remove strverscmp.h.
47520         (Depends-on): Add string.
47521         (configure.ac): Add indicator.
47522         (Include): Mention new header.
47523         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
47524         defaults.
47525         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
47526         results.
47527         * lib/strverscmp.h: Delete.
47528         * lib/string.in.h (strverscmp): Provide declaration, when needed.
47529         * tests/test-strverscmp.c (includes): Adjust client.
47530         * lib/check-version.c (includes): Likewise.
47531         * NEWS: Document the change.
47532
47533         strverscmp: add unit test
47534         * modules/strverscmp-tests: New file.
47535         * tests/test-strverscmp.c: Likewise.
47536
47537 2008-08-19  Simon Josefsson  <simon@josefsson.org>
47538
47539         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
47540         regarding Windows crypto stuff, from Mono.
47541
47542 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
47543
47544         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
47545         if present, for intel RND.  Return error on failures.
47546
47547 2008-08-18  Ben Pfaff  <blp@gnu.org>
47548
47549         gitlog-to-changelog: give better diagnostic for failed pipe-open
47550         * build-aux/gitlog-to-changelog: Improve error message: suggest
47551         that the version of Git may be too old.
47552
47553 2008-08-18  Simon Josefsson  <simon@josefsson.org>
47554
47555         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
47556         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
47557
47558 2008-08-18  Bruno Haible  <bruno@clisp.org>
47559
47560         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
47561         pthread_in_use().
47562
47563 2008-08-18  Bruno Haible  <bruno@clisp.org>
47564
47565         * lib/glthread/threadlib.c: Include <pthread.h>.
47566
47567 2008-08-18  Bruno Haible  <bruno@clisp.org>
47568
47569         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
47570         glthread_recursive_lock_* macros.
47571         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
47572         Fix syntax error.
47573
47574 2008-08-18  Bruno Haible  <bruno@clisp.org>
47575
47576         * lib/glthread/thread.c: Avoid forcing a context switch right after
47577         thread creation.
47578
47579 2008-08-17  Bruno Haible  <bruno@clisp.org>
47580
47581         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
47582         * lib/glthread/thread.h: Provide Win32 specific implementation.
47583         * modules/thread (Files): Add lib/glthread/thread.c.
47584         (Depends-on): Add lock.
47585         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
47586
47587 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47588
47589         New module 'yield'.
47590         * modules/yield: New file.
47591         * lib/glthread/yield.h: New file.
47592         * m4/yield.m4: New file.
47593         * MODULES.html.sh (Multithreading): Add yield.
47594
47595 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47596
47597         New module 'thread'.
47598         * modules/thread: New file.
47599         * lib/glthread/thread.h: New file.
47600         * m4/thread.m4: New file.
47601         * MODULES.html.sh (Multithreading): Add thread.
47602
47603 2008-08-17  Bruno Haible  <bruno@clisp.org>
47604
47605         * lib/glthread/lock.h: Include <stdlib.h> always.
47606         * lib/glthread/tls.h: Likewise.
47607         * lib/glthread/cond.h: Likewise.
47608
47609 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47610
47611         New module 'cond'.
47612         * modules/cond: New file.
47613         * lib/glthread/cond.h: New file.
47614         * lib/glthread/cond.c: New file.
47615         * m4/cond.m4: New file.
47616         * MODULES.html.sh (Multithreading): Add cond.
47617
47618 2008-08-16  Eric Blake  <ebb9@byu.net>
47619
47620         c-stack: fix regression on Irix 5.3 from 2008-06-21
47621         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
47622         sa_sigaction...
47623         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
47624         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
47625         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
47626         * modules/signal (Makefile.am): Use the value.
47627         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
47628         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
47629         * doc/posix-headers/signal.texi (signal.h): Document this
47630         portability issue.
47631         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
47632         Reported by Tom G. Christensen.
47633
47634 2008-08-17  Bruno Haible  <bruno@clisp.org>
47635
47636         New module 'threadlib'.
47637         * modules/threadlib: New file.
47638         * lib/glthread/threadlib.c: New file, extracted from
47639         lib/glthread/lock.c.
47640         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
47641         functions.
47642         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
47643         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
47644         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
47645         macros.
47646         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
47647         (gl_DISABLE_THREADS): Remove macro.
47648         * modules/lock (Files): Remove build-aux/config.rpath.
47649         (Depends-on): Remove havelib. Add threadlib.
47650         (configure.ac-early): Remove section.
47651         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
47652         * modules/tls (Depends-on): Remove lock. Add threadlib.
47653         (Link): New section, copied from threadlib.
47654         * MODULES.html.sh (Multithreading): Add threadlib.
47655
47656 2008-08-14  Bruno Haible  <bruno@clisp.org>
47657
47658         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
47659         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
47660         glthread_rwlock_unlock, glthread_rwlock_destroy,
47661         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
47662         glthread_recursive_lock_destroy): Define as macros always.
47663         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
47664         glthread_lock_lock.
47665         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
47666         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
47667         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
47668         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
47669         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
47670         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
47671         (glthread_recursive_lock_lock_func): Renamed from
47672         glthread_recursive_lock_lock.
47673         (glthread_recursive_lock_unlock_func): Renamed from
47674         glthread_recursive_lock_unlock.
47675         (glthread_recursive_lock_destroy_func): Renamed from
47676         glthread_recursive_lock_destroy.
47677
47678 2008-08-14  Bruno Haible  <bruno@clisp.org>
47679
47680         * lib/glthread/lock.h: Renamed from lib/lock.h.
47681         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
47682         * lib/glthread/tls.h: Renamed from lib/tls.h.
47683         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
47684         * lib/fstrcmp.c: Update includes.
47685         * lib/strsignal.c: Update includes.
47686         * modules/lock (Files, Makefile.am): Update.
47687         (Include): Change to "glthread/lock.h".
47688         * modules/tls (Files, Makefile.am): Update.
47689         (Include): Change to "glthread/tls.h".
47690         * tests/test-lock.c: Update includes.
47691         * tests/test-tls.c: Update includes.
47692         * NEWS: Mention the renamed header files.
47693
47694 2008-08-11  Jim Meyering  <meyering@redhat.com>
47695
47696         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
47697
47698 2008-08-11  Eric Blake  <ebb9@byu.net>
47699
47700         test-c-stack: avoid C99-ism
47701         * tests/test-c-stack.c (main): Fix whitespace, move declaration
47702         before statement.
47703         Reported by Alain Guibert.
47704
47705 2008-08-10  Jim Meyering  <meyering@redhat.com>
47706
47707         ensure that return value of uinttostr et al are not ignored
47708         * lib/inttostr.h (__GNUC_PREREQ): Define.
47709         (__attribute_warn_unused_result__): Define.
47710         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
47711
47712 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
47713
47714         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
47715         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
47716
47717 2008-08-07  Jim Meyering  <meyering@redhat.com>
47718
47719         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
47720
47721         * modules/mkstemp (License): Relicense under LGPLv2+.
47722         * modules/tempname (License): Likewise.
47723
47724 2008-08-06  Bruno Haible  <bruno@clisp.org>
47725
47726         * lib/poll.c (poll): Further micro-optimization.
47727
47728 2008-08-06  Jim Meyering  <meyering@redhat.com>
47729
47730         inet_pton.c: use locale-independent tolower
47731         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
47732         (inet_pton6): Use c_tolower rather than tolower.
47733         * modules/inet_pton (Depends-on): Add c-ctype.
47734
47735 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
47736
47737         * lib/poll.c (poll): Avoid division when timeout is 0, cache
47738         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
47739
47740 2008-08-06  Jim Meyering  <meyering@redhat.com>
47741
47742         * modules/inet_pton (License): Relicense under LGPLv2+.
47743
47744 2008-08-03  Bruno Haible  <bruno@clisp.org>
47745
47746         Additional non-aborting API for lock and tls.
47747         * lib/lock.h: Include <errno.h>.
47748         (glthread_lock_init): New macro/function.
47749         (gl_lock_init): Define as wrapper around glthread_lock_init.
47750         (glthread_lock_lock): New macro/function.
47751         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
47752         (glthread_lock_unlock): New macro/function.
47753         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
47754         (glthread_lock_destroy): New macro/function.
47755         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
47756         (glthread_rwlock_init): New macro/function.
47757         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
47758         (glthread_rwlock_rdlock): New macro/function.
47759         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
47760         (glthread_rwlock_wrlock): New macro/function.
47761         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
47762         (glthread_rwlock_unlock): New macro/function.
47763         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
47764         (glthread_rwlock_destroy): New macro/function.
47765         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
47766         (glthread_recursive_lock_init): New macro/function.
47767         (gl_recursive_lock_init): Define as wrapper around
47768         glthread_recursive_lock_init.
47769         (glthread_recursive_lock_lock): New macro/function.
47770         (gl_recursive_lock_lock): Define as wrapper around
47771         glthread_recursive_lock_lock.
47772         (glthread_recursive_lock_unlock): New macro/function.
47773         (gl_recursive_lock_unlock): Define as wrapper around
47774         glthread_recursive_lock_unlock.
47775         (glthread_recursive_lock_destroy): New macro/function.
47776         (gl_recursive_lock_destroy): Define as wrapper around
47777         glthread_recursive_lock_destroy.
47778         (glthread_once): New macro/function.
47779         (gl_once): Define as wrapper around glthread_once.
47780         Update function declarations.
47781         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
47782         glthread_rwlock_init. Return error code.
47783         (glthread_rwlock_rdlock_multithreaded): Renamed from
47784         glthread_rwlock_rdlock. Return error code.
47785         (glthread_rwlock_wrlock_multithreaded): Renamed from
47786         glthread_rwlock_wrlock. Return error code.
47787         (glthread_rwlock_unlock_multithreaded): Renamed from
47788         glthread_rwlock_unlock. Return error code.
47789         (glthread_rwlock_destroy_multithreaded): Renamed from
47790         glthread_rwlock_destroy. Return error code.
47791         (glthread_recursive_lock_init_multithreaded): Renamed from
47792         glthread_recursive_lock_init. Return error code.
47793         (glthread_recursive_lock_lock_multithreaded): Renamed from
47794         glthread_recursive_lock_lock. Return error code.
47795         (glthread_recursive_lock_unlock_multithreaded): Renamed from
47796         glthread_recursive_lock_unlock. Return error code.
47797         (glthread_recursive_lock_destroy_multithreaded): Renamed from
47798         glthread_recursive_lock_destroy. Return error code.
47799         (glthread_once_call): Make static.
47800         (glthread_once_multithreaded): Renamed from glthread_once.
47801         * lib/tls.h: Include <errno.h>.
47802         (glthread_tls_key_init): New macro/function.
47803         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
47804         (glthread_tls_set): New macro/function.
47805         (gl_tls_set): Define as wrapper around glthread_tls_set.
47806         (glthread_tls_key_destroy): New macro/function.
47807         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
47808         Update function declarations.
47809         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
47810         glthread_tls_get.
47811         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
47812
47813 2008-08-04  Eric Blake  <ebb9@byu.net>
47814
47815         gnumakefile: use space, not TAB, outside of targets
47816         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
47817
47818 2008-08-02  Jim Meyering  <meyering@redhat.com>
47819
47820         getdate.y: avoid locale-dependent date parsing failure
47821         In Turkish locales, getdate would fail to recognize keywords
47822         containing a lowercase "i".  The solution is not to rely on
47823         locale-sensitive case-conversion.
47824         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
47825         (lookup_word): Use c_toupper in place of toupper.
47826         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
47827         Reported by Vefa Bicakci <bicave@superonline.com> in
47828         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
47829         * modules/getdate (Depends-on): Add c-ctype.
47830
47831 2008-08-02  Bruno Haible  <bruno@clisp.org>
47832
47833         * gnulib-tool (func_import): When updating or creating a .gitignore
47834         file, prepend each added line with a slash, and ignore leading slashes
47835         from the existing lines.
47836         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
47837
47838 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47839
47840         Portability fix for GNU make 3.79.1.
47841         * top/GNUmakefile: Avoid 'else COND', which older GNU make
47842         versions do not understand.
47843
47844 2008-08-01  Bruno Haible  <bruno@clisp.org>
47845
47846         Work around bug of HP-UX 10.20 cc with -0.0 literal.
47847         * tests/test-isnanf.h (zero): New variable.
47848         (main): Avoid literal -0.0f.
47849         * tests/test-isnand.h (zero): New variable.
47850         (main): Avoid literal -0.0.
47851         * tests/test-isnanl.h (zero): New variable.
47852         (main): Avoid literal -0.0L.
47853         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
47854         (test_float, test_double, test_long_double): Avoid literals -0.0f,
47855         -0.0, -0.0L.
47856         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
47857         (test_signbitd): Avoid literal -0.0.
47858         (test_signbitl): Avoid literal -0.0L.
47859         * tests/test-ceilf1.c (zero): New variable.
47860         (main): Avoid literal -0.0f.
47861         * tests/test-ceill.c (zero): New variable.
47862         (main): Avoid literal -0.0L.
47863         * tests/test-floorf1.c (zero): New variable.
47864         (main): Avoid literal -0.0f.
47865         * tests/test-floorl.c (zero): New variable.
47866         (main): Avoid literal -0.0L.
47867         * tests/test-roundf1.c (zero): New variable.
47868         (main): Avoid literal -0.0f.
47869         * tests/test-round1.c (zero): New variable.
47870         (main): Avoid literal -0.0.
47871         * tests/test-roundl.c (zero): New variable.
47872         (main): Avoid literal -0.0L.
47873         * tests/test-truncf1.c (zero): New variable.
47874         (main): Avoid literal -0.0f.
47875         * tests/test-trunc1.c (zero): New variable.
47876         (main): Avoid literal -0.0.
47877         * tests/test-truncl.c (zero): New variable.
47878         (main): Avoid literal -0.0L.
47879         * tests/test-frexp.c (zero): New variable.
47880         (main): Avoid literal -0.0.
47881         * tests/test-frexpl.c (zero): New variable.
47882         (main): Avoid literal -0.0L.
47883         * tests/test-ldexpl.c (zero): New variable.
47884         (main): Avoid literal -0.0L.
47885         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
47886         (zerod, zerol): New variables.
47887         (test_function): Avoid literals -0.0, -0.0L.
47888         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
47889         (zerod, zerol): New variables.
47890         (test_function): Avoid literals -0.0, -0.0L.
47891         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
47892         (zerod, zerol): New variables.
47893         (test_function): Avoid literals -0.0, -0.0L.
47894         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
47895         (zerod, zerol): New variables.
47896         (test_function): Avoid literals -0.0, -0.0L.
47897         * tests/test-strtod.c (zero): New variable.
47898         (main): Avoid literal -0.0.
47899         Reported by Jonathan C. Patschke <jp@centtech.com>.
47900
47901 2008-07-31  Jim Meyering  <meyering@redhat.com>
47902
47903         sha256.h: correct definition of SHA224_DIGEST_SIZE
47904         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
47905         Reported by Paulie Pena IV <paulie4@gmail.com>.
47906         Define as 224 / 8, rather than as a literal.
47907         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
47908         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
47909         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
47910
47911 2008-07-31  Bruno Haible  <bruno@clisp.org>
47912
47913         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
47914         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
47915         Reported by Jonathan Patschke <jp@centtech.com>.
47916
47917 2008-07-31  Bruno Haible  <bruno@clisp.org>
47918
47919         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
47920         Reported by Paolo Bonzini <bonzini@gnu.org>.
47921
47922 2008-07-30  Eric Blake  <ebb9@byu.net>
47923
47924         test-strtod: allow compilation without -lm
47925         * tests/test-strtod.c (main): Avoid link dependence on fabs.
47926         Reported by Dennis Clarke <blastwave@gmail.com>.
47927
47928 2008-07-28  Jim Meyering  <meyering@redhat.com>
47929
47930         bootstrap: work also when there are no .po files in po/
47931         * build-aux/bootstrap (update_po_files): Complete the change
47932         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
47933
47934 2008-07-27  Jim Meyering  <meyering@redhat.com>
47935
47936         * users.txt: Add zile.
47937
47938 2008-07-26  Ben Pfaff  <blp@gnu.org>
47939
47940         Add missing dependencies on new m4/exponent[fdl].m4 files.
47941         * modules/isnanf-nolibm: Add m4/exponentf.m4.
47942         * modules/isnand-nolibm: Add m4/exponentd.m4.
47943         * modules/isnanl-nolibm: Add m4/exponentl.m4.
47944         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
47945         m4/isnan[fdl].m4, because the macros actually used moved.
47946         Reported by Jim Meyering.
47947
47948 2008-07-14  Ben Pfaff  <blp@gnu.org>
47949
47950         Add isinf module.
47951         * lib/isinf.c: New file.
47952         * lib/math.in.h: Define isinf macro if we have decided to replace
47953         it.
47954         * m4/isinf.m4: New file.
47955         * m4/math_h.m4: Initialize and substitute variables for isinf
47956         module.
47957         * modules/isinf: New file.
47958         * modules/isinf-tests: New file.
47959         * modules/math: Add substitutions for new module.
47960         * tests/test-isinf.c: New file.
47961         * doc/posix-functions/isinf.texi: Mention new module.
47962         * MODULES.html.sh: Mention new module.
47963
47964 2008-07-14  Ben Pfaff  <blp@gnu.org>
47965
47966         Factor out some macros for use by additional modules.
47967         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
47968         exponentf.m4.
47969         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
47970         exponentd.m4.
47971         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
47972         file exponentl.m4.
47973         * m4/exponentf.m4: New file.
47974         * m4/exponentd.m4: New file.
47975         * m4/exponentl.m4: New file.
47976         * modules/isnanf: Use new file m4/exponentf.m4.
47977         * modules/isnand: Use new file m4/exponentd.m4.
47978         * modules/isnanl: Use new file m4/exponentl.m4.
47979
47980 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
47981
47982         mktime.c: normalize tp->tm_isdst value to -1/0/1.
47983         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
47984         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
47985         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
47986
47987         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
47988         readlink on platforms without PATH_MAX.
47989
47990 2008-07-21  Eric Blake  <ebb9@byu.net>
47991
47992         Warn, not fail, on stale version.
47993         * top/GNUmakefile (_curr-ver): Tone down previous patch.
47994
47995         Don't allow installation with stale devel version number.
47996         * top/GNUmakefile (_is-install-target): New macro.
47997         (_curr-ver): Forbid installation with stale version number.
47998
47999 2008-07-20  Bruno Haible  <bruno@clisp.org>
48000
48001         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
48002         TESTS_ENVIRONMENT.
48003         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
48004
48005 2008-07-20  Bruno Haible  <bruno@clisp.org>
48006
48007         * lib/c-stack.h (c_stack_action): Add documentation.
48008         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
48009
48010 2008-07-20  Bruno Haible  <bruno@clisp.org>
48011
48012         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
48013         * modules/readlink (License): Likewise.
48014
48015 2008-07-17  Eric Blake  <ebb9@byu.net>
48016
48017         * modules/c-stack (Link): Fix typo.
48018
48019         Make c-stack use libsigsegv, when available.
48020         * modules/c-stack (Depends-on): Add libsigsegv.
48021         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
48022         needed.
48023         * lib/c-stack.c (SIGSTKSZ): Define fallback.
48024         (segv_handler, overflow_handler, c_stack_action)
48025         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
48026         implementation when libsigsegv is available, but only when using
48027         the library is necessary.
48028         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
48029         comment, explaining why XSI check fails on Linux.
48030         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
48031         * tests/test-c-stack2.sh: Tweak skip message.
48032         * NEWS: Document new link-time requirements.
48033
48034 2008-07-16  Eric Blake  <ebb9@byu.net>
48035
48036         c-stack: Expose false positives when not using libsigsegv.
48037         * modules/c-stack-tests (Files): Expand test.
48038         * tests/test-c-stack.c (main): Add means to conditionally trigger
48039         non-overflow SIGSEGV.
48040         * tests/test-c-stack2.sh: New file.
48041
48042 2008-07-14  Bruno Haible  <bruno@clisp.org>
48043
48044         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
48045         Reported by Eric Blake.
48046
48047 2008-07-14  Sam Steingold  <sds@gnu.org>
48048             Bruno Haible  <bruno@clisp.org>
48049
48050         New module libsigsegv.
48051         * modules/libsigsegv: New file.
48052         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
48053         modifications.
48054         * MODULES.html.sh (Signal handling): New section.
48055
48056 2008-07-14  Bruno Haible  <bruno@clisp.org>
48057
48058         * modules/unictype/ctype-* (Description): Add the word "function".
48059         Improves the resulting doc in MODULES.html.
48060
48061 2008-07-12  Ben Pfaff  <blp@gnu.org>
48062
48063         Add longlong module.
48064         * modules/longlong: New file.
48065
48066 2008-07-12  Bruno Haible  <bruno@clisp.org>
48067
48068         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
48069         to empty.
48070
48071 2008-07-10  Ben Pfaff  <blp@gnu.org>
48072
48073         Add isnan module.
48074         * doc/posix-functions/isnan.texi: Mention new module.
48075         * lib/math.in.h: Define isnan macro if we have decided to replace
48076         it.
48077         * m4/isnan.m4: New file.
48078         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
48079         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
48080         also.
48081         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
48082         redundancy.
48083         * m4/math_h.m4: Initialize and substitute variables for isnan
48084         module.
48085         * modules/isnan: New file.
48086         * modules/isnan-tests: New file.
48087         * modules/math: Add substitutions for new module.
48088         * tests/test-isnan.c: New file.
48089         * MODULES.html.sh: Mention new module.
48090
48091 2008-07-10  Ben Pfaff  <blp@gnu.org>
48092
48093         Add isnanf module.
48094         * lib/isnanf.m4: New file.
48095         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
48096         (gl_HAVE_ISNANF_IN_LIBM): New macro.
48097         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
48098         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
48099         * modules/isnanf: New file.
48100         * modules/isnanf-tests: New file.
48101         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
48102         files.
48103         * tests/test-isnanf-nolibm.c: factored most of its contents into
48104         new file tests/test-isnanf.h.
48105         * tests/test-isnanf.h: New file.
48106         * tests/test-isnanf.c: New file.
48107         * MODULES.html.sh: Mention new module.
48108         * doc/glibc-functions/isnanf.texi: Mention new module.
48109
48110 2008-07-10  Ben Pfaff  <blp@gnu.org>
48111
48112         Add isnand module.
48113         * lib/isnand.h: New file.
48114         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
48115         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
48116         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
48117         functionality also.
48118         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
48119         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
48120         (gl_HAVE_ISNAND_IN_LIBM): New macro.
48121         * modules/isnand: New file.
48122         * modules/isnand-tests: New file.
48123         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
48124         files.
48125         * tests/test-isnand-nolibm.c: factored most of its contents into
48126         new file tests/test-isnand.h.
48127         * tests/test-isnand.h: New file.
48128         * tests/test-isnand.c: New file.
48129         * MODULES.html.sh: Mention new module.
48130
48131 2008-07-10  Ben Pfaff  <blp@gnu.org>
48132
48133         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
48134         * lib/isnand.h: Rename lib/isnand-nolibm.h.
48135         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
48136         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
48137         * modules/isnanf-nolibm: Update references to renamed files.
48138         * modules/isnand-nolibm: Likewise.
48139         * modules/isnanf-nolibm-tests: Likewise.
48140         * modules/isnand-nolibm-tests: Likewise.
48141         * lib/frexp.c: Likewise.
48142         * lib/isfinite.c: Likewise.
48143         * lib/signbitd.c: Likewise.
48144         * lib/signbitf.c: Likewise.
48145         * lib/vasnprintf.c: Likewise.
48146         * tests/test-ceilf1.c: Likewise.
48147         * tests/test-ceilf2.c: Likewise.
48148         * tests/test-floorf1.c: Likewise.
48149         * tests/test-floorf2.c: Likewise.
48150         * tests/test-frexp.c: Likewise.
48151         * tests/test-round1.c: Likewise.
48152         * tests/test-round2.c: Likewise.
48153         * tests/test-roundf1.c: Likewise.
48154         * tests/test-strtod.c: Likewise.
48155         * tests/test-trunc1.c: Likewise.
48156         * tests/test-trunc2.c: Likewise.
48157         * tests/test-truncf1.c: Likewise.
48158         * tests/test-truncf2.c: Likewise.
48159         * NEWS: Mention the renamed header files.
48160
48161 2008-07-11  Jim Meyering  <meyering@redhat.com>
48162
48163         vc-list-files: make the last-resort awk code more portable
48164         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
48165         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
48166         does not support it.
48167
48168 2008-07-10  Eric Blake  <ebb9@byu.net>
48169
48170         Work with tar's bootstrap.
48171         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
48172         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
48173         an m4 comment.
48174
48175 2008-07-09  Jim Meyering  <meyering@redhat.com>
48176
48177         posix-shell.m4: fix typo that made this test malfunction
48178         * m4/posix-shell.m4: Remove capitalization in variable name.
48179
48180 2008-07-08  Bruno Haible  <bruno@clisp.org>
48181
48182         * m4/onceonly.m4: Update comments.
48183         Reported by Ben Pfaff <blp@cs.stanford.edu>.
48184
48185 2008-07-04  Jim Meyering  <meyering@redhat.com>
48186
48187         * users.txt: Add vc-dwim.
48188         (bison, coreutils): Use the gitweb URL.
48189
48190 2008-07-03  Jim Meyering  <meyering@redhat.com>
48191
48192         * users.txt: Add libffcall.  From Sam Steingold.
48193
48194 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
48195
48196         getdate.y: do not ignore TZ with relative day, month or year offset
48197         * lib/getdate.y (get_date): Move the tz-handling block to follow the
48198         relative-date-handling, since otherwise, the latter would clobber the
48199         sole output (an updated Start value) of the tz-handling block.
48200         * tests/test-getdate.c: Tests for the fix
48201
48202 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48203
48204         Recognize 'foo_LIBRARIES += libgnu.a'.
48205         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
48206         makefile snippet has already specified an installation location,
48207         also using '+='.
48208
48209 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
48210
48211         getdate.y: factor out common actions
48212         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
48213         Use them in place of open-coded actions.
48214
48215 2008-07-01  Simon Josefsson  <simon@josefsson.org>
48216
48217         Add self-test for getdate module.
48218         * modules/getdate-tests: New file.
48219         * tests/test-getdate.c: New file.
48220
48221 2008-06-29  Bruno Haible  <bruno@clisp.org>
48222
48223         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
48224         .gitignore.
48225         Reported by Sylvain Beucler <beuc@beuc.net>.
48226
48227 2008-06-29  Bruno Haible  <bruno@clisp.org>
48228
48229         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
48230         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
48231
48232 2008-06-29  Bruno Haible  <bruno@clisp.org>
48233
48234         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
48235         EXTRA_DIST.
48236         Reported by Sylvain Beucler <beuc@beuc.net>.
48237
48238 2008-06-26  Jim Meyering  <meyering@redhat.com>
48239
48240         make several modules depend on the "open" module
48241         This provides slightly increased consistency when opening-for-write
48242         the name of a non-directory spelled with a trailing slash.
48243         * modules/chdir-safer: Likewise.
48244         * modules/chown: Likewise.
48245         * modules/clean-temp: Likewise.
48246         * modules/copy-file: Likewise.
48247         * modules/fchdir: Likewise.
48248         * modules/fcntl-safer: Likewise.
48249         * modules/pipe: Likewise.
48250         * modules/utime: Likewise.
48251         Prompted by Eric Blake and Bruno Haible.
48252
48253 2008-06-24  Andreas Schwab  <schwab@suse.de>
48254
48255         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
48256         literals can be used as initializers for global variables.
48257
48258 2008-06-23  Eric Blake  <ebb9@byu.net>
48259
48260         Make gnulib-cache.m4 easier to diff.
48261         * gnulib-tool (func_import): Allow newlines when reading cached
48262         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
48263
48264 2008-06-23  Bruno Haible  <bruno@clisp.org>
48265
48266         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
48267         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
48268         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
48269         m4/signalblocking.m4.
48270         (gl_PREREQ_SIGACTION): Don't invoke it.
48271         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
48272         gl_PREREQ_SIG_HANDLER_H.
48273         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
48274         Don't check for sigaction here.
48275
48276 2008-06-23  Bruno Haible  <bruno@clisp.org>
48277
48278         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
48279         (install_handlers): Don't set the SA_RESETHAND flag.
48280
48281 2008-06-23  Bruno Haible  <bruno@clisp.org>
48282
48283         * m4/sigaction.m4: Comment fixes.
48284         * lib/signal.in.h: Likewise.
48285
48286 2008-06-23  Eric Blake  <ebb9@byu.net>
48287
48288         Fix typo.
48289         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
48290
48291         Avoid SA_ namespace.
48292         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
48293         Reported by Ralf Wildenhues.
48294
48295         Avoid test failure due to SA_RESTORER.
48296         * tests/test-sigaction.c (SA_MASK): New macro.
48297         (main): Avoid failing due to extension flags being set.
48298         Reported by Jim Meyering.
48299
48300         Revert use of sig-handler.h in sigprocmask.c.
48301         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
48302         it requires the existence of struct sigaction.
48303         * lib/sigprocmask.c (handler_t): Restore typedef.
48304         (rpl_signal, old_handlers): Use local type.
48305
48306 2008-06-22  Bruno Haible  <bruno@clisp.org>
48307
48308         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
48309         conditionally.
48310         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
48311
48312 2008-06-22  Bruno Haible  <bruno@clisp.org>
48313
48314         * doc/posix-functions/siginterrupt.texi: Move note.
48315
48316         * lib/signal.in.h (SA_RESTART): New macro.
48317         * lib/sigaction.c: Update comment.
48318
48319         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
48320
48321         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
48322         (gl_PREREQ_SIGPROCMASK): Invoke it.
48323         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
48324
48325         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
48326
48327         * lib/sigprocmask.c: Update a comment.
48328
48329 2008-06-21  Eric Blake  <ebb9@byu.net>
48330
48331         Use sigaction module rather than signal().
48332         * modules/c-stack (Depends-on): Add sigaction.
48333         * modules/fatal-signal (Depends-on): Likewise.
48334         * modules/nanosleep (Depends-on): Likewise.
48335         * modules/sigprocmask (Files): Add sig-handler.h.
48336         * modules/sigaction (Files): Likewise.
48337         * lib/sig-handler.h (get_handler): New file, suggested by Paul
48338         Eggert.
48339         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
48340         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
48341         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
48342         (init_fatal_signals): Likewise.
48343         * lib/nanosleep.c (rpl_nanosleep): Likewise.
48344         (siginterrupt): Delete fallback.
48345         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
48346         instead.
48347         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
48348         siginterrupt.
48349
48350         New module sigaction, for mingw.
48351         * modules/sigaction: New module...
48352         * modules/sigaction-tests: ...and its test.
48353         * m4/sigaction.m4: New file.
48354         * lib/sigaction.c: Likewise.
48355         * tests/test-sigaction.c: Likewise.
48356         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
48357         * modules/signal (Makefile.am): Likewise.
48358         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
48359         needed.
48360         * doc/posix-headers/signal.texi (signal.h): Mention provided
48361         types.
48362         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
48363         that sigaction is preferable.
48364         * doc/posix-functions/sigaction.texi (sigaction): Mention new
48365         module.
48366         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
48367         sigaction.
48368
48369         Improve robustness of sigprocmask by overriding signal.
48370         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
48371         is in use.
48372         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
48373         (SIGKILL, SIGSTOP): Provide fallbacks.
48374         (rpl_signal): Implement.
48375         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
48376         signal can be called inside handlers.
48377
48378         Fix nanosleep module on mingw.
48379         * modules/nanosleep (Depends-on): Add sys_select.
48380         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
48381
48382         Fix licensing of sigprocmask.
48383         * modules/raise (License): Relicense as LGPL.
48384
48385 2008-06-21  Bruno Haible  <bruno@clisp.org>
48386
48387         * lib/propername.c (proper_name_utf8): Don't use the transliterated
48388         result if it contains question marks.
48389         Reported by Michael Geng <linux@michaelgeng.de>.
48390
48391 2008-06-19  Bruno Haible  <bruno@clisp.org>
48392
48393         Fix CVS-ism.
48394         * doc/gnulib.texi: Include updated-stamp.texi.
48395         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
48396         (updated-stamp.texi): New rule.
48397         (gnulib.info): Depend on it.
48398         * doc/.gitignore: Add updated-stamp.texi.
48399         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
48400
48401 2008-06-19  Bruno Haible  <bruno@clisp.org>
48402
48403         * doc/Makefile (gnulib.info): Update and simplify dependencies.
48404         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
48405
48406 2008-06-19  Eric Blake  <ebb9@byu.net>
48407
48408         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
48409         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
48410         Reported by Stepan Kasal.
48411
48412 2008-06-18  Bruno Haible  <bruno@clisp.org>
48413
48414         * lib/fatal-signal.c (init_fatal_signals): Add comment.
48415         Reported by Eric Blake.
48416
48417 2008-06-18  Eric Blake  <ebb9@byu.net>
48418
48419         Work around cygwin 1.5.25 strsignal bug.
48420         * tests/test-strsignal.c: Allow for const char *.
48421         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
48422
48423 2008-06-18  Simon Josefsson  <simon@josefsson.org>
48424
48425         * users.txt: Update URL to article and add author/date
48426         information.
48427
48428 2008-06-17  Bruno Haible  <bruno@clisp.org>
48429
48430         New macro gl_DISABLE_THREADS.
48431         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
48432         if the user did not pass --enable-threads or --disable-threads option.
48433         (gl_DISABLE_THREADS): New macro.
48434         Reported by Eric Blake <ebb9@byu.net>.
48435
48436 2008-06-17  Bruno Haible  <bruno@clisp.org>
48437
48438         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
48439         when the macro ignores it.
48440         Based on a patch by Eric Blake <ebb9@byu.net>.
48441
48442 2008-06-17  Bruno Haible  <bruno@clisp.org>
48443
48444         * modules/tls (License): Change to LGPLv2+.
48445         Reported by Eric Blake.
48446
48447 2008-06-17  Eric Blake  <ebb9@byu.net>
48448
48449         Simplify c-stack prerequisites.
48450         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
48451         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
48452         no longer requires <ucontext.h> to exist.  Optimize setrlimit
48453         check.
48454         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
48455         <sys/resource.h>.
48456
48457         Move c-stack test into testsuite.
48458         * modules/c-stack-tests: New file.
48459         * lib/c-stack.c [DEBUG]: Move test program...
48460         * tests/test-c-stack.c: ...into this new file.  Skip rather than
48461         fail test if sigaltstack is lacking.
48462         * tests/test-c-stack.sh: New driver file.
48463
48464 2008-06-16  Eric Blake  <ebb9@byu.net>
48465
48466         Use raise module consistently.
48467         * modules/fatal-signal (Depends-on): Add raise.
48468         * modules/sigprocmask (Depends-on): Likewise.
48469         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
48470         * lib/sigprocmask.c (sigprocmask): Likewise.
48471         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
48472         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
48473
48474         Fix compliance bug in sigpending.
48475         * lib/sigprocmask.c (sigpending): Return pending array via
48476         parameter, not return value.
48477
48478 2008-06-14  Eric Blake  <ebb9@byu.net>
48479
48480         Improve obstack-printf test code.
48481         * tests/test-obstack-printf.c (test_function): Fix comment, and
48482         simplify usage of obstack_* in macros.  Add a test for coverage.
48483         Reported by Bruno Haible.
48484
48485 2008-06-14  Bruno Haible  <bruno@clisp.org>
48486
48487         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
48488         array size as a constant, not as a const variable.
48489         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
48490         AC_USE_SYSTEM_EXTENSIONS.
48491         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
48492         Test whether the obstack_printf function actually exists.
48493         * modules/obstack-printf (Depends-on): Add extensions.
48494         (Include): Remove obstack.h.
48495         * modules/obstack-printf-posix (Depends-on): Add extensions.
48496         (Include): Remove obstack.h.
48497
48498 2008-06-13  Eric Blake  <ebb9@byu.net>
48499
48500         Add obstack-printf and obstack-printf-posix modules.
48501         * modules/obstack-printf: New file.
48502         * modules/obstack-printf-posix: Likewise.
48503         * MODULES.html.sh (Misc): Mention them.
48504         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
48505         Likewise.
48506         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
48507         Likewise.
48508         * modules/stdio (Makefile.am): Accomodate new modules.
48509         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
48510         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
48511         Declare.
48512         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
48513         functions.
48514         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
48515         (gl_REPLACE_OBSTACK_PRINTF): New macros
48516         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
48517         * tests/test-obstack-printf.c: New file.
48518         * modules/obstack-printf-tests: Likewise.
48519         * modules/obstack-printf-posix-tests: Likewise.
48520
48521 2008-06-11  Bruno Haible  <bruno@clisp.org>
48522
48523         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
48524         * lib/open.c: Include errno.h.
48525         (open): Fail when attempting to write to a file that has a trailing
48526         slash.
48527         * tests/test-open.c (main): Test against trailing slash bug.
48528         * doc/posix-functions/open.texi: Mention the trailing slash bug.
48529
48530 2008-06-10  Bruno Haible  <bruno@clisp.org>
48531
48532         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
48533         for $? to work inside the trap command, with various /bin/sh-s.
48534         * tests/test-vc-list-files-cvs.sh: Likewise.
48535
48536 2008-06-10  Bruno Haible  <bruno@clisp.org>
48537
48538         * lib/acl-internal.h: Don't include gettext.h here.
48539         * lib/set-mode-acl.c: Include gettext.h here.
48540         * lib/copy-acl.c: Likewise.
48541
48542 2008-06-10  Bruno Haible  <bruno@clisp.org>
48543
48544         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
48545         * lib/wait-process.c (wait_subprocess): Likewise.
48546         * lib/execute.h (execute): Add termsigp argument.
48547         * lib/execute.c (execute): Likewise.
48548         * lib/csharpcomp.c (compile_csharp_using_pnet,
48549         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
48550         * lib/csharpexec.c (execute_csharp_using_pnet,
48551         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
48552         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
48553         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
48554         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
48555         is_jikes_present): Update.
48556         * lib/javaexec.c (execute_java_class): Update.
48557         * lib/javaversion.c (execute_and_read_line): Update.
48558         * NEWS: Document the changes.
48559         Reported by Eric Blake.
48560
48561 2008-06-10  Eric Blake  <ebb9@byu.net>
48562
48563         Add missing include.
48564         * tests/test-strstr.c (includes): Add <signal.h>.
48565         * tests/test-strcasestr.c (includes): Likewise.
48566         * tests/test-memmem.c (includes): Likewise.
48567
48568 2008-06-10  Bruno Haible  <bruno@clisp.org>
48569
48570         * lib/wait-process.c (wait_subprocess): Add an assertion.
48571
48572 2008-06-10  Bruno Haible  <bruno@clisp.org>
48573
48574         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
48575
48576 2008-06-10  Bruno Haible  <bruno@clisp.org>
48577
48578         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
48579         using alarm().
48580         * tests/test-strcasestr.c (main): Likewise.
48581         * tests/test-strstr.c (main): Likewise.
48582
48583 2008-06-09  Bruno Haible  <bruno@clisp.org>
48584
48585         Work around the Solaris 10 ACE ACLs ABI change.
48586         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
48587         declare if ACL_NO_TRIVIAL is present.
48588         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
48589         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
48590         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
48591         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
48592         define if ACL_NO_TRIVIAL is present.
48593         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
48594         and use the current ABI.
48595         (file_has_acl): Use same #if condition as elsewhere.
48596         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
48597         in use, and use the current ABI.
48598         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
48599         Reported by Jim Meyering.
48600
48601 2008-06-09  Eric Blake  <ebb9@byu.net>
48602
48603         Work around environments that (stupidly) ignore SIGALRM.
48604         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
48605         before using alarm().
48606         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
48607         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
48608         Reported by Ian Beckwith <ianb@erislabs.net>.
48609
48610         Produce autobuild blurb earlier in log.
48611         * modules/autobuild (configure.ac-early): Move AB_INIT here.
48612
48613 2008-06-09  Jim Meyering  <meyering@redhat.com>
48614         and OndÅ™ej Vašík  <ovasik@redhat.com>
48615
48616         utimens.c: correct kernel bug work-around
48617         OndÅ™ej Vašík found that the invalid return value of 280 indicates
48618         failure, not success, and the kernel bug we're trying to work
48619         around affects not just the utimensat call, but also the fallback
48620         futimens call.
48621         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
48622         not success.
48623         [HAVE_FUTIMENS]: Use the same work-around, here.
48624
48625 2008-06-09  Jim Meyering  <meyering@redhat.com>
48626
48627         add more guards around definition of ACE_-related code
48628         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
48629         ALLOW and ACE_OWNER are also defined.
48630
48631 2008-06-08  Bruno Haible  <bruno@clisp.org>
48632
48633         * lib/acl-internal.h: Add me as co-author.
48634         * lib/file-has-acl.c: Likewise.
48635         * lib/set-mode-acl.c: Likewise.
48636         * lib/copy-acl.c: Likewise.
48637
48638 2008-06-08  Bruno Haible  <bruno@clisp.org>
48639
48640         Add support for AIX ACLs.
48641         * lib/acl-internal.h (acl_nontrivial): New declaration.
48642         * lib/file-has-acl.c (acl_nontrivial): New function.
48643         (file_has_acl): Add implementation using AIX 4 ACL API.
48644         * lib/set-mode-acl.c (qset_acl): Likewise.
48645         * lib/copy-acl.c (qcopy_acl): Likewise.
48646
48647 2008-06-08  Bruno Haible  <bruno@clisp.org>
48648
48649         Add support for HP-UX ACLs.
48650         * lib/acl-internal.h (acl_nontrivial): New declaration.
48651         * lib/file-has-acl.c (acl_nontrivial): New function.
48652         (file_has_acl): Add implementation using HP-UX 11 ACL API.
48653         * lib/set-mode-acl.c (qset_acl): Likewise.
48654         * lib/copy-acl.c (qcopy_acl): Likewise.
48655
48656 2008-06-08  Bruno Haible  <bruno@clisp.org>
48657
48658         Add support for Cygwin ACLs.
48659         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
48660         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
48661         the chmod_or_fchmod call.
48662         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
48663
48664 2008-06-08  Bruno Haible  <bruno@clisp.org>
48665
48666         Fix bug with setuid modes in Solaris 10+ code.
48667         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
48668         succeeded, when the mode contains some special bits.
48669
48670 2008-06-08  Bruno Haible  <bruno@clisp.org>
48671
48672         Add support for Solaris 7..10 ACLs.
48673         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
48674         declarations.
48675         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
48676         functions.
48677         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
48678         * lib/set-mode-acl.c (qset_acl): Likewise.
48679         * lib/copy-acl.c (qcopy_acl): Likewise.
48680
48681 2008-06-08  Bruno Haible  <bruno@clisp.org>
48682
48683         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
48684         declaration.
48685         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
48686         (acl_access_nontrivial): Remove MacOS X case.
48687         (file_has_acl): Use acl_extended_nontrivial.
48688         * lib/copy-acl.c (qcopy_acl): Likewise.
48689
48690 2008-06-08  Bruno Haible  <bruno@clisp.org>
48691
48692         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
48693
48694 2008-06-08  Jim Meyering  <meyering@redhat.com>
48695
48696         * modules/acl (Maintainer): Add Bruno Haible.
48697
48698 2008-06-07  Bruno Haible  <bruno@clisp.org>
48699
48700         Improve support for Tru64 ACLs.
48701         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
48702         ACL on OSF/1.
48703
48704 2008-06-07  Bruno Haible  <bruno@clisp.org>
48705
48706         Add support for MacOS X ACLs.
48707         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
48708         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
48709         * lib/set-mode-acl.c (qset_acl): Likewise.
48710         * lib/copy-acl.c (qcopy_acl): Likewise.
48711
48712 2008-06-07  Bruno Haible  <bruno@clisp.org>
48713
48714         Fix memory leak introduced on 2008-05-22.
48715         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
48716         use.
48717
48718 2008-06-07  Bruno Haible  <bruno@clisp.org>
48719
48720         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
48721         to construct an empty ACL.
48722
48723 2008-06-07  Bruno Haible  <bruno@clisp.org>
48724
48725         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
48726         precisely.
48727         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
48728
48729 2008-06-07  Bruno Haible  <bruno@clisp.org>
48730
48731         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
48732         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
48733
48734 2008-06-07  Bruno Haible  <bruno@clisp.org>
48735
48736         * doc/posix-functions/_setjmp.texi: Explain the use of this function
48737         regardless of POSIX.
48738         * doc/posix-functions/_longjmp.texi: Likewise.
48739         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
48740         SystemV platform in this case.
48741
48742 2008-06-06  Eric Blake  <ebb9@byu.net>
48743
48744         Document abort() bugs.
48745         * doc/posix-functions/abort.texi (abort): Mention anomalies.
48746
48747         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
48748         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
48749         sigsetjmp.
48750         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
48751         siglongjmp, but only as a macro.
48752         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
48753         is obsolete.
48754         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
48755
48756         Tweak documentation to cover cygwin argz bugs.
48757         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
48758         argz bug fix; no code change needed since no cygwin releases
48759         occurred between the last fix and the bug being tested.
48760         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
48761         module and recently fixed cygwin bugs.
48762         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
48763         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
48764         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
48765         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
48766         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
48767         Likewise.
48768         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
48769         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
48770         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
48771         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
48772         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
48773         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
48774         Likewise.
48775
48776         Avoid gcc warning on cygwin.
48777         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
48778         !ACL_NO_TRIVIAL]: Avoid unused variable.
48779
48780 2008-06-05  Eric Blake  <ebb9@byu.net>
48781
48782         Be tolerant of UNKNOWN version in gnulib-tool test dir.
48783         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
48784         git-version-gen fails to come up with a version.
48785         Reported by Simon Josefsson.
48786
48787 2008-06-05  Jim Meyering  <meyering@redhat.com>
48788             Paul Eggert  <eggert@cs.ucla.edu>
48789
48790         utimens.c: work around a probable Linux kernel bug
48791         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
48792         appears to be a kernel bug that causes utimensat to return 280
48793         instead of 0, indicating success.
48794
48795 2008-06-04  Bruno Haible  <bruno@clisp.org>
48796
48797         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
48798         2008-06-01 commit.
48799
48800 2008-06-04  Bruno Haible  <bruno@clisp.org>
48801
48802         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
48803         * lib/file-has-acl.c (acl_access_nontrivial): New function.
48804         (file_has_acl): Use it. Save errno afterwards.
48805         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
48806
48807 2008-06-03  Bruno Haible  <bruno@clisp.org>
48808
48809         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
48810         draft code. Simplify #ifs.
48811         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
48812         Put Solaris code after POSIX-draft code. Fix comments regarding
48813         Solaris 10, HP-UX. Mention Cygwin.
48814         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
48815
48816 2008-06-03  Eric Blake  <ebb9@byu.net>
48817
48818         Provide fallback for older kernels.
48819         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
48820         Provide runtime fallback if kernel lacks support.
48821         Reported by Mike Frysinger.
48822
48823 2008-06-02  Bruno Haible  <bruno@clisp.org>
48824
48825         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
48826         it exists.
48827
48828 2008-06-02  Bruno Haible  <bruno@clisp.org>
48829
48830         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
48831         * lib/copy-acl.c (qcopy_acl): Update comment.
48832
48833 2008-06-02  Bruno Haible  <bruno@clisp.org>
48834
48835         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
48836         like ACL APIs.
48837
48838 2008-06-02  Bruno Haible  <bruno@clisp.org>
48839
48840         * tests/test-file-has-acl.sh: Use different code for Cygwin.
48841         * tests/test-set-mode-acl.sh: Likewise.
48842         * tests/test-copy-acl.sh: Likewise.
48843         * tests/test-copy-file.sh: Likewise.
48844
48845 2008-06-02  Bruno Haible  <bruno@clisp.org>
48846
48847         * tests/test-file-has-acl.sh: Remove unused code.
48848
48849 2008-06-01  Bruno Haible  <bruno@clisp.org>
48850
48851         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
48852         (copy_acl): Just a wrapper around qcopy_acl that emits the error
48853         messages.
48854         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
48855
48856 2008-06-01  Bruno Haible  <bruno@clisp.org>
48857
48858         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
48859         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
48860         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
48861         APIs.
48862         * modules/acl-tests (configure.ac): Remove tests now contained in
48863         m4/acl.m4.
48864
48865 2008-06-02  Jim Meyering  <meyering@redhat.com>
48866
48867         announce-gen: use a better key-server host name
48868         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
48869         it may be more consistently reliable.  Suggested by Werner Koch
48870         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
48871
48872 2008-06-01  Bruno Haible  <bruno@clisp.org>
48873
48874         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
48875         Reported by Voroskoi Andras <voroskoi@gmail.com>.
48876
48877 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
48878
48879         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
48880
48881 2008-06-01  Bruno Haible  <bruno@clisp.org>
48882
48883         New ACL tests.
48884         * tests/test-file-has-acl.sh: New file.
48885         * tests/test-file-has-acl.c: New file.
48886         * tests/test-set-mode-acl.sh: New file.
48887         * tests/test-set-mode-acl.c: New file.
48888         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
48889         * tests/test-copy-acl.c: New file.
48890         * modules/acl-tests: New file, based on modules/copy-file-tests.
48891         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
48892         (Depends-on): Add acl-tests.
48893         (configure.ac): Remove checks.
48894         (Makefile.am): Don't create test-sameacls program here any more.
48895
48896 2008-06-01  Bruno Haible  <bruno@clisp.org>
48897
48898         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
48899         * tests/test-sameacls.c: Include progname.h.
48900         (main): Invoke set_program_name. Portability fixes for MacOS X,
48901         Solaris, HP-UX.
48902
48903 2008-06-01  Bruno Haible  <bruno@clisp.org>
48904
48905         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
48906         function.
48907         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
48908
48909 2008-06-01  Bruno Haible  <bruno@clisp.org>
48910
48911         * modules/rpmatch (Depends-on): Add strdup.
48912
48913 2008-06-01  Bruno Haible  <bruno@clisp.org>
48914
48915         * lib/pipe.c: Include unistd-safer.h.
48916         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
48917         * modules/pipe (Depends-on): Add unistd-safer.
48918
48919 2008-05-30  Simon Josefsson  <simon@josefsson.org>
48920
48921         * modules/autobuild (configure.ac): Call AB_INIT.
48922
48923 2008-05-30  Simon Josefsson  <simon@josefsson.org>
48924
48925         * tests/test-getaddrinfo.c: Don't print debug messages by default.
48926         Suggested by Bruno Haible <bruno@clisp.org>.
48927
48928 2008-05-30  Simon Josefsson  <simon@josefsson.org>
48929
48930         * tests/test-base64.c: Cast size_t to unsigned long when invoking
48931         printf.  Use %lu instead of %d.  Reported by Bruno Haible
48932         <bruno@clisp.org>.
48933
48934 2008-05-29  Eric Blake  <ebb9@byu.net>
48935
48936         Prefer new POSIX 200x interfaces over futimesat.
48937         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
48938         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
48939         when available.
48940         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
48941
48942 2008-05-28  Bruno Haible  <bruno@clisp.org>
48943
48944         * modules/stpcpy (License): Change to LGPLv2+.
48945         Requested by David Lutterkort <dlutter@redhat.com>.
48946
48947 2008-05-27  Bruno Haible  <bruno@clisp.org>
48948
48949         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
48950         current mingw.
48951         Reported by Jose E. Marchesi <jemarch@gnu.org>.
48952
48953 2008-05-27  Bruno Haible  <bruno@clisp.org>
48954
48955         * modules/iconv_open (Link): New section, from module 'iconv'.
48956         * modules/striconv (Link): Likewise.
48957         * modules/striconveh (Link): Likewise.
48958         * modules/xstriconv (Link): Likewise.
48959         * modules/unicodeio (Link): Likewise.
48960         * modules/propername (Link): Likewise.
48961         Reported by Jim Meyering.
48962
48963 2008-05-26  Jim Meyering  <meyering@redhat.com>
48964
48965         sha256: do not artificially restrict buffer length to be < 2^32
48966         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
48967         uint32_t to size_t.
48968         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
48969         to match.
48970
48971         avoid unaligned access errors, e.g., on sparc
48972         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
48973         direct access through a possibly-unaligned uint64* pointer.
48974         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
48975         direct access through a possibly-unaligned uint32* pointer.
48976         Prompted by this patch from Tom "spot" Callaway:
48977         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
48978
48979         sha512.c: fix typo in comment
48980         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
48981
48982 2008-05-25  Bruno Haible  <bruno@clisp.org>
48983
48984         * lib/set-mode-acl.c: Renamed from lib/acl.c.
48985         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
48986         (Makefile.am): Update lib_SOURCES.
48987
48988 2008-05-25  Bruno Haible  <bruno@clisp.org>
48989
48990         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
48991
48992 2008-05-25  Jim Meyering  <meyering@redhat.com>
48993
48994         useless-if-before-free: freed expr may have white-space differences
48995         * build-aux/useless-if-before-free: Recognize cases in which the
48996         freed expression differs from the tested one in embedded white
48997         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
48998         $1 was used, so we can't make any regexp shy.  Improved tests now
48999         detect this.
49000
49001         useless-if-before-free: accept white space in the expression.
49002         * build-aux/useless-if-before-free: For now, any white space
49003         in the expression must be identical in the free argument.
49004
49005         useless-if-before-free: efficiency tweak
49006         * build-aux/useless-if-before-free: Make the expression-matching
49007         regexp "shy".
49008         Make the *outer* regexp shy, not the expr-matching one.
49009
49010         update code-in-comment to accept cast of free arg
49011         * build-aux/useless-if-before-free: Update regexp.
49012
49013 2008-05-25  Bruno Haible  <bruno@clisp.org>
49014
49015         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
49016         * modules/copy-file-tests (Files, Makefile.am): Update.
49017         * tests/test-copy-file.c (func_test_copy): Update.
49018
49019 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
49020
49021         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
49022
49023 2008-05-23  Bruno Haible  <bruno@clisp.org>
49024
49025         Improve support for ACLs on OSF/1.
49026         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
49027         Remove fallback for unknown flavors of ACLs.
49028
49029 2008-05-22  Bruno Haible  <bruno@clisp.org>
49030
49031         Add support for ACLs on OSF/1.
49032         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
49033         replacements.
49034         (acl_free_text): New macro fallback.
49035         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
49036         acl_free.
49037         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
49038         acl_free_text function. Require AC_C_INLINE.
49039
49040 2008-05-22  Bruno Haible  <bruno@clisp.org>
49041
49042         Make copy_acl work on MacOS X 10.5.
49043         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
49044         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
49045         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
49046         If MODE_INSIDE_ACL, don't assume that every system has the same text
49047         representation for ACLs as FreeBSD.
49048         * lib/copy-acl.c (copy_acl): Add support for platforms with
49049         !MODE_INSIDE_ACL.
49050         * lib/file-has-acl.c (file_has_acl): Likewise.
49051         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
49052         FreeBSD, MacOS X, or IRIX, respectively.
49053
49054 2008-05-22  Bruno Haible  <bruno@clisp.org>
49055
49056         * lib/acl.h: Don't include <sys/acl.h>.
49057         (GETACLCNT): Move fallback to lib/acl-internal.h.
49058         * lib/acl-internal.h: Include <sys/acl.h> here.
49059         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
49060
49061 2008-05-22  Bruno Haible  <bruno@clisp.org>
49062
49063         Split off copy_acl function to separate file.
49064         * lib/copy-acl.c: New file, extracted from lib/acl.c.
49065         * lib/acl.c (copy_acl): Moved function to separate file.
49066         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
49067         * modules/acl (Files): Add lib/copy-acl.c.
49068         (Makefiles.am): Augment lib_SOURCES.
49069
49070 2008-05-22  Bruno Haible  <bruno@clisp.org>
49071
49072         * modules/copy-file-tests: New file.
49073         * tests/test-copy-file.sh: New file.
49074         * tests/test-copy-file.c: New file.
49075         * tests/test-copy-file-sameacls.c: New file.
49076
49077 2008-05-22  Eric Blake  <ebb9@byu.net>
49078
49079         Avoid gcc warning.
49080         * tests/test-memcmp.c (main): Pass NULL indirectly.
49081
49082 2008-05-21  Bruno Haible  <bruno@clisp.org>
49083
49084         Add reference doc about ACLs.
49085         * doc/acl-resources.txt: New file.
49086         * doc/acl-cygwin.txt: New file.
49087
49088 2008-05-21  Bruno Haible  <bruno@clisp.org>
49089
49090         Avoid one more warning from gcc.
49091         * lib/vasnprintf.c (IF_LINT): Update comments.
49092         (VASNPRINTF): Use it also for the 'prefix' array initializer.
49093
49094 2008-05-21  Jim Meyering  <meyering@redhat.com>
49095
49096         avoid a warning from gcc
49097         * lib/vasnprintf.c (IF_LINT): Define.
49098         (scale10_round_decimal_long_double):
49099         Use it to avoid a "may be used uninitialized" warning.
49100         (scale10_round_decimal_double): Likewise.
49101
49102 2008-05-21  Simon Josefsson  <simon@josefsson.org>
49103
49104         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
49105         declared.
49106
49107 2008-05-20  Bruno Haible  <bruno@clisp.org>
49108
49109         * tests/test-memcmp.c (main): Test also the sign of the result. Test
49110         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
49111
49112 2008-05-20  Simon Josefsson  <simon@josefsson.org>
49113
49114         * modules/memcmp-tests: New file.
49115         * tests/test-memcmp.c: New file.
49116
49117 2008-05-19  Bruno Haible  <bruno@clisp.org>
49118
49119         * modules/propername (Notice, configure.ac): Put quoted "..." into
49120         --keyword option.
49121         * lib/propername.h: Update comments accordingly.
49122         Reported by Eric Blake.
49123
49124 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
49125
49126         * modules/getpass-gnu (Depends-on): Add fseeko.
49127
49128 2008-05-19  Simon Josefsson  <simon@josefsson.org>
49129
49130         * modules/base64-tests: New file.
49131
49132 2008-05-19  Bo Borgerson <gigabo@gmail.com>
49133
49134         * lib/base64.c (base64_decode_ctx): If a decode context structure
49135         was passed in use it to ignore newlines.  If a context structure
49136         was _not_ passed in, continue to treat newlines as garbage (this
49137         is the historical behavior).  Formerly base64_decode.
49138         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
49139         takes a decode context structure.
49140         * lib/base64.h (base64_decode): Macro for four-argument calls.
49141         (base64_decode_alloc): Likewise.
49142         * lib/base64.c (base64_decode_ctx): If a decode context structure
49143         was passed in use it to ignore newlines.  If a context structure
49144         was _not_ passed in, continue to treat newlines as garbage (this
49145         is the historical behavior).  Formerly base64_decode.
49146         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
49147         takes a decode context structure.
49148         * lib/base64.h (base64_decode): Macro for four-argument calls.
49149         (base64_decode_alloc): Likewise.
49150
49151 2008-05-19  Jim Meyering  <meyering@redhat.com>
49152
49153         avoid a warning from gcc
49154         * lib/trim.c (IF_LINT): Define.
49155         (trim2): Use it to avoid a "may be used uninitialized" warning.
49156
49157         Fix doc typo.
49158         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
49159
49160 2008-05-19  Bruno Haible  <bruno@clisp.org>
49161
49162         * doc/glibc-functions/getpass.texi: Document limits of other
49163         implementations.
49164
49165 2008-05-19  Simon Josefsson  <simon@josefsson.org>
49166             Bruno Haible <bruno@clisp.org>
49167
49168         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
49169
49170 2008-05-18  Bruno Haible  <bruno@clisp.org>
49171
49172         * modules/propername: New file, from GNU gettext.
49173         * lib/propername.h: New file, from GNU gettext.
49174         * lib/propername.c: New file, from GNU gettext.
49175         * MODULES.html.sh (Internationalization functions): Add propername.
49176
49177 2008-05-16  Jim Meyering  <meyering@redhat.com>
49178             Bruno Haible  <bruno@clisp.org>
49179
49180         Avoid some warnings from "gcc -Wshadow".
49181         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
49182
49183 2008-05-15  Eric Blake  <ebb9@byu.net>
49184
49185         Extend previous patch to cygwin 1.7.0.
49186         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
49187         fast implementation in cygwin >= 1.7.0.
49188         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
49189         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
49190
49191 2008-05-15  Bruno Haible  <bruno@clisp.org>
49192
49193         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
49194         implementation in glibc >= 2.9.
49195         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
49196         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
49197
49198 2008-05-15  Bruno Haible  <bruno@clisp.org>
49199
49200         * MODULES.html.sh (Internationalization functions): Remove linebreak.
49201         (Unicode string functions): Add unilbrk/*.
49202         Reported by Karl Berry.
49203
49204 2008-05-15  Eric Blake  <ebb9@byu.net>
49205
49206         Fix violation of <stdbool.h> replacement in regex.
49207         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
49208         * lib/regexec.c (re_search_internal): Likewise.
49209         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
49210
49211 2008-05-15  Jim Meyering  <meyering@redhat.com>
49212
49213         avoid distracting test output when git or cvs is not found
49214         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
49215         * tests/test-vc-list-files-git.sh: Likewise.
49216
49217 2008-05-15  Eric Blake  <ebb9@byu.net>
49218
49219         Glibc finally accepted the memmem speedup code, bugzilla #5514.
49220         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
49221         glibc version.
49222         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
49223         * doc/posix-functions/strstr.texi (strstr): Likewise.
49224         * lib/str-two-way.h (MAX): Sychronize with glibc.
49225
49226 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
49227
49228         * lib/regcomp.c (optimize_utf8): Add a note on why we test
49229         opr.ctx_type.
49230         (calc_first): Initialize constraint field.
49231         (duplicate_node_closure): Use it instead of special casing ANCHORS.
49232         Fix grammar.
49233         (duplicate_node): Merge constraint field for all node types.
49234         (calc_eclosure_iter): Look at constraint field for all node types.
49235         * lib/regex_internal.c (create_cd_newstate): Don't look at
49236         opr.ctx_type.
49237
49238 2008-05-14  Bruno Haible  <bruno@clisp.org>
49239
49240         Help GCC to do better code generation.
49241         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
49242         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
49243         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
49244         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
49245         Declare with attribute 'malloc' if supported.
49246
49247 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
49248
49249         use "echo STR|wc -c" rather than unportable "expr length STR"
49250         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
49251         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
49252
49253 2008-05-14  Jim Meyering  <meyering@redhat.com>
49254
49255         use dd ibs=$n count=1 ... rather than less-portable head -c$n
49256         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
49257         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
49258         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
49259         via Collin Lasse.
49260
49261 2008-05-14  Eric Blake  <ebb9@byu.net>
49262
49263         Avoid quadratic growth in gl_LIBSOURCES.
49264         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
49265         Suggested by Bruno Haible.
49266
49267         Test xmemdup0.
49268         * modules/xmemdup0-tests: New file.
49269         * tests/test-xmemdup0.c: Likewise.
49270
49271 2008-05-13  Eric Blake  <ebb9@byu.net>
49272
49273         Split xmemdup0 into its own module.
49274         * modules/xmemdup0: New file.
49275         * lib/xmemdup0.h: Likewise.
49276         * lib/xmemdup0.c: Likewise.
49277         * MODULES.html.sh (Memory management functions): Add xmemdup0.
49278         * lib/xalloc.h (xmemdup0): Remove.
49279         * lib/xmalloc.c (xmemdup0): Likewise.
49280
49281 2008-05-13  Eric Blake  <ebb9@byu.net>
49282             Bruno Haible  <bruno@clisp.org>
49283
49284         Reduce number of forks required during autoconf.
49285         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
49286         and gl_LIBSOURCES_DIR.
49287         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
49288         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
49289         m4_syscmd per file.
49290         <m4_foreach_w>: Move...
49291         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
49292
49293 2008-05-13  Eric Blake  <ebb9@byu.net>
49294
49295         * gnulib-tool: Fix various comment typos.
49296
49297 2008-05-12  Bruno Haible  <bruno@clisp.org>
49298
49299         Tailor the linebreaking algorithm.
49300         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
49301
49302 2008-05-12  Bruno Haible  <bruno@clisp.org>
49303
49304         Update to Unicode 5.0.0.
49305         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
49306         LBP_JV, LBP_JT. Redistribute values.
49307         (unilbrk_table): Change size.
49308         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
49309         Unicode TR#14 rev. 22.
49310         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
49311         LBP_JV, LBP_JT. Redistribute values.
49312         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
49313         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
49314         Update.
49315         * lib/unilbrk/lbrkprop1.h: Regenerated.
49316         * lib/unilbrk/lbrkprop2.h: Regenerated.
49317         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
49318         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
49319         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
49320         Likewise.
49321         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
49322         Likewise.
49323         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
49324         result.
49325         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
49326         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
49327         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
49328         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
49329         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
49330         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
49331
49332 2008-05-11  Bruno Haible  <bruno@clisp.org>
49333
49334         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
49335
49336 2008-05-11  Bruno Haible  <bruno@clisp.org>
49337
49338         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
49339         * modules/unilbrk/gen-lbrk: New file.
49340
49341 2008-05-11  Bruno Haible  <bruno@clisp.org>
49342
49343         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
49344         * m4/sha512.m4 (gl_SHA512): Likewise.
49345
49346 2008-05-11  Jim Meyering  <meyering@redhat.com>
49347
49348         New modules: crypto/sha256, crypto/sha512 (from coreutils)
49349         * modules/crypto/sha256: New file.
49350         * modules/crypto/sha512: Likewise.
49351         * lib/sha256.c: Likewise.
49352         * lib/sha256.h: Likewise.
49353         * lib/sha512.c: Likewise.
49354         * lib/sha512.h: Likewise.
49355         * lib/u64.h: Likewise.
49356         * m4/sha256.m4: Likewise.
49357         * m4/sha512.m4: Likewise.
49358         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
49359
49360 2008-05-10  Bruno Haible  <bruno@clisp.org>
49361
49362         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
49363         (Input/Output <stdio.h>): Add xprintf.
49364         (Signal handling <signal.h>): Add strsignal.
49365         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
49366         (Core language properties): Add func.
49367         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
49368         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
49369         strings.
49370         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
49371         (Input/output): New section.
49372         (File system functions): Add openat-die, stat-macros.
49373         (Networking functions): Add sockets.
49374         (Unicode string functions): Add unictype/*.
49375         (Support for building libraries and executables): Add gperf.
49376         (Support for building documentation): Add agpl-3.0.
49377         (Misc): Add nocrash.
49378
49379 2008-05-10  Bruno Haible  <bruno@clisp.org>
49380
49381         * modules/unictype/gen-ctype: New file.
49382
49383 2008-05-10  Jim Meyering  <meyering@redhat.com>
49384
49385         Make chdir-safer.c more efficient on a system with no symlinks.
49386         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
49387         also if ELOOP is zero.  Suggested by Bruno Haible.
49388
49389         Make chdir-safer.c slightly safer.
49390         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
49391         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
49392
49393         Avoid compile failure on systems without ELOOP (like mingw).
49394         * lib/chdir-safer.c (ELOOP): Define if not already defined.
49395         Reported by Bruno Haible.
49396
49397 2008-05-10  Bruno Haible  <bruno@clisp.org>
49398
49399         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
49400         (is_utf8_encoding): Use a case-insensitive comparison.
49401         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
49402         streq.
49403
49404 2008-05-10  Bruno Haible  <bruno@clisp.org>
49405
49406         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
49407         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
49408         * lib/unilbrk/ulc-common.h (iconv_string_length,
49409         iconv_string_keeping_offsets): Remove declarations.
49410         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
49411         Don't include <iconv.h>, streq.h, xsize.h.
49412         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
49413         conversion.
49414         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
49415         <iconv.h>, streq.h, xsize.h.
49416         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
49417         conversion.
49418         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
49419         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
49420         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
49421         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
49422
49423 2008-05-10  Bruno Haible  <bruno@clisp.org>
49424
49425         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
49426         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
49427
49428         * modules/unilbrk/u32-width-linebreaks-tests: New file.
49429         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
49430
49431         * modules/unilbrk/u16-width-linebreaks-tests: New file.
49432         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
49433
49434         * modules/unilbrk/u8-width-linebreaks-tests: New file.
49435         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
49436
49437         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
49438         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
49439
49440         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
49441         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
49442
49443         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
49444         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
49445
49446         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
49447         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
49448
49449 2008-05-10  Bruno Haible  <bruno@clisp.org>
49450
49451         Split up 'linebreak' module.
49452         * lib/unilbrk.h: New file, based on lib/linebreak.h.
49453         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
49454         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
49455         modifications.
49456         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
49457         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
49458         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
49459         lib/linebreak.c.
49460         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
49461         lib/linebreak.c.
49462         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
49463         lib/linebreak.c.
49464         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
49465         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
49466         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
49467         lib/linebreak.c.
49468         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
49469         lib/linebreak.c.
49470         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
49471         lib/linebreak.c.
49472         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
49473         lib/linebreak.c.
49474         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
49475         lib/linebreak.c.
49476         * modules/unilbrk/base: New file.
49477         * modules/unilbrk/tables: New file.
49478         * modules/unilbrk/u8-possible-linebreaks: New file.
49479         * modules/unilbrk/u16-possible-linebreaks: New file.
49480         * modules/unilbrk/u32-possible-linebreaks: New file.
49481         * modules/unilbrk/ulc-common: New file.
49482         * modules/unilbrk/ulc-possible-linebreaks: New file.
49483         * modules/unilbrk/u8-width-linebreaks: New file.
49484         * modules/unilbrk/u16-width-linebreaks: New file.
49485         * modules/unilbrk/u32-width-linebreaks: New file.
49486         * modules/unilbrk/ulc-width-linebreaks: New file.
49487         * lib/linebreak.h: Remove file.
49488         * lib/linebreak.c: Remove file.
49489         * m4/linebreak.m4: Remove file.
49490         * modules/linebreak: Remove file.
49491         * NEWS: Mention the changes.
49492
49493 2008-05-09  Eric Blake  <ebb9@byu.net>
49494
49495         Add xmemdup0.
49496         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
49497         implementation.
49498         * lib/xmalloc.c (xmemdup0): New C implementation.
49499
49500 2008-05-08  Bruno Haible  <bruno@clisp.org>
49501
49502         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
49503
49504 2008-05-07  Eric Blake  <ebb9@byu.net>
49505
49506         Support cross-compilation of <wctype.h>.
49507         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
49508         AC_CACHE_CHECK.
49509
49510 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
49511
49512         * build-aux/vc-list-files: Add support for bzr.
49513
49514 2008-05-03  Jim Meyering  <meyering@redhat.com>
49515
49516         avoid failed assertion with tight malloc
49517         * tests/test-getndelim2.c: Correct an off-by-one assertion.
49518
49519 2008-05-03  Simon Josefsson  <simon@josefsson.org>
49520
49521         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
49522         are needed from arpa/inet.h.
49523         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
49524         Reported by Bruno Haible.
49525
49526 2008-05-02  Jim Meyering  <meyering@redhat.com>
49527
49528         avoid compilation error on FreeBSD 6
49529         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
49530
49531 2008-05-01  Jim Meyering  <meyering@redhat.com>
49532
49533         useless-if-before-free: correct --help's exit status description
49534         * build-aux/useless-if-before-free (usage): Like grep, exit 0
49535         for one or more matches, etc.  Reported by Bruno Haible.
49536
49537         vc-list-files: make the stand-alone gnulib test work
49538         * modules/vc-list-files-tests (configure.ac):
49539         Define and AC_SUBST abs_aux_dir.
49540         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
49541         $(abs_top_srcdir) to each script and having each of them
49542         duplicate the work of setting PATH, set PATH here, using
49543         the new variable, abs_aux_dir instead.
49544         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
49545         * tests/test-vc-list-files-git.sh: Likewise.
49546         Reported by Bruno Haible.
49547
49548 2008-05-01  Bruno Haible  <bruno@clisp.org>
49549
49550         * lib/getndelim2.c (getndelim2): Fix newsize computation during
49551         reallocation. Rename 'done' to 'found_delimiter'.
49552
49553 2008-05-01  Jim Meyering  <meyering@redhat.com>
49554
49555         vc-list-files: accommodate /bin/sh like the one from Solaris 10
49556         * build-aux/vc-list-files: Use `...`, not $(...).
49557
49558 2008-04-30  Jim Meyering  <meyering@redhat.com>
49559
49560         add tests for vc-list-files
49561         * modules/vc-list-files-tests: New module.
49562         * tests/test-vc-list-files-cvs.sh: New file.
49563         * tests/test-vc-list-files-git.sh: New file.
49564
49565         avoid a warning from gcc
49566         * lib/getndelim2.c (IF_LINT): Define.
49567         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
49568
49569         vc-list-files: work properly with build-aux/cvsu, too
49570         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
49571         to all cvs-based clauses.
49572
49573         vc-list-files: work properly in the CVS+awk case, too
49574         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
49575
49576         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
49577         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
49578         take more than one file argument, so .  Add quotes, just in case $dir
49579         ever contains a shell meta-character.  Prompted by Soren Hansen in
49580         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
49581
49582 2008-04-29  Eric Blake  <ebb9@byu.net>
49583
49584         Optimize getndelim2 to use block operations when possible.
49585         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
49586         freadseek, and memchr2.
49587         * lib/getndelim2.c (getndelim2): Use them for block reads.
49588
49589 2008-04-29  Bruno Haible  <bruno@clisp.org>
49590
49591         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
49592         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
49593         * modules/inet_ntop (Depends-on): Add extensions.
49594         * modules/inet_pton (Depends-on): Likewise.
49595         Reported by Simon Josefsson.
49596
49597 2008-04-29  Jim Meyering  <meyering@redhat.com>
49598
49599         When the is more than one match in a block, match all of them.
49600         * build-aux/useless-if-before-free: Iterate through each block
49601         until there are no more matches.
49602
49603         Fix broken useless-if-before-free script.
49604         * build-aux/useless-if-before-free: Fix typo: missing "?" after
49605         the expression to match cast of argument to free-like function.
49606
49607 2008-04-29  Eric Blake  <ebb9@byu.net>
49608
49609         Use new header.
49610         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
49611
49612 2008-04-29  Jim Meyering  <meyering@redhat.com>
49613
49614         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
49615         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
49616         by gnulib to exist and to declare e.g., inet_ntop.
49617         Don't include "inet_ntop.h", now removed.
49618
49619         * m4/arpa_inet_h.m4: Remove trailing blanks.
49620
49621 2008-04-29  Eric Blake  <ebb9@byu.net>
49622
49623         Silence valgrind on safe reads beyond potential array bounds.
49624         * lib/rawmemchr.valgrind: New file.
49625         * lib/strchrnul.valgrind: Likewise.
49626         * modules/rawmemchr (Files): Distribute new file.
49627         * modules/strchrnul (Files): Likewise.
49628         Suggested by Bruno Haible.
49629
49630 2008-04-29  Bruno Haible  <bruno@clisp.org>
49631
49632         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
49633         (inet_ntop, inet_pton): Change portability warning's wording.
49634         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
49635         Invoke gl_CHECK_NEXT_HEADERS.
49636         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
49637         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
49638         set ARPA_INET_H.
49639         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
49640         * modules/arpa_inet (Description): No longer only for systems that
49641         lack it.
49642         (Depends-on): Add include_next.
49643         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
49644         HAVE_ARPA_INET_H.
49645
49646 2008-04-29  Jim Meyering  <meyering@redhat.com>
49647
49648         * modules/mkdir (License): Re-license as LGPLv2+.
49649
49650 2008-04-29  Bruno Haible  <bruno@clisp.org>
49651
49652         * modules/rawmemchr (Maintainer): Set to Eric.
49653         * modules/strchrnul (Maintainer): Likewise.
49654
49655 2008-04-29  Simon Josefsson  <simon@josefsson.org>
49656
49657         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
49658         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
49659
49660         * modules/arpa_inet (arpa/inet.h): Use them.
49661
49662 2008-04-28  Eric Blake  <ebb9@byu.net>
49663
49664         Test getndelim2.
49665         * modules/getndelim2-tests: New file.
49666         * tests/test-getndelim2.c: Likewise.
49667         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
49668         stream.
49669         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
49670
49671         * MODULES.html.sh: Document new module.
49672
49673 2008-04-20  Bruno Haible  <bruno@clisp.org>
49674
49675         * lib/c-stack.c (die): Use raise.
49676         * modules/c-stack (Depends-on): Add raise.
49677
49678 2008-04-28  Bruno Haible  <bruno@clisp.org>
49679
49680         Expect rpmatch to be declared.
49681         * lib/yesno.c (rpmatch): Remove declaration.
49682
49683         Declare rpmatch.
49684         * lib/stdlib.in.h (rpmatch): New declaration.
49685         * lib/rpmatch.c: Include <stdlib.h> first.
49686         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
49687         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
49688         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
49689         HAVE_RPMATCH.
49690         * modules/rpmatch (Depends-on): Add stdlib, extensions.
49691         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
49692         (Include): Set to <stdlib.h>.
49693         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
49694         HAVE_RPMATCH.
49695         * NEWS: Document the change.
49696
49697 2008-04-28  Bruno Haible  <bruno@clisp.org>
49698
49699         Change rpmatch to use nl_langinfo when appropriate.
49700         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
49701         (N_): New macro.
49702         (localized_pattern): New function/macro.
49703         (try): Remove match, nomatch arguments. Copy the pattern into safe
49704         memory before caching it.
49705         (rpmatch): Use localized_pattern. Add translator comments.
49706         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
49707         Suggested by Eric Blake.
49708         * modules/rpmatch (Depends-on): Add stdbool.
49709
49710 2008-04-28  Eric Blake  <ebb9@byu.net>
49711
49712         Add rawmemchr module, matching glibc.
49713         * modules/string (Makefile.am): New indicator.
49714         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
49715         * lib/string.in.h (rawmemchr): Declare when appropriate.
49716         * modules/rawmemchr: New file.
49717         * m4/rawmemchr.m4: Likewise.
49718         * lib/rawmemchr.c: Likewise.
49719         * modules/rawmemchr-tests: Likewise.
49720         * tests/test-rawmemchr.c: Likewise.
49721         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
49722         module.
49723         * modules/strchrnul (Depends-on): Add rawmemchr.
49724         * lib/strchrnul.c (strchrnul): Optimize a corner case.
49725
49726         Whitespace cleanup.
49727         * tests/test-strchrnul.c: Reindent.
49728         * lib/strchrnul.c: Likewise.
49729
49730         Optimize and test strchrnul.
49731         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
49732         * modules/strchrnul-tests: New file.
49733         * tests/test-strchrnul.c: Likewise.
49734
49735         Remove intprops dependency.
49736         * modules/memchr (Depends-on): Remove intprops.
49737         * modules/memrchr (Depends-on): Likewise.
49738         * modules/memchr2 (Depends-on): Likewise.
49739         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
49740         * lib/memrchr.c (__memrchr): Likewise.
49741         * lib/memrchr2.c (memchr2): Likewise.
49742         Reported by Simon Josefsson.
49743
49744 2008-04-28  Simon Josefsson  <simon@josefsson.org>
49745
49746         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
49747         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49748
49749 2008-04-28  Simon Josefsson  <simon@josefsson.org>
49750
49751         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
49752
49753         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
49754
49755         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
49756
49757         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
49758         declarations.
49759         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
49760
49761         * m4/inet_pton.m4: Don't check for header files.
49762
49763         * m4/inet_ntop.m4: Don't check for header files.
49764
49765 2008-04-28  Simon Josefsson  <simon@josefsson.org>
49766
49767         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
49768         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
49769         trigger for cygwin).
49770         Reported by Bruno Haible  <bruno@clisp.org>.
49771
49772 2008-04-28  Bruno Haible  <bruno@clisp.org>
49773
49774         * doc/posix-functions/strdup.texi: Mention mingw problem.
49775
49776 2008-04-27  Bruno Haible  <bruno@clisp.org>
49777
49778         * modules/stat-time-tests (Depends-on): Add sleep.
49779         * tests/test-stat-time.c (force_unlink): New function.
49780         (cleanup): Use it.
49781         (test_mtime): Remove the ctime related tests.
49782         (test_ctime): New function, containing the ctime related tests.
49783         (main): Call test_ctime, except on native Windows platforms.
49784
49785 2008-04-27  Bruno Haible  <bruno@clisp.org>
49786
49787         * lib/rpmatch.c (rpmatch): Add some comments.
49788         Reported by James Youngman <jay@gnu.org>.
49789
49790 2008-04-27  Bruno Haible  <bruno@clisp.org>
49791
49792         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
49793         quiet NaNs.
49794
49795 2008-04-27  Bruno Haible  <bruno@clisp.org>
49796
49797         Make test-yesno.sh work on mingw.
49798         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
49799         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
49800         (main): Set stdin to binary mode.
49801         * modules/yesno-tests (Depends-on): Add binary-io.
49802
49803 2008-04-27  Bruno Haible  <bruno@clisp.org>
49804
49805         Fix 'isfinite' on x86, x86_64, ia64 platforms.
49806         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
49807         argument that lie outside the IEEE 854 domain.
49808         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
49809         (gl_ISFINITE): Use it.
49810         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
49811
49812 2008-04-27  Bruno Haible  <bruno@clisp.org>
49813
49814         Allow local renaming in config.h.
49815         * lib/memrchr.c (memrchr): Don't undefine outside libc.
49816
49817 2008-04-27  Bruno Haible  <bruno@clisp.org>
49818
49819         * lib/memchr.c (__memchr): Change type of 'i'.
49820         * lib/memchr2.c (memchr2): Likewise.
49821
49822 2008-04-26  Eric Blake  <ebb9@byu.net>
49823         and Bruno Haible  <bruno@clisp.org>
49824
49825         Optimize and test memrchr.
49826         * modules/memrchr (Depends-on): Add intprops.
49827         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
49828         * modules/memrchr-tests: New file.
49829         * tests/test-memrchr.c: New file.
49830
49831 2008-04-26  Bruno Haible  <bruno@clisp.org>
49832
49833         Add tentative support for DragonFly BSD.
49834         * lib/stdio-impl.h: Add macros for DragonFly BSD.
49835         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
49836         fp.
49837         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
49838         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
49839         * lib/fpurge.c (fpurge): Likewise.
49840         * lib/freadable.c (freaadable): Likewise.
49841         * lib/freadahead.c (freadahead): Likewise.
49842         * lib/freading.c (freading): Likewise.
49843         * lib/freadptr.c (freadptr): Likewise.
49844         * lib/freadseek.c (freadptrinc): Likewise.
49845         * lib/fseeko.c (fseeko): Likewise.
49846         * lib/fseterr.c (fseterr): Likewise.
49847         * lib/fwritable.c (fwritable): Likewise.
49848         * lib/fwriting.c (fwriting): Likewise.
49849
49850 2008-04-26  Bruno Haible  <bruno@clisp.org>
49851
49852         * lib/stdio-impl.h: New file.
49853         * lib/fbufmode.c: Include stdio-impl.h.
49854         (fbufmode): Use fp_, remove redundant #defines.
49855         * lib/fflush.c: Include stdio-impl.h.
49856         (clear_ungetc_buffer): Remove redundant #defines.
49857         * lib/fpurge.c: Include stdio-impl.h.
49858         (fpurge): Remove redundant #defines.
49859         * lib/freadable.c: Include stdio-impl.h.
49860         (freadable): Remove redundant #defines.
49861         * lib/freadahead.c: Include stdio-impl.h.
49862         (freadahead): Remove redundant #defines.
49863         * lib/freading.c: Include stdio-impl.h.
49864         (freading): Remove redundant #defines.
49865         * lib/freadptr.c: Include stdio-impl.h.
49866         (freadptr): Remove redundant #defines.
49867         * lib/freadseek.c: Include stdio-impl.h.
49868         (freadptrinc): Remove redundant #defines.
49869         * lib/fseeko.c: Include stdio-impl.h.
49870         (rpl_fseeko): Remove redundant #defines.
49871         * lib/fseterr.c: Include stdio-impl.h.
49872         (fseterr): Remove redundant #defines.
49873         * lib/fwritable.c: Include stdio-impl.h.
49874         (fwritable: Remove redundant #defines.
49875         * lib/fwriting.c: Include stdio-impl.h.
49876         (fwriting): Remove redundant #defines.
49877         * modules/fbufmode (Files): Add lib/stdio-impl.h.
49878         * modules/fflush (Files): Likewise.
49879         * modules/fpurge (Files): Likewise.
49880         * modules/freadable (Files): Likewise.
49881         * modules/freadahead (Files): Likewise.
49882         * modules/freading (Files): Likewise.
49883         * modules/freadptr (Files): Likewise.
49884         * modules/freadseek (Files): Likewise.
49885         * modules/fseeko (Files): Likewise.
49886         * modules/fseterr (Files): Likewise.
49887         * modules/fwritable (Files): Likewise.
49888         * modules/fwriting (Files): Likewise.
49889
49890 2008-04-26  Bruno Haible  <bruno@clisp.org>
49891
49892         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
49893         restore_seek_optimization, update_fpos_cache): New functions, extracted
49894         from rpl_fflush.
49895         (rpl_fflush): Use them.
49896         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
49897         (gl_REPLACE_FFLUSH): Use it.
49898
49899 2008-04-26  Bruno Haible  <bruno@clisp.org>
49900
49901         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
49902         on Solaris.
49903         * tests/test-xstrtoimax.sh: Likewise.
49904         * tests/test-xstrtoumax.sh: Likewise.
49905         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49906
49907 2008-04-26  Bruno Haible  <bruno@clisp.org>
49908
49909         * modules/memchr-tests: New file.
49910         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
49911
49912 2008-04-26  Eric Blake  <ebb9@byu.net>
49913             Bruno Haible  <bruno@clisp.org>
49914
49915         * lib/memchr.c: Include intprops.h.
49916         (__memchr): Optimize parallel detection of matching bytes. Rename local
49917         variables. Add explanatory comments.
49918
49919 2008-04-26  Bruno Haible  <bruno@clisp.org>
49920
49921         Fix module 'memchr', broken since 2000-10-28.
49922         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
49923
49924 2008-04-26  Bruno Haible  <bruno@clisp.org>
49925
49926         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
49927         comments.
49928
49929 2008-04-25  Eric Blake  <ebb9@byu.net>
49930
49931         Use native fstatat on cygwin 1.7.0.
49932         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
49933         first.
49934
49935 2008-04-23  Eric Blake  <ebb9@byu.net>
49936
49937         Improve memchr2 performance.
49938         * lib/memchr2.c (memchr2): Further optimize parallel detection of
49939         NUL bytes.
49940         * modules/memchr2 (Depends-on): Use intprops.h.
49941
49942 2008-04-23  Simon Josefsson  <simon@josefsson.org>
49943
49944         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
49945         an inline function instead of a CPP macro.  Patch by Ben Pfaff
49946         <blp@cs.stanford.edu>.
49947
49948 2008-04-23  Simon Josefsson  <simon@josefsson.org>
49949
49950         * lib/arpa_inet.in.h: New file.
49951
49952         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
49953         (Makefile.am): Sed in substitute header file.
49954
49955         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
49956         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
49957
49958         * modules/inet_ntop (configure.ac): Use
49959         gl_ARPA_INET_MODULE_INDICATOR.
49960
49961         * modules/inet_pton (configure.ac): Use
49962         gl_ARPA_INET_MODULE_INDICATOR.
49963
49964 2008-04-22  Jim Meyering  <meyering@redhat.com>
49965
49966         * modules/verify (License): Re-license as LGPLv2+.
49967
49968 2008-04-22  Simon Josefsson  <simon@josefsson.org>
49969
49970         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
49971         parameter to void* as per POSIX standard (MinGW uses char*).
49972
49973 2008-04-21  Bruno Haible  <bruno@clisp.org>
49974
49975         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
49976         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
49977         Define to replacements if REPLACE_ISWCNTRL is 1.
49978         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
49979         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
49980         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
49981         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
49982         what it fixes.
49983         * doc/posix-functions/iswalpha.texi: Likewise.
49984         * doc/posix-functions/iswblank.texi: Likewise.
49985         * doc/posix-functions/iswcntrl.texi: Likewise.
49986         * doc/posix-functions/iswdigit.texi: Likewise.
49987         * doc/posix-functions/iswgraph.texi: Likewise.
49988         * doc/posix-functions/iswlower.texi: Likewise.
49989         * doc/posix-functions/iswprint.texi: Likewise.
49990         * doc/posix-functions/iswpunct.texi: Likewise.
49991         * doc/posix-functions/iswspace.texi: Likewise.
49992         * doc/posix-functions/iswupper.texi: Likewise.
49993         * doc/posix-functions/iswxdigit.texi: Likewise.
49994         Reported by Alain Guibert.
49995
49996 2008-04-21  Bruno Haible  <bruno@clisp.org>
49997
49998         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
49999         Patch by Alain Guibert.
50000
50001 2008-04-21  Bruno Haible  <bruno@clisp.org>
50002
50003         Fix test failures on mingw.
50004         * tests/test-xstrtol.c (print_no_progname): New function.
50005         (main): Install it in error_print_progname hook.
50006         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
50007         * tests/test-xstrtoimax.sh: Likewise.
50008         * tests/test-xstrtoumax.sh: Likewise.
50009
50010 2008-04-21  Bruno Haible  <bruno@clisp.org>
50011
50012         Fix test failure on mingw.
50013         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
50014
50015 2008-04-21  Bruno Haible  <bruno@clisp.org>
50016
50017         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
50018         Actually assign a value.
50019
50020 2008-04-20  Bruno Haible  <bruno@clisp.org>
50021
50022         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
50023         take 2.
50024         * lib/canonicalize.c (canonicalize_file_name): Elide if the
50025         'canonicalize-lgpl' module is also used.
50026         * lib/canonicalize-lgpl.c: Undo last change.
50027         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
50028
50029 2008-04-20  Bruno Haible  <bruno@clisp.org>
50030
50031         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
50032         config.h. Provide _mkdir based fallback for mingw.
50033         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
50034         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
50035         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
50036         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
50037         rather than defining mkdir in config.h.
50038         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
50039         (gl_SYS_STAT_H_DEFAULTS): New macro.
50040         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
50041         HAVE_IO_H any more.
50042         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
50043         HAVE_DECL_MKDIR and HAVE_IO_H.
50044
50045 2008-04-20  Bruno Haible  <bruno@clisp.org>
50046
50047         * lib/isapipe.c: Port to native Windows platforms.
50048
50049 2008-04-20  Bruno Haible  <bruno@clisp.org>
50050
50051         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
50052
50053 2008-04-21  Eric Blake  <ebb9@byu.net>
50054
50055         Work around preprocessors that don't handle UINTMAX_MAX.
50056         * lib/memchr2.c (memchr2): Avoid embedded #if.
50057         Reported by Alain Guibert, fix suggested by Bruno Haible.
50058
50059 2008-04-21  Simon Josefsson  <simon@josefsson.org>
50060
50061         * doc/posix-functions/strftime.texi (strftime): Explain better
50062         Windows incompatibility.  Suggested by Micah Cowan
50063         <micah@cowan.name>.
50064
50065 2008-04-20  Bruno Haible  <bruno@clisp.org>
50066
50067         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
50068         unistr/u8-mblen.
50069
50070 2008-04-20  Bruno Haible  <bruno@clisp.org>
50071
50072         Fix test failure on platforms with non-GNU iconv.
50073         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
50074         (U_TO_U8): Use it, rather than u16_to_u8.
50075         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
50076         units at the end of the input string.
50077         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
50078
50079 2008-04-20  Bruno Haible  <bruno@clisp.org>
50080
50081         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
50082         when the resulting length is 0.
50083         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
50084
50085 2008-04-20  Bruno Haible  <bruno@clisp.org>
50086
50087         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
50088         works.
50089         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
50090
50091 2008-04-20  Bruno Haible  <bruno@clisp.org>
50092
50093         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
50094         * modules/tsearch-tests (configure.ac): Test for initstate function.
50095
50096 2008-04-20  Bruno Haible  <bruno@clisp.org>
50097
50098         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
50099         for nlink_t if missing.
50100         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
50101
50102 2008-04-19  Bruno Haible  <bruno@clisp.org>
50103
50104         Work around snprintf bug on Linux libc5.
50105         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
50106         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
50107         gl_SNPRINTF_SIZE1.
50108         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50109         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
50110         that test failed.
50111         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
50112         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
50113         * modules/snprintf (Files): Add m4/printf.m4.
50114         * modules/vsnprintf (Files): Likewise.
50115         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
50116         * doc/posix-functions/vsnprintf.texi: Likewise.
50117
50118 2008-04-19  Bruno Haible  <bruno@clisp.org>
50119
50120         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
50121         from 0.0058 to less than 10^-7.
50122
50123 2008-04-19  Bruno Haible  <bruno@clisp.org>
50124
50125         Fix rounding when a precision is given.
50126         * lib/vasnprintf.c (is_borderline): New function.
50127         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
50128         9...9x.
50129         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
50130         %e, %g.
50131         * tests/test-vasprintf-posix.c (test_function): Likewise.
50132         * tests/test-snprintf-posix.h (test_function): Likewise.
50133         * tests/test-sprintf-posix.h (test_function): Likewise.
50134         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
50135         * tests/test-printf-posix.h (test_function): Likewise.
50136         * tests/test-printf-posix.output: Update.
50137         Reported by John Darrington <john@darrington.wattle.id.au> via
50138         Ben Pfaff <blp@cs.stanford.edu>.
50139
50140 2008-04-18  Simon Josefsson  <simon@josefsson.org>
50141
50142         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
50143         Suggested by Bruno Haible <bruno@clisp.org>.
50144
50145 2008-04-17  Bruno Haible  <bruno@clisp.org>
50146
50147         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
50148         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
50149         implementation.
50150         Patch by Bruce Merry <bmerry@gmail.com>.
50151
50152 2008-04-17  Simon Josefsson  <simon@josefsson.org>
50153
50154         * doc/posix-functions/strftime.texi (strftime): Mention that %e
50155         doesn't work under Windows.
50156
50157 2008-04-16  Bruno Haible  <bruno@clisp.org>
50158
50159         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
50160         New macros.
50161         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
50162         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
50163         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
50164         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
50165         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
50166         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
50167         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
50168         macros.
50169         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
50170         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
50171         Northern Sotho, Uighur.
50172
50173 2008-04-16  Bruno Haible  <bruno@clisp.org>
50174
50175         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
50176         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
50177         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
50178         Reported by Daniel Bergström <daniel@octocode.com>.
50179
50180 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
50181             Bruno Haible  <bruno@clisp.org>
50182
50183         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
50184         function.
50185         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
50186         New functions, mostly extracted from gl_locale_name_default.
50187         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
50188
50189 2008-04-16  Eric Blake  <ebb9@byu.net>
50190
50191         Adjust strtod detection to catch glibc 2.7 bug.
50192         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
50193         Reported by John Gatewood Ham.
50194
50195 2008-04-16  Bruno Haible  <bruno@clisp.org>
50196
50197         Add tentative support for Linux libc5.
50198         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
50199         * lib/fpurge.c (fpurge): Likewise.
50200         * lib/freadable.c (freadable): Likewise.
50201         * lib/freadahead.c (freadahead): Likewise.
50202         * lib/freading.c (freading): Likewise.
50203         * lib/freadptr.c (freadptr): Likewise.
50204         * lib/freadseek.c (freadptrinc): Likewise.
50205         * lib/fseeko.c (rpl_fseeko): Likewise.
50206         * lib/fseterr.c (fseterr): Likewise.
50207         * lib/fwritable.c (fwritable): Likewise.
50208         * lib/fwriting.c (fwriting): Likewise.
50209         Reported by Alain Guibert <alguibert+bts@free.fr>.
50210
50211 2008-04-15  Bruno Haible  <bruno@clisp.org>
50212
50213         * modules/mathl (configure.ac): Define module indicator.
50214
50215 2008-04-15  Bruno Haible  <bruno@clisp.org>
50216
50217         * lib/logl.c (logl): Remove unused variables.
50218
50219 2008-04-15  Bruno Haible  <bruno@clisp.org>
50220
50221         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
50222         fails.
50223
50224 2008-04-15  Bruno Haible  <bruno@clisp.org>
50225
50226         * lib/trim.c (trim2): Fix argument of isspace() macro.
50227
50228 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
50229
50230         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
50231         to 0.
50232         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
50233
50234 2008-04-14  Bruno Haible  <bruno@clisp.org>
50235
50236         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
50237         AC_LANG_PROGRAM argument.
50238         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
50239         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
50240         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
50241         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
50242         * m4/math_h.m4 (gl_MATH_H): Likewise.
50243         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
50244         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
50245         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
50246         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
50247         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
50248         * m4/regex.m4 (gl_REGEX): Likewise.
50249         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
50250         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
50251         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
50252         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
50253         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
50254         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
50255         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
50256         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
50257
50258 2008-04-14  Jim Meyering  <meyering@redhat.com>
50259
50260         test-strtod: fix typos: s/abs/fabs/
50261         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
50262
50263 2008-04-13  Bruno Haible  <bruno@clisp.org>
50264
50265         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
50266         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
50267         module is also used and while not building the reloc-wrapper.
50268
50269 2008-04-13  Bruno Haible  <bruno@clisp.org>
50270
50271         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
50272
50273 2008-04-13  Bruno Haible  <bruno@clisp.org>
50274
50275         Fix AIX compilation failure introduced on 2008-04-02.
50276         * tests/test-frexp.c (exp): Undefine before redefining.
50277         * tests/test-frexpl.c (exp): Likewise.
50278
50279 2008-04-13  Bruno Haible  <bruno@clisp.org>
50280
50281         Work around a HP-UX stdio bug.
50282         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
50283         * tests/test-ftello.c (main): Likewise.
50284         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
50285         * doc/posix-functions/ftello.texi: Likewise.
50286
50287 2008-04-13  Bruno Haible  <bruno@clisp.org>
50288
50289         Make test-signbit pass on HP-UX/hppa.
50290         * tests/test-signbit.c (minus_zerol): New variable.
50291         (test_signbitl): Use it.
50292
50293 2008-04-13  Bruno Haible  <bruno@clisp.org>
50294
50295         Make truncl work on OSF/1 4.0.
50296         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
50297         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
50298         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
50299         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
50300         HAVE_DECL_TRUNCL.
50301         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
50302         HAVE_DECL_TRUNCL.
50303         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
50304
50305 2008-04-13  Bruno Haible  <bruno@clisp.org>
50306
50307         * lib/unictype.h: Remove trailing comma from enumeration definitions.
50308
50309 2008-04-13  Bruno Haible  <bruno@clisp.org>
50310
50311         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
50312         expression, so as to avoid HP-UX 11 cc compiler bug.
50313
50314 2008-04-13  Bruno Haible  <bruno@clisp.org>
50315
50316         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
50317
50318 2008-04-13  Bruno Haible  <bruno@clisp.org>
50319
50320         * lib/git-merge-changelog.c: Remove empty declaration outside of
50321         functions.
50322
50323 2008-04-13  Bruno Haible  <bruno@clisp.org>
50324
50325         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
50326
50327 2008-04-13  Bruno Haible  <bruno@clisp.org>
50328
50329         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
50330         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
50331         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
50332         also if it exists but lacks definitions of the SHUT_* macros.
50333         * modules/sys_socket (Description): Update.
50334         Reported by Elbert Pol <e.pol@chello.nl>.
50335
50336 2008-04-13  Bruno Haible  <bruno@clisp.org>
50337
50338         * lib/localcharset.c (OS2): Don't redefine if already defined.
50339         Reported by Elbert Pol <e.pol@chello.nl>.
50340
50341 2008-04-13  Bruno Haible  <bruno@clisp.org>
50342
50343         * lib/binary-io.h [__EMX__]: Include <io.h>.
50344         Reported by Elbert Pol <e.pol@chello.nl>.
50345
50346 2008-04-12  Bruno Haible  <bruno@clisp.org>
50347
50348         * lib/fpucw.h: Enable the definitions also for x86_64.
50349         Needed for NetBSD/x86_64.
50350         Reported by Thomas Klausner <tk@giga.or.at>.
50351
50352 2008-04-12  Bruno Haible  <bruno@clisp.org>
50353
50354         * tests/test-strtod.c: Include isnand.h.
50355         (main): Use isnand instead of isnan.
50356         Reported by Jim Meyering.
50357
50358 2008-04-12  Bruno Haible  <bruno@clisp.org>
50359
50360         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
50361         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
50362
50363 2008-04-12  Jim Meyering  <meyering@redhat.com>
50364
50365         * m4/math_h.m4 (gl_MATH_H): Fix typos.
50366
50367 2008-04-12  Bruno Haible  <bruno@clisp.org>
50368
50369         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
50370         Reported by Elbert Pol <e.pol@chello.nl>.
50371
50372 2008-04-12  Eric Blake  <ebb9@byu.net>
50373
50374         Work around Solaris 10 math.h bug.
50375         * m4/math_h.m4 (gl_MATH_H): Check for bug.
50376         (gl_MATH_H_DEFAULTS): Set up default.
50377         * modules/math (Makefile.am): Replace new indicators.
50378         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
50379         * tests/test-math.c (main): Test this.
50380         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
50381         * doc/posix-headers/math.texi (math.h): Mention bug.
50382         Reported by Nelson H. F. Beebe and Jim Meyering.
50383
50384 2008-04-11  Bruno Haible  <bruno@clisp.org>
50385
50386         Adapt to future versions of Apple GCC.
50387         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
50388         Reported by Peter O'Gorman <peter@pogma.com>.
50389
50390 2008-04-11  Bruno Haible  <bruno@clisp.org>
50391
50392         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
50393
50394 2008-04-11  Bruno Haible  <bruno@clisp.org>
50395
50396         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
50397
50398         * modules/getaddrinfo-tests (Makefile.am): Define
50399         test_getaddrinfo_LDADD.
50400
50401 2008-04-11  Bruno Haible  <bruno@clisp.org>
50402
50403         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
50404         (init): Fix syntax error.
50405         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
50406         is declared.
50407
50408 2008-04-11  Bruno Haible  <bruno@clisp.org>
50409
50410         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
50411         * modules/glob (Depends-on): Add stdbool.
50412
50413 2008-04-11  Bruno Haible  <bruno@clisp.org>
50414
50415         * lib/trim.c: Include <string.h>.
50416
50417 2008-04-11  Eric Blake  <ebb9@byu.net>
50418
50419         Avoid compile failure on OS/2.
50420         * lib/regex_internal.h (internal_function): Disable optimization
50421         on OS/2 (__EMX__), where it caused compiler error.
50422         Reported by Elbert Pol.
50423
50424 2008-04-11  Bruno Haible  <bruno@clisp.org>
50425
50426         Flush the standard error stream before aborting. Needed on mingw.
50427         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
50428         * tests/test-array_list.c (ASSERT): Likewise.
50429         * tests/test-array_oset.c (ASSERT): Likewise.
50430         * tests/test-avltree_list.c (ASSERT): Likewise.
50431         * tests/test-avltree_oset.c (ASSERT): Likewise.
50432         * tests/test-avltreehash_list.c (ASSERT): Likewise.
50433         * tests/test-binary-io.c (ASSERT): Likewise.
50434         * tests/test-byteswap.c (ASSERT): Likewise.
50435         * tests/test-c-ctype.c (ASSERT): Likewise.
50436         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
50437         * tests/test-c-strcasestr.c (ASSERT): Likewise.
50438         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
50439         * tests/test-c-strstr.c (ASSERT): Likewise.
50440         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
50441         * tests/test-canonicalize.c (ASSERT): Likewise.
50442         * tests/test-carray_list.c (ASSERT): Likewise.
50443         * tests/test-ceilf1.c (ASSERT): Likewise.
50444         * tests/test-ceilf2.c (ASSERT): Likewise.
50445         * tests/test-ceill.c (ASSERT): Likewise.
50446         * tests/test-count-one-bits.c (ASSERT): Likewise.
50447         * tests/test-fbufmode.c (ASSERT): Likewise.
50448         * tests/test-fflush2.c (ASSERT): Likewise.
50449         * tests/test-floorf1.c (ASSERT): Likewise.
50450         * tests/test-floorf2.c (ASSERT): Likewise.
50451         * tests/test-floorl.c (ASSERT): Likewise.
50452         * tests/test-fopen.c (ASSERT): Likewise.
50453         * tests/test-fpending.c (ASSERT): Likewise.
50454         * tests/test-fprintf-posix.c (ASSERT): Likewise.
50455         * tests/test-fpurge.c (ASSERT): Likewise.
50456         * tests/test-freadable.c (ASSERT): Likewise.
50457         * tests/test-freadahead.c (ASSERT): Likewise.
50458         * tests/test-freading.c (ASSERT): Likewise.
50459         * tests/test-freadptr.c (ASSERT): Likewise.
50460         * tests/test-freadptr2.c (ASSERT): Likewise.
50461         * tests/test-freadseek.c (ASSERT): Likewise.
50462         * tests/test-freopen.c (ASSERT): Likewise.
50463         * tests/test-frexp.c (ASSERT): Likewise.
50464         * tests/test-frexpl.c (ASSERT): Likewise.
50465         * tests/test-fseek.c (ASSERT): Likewise.
50466         * tests/test-fseeko.c (ASSERT): Likewise.
50467         * tests/test-fstrcmp.c (ASSERT): Likewise.
50468         * tests/test-ftell.c (ASSERT): Likewise.
50469         * tests/test-ftello.c (ASSERT): Likewise.
50470         * tests/test-func.c (ASSERT): Likewise.
50471         * tests/test-fwritable.c (ASSERT): Likewise.
50472         * tests/test-fwriting.c (ASSERT): Likewise.
50473         * tests/test-getdelim.c (ASSERT): Likewise.
50474         * tests/test-getline.c (ASSERT): Likewise.
50475         * tests/test-i-ring.c (ASSERT): Likewise.
50476         * tests/test-iconv-utf.c (ASSERT): Likewise.
50477         * tests/test-iconv.c (ASSERT): Likewise.
50478         * tests/test-isfinite.c (ASSERT): Likewise.
50479         * tests/test-isnand.c (ASSERT): Likewise.
50480         * tests/test-isnanf.c (ASSERT): Likewise.
50481         * tests/test-isnanl.h (ASSERT): Likewise.
50482         * tests/test-ldexpl.c (ASSERT): Likewise.
50483         * tests/test-linked_list.c (ASSERT): Likewise.
50484         * tests/test-linkedhash_list.c (ASSERT): Likewise.
50485         * tests/test-localename.c (ASSERT): Likewise.
50486         * tests/test-lseek.c (ASSERT): Likewise.
50487         * tests/test-mbscasecmp.c (ASSERT): Likewise.
50488         * tests/test-mbscasestr1.c (ASSERT): Likewise.
50489         * tests/test-mbscasestr2.c (ASSERT): Likewise.
50490         * tests/test-mbscasestr3.c (ASSERT): Likewise.
50491         * tests/test-mbscasestr4.c (ASSERT): Likewise.
50492         * tests/test-mbschr.c (ASSERT): Likewise.
50493         * tests/test-mbscspn.c (ASSERT): Likewise.
50494         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
50495         * tests/test-mbspbrk.c (ASSERT): Likewise.
50496         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
50497         * tests/test-mbsrchr.c (ASSERT): Likewise.
50498         * tests/test-mbsspn.c (ASSERT): Likewise.
50499         * tests/test-mbsstr1.c (ASSERT): Likewise.
50500         * tests/test-mbsstr2.c (ASSERT): Likewise.
50501         * tests/test-mbsstr3.c (ASSERT): Likewise.
50502         * tests/test-memchr2.c (ASSERT): Likewise.
50503         * tests/test-memmem.c (ASSERT): Likewise.
50504         * tests/test-open.c (ASSERT): Likewise.
50505         * tests/test-printf-frexp.c (ASSERT): Likewise.
50506         * tests/test-printf-frexpl.c (ASSERT): Likewise.
50507         * tests/test-printf-posix.c (ASSERT): Likewise.
50508         * tests/test-quotearg.c (ASSERT): Likewise.
50509         * tests/test-rbtree_list.c (ASSERT): Likewise.
50510         * tests/test-rbtree_oset.c (ASSERT): Likewise.
50511         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
50512         * tests/test-round1.c (ASSERT): Likewise.
50513         * tests/test-roundf1.c (ASSERT): Likewise.
50514         * tests/test-roundl.c (ASSERT): Likewise.
50515         * tests/test-signbit.c (ASSERT): Likewise.
50516         * tests/test-sleep.c (ASSERT): Likewise.
50517         * tests/test-snprintf-posix.c (ASSERT): Likewise.
50518         * tests/test-snprintf.c (ASSERT): Likewise.
50519         * tests/test-sprintf-posix.c (ASSERT): Likewise.
50520         * tests/test-stat-time.c (ASSERT): Likewise.
50521         * tests/test-strcasestr.c (ASSERT): Likewise.
50522         * tests/test-strerror.c (ASSERT): Likewise.
50523         * tests/test-striconv.c (ASSERT): Likewise.
50524         * tests/test-striconveh.c (ASSERT): Likewise.
50525         * tests/test-striconveha.c (ASSERT): Likewise.
50526         * tests/test-strsignal.c (ASSERT): Likewise.
50527         * tests/test-strstr.c (ASSERT): Likewise.
50528         * tests/test-strtod.c (ASSERT): Likewise.
50529         * tests/test-trunc1.c (ASSERT): Likewise.
50530         * tests/test-trunc2.c (ASSERT): Likewise.
50531         * tests/test-truncf1.c (ASSERT): Likewise.
50532         * tests/test-truncf2.c (ASSERT): Likewise.
50533         * tests/test-truncl.c (ASSERT): Likewise.
50534         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
50535         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
50536         * tests/test-vasnprintf.c (ASSERT): Likewise.
50537         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
50538         * tests/test-vasprintf.c (ASSERT): Likewise.
50539         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
50540         * tests/test-vprintf-posix.c (ASSERT): Likewise.
50541         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
50542         * tests/test-vsnprintf.c (ASSERT): Likewise.
50543         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
50544         * tests/test-wcwidth.c (ASSERT): Likewise.
50545         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
50546         * tests/test-xprintf-posix.c (ASSERT): Likewise.
50547         * tests/test-xvasprintf.c (ASSERT): Likewise.
50548         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
50549         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
50550         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
50551         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
50552         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
50553         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
50554         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
50555         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
50556         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
50557         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
50558         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
50559         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
50560         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
50561         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
50562         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
50563         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
50564         * tests/unictype/test-block_list.c (ASSERT): Likewise.
50565         * tests/unictype/test-block_of.c (ASSERT): Likewise.
50566         * tests/unictype/test-block_test.c (ASSERT): Likewise.
50567         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
50568         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
50569         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
50570         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
50571         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
50572         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
50573         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
50574         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
50575         * tests/unictype/test-combining.c (ASSERT): Likewise.
50576         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
50577         * tests/unictype/test-digit.c (ASSERT): Likewise.
50578         * tests/unictype/test-mirror.c (ASSERT): Likewise.
50579         * tests/unictype/test-numeric.c (ASSERT): Likewise.
50580         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
50581         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
50582         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
50583         * tests/unictype/test-scripts.c (ASSERT): Likewise.
50584         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
50585         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
50586         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
50587         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
50588         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
50589         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
50590         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
50591         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
50592         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
50593         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
50594         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
50595         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
50596         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
50597         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
50598         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
50599         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
50600         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
50601         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
50602         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
50603         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
50604         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
50605         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
50606         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
50607         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
50608         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
50609         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
50610         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
50611         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
50612         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
50613         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
50614         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
50615         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
50616         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
50617         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
50618         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
50619         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
50620         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
50621         Reported by Eric Blake.
50622
50623 2008-04-11  Bruno Haible  <bruno@clisp.org>
50624
50625         * lib/wchar.in.h: Tweak comment.
50626
50627 2008-04-11  Bruno Haible  <bruno@clisp.org>
50628
50629         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
50630         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
50631         gl_COMMON.
50632         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
50633
50634 2008-04-11  Bruno Haible  <bruno@clisp.org>
50635
50636         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
50637
50638 2008-04-11  Simon Josefsson  <simon@josefsson.org>
50639
50640         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
50641         of attempting to use non-existing /dev/*random.  Based on patch
50642         from Adam Strzelecki <ono@java.pl> in
50643         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
50644
50645 2008-04-08  Bruno Haible  <bruno@clisp.org>
50646
50647         Add tentative support for emx+gcc.
50648         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
50649         * lib/fpurge.c (fpurge): Likewise.
50650         * lib/freadable.c (freadable): Likewise.
50651         * lib/freadahead.c (freadahead): Likewise.
50652         * lib/freading.c (freading): Likewise.
50653         * lib/freadptr.c (freadptr): Likewise.
50654         * lib/freadseek.c (freadptrinc): Likewise.
50655         * lib/fseeko.c (rpl_fseeko): Likewise.
50656         * lib/fseterr.c (fseterr): Likewise.
50657         * lib/fwritable.c (fwritable): Likewise.
50658         * lib/fwriting.c (fwriting): Likewise.
50659         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
50660
50661 2008-04-09  Eric Blake  <ebb9@byu.net>
50662
50663         Avoid some autoconf warnings.
50664         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
50665         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
50666         * m4/afs.m4 (gl_AFS): Likewise.
50667         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
50668         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
50669         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
50670         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
50671         (gl_INTEGER_TYPE_SUFFIX): Likewise.
50672         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
50673         (AC_CHECK_DECLS_ONCE): Likewise.
50674         Rename file...
50675         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
50676         gnulib-tool requires autoconf 2.59 or better.
50677         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
50678
50679 2008-04-08  Eric Blake  <ebb9@byu.net>
50680
50681         Use 'git describe --match' if present (added in git 1.5.5).
50682         * build-aux/git-version-gen: Limit result to tags that match 'v*'
50683         if possible.
50684
50685 2008-04-08  Bruno Haible  <bruno@clisp.org>
50686
50687         Add tentative support for OpenServer.
50688         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
50689         _ptr, _cnt.
50690         * lib/fpurge.c (fpurge): Likewise.
50691         * lib/freadable.c (freadable): Likewise.
50692         * lib/freadahead.c (freadahead): Likewise.
50693         * lib/freading.c (freading): Likewise.
50694         * lib/freadptr.c (freadptr): Likewise.
50695         * lib/freadseek.c (freadptrinc): Likewise.
50696         * lib/fseeko.c (rpl_fseeko): Likewise.
50697         * lib/fseterr.c (fseterr): Likewise.
50698         * lib/fwritable.c (fwritable): Likewise.
50699         * lib/fwriting.c (fwriting): Likewise.
50700         Reported by Roger Cornelius <rac@tenzing.org> and
50701         Brian K. White <brian@aljex.com>.
50702
50703 2008-04-06  Jim Meyering  <meyering@redhat.com>
50704
50705         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
50706
50707 2008-04-06  Bruno Haible  <bruno@clisp.org>
50708
50709         Avoid possible error with non-ASCII bytes in UTF-8 locales.
50710         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
50711         * tests/test-printf-posix.sh: Likewise.
50712         * tests/test-vfprintf-posix.sh: Likewise.
50713         * tests/test-vprintf-posix.sh: Likewise.
50714         * tests/test-xprintf-posix.sh: Likewise.
50715
50716 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50717
50718         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
50719         hide error from 'ls', needed on OS/2.
50720         Report by Elbert Pol <elbert.pol@gmail.com>.
50721
50722 2008-04-04  Eric Blake  <ebb9@byu.net>
50723
50724         Make test-fseeko.c failures meaningful.
50725         * tests/test-fseeko.c: Print line number on failure.
50726         * tests/test-fseek.c: Likewise.
50727         Reported by Nelson H. F. Beebe.
50728
50729         Improve strtod bug detection check.
50730         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
50731         required for Solaris 10.
50732         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
50733
50734 2008-04-04  Bruno Haible  <bruno@clisp.org>
50735
50736         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
50737         by m4/setenv.m4.
50738
50739 2008-04-03  Eric Blake  <ebb9@byu.net>
50740
50741         Ensure sane .version contents.
50742         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
50743         version string.
50744         * build-aux/git-version-gen: Improve documentation.
50745
50746         Make GNU make output nicer.
50747         * top/GNUmakefile [!_have-Makefile]: Add dependency on
50748         MAKECMDGOALS to enforce message for all command line targets.  Set
50749         srcdir for use in maint.mk.
50750
50751         Another maintainer tweak.
50752         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
50753         a target that regenerates version.
50754
50755 2008-04-03  Jim Meyering  <meyering@redhat.com>
50756
50757         vc-list-files: don't cause coreutils "make po-check" failure
50758         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
50759
50760 2008-04-03  Eric Blake  <ebb9@byu.net>
50761
50762         Allow VPATH usage of vc-list-files.
50763         * build-aux/vc-list-files (scriptversion): Add timestamp.
50764         (options): Add --help, --version, -C.
50765         (CVS): Support installed cvsu.
50766
50767 2008-04-02  Bruno Haible  <bruno@clisp.org>
50768
50769         Avoid some "statement with no effect" warnings from gcc.
50770         * tests/test-wctype.c (main): Explicitly ignore unused values.
50771         Reported by Jim Meyering.
50772
50773 2008-04-02  Jim Meyering  <meyering@redhat.com>
50774
50775         Avoid some warnings from "gcc -Wshadow".
50776         * tests/test-frexp.c (exp): Define to a different identifier.
50777         * tests/test-frexpl.c (exp): Likewise.
50778
50779 2008-04-03  Jim Meyering  <meyering@redhat.com>
50780
50781         bootstrap: remove dangling *.[ch] symlinks from lib
50782         * build-aux/bootstrap [dangling symlink removal]: Move find's
50783         -depth option to precede all others, to avoid a warning.
50784         Remove *.[ch] files too, and from "$source_base" (usually lib/).
50785
50786 2008-04-02  Bruno Haible  <bruno@clisp.org>
50787
50788         Avoid some warnings from "gcc -Wshadow".
50789         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
50790         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
50791         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
50792         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
50793         Reported by Jim Meyering.
50794
50795 2008-04-01  Bruno Haible  <bruno@clisp.org>
50796
50797         Fix test to work on IRIX 6.5 with cc.
50798         * tests/test-math.c (numeric_equal): New function.
50799         (main): Use it.
50800
50801 2008-04-01  Bruno Haible  <bruno@clisp.org>
50802
50803         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
50804
50805 2008-04-01  Bruno Haible  <bruno@clisp.org>
50806
50807         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
50808         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
50809         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
50810         (Depends-on): Remove math.
50811
50812         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
50813         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
50814         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
50815         (Depends-on): Remove math.
50816
50817         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
50818         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
50819         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
50820         (Depends-on): Remove math.
50821         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
50822         (Depends-on): Remove math.
50823
50824         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
50825         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
50826         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
50827         (Depends-on): Remove math.
50828         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
50829         (Depends-on): Remove math.
50830
50831         * tests/test-round1.c: Include nan.h.
50832         (main): Use NaNd instead of NAN.
50833         * modules/round-tests (Files): Add tests/nan.h.
50834
50835         * tests/test-trunc1.c: Include nan.h.
50836         (main): Use NaNd instead of NAN.
50837         * modules/trunc-tests (Files): Add tests/nan.h.
50838
50839         * tests/test-roundf1.c: Include nan.h.
50840         (main): Use NaNf instead of NAN.
50841         * modules/roundf-tests (Files): Add tests/nan.h.
50842
50843         * tests/test-truncf1.c: Include nan.h.
50844         (main): Use NaNf instead of NAN.
50845         * modules/truncf-tests (Files): Add tests/nan.h.
50846
50847         * tests/test-ceilf1.c: Include nan.h.
50848         (main): Use NaNf instead of NAN.
50849         * modules/ceilf-tests (Files): Add tests/nan.h.
50850
50851         * tests/test-floorf1.c: Include nan.h.
50852         (main): Use NaNf instead of NAN.
50853         * modules/floorf-tests (Files): Add tests/nan.h.
50854
50855         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
50856         (main): Use NaNf instead of NAN.
50857         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
50858
50859         * tests/test-isnand.c: Include nan.h instead of <math.h>.
50860         (main): Use NaNd instead of NAN.
50861         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
50862
50863         * tests/test-frexp.c: Include nan.h.
50864         (main): Use NaNd instead of NAN.
50865         * modules/frexp-tests (Files): Add tests/nan.h.
50866
50867         * lib/isnan.c: Don't include <math.h>.
50868         (FUNC): Don't use NAN macro.
50869         * modules/isnand-nolibm (Depends-on): Remove math.
50870         * modules/isnanf-nolibm (Depends-on): Remove math.
50871         * modules/isnanl (Depends-on): Remove math.
50872         * modules/isnanl-nolibm (Depends-on): Remove math.
50873
50874         * tests/nan.h: New file.
50875
50876 2008-04-01  Eric Blake  <ebb9@byu.net>
50877
50878         Fix typos.
50879         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
50880         values to be the right type.
50881
50882         For now, cater to gnulib strtod inaccuracies.
50883         * tests/test-strtod.c (main): Allow 1-ulp error on expected
50884         fractional results.  While not as nice from a QoI perspective, it
50885         is a quicker patch than correctly implementing decimal to binary
50886         rounding.
50887
50888 2008-03-31  Eric Blake  <ebb9@byu.net>
50889
50890         Guarantee a definition of NAN.
50891         * lib/math.in.h (NAN): Define if missing.
50892         * tests/test-math.c (main): Test it.
50893         * doc/posix-headers/math.texi (math.h): Document this.
50894         * lib/isnan.c (rpl_isnand): Use it.
50895         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
50896         * tests/test-floorf1.c (NaN): Likewise.
50897         * tests/test-frexp.c (NaN): Likewise.
50898         * tests/test-isnand.c (NaN): Likewise.
50899         * tests/test-isnanf.c (NaN): Likewise.
50900         * tests/test-round1.c (NaN): Likewise.
50901         * tests/test-roundf1.c (NaN): Likewise.
50902         * tests/test-snprintf-posix.h (NaN): Likewise.
50903         * tests/test-sprintf-posix.h (NaN): Likewise.
50904         * tests/test-trunc1.c (NaN): Likewise.
50905         * tests/test-truncf1.c (NaN): Likewise.
50906         * tests/test-vasnprintf-posix.c (NaN): Likewise.
50907         * tests/test-vasprintf-posix.c (NaN): Likewise.
50908         * modules/isnand-nolibm (Depends-on): Add math.
50909         * modules/isnanf-nolibm (Depends-on): Likewise.
50910         * modules/isnanl (Depends-on): Likewise.
50911         * modules/isnanl-nolibm (Depends-on): Likewise.
50912         * modules/snprintf-posix-tests (Depends-on): Likewise.
50913         * modules/sprintf-posix-tests (Depends-on): Likewise.
50914         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
50915         * modules/vsprintf-posix-tests (Depends-on): Likewise.
50916         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
50917         * modules/vasprintf-posix-tests (Depends-on): Likewise.
50918
50919 2008-03-31  Bruno Haible  <bruno@clisp.org>
50920
50921         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
50922         * doc/posix-functions/strtod.texi: Likewise.
50923
50924 2008-03-31  Bruno Haible  <bruno@clisp.org>
50925
50926         * tests/test-strtod.c (main): Don't use C99 syntax.
50927
50928 2008-03-31  Bruno Haible  <bruno@clisp.org>
50929
50930         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
50931         Reported by Eric Blake.
50932
50933 2008-03-31  Jim Meyering  <meyering@redhat.com>
50934
50935         Don't compare actual signbit return values.
50936         * tests/test-strtod.c (main): Rather, compare only their
50937         zero/non-zero nature.
50938
50939 2008-03-31  Eric Blake  <ebb9@byu.net>
50940
50941         More strtod documentation.
50942         * doc/posix-functions/strtod.texi (strtod): Interpret more test
50943         failures as distinct bugs.
50944
50945 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
50946
50947         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
50948         Problem reported by Erik Benada in
50949         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
50950
50951 2008-03-30  Bruno Haible  <bruno@clisp.org>
50952
50953         * tests/test-strtod.c: Add comments about which assertion fails on which
50954         platform.
50955         * doc/posix-functions/strtod.texi: Add info about many more platforms.
50956
50957 2008-03-30  Eric Blake  <ebb9@byu.net>
50958
50959         Test signbit behavior on zeros.
50960         * tests/test-signbit.c (test_signbitf): Add tests for zero.
50961         (test_signbitd, test_signbitl): Likewise.
50962
50963         More strtod touchups.
50964         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
50965         sign of negative underflow, for now.  Use .5, not .1.
50966         * doc/posix-functions/strtod.texi (strtod): Mention these
50967         limitations.
50968         Reported by Jim Meyering.
50969
50970 2008-03-30  Bruno Haible  <bruno@clisp.org>
50971
50972         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
50973         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
50974
50975 2008-03-30  Bruno Haible  <bruno@clisp.org>
50976
50977         Avoid failure when attempting to return empty iconv results on some
50978         platforms.
50979         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
50980         allocation, don't report ENOMEM when the resulting string is empty.
50981
50982 2008-03-30  Bruno Haible  <bruno@clisp.org>
50983
50984         Fix buffer overrun.
50985         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
50986         Don't consider the width for tmp_length. Check count against tmp_length
50987         before doing the padding. Ensure enough allocation during padding.
50988
50989 2008-03-30  Eric Blake  <ebb9@byu.net>
50990
50991         strtod touchups.
50992         * lib/strtod.c (strtod): Avoid compiler warnings.
50993         Reported by Jim Meyering.
50994
50995 2008-03-30  Bruno Haible  <bruno@clisp.org>
50996
50997         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
50998         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
50999         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
51000         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
51001         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
51002         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
51003         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
51004         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
51005
51006         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
51007         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
51008         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
51009         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
51010         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
51011         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
51012         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
51013         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
51014
51015         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
51016         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
51017         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
51018         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
51019         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
51020         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
51021         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
51022         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
51023
51024         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
51025         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
51026
51027         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
51028         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
51029
51030         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
51031         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
51032
51033         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
51034         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
51035         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
51036
51037         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
51038         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
51039         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
51040
51041         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
51042         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
51043         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
51044
51045         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
51046         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
51047         * modules/vasprintf (Depends-on): Add EOVERFLOW.
51048
51049         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
51050         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
51051         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
51052         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
51053         (Depends-on): Add EOVERFLOW.
51054         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
51055         (Depends-on): Add EOVERFLOW.
51056         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
51057         (Depends-on): Add EOVERFLOW.
51058         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
51059         (Depends-on): Add EOVERFLOW.
51060         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
51061         (Depends-on): Add EOVERFLOW.
51062         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
51063         (Depends-on): Add EOVERFLOW.
51064         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
51065         (Depends-on): Add EOVERFLOW.
51066         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
51067         (Depends-on): Add EOVERFLOW.
51068
51069         * lib/sprintf.c (EOVERFLOW): Remove fallback.
51070         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
51071         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
51072
51073         * lib/snprintf.c (EOVERFLOW): Remove fallback.
51074         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
51075         * modules/snprintf (Depends-on): Add EOVERFLOW.
51076
51077         * lib/poll.c (EOVERFLOW): Remove fallback.
51078         * modules/poll (Depends-on): Add EOVERFLOW.
51079
51080         * lib/getugroups.c (EOVERFLOW): Remove fallback.
51081         * modules/getugroups (Depends-on): Add EOVERFLOW.
51082
51083         * lib/getdelim.c (EOVERFLOW): Remove fallback.
51084         * modules/getdelim (Depends-on): Add EOVERFLOW.
51085
51086         * lib/ftell.c (EOVERFLOW): Remove fallback.
51087         * modules/ftell (Depends-on): Add EOVERFLOW.
51088
51089         * lib/fprintf.c (EOVERFLOW): Remove fallback.
51090         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
51091         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
51092
51093         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
51094
51095         * modules/EOVERFLOW-tests: New file.
51096         * tests/test-EOVERFLOW.c: New file.
51097
51098         * modules/EOVERFLOW: New file.
51099         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
51100
51101 2008-03-30  Bruno Haible  <bruno@clisp.org>
51102
51103         Fix bug introduced on 2007-06-10.
51104         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
51105         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
51106
51107 2008-03-30  Bruno Haible  <bruno@clisp.org>
51108
51109         Improve freadseek's efficiency after ungetc.
51110         * lib/freadseek.c: Include freadahead.h.
51111         (freadptrinc): New function, extracted from freadseek.
51112         (freadseek): Use it in a loop. Use freadahead to determine the number
51113         of loop iterations.
51114         * modules/freadseek (Depends-on): Add freadahead.
51115         (configure.ac): Require AC_C_INLINE.
51116
51117 2008-03-30  Bruno Haible  <bruno@clisp.org>
51118
51119         * lib/freadseek.c (freadseek): Don't ignore the return value of
51120         freadptr.
51121
51122 2008-03-29  Eric Blake  <ebb9@byu.net>
51123
51124         Add hex float support.
51125         * modules/strtod (Depends-on): Add c-ctype.
51126         (Link): Mention POW_LIB.
51127         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
51128         whitespace between 'e' and exponent.
51129         * tests/test-strtod.c (main): Enable hex float tests.
51130         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
51131         now provides.
51132
51133         Document various strtod bugs, with some fixes.
51134         * doc/posix-functions/strtod.texi (strtod): Document bugs with
51135         "-0x", "inf", "nan", and hex constants.
51136         * doc/posix-functions/atof.texi (atof): Likewise.
51137         * modules/stdlib (Makefile.am): Support strtod.
51138         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
51139         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
51140         detect additional strtod bugs.
51141         * lib/stdlib.in.h (rpl_strtod): Add declarations.
51142         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
51143         bool where appropriate.  Parse 'inf' and 'nan'.
51144         * tests/test-strtod.c: New file.
51145         * modules/strtod (Depends-on): Add stdbool, stdlib.
51146         (configure.ac): Turn on module indicator.
51147         * modules/strtod-tests: New module.
51148
51149 2008-03-29  Eric Blake  <ebb9@byu.net>
51150
51151         Fix ftell on mingw.
51152         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
51153         * modules/ftell-tests (Depends-on): Add binary-io.
51154         * modules/ftello-tests (Depends-on): Likewise.
51155         * tests/test-ftell.c (main): Enhance test to cover behavior after
51156         ungetc.  Enforce binary mode.
51157         * tests/test-ftello.c (main): Likewise.
51158
51159         Pass test-freadseek on cygwin.
51160         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
51161         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
51162         ungetc buffer.
51163
51164         * tests/test-fflush2.c (main): Fix typo.
51165
51166 2008-03-29  Bruno Haible  <bruno@clisp.org>
51167
51168         * tests/test-fflush2.c (main): Temporarily disable the contents of
51169         this test.
51170         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
51171         Reported by Eric Blake.
51172
51173 2008-03-28  Simon Josefsson  <simon@josefsson.org>
51174
51175         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
51176         (GC_SHA224_DIGEST_SIZE): Add.
51177
51178         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
51179         (gc_hash_digest_length): Likewise.
51180         (gc_hash_buffer): Likewise.
51181
51182 2008-03-25  Bruno Haible  <bruno@clisp.org>
51183
51184         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
51185         detail which gettext release to use.
51186         Reported by Simon Josefsson.
51187
51188 2008-03-26  Jim Meyering  <meyering@redhat.com>
51189
51190         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
51191         * modules/gnumakefile (clean-GNUmakefile): Also, use
51192         test ... && ... || : syntax rather than if-then ... fi.
51193
51194         gnumakefile: Don't double-quote-expand $(VPATH) value.
51195         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
51196
51197 2008-03-24  Eric Blake  <ebb9@byu.net>
51198
51199         Alter GNUmakefile to install into top directory.
51200         * modules/maintainer-makefile: Split, and add dependency...
51201         * modules/gnumakefile: to this new module.
51202         * build-aux/GNUmakefile: Move...
51203         * top/GNUmakefile: ...here.
51204         * build-aux/maint.mk: Move...
51205         * top/maint.mk: ...here.
51206         * MODULES.html.sh (Support for maintaining...): Document new
51207         module.
51208
51209 2008-03-23  Bruno Haible  <bruno@clisp.org>
51210
51211         * gnulib-tool: New options --vc-files, --no-vc-files.
51212         (func_usage): Document them.
51213         (vc_files): New variable.
51214         (func_import): Consider vc_files.
51215         (func_create_testdir): Set vc_files to empty.
51216         Suggested by Jim Meyering and Karl Berry.
51217
51218 2008-03-23  Bruno Haible  <bruno@clisp.org>
51219
51220         Fix regex compilation error on HP-UX 11.
51221         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
51222         * modules/regex (Files): Add m4/mbstate_t.m4.
51223         Reported by Ton Voon <ton.voon@altinity.com>.
51224
51225 2008-03-23  Bruno Haible  <bruno@clisp.org>
51226
51227         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
51228
51229 2008-03-23  Eric Blake  <ebb9@byu.net>
51230             Bruno Haible  <bruno@clisp.org>
51231
51232         Install files from top/ in the destination directory.
51233         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
51234         augmentation also for the files from top/.
51235         (func_import, func_create_testdir): Rewrite file names:
51236         top/filename -> filename.
51237
51238 2008-03-23  Bruno Haible  <bruno@clisp.org>
51239
51240         Tweak "gnulib --version" output.
51241         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
51242
51243 2008-03-23  Bruno Haible  <bruno@clisp.org>
51244
51245         Tweak "gnulib --version" output.
51246         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
51247         rather than contents of ChangeLog, when possible.
51248
51249 2008-03-21  Eric Blake  <ebb9@byu.net>
51250
51251         More --version tweaks.
51252         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
51253         date of last ChangeLog entry.
51254
51255 2008-03-21  Jim Meyering  <meyering@redhat.com>
51256
51257         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
51258
51259 2008-03-20  Eric Blake  <ebb9@byu.net>
51260
51261         VPATH fix.
51262         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
51263
51264 2008-03-20  Simon Josefsson  <simon@josefsson.org>
51265
51266         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
51267         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
51268
51269 2008-03-20  Eric Blake  <ebb9@byu.net>
51270
51271         Sync GNUmakefile with coreutils.
51272         * build-aux/GNUmakefile (have-Makefile): Rename...
51273         (_have-Makefile): ...to this, for namespace consideration.
51274         (GNUmakefile.cfg): Include, if present.
51275         (_autoreconf): Define a default.
51276         (_is-dist-target): New rule for rebuilds to pick up intra-release
51277         version.
51278         (maint-cfg.mk): Rename...
51279         (cfg.mk): ...to this.
51280
51281 2008-03-18  Jim Meyering  <meyering@redhat.com>
51282
51283         New script and module: mktempd
51284         * MODULES.html.sh (maint+release support): Add mktempd.
51285         * build-aux/mktempd: New file.
51286         * modules/mktempd: New file.
51287
51288 2008-03-15  Jim Meyering  <meyering@redhat.com>
51289
51290         Undo last change.
51291         * lib/sha1.c, lib/md5.c: 63 != ~63.
51292         Reported by Andreas Schwab.
51293
51294         sha1.c, md5.c: Hoist a redundant expression.
51295         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
51296         "ctx->buflen" only once, before calling *_process_block.
51297         * lib/md5.c (md5_process_bytes): Likewise.
51298
51299 2008-03-14  Eric Blake  <ebb9@byu.net>
51300
51301         Bump copyright year in files generated by gnulib-tool.
51302         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
51303         gnulib-tool, rather than hard-coding it.
51304
51305         Fix 'gnulib-tool --version' output to work with git.
51306         * gnulib-tool (func_gnulib_dir): New function, extracted from...
51307         (startup): ...here.
51308         (func_version): Use it to invoke git-version-gen, rather than
51309         relying on CVS keyword expansion.  Modernize wording.
51310         (cvsdatestamp, last_checkin_date, version): Kill unused
51311         variables.
51312
51313 2008-03-12  Jim Meyering  <meyering@redhat.com>
51314
51315         Recognize optional cast of the argument to free.
51316         * build-aux/useless-if-before-free: Update regexps.
51317
51318         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
51319
51320 2008-03-11  Bruno Haible  <bruno@clisp.org>
51321
51322         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
51323         by a single package.
51324         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
51325         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
51326         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
51327         Reported by Sam Steingold <sds@gnu.org>.
51328
51329 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
51330
51331         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
51332         repositories.
51333
51334 2008-03-11  Bruno Haible  <bruno@clisp.org>
51335
51336         Avoid conflicts between local macro definitions.
51337         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
51338         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
51339
51340 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
51341             Bruno Haible  <bruno@clisp.org>
51342
51343         Make va_copy work with some version of xlc on AIX 5.1.
51344         * lib/stdarg.in.h: New file.
51345         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
51346         On AIX, use a <stdarg.h> file substitute.
51347         * modules/stdarg (Files): Add lib/stdarg.in.h.
51348         (Depends-on): Add include_next.
51349         (Makefile.am): Build a stdarg.h substitute if requested.
51350         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
51351
51352 2008-03-10  Bruno Haible  <bruno@clisp.org>
51353
51354         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
51355         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
51356         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
51357
51358 2008-03-10  Bruno Haible  <bruno@clisp.org>
51359
51360         * modules/stdlib (Depends-on): Add include_next, remove
51361         absolute-header.
51362
51363 2008-03-09  Bruno Haible  <bruno@clisp.org>
51364
51365         * lib/freadahead.h (freadahead): Document more precisely.
51366         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
51367         the sum of both buffer sizes.
51368         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
51369         * NEWS: Document the change.
51370
51371 2008-03-09  Bruno Haible  <bruno@clisp.org>
51372
51373         Extend freadptr to return also the buffer size.
51374         * lib/freadptr.h (freadptr): Add sizep argument.
51375         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
51376         (freadptr): Add sizep argument. Determine buffer size like freadahead
51377         does.
51378         * tests/test-freadptr.c: Don't include freadahead.h.
51379         (main): Adapt for new calling convention of freadptr.
51380         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
51381         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
51382         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
51383         tests/test-freadptr2.sh.
51384         (Depends): Remove freadahead.
51385         (TESTS): Add test-freadptr2.sh.
51386         (check_PROGRAMS): Add test-freadptr2.
51387
51388 2008-03-09  Bruno Haible  <bruno@clisp.org>
51389
51390         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
51391         Report and solution by Simon Josefsson.
51392
51393 2008-03-06  Bruno Haible  <bruno@clisp.org>
51394
51395         Make fflush after ungetc work on BSD platforms.
51396         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
51397         * tests/test-fflush2.c: New file.
51398         * tests/test-fflush2.sh: New file.
51399         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
51400         tests/test-fflush2.c.
51401         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
51402         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
51403
51404 2008-03-06  Eric Blake  <ebb9@byu.net>
51405
51406         Likewise for ftello.
51407         * modules/ftello (Dependencies): Add extensions.
51408         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
51409
51410 2008-03-06  Bruno Haible  <bruno@clisp.org>
51411
51412         * modules/fseeko (Dependencies): Add extensions.
51413         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
51414         Needed on glibc systems.
51415
51416 2008-03-06  Bruno Haible  <bruno@clisp.org>
51417
51418         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
51419         email address.
51420         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
51421
51422 2008-03-06  Bruno Haible  <bruno@clisp.org>
51423
51424         * users.txt: Add libgnupdf.
51425
51426 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
51427
51428         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
51429         (Header File Substitutes, Function Substitutes,
51430         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
51431         (Build robot for gnulib): Fix typo.
51432
51433 2008-03-06  Bruno Haible  <bruno@clisp.org>
51434
51435         * doc/gnulib-tool.texi (VCS Issues): Small updates.
51436         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
51437
51438 2008-03-06  Bruno Haible  <bruno@clisp.org>
51439
51440         * doc/func.texi: New file, extracted from doc/gnulib.texi.
51441         * doc/gnulib.texi: Include it.
51442
51443 2008-03-06  Simon Josefsson  <simon@josefsson.org>
51444
51445         * modules/func (License): Change license to unlimited; there was
51446         no LGPL parts in the module anyway.
51447
51448 2008-03-06  Simon Josefsson  <simon@josefsson.org>
51449
51450         * modules/__func__: Renamed to modules/func.
51451         * modules/__func__-tests: Renamed to modules/func-tests.
51452         * tests/test-__func__.c: Renamed to tests/test-func.c.
51453         * m4/__func__.m4: Renamed to m4/func.m4.
51454         * doc/gnulib.texi (__func__): Section renamed to func.
51455         Suggested by Eric Blake <ebb9@byu.net>.
51456
51457 2008-03-06  Simon Josefsson  <simon@josefsson.org>
51458
51459         * doc/gnulib.texi (__func__): Use C99 terminology when talking
51460         about __func__.  Make example self-contained.  Suggested by Eric
51461         Blake <ebb9@byu.net>.
51462
51463         * tests/test-__func__.c (main): Avoid extraneous () around __func.
51464         Suggested by Eric Blake <ebb9@byu.net>.
51465
51466 2008-03-06  Simon Josefsson  <simon@josefsson.org>
51467
51468         * modules/__func__: New file.
51469         * modules/__func__-tests: New file.
51470         * tests/test-__func__.c: New file.
51471         * m4/__func__.m4: New file.
51472         * doc/gnulib.texi (__func__): Document __func__ module.
51473
51474 2008-03-05  Simon Josefsson  <simon@josefsson.org>
51475
51476         * modules/byteswap (License): Re-license as LGPLv2+.
51477
51478 2008-03-05  Simon Josefsson  <simon@josefsson.org>
51479
51480         * doc/Makefile: Add pdf target.
51481
51482 2008-03-05  Simon Josefsson  <simon@josefsson.org>
51483
51484         * modules/inline (License): Use 'unlimited', since there are only
51485         *.m4 files in this module.
51486
51487 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
51488             Bruno Haible  <bruno@clisp.org>
51489
51490         Add support for HP C 7.1 on OpenVMS 8.3.
51491         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
51492
51493 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
51494
51495         Update VMS specifics.
51496         * lib/getopt.c [VMS]: Remove include of unixlib.h.
51497
51498 2008-03-02  Jim Meyering  <meyering@redhat.com>
51499
51500         Remove the last dependency on the "free" module.
51501         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
51502         Reported by Bob Proulx.
51503
51504         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
51505
51506         Remove useless "if" tests before free.  Deprecate "free" module.
51507         * doc/posix-functions/free.texi: Mention that this
51508         module is no longer useful.
51509         * modules/free (Notice): Say this module is obsolete.
51510         * modules/readutmp (Depends-on): Remove free.
51511         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
51512         * lib/putenv.c (putenv): Likewise.
51513         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
51514         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
51515         * tests/test-c-strcasestr.c (main): Likewise.
51516         * tests/test-c-strstr.c (main): Likewise.
51517         * tests/test-mbscasestr1.c (main): Likewise.
51518         * tests/test-mbscasestr2.c (main): Likewise.
51519         * tests/test-mbsstr1.c (main): Likewise.
51520         * tests/test-mbsstr2.c (main): Likewise.
51521         * tests/test-memmem.c (main): Likewise.
51522         * tests/test-strcasestr.c (main): Likewise.
51523         * tests/test-striconv.c (main): Likewise.
51524         * tests/test-striconveh.c (main): Likewise.
51525         * tests/test-striconveha.c (main): Likewise.
51526         * tests/test-strstr.c (main): Likewise.
51527
51528         * build-aux/git-version-gen: Adjust a comment and the Usage string.
51529
51530         bootstrap: sync from coreutils again
51531         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
51532
51533 2008-03-01  Jim Meyering  <meyering@redhat.com>
51534
51535         bootstrap: sync from coreutils
51536         * build-aux/bootstrap (update_po_files): Copy a .po file into place
51537         also when the target doesn't exist.
51538
51539 2008-03-01  Eric Blake  <ebb9@byu.net>
51540
51541         Fix bugs in last patch.
51542         * lib/memchr2.c (memchr2): Fix typo.
51543         * tests/test-memchr2.c: Test previous bug, and don't use GNU
51544         extension.
51545         Reported by Bruce Korb.
51546
51547         New module 'memchr2'.
51548         * modules/memchr2: New file.
51549         * modules/memchr2-tests: Likewise.
51550         * lib/memchr2.h: Likewise.
51551         * lib/memchr2.c: Likewise, based on memchr.c.
51552         * tests/test-memchr2.c: New test.
51553         * MODULES.html.sh (String handling): Add memchr2.
51554
51555 2008-02-29  Bruno Haible  <bruno@clisp.org>
51556
51557         * modules/freadseek-tests: New file.
51558         * tests/test-freadseek.sh: New file.
51559         * tests/test-freadseek.c: New file.
51560
51561         New module 'freadseek'.
51562         * modules/freadseek: New file.
51563         * lib/freadseek.h: New file.
51564         * lib/freadseek.c: New file.
51565         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
51566
51567 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
51568
51569         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
51570         wydawca.
51571
51572         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
51573         program_invocation_name and program_invocation_short_name are
51574         present.
51575
51576 2008-02-28  Bruno Haible  <bruno@clisp.org>
51577
51578         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
51579         * tests/test-freadptr.sh: Also test non-seekable stdin.
51580
51581 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
51582
51583         * build-aux/bootstrap (source_base, m4_base)
51584         (doc_base, tests_base): New variables.
51585         (gnulib_tool_options): Do not hardcode base directories, use
51586         the above variables instead.
51587
51588 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
51589
51590         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
51591
51592 2008-02-28  Bruno Haible  <bruno@clisp.org>
51593
51594         * modules/freadptr-tests: New file.
51595         * tests/test-freadptr.sh: New file.
51596         * tests/test-freadptr.c: New file.
51597
51598         New module 'freadptr'.
51599         * modules/freadptr: New file.
51600         * lib/freadptr.h: New file.
51601         * lib/freadptr.c: New file.
51602         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
51603
51604 2008-02-26  Karl Berry  <karl@freefriends.org>
51605
51606         Sync from Libtool:
51607         * libltdl/argz.c (argz_add, argz_count): New functions.
51608         * libltdl/argz.in.h: Declare them.
51609         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
51610
51611 2008-02-22  Bruno Haible  <bruno@clisp.org>
51612
51613         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
51614         is a pointer type.  Needed for HP-UX 10.
51615         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
51616         * doc/posix-functions/gmtime_r.texi: Likewise.
51617         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
51618
51619 2008-02-24  Bruno Haible  <bruno@clisp.org>
51620
51621         * modules/environ-tests: New file.
51622         * tests/test-environ.c: New file.
51623
51624         New module 'environ'.
51625         * modules/environ: New file.
51626         * lib/unistd.in.h (environ): New declaration.
51627         * m4/environ.m4: New file.
51628         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
51629         after use.
51630         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
51631         HAVE_DECL_ENVIRON.
51632         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
51633         HAVE_DECL_ENVIRON.
51634         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
51635         wrong claim that 'environ' is missing on some systems.
51636         * modules/execute (Depends-on): Add environ.
51637         * lib/execute.c (environ): Remove fallback declaration.
51638         * modules/pipe (Depends-on): Add environ.
51639         * lib/pipe.c (environ): Remove fallback declaration.
51640         * modules/setenv (Depends-on): Add environ.
51641         * lib/setenv.c (environ): Remove fallback declaration.
51642         * modules/unsetenv (Depends-on): Add environ.
51643         * lib/unsetenv.c (environ): Remove fallback declaration.
51644         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
51645         m4/environ.m4.
51646         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
51647         (gl_PREREQ_UNSETENV): Likewise.
51648
51649 2008-02-24  Bruno Haible  <bruno@clisp.org>
51650
51651         * doc/posix-functions/environ.texi: Document the MacOS X problem.
51652
51653 2008-02-20  Bob Proulx  <bob@proulx.com>
51654
51655         Enable use of older two part flavor 'git describe'.
51656         * build-aux/git-version-gen: If using the older two part flavor of
51657         git version then recreate the third part now present in the
51658         newer three part flavor of git describe.
51659
51660 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
51661
51662         * lib/fts.c (fts_build): Typo correction to comment.
51663
51664 2008-02-17  Bruno Haible  <bruno@clisp.org>
51665
51666         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
51667         generating no-op conflicts.
51668
51669 2008-02-17  Bruno Haible  <bruno@clisp.org>
51670
51671         Speed up by 10%.
51672         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
51673         result_entries, rather than an index-based loop.
51674
51675 2008-02-17  Bruno Haible  <bruno@clisp.org>
51676
51677         Speed up by 25%.
51678         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
51679         'hashcode_cached'.
51680         (entry_create): New function.
51681         (entry_hashcode): Use the cached hashcode if possible.
51682         (read_changelog_file, try_split_merged_entry): Use entry_create.
51683
51684 2008-02-17  Bruno Haible  <bruno@clisp.org>
51685
51686         Speed up from O(n^2) to O(n) for long ChangeLog files.
51687         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
51688         (read_changelog_file): Change implementation of entries_reversed list
51689         to rbtreehash.
51690         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
51691
51692 2008-02-17  Bruno Haible  <bruno@clisp.org>
51693
51694         New option --split-merged-entry.
51695         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
51696         (find_paragraph_end, try_split_merged_entry): New functions.
51697         (long_options): Add option --split-merged-entry.
51698         (usage): Document option --split-merged-entry.
51699         (main): Implement option --split-merged-entry.
51700         Reported by Eric Blake.
51701
51702 2008-02-17  Bruno Haible  <bruno@clisp.org>
51703
51704         * lib/git-merge-changelog.c: Include c-strstr.h.
51705         (main): Support the "git pull --rebase" situation.
51706         * modules/git-merge-changelog (Depends-on): Add c-strstr.
51707         Reported by Eric Blake.
51708
51709 2008-02-16  Eric Blake  <ebb9@byu.net>
51710
51711         Avoid doubling \ in common case of "c-maybe" quoting style.
51712         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
51713         eliding outer quotes.
51714         * lib/quotearg.h: Document this.
51715         * tests/test-quotearg.c (result_strings, inputs, results_g)
51716         (flag_results, locale_results): Test it by adding a new string to
51717         each test group.
51718         (compare_strings): Test new string.
51719
51720 2008-02-13  Eric Blake  <ebb9@byu.net>
51721
51722         Avoid trigraph quoting in default output.
51723         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
51724         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
51725         unless explicitly requested.
51726         * tests/test-quotearg.c (flag_results, main): Add additional tests.
51727
51728 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
51729
51730         Don't rely on signed integer overflowing to negative value.
51731         * lib/getugroups.c (getugroups): Include <limits.h>.
51732         Instead, compare against INT_MAX, and increment only if the test passes.
51733
51734 2008-02-13  Jim Meyering  <meyering@redhat.com>
51735         and Eric Blake  <ebb9@byu.net>
51736
51737         Avoid shadowing warning and compile errors on Linux.
51738         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
51739         forwarding macros on Linux.
51740         (dcgettext): Define a stub, for Linux.
51741         (results_g, main): Avoid warnings.
51742
51743 2008-02-12  Eric Blake  <ebb9@byu.net>
51744
51745         Silence warning in last patch.
51746         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
51747
51748         Quotearg part 4: add tests, fix c-maybe colon quoting.
51749         * lib/quotearg.h: Improve documentation.
51750         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
51751         escapes when adding outer quotes.  When quoting trigraphs, use
51752         valid C notation.  When quoting NUL, omit extra characters if next
51753         character is not digit.  Alter prototype.
51754         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
51755         callers.
51756         * modules/quotearg-tests: New module.
51757         * tests/test-quotearg.c: New test.
51758
51759 2008-02-07  Eric Blake  <ebb9@byu.net>
51760
51761         Quotearg part 3: add flag to control outer quote elision.
51762         * lib/quotearg.h (c_maybe_quoting_style): New style.
51763         (enum quoting_flags): Better documentation of flags.
51764         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
51765         c-maybe style.
51766         (quotearg_buffer_restyled): Handle new flag to elide outer
51767         quotes.
51768
51769         Quotearg part 2: add flag that can control NUL elision.
51770         * lib/quotearg.h (set_quoting_flags): New prototype.
51771         * lib/quotearg.c (struct quoting_options): Add flag field.
51772         (set_quoting_flags): New function.
51773         (quotearg_buffer_restyled): Add flags parameter.
51774         (quotearg_alloc_mem): Set the flag if length cannot be returned.
51775         (quotearg_n_options): Set the flag, since length cannot be
51776         returned.
51777         (quoting_options_from_style): Default flags correctly.
51778
51779         Quotearg part 1: more wrappers, restore quotearg_char state.
51780         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
51781         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
51782         (quotearg_colon_mem): New wrappers.
51783         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
51784         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
51785         functions.
51786         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
51787         (quotearg_colon_mem): New functions.
51788
51789 2008-02-11  Bruno Haible  <bruno@clisp.org>
51790
51791         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
51792         library in the current directory: it does not work with parallel make.
51793         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51794
51795 2008-02-11  Bruno Haible  <bruno@clisp.org>
51796
51797         * .gitattributes: New file.
51798
51799 2008-02-11  Jim Meyering  <meyering@redhat.com>
51800
51801         useless-if-before-free: Fix reversed exit values.
51802         * build-aux/useless-if-before-free: Use correct values
51803         for EXIT_MATCH and EXIT_NO_MATCH.
51804
51805         * build-aux/useless-if-before-free: Close stdout carefully.
51806
51807 2008-02-10  Bruno Haible  <bruno@clisp.org>
51808
51809         New module 'git-merge-changelog'.
51810         * modules/git-merge-changelog: New file.
51811         * lib/git-merge-changelog.c: New file.
51812
51813 2008-02-10  Jim Meyering  <meyering@redhat.com>
51814
51815         useless-if-before-free: New option: --list (-l).
51816
51817         useless-if-before-free: Don't exit immediately upon open failure.
51818         * build-aux/useless-if-before-free: Exit 2 for errors.
51819         Upon failure to open a file, don't exit immediately.
51820         Rather, just warn and continue with any remaining files.
51821
51822 2008-02-10  Bruno Haible  <bruno@clisp.org>
51823
51824         New abstract list operation 'node_set_value'.
51825         * lib/gl_list.h (gl_list_node_set_value): New function.
51826         (struct gl_list_implementation): New field node_set_value.
51827         * lib/gl_list.c (gl_list_node_set_value): New function.
51828         * lib/gl_array_list.c (gl_array_node_set_value): New function.
51829         (gl_array_list_implementation): Update.
51830         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
51831         (gl_carray_list_implementation): Update.
51832         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
51833         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
51834         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
51835         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
51836         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
51837         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
51838         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
51839         Update.
51840         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
51841         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
51842         (gl_sublist_list_implementation): Update.
51843
51844 2008-02-10  Bruno Haible  <bruno@clisp.org>
51845
51846         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
51847         Needed when ELEMENT is #defined to 'some_type *'.
51848
51849 2008-02-10  Jim Meyering  <meyering@redhat.com>
51850
51851         New script and module: useless-if-before-free
51852         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
51853         * build-aux/useless-if-before-free: New file.
51854         * modules/useless-if-before-free: New file.
51855
51856         * build-aux/gitlog-to-changelog: Use committer date, not author date.
51857
51858         xstrtol_error: Fix typo.
51859         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
51860         s/exit_failure/exit_status/.
51861
51862 2008-02-09  Jim Meyering  <meyering@redhat.com>
51863
51864         New script and module: gitlog-to-changelog
51865         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
51866         * modules/gitlog-to-changelog: New file.
51867         * build-aux/gitlog-to-changelog: New file.
51868
51869 2008-02-08  Jim Meyering  <meyering@redhat.com>
51870
51871         Avoid two "parameter unused" warnings.
51872         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
51873         Mark "st" as used.
51874
51875         Use "git COMMAND", not "git-COMMAND".
51876         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
51877         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
51878         * build-aux/git-version-gen: Use "git status", not "git-status".
51879
51880 2008-02-07  Bruno Haible  <bruno@clisp.org>
51881
51882         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
51883         Avoids a crash on Windows Vista.
51884         Reported by Adam Strzelecki <ono@java.pl> via
51885         Simon Josefsson <simon@josefsson.org>.
51886
51887 2008-02-06  Bruno Haible  <bruno@clisp.org>
51888
51889         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
51890         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
51891         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
51892         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
51893         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
51894         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
51895         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
51896         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
51897         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
51898         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51899         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51900         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51901         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
51902         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51903         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51904         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
51905         left-adjust flag.
51906         * tests/test-snprintf-posix.h (test_function): Likewise.
51907         * tests/test-sprintf-posix.h (test_function): Likewise.
51908         * tests/test-vasprintf-posix.c (test_function): Likewise.
51909         * doc/posix-functions/fprintf.texi: Update.
51910         * doc/posix-functions/printf.texi: Update.
51911         * doc/posix-functions/snprintf.texi: Update.
51912         * doc/posix-functions/sprintf.texi: Update.
51913         * doc/posix-functions/vfprintf.texi: Update.
51914         * doc/posix-functions/vprintf.texi: Update.
51915         * doc/posix-functions/vsnprintf.texi: Update.
51916         * doc/posix-functions/vsprintf.texi: Update.
51917         Reported by Peter Fales <psfales@alcatel-lucent.com>.
51918
51919 2008-02-06  Bruno Haible  <bruno@clisp.org>
51920
51921         Fix bug introduced on 2008-01-26.
51922         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
51923
51924 2008-02-06  Bruno Haible  <bruno@clisp.org>
51925
51926         Fix bug introduced on 2007-06-10.
51927         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
51928         !NEED_PRINTF_FLAG_ZERO.
51929
51930 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
51931
51932         getloadavg: use libperfstat on AIX5
51933         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
51934
51935 2008-02-03  Bruno Haible  <bruno@clisp.org>
51936
51937         * lib/diffseq.h: Add comments about required #includes.
51938         Reported by Michael Biggs <gnulib@doubleplum.net>.
51939
51940 2008-02-01  Bruno Haible  <bruno@clisp.org>
51941
51942         * users.txt: Add gnuit.
51943
51944 2008-01-31  Bruno Haible  <bruno@clisp.org>
51945
51946         * lib/md4.c (set_uint32): Mark as inline.
51947         * lib/md5.c (set_uint32): Likewise.
51948         * lib/sha1.c (set_uint32): Likewise.
51949         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
51950         * m4/md5.m4 (gl_MD5): Likewise.
51951         * m4/sha1.m4 (gl_SHA1): Likewise.
51952
51953 2008-01-31  Jim Meyering  <meyering@redhat.com>
51954
51955         Use "sizeof VAR", rather than a literal "4".
51956         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
51957         * lib/md4.c (md4_read_ctx): Likewise.
51958         * lib/sha1.c (sha1_read_ctx): Likewise.
51959
51960 2008-01-31  Simon Josefsson  <simon@josefsson.org>
51961
51962         * tests/test-sha1.c: New file, based on test-md5.c.
51963
51964         * modules/crypto/sha1-tests: New file.
51965
51966 2008-01-31  Simon Josefsson  <simon@josefsson.org>
51967
51968         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
51969
51970 2008-01-31  Jim Meyering  <meyering@redhat.com>
51971
51972         Prefer "sizeof v" over the equivalent "4".
51973         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
51974         * lib/md5.c (set_uint32): Likewise.
51975         * lib/sha1.c (set_uint32): Likewise.
51976
51977 2008-01-31  Simon Josefsson  <simon@josefsson.org>
51978
51979         * lib/sha1.c (set_uint32): Mark function as static.
51980
51981 2008-01-31  Simon Josefsson  <simon@josefsson.org>
51982
51983         md2: clarify comments to say that alignment is not required.
51984         * lib/md2.h: Remove warning about alignment in comment.
51985         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
51986         never been required.
51987
51988 2008-01-31  Simon Josefsson  <simon@josefsson.org>
51989
51990         md4: adapt alignment constraint fix from sha1.
51991         * lib/md4.c (set_uint32): New function, from sha1.c
51992         (md4_read_ctx): Use it.
51993         (md4_finish_ctx): Doc fix.
51994         * lib/md4.h: Doc fix.
51995
51996 2008-01-31  Simon Josefsson  <simon@josefsson.org>
51997
51998         md5: adapt alignment constraint fix from sha1.
51999         * lib/md5.c (set_uint32): New function, from sha1.c
52000         (md5_read_ctx): Use it.
52001         (md5_finish_ctx): Doc fix.
52002         * lib/md5.h: Doc fix.
52003
52004 2008-01-30  Peter Palfrader  <weasel@debian.org>
52005
52006         sha1: remove the result buffer alignment constraint
52007         * lib/sha1.c (set_uint32): New function.
52008         (sha1_read_ctx): Rewrite to remove the result buffer alignment
52009         constraint.
52010         (sha1_finish_ctx): Remove comment warning about alignment constraint.
52011         * lib/sha1.h: Likewise.
52012
52013 2008-01-30  Andreas Schwab  <schwab@suse.de>
52014             Bruno Haible  <bruno@clisp.org>
52015
52016         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
52017         correct definition of LDBL_MIN_EXP.
52018
52019 2008-01-30  Karl Berry  <karl@gnu.org>
52020
52021         * config/srclist-update: try to preserve x bit on updates.
52022         * config/srclistvars.sh: update for karl.
52023
52024 2008-01-29  Jim Meyering  <meyering@redhat.com>
52025
52026         vasnprintf.c: Avoid warning about unused label
52027         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
52028         "overflow" label definition and associated code with the
52029         same cpp condition that guards the sole use of that label.
52030
52031 2008-01-26  Bruno Haible  <bruno@clisp.org>
52032
52033         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
52034         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
52035         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
52036         * lib/isnanl-nolibm.h (isnanl): Likewise.
52037         Reported by Paul Eggert <eggert@cs.ucla.edu>.
52038
52039 2008-01-26  Bruno Haible  <bruno@clisp.org>
52040
52041         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
52042         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
52043
52044 2008-01-26  Bruno Haible  <bruno@clisp.org>
52045
52046         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
52047         GCC >= 4.0 built-in.
52048         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
52049
52050 2008-01-26  Bruno Haible  <bruno@clisp.org>
52051
52052         Rename isnan, applicable to 'double' only, to isnand.
52053         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
52054         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
52055         (configure.ac): Update.
52056         (Include): Replace "isnan.h" with "isnand.h".
52057         * m4/isnand.m4: Renamed from m4/isnan.m4.
52058         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
52059         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
52060         instead of isnan.c.
52061         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
52062         instead of HAVE_ISNAN_IN_LIBC.
52063         (isnand): Renamed from isnan.
52064         * lib/isnand.c: New file.
52065         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
52066         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
52067         (Makefile.am): Update.
52068         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
52069         Include isnand.h instead of isnan.h.
52070         (main): Test isnand instead of isnan.
52071         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
52072         isnan-nolibm.
52073         * modules/frexp (Depends-on): Likewise.
52074         * modules/frexp-tests (Depends-on): Likewise.
52075         * modules/frexp-nolibm (Depends-on): Likewise.
52076         * modules/frexp-nolibm-tests (Depends-on): Likewise.
52077         * modules/isfinite (Depends-on): Likewise.
52078         * modules/round-tests (Depends-on): Likewise.
52079         * modules/signbit (Depends-on): Likewise.
52080         * modules/signbit-tests (Depends-on): Likewise.
52081         * modules/snprintf-posix (Depends-on): Likewise.
52082         * modules/sprintf-posix (Depends-on): Likewise.
52083         * modules/trunc-tests (Depends-on): Likewise.
52084         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
52085         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
52086         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
52087         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
52088         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
52089         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
52090         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
52091         * modules/vasnprintf-posix (Depends-on): Likewise.
52092         * modules/vasprintf-posix (Depends-on): Likewise.
52093         * modules/vfprintf-posix (Depends-on): Likewise.
52094         * modules/vsnprintf-posix (Depends-on): Likewise.
52095         * modules/vsprintf-posix (Depends-on): Likewise.
52096         * lib/frexp.c: Include isnand.h instead of isnan.h.
52097         (ISNAN): Set to isnand instead of isnan.
52098         * lib/isfinite.c: Include isnand.h instead of isnan.h.
52099         (gl_isfinited): Use isnand instead of isnan.
52100         * lib/signbitd.c: Include isnand.h instead of isnan.h.
52101         (gl_signbitd): Use isnand instead of isnan.
52102         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
52103         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
52104         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
52105         (main): Use isnand instead of isnan.
52106         * tests/test-round1.c: Include isnand.h.
52107         (main): Use isnand instead of isnan.
52108         * tests/test-round2.c: Include isnand.h instead of isnan.h.
52109         (ISNAN): Set to isnand instead of isnan.
52110         * tests/test-trunc1.c: Include isnand.h.
52111         (main): Use isnand instead of isnan.
52112         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
52113         (equal): Use isnand instead of isnan.
52114         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
52115         isnand-nolibm.
52116         * NEWS: Mention the change.
52117
52118 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
52119             Bruno Haible  <bruno@clisp.org>
52120
52121         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
52122         the GCC builtins for signbits are present and set
52123         REPLACE_SIGNBIT_USING_GCC if so.
52124         * lib/math.in.h (signbit): Define using GCC builtins if
52125         REPLACE_SIGNBIT_USING_GCC is set.
52126         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
52127         REPLACE_SIGNBIT_USING_GCC.
52128         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
52129
52130 2008-01-25  Jim Meyering  <meyering@redhat.com>
52131
52132         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
52133         * lib/poll.c: Include <config.h>, not "config.h".
52134         * tests/test-getaddrinfo.c: Likewise.
52135
52136 2008-01-25  Simon Josefsson  <simon@josefsson.org>
52137
52138         * modules/sockets-tests: New file.
52139
52140 2008-01-24  Simon Josefsson  <simon@josefsson.org>
52141
52142         * modules/sockets: New module, can be used to call WSA_Startup and
52143         WSA_Cleanup when needed.
52144
52145         * lib/sockets.h, lib/sockets.c: New files.
52146
52147         * m4/sockets.m4: New file.
52148
52149         * tests/test-sockets.c: New file.
52150
52151 2008-01-19  Bruno Haible  <bruno@clisp.org>
52152
52153         * doc/posix-headers: Renamed from doc/headers.
52154         * doc/posix-functions: Renamed from doc/functions.
52155         * doc/gnulib.texi: Update.
52156
52157 2008-01-19  Bruno Haible  <bruno@clisp.org>
52158
52159         * doc/glibc-functions/strcasestr.texi: Include contents of
52160         doc/functions/strcasestr.texi, fixing the list of platforms.
52161         * doc/functions/strcasestr.texi: Remove file.
52162
52163 2008-01-19  Bruno Haible  <bruno@clisp.org>
52164
52165         * doc/glibc-functions/memmem.texi: Include contents of
52166         doc/functions/memmem.texi.
52167         * doc/functions/memmem.texi: Remove file.
52168
52169 2008-01-18  Bruno Haible  <bruno@clisp.org>
52170
52171         * doc/glibc-functions/*.texi: New files.
52172         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
52173         to use the new files.
52174
52175 2008-01-17  Bruno Haible  <bruno@clisp.org>
52176
52177         * tests/test-gethostname.c (main): Fix printf statement.
52178
52179 2008-01-17  Simon Josefsson  <simon@josefsson.org>
52180
52181         * modules/gethostname-tests: New file.
52182
52183         * tests/test-gethostname.c: New file.
52184
52185 2008-01-17  Simon Josefsson  <simon@josefsson.org>
52186
52187         * lib/gethostname.c: Include string.h unconditionally, strncpy is
52188         used by the UNAME case.  Reported by Bruno Haible
52189         <bruno@clisp.org>.
52190
52191 2008-01-17  Eric Blake  <ebb9@byu.net>
52192
52193         Convert c-strcasestr to be more efficient.
52194         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
52195         (Depends-on): Add c-strcase, remove malloca, strnlen.
52196         * tests/test-c-strcasestr.c (main): Enhance test.
52197         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
52198
52199 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
52200
52201         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
52202         Use it in creating po/Makevars.
52203
52204 2008-01-15  Simon Josefsson  <simon@josefsson.org>
52205
52206         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
52207         Applications that requires it should initialize libgcrypt
52208         manually.
52209
52210 2008-01-16  Simon Josefsson  <simon@josefsson.org>
52211
52212         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
52213
52214 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
52215
52216         Fix problem with getdate on mingw32 reported by Simon Josefsson
52217         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
52218         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
52219         tzname", when deciding whether to declare tzname.
52220         * lib/strftime.c (tzname): Likewise.
52221
52222 2008-01-15  Bruno Haible  <bruno@clisp.org>
52223
52224         Work around a MacOS X 10.5 bug in frexpl().
52225         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
52226         * doc/functions/frexpl.texi: Document the bug.
52227         Reported by Elias Pipping <pipping@gentoo.org>.
52228
52229 2008-01-14  Eric Blake  <ebb9@byu.net>
52230
52231         Touch up previous patch.
52232         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
52233         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
52234
52235         Convert strcasestr module to use Two-Way algorithm.
52236         * modules/strcasestr-simple: New module, based on the old
52237         strcasestr, but with Two-Way rather than KMP.
52238         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
52239         * lib/string.in.h (rpl_strcasestr): Declare.
52240         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
52241         performance.
52242         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
52243         * modules/string (Makefile.am): Support strcasestr.
52244         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
52245         * modules/strcasestr-tests (Depends-on): Check for alarm.
52246         * tests/test-strcasestr.c: Augment test.
52247         * lib/str-two-way.h: Clean up stray macro.
52248         * NEWS: Document new module.
52249         * MODULES.html.sh (string handling): Likewise.
52250         * doc/functions/strcasestr.texi: New file.
52251         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
52252         here, since it is not a POSIX function.
52253
52254 2008-01-14  Colin Watson  <cjwatson@debian.org>
52255             Bruno Haible  <bruno@clisp.org>
52256
52257         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
52258         works fine; if not, set REPLACE_STRSIGNAL.
52259         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
52260         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
52261         REPLACE_STRSIGNAL.
52262         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
52263         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
52264         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
52265
52266 2008-01-14  Bruno Haible  <bruno@clisp.org>
52267
52268         * modules/strsignal (Include): Change to <string.h>.
52269
52270 2008-01-14  Colin Watson  <cjwatson@debian.org>
52271
52272         * modules/argp (Notice): Add a notice recommending to change
52273         XGETTEXT_OPTIONS.
52274         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
52275
52276 2008-01-13  Colin Watson  <cjwatson@debian.org>
52277
52278         * modules/strsignal-tests: New file.
52279         * tests/test-strsignal.c: New file.
52280
52281         * lib/strsignal.c: New file, from glibc with modifications.
52282         * lib/siglist.h: New file, from glibc with modifications.
52283         * lib/string.in.h (strsignal): New declaration.
52284         * m4/strsignal.m4: New file.
52285         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
52286         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
52287         * modules/strsignal: New file.
52288         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
52289         HAVE_DECL_STRSIGNAL.
52290
52291 2008-01-13  Bruno Haible  <bruno@clisp.org>
52292
52293         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
52294         locale encoding is not ASCII. Needed for OpenBSD 4.0.
52295         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
52296         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
52297
52298 2008-01-13  Bruno Haible  <bruno@clisp.org>
52299
52300         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
52301         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
52302         * lib/argp.h (__attribute__): Likewise.
52303         * lib/c-stack.c (__attribute__): Likewise.
52304         * lib/error.h (__attribute__): Likewise.
52305         * lib/fts.c (__attribute__): Likewise.
52306         * lib/openat.h (__attribute__): Likewise.
52307         * lib/stdio.in.h (__attribute__): Likewise.
52308         * lib/string.in.h (__attribute__): Likewise.
52309         * lib/utimens.c (__attribute__): Likewise.
52310         * lib/vasnprintf.h (__attribute__): Likewise.
52311         * lib/xalloc.h (__attribute__): Likewise.
52312         * lib/xprintf.h (__attribute__): Likewise.
52313         * lib/xstrtol.h (__attribute__): Likewise.
52314         * lib/xvasprintf.h (__attribute__): Likewise.
52315
52316 2008-01-12  Bruno Haible  <bruno@clisp.org>
52317
52318         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
52319         * doc/glibc-headers/a.out.texi: New file.
52320         * doc/glibc-headers/aliases.texi: New file.
52321         * doc/glibc-headers/alloca.texi: New file.
52322         * doc/glibc-headers/ar.texi: New file.
52323         * doc/glibc-headers/argp.texi: New file.
52324         * doc/glibc-headers/argz.texi: New file.
52325         * doc/glibc-headers/byteswap.texi: New file.
52326         * doc/glibc-headers/crypt.texi: New file.
52327         * doc/glibc-headers/endian.texi: New file.
52328         * doc/glibc-headers/envz.texi: New file.
52329         * doc/glibc-headers/err.texi: New file.
52330         * doc/glibc-headers/error.texi: New file.
52331         * doc/glibc-headers/execinfo.texi: New file.
52332         * doc/glibc-headers/fpu_control.texi: New file.
52333         * doc/glibc-headers/fstab.texi: New file.
52334         * doc/glibc-headers/fts.texi: New file.
52335         * doc/glibc-headers/getopt.texi: New file.
52336         * doc/glibc-headers/ieee754.texi: New file.
52337         * doc/glibc-headers/ifaddrs.texi: New file.
52338         * doc/glibc-headers/libintl.texi: New file.
52339         * doc/glibc-headers/mcheck.texi: New file.
52340         * doc/glibc-headers/mntent.texi: New file.
52341         * doc/glibc-headers/obstack.texi: New file.
52342         * doc/glibc-headers/paths.texi: New file.
52343         * doc/glibc-headers/printf.texi: New file.
52344         * doc/glibc-headers/pty.texi: New file.
52345         * doc/glibc-headers/resolv.texi: New file.
52346         * doc/glibc-headers/shadow.texi: New file.
52347         * doc/glibc-headers/sysexits.texi: New file.
52348         * doc/glibc-headers/ttyent.texi: New file.
52349
52350 2008-01-12  Jim Meyering  <meyering@redhat.com>
52351
52352         announce-gen: emit Gnulib's git-based version string.
52353         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
52354         New option --gnulib-version=V, where V is expected to be
52355         the output of running git describe in the gnulib directory.
52356         (get_tool_versions): Request feedback on xdelta.  I suspect it's
52357         not useful, and plan to stop publishing an xdelta file with each
52358         coreutils release.
52359
52360         * build-aux/announce-gen: Also check for lzma-compressed files.
52361
52362 2008-01-11  Bruno Haible  <bruno@clisp.org>
52363
52364         * tests/test-memmem.c (main): Increase maximum allowed time.
52365         * tests/test-strstr.c (main): Likewise.
52366
52367 2008-01-11  Bruno Haible  <bruno@clisp.org>
52368
52369         * doc/functions/memmem.texi: Add more precisions about platforms.
52370         * doc/functions/strstr.texi: Likewise.
52371
52372 2008-01-10  Eric Blake  <ebb9@byu.net>
52373
52374         * m4/strstr.m4: Delete cruft from copy-n-paste.
52375         Reported by Bruno Haible.
52376
52377 2008-01-10  Bruno Haible  <bruno@clisp.org>
52378
52379         Make c-strstr rely on strstr.
52380         * lib/c-strstr.c: Don't include str-kmp.h.
52381         (c_strstr): Define in terms of strstr.
52382         * modules/c-strstr (Files): Remove lib/str-kmp.h.
52383         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
52384
52385 2008-01-10  Bruno Haible  <bruno@clisp.org>
52386
52387         * doc/gnulib.texi (String Functions in C Locale): New section.
52388         * doc/c-ctype.texi: New file.
52389         * doc/c-strcase.texi: New file.
52390         * doc/c-strcaseeq.texi: New file.
52391         * doc/c-strcasestr.texi: New file.
52392         * doc/c-strstr.texi: New file.
52393         * doc/c-strtod.texi: New file.
52394         * doc/c-strtold.texi: New file.
52395
52396 2008-01-10  Eric Blake  <ebb9@byu.net>
52397
52398         * lib/relocatable.h: Fix a comment.
52399
52400 2008-01-10  Eric Blake  <ebb9@byu.net>
52401
52402         Share two-way algorithm.
52403         * lib/str-two-way.h: New file, merged from...
52404         * lib/memmem.c: ...here...
52405         * lib/strstr.c: ...and here.
52406         * modules/memmem (Files): Use it.
52407         * modules/strstr (Files): Likewise.
52408
52409         Avoid quadratic strstr implementations.
52410         * lib/strstr.c: New file.
52411         * m4/strstr.m4: Likewise.
52412         * modules/strstr: Likewise.
52413         * modules/strstr-tests: Likewise.
52414         * tests/test-strstr.c: Likewise.
52415         * lib/string.in.h (rpl_strstr): Declare.
52416         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
52417         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
52418         * modules/string (Makefile.am): Likewise.
52419         * MODULES.html.sh (string handling): Mention new module.
52420         * doc/functions/strstr.texi (strstr): Document the bug.
52421
52422 2008-01-10  Bruno Haible  <bruno@clisp.org>
52423
52424         * lib/relocatable.h (relocate): State whether result is freshly
52425         allocated or not.
52426         * lib/relocatable.c (relocate): Return a freshly allocated string
52427         instead of a pointer to a privately held string.
52428         Reported by Sylvain Beucler <beuc@gnu.org>.
52429
52430 2008-01-10  Colin Watson  <cjwatson@debian.org>
52431
52432         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
52433         s/S_ISNLK/S_ISLNK/.
52434
52435 2008-01-09  Bruno Haible  <bruno@clisp.org>
52436
52437         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
52438         and other files.
52439         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
52440         if it's only a guess.
52441         * modules/memmem: Simplify by depending on memmem-simple.
52442
52443 2008-01-09  Bruno Haible  <bruno@clisp.org>
52444
52445         Work around OpenBSD 4.0 tdelete() bug.
52446         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
52447         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
52448         macros and don't redefine the enum values.
52449         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
52450         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
52451         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
52452
52453 2008-01-09  Bruno Haible  <bruno@clisp.org>
52454
52455         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
52456         (main): Don't perform the tests if setlocale did not install a UTF-8
52457         locale. Needed on OpenBSD 4.0.
52458         * modules/wcwidth-tests (Depends-on): Add localcharset.
52459
52460 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
52461
52462         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
52463         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
52464         * NEWS: announce this.
52465         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
52466
52467 2008-01-09  Simon Josefsson  <simon@josefsson.org>
52468         and Eric Blake  <ebb9@byu.net>
52469
52470         Add memmem-simple module.
52471         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
52472         (gl_FUNC_MEMMEM): Separate performance from presence checks.
52473         * modules/memmem-simple: New file.
52474         * modules/memmem (Description): Tweak.
52475         * MODULES.html.sh (string handling): Mention new module.
52476         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
52477         addressed by memmem-simple.
52478         * NEWS: Document the difference.
52479
52480 2008-01-09  Eric Blake  <ebb9@byu.net>
52481
52482         Give gcc some memmem optimization hints.
52483         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
52484         (strcasestr): Declare as pure.
52485         * modules/memmem (Maintainer): Claim my implementation.
52486
52487 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52488
52489         Support AIX 6.1 and higher.
52490         * build-aux/config.libpath: Likewise.
52491         * build-aux/config.rpath: Likewise.
52492
52493 2008-01-08  Jim Meyering  <meyering@redhat.com>
52494             Bruno Haible  <bruno@clisp.org>
52495
52496         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
52497         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
52498         Reported by Peter Fales in
52499         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
52500
52501 2008-01-08  Bruno Haible  <bruno@clisp.org>
52502
52503         * modules/unictype/category-of (Depends-on): Add
52504         unictype/category-none.
52505         * modules/unictype/category-and-tests (Depends-on): Add
52506         unictype/category-{L,N,Lu,Nd}.
52507         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
52508         * modules/unictype/category-or-tests (Depends-on): Add
52509         unictype/category-{L,N}.
52510         * modules/unictype/category-name-tests (Depends-on): Add
52511         unictype/category-{Z,Nl}.
52512         Reported by Simon Josefsson.
52513
52514 2008-01-08  Bruno Haible  <bruno@clisp.org>
52515
52516         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
52517         convention better.
52518         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
52519         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
52520         Reported by Peter Miller <millerp@canb.auug.org.au>.
52521
52522 2008-01-08  Eric Blake  <ebb9@byu.net>
52523
52524         Rewrite memmem to guarantee linear complexity without malloc.
52525         * lib/memmem.c (memmem): Use Two-Way rather than
52526         Knuth-Morris-Pratt, to allow O(1) space usage.
52527         (critical_factorization, two_way_short_needle)
52528         (two_way_long_needle): New functions.
52529         (knuth_morris_pratt): Delete.
52530         * modules/memmem (Depends-on): No longer need malloca or stdbool.
52531         Add stdint.
52532         * tests/test-memmem.c (main): Add tests for periodic needle and
52533         sublinear performance.
52534         * doc/functions/memmem.texi (memmem): Document other deficiencies
52535         in cygwin and older glibc.
52536
52537 2008-01-08  Bruno Haible  <bruno@clisp.org>
52538
52539         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
52540         augmentation.
52541
52542 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
52543
52544         Add a configure time option: --disable-acl.
52545         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
52546         AC_ARG_ENABLE(acl).
52547
52548 2008-01-06  Simon Josefsson  <simon@josefsson.org>
52549
52550         * tests/test-localename.c: Don't include obsolete "setenv.h".
52551
52552         * modules/localename-tests (Depends-on): Need unsetenv.
52553
52554 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52555
52556         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
52557
52558 2008-01-06  Colin Watson  <cjwatson@debian.org>
52559
52560         * users.txt: Add man-db.
52561
52562 2008-01-07  Bruno Haible  <bruno@clisp.org>
52563
52564         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
52565         previous section name.
52566
52567 2008-01-07  Bruno Haible  <bruno@clisp.org>
52568
52569         * lib/progname.c (set_program_name): Don't strip off a leading
52570         "lt-" prefix outside a .libs directory.
52571         Suggested by Paul Eggert.
52572
52573 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
52574             Bruno Haible  <bruno@clisp.org>
52575
52576         Improve memory cleanup in 'relocatable' module.
52577         * lib/relocatable.h (compute_curr_prefix): Change return type to
52578         'char *'.
52579         * lib/relocatable.c (compute_curr_prefix): Change return type to
52580         'char *'. Free curr_installdir after use.
52581         (relocate): Free curr_prefix_better after use.
52582         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
52583
52584 2008-01-01  Bruno Haible  <bruno@clisp.org>
52585
52586         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
52587         failure on older glibc systems.
52588         Reported by Peter Fales <psfales@alcatel-lucent.com>.
52589
52590 2008-01-05  Eric Blake  <ebb9@byu.net>
52591
52592         Avoid quadratic system memmem.
52593         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
52594         Reported by Ralf Wildenhues.
52595
52596         Fix memmem test for mingw.
52597         * modules/memmem-tests (configure.ac): Check for alarm.
52598         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
52599         it.
52600         * doc/functions/memmem.texi: New file.
52601         * doc/gnulib.texi (Function Substitutes): Add memmem.
52602         Reported by Bruno Haible.
52603
52604 2008-01-04  Bruno Haible  <bruno@clisp.org>
52605
52606         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
52607         Require gl_HEADER_STRINGS_H_DEFAULTS, not
52608         gl_HEADER_STRING_H_DEFAULTS.
52609
52610 2008-01-04  Eric Blake  <ebb9@byu.net>
52611
52612         Shorten duration of memmem test.
52613         * tests/test-memmem.c (main): Use alarm to declare failure if test
52614         is taking too long.
52615         Reported by Ralf Wildenhues.
52616
52617 2007-12-21  Simon Josefsson  <simon@josefsson.org>
52618
52619         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
52620         string, needed by strerror.
52621
52622 2008-01-03  Colin Watson  <cjwatson@debian.org>
52623             Bruno Haible  <bruno@clisp.org>
52624
52625         * doc/gnulib-tool.texi (Localization): New section.
52626
52627 2008-01-02  Bruno Haible  <bruno@clisp.org>
52628
52629         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
52630         variables to 'unsigned char *' type.
52631         Reported by Paul Eggert.
52632
52633 2008-01-02  Jim Meyering  <jim@meyering.net>
52634
52635         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
52636
52637 2007-12-31  Jim Meyering  <jim@meyering.net>
52638
52639         Avoid use of private FTS type name.
52640         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
52641
52642 2007-12-30  Karl Berry  <karl@gnu.org>
52643
52644         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
52645         work around defect in Texinfo and/or the standalone Info browser.
52646
52647 2007-12-30  Bruno Haible  <bruno@clisp.org>
52648
52649         Unify 5 copies of the KMP code.
52650         * lib/str-kmp.h: New file.
52651         * lib/c-strcasestr.c: Include str-kmp.h.
52652         (knuth_morris_pratt): Remove function.
52653         (c_strcasestr): Update.
52654         * lib/c-strstr.c: Include str-kmp.h.
52655         (knuth_morris_pratt): Remove function.
52656         (c_strcasestr): Update.
52657         * lib/mbscasestr.c: Include str-kmp.h.
52658         (knuth_morris_pratt_unibyte): Remove function.
52659         * lib/mbsstr.c: Include str-kmp.h.
52660         (knuth_morris_pratt_unibyte): Remove function.
52661         * lib/strcasestr.c: Include str-kmp.h.
52662         (knuth_morris_pratt): Remove function.
52663         (strcasestr): Update.
52664         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
52665         * modules/c-strstr (Files): Likewise.
52666         * modules/mbscasestr (Files): Likewise.
52667         * modules/mbsstr (Files): Likewise.
52668         * modules/strcasestr (Files): Likewise.
52669         Suggested by Paul Eggert.
52670
52671 2007-12-30  Bruno Haible  <bruno@clisp.org>
52672
52673         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
52674         defined.
52675
52676 2007-12-30  Bruno Haible  <bruno@clisp.org>
52677
52678         * lib/xmalloca.h: Include xalloc.h.
52679         (xnmalloca): New macro.
52680
52681 2007-12-30  Bruno Haible  <bruno@clisp.org>
52682
52683         * lib/malloca.h (nmalloca): New macro.
52684         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
52685         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
52686         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
52687         knuth_morris_pratt_multibyte): Likewise.
52688         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
52689         knuth_morris_pratt_multibyte): Likewise.
52690         * lib/memmem.c (knuth_morris_pratt): Likewise.
52691         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
52692
52693 2007-12-25  Bruno Haible  <bruno@clisp.org>
52694
52695         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
52696         * lib/glob.c: Don't include openat.h.
52697         (link_exists2_p): Add back the code that deals with the
52698         !GLOB_ALTDIRFUNC case.
52699         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
52700         let it do the filename concatenation.
52701         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
52702         * modules/glob (Depends-on): Remove openat.
52703
52704 2007-12-31  Bruno Haible  <bruno@clisp.org>
52705
52706         * modules/dirfd (License): Change to LGPLv2+.
52707         Approved by Jim Meyering.
52708
52709 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
52710
52711         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
52712         when multiplying M by sizeof (size_t).
52713
52714 2007-12-10  Martin Lambers  <marlam@marlam.de>
52715
52716         Override getpagesize on mingw.
52717         * lib/getpagesize.c: New file.
52718         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
52719         * modules/getpagesize (Files): Add lib/getpagesize.c.
52720         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
52721         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
52722         REPLACE_GETPAGESIZE.
52723         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
52724
52725 2007-12-25  Bruno Haible  <bruno@clisp.org>
52726
52727         * modules/localcharset (Notice): New field.
52728         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
52729         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
52730
52731 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
52732             Bruno Haible  <bruno@clisp.org>
52733
52734         Avoid using the syntax symbol() in formatted documentation.
52735         * MODULES.html.sh (func_module): When replacing symbol() with a
52736         hyperlink, remove the parentheses. Show an error if some remain.
52737         Recognize and render the '...' syntax.
52738         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
52739         Rework. Add paragraph about GCC's inlining.
52740         * doc/alloca.texi: Likewise.
52741         * doc/error.texi: Remove parentheses from symbol reference.
52742         * doc/gnulib-intro.texi: Likewise.
52743         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
52744         * modules/fnmatch (Description): Reword to say "the ... function".
52745         * modules/full-read (Description): Likewise.
52746         * modules/full-write (Description): Likewise.
52747         * modules/safe-read (Description): Likewise.
52748         * modules/safe-write (Description): Likewise.
52749         * modules/strchrnul (Description): Likewise.
52750         * modules/trim (Description): Likewise.
52751         * modules/error (Description): Remove parentheses from symbol
52752         references.
52753         * modules/verror (Description): Likewise.
52754         Reported by Karl Berry.
52755
52756 2007-12-25  Bruno Haible  <bruno@clisp.org>
52757
52758         Fixup after 2007-10-16 commit.
52759         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
52760
52761 2007-12-24  Bruno Haible  <bruno@clisp.org>
52762
52763         Make --enable-relocatable work with DESTDIR.
52764         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
52765         to compute installdir from destprog.
52766         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
52767         also set the RELOC_DESTDIR variable.
52768         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
52769
52770 2007-12-24  Bruno Haible  <bruno@clisp.org>
52771
52772         Fix link error due to xalloc_die().
52773         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
52774         of xreadlink.
52775         * lib/relocwrapper.c: Update comments.
52776         * build-aux/install-reloc: Remove xreadlink.c from file list.
52777         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
52778         xreadlink.c.
52779         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
52780
52781 2007-12-24  Bruno Haible  <bruno@clisp.org>
52782
52783         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
52784         * lib/setenv.h: Remove file.
52785         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
52786         lib/setenv.h.
52787         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
52788         (Depends-on): Add stdlib.
52789         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
52790         gl_FUNC_UNSETENV.
52791         (Include): Replace setenv.h with <stdlib.h>.
52792         * modules/unsetenv: New file.
52793         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
52794         * lib/unsetenv.c: Include <stdlib.h> first.
52795         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
52796         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
52797         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
52798         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
52799         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
52800         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
52801         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
52802         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
52803         * doc/functions/unsetenv.texi: Update.
52804         * modules/xsetenv (Depends-on): Add unsetenv.
52805         * modules/getdate (Depends-on): Likewise.
52806         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
52807         * lib/xsetenv.c: Don't include setenv.h.
52808         * lib/getdate.y: Likewise.
52809         * lib/relocwrapper.c: Likewise.
52810         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
52811         (Depends-on): Add stdlib.
52812         * NEWS: Mention the changes.
52813         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
52814
52815 2007-12-23  Bruno Haible  <bruno@clisp.org>
52816
52817         * lib/memmem.c (memmem): Use lowercase variable names. Tab
52818         indentation.
52819
52820 2007-12-23  Bruno Haible  <bruno@clisp.org>
52821
52822         * lib/c-strcasestr.c: Add more comments.
52823         * lib/c-strstr.c: Likewise.
52824         * lib/mbscasestr.c: Likewise.
52825         * lib/mbsstr.c: Likewise.
52826         * lib/strcasestr.c: Likewise.
52827         * lib/memmem.c: Likewise.
52828
52829 2007-12-23  Bruno Haible  <bruno@clisp.org>
52830
52831         * tests/test-memmem.c: Include <string.h> first.
52832
52833 2007-12-22  Bruno Haible  <bruno@clisp.org>
52834
52835         * gnulib-tool (func_create_testdir): Change $auxdir while generating
52836         the contents of $testsbase.
52837         Reported by Ralf Wildenhues.
52838
52839 2007-12-22  Bruno Haible  <bruno@clisp.org>
52840
52841         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
52842         two variables local_ldadd_before, local_ldadd_last.
52843
52844 2007-12-20  Eric Blake  <ebb9@byu.net>
52845
52846         Work around circular library issue when cross-compiling.
52847         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
52848         that progname.o does not need to pull in rpl_memcmp.
52849
52850 2007-12-19  Eric Blake  <ebb9@byu.net>
52851
52852         Fix memmem to avoid O(n^2) worst-case complexity.
52853         * lib/memmem.c (knuth_morris_pratt): New function.
52854         (memmem): Use it if first few naive iterations fail.
52855         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
52856         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
52857         * modules/memchr (License): Likewise.
52858         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
52859         malloca.
52860         * tests/test-memmem.c: Rewrite, borrowing ideas from
52861         test-mbsstr1.c; the old version wouldn't even compile!
52862         * modules/memmem-tests: New file.
52863         * lib/string.in.h (rpl_memmem): Add declaration.
52864         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
52865         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
52866         REPLACE_MEMMEM.
52867
52868 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
52869
52870         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
52871         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
52872         before any system include files, and undef after them all.  This
52873         should fix a problem on VMS reported by John E. Malmberg in
52874         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
52875
52876 2007-12-17  Eric Blake  <ebb9@byu.net>
52877
52878         Revert addition of verify, for BSD/OS.
52879         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
52880         can't handle large files, for the sake of obsolete platforms.
52881         * modules/fseeko (Depends-on): Remove verify.
52882         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
52883         * doc/functions/ftello.texi (ftello): Likewise.
52884         * doc/functions/fgetpos.texi (fgetpos): Likewise.
52885         Reported by Larry Jones.
52886
52887 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
52888
52889         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
52890         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
52891
52892 2007-12-17  Jim Meyering  <meyering@redhat.com>
52893
52894         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
52895         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
52896         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
52897         * modules/getcwd (Depends-on): Add openat.
52898         Reported by Petr Salinger.
52899
52900 2007-12-17  Bruno Haible  <bruno@clisp.org>
52901
52902         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
52903         avoid a segmentation fault of the configure test on x86_64 systems.
52904
52905 2007-12-15  Jim Meyering  <meyering@redhat.com>
52906
52907         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
52908
52909 2007-12-13  Eric Blake  <ebb9@byu.net>
52910
52911         Another fseek test.
52912         * tests/test-fseek.c (main): Also test ungetc handling.
52913         * tests/test-fseeko.c (main): Likewise.
52914         * modules/fseeko (Depends-on): Add verify.
52915         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
52916         large.
52917         Reported by Larry Jones.
52918
52919         Fix fseeko on mingw.
52920         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
52921         seek.
52922
52923         Beef up fseek tests.
52924         * tests/test-fseek.c (main): Also test eof handling.
52925         * tests/test-fseeko.c (main): Likewise.
52926         Reported by Larry Jones.
52927
52928 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
52929
52930         Fix fseeko on BSD-based platforms.
52931         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
52932         successful seek.
52933
52934 2007-12-12  Eric Blake  <ebb9@byu.net>
52935
52936         Allow circular dependency of separate libtests.a
52937         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
52938         when use_libtests.
52939
52940 2007-12-11  Eric Blake  <ebb9@byu.net>
52941
52942         Fix bug with -0.0L in previous patch.
52943         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
52944         * tests/test-isnan.c (main): Also test on zeroes.
52945         * tests/test-isnanf.c (main): Likewise.
52946         * tests/test-isnanl.h (main): Likewise.
52947
52948         Detect pseudo-denormals on x86 even when cross-compiling.
52949         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
52950         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
52951         invalid bit patterns that happen to satisfy ==.
52952
52953         Avoid link failures with separate libtests.a.
52954         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
52955         last, to satisfy circular dependencies.
52956
52957 2007-12-11  Eric Blake  <ebb9@byu.net>
52958         and Bruno Haible  <bruno@clisp.org>
52959
52960         Fix OpenBSD 4.0 <float.h> handling of long double.
52961         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
52962         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
52963         * doc/headers/float.texi (float.h): Document OpenBSD bug.
52964
52965 2007-12-11  Jim Meyering  <meyering@redhat.com>
52966
52967         * users.txt: Add libvirt.
52968
52969         Support versions of autoconf prior to 2.59c.
52970         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
52971         if it is not already defined.
52972
52973 2007-12-09  Bruno Haible  <bruno@clisp.org>
52974
52975         Let 'gnulib-tool --import' collect sources needed for the tests in
52976         tests/ rather than in lib/.
52977         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
52978         argument. If true, add rules to generate libtests.a, and put libtests.a
52979         into $(LDADD). Consider source files in subdirectories and set
52980         uses_subdirs.
52981         (func_emit_initmacro_start, func_emit_initmacro_end,
52982         func_emit_initmacro_done): Pass all arguments explicitly.
52983         (func_import): Determine two module lists main_modules,
52984         testsrelated_modules. Determine use_libtests. Determine two variables
52985         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
52986         instead of just sed_transform_lib_file. Determine two variables
52987         main_files and testsrelated_files. Compute 'files' as the union of
52988         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
52989         func_add_or_update. In the generated gnulib-comp.m4, collect the
52990         object files for tests/ in different variables than those for lib/.
52991         Substitute LIBTESTS_LIBDEPS.
52992         (func_create_testdir): Combine the uses_subdirs results from
52993         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
52994
52995 2007-12-09  Bruno Haible  <bruno@clisp.org>
52996
52997         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
52998         the build-aux directory.
52999
53000 2007-12-09  Bruno Haible  <bruno@clisp.org>
53001
53002         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
53003         introduced on 2006-09-09.
53004
53005 2007-12-07  Jim Meyering  <meyering@redhat.com>
53006
53007         Let these macros work also with autoconf-2.59.
53008         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
53009         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
53010         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
53011
53012 2007-12-06  Jim Meyering  <meyering@redhat.com>
53013
53014         Avoid a configure-time syntax error in gl_FUNC_ACL.
53015         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
53016         function in each branch, before testing the cache variable.
53017
53018 2007-12-04  Eric Blake  <ebb9@byu.net>
53019
53020         Make scripts executable.
53021         * build-aux/config.guess: Add execute permissions.
53022         * build-aux/config.sub: Likewise.
53023         * build-aux/gendocs.sh: Likewise.
53024
53025         Fix frexp on mingw.
53026         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
53027         cross-compiling.
53028         * doc/functions/frexp.texi (frexp): Document the bug.
53029
53030         Make cygwin fseeko check more reliable.
53031         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
53032         version numbers, rather than unrelated feature check.
53033         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
53034         * doc/functions/ftello.texi (ftello): Likewise.
53035         Reported by Bruno Haible.
53036
53037         * m4/strerror.m4: Bump version number.
53038
53039 2007-12-03  Bruno Haible  <bruno@clisp.org>
53040
53041         * doc/functions/mprotect.texi: Mention the mingw problem.
53042
53043 2007-12-03  Eric Blake  <ebb9@byu.net>
53044
53045         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
53046         REPLACE_STRERROR is initialized before this macro.
53047
53048 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
53049
53050         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
53051         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
53052         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
53053         put -lsec in even for programs other than 'ls'.  This fixes a problem
53054         for gettext reported by Bruno Haible in
53055         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
53056         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
53057         Add support for Solaris 10.  This isn't efficient, but should get the
53058         job done for now.
53059
53060 2007-12-03  James Youngman  <jay@gnu.org>
53061
53062         * doc/regexprops-generic.texi: change "an close-group" to "a
53063         close-group" and "illegal" to "not allowed".
53064
53065 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53066
53067         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
53068         pr_byname.h. Needed for the rare case when the maintainer has done
53069         "make maintainer-clean" in the source directory and then attempts a
53070         build outside the source directory.
53071         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
53072         scripts_byname.h.
53073
53074 2007-12-02  Martin Lambers <marlam@marlam.de>
53075             Bruno Haible  <bruno@clisp.org>
53076
53077         * lib/getpagesize.h: Remove file.
53078         * lib/unistd.in.h: Include declaration of getpagesize here.
53079         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
53080         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
53081         HAVE_SYS_PARAM_H.
53082         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
53083         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
53084         * modules/getpagesize (Files): Remove lib/getpagesize.h.
53085         (Depends-on): Add unistd.
53086         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53087         (Include): Use <unistd.h> instead of getpagesize.h.
53088         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
53089         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
53090         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
53091         gl_GETPAGESIZE invocation, already handled by module dependency.
53092         * lib/pagealign_alloc.c: Don't include getpagesize.h.
53093
53094 2007-12-02  Bruno Haible  <bruno@clisp.org>
53095
53096         * modules/strings-tests: New file.
53097         * tests/test-strings.c: New file.
53098
53099         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
53100         * lib/strings.in.h: New file.
53101         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
53102         * m4/strings_h.m4: New file.
53103         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
53104         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
53105         * modules/strings: New file.
53106         * modules/string (Makefile.am): Update.
53107         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
53108         Reported by Karl Berry.
53109
53110 2007-12-01  Eric Blake  <ebb9@byu.net>
53111
53112         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
53113         accomodate fix in cygwin 1.5.25.
53114
53115 2007-12-01  Jim Meyering  <meyering@redhat.com>
53116
53117         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
53118         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
53119         that would inhibit utf8-optimization of a regexp containing line-
53120         or buffer-anchors, e.g., `^', `$'.
53121
53122 2007-11-30  Bruno Haible  <bruno@clisp.org>
53123
53124         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
53125         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
53126         glthread_recursive_lock_init.
53127         * lib/lock.c (glthread_recursive_lock_init)
53128         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
53129         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
53130
53131 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
53132
53133         New function qset_acl, like set_acl but with syscall semantics.
53134         * lib/acl.h (qset_acl): New decl.
53135         * lib/acl.c (qset_acl): New function.
53136         (set_acl): Use new function.  Use more-consistent diagnostics.
53137
53138 2007-11-28  Jim Meyering  <meyering@redhat.com>
53139
53140         * modules/physmem (License): Change from GPL to LGPLv2+.
53141
53142 2007-11-26  Bruno Haible  <bruno@clisp.org>
53143
53144         * lib/vasnprintf.c (decode_long_double): Don't abort if the
53145         'long double' type has excess precision.
53146         Reported by Jim Meyering in
53147         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
53148
53149 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53150
53151         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
53152         Sync from <http://gnu.org/licenses>.
53153         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
53154         with license text from same location.
53155         * doc/maintain.texi, doc/standards.texi:  Sync from
53156         <http://savannah.gnu.org/projects/gnustandards>.
53157
53158 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
53159         and Jim Meyering  <meyering@redhat.com>
53160
53161         Adjust getdate' grammar to accept a slightly more regular language.
53162         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
53163         Before, the former was rejected.
53164         * lib/getdate.y (digits_to_date_time): New function, factored
53165         out of ...
53166         (number): ...here.  Just call digits_to_date_time.
53167         (hybrid): New non-terminal to handle an <unsigned number,
53168         signed relative offset> sequence consistently.
53169
53170 2007-11-18  Jim Meyering  <meyering@redhat.com>
53171
53172         Pull my changes from coreutils:
53173         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
53174         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
53175         use of $gnulib_tool_option_extras, so that it's separated from the
53176         preceding argument.
53177
53178         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
53179         * build-aux/bootstrap (cp_mark_as_generated): Create any required
53180         parent destination directories before copying a file into place.
53181
53182 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
53183
53184         bootstrap: work also with 4-argument variant of AC_INIT
53185         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
53186
53187 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
53188
53189         Port test-getaddrinfo to Solaris.
53190         Problem reported by Bruno Haible in
53191         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
53192         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
53193         explanation of setting 'hints'.
53194         Don't reject an implementation merely because it returns EAI_SERVICE.
53195         (EAI_SERVICE): Define to 0 if not defined.
53196
53197 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
53198
53199         The license of gnu-make and posix-shell is now "GPLed build tool".
53200         * modules/gnu-make (License): Likewise.
53201         * modules/posix-shell (License): Likewise.
53202
53203         New module posix-shell, for determining a POSIX shell
53204         or perhaps something that is close enough to a POSIX shell.
53205         * m4/posix-shell.m4: New file.
53206         * modules/posix-shell: New file.
53207
53208         * MODULES.html.sh: Mention new module.
53209
53210         New module gnu-make, for determining whether we're using GNU Make.
53211         * m4/gnu-make.m4: New file.
53212         * modules/gnu-make: New file.
53213         * MODULES.html.sh: Mention new module.
53214
53215 2007-11-14  Jim Meyering  <meyering@redhat.com>
53216
53217         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
53218         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
53219         use this macro to create a function _definition_.
53220         Remove useless "#undef ARGMATCH_DIE".
53221
53222 2007-11-14  Bruno Haible  <bruno@clisp.org>
53223
53224         * lib/config.charset: Update for OpenBSD 4.1.
53225         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
53226
53227 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
53228
53229         Document 64-bit #if problems in stdint.texi.
53230         * doc/headers/stdint.texi (stdint.h): Mention problems with
53231         64-bit-#if, and how to work around them.
53232
53233         Don't insist on 'long long int' support in the preprocessor.  It
53234         breaks too many things.  For example, PRIdMAX still uses a 'long
53235         long int' format with the latest Sun compiler, even though
53236         HAVE_LONG_LONG_INT isn't defined due to that compiler's
53237         preprocessor problem.  This causes the latest coreutils to dump
53238         core on Solaris 10 sparc with the Sun C compiler.
53239         Instead, fix the 2007-10-16 problem in a different way, by evaluating
53240         the troublesome expressions at configure-time, not at #if-time.
53241         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
53242         preprocessor.
53243         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
53244         compile-time C checks, done at 'configure'-time.
53245         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
53246         * modules/inttypes (Makefile): Substitute the new symbols that
53247         gl_INTTYPES_H now generates.
53248         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
53249
53250 2007-11-12  Bruno Haible  <bruno@clisp.org>
53251
53252         Tests for Unicode character classification functions.
53253
53254         * modules/unictype/bidicategory-byname-tests: New file.
53255         * modules/unictype/bidicategory-name-tests: New file.
53256         * modules/unictype/bidicategory-of-tests: New file.
53257         * modules/unictype/bidicategory-test-tests: New file.
53258         * modules/unictype/block-list-tests: New file.
53259         * modules/unictype/block-of-tests: New file.
53260         * modules/unictype/block-test-tests: New file.
53261         * modules/unictype/category-C-tests: New file.
53262         * modules/unictype/category-Cc-tests: New file.
53263         * modules/unictype/category-Cf-tests: New file.
53264         * modules/unictype/category-Cn-tests: New file.
53265         * modules/unictype/category-Co-tests: New file.
53266         * modules/unictype/category-Cs-tests: New file.
53267         * modules/unictype/category-L-tests: New file.
53268         * modules/unictype/category-Ll-tests: New file.
53269         * modules/unictype/category-Lm-tests: New file.
53270         * modules/unictype/category-Lo-tests: New file.
53271         * modules/unictype/category-Lt-tests: New file.
53272         * modules/unictype/category-Lu-tests: New file.
53273         * modules/unictype/category-M-tests: New file.
53274         * modules/unictype/category-Mc-tests: New file.
53275         * modules/unictype/category-Me-tests: New file.
53276         * modules/unictype/category-Mn-tests: New file.
53277         * modules/unictype/category-N-tests: New file.
53278         * modules/unictype/category-Nd-tests: New file.
53279         * modules/unictype/category-Nl-tests: New file.
53280         * modules/unictype/category-No-tests: New file.
53281         * modules/unictype/category-P-tests: New file.
53282         * modules/unictype/category-Pc-tests: New file.
53283         * modules/unictype/category-Pd-tests: New file.
53284         * modules/unictype/category-Pe-tests: New file.
53285         * modules/unictype/category-Pf-tests: New file.
53286         * modules/unictype/category-Pi-tests: New file.
53287         * modules/unictype/category-Po-tests: New file.
53288         * modules/unictype/category-Ps-tests: New file.
53289         * modules/unictype/category-S-tests: New file.
53290         * modules/unictype/category-Sc-tests: New file.
53291         * modules/unictype/category-Sk-tests: New file.
53292         * modules/unictype/category-Sm-tests: New file.
53293         * modules/unictype/category-So-tests: New file.
53294         * modules/unictype/category-Z-tests: New file.
53295         * modules/unictype/category-Zl-tests: New file.
53296         * modules/unictype/category-Zp-tests: New file.
53297         * modules/unictype/category-Zs-tests: New file.
53298         * modules/unictype/category-and-not-tests: New file.
53299         * modules/unictype/category-and-tests: New file.
53300         * modules/unictype/category-byname-tests: New file.
53301         * modules/unictype/category-name-tests: New file.
53302         * modules/unictype/category-none-tests: New file.
53303         * modules/unictype/category-of-tests: New file.
53304         * modules/unictype/category-or-tests: New file.
53305         * modules/unictype/category-test-withtable-tests: New file.
53306         * modules/unictype/combining-class-tests: New file.
53307         * modules/unictype/ctype-alnum-tests: New file.
53308         * modules/unictype/ctype-alpha-tests: New file.
53309         * modules/unictype/ctype-blank-tests: New file.
53310         * modules/unictype/ctype-cntrl-tests: New file.
53311         * modules/unictype/ctype-digit-tests: New file.
53312         * modules/unictype/ctype-graph-tests: New file.
53313         * modules/unictype/ctype-lower-tests: New file.
53314         * modules/unictype/ctype-print-tests: New file.
53315         * modules/unictype/ctype-punct-tests: New file.
53316         * modules/unictype/ctype-space-tests: New file.
53317         * modules/unictype/ctype-upper-tests: New file.
53318         * modules/unictype/ctype-xdigit-tests: New file.
53319         * modules/unictype/decimal-digit-tests: New file.
53320         * modules/unictype/digit-tests: New file.
53321         * modules/unictype/mirror-tests: New file.
53322         * modules/unictype/numeric-tests: New file.
53323         * modules/unictype/property-alphabetic-tests: New file.
53324         * modules/unictype/property-ascii-hex-digit-tests: New file.
53325         * modules/unictype/property-bidi-arabic-digit-tests: New file.
53326         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
53327         * modules/unictype/property-bidi-block-separator-tests: New file.
53328         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
53329         * modules/unictype/property-bidi-common-separator-tests: New file.
53330         * modules/unictype/property-bidi-control-tests: New file.
53331         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
53332         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
53333         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
53334         * modules/unictype/property-bidi-european-digit-tests: New file.
53335         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
53336         * modules/unictype/property-bidi-left-to-right-tests: New file.
53337         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
53338         * modules/unictype/property-bidi-other-neutral-tests: New file.
53339         * modules/unictype/property-bidi-pdf-tests: New file.
53340         * modules/unictype/property-bidi-segment-separator-tests: New file.
53341         * modules/unictype/property-bidi-whitespace-tests: New file.
53342         * modules/unictype/property-byname-tests: New file.
53343         * modules/unictype/property-combining-tests: New file.
53344         * modules/unictype/property-composite-tests: New file.
53345         * modules/unictype/property-currency-symbol-tests: New file.
53346         * modules/unictype/property-dash-tests: New file.
53347         * modules/unictype/property-decimal-digit-tests: New file.
53348         * modules/unictype/property-default-ignorable-code-point-tests: New file.
53349         * modules/unictype/property-deprecated-tests: New file.
53350         * modules/unictype/property-diacritic-tests: New file.
53351         * modules/unictype/property-extender-tests: New file.
53352         * modules/unictype/property-format-control-tests: New file.
53353         * modules/unictype/property-grapheme-base-tests: New file.
53354         * modules/unictype/property-grapheme-extend-tests: New file.
53355         * modules/unictype/property-grapheme-link-tests: New file.
53356         * modules/unictype/property-hex-digit-tests: New file.
53357         * modules/unictype/property-hyphen-tests: New file.
53358         * modules/unictype/property-id-continue-tests: New file.
53359         * modules/unictype/property-id-start-tests: New file.
53360         * modules/unictype/property-ideographic-tests: New file.
53361         * modules/unictype/property-ids-binary-operator-tests: New file.
53362         * modules/unictype/property-ids-trinary-operator-tests: New file.
53363         * modules/unictype/property-ignorable-control-tests: New file.
53364         * modules/unictype/property-iso-control-tests: New file.
53365         * modules/unictype/property-join-control-tests: New file.
53366         * modules/unictype/property-left-of-pair-tests: New file.
53367         * modules/unictype/property-line-separator-tests: New file.
53368         * modules/unictype/property-logical-order-exception-tests: New file.
53369         * modules/unictype/property-lowercase-tests: New file.
53370         * modules/unictype/property-math-tests: New file.
53371         * modules/unictype/property-non-break-tests: New file.
53372         * modules/unictype/property-not-a-character-tests: New file.
53373         * modules/unictype/property-numeric-tests: New file.
53374         * modules/unictype/property-other-alphabetic-tests: New file.
53375         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
53376         * modules/unictype/property-other-grapheme-extend-tests: New file.
53377         * modules/unictype/property-other-id-continue-tests: New file.
53378         * modules/unictype/property-other-id-start-tests: New file.
53379         * modules/unictype/property-other-lowercase-tests: New file.
53380         * modules/unictype/property-other-math-tests: New file.
53381         * modules/unictype/property-other-uppercase-tests: New file.
53382         * modules/unictype/property-paired-punctuation-tests: New file.
53383         * modules/unictype/property-paragraph-separator-tests: New file.
53384         * modules/unictype/property-pattern-syntax-tests: New file.
53385         * modules/unictype/property-pattern-white-space-tests: New file.
53386         * modules/unictype/property-private-use-tests: New file.
53387         * modules/unictype/property-punctuation-tests: New file.
53388         * modules/unictype/property-quotation-mark-tests: New file.
53389         * modules/unictype/property-radical-tests: New file.
53390         * modules/unictype/property-sentence-terminal-tests: New file.
53391         * modules/unictype/property-soft-dotted-tests: New file.
53392         * modules/unictype/property-space-tests: New file.
53393         * modules/unictype/property-terminal-punctuation-tests: New file.
53394         * modules/unictype/property-test-tests: New file.
53395         * modules/unictype/property-titlecase-tests: New file.
53396         * modules/unictype/property-unassigned-code-value-tests: New file.
53397         * modules/unictype/property-unified-ideograph-tests: New file.
53398         * modules/unictype/property-uppercase-tests: New file.
53399         * modules/unictype/property-variation-selector-tests: New file.
53400         * modules/unictype/property-white-space-tests: New file.
53401         * modules/unictype/property-xid-continue-tests: New file.
53402         * modules/unictype/property-xid-start-tests: New file.
53403         * modules/unictype/property-zero-width-tests: New file.
53404         * modules/unictype/scripts-tests: New file.
53405         * modules/unictype/syntax-c-ident-tests: New file.
53406         * modules/unictype/syntax-c-whitespace-tests: New file.
53407         * modules/unictype/syntax-java-ident-tests: New file.
53408         * modules/unictype/syntax-java-whitespace-tests: New file.
53409         * tests/unictype/test-bidi_byname.c: New file.
53410         * tests/unictype/test-bidi_name.c: New file.
53411         * tests/unictype/test-bidi_of.c: New file.
53412         * tests/unictype/test-bidi_test.c: New file.
53413         * tests/unictype/test-block_list.c: New file.
53414         * tests/unictype/test-block_of.c: New file.
53415         * tests/unictype/test-block_test.c: New file.
53416         * tests/unictype/test-categ_and.c: New file.
53417         * tests/unictype/test-categ_and_not.c: New file.
53418         * tests/unictype/test-categ_byname.c: New file.
53419         * tests/unictype/test-categ_name.c: New file.
53420         * tests/unictype/test-categ_none.c: New file.
53421         * tests/unictype/test-categ_of.c: New file.
53422         * tests/unictype/test-categ_or.c: New file.
53423         * tests/unictype/test-categ_test_withtable.c: New file.
53424         * tests/unictype/test-combining.c: New file.
53425         * tests/unictype/test-decdigit.c: New file.
53426         * tests/unictype/test-digit.c: New file.
53427         * tests/unictype/test-mirror.c: New file.
53428         * tests/unictype/test-numeric.c: New file.
53429         * tests/unictype/test-pr_byname.c: New file.
53430         * tests/unictype/test-pr_test.c: New file.
53431         * tests/unictype/test-predicate-part1.h: New file.
53432         * tests/unictype/test-predicate-part2.h: New file.
53433         * tests/unictype/test-scripts.c: New file.
53434         * tests/unictype/test-sy_c_ident.c: New file.
53435         * tests/unictype/test-sy_java_ident.c: New file.
53436
53437         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
53438         for Unicode 5.0.0.
53439         * tests/unictype/test-categ_Cc.c: Likewise.
53440         * tests/unictype/test-categ_Cf.c: Likewise.
53441         * tests/unictype/test-categ_Cn.c: Likewise.
53442         * tests/unictype/test-categ_Co.c: Likewise.
53443         * tests/unictype/test-categ_Cs.c: Likewise.
53444         * tests/unictype/test-categ_L.c: Likewise.
53445         * tests/unictype/test-categ_Ll.c: Likewise.
53446         * tests/unictype/test-categ_Lm.c: Likewise.
53447         * tests/unictype/test-categ_Lo.c: Likewise.
53448         * tests/unictype/test-categ_Lt.c: Likewise.
53449         * tests/unictype/test-categ_Lu.c: Likewise.
53450         * tests/unictype/test-categ_M.c: Likewise.
53451         * tests/unictype/test-categ_Mc.c: Likewise.
53452         * tests/unictype/test-categ_Me.c: Likewise.
53453         * tests/unictype/test-categ_Mn.c: Likewise.
53454         * tests/unictype/test-categ_N.c: Likewise.
53455         * tests/unictype/test-categ_Nd.c: Likewise.
53456         * tests/unictype/test-categ_Nl.c: Likewise.
53457         * tests/unictype/test-categ_No.c: Likewise.
53458         * tests/unictype/test-categ_P.c: Likewise.
53459         * tests/unictype/test-categ_Pc.c: Likewise.
53460         * tests/unictype/test-categ_Pd.c: Likewise.
53461         * tests/unictype/test-categ_Pe.c: Likewise.
53462         * tests/unictype/test-categ_Pf.c: Likewise.
53463         * tests/unictype/test-categ_Pi.c: Likewise.
53464         * tests/unictype/test-categ_Po.c: Likewise.
53465         * tests/unictype/test-categ_Ps.c: Likewise.
53466         * tests/unictype/test-categ_S.c: Likewise.
53467         * tests/unictype/test-categ_Sc.c: Likewise.
53468         * tests/unictype/test-categ_Sk.c: Likewise.
53469         * tests/unictype/test-categ_Sm.c: Likewise.
53470         * tests/unictype/test-categ_So.c: Likewise.
53471         * tests/unictype/test-categ_Z.c: Likewise.
53472         * tests/unictype/test-categ_Zl.c: Likewise.
53473         * tests/unictype/test-categ_Zp.c: Likewise.
53474         * tests/unictype/test-categ_Zs.c: Likewise.
53475         * tests/unictype/test-ctype_alnum.c: Likewise.
53476         * tests/unictype/test-ctype_alpha.c: Likewise.
53477         * tests/unictype/test-ctype_blank.c: Likewise.
53478         * tests/unictype/test-ctype_cntrl.c: Likewise.
53479         * tests/unictype/test-ctype_digit.c: Likewise.
53480         * tests/unictype/test-ctype_graph.c: Likewise.
53481         * tests/unictype/test-ctype_lower.c: Likewise.
53482         * tests/unictype/test-ctype_print.c: Likewise.
53483         * tests/unictype/test-ctype_punct.c: Likewise.
53484         * tests/unictype/test-ctype_space.c: Likewise.
53485         * tests/unictype/test-ctype_upper.c: Likewise.
53486         * tests/unictype/test-ctype_xdigit.c: Likewise.
53487         * tests/unictype/test-decdigit.h: Likewise.
53488         * tests/unictype/test-digit.h: Likewise.
53489         * tests/unictype/test-numeric.h: Likewise.
53490         * tests/unictype/test-pr_alphabetic.c: Likewise.
53491         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
53492         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
53493         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
53494         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
53495         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
53496         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
53497         * tests/unictype/test-pr_bidi_control.c: Likewise.
53498         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
53499         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
53500         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
53501         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
53502         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
53503         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
53504         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
53505         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
53506         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
53507         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
53508         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
53509         * tests/unictype/test-pr_combining.c: Likewise.
53510         * tests/unictype/test-pr_composite.c: Likewise.
53511         * tests/unictype/test-pr_currency_symbol.c: Likewise.
53512         * tests/unictype/test-pr_dash.c: Likewise.
53513         * tests/unictype/test-pr_decimal_digit.c: Likewise.
53514         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
53515         * tests/unictype/test-pr_deprecated.c: Likewise.
53516         * tests/unictype/test-pr_diacritic.c: Likewise.
53517         * tests/unictype/test-pr_extender.c: Likewise.
53518         * tests/unictype/test-pr_format_control.c: Likewise.
53519         * tests/unictype/test-pr_grapheme_base.c: Likewise.
53520         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
53521         * tests/unictype/test-pr_grapheme_link.c: Likewise.
53522         * tests/unictype/test-pr_hex_digit.c: Likewise.
53523         * tests/unictype/test-pr_hyphen.c: Likewise.
53524         * tests/unictype/test-pr_id_continue.c: Likewise.
53525         * tests/unictype/test-pr_id_start.c: Likewise.
53526         * tests/unictype/test-pr_ideographic.c: Likewise.
53527         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
53528         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
53529         * tests/unictype/test-pr_ignorable_control.c: Likewise.
53530         * tests/unictype/test-pr_iso_control.c: Likewise.
53531         * tests/unictype/test-pr_join_control.c: Likewise.
53532         * tests/unictype/test-pr_left_of_pair.c: Likewise.
53533         * tests/unictype/test-pr_line_separator.c: Likewise.
53534         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
53535         * tests/unictype/test-pr_lowercase.c: Likewise.
53536         * tests/unictype/test-pr_math.c: Likewise.
53537         * tests/unictype/test-pr_non_break.c: Likewise.
53538         * tests/unictype/test-pr_not_a_character.c: Likewise.
53539         * tests/unictype/test-pr_numeric.c: Likewise.
53540         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
53541         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
53542         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
53543         * tests/unictype/test-pr_other_id_continue.c: Likewise.
53544         * tests/unictype/test-pr_other_id_start.c: Likewise.
53545         * tests/unictype/test-pr_other_lowercase.c: Likewise.
53546         * tests/unictype/test-pr_other_math.c: Likewise.
53547         * tests/unictype/test-pr_other_uppercase.c: Likewise.
53548         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
53549         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
53550         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
53551         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
53552         * tests/unictype/test-pr_private_use.c: Likewise.
53553         * tests/unictype/test-pr_punctuation.c: Likewise.
53554         * tests/unictype/test-pr_quotation_mark.c: Likewise.
53555         * tests/unictype/test-pr_radical.c: Likewise.
53556         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
53557         * tests/unictype/test-pr_soft_dotted.c: Likewise.
53558         * tests/unictype/test-pr_space.c: Likewise.
53559         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
53560         * tests/unictype/test-pr_titlecase.c: Likewise.
53561         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
53562         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
53563         * tests/unictype/test-pr_uppercase.c: Likewise.
53564         * tests/unictype/test-pr_variation_selector.c: Likewise.
53565         * tests/unictype/test-pr_white_space.c: Likewise.
53566         * tests/unictype/test-pr_xid_continue.c: Likewise.
53567         * tests/unictype/test-pr_xid_start.c: Likewise.
53568         * tests/unictype/test-pr_zero_width.c: Likewise.
53569         * tests/unictype/test-sy_c_whitespace.c: Likewise.
53570         * tests/unictype/test-sy_java_whitespace.c: Likewise.
53571
53572 2007-11-12  Bruno Haible  <bruno@clisp.org>
53573
53574         Unicode character classification functions.
53575         * lib/unictype.h: New file.
53576         * modules/unictype/base: New file.
53577         * modules/unictype/category-L: New file.
53578         * modules/unictype/category-Lu: New file.
53579         * modules/unictype/category-Ll: New file.
53580         * modules/unictype/category-Lt: New file.
53581         * modules/unictype/category-Lm: New file.
53582         * modules/unictype/category-Lo: New file.
53583         * modules/unictype/category-M: New file.
53584         * modules/unictype/category-Mn: New file.
53585         * modules/unictype/category-Mc: New file.
53586         * modules/unictype/category-Me: New file.
53587         * modules/unictype/category-N: New file.
53588         * modules/unictype/category-Nd: New file.
53589         * modules/unictype/category-Nl: New file.
53590         * modules/unictype/category-No: New file.
53591         * modules/unictype/category-P: New file.
53592         * modules/unictype/category-Pc: New file.
53593         * modules/unictype/category-Pd: New file.
53594         * modules/unictype/category-Ps: New file.
53595         * modules/unictype/category-Pe: New file.
53596         * modules/unictype/category-Pi: New file.
53597         * modules/unictype/category-Pf: New file.
53598         * modules/unictype/category-Po: New file.
53599         * modules/unictype/category-S: New file.
53600         * modules/unictype/category-Sm: New file.
53601         * modules/unictype/category-Sc: New file.
53602         * modules/unictype/category-Sk: New file.
53603         * modules/unictype/category-So: New file.
53604         * modules/unictype/category-Z: New file.
53605         * modules/unictype/category-Zs: New file.
53606         * modules/unictype/category-Zl: New file.
53607         * modules/unictype/category-Zp: New file.
53608         * modules/unictype/category-C: New file.
53609         * modules/unictype/category-Cc: New file.
53610         * modules/unictype/category-Cf: New file.
53611         * modules/unictype/category-Cs: New file.
53612         * modules/unictype/category-Co: New file.
53613         * modules/unictype/category-Cn: New file.
53614         * modules/unictype/category-or: New file.
53615         * modules/unictype/category-of: New file.
53616         * modules/unictype/category-test: New file.
53617         * modules/unictype/category-test-withtable: New file.
53618         * modules/unictype/category-byname: New file.
53619         * modules/unictype/category-none: New file.
53620         * modules/unictype/category-and: New file.
53621         * modules/unictype/category-and-not: New file.
53622         * modules/unictype/category-name: New file.
53623         * modules/unictype/combining-class: New file.
53624         * modules/unictype/category-all: New file.
53625         * modules/unictype/bidicategory-all: New file.
53626         * modules/unictype/bidicategory-byname: New file.
53627         * modules/unictype/bidicategory-name: New file.
53628         * modules/unictype/bidicategory-of: New file.
53629         * modules/unictype/bidicategory-test: New file.
53630         * modules/unictype/decimal-digit: New file.
53631         * modules/unictype/digit: New file.
53632         * modules/unictype/numeric: New file.
53633         * modules/unictype/mirror: New file.
53634         * modules/unictype/property-white-space: New file.
53635         * modules/unictype/property-alphabetic: New file.
53636         * modules/unictype/property-other-alphabetic: New file.
53637         * modules/unictype/property-not-a-character: New file.
53638         * modules/unictype/property-default-ignorable-code-point: New file.
53639         * modules/unictype/property-other-default-ignorable-code-point: New
53640         file.
53641         * modules/unictype/property-deprecated: New file.
53642         * modules/unictype/property-logical-order-exception: New file.
53643         * modules/unictype/property-variation-selector: New file.
53644         * modules/unictype/property-private-use: New file.
53645         * modules/unictype/property-unassigned-code-value: New file.
53646         * modules/unictype/property-uppercase: New file.
53647         * modules/unictype/property-other-uppercase: New file.
53648         * modules/unictype/property-lowercase: New file.
53649         * modules/unictype/property-other-lowercase: New file.
53650         * modules/unictype/property-titlecase: New file.
53651         * modules/unictype/property-soft-dotted: New file.
53652         * modules/unictype/property-id-start: New file.
53653         * modules/unictype/property-other-id-start: New file.
53654         * modules/unictype/property-id-continue: New file.
53655         * modules/unictype/property-other-id-continue: New file.
53656         * modules/unictype/property-xid-start: New file.
53657         * modules/unictype/property-xid-continue: New file.
53658         * modules/unictype/property-pattern-white-space: New file.
53659         * modules/unictype/property-pattern-syntax: New file.
53660         * modules/unictype/property-join-control: New file.
53661         * modules/unictype/property-grapheme-base: New file.
53662         * modules/unictype/property-grapheme-extend: New file.
53663         * modules/unictype/property-other-grapheme-extend: New file.
53664         * modules/unictype/property-grapheme-link: New file.
53665         * modules/unictype/property-bidi-control: New file.
53666         * modules/unictype/property-bidi-left-to-right: New file.
53667         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
53668         * modules/unictype/property-bidi-arabic-right-to-left: New file.
53669         * modules/unictype/property-bidi-european-digit: New file.
53670         * modules/unictype/property-bidi-eur-num-separator: New file.
53671         * modules/unictype/property-bidi-eur-num-terminator: New file.
53672         * modules/unictype/property-bidi-arabic-digit: New file.
53673         * modules/unictype/property-bidi-common-separator: New file.
53674         * modules/unictype/property-bidi-block-separator: New file.
53675         * modules/unictype/property-bidi-segment-separator: New file.
53676         * modules/unictype/property-bidi-whitespace: New file.
53677         * modules/unictype/property-bidi-non-spacing-mark: New file.
53678         * modules/unictype/property-bidi-boundary-neutral: New file.
53679         * modules/unictype/property-bidi-pdf: New file.
53680         * modules/unictype/property-bidi-embedding-or-override: New file.
53681         * modules/unictype/property-bidi-other-neutral: New file.
53682         * modules/unictype/property-hex-digit: New file.
53683         * modules/unictype/property-ascii-hex-digit: New file.
53684         * modules/unictype/property-ideographic: New file.
53685         * modules/unictype/property-unified-ideograph: New file.
53686         * modules/unictype/property-radical: New file.
53687         * modules/unictype/property-ids-binary-operator: New file.
53688         * modules/unictype/property-ids-trinary-operator: New file.
53689         * modules/unictype/property-zero-width: New file.
53690         * modules/unictype/property-space: New file.
53691         * modules/unictype/property-non-break: New file.
53692         * modules/unictype/property-iso-control: New file.
53693         * modules/unictype/property-format-control: New file.
53694         * modules/unictype/property-dash: New file.
53695         * modules/unictype/property-hyphen: New file.
53696         * modules/unictype/property-punctuation: New file.
53697         * modules/unictype/property-line-separator: New file.
53698         * modules/unictype/property-paragraph-separator: New file.
53699         * modules/unictype/property-quotation-mark: New file.
53700         * modules/unictype/property-sentence-terminal: New file.
53701         * modules/unictype/property-terminal-punctuation: New file.
53702         * modules/unictype/property-currency-symbol: New file.
53703         * modules/unictype/property-math: New file.
53704         * modules/unictype/property-other-math: New file.
53705         * modules/unictype/property-paired-punctuation: New file.
53706         * modules/unictype/property-left-of-pair: New file.
53707         * modules/unictype/property-combining: New file.
53708         * modules/unictype/property-composite: New file.
53709         * modules/unictype/property-decimal-digit: New file.
53710         * modules/unictype/property-numeric: New file.
53711         * modules/unictype/property-diacritic: New file.
53712         * modules/unictype/property-extender: New file.
53713         * modules/unictype/property-ignorable-control: New file.
53714         * modules/unictype/property-test: New file.
53715         * modules/unictype/property-byname: New file.
53716         * modules/unictype/property-all: New file.
53717         * modules/unictype/scripts: New file.
53718         * modules/unictype/scripts-all: New file.
53719         * modules/unictype/block-of: New file.
53720         * modules/unictype/block-test: New file.
53721         * modules/unictype/block-list: New file.
53722         * modules/unictype/block-all: New file.
53723         * modules/unictype/syntax-c-whitespace: New file.
53724         * modules/unictype/syntax-java-whitespace: New file.
53725         * modules/unictype/syntax-c-ident: New file.
53726         * modules/unictype/syntax-java-ident: New file.
53727         * modules/unictype/ctype-alnum: New file.
53728         * modules/unictype/ctype-alpha: New file.
53729         * modules/unictype/ctype-cntrl: New file.
53730         * modules/unictype/ctype-digit: New file.
53731         * modules/unictype/ctype-graph: New file.
53732         * modules/unictype/ctype-lower: New file.
53733         * modules/unictype/ctype-print: New file.
53734         * modules/unictype/ctype-punct: New file.
53735         * modules/unictype/ctype-space: New file.
53736         * modules/unictype/ctype-upper: New file.
53737         * modules/unictype/ctype-xdigit: New file.
53738         * modules/unictype/ctype-blank: New file.
53739         * lib/unictype/bidi_byname.c: New file.
53740         * lib/unictype/bidi_name.c: New file.
53741         * lib/unictype/bidi_of.c: New file.
53742         * lib/unictype/bidi_test.c: New file.
53743         * lib/unictype/bitmap.h: New file.
53744         * lib/unictype/block_test.c: New file.
53745         * lib/unictype/blocks.c: New file.
53746         * lib/unictype/categ_C.c: New file.
53747         * lib/unictype/categ_Cc.c: New file.
53748         * lib/unictype/categ_Cf.c: New file.
53749         * lib/unictype/categ_Cn.c: New file.
53750         * lib/unictype/categ_Co.c: New file.
53751         * lib/unictype/categ_Cs.c: New file.
53752         * lib/unictype/categ_L.c: New file.
53753         * lib/unictype/categ_Ll.c: New file.
53754         * lib/unictype/categ_Lm.c: New file.
53755         * lib/unictype/categ_Lo.c: New file.
53756         * lib/unictype/categ_Lt.c: New file.
53757         * lib/unictype/categ_Lu.c: New file.
53758         * lib/unictype/categ_M.c: New file.
53759         * lib/unictype/categ_Mc.c: New file.
53760         * lib/unictype/categ_Me.c: New file.
53761         * lib/unictype/categ_Mn.c: New file.
53762         * lib/unictype/categ_N.c: New file.
53763         * lib/unictype/categ_Nd.c: New file.
53764         * lib/unictype/categ_Nl.c: New file.
53765         * lib/unictype/categ_No.c: New file.
53766         * lib/unictype/categ_P.c: New file.
53767         * lib/unictype/categ_Pc.c: New file.
53768         * lib/unictype/categ_Pd.c: New file.
53769         * lib/unictype/categ_Pe.c: New file.
53770         * lib/unictype/categ_Pf.c: New file.
53771         * lib/unictype/categ_Pi.c: New file.
53772         * lib/unictype/categ_Po.c: New file.
53773         * lib/unictype/categ_Ps.c: New file.
53774         * lib/unictype/categ_S.c: New file.
53775         * lib/unictype/categ_Sc.c: New file.
53776         * lib/unictype/categ_Sk.c: New file.
53777         * lib/unictype/categ_Sm.c: New file.
53778         * lib/unictype/categ_So.c: New file.
53779         * lib/unictype/categ_Z.c: New file.
53780         * lib/unictype/categ_Zl.c: New file.
53781         * lib/unictype/categ_Zp.c: New file.
53782         * lib/unictype/categ_Zs.c: New file.
53783         * lib/unictype/categ_and.c: New file.
53784         * lib/unictype/categ_and_not.c: New file.
53785         * lib/unictype/categ_byname.c: New file.
53786         * lib/unictype/categ_name.c: New file.
53787         * lib/unictype/categ_none.c: New file.
53788         * lib/unictype/categ_of.c: New file.
53789         * lib/unictype/categ_or.c: New file.
53790         * lib/unictype/categ_test.c: New file.
53791         * lib/unictype/combining.c: New file.
53792         * lib/unictype/ctype_alnum.c: New file.
53793         * lib/unictype/ctype_alpha.c: New file.
53794         * lib/unictype/ctype_blank.c: New file.
53795         * lib/unictype/ctype_cntrl.c: New file.
53796         * lib/unictype/ctype_digit.c: New file.
53797         * lib/unictype/ctype_graph.c: New file.
53798         * lib/unictype/ctype_lower.c: New file.
53799         * lib/unictype/ctype_print.c: New file.
53800         * lib/unictype/ctype_punct.c: New file.
53801         * lib/unictype/ctype_space.c: New file.
53802         * lib/unictype/ctype_upper.c: New file.
53803         * lib/unictype/ctype_xdigit.c: New file.
53804         * lib/unictype/decdigit.c: New file.
53805         * lib/unictype/digit.c: New file.
53806         * lib/unictype/identsyntaxmap.h: New file.
53807         * lib/unictype/mirror.c: New file.
53808         * lib/unictype/numeric.c: New file.
53809         * lib/unictype/pr_alphabetic.c: New file.
53810         * lib/unictype/pr_ascii_hex_digit.c: New file.
53811         * lib/unictype/pr_bidi_arabic_digit.c: New file.
53812         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
53813         * lib/unictype/pr_bidi_block_separator.c: New file.
53814         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
53815         * lib/unictype/pr_bidi_common_separator.c: New file.
53816         * lib/unictype/pr_bidi_control.c: New file.
53817         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
53818         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
53819         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
53820         * lib/unictype/pr_bidi_european_digit.c: New file.
53821         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
53822         * lib/unictype/pr_bidi_left_to_right.c: New file.
53823         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
53824         * lib/unictype/pr_bidi_other_neutral.c: New file.
53825         * lib/unictype/pr_bidi_pdf.c: New file.
53826         * lib/unictype/pr_bidi_segment_separator.c: New file.
53827         * lib/unictype/pr_bidi_whitespace.c: New file.
53828         * lib/unictype/pr_byname.c: New file.
53829         * lib/unictype/pr_byname.gperf: New file.
53830         * lib/unictype/pr_combining.c: New file.
53831         * lib/unictype/pr_composite.c: New file.
53832         * lib/unictype/pr_currency_symbol.c: New file.
53833         * lib/unictype/pr_dash.c: New file.
53834         * lib/unictype/pr_decimal_digit.c: New file.
53835         * lib/unictype/pr_default_ignorable_code_point.c: New file.
53836         * lib/unictype/pr_deprecated.c: New file.
53837         * lib/unictype/pr_diacritic.c: New file.
53838         * lib/unictype/pr_extender.c: New file.
53839         * lib/unictype/pr_format_control.c: New file.
53840         * lib/unictype/pr_grapheme_base.c: New file.
53841         * lib/unictype/pr_grapheme_extend.c: New file.
53842         * lib/unictype/pr_grapheme_link.c: New file.
53843         * lib/unictype/pr_hex_digit.c: New file.
53844         * lib/unictype/pr_hyphen.c: New file.
53845         * lib/unictype/pr_id_continue.c: New file.
53846         * lib/unictype/pr_id_start.c: New file.
53847         * lib/unictype/pr_ideographic.c: New file.
53848         * lib/unictype/pr_ids_binary_operator.c: New file.
53849         * lib/unictype/pr_ids_trinary_operator.c: New file.
53850         * lib/unictype/pr_ignorable_control.c: New file.
53851         * lib/unictype/pr_iso_control.c: New file.
53852         * lib/unictype/pr_join_control.c: New file.
53853         * lib/unictype/pr_left_of_pair.c: New file.
53854         * lib/unictype/pr_line_separator.c: New file.
53855         * lib/unictype/pr_logical_order_exception.c: New file.
53856         * lib/unictype/pr_lowercase.c: New file.
53857         * lib/unictype/pr_math.c: New file.
53858         * lib/unictype/pr_non_break.c: New file.
53859         * lib/unictype/pr_not_a_character.c: New file.
53860         * lib/unictype/pr_numeric.c: New file.
53861         * lib/unictype/pr_other_alphabetic.c: New file.
53862         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
53863         * lib/unictype/pr_other_grapheme_extend.c: New file.
53864         * lib/unictype/pr_other_id_continue.c: New file.
53865         * lib/unictype/pr_other_id_start.c: New file.
53866         * lib/unictype/pr_other_lowercase.c: New file.
53867         * lib/unictype/pr_other_math.c: New file.
53868         * lib/unictype/pr_other_uppercase.c: New file.
53869         * lib/unictype/pr_paired_punctuation.c: New file.
53870         * lib/unictype/pr_paragraph_separator.c: New file.
53871         * lib/unictype/pr_pattern_syntax.c: New file.
53872         * lib/unictype/pr_pattern_white_space.c: New file.
53873         * lib/unictype/pr_private_use.c: New file.
53874         * lib/unictype/pr_punctuation.c: New file.
53875         * lib/unictype/pr_quotation_mark.c: New file.
53876         * lib/unictype/pr_radical.c: New file.
53877         * lib/unictype/pr_sentence_terminal.c: New file.
53878         * lib/unictype/pr_soft_dotted.c: New file.
53879         * lib/unictype/pr_space.c: New file.
53880         * lib/unictype/pr_terminal_punctuation.c: New file.
53881         * lib/unictype/pr_test.c: New file.
53882         * lib/unictype/pr_titlecase.c: New file.
53883         * lib/unictype/pr_unassigned_code_value.c: New file.
53884         * lib/unictype/pr_unified_ideograph.c: New file.
53885         * lib/unictype/pr_uppercase.c: New file.
53886         * lib/unictype/pr_variation_selector.c: New file.
53887         * lib/unictype/pr_white_space.c: New file.
53888         * lib/unictype/pr_xid_continue.c: New file.
53889         * lib/unictype/pr_xid_start.c: New file.
53890         * lib/unictype/pr_zero_width.c: New file.
53891         * lib/unictype/scripts.c: New file.
53892         * lib/unictype/sy_c_ident.c: New file.
53893         * lib/unictype/sy_c_whitespace.c: New file.
53894         * lib/unictype/sy_java_ident.c: New file.
53895         * lib/unictype/sy_java_whitespace.c: New file.
53896
53897         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
53898         Unicode 5.0.0.
53899         * lib/unictype/blocks.h: Likewise.
53900         * lib/unictype/categ_C.h: Likewise.
53901         * lib/unictype/categ_Cc.h: Likewise.
53902         * lib/unictype/categ_Cf.h: Likewise.
53903         * lib/unictype/categ_Cn.h: Likewise.
53904         * lib/unictype/categ_Co.h: Likewise.
53905         * lib/unictype/categ_Cs.h: Likewise.
53906         * lib/unictype/categ_L.h: Likewise.
53907         * lib/unictype/categ_Ll.h: Likewise.
53908         * lib/unictype/categ_Lm.h: Likewise.
53909         * lib/unictype/categ_Lo.h: Likewise.
53910         * lib/unictype/categ_Lt.h: Likewise.
53911         * lib/unictype/categ_Lu.h: Likewise.
53912         * lib/unictype/categ_M.h: Likewise.
53913         * lib/unictype/categ_Mc.h: Likewise.
53914         * lib/unictype/categ_Me.h: Likewise.
53915         * lib/unictype/categ_Mn.h: Likewise.
53916         * lib/unictype/categ_N.h: Likewise.
53917         * lib/unictype/categ_Nd.h: Likewise.
53918         * lib/unictype/categ_Nl.h: Likewise.
53919         * lib/unictype/categ_No.h: Likewise.
53920         * lib/unictype/categ_P.h: Likewise.
53921         * lib/unictype/categ_Pc.h: Likewise.
53922         * lib/unictype/categ_Pd.h: Likewise.
53923         * lib/unictype/categ_Pe.h: Likewise.
53924         * lib/unictype/categ_Pf.h: Likewise.
53925         * lib/unictype/categ_Pi.h: Likewise.
53926         * lib/unictype/categ_Po.h: Likewise.
53927         * lib/unictype/categ_Ps.h: Likewise.
53928         * lib/unictype/categ_S.h: Likewise.
53929         * lib/unictype/categ_Sc.h: Likewise.
53930         * lib/unictype/categ_Sk.h: Likewise.
53931         * lib/unictype/categ_Sm.h: Likewise.
53932         * lib/unictype/categ_So.h: Likewise.
53933         * lib/unictype/categ_Z.h: Likewise.
53934         * lib/unictype/categ_Zl.h: Likewise.
53935         * lib/unictype/categ_Zp.h: Likewise.
53936         * lib/unictype/categ_Zs.h: Likewise.
53937         * lib/unictype/categ_of.h: Likewise.
53938         * lib/unictype/combining.h: Likewise.
53939         * lib/unictype/ctype_alnum.h: Likewise.
53940         * lib/unictype/ctype_alpha.h: Likewise.
53941         * lib/unictype/ctype_blank.h: Likewise.
53942         * lib/unictype/ctype_cntrl.h: Likewise.
53943         * lib/unictype/ctype_digit.h: Likewise.
53944         * lib/unictype/ctype_graph.h: Likewise.
53945         * lib/unictype/ctype_lower.h: Likewise.
53946         * lib/unictype/ctype_print.h: Likewise.
53947         * lib/unictype/ctype_punct.h: Likewise.
53948         * lib/unictype/ctype_space.h: Likewise.
53949         * lib/unictype/ctype_upper.h: Likewise.
53950         * lib/unictype/ctype_xdigit.h: Likewise.
53951         * lib/unictype/decdigit.h: Likewise.
53952         * lib/unictype/digit.h: Likewise.
53953         * lib/unictype/mirror.h: Likewise.
53954         * lib/unictype/numeric.h: Likewise.
53955         * lib/unictype/pr_alphabetic.h: Likewise.
53956         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
53957         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
53958         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
53959         * lib/unictype/pr_bidi_block_separator.h: Likewise.
53960         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
53961         * lib/unictype/pr_bidi_common_separator.h: Likewise.
53962         * lib/unictype/pr_bidi_control.h: Likewise.
53963         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
53964         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
53965         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
53966         * lib/unictype/pr_bidi_european_digit.h: Likewise.
53967         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
53968         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
53969         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
53970         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
53971         * lib/unictype/pr_bidi_pdf.h: Likewise.
53972         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
53973         * lib/unictype/pr_bidi_whitespace.h: Likewise.
53974         * lib/unictype/pr_combining.h: Likewise.
53975         * lib/unictype/pr_composite.h: Likewise.
53976         * lib/unictype/pr_currency_symbol.h: Likewise.
53977         * lib/unictype/pr_dash.h: Likewise.
53978         * lib/unictype/pr_decimal_digit.h: Likewise.
53979         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
53980         * lib/unictype/pr_deprecated.h: Likewise.
53981         * lib/unictype/pr_diacritic.h: Likewise.
53982         * lib/unictype/pr_extender.h: Likewise.
53983         * lib/unictype/pr_format_control.h: Likewise.
53984         * lib/unictype/pr_grapheme_base.h: Likewise.
53985         * lib/unictype/pr_grapheme_extend.h: Likewise.
53986         * lib/unictype/pr_grapheme_link.h: Likewise.
53987         * lib/unictype/pr_hex_digit.h: Likewise.
53988         * lib/unictype/pr_hyphen.h: Likewise.
53989         * lib/unictype/pr_id_continue.h: Likewise.
53990         * lib/unictype/pr_id_start.h: Likewise.
53991         * lib/unictype/pr_ideographic.h: Likewise.
53992         * lib/unictype/pr_ids_binary_operator.h: Likewise.
53993         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
53994         * lib/unictype/pr_ignorable_control.h: Likewise.
53995         * lib/unictype/pr_iso_control.h: Likewise.
53996         * lib/unictype/pr_join_control.h: Likewise.
53997         * lib/unictype/pr_left_of_pair.h: Likewise.
53998         * lib/unictype/pr_line_separator.h: Likewise.
53999         * lib/unictype/pr_logical_order_exception.h: Likewise.
54000         * lib/unictype/pr_lowercase.h: Likewise.
54001         * lib/unictype/pr_math.h: Likewise.
54002         * lib/unictype/pr_non_break.h: Likewise.
54003         * lib/unictype/pr_not_a_character.h: Likewise.
54004         * lib/unictype/pr_numeric.h: Likewise.
54005         * lib/unictype/pr_other_alphabetic.h: Likewise.
54006         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
54007         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
54008         * lib/unictype/pr_other_id_continue.h: Likewise.
54009         * lib/unictype/pr_other_id_start.h: Likewise.
54010         * lib/unictype/pr_other_lowercase.h: Likewise.
54011         * lib/unictype/pr_other_math.h: Likewise.
54012         * lib/unictype/pr_other_uppercase.h: Likewise.
54013         * lib/unictype/pr_paired_punctuation.h: Likewise.
54014         * lib/unictype/pr_paragraph_separator.h: Likewise.
54015         * lib/unictype/pr_pattern_syntax.h: Likewise.
54016         * lib/unictype/pr_pattern_white_space.h: Likewise.
54017         * lib/unictype/pr_private_use.h: Likewise.
54018         * lib/unictype/pr_punctuation.h: Likewise.
54019         * lib/unictype/pr_quotation_mark.h: Likewise.
54020         * lib/unictype/pr_radical.h: Likewise.
54021         * lib/unictype/pr_sentence_terminal.h: Likewise.
54022         * lib/unictype/pr_soft_dotted.h: Likewise.
54023         * lib/unictype/pr_space.h: Likewise.
54024         * lib/unictype/pr_terminal_punctuation.h: Likewise.
54025         * lib/unictype/pr_titlecase.h: Likewise.
54026         * lib/unictype/pr_unassigned_code_value.h: Likewise.
54027         * lib/unictype/pr_unified_ideograph.h: Likewise.
54028         * lib/unictype/pr_uppercase.h: Likewise.
54029         * lib/unictype/pr_variation_selector.h: Likewise.
54030         * lib/unictype/pr_white_space.h: Likewise.
54031         * lib/unictype/pr_xid_continue.h: Likewise.
54032         * lib/unictype/pr_xid_start.h: Likewise.
54033         * lib/unictype/pr_zero_width.h: Likewise.
54034         * lib/unictype/scripts.h: Likewise.
54035         * lib/unictype/scripts_byname.gperf: Likewise.
54036         * lib/unictype/sy_c_ident.h: Likewise.
54037         * lib/unictype/sy_c_whitespace.h: Likewise.
54038         * lib/unictype/sy_java_ident.h: Likewise.
54039         * lib/unictype/sy_java_whitespace.h: Likewise.
54040
54041         * lib/unictype/Makefile: New file.
54042         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
54043         glibc.
54044         * lib/unictype/3level.h: New file, copied from glibc.
54045         * lib/unictype/3levelbit.h: New file.
54046
54047 2007-11-11  Bruno Haible  <bruno@clisp.org>
54048
54049         * modules/gperf: New file.
54050         * modules/iconv_open (Depends-on): Add it.
54051         (Makefile.am): Remove the GPERF definition.
54052
54053 2007-11-11  Bruno Haible  <bruno@clisp.org>
54054
54055         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
54056         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
54057
54058 2007-11-11  Bruno Haible  <bruno@clisp.org>
54059
54060         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
54061         (usage): Remove function.
54062
54063 2007-11-11  Bruno Haible  <bruno@clisp.org>
54064
54065         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
54066         gl_FUNC_CEILF_LIBS.
54067         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
54068         gl_FUNC_CEIL_LIBS.
54069         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
54070         gl_FUNC_CEILL_LIBS.
54071         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
54072         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
54073         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
54074
54075 2007-11-11  Bruno Haible  <bruno@clisp.org>
54076
54077         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
54078         roundf were declared but do not exist on functions.
54079         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
54080         roundl were declared but do not exist on functions.
54081         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
54082         HAVE_FLOORL_AND_CEILL, respectively.
54083         Needed for Sun C on Solaris 10.
54084
54085 2007-11-11  Bruno Haible  <bruno@clisp.org>
54086
54087         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
54088         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
54089         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
54090         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
54091         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
54092         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
54093         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
54094         HAVE_DECL_ROUNDF.
54095         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
54096         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
54097         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
54098         of HAVE_DECL_ROUND*.
54099         * modules/math (Makefile.am): Update.
54100
54101 2007-11-10  Bruno Haible  <bruno@clisp.org>
54102
54103         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
54104         ptrdiff_t as m4/intl.m4.
54105
54106 2007-11-10  Jim Meyering  <meyering@redhat.com>
54107
54108         Avoid link failure for the argmatch test.
54109         * tests/test-argmatch.c (usage): Define function to avoid a link
54110         failure: argmatch_die requires a usage function.
54111
54112 2007-11-09  Bruno Haible  <bruno@clisp.org>
54113
54114         * doc/functions/snprintf.texi: Mention BeOS deficiency.
54115         * doc/functions/vsnprintf.texi: Likewise.
54116         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
54117         with a size argument < 2.
54118
54119 2007-11-09  Bruno Haible  <bruno@clisp.org>
54120
54121         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
54122         buffer. Fixes an inefficiency introduced on 2007-11-03.
54123
54124 2007-11-09  Bruno Haible  <bruno@clisp.org>
54125
54126         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
54127         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
54128
54129 2007-11-08  Jim Meyering  <meyering@redhat.com>
54130
54131         Change cache variable name prefix "jm_" to "gl_" everywhere.
54132         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
54133         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
54134         * m4/uptime.m4: s/gl_/jm_/
54135
54136 2007-11-07  Bruno Haible  <bruno@clisp.org>
54137
54138         Update to GNU gettext 0.17.
54139         * m4/intl.m4: Update to GNU gettext 0.17.
54140         * m4/po.m4: Likewise.
54141         * modules/gettext (Files): Remove m4/ulonglong.m4.
54142         (configure.ac): Require gettext infrastructure from version 0.17.
54143
54144 2007-11-06  Bruno Haible  <bruno@clisp.org>
54145
54146         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
54147         symbolic values are not defined in a public header.
54148         * lib/freadable.c (freadable) [QNX]: Likewise.
54149         * lib/freadahead.c (freadahead) [QNX]: Likewise.
54150         * lib/freading.c (freading) [QNX]: Likewise.
54151         * lib/fseterr.c (fseterr) [QNX]: Likewise.
54152         * lib/fwritable.c (fwritable) [QNX]: Likewise.
54153         * lib/fwriting.c (fwriting) [QNX]: Likewise.
54154         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
54155         Reported by Alain Magloire.
54156
54157         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
54158
54159 2007-11-05  Bruno Haible  <bruno@clisp.org>
54160
54161         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
54162         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
54163         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
54164         Reported by Eric Blake.
54165
54166 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54167             Bruno Haible  <bruno@clisp.org>
54168
54169         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
54170         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
54171         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
54172         (malloc): Undefine also before including <stdlib.h>.
54173         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
54174         Needed on OSF/1 4.0.
54175
54176 2007-11-05  Jim Meyering  <meyering@redhat.com>
54177
54178         git-version-gen: sync from coreutils.
54179         * build-aux/git-version-gen: Add comments.
54180         Change the first '-' to '.' in the snapshot version string,
54181         e.g., 6.9-377-08144 -> 6.9.377-08144
54182         Remove first parameter.
54183         Don't declare a version "-dirty" merely because a time
54184         stamp has changed.
54185
54186 2007-11-04  Bruno Haible  <bruno@clisp.org>
54187
54188         * lib/lock.h: Protect all macro definitions containing an 'if'
54189         statement through a "do { ... } while (0)".
54190         * lib/tls.h: Likewise.
54191
54192 2007-11-04  Bruno Haible  <bruno@clisp.org>
54193
54194         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
54195
54196 2007-11-04  Bruno Haible  <bruno@clisp.org>
54197
54198         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
54199         * modules/fprintf-posix (Depends-on): Add nocrash.
54200         * modules/snprintf-posix (Depends-on): Likewise.
54201         * modules/sprintf-posix (Depends-on): Likewise.
54202         * modules/vasnprintf-posix (Depends-on): Likewise.
54203         * modules/vasprintf-posix (Depends-on): Likewise.
54204         * modules/vfprintf-posix (Depends-on): Likewise.
54205         * modules/vsnprintf-posix (Depends-on): Likewise.
54206         * modules/vsprintf-posix (Depends-on): Likewise.
54207         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
54208         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
54209         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
54210         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
54211         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
54212         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
54213         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
54214
54215 2007-11-04  Bruno Haible  <bruno@clisp.org>
54216
54217         * modules/nocrash: New file.
54218         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
54219         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
54220
54221 2007-11-04  Bruno Haible  <bruno@clisp.org>
54222
54223         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
54224         precision handling.
54225         * tests/test-vasprintf-posix.c (test_function): Likewise.
54226         * tests/test-snprintf-posix.h (test_function): Likewise.
54227         * tests/test-sprintf-posix.h (test_function): Likewise.
54228
54229         Fix *printf behaviour for large precisions on mingw and BeOS.
54230         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
54231         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
54232         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
54233         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
54234         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
54235         gl_PRINTF_PRECISION and test its result. Invoke
54236         gl_PREREQ_VASNPRINTF_PRECISION.
54237         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
54238         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54239         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54240         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54241         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54242         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54243         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54244         * doc/functions/fprintf.texi: Update.
54245         * doc/functions/printf.texi: Update.
54246         * doc/functions/snprintf.texi: Update.
54247         * doc/functions/sprintf.texi: Update.
54248         * doc/functions/vfprintf.texi: Update.
54249         * doc/functions/vprintf.texi: Update.
54250         * doc/functions/vsnprintf.texi: Update.
54251         * doc/functions/vsprintf.texi: Update.
54252
54253 2007-11-04  Bruno Haible  <bruno@clisp.org>
54254
54255         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
54256
54257 2007-11-04  Bruno Haible  <bruno@clisp.org>
54258
54259         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
54260         Reported by Sylvain Beucler <beuc@gnu.org>.
54261
54262 2007-11-03  Bruno Haible  <bruno@clisp.org>
54263
54264         * tests/test-fprintf-posix2.sh: New file.
54265         * tests/test-fprintf-posix2.c: New file.
54266         * modules/fprintf-posix-tests (Files): Add them.
54267         (TESTS): Add test-fprintf-posix2.sh.
54268         (configure.ac): Check for getrlimit and setrlimit.
54269         (check_PROGRAMS): Add test-fprintf-posix2.
54270
54271         * tests/test-printf-posix2.sh: New file.
54272         * tests/test-printf-posix2.c: New file.
54273         * modules/printf-posix-tests (Files): Add them.
54274         (TESTS): Add test-printf-posix2.sh.
54275         (configure.ac): Check for getrlimit and setrlimit.
54276         (check_PROGRAMS): Add test-printf-posix2.
54277
54278         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
54279         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
54280         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
54281         (decode_double): New function, copied from decode_long_double.
54282         (scale10_round_decimal_decoded): New function, extracted from
54283         scale10_round_decimal_long_double.
54284         (scale10_round_decimal_long_double): Use it.
54285         (scale10_round_decimal_double): New function.
54286         (floorlog10): New function.
54287         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
54288         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
54289         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
54290         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
54291         gl_PRINTF_ENOMEM and test its result. Invoke
54292         gl_PREREQ_VASNPRINTF_ENOMEM.
54293         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
54294         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54295         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54296         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54297         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54298         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54299         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54300         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
54301         * modules/snprintf-posix (Depends-on): Likewise.
54302         * modules/sprintf-posix (Depends-on): Likewise.
54303         * modules/vasnprintf-posix (Depends-on): Likewise.
54304         * modules/vasprintf-posix (Depends-on): Likewise.
54305         * modules/vfprintf-posix (Depends-on): Likewise.
54306         * modules/vsnprintf-posix (Depends-on): Likewise.
54307         * modules/vsprintf-posix (Depends-on): Likewise.
54308         * doc/functions/fprintf.texi: Update.
54309         * doc/functions/printf.texi: Update.
54310         * doc/functions/snprintf.texi: Update.
54311         * doc/functions/sprintf.texi: Update.
54312         * doc/functions/vfprintf.texi: Update.
54313         * doc/functions/vprintf.texi: Update.
54314         * doc/functions/vsnprintf.texi: Update.
54315         * doc/functions/vsprintf.texi: Update.
54316
54317 2007-11-03  Bruno Haible  <bruno@clisp.org>
54318
54319         * modules/frexp-nolibm-tests: New file.
54320
54321         * modules/frexp-nolibm: New file.
54322         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
54323
54324 2007-11-03  Bruno Haible  <bruno@clisp.org>
54325
54326         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
54327         value is C99 compliant.
54328         Needed for OSF/1 5.1.
54329
54330 2007-11-03  Bruno Haible  <bruno@clisp.org>
54331
54332         Fix out-of-memory handling of vasnprintf.
54333         * lib/printf-parse.c: Include <errno.h>.
54334         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
54335         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
54336         is already set.
54337
54338 2007-11-02  Eric Blake  <ebb9@byu.net>
54339
54340         Fix tests on cygwin.
54341         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
54342
54343 2007-11-01  Bruno Haible  <bruno@clisp.org>
54344
54345         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
54346         warning.
54347         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
54348         needed for POSIX compatibility.
54349
54350 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
54351
54352         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
54353         for compatibility with GNU.
54354
54355 2007-11-01  Bruno Haible  <bruno@clisp.org>
54356
54357         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
54358         (putenv): Renamed from rpl_putenv. Change argument type from
54359         'const char *' to 'char *'.
54360         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
54361         of defining putenv in config.h, just set REPLACE_PUTENV.
54362         * modules/putenv (Depends-on): Add stdlib.
54363         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
54364         (Include): Use <stdlib.h>.
54365         * lib/stdlib.in.h (putenv): New declaration.
54366         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
54367         REPLACE_PUTENV.
54368         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
54369         REPLACE_PUTENV.
54370         Needed for MacOS X 10.5.0.
54371         Reported by Peter O'Gorman <peter@pogma.com>.
54372
54373 2007-11-01  Jim Meyering  <meyering@redhat.com>
54374
54375         Treat an empty date string exactly like "0".
54376         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
54377         if the remaining date string (to be parsed) is empty, use "0".
54378         Reported by Mischa Molhoek and discussed in this thread:
54379         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
54380
54381 2007-10-31  Bruno Haible  <bruno@clisp.org>
54382
54383         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
54384         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
54385         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
54386         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
54387         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
54388         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
54389
54390 2007-10-31  Bruno Haible  <bruno@clisp.org>
54391
54392         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
54393         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
54394         (AC_TYPE_LONG_LONG_INT): Use it.
54395         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
54396         it as well.
54397         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
54398         to m4/longlong.m4.
54399         * modules/stdint (Files): Remove m4/ulonglong.m4.
54400         * modules/strtoull (Files): Use m4/longlong.m4 instead of
54401         m4/ulonglong.m4.
54402         * modules/strtoumax (Files): Likewise.
54403
54404 2007-10-30  Bruno Haible  <bruno@clisp.org>
54405
54406         * modules/xvasprintf-posix: New file.
54407         Suggested by Eric Blake.
54408
54409 2007-10-30  Bruno Haible  <bruno@clisp.org>
54410
54411         * modules/xprintf-posix-tests: New file.
54412         * tests/test-xprintf-posix.sh: New file.
54413         * tests/test-xprintf-posix.c: New file.
54414         * tests/test-xfprintf-posix.c: New file.
54415
54416         * modules/xprintf-posix: New file.
54417
54418 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54419
54420         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
54421         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
54422         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
54423
54424 2007-10-29  Bruno Haible  <bruno@clisp.org>
54425
54426         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
54427         contain the special marker '_cv_'.
54428         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
54429         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
54430         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
54431         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
54432         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
54433         Reported by Ralf Wildenhues.
54434
54435 2007-10-29  Bruno Haible  <bruno@clisp.org>
54436
54437         * gnulib-tool (func_import): When --lgpl is not specified, set
54438         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
54439         GPLv3.
54440         Reported by Simon Josefsson.
54441
54442 2007-10-28  Bruno Haible  <bruno@clisp.org>
54443
54444         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
54445         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
54446         HAVE_DECL_ISFINITE.
54447         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
54448         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
54449         HAVE_DECL_ISFINITE.
54450
54451 2007-10-28  Bruno Haible  <bruno@clisp.org>
54452
54453         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
54454         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
54455
54456 2007-10-28  Bruno Haible  <bruno@clisp.org>
54457
54458         Fix link errors with Sun C 5.0 on Solaris 10.
54459         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
54460         function is declared but not present in the compiler's libm.
54461         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
54462         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
54463         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
54464         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
54465         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
54466         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
54467         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
54468         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
54469         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
54470         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
54471         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
54472         HAVE_DECL_FLOORL.
54473
54474 2007-10-28  Bruno Haible  <bruno@clisp.org>
54475
54476         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
54477         gl_FUNC_FLOORL. Cache the result.
54478         (gl_FUNC_FLOORL): Use it.
54479         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
54480         gl_FUNC_CEILL. Cache the result.
54481         (gl_FUNC_CEILL): Use it.
54482
54483         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
54484         gl_FUNC_FLOOR. Cache the result.
54485         (gl_FUNC_FLOOR): Use it.
54486         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
54487         gl_FUNC_CEIL. Cache the result.
54488         (gl_FUNC_CEIL): Use it.
54489
54490         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
54491         gl_FUNC_FLOORF. Cache the result.
54492         (gl_FUNC_FLOORF): Use it.
54493         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
54494         gl_FUNC_CEILF. Cache the result.
54495         (gl_FUNC_CEILF): Use it.
54496
54497 2007-10-28  Bruno Haible  <bruno@clisp.org>
54498
54499         * gnulib-tool: Allow specifying the LGPL version number through
54500         --lgpl=2 or --lgpl=3.
54501         (func_usage): Document --lgpl with argument.
54502         Handle --lgpl=... arguments.
54503         (func_import): Recognize also gl_LGPL calls with an argument. When
54504         --lgpl=2 is used and the module's license is just LGPL, report an
54505         error. Set sed_transform_lib_file according to the lgpl variable. In
54506         the generated files, use --lgpl or gl_LGPL invocations with argument,
54507         if necessary.
54508         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
54509         an LGPv2+ license.
54510         * doc/gnulib-tool.texi (Modified imports): Update explanation of
54511         gl_LGPL macro.
54512
54513 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54514             Bruno Haible  <bruno@clisp.org>
54515
54516         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
54517         (u16_uctomb_aux): Likewise.
54518         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
54519         !HAVE_INLINE.
54520         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
54521
54522 2007-10-28  Bruno Haible  <bruno@clisp.org>
54523
54524         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
54525         Invoke AM_GETTEXT_OPTION if it exists.
54526         * modules/vasprintf: Likewise.
54527         * modules/verror: Likewise.
54528         * modules/xprintf: Likewise.
54529         * modules/xvasprintf: Likewise.
54530
54531 2007-10-27  Ben Pfaff  <blp@gnu.org>
54532
54533         * lib/math.in.h: Define isfinite macro and prototypes for
54534         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
54535         implementations.
54536         * m4/math_h.m4: New substitutions for isfinite module.
54537         * lib/isfinite.c: New file.
54538         * m4/isfinite.m4: New file.
54539         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
54540         * modules/isfinite: New file.
54541         * modules/isfinite-tests: New file.
54542         * tests/tests-isfinite.c: New file.
54543         * doc/functions/isfinite.texi: Mention isfinite module.
54544         * MODULES.html.sh: Mention new module.
54545
54546 2007-10-27  Ben Pfaff  <blp@gnu.org>
54547
54548         Ralf Wildenhues reported that Tru64 4.0D declares the round
54549         functions but does not have definitions.
54550         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
54551         cannot be found in any library, set the output variable to
54552         "missing" instead of "".
54553         * m4/round.m4: Also use our substitute if we cannot find round in
54554         any library, even if it is declared.
54555         * m4/roundf.m4: Likewise for roundf.
54556         * m4/roundl.m4: Likewise for roundl.
54557         * lib/math.in.h: Undefine roundf, round, roundl before defining
54558         their replacements, to allow for hypothetical systems where these
54559         may be defined as macros but not available in libraries.
54560
54561 2007-10-27  Bruno Haible  <bruno@clisp.org>
54562
54563         * doc/gnulib.texi: Invoke @firstparagraphindent.
54564         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
54565         changes in gnulib.
54566         (Source changes): New section.
54567
54568 2007-10-26  Bruno Haible  <bruno@clisp.org>
54569
54570         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
54571         borrowed from autoconf.
54572
54573 2007-10-26  Bruno Haible  <bruno@clisp.org>
54574
54575         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
54576         strerror returned the empty string. Needed on HP-UX 11.00.
54577
54578 2007-10-24  Micah Cowan  <micah@cowan.name>
54579
54580         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
54581         * build-aux/bootstrap: Remove support for now-unnecessary option,
54582         --cvs-user, and envvars CVS_USER, CVS_RSH.
54583
54584 2007-10-24  Jim Meyering  <meyering@redhat.com>
54585
54586         Avoid diagnostics from sha1sum when there is no cached checksum.
54587         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
54588         if the po.s1 file hasn't been created yet.
54589
54590         * build-aux/bootstrap: Sync from coreutils:
54591         2007-10-24  Jim Meyering  <meyering@redhat.com>
54592         Get gnulib from the git repository, not from an obsolete cvs one.
54593         * build-aux/bootstrap: Suggestion from Micah Cowan.
54594         2007-10-04  Jim Meyering  <jim@meyering.net>
54595         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
54596         (update_po_files): Work also when there are no .po files in po/.
54597
54598 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
54599
54600         * README: Append ".git" to git and cg examples.
54601         Problem reported by Benoit Sigoure.
54602
54603 2007-10-23  Micah Cowan  <micah@cowan.name>
54604
54605         * users.txt: Add wget.
54606
54607 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54608
54609         Fix linking of some unistdio tests on FreeBSD.
54610         * modules/unistdio/u16-vsnprintf-tests
54611         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
54612         * modules/unistdio/u16-vsprintf-tests
54613         (test_u16_vsnprintf1_LDADD): Likewise.
54614         * modules/unistdio/u32-vsnprintf-tests
54615         (test_u32_vsnprintf1_LDADD): Likewise.
54616         * modules/unistdio/u32-vsprintf-tests
54617         (test_u32_vsprintf1_LDADD): Likewise.
54618         * modules/unistdio/u8-vsnprintf-tests
54619         (test_u8_vsnprintf1_LDADD): Likewise.
54620         * modules/unistdio/u8-vsprintf-tests
54621         (test_u8_vsprintf1_LDADD): Likewise.
54622         * modules/unistdio/ulc-vsnprintf-tests
54623         (test_ulc_vsnprintf1_LDADD): Likewise.
54624         * modules/unistdio/ulc-vsprintf-tests
54625         (test_ulc_vsprintf1_LDADD): Likewise.
54626
54627         Fix linking of some uniconv tests on FreeBSD.
54628         * modules/uniconv/u16-conv-from-enc-tests
54629         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
54630         * modules/uniconv/u16-conv-to-enc-tests
54631         (test_u16_conv_to_enc_LDADD): Likewise.
54632         * modules/uniconv/u16-strconv-from-enc-tests
54633         (test_u16_strconv_from_enc_LDADD): Likewise.
54634         * modules/uniconv/u16-strconv-to-enc-tests
54635         (test_u16_strconv_to_enc_LDADD): Likewise.
54636         * modules/uniconv/u32-conv-from-enc-tests
54637         (test_u32_conv_from_enc_LDADD): Likewise.
54638         * modules/uniconv/u32-conv-to-enc-tests
54639         (test_u32_conv_to_enc_LDADD): Likewise.
54640         * modules/uniconv/u32-strconv-from-enc-tests
54641         (test_u32_strconv_from_enc_LDADD): Likewise.
54642         * modules/uniconv/u32-strconv-to-enc-tests
54643         (test_u32_strconv_to_enc_LDADD): Likewise.
54644         * modules/uniconv/u8-conv-from-enc-tests
54645         (test_u8_conv_from_enc_LDADD): Likewise.
54646         * modules/uniconv/u8-conv-to-enc-tests
54647         (test_u8_conv_to_enc_LDADD): Likewise.
54648         * modules/uniconv/u8-strconv-from-enc-tests
54649         (test_u8_strconv_from_enc_LDADD): Likewise.
54650         * modules/uniconv/u8-strconv-to-enc-tests
54651         (test_u8_strconv_to_enc_LDADD): Likewise.
54652
54653 2007-10-22  Bruno Haible  <bruno@clisp.org>
54654
54655         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
54656         size.
54657
54658 2007-10-22  Eric Blake  <ebb9@byu.net>
54659
54660         Tweak x*printf documentation.
54661         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
54662         variable name and comments.
54663         Suggested by Bruno Haible.
54664
54665 2007-10-22  Bruno Haible  <bruno@clisp.org>
54666
54667         * lib/acl.c (copy_acl): Fix file name in comment.
54668
54669 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
54670
54671         Fix Tru64 problem with stdbool.h.
54672         * lib/stdbool.in.h (false, true):
54673         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
54674         Don't declare as an enum in this situation; it runs afoul of Tru64.
54675         Problem reported by Steven M. Schweda in
54676         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
54677
54678 2007-10-22  Eric Blake  <ebb9@byu.net>
54679
54680         Also wrap vf?printf.
54681         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
54682         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
54683         (xvprintf, xvfprintf): New functions.
54684
54685 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54686
54687         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
54688         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
54689
54690         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
54691         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
54692
54693 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
54694
54695         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
54696         by Bruno Haible.
54697
54698 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54699
54700         * lib/getloadavg.c
54701         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
54702         Undef `sys' after including sys/table.h, for Tru64 4.0D.
54703
54704         * tests/test-i-ring.c: Work for C89.
54705
54706 2007-10-22  Bruno Haible  <bruno@clisp.org>
54707
54708         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
54709         -1u, in preprocessor expression, so that we don't test for the bug
54710         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
54711         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
54712
54713 2007-10-22  Eric Blake  <ebb9@byu.net>
54714
54715         * tests/test-yesno.sh: Silence stderr during test.
54716
54717 2007-10-22  Simon Josefsson  <simon@josefsson.org>
54718
54719         * modules/crypto/gc-camellia: New file.
54720
54721         * m4/gc-camellia.m4: New file.
54722
54723         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
54724
54725         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
54726
54727 2007-10-22  Simon Josefsson  <simon@josefsson.org>
54728
54729         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
54730         --help to stdout.  Reported by sms@antinode.org (Steven
54731         M. Schweda).
54732
54733 2007-10-22  Simon Josefsson  <simon@josefsson.org>
54734
54735         * users.txt: Fix link to libksba.
54736
54737 2007-10-21  Ben Pfaff  <blp@gnu.org>
54738
54739         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
54740         round.c roundf implementation that depends on floorf and ceilf to
54741         be tested unconditionally.
54742
54743 2007-10-21  Ben Pfaff  <blp@gnu.org>
54744
54745         * m4/check-libm-func.m4: Removed.
54746         * m4/check-math-lib.m4: New file.
54747         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
54748         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
54749         definition and lack of AC_LIBOBJ([roundf]).
54750         * m4/roundl.m4: Ditto, and similarly for roundl.
54751         * modules/round: Reference new m4 file.
54752         * modules/roundf: Ditto.
54753         * modules/roundl: Ditto.
54754         * tests/test-round2.c (main): Use ROUND instead of round.
54755         Bug report from Bruno Haible.
54756
54757 2007-10-21  Bruno Haible  <bruno@clisp.org>
54758
54759         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
54760         context.
54761
54762 2007-10-21  Bruno Haible  <bruno@clisp.org>
54763
54764         * tests/test-wcwidth.c (main): Allow negative result for some control
54765         characters.
54766
54767         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
54768         Needed on OSF/1 5.1.
54769
54770 2007-10-21  Bruno Haible  <bruno@clisp.org>
54771
54772         * tests/test-floorf1.c: Include isnanf.h.
54773         (main): Use isnanf() instead of isnan().
54774         * tests/test-ceilf1.c: Include isnanf.h.
54775         (main): Use isnanf() instead of isnan().
54776         * tests/test-truncf1.c: Include isnanf.h.
54777         (main): Use isnanf() instead of isnan().
54778         * tests/test-roundf1.c: Include isnanf.h.
54779         (main): Use isnanf() instead of isnan().
54780
54781 2007-10-21  Eric Blake  <ebb9@byu.net>
54782
54783         * users.txt: Update URL for m4.
54784
54785 2007-10-21  Bruno Haible  <bruno@clisp.org>
54786
54787         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
54788
54789 2007-10-21  Bruno Haible  <bruno@clisp.org>
54790
54791         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
54792         Git's management files if the CVS files are not present.
54793
54794 2007-10-20  Bruno Haible  <bruno@clisp.org>
54795
54796         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
54797         gcc-3.4.x.
54798
54799 2007-10-20  Ben Pfaff  <blp@gnu.org>
54800
54801         * lib/math.in.h: Declare round, roundf, roundl if we are providing
54802         implementations.
54803         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
54804         * lib/round.c: New file.
54805         * lib/roundf.c: New file.
54806         * lib/roundl.c: New file.
54807         * m4/round.m4: New file.
54808         * m4/roundf.m4: New file.
54809         * m4/roundl.m4: New file.
54810         * m4/check-libm-func-m4: New file.
54811         * modules/math: Replace round, roundf, roundl related @VARS@ in
54812         math.in.h.
54813         * modules/round: New file.
54814         * modules/round-tests: New file.
54815         * modules/roundf: New file.
54816         * modules/roundf-tests: New file.
54817         * modules/roundl: New file.
54818         * modules/roundl-tests: New file.
54819         * tests/test-round1.c: New file.
54820         * tests/test-round2.c: New file.
54821         * tests/test-roundf1.c: New file.
54822         * tests/test-roundf2.c: New file.
54823         * tests/test-roundl.c: New file.
54824         * doc/functions/round.texi: Mention round module.
54825         * doc/functions/roundf.texi: Mention roundf module.
54826         * doc/functions/roundl.texi: Mention roundl module.
54827         * MODULES.html.sh: Mention new modules.
54828         Thanks to Bruno Haible for suggestions.
54829
54830 2007-10-20  Jim Meyering  <meyering@redhat.com>
54831
54832         * lib/xprintf.c: Include <config.h> unconditionally.
54833
54834         Change xprintf's license to GPL.
54835         * modules/xprintf (License): s/LGPL/GPL/, since this module
54836         depends on modules (exit and exitfail) which are GPL.
54837         Suggestion from Bruno Haible.
54838
54839         xprintf fixes.
54840         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
54841         Use a clearer diagnostic.
54842         Patch from Bruno Haible.
54843
54844 2007-10-20  Bruno Haible  <bruno@clisp.org>
54845
54846         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
54847         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
54848         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54849
54850 2007-10-20  Bruno Haible  <bruno@clisp.org>
54851
54852         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
54853         precision in the comparison result > x - 1 or similar.
54854         * tests/test-ceilf2.c (correct_result_p): Likewise.
54855         * tests/test-truncf2.c (correct_result_p): Likewise.
54856         * tests/test-trunc2.c (correct_result_p): Likewise.
54857         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54858
54859 2007-10-20  Bruno Haible  <bruno@clisp.org>
54860
54861         * modules/ceil: New file.
54862         * m4/ceil.m4: New file.
54863         * doc/functions/ceil.texi: Mention the 'ceil' module.
54864
54865 2007-10-20  Bruno Haible  <bruno@clisp.org>
54866
54867         * modules/floor: New file.
54868         * m4/floor.m4: New file.
54869         * doc/functions/floor.texi: Mention the 'floor' module.
54870
54871 2007-10-20  Bruno Haible  <bruno@clisp.org>
54872
54873         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
54874         of %a.
54875         * modules/floorf-tests (Depends-on): Likewise.
54876         * modules/truncf-tests (Depends-on): Likewise.
54877         * modules/trunc-tests (Depends-on): Likewise.
54878         Reported by Ben Pfaff.
54879
54880 2007-10-19  Jim Meyering  <meyering@redhat.com>
54881
54882         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
54883         Don't bother testing specific errno values.  Just test ferror.
54884
54885         New module: xprintf
54886         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
54887
54888 2007-10-19  Bruno Haible  <bruno@clisp.org>
54889
54890         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
54891         syntax.
54892         * modules/javaexec (Makefile.am): Likewise.
54893         * modules/relocatable-prog (Makefile.am): Likewise.
54894         Suggested by Jim Meyering.
54895
54896 2007-10-18  Bruno Haible  <bruno@clisp.org>
54897
54898         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
54899         Reported by Jim Meyering.
54900
54901 2007-10-18  Eric Blake  <ebb9@byu.net>
54902
54903         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
54904
54905 2007-10-18  Bruno Haible  <bruno@clisp.org>
54906
54907         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
54908         the format string into writable memory. Needed in Fortify conditions.
54909
54910 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
54911             Bruno Haible  <bruno@clisp.org>
54912
54913         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
54914         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
54915         * modules/trim (Depends-on): Add mbchar.
54916         (configure.ac): Add gl_FUNC_MBRTOWC.
54917         (Makefile.am): Augment lib_SOURCES.
54918
54919 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
54920
54921         Modify glob.c to use fstatat and dirfd, to simplify it.
54922         Suggested by Eric Blake.
54923         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
54924         Don't include <stdbool.h>; not used.
54925         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
54926         (link_exists_p): Simplify implementation, since we can now assume
54927         dirfd and fstatat.
54928         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
54929
54930 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54931
54932         * gnulib-tool (func_get_dependencies): Fix sed script to
54933         match only tests.
54934
54935 2007-10-17  Bruno Haible  <bruno@clisp.org>
54936
54937         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
54938         allow locale names without encoding suffix.
54939         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
54940         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
54941
54942 2007-10-16  Bruno Haible  <bruno@clisp.org>
54943
54944         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
54945         * lib/getgroups.c (getgroups): Likewise.
54946         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
54947
54948 2007-10-16  Bruno Haible  <bruno@clisp.org>
54949
54950         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
54951         * modules/malloc-posix (License): Likewise.
54952         * modules/realloc-posix (License): Likewise.
54953         * modules/calloc-posix (License): Likewise.
54954         * modules/intprops (License): Change from GPL to LGPL, with
54955         Paul Eggert's approval.
54956
54957 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
54958
54959         Merge glibc changes into lib/glob.c.
54960
54961         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
54962         2007-10-15 04:59:03 UTC.  Here are the changes:
54963
54964         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
54965
54966         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
54967
54968         * lib/glob.c: Add some branch prediction throughout.
54969
54970         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
54971
54972         [BZ #5103]
54973         * lib/glob.c (glob): Recognize patterns starting \/.
54974
54975         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
54976
54977         [BZ #3996]
54978         * lib/glob.c (attribute_hidden): Define if not defined.
54979         (glob): Unescape dirname, filename or username when needed and not
54980         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
54981         is NULL.  Handle unescaped [ in pattern without closing ].
54982         Don't pass GLOB_CHECK down to recursive glob for directories.
54983         (__glob_pattern_type): New function.
54984         (__glob_pattern_p): Implement using __glob_pattern_type.
54985         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
54986         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
54987         Remove unreachable code.
54988
54989         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
54990
54991         * lib/glob.c (glob_in_dir): Add some comments and asserts to
54992         explain why there are no leaks.
54993
54994         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
54995
54996         [BZ #3253]
54997         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
54998         time, rather allocate increasingly bigger arrays of pointers, if
54999         possible with alloca, if too large with malloc.
55000
55001 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
55002
55003         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
55004         Problem reported by H.Merijn Brand in
55005         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
55006         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
55007         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
55008
55009 2007-10-15  Bruno Haible  <bruno@clisp.org>
55010
55011         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
55012         with explicit rpl_ prefix.
55013         * lib/fopen.c (fopen): Likewise.
55014         * lib/freopen.c (freopen): Likewise.
55015         * lib/iconv.c (iconv): Likewise.
55016         * lib/iconv_close.c (iconv_close): Likewise.
55017
55018 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55019
55020         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
55021
55022 2007-10-15  Bruno Haible  <bruno@clisp.org>
55023
55024         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
55025         <stddef.h> instead of <stdlib.h> since we only need NULL.
55026         Reported by Ben Pfaff <blp@cs.stanford.edu>.
55027
55028 2007-10-15  Bruno Haible  <bruno@clisp.org>
55029
55030         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
55031         Replace paragraph talking about LIBOBJS.
55032         Reported by Colin Watson <cjwatson@debian.org>.
55033
55034 2007-10-15  Bruno Haible  <bruno@clisp.org>
55035
55036         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
55037         <stdlib.h> before using NULL.
55038
55039 2007-10-15  Simon Josefsson  <simon@josefsson.org>
55040
55041         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
55042         Reported by Albert Chin <china@thewrittenword.com>.
55043
55044 2007-10-14  Bruno Haible  <bruno@clisp.org>
55045
55046         * modules/iconv_open-utf-tests: New file.
55047         * tests/test-iconv-utf.c: New file.
55048
55049         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
55050         * modules/iconv_open-utf: New file.
55051         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
55052         (iconv, iconv_close): New declarations.
55053         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
55054         be defined.
55055         (iconv_open): Add special handling of conversion between UTF-8 and
55056         UTF-{16,32}{BE,LE}.
55057         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
55058         * lib/iconv_close.c: New file.
55059         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
55060         gl_FUNC_ICONV_OPEN.
55061         (gl_FUNC_ICONV_OPEN): Use it.
55062         (gl_FUNC_ICONV_OPEN_UTF): New macro.
55063         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
55064         and REPLACE_ICONV_UTF.
55065         * modules/iconv_open (Depends-on): Add c-strcase.
55066         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
55067         ICONV_CONST.
55068         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
55069
55070 2007-10-13  Albert Chin  <china@thewrittenword.com>
55071             Bruno Haible  <bruno@clisp.org>
55072
55073         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
55074         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
55075
55076 2007-10-13  Bruno Haible  <bruno@clisp.org>
55077
55078         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
55079         defined, use the ISO C99 inline semantics.
55080         * lib/argp.h (ARGP_EI): Likewise.
55081
55082 2007-10-13  Bruno Haible  <bruno@clisp.org>
55083
55084         Handle 'inline' change in gcc 4.3.0.
55085         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
55086         argp_fmtstream_write, argp_fmtstream_set_lmargin,
55087         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
55088         argp_fmtstream_point): Disable 'extern' declaration if the function
55089         definition is going to be provided inline.
55090         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
55091         semantics, not the ISO C99 inline semantics.
55092         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
55093         'extern' declaration if the function definition is going to be provided
55094         inline.
55095         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
55096         the GNU C inline semantics, not the ISO C99 inline semantics. With
55097         GCC 4.2, avoid a warning.
55098
55099 2007-10-13  Bruno Haible  <bruno@clisp.org>
55100
55101         * lib/freading.h (freading): Enable the use of __freading for
55102         glibc >= 2.7.
55103         * lib/freading.c (freading): Likewise.
55104
55105 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
55106
55107         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
55108         "warning: C99 inline functions are not supported; using GNU89".
55109
55110 2007-10-12  Bruno Haible  <bruno@clisp.org>
55111
55112         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
55113         of 2.
55114         * tests/test-ceilf2.c: New file.
55115         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
55116
55117         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
55118         * modules/ceilf-tests: Update.
55119
55120 2007-10-12  Bruno Haible  <bruno@clisp.org>
55121
55122         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
55123         of 2.
55124         * tests/test-floorf2.c: New file.
55125         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
55126
55127         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
55128         * modules/floorf-tests: Update.
55129
55130 2007-10-12  Bruno Haible  <bruno@clisp.org>
55131
55132         * tests/test-trunc2.c: New file.
55133         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
55134
55135         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
55136         * modules/trunc-tests: Update.
55137
55138 2007-10-12  Bruno Haible  <bruno@clisp.org>
55139
55140         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
55141         of 2.
55142         * tests/test-truncf2.c: New file.
55143         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
55144
55145         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
55146         * modules/truncf-tests: Update.
55147
55148 2007-10-11  Eric Blake  <ebb9@byu.net>
55149
55150         Don't claim strerror is broken on Interix.
55151         * doc/functions/strerror.texi (strerror): Known broken systems are
55152         now Solaris 8, and not Interix.
55153         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
55154         Interix on cross-compile.
55155         Reported by Martin Koeppe in
55156         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
55157
55158 2007-10-11  Bruno Haible  <bruno@clisp.org>
55159
55160         * modules/i-ring-tests: New file.
55161         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
55162         instead of assert.
55163
55164 2007-10-11  Bruno Haible  <bruno@clisp.org>
55165
55166         * modules/filenamecat-tests: New file.
55167         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
55168         * lib/filenamecat.c: Remove test code.
55169
55170 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
55171
55172         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
55173
55174         * lib/strerror.c: Include <string.h> always, to test interface,
55175         and to remove the need for the dummy.
55176         Include intprops.h to compute width instead of doing it ourselves
55177         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
55178         (strerror): Define it to return NULL if there's no system strerror.
55179         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
55180         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
55181         ancient pre-strerror Unix systems well any more.  Saying "unknown
55182         system error" is enough.
55183         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
55184         simpler strerror.c implementation.
55185         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
55186         Simplify the tests to reflect the simpler strerror implementation.
55187         * modules/strerror (Depends-on): Add intprops.
55188
55189 2007-10-09  Eric Blake  <ebb9@byu.net>
55190
55191         Silence test-fpending.
55192         * modules/fpending-tests (Files): Add wrapper script.
55193         * tests/test-fpending.sh: New file.
55194
55195 2007-10-09  Bruno Haible  <bruno@clisp.org>
55196
55197         * MODULES.html.sh (func_module): Don't create a hyperlink for
55198         function names like 'printf_frexp'.
55199         (Misc): Add crc, memxor.
55200         (Characteristics of floating types): New section.
55201         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
55202         isnanf-nolibm, signbit, trunc, truncf, truncl.
55203         (Enhancements for ISO C 99 functions): New subsection Input/output.
55204         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
55205         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
55206         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
55207         (Compatibility checks for POSIX:2001 functions): Add clock-time.
55208         (Enhancements for POSIX:2001 functions): Add chdir-long.
55209         (File system functions): Add areadlink, chdir-safer, read-file.
55210         Remove cycle-check.
55211         (File system as inode set): New section.
55212         (Date and time): Add gethrxtime.
55213         (Multithreading): Add openmp.
55214         (Internationalization functions): Add localename.
55215         (Unicode string functions): Add unistr/u*-mbsnlen.
55216         (Support for maintaining and releasing projects): Add git-version-gen.
55217         (Lone files): Remove directories.
55218
55219 2007-10-08  Ben Pfaff  <blp@gnu.org>
55220
55221         * lib/xmalloca.h: Fix typo in comment.
55222
55223 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
55224
55225         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
55226         when avoiding problems with integer overflow.  Use a portable test
55227         instead.
55228
55229 2007-10-08  Simon Josefsson  <simon@josefsson.org>
55230
55231         * modules/dummy (License): Change to LGPLv2+.
55232         * modules/float (License): Likewise
55233         * modules/realloc (License): Likewise
55234         * modules/stdlib (License): Likewise
55235
55236 2007-10-07  Bruno Haible  <bruno@clisp.org>
55237
55238         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
55239         * floor.c (TWO_MANT_DIG): Likewise.
55240         * ceil.c (TWO_MANT_DIG): Likewise.
55241         Reported by Ben Pfaff.
55242
55243 2007-10-07  Bruno Haible  <bruno@clisp.org>
55244
55245         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
55246         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
55247         * lib/frexp.c (FUNC): Likewise.
55248         * lib/printf-frexp.h (printf_frexp): Likewise.
55249         * lib/printf-frexpl.h (printf_frexpl): Likewise.
55250         * lib/printf-frexp.c (FUNC): Likewise.
55251         Suggested by Jim Meyering.
55252
55253 2007-10-07  Jim Meyering  <meyering@redhat.com>
55254
55255         Make xnanosleep's integer overflow test more robust.
55256         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
55257         so that gcc-4.3.0 doesn't optimize away this test for overflow.
55258
55259 2007-10-07  Bruno Haible  <bruno@clisp.org>
55260
55261         * NEWS: Mention the license change.
55262
55263         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
55264         abbreviations in the modules files.
55265
55266         Change copyright notice from GPLv2+ to GPLv3+.
55267         * README: Change copyright notice.
55268         * MODULES.html.sh: Likewise.
55269         * build-aux/bootstrap.conf: Likewise.
55270         * build-aux/config.libpath: Likewise.
55271         * build-aux/csharpcomp.sh.in: Likewise.
55272         * build-aux/csharpexec.sh.in: Likewise.
55273         * build-aux/install-reloc: Likewise.
55274         * build-aux/javacomp.sh.in: Likewise.
55275         * build-aux/javaexec.sh.in: Likewise.
55276         * build-aux/ldd.sh.in: Likewise.
55277         * build-aux/reloc-ldflags: Likewise.
55278         * build-aux/relocatable.sh.in: Likewise.
55279         * build-aux/x-to-1.in: Likewise.
55280         * check-module: Likewise.
55281         * config/srclistvars.sh: Likewise.
55282         * gnulib-tool: Likewise.
55283         * lib/acl-internal.h: Likewise.
55284         * lib/acl.c: Likewise.
55285         * lib/acl.h: Likewise.
55286         * lib/acl_entries.c: Likewise.
55287         * lib/areadlink-with-size.c: Likewise.
55288         * lib/areadlink.c: Likewise.
55289         * lib/areadlink.h: Likewise.
55290         * lib/argmatch.c: Likewise.
55291         * lib/argmatch.h: Likewise.
55292         * lib/argp-ba.c: Likewise.
55293         * lib/argp-eexst.c: Likewise.
55294         * lib/argp-fmtstream.c: Likewise.
55295         * lib/argp-fmtstream.h: Likewise.
55296         * lib/argp-fs-xinl.c: Likewise.
55297         * lib/argp-help.c: Likewise.
55298         * lib/argp-namefrob.h: Likewise.
55299         * lib/argp-parse.c: Likewise.
55300         * lib/argp-pin.c: Likewise.
55301         * lib/argp-pv.c: Likewise.
55302         * lib/argp-pvh.c: Likewise.
55303         * lib/argp-xinl.c: Likewise.
55304         * lib/argp.h: Likewise.
55305         * lib/at-func.c: Likewise.
55306         * lib/atanl.c: Likewise.
55307         * lib/backupfile.c: Likewise.
55308         * lib/backupfile.h: Likewise.
55309         * lib/basename.c: Likewise.
55310         * lib/binary-io.h: Likewise.
55311         * lib/byteswap.in.h: Likewise.
55312         * lib/c-stack.c: Likewise.
55313         * lib/c-stack.h: Likewise.
55314         * lib/c-strcasestr.c: Likewise.
55315         * lib/c-strcasestr.h: Likewise.
55316         * lib/c-strstr.c: Likewise.
55317         * lib/c-strstr.h: Likewise.
55318         * lib/c-strtod.c: Likewise.
55319         * lib/calloc.c: Likewise.
55320         * lib/canon-host.c: Likewise.
55321         * lib/canon-host.h: Likewise.
55322         * lib/canonicalize-lgpl.c: Likewise.
55323         * lib/canonicalize.c: Likewise.
55324         * lib/canonicalize.h: Likewise.
55325         * lib/ceil.c: Likewise.
55326         * lib/ceilf.c: Likewise.
55327         * lib/ceill.c: Likewise.
55328         * lib/chdir-long.c: Likewise.
55329         * lib/chdir-long.h: Likewise.
55330         * lib/chdir-safer.c: Likewise.
55331         * lib/chdir-safer.h: Likewise.
55332         * lib/chown.c: Likewise.
55333         * lib/classpath.c: Likewise.
55334         * lib/classpath.h: Likewise.
55335         * lib/clean-temp.c: Likewise.
55336         * lib/clean-temp.h: Likewise.
55337         * lib/cloexec.c: Likewise.
55338         * lib/close-stream.c: Likewise.
55339         * lib/closein.c: Likewise.
55340         * lib/closein.h: Likewise.
55341         * lib/closeout.c: Likewise.
55342         * lib/closeout.h: Likewise.
55343         * lib/concat-filename.c: Likewise.
55344         * lib/copy-file.c: Likewise.
55345         * lib/copy-file.h: Likewise.
55346         * lib/count-one-bits.h: Likewise.
55347         * lib/crc.c: Likewise.
55348         * lib/crc.h: Likewise.
55349         * lib/creat-safer.c: Likewise.
55350         * lib/csharpcomp.c: Likewise.
55351         * lib/csharpcomp.h: Likewise.
55352         * lib/csharpexec.c: Likewise.
55353         * lib/csharpexec.h: Likewise.
55354         * lib/cycle-check.c: Likewise.
55355         * lib/cycle-check.h: Likewise.
55356         * lib/diacrit.c: Likewise.
55357         * lib/diacrit.h: Likewise.
55358         * lib/diffseq.h: Likewise.
55359         * lib/dirchownmod.c: Likewise.
55360         * lib/dirent.in.h: Likewise.
55361         * lib/dirfd.c: Likewise.
55362         * lib/dirfd.h: Likewise.
55363         * lib/dirname.c: Likewise.
55364         * lib/dirname.h: Likewise.
55365         * lib/dummy.c: Likewise.
55366         * lib/dup-safer.c: Likewise.
55367         * lib/dup2.c: Likewise.
55368         * lib/eealloc.h: Likewise.
55369         * lib/error.c: Likewise.
55370         * lib/error.h: Likewise.
55371         * lib/euidaccess.c: Likewise.
55372         * lib/exclude.c: Likewise.
55373         * lib/exclude.h: Likewise.
55374         * lib/execute.c: Likewise.
55375         * lib/execute.h: Likewise.
55376         * lib/exitfail.c: Likewise.
55377         * lib/exitfail.h: Likewise.
55378         * lib/expl.c: Likewise.
55379         * lib/fatal-signal.c: Likewise.
55380         * lib/fatal-signal.h: Likewise.
55381         * lib/fbufmode.c: Likewise.
55382         * lib/fbufmode.h: Likewise.
55383         * lib/fchdir.c: Likewise.
55384         * lib/fchmodat.c: Likewise.
55385         * lib/fchownat.c: Likewise.
55386         * lib/fcntl--.h: Likewise.
55387         * lib/fcntl-safer.h: Likewise.
55388         * lib/fcntl.in.h: Likewise.
55389         * lib/fd-safer.c: Likewise.
55390         * lib/fflush.c: Likewise.
55391         * lib/file-has-acl.c: Likewise.
55392         * lib/file-set.c: Likewise.
55393         * lib/file-type.c: Likewise.
55394         * lib/file-type.h: Likewise.
55395         * lib/fileblocks.c: Likewise.
55396         * lib/filemode.c: Likewise.
55397         * lib/filemode.h: Likewise.
55398         * lib/filename.h: Likewise.
55399         * lib/filenamecat.c: Likewise.
55400         * lib/filenamecat.h: Likewise.
55401         * lib/findprog.c: Likewise.
55402         * lib/findprog.h: Likewise.
55403         * lib/float.in.h: Likewise.
55404         * lib/floor.c: Likewise.
55405         * lib/floorf.c: Likewise.
55406         * lib/floorl.c: Likewise.
55407         * lib/fopen-safer.c: Likewise.
55408         * lib/fopen.c: Likewise.
55409         * lib/fpending.c: Likewise.
55410         * lib/fpending.h: Likewise.
55411         * lib/fprintf.c: Likewise.
55412         * lib/fprintftime.h: Likewise.
55413         * lib/fpucw.h: Likewise.
55414         * lib/fpurge.c: Likewise.
55415         * lib/fpurge.h: Likewise.
55416         * lib/freadable.c: Likewise.
55417         * lib/freadable.h: Likewise.
55418         * lib/freadahead.c: Likewise.
55419         * lib/freadahead.h: Likewise.
55420         * lib/freading.c: Likewise.
55421         * lib/freading.h: Likewise.
55422         * lib/free.c: Likewise.
55423         * lib/freopen.c: Likewise.
55424         * lib/frexp.c: Likewise.
55425         * lib/frexpl.c: Likewise.
55426         * lib/fseek.c: Likewise.
55427         * lib/fseterr.c: Likewise.
55428         * lib/fseterr.h: Likewise.
55429         * lib/fstatat.c: Likewise.
55430         * lib/fstrcmp.c: Likewise.
55431         * lib/fstrcmp.h: Likewise.
55432         * lib/fsusage.c: Likewise.
55433         * lib/fsusage.h: Likewise.
55434         * lib/ftell.c: Likewise.
55435         * lib/ftello.c: Likewise.
55436         * lib/fts-cycle.c: Likewise.
55437         * lib/fts.c: Likewise.
55438         * lib/fts_.h: Likewise.
55439         * lib/full-read.c: Likewise.
55440         * lib/full-read.h: Likewise.
55441         * lib/full-write.c: Likewise.
55442         * lib/full-write.h: Likewise.
55443         * lib/fwritable.c: Likewise.
55444         * lib/fwritable.h: Likewise.
55445         * lib/fwriteerror.c: Likewise.
55446         * lib/fwriteerror.h: Likewise.
55447         * lib/fwriting.c: Likewise.
55448         * lib/fwriting.h: Likewise.
55449         * lib/gcd.c: Likewise.
55450         * lib/gcd.h: Likewise.
55451         * lib/getcwd.c: Likewise.
55452         * lib/getdate.h: Likewise.
55453         * lib/getdate.y: Likewise.
55454         * lib/getdomainname.c: Likewise.
55455         * lib/getdomainname.h: Likewise.
55456         * lib/getgroups.c: Likewise.
55457         * lib/gethostname.c: Likewise.
55458         * lib/gethrxtime.c: Likewise.
55459         * lib/gethrxtime.h: Likewise.
55460         * lib/getloadavg.c: Likewise.
55461         * lib/getndelim2.c: Likewise.
55462         * lib/getndelim2.h: Likewise.
55463         * lib/getnline.c: Likewise.
55464         * lib/getnline.h: Likewise.
55465         * lib/getopt.c: Likewise.
55466         * lib/getopt.in.h: Likewise.
55467         * lib/getopt1.c: Likewise.
55468         * lib/getopt_int.h: Likewise.
55469         * lib/getpagesize.h: Likewise.
55470         * lib/getsubopt.c: Likewise.
55471         * lib/gettime.c: Likewise.
55472         * lib/getugroups.c: Likewise.
55473         * lib/getugroups.h: Likewise.
55474         * lib/getusershell.c: Likewise.
55475         * lib/gl_anyavltree_list1.h: Likewise.
55476         * lib/gl_anyavltree_list2.h: Likewise.
55477         * lib/gl_anyhash_list1.h: Likewise.
55478         * lib/gl_anyhash_list2.h: Likewise.
55479         * lib/gl_anylinked_list1.h: Likewise.
55480         * lib/gl_anylinked_list2.h: Likewise.
55481         * lib/gl_anyrbtree_list1.h: Likewise.
55482         * lib/gl_anyrbtree_list2.h: Likewise.
55483         * lib/gl_anytree_list1.h: Likewise.
55484         * lib/gl_anytree_list2.h: Likewise.
55485         * lib/gl_anytree_oset.h: Likewise.
55486         * lib/gl_anytreehash_list1.h: Likewise.
55487         * lib/gl_anytreehash_list2.h: Likewise.
55488         * lib/gl_array_list.c: Likewise.
55489         * lib/gl_array_list.h: Likewise.
55490         * lib/gl_array_oset.c: Likewise.
55491         * lib/gl_array_oset.h: Likewise.
55492         * lib/gl_avltree_list.c: Likewise.
55493         * lib/gl_avltree_list.h: Likewise.
55494         * lib/gl_avltree_oset.c: Likewise.
55495         * lib/gl_avltree_oset.h: Likewise.
55496         * lib/gl_avltreehash_list.c: Likewise.
55497         * lib/gl_avltreehash_list.h: Likewise.
55498         * lib/gl_carray_list.c: Likewise.
55499         * lib/gl_carray_list.h: Likewise.
55500         * lib/gl_linked_list.c: Likewise.
55501         * lib/gl_linked_list.h: Likewise.
55502         * lib/gl_linkedhash_list.c: Likewise.
55503         * lib/gl_linkedhash_list.h: Likewise.
55504         * lib/gl_list.c: Likewise.
55505         * lib/gl_list.h: Likewise.
55506         * lib/gl_oset.c: Likewise.
55507         * lib/gl_oset.h: Likewise.
55508         * lib/gl_rbtree_list.c: Likewise.
55509         * lib/gl_rbtree_list.h: Likewise.
55510         * lib/gl_rbtree_oset.c: Likewise.
55511         * lib/gl_rbtree_oset.h: Likewise.
55512         * lib/gl_rbtreehash_list.c: Likewise.
55513         * lib/gl_rbtreehash_list.h: Likewise.
55514         * lib/gl_sublist.c: Likewise.
55515         * lib/gl_sublist.h: Likewise.
55516         * lib/group-member.c: Likewise.
55517         * lib/group-member.h: Likewise.
55518         * lib/hard-locale.c: Likewise.
55519         * lib/hard-locale.h: Likewise.
55520         * lib/hash-pjw.c: Likewise.
55521         * lib/hash-pjw.h: Likewise.
55522         * lib/hash-triple.c: Likewise.
55523         * lib/hash.c: Likewise.
55524         * lib/hash.h: Likewise.
55525         * lib/human.c: Likewise.
55526         * lib/human.h: Likewise.
55527         * lib/i-ring.c: Likewise.
55528         * lib/i-ring.h: Likewise.
55529         * lib/idcache.c: Likewise.
55530         * lib/imaxabs.c: Likewise.
55531         * lib/imaxdiv.c: Likewise.
55532         * lib/inet_pton.c: Likewise.
55533         * lib/inet_pton.h: Likewise.
55534         * lib/intprops.h: Likewise.
55535         * lib/inttostr.c: Likewise.
55536         * lib/inttostr.h: Likewise.
55537         * lib/inttypes.in.h: Likewise.
55538         * lib/isapipe.c: Likewise.
55539         * lib/isdir.c: Likewise.
55540         * lib/isnan.c: Likewise.
55541         * lib/isnan.h: Likewise.
55542         * lib/isnanf.c: Likewise.
55543         * lib/isnanf.h: Likewise.
55544         * lib/isnanl-nolibm.h: Likewise.
55545         * lib/isnanl.c: Likewise.
55546         * lib/isnanl.h: Likewise.
55547         * lib/javacomp.c: Likewise.
55548         * lib/javacomp.h: Likewise.
55549         * lib/javaexec.c: Likewise.
55550         * lib/javaexec.h: Likewise.
55551         * lib/javaversion.c: Likewise.
55552         * lib/javaversion.h: Likewise.
55553         * lib/javaversion.java: Likewise.
55554         * lib/lbrkprop.h: Likewise.
55555         * lib/lchmod.h: Likewise.
55556         * lib/lchown.c: Likewise.
55557         * lib/ldexpl.c: Likewise.
55558         * lib/linebreak.c: Likewise.
55559         * lib/linebreak.h: Likewise.
55560         * lib/linebuffer.c: Likewise.
55561         * lib/linebuffer.h: Likewise.
55562         * lib/locale.in.h: Likewise.
55563         * lib/logl.c: Likewise.
55564         * lib/long-options.c: Likewise.
55565         * lib/long-options.h: Likewise.
55566         * lib/lstat.c: Likewise.
55567         * lib/lstat.h: Likewise.
55568         * lib/math.in.h: Likewise.
55569         * lib/mbchar.c: Likewise.
55570         * lib/mbchar.h: Likewise.
55571         * lib/mbfile.h: Likewise.
55572         * lib/mbiter.h: Likewise.
55573         * lib/mbscasecmp.c: Likewise.
55574         * lib/mbscasestr.c: Likewise.
55575         * lib/mbschr.c: Likewise.
55576         * lib/mbscspn.c: Likewise.
55577         * lib/mbslen.c: Likewise.
55578         * lib/mbsncasecmp.c: Likewise.
55579         * lib/mbsnlen.c: Likewise.
55580         * lib/mbspbrk.c: Likewise.
55581         * lib/mbspcasecmp.c: Likewise.
55582         * lib/mbsrchr.c: Likewise.
55583         * lib/mbssep.c: Likewise.
55584         * lib/mbsspn.c: Likewise.
55585         * lib/mbsstr.c: Likewise.
55586         * lib/mbstok_r.c: Likewise.
55587         * lib/mbswidth.c: Likewise.
55588         * lib/mbswidth.h: Likewise.
55589         * lib/mbuiter.h: Likewise.
55590         * lib/memcasecmp.c: Likewise.
55591         * lib/memcasecmp.h: Likewise.
55592         * lib/memchr.c: Likewise.
55593         * lib/memcmp.c: Likewise.
55594         * lib/memcoll.c: Likewise.
55595         * lib/memcoll.h: Likewise.
55596         * lib/memcpy.c: Likewise.
55597         * lib/memrchr.c: Likewise.
55598         * lib/mkancesdirs.c: Likewise.
55599         * lib/mkdir-p.c: Likewise.
55600         * lib/mkdir-p.h: Likewise.
55601         * lib/mkdir.c: Likewise.
55602         * lib/mkdirat.c: Likewise.
55603         * lib/mkdtemp.c: Likewise.
55604         * lib/mkstemp-safer.c: Likewise.
55605         * lib/mkstemp.c: Likewise.
55606         * lib/modechange.c: Likewise.
55607         * lib/modechange.h: Likewise.
55608         * lib/mountlist.c: Likewise.
55609         * lib/mountlist.h: Likewise.
55610         * lib/mpsort.c: Likewise.
55611         * lib/nanosleep.c: Likewise.
55612         * lib/obstack.c: Likewise.
55613         * lib/obstack.h: Likewise.
55614         * lib/open-safer.c: Likewise.
55615         * lib/open.c: Likewise.
55616         * lib/openat-die.c: Likewise.
55617         * lib/openat-priv.h: Likewise.
55618         * lib/openat-proc.c: Likewise.
55619         * lib/openat.c: Likewise.
55620         * lib/openat.h: Likewise.
55621         * lib/pagealign_alloc.c: Likewise.
55622         * lib/pagealign_alloc.h: Likewise.
55623         * lib/physmem.c: Likewise.
55624         * lib/physmem.h: Likewise.
55625         * lib/pipe-safer.c: Likewise.
55626         * lib/pipe.c: Likewise.
55627         * lib/pipe.h: Likewise.
55628         * lib/posixtm.c: Likewise.
55629         * lib/posixtm.h: Likewise.
55630         * lib/posixver.c: Likewise.
55631         * lib/printf-frexp.c: Likewise.
55632         * lib/printf-frexp.h: Likewise.
55633         * lib/printf-frexpl.c: Likewise.
55634         * lib/printf-frexpl.h: Likewise.
55635         * lib/printf.c: Likewise.
55636         * lib/progname.c: Likewise.
55637         * lib/progname.h: Likewise.
55638         * lib/progreloc.c: Likewise.
55639         * lib/putenv.c: Likewise.
55640         * lib/quote.c: Likewise.
55641         * lib/quote.h: Likewise.
55642         * lib/quotearg.c: Likewise.
55643         * lib/quotearg.h: Likewise.
55644         * lib/raise.c: Likewise.
55645         * lib/readline.c: Likewise.
55646         * lib/readline.h: Likewise.
55647         * lib/readlink.c: Likewise.
55648         * lib/readtokens.c: Likewise.
55649         * lib/readtokens.h: Likewise.
55650         * lib/readtokens0.c: Likewise.
55651         * lib/readtokens0.h: Likewise.
55652         * lib/readutmp.c: Likewise.
55653         * lib/readutmp.h: Likewise.
55654         * lib/realloc.c: Likewise.
55655         * lib/relocwrapper.c: Likewise.
55656         * lib/rename-dest-slash.c: Likewise.
55657         * lib/rename.c: Likewise.
55658         * lib/rmdir.c: Likewise.
55659         * lib/rpmatch.c: Likewise.
55660         * lib/safe-read.c: Likewise.
55661         * lib/safe-read.h: Likewise.
55662         * lib/safe-write.c: Likewise.
55663         * lib/safe-write.h: Likewise.
55664         * lib/same-inode.h: Likewise.
55665         * lib/same.c: Likewise.
55666         * lib/same.h: Likewise.
55667         * lib/save-cwd.c: Likewise.
55668         * lib/save-cwd.h: Likewise.
55669         * lib/savedir.c: Likewise.
55670         * lib/savedir.h: Likewise.
55671         * lib/savewd.c: Likewise.
55672         * lib/savewd.h: Likewise.
55673         * lib/search.in.h: Likewise.
55674         * lib/setenv.c: Likewise.
55675         * lib/setenv.h: Likewise.
55676         * lib/settime.c: Likewise.
55677         * lib/sh-quote.c: Likewise.
55678         * lib/sh-quote.h: Likewise.
55679         * lib/sig2str.c: Likewise.
55680         * lib/sig2str.h: Likewise.
55681         * lib/signal.in.h: Likewise.
55682         * lib/signbitd.c: Likewise.
55683         * lib/signbitf.c: Likewise.
55684         * lib/signbitl.c: Likewise.
55685         * lib/sigprocmask.c: Likewise.
55686         * lib/sincosl.c: Likewise.
55687         * lib/sleep.c: Likewise.
55688         * lib/sprintf.c: Likewise.
55689         * lib/sqrtl.c: Likewise.
55690         * lib/stat-time.h: Likewise.
55691         * lib/stdio--.h: Likewise.
55692         * lib/stdio-safer.h: Likewise.
55693         * lib/stdlib--.h: Likewise.
55694         * lib/stdlib-safer.h: Likewise.
55695         * lib/stdlib.in.h: Likewise.
55696         * lib/stpcpy.c: Likewise.
55697         * lib/stpncpy.c: Likewise.
55698         * lib/strchrnul.c: Likewise.
55699         * lib/strcspn.c: Likewise.
55700         * lib/strerror.c: Likewise.
55701         * lib/strftime.c: Likewise.
55702         * lib/strftime.h: Likewise.
55703         * lib/striconveh.c: Likewise.
55704         * lib/striconveh.h: Likewise.
55705         * lib/striconveha.c: Likewise.
55706         * lib/striconveha.h: Likewise.
55707         * lib/stripslash.c: Likewise.
55708         * lib/strnlen1.c: Likewise.
55709         * lib/strnlen1.h: Likewise.
55710         * lib/strtod.c: Likewise.
55711         * lib/strtoimax.c: Likewise.
55712         * lib/strtok_r.c: Likewise.
55713         * lib/strtol.c: Likewise.
55714         * lib/strtoll.c: Likewise.
55715         * lib/strtoul.c: Likewise.
55716         * lib/strtoull.c: Likewise.
55717         * lib/sysexits.in.h: Likewise.
55718         * lib/tempname.c: Likewise.
55719         * lib/tempname.h: Likewise.
55720         * lib/timespec.h: Likewise.
55721         * lib/tls.c: Likewise.
55722         * lib/tls.h: Likewise.
55723         * lib/tmpdir.c: Likewise.
55724         * lib/tmpdir.h: Likewise.
55725         * lib/tmpfile-safer.c: Likewise.
55726         * lib/tmpfile.c: Likewise.
55727         * lib/trigl.c: Likewise.
55728         * lib/trigl.h: Likewise.
55729         * lib/trim.c: Likewise.
55730         * lib/trim.h: Likewise.
55731         * lib/trunc.c: Likewise.
55732         * lib/truncf.c: Likewise.
55733         * lib/truncl.c: Likewise.
55734         * lib/tsearch.c: Likewise.
55735         * lib/unicodeio.c: Likewise.
55736         * lib/unicodeio.h: Likewise.
55737         * lib/unistd--.h: Likewise.
55738         * lib/unistd-safer.h: Likewise.
55739         * lib/unistdio/ulc-fprintf.c: Likewise.
55740         * lib/unistdio/ulc-vfprintf.c: Likewise.
55741         * lib/unlinkdir.c: Likewise.
55742         * lib/unlinkdir.h: Likewise.
55743         * lib/unlocked-io.h: Likewise.
55744         * lib/unsetenv.c: Likewise.
55745         * lib/userspec.c: Likewise.
55746         * lib/utime.c: Likewise.
55747         * lib/utimecmp.c: Likewise.
55748         * lib/utimecmp.h: Likewise.
55749         * lib/utimens.c: Likewise.
55750         * lib/verify.h: Likewise.
55751         * lib/verror.c: Likewise.
55752         * lib/verror.h: Likewise.
55753         * lib/version-etc-fsf.c: Likewise.
55754         * lib/version-etc.c: Likewise.
55755         * lib/version-etc.h: Likewise.
55756         * lib/vfprintf.c: Likewise.
55757         * lib/vprintf.c: Likewise.
55758         * lib/vsprintf.c: Likewise.
55759         * lib/w32spawn.h: Likewise.
55760         * lib/wait-process.c: Likewise.
55761         * lib/wait-process.h: Likewise.
55762         * lib/wcwidth.c: Likewise.
55763         * lib/write-any-file.c: Likewise.
55764         * lib/xalloc-die.c: Likewise.
55765         * lib/xalloc.h: Likewise.
55766         * lib/xasprintf.c: Likewise.
55767         * lib/xgetcwd.c: Likewise.
55768         * lib/xgetcwd.h: Likewise.
55769         * lib/xgetdomainname.c: Likewise.
55770         * lib/xgetdomainname.h: Likewise.
55771         * lib/xgethostname.c: Likewise.
55772         * lib/xmalloc.c: Likewise.
55773         * lib/xmalloca.c: Likewise.
55774         * lib/xmalloca.h: Likewise.
55775         * lib/xmemcoll.c: Likewise.
55776         * lib/xnanosleep.c: Likewise.
55777         * lib/xreadlink.c: Likewise.
55778         * lib/xreadlink.h: Likewise.
55779         * lib/xsetenv.c: Likewise.
55780         * lib/xsetenv.h: Likewise.
55781         * lib/xstriconv.c: Likewise.
55782         * lib/xstriconv.h: Likewise.
55783         * lib/xstrndup.c: Likewise.
55784         * lib/xstrndup.h: Likewise.
55785         * lib/xstrtod.c: Likewise.
55786         * lib/xstrtod.h: Likewise.
55787         * lib/xstrtol-error.c: Likewise.
55788         * lib/xstrtol.c: Likewise.
55789         * lib/xstrtol.h: Likewise.
55790         * lib/xtime.h: Likewise.
55791         * lib/xvasprintf.c: Likewise.
55792         * lib/xvasprintf.h: Likewise.
55793         * lib/yesno.c: Likewise.
55794         * lib/yesno.h: Likewise.
55795         * posix-modules: Likewise.
55796         * tests/test-alloca-opt.c: Likewise.
55797         * tests/test-arcfour.c: Likewise.
55798         * tests/test-arctwo.c: Likewise.
55799         * tests/test-argmatch.c: Likewise.
55800         * tests/test-argp-2.sh: Likewise.
55801         * tests/test-argp.c: Likewise.
55802         * tests/test-arpa_inet.c: Likewise.
55803         * tests/test-array_list.c: Likewise.
55804         * tests/test-array_oset.c: Likewise.
55805         * tests/test-atexit.c: Likewise.
55806         * tests/test-avltree_list.c: Likewise.
55807         * tests/test-avltree_oset.c: Likewise.
55808         * tests/test-avltreehash_list.c: Likewise.
55809         * tests/test-base64.c: Likewise.
55810         * tests/test-binary-io.c: Likewise.
55811         * tests/test-byteswap.c: Likewise.
55812         * tests/test-c-ctype.c: Likewise.
55813         * tests/test-c-strcasecmp.c: Likewise.
55814         * tests/test-c-strcasestr.c: Likewise.
55815         * tests/test-c-strncasecmp.c: Likewise.
55816         * tests/test-c-strstr.c: Likewise.
55817         * tests/test-canonicalize-lgpl.c: Likewise.
55818         * tests/test-canonicalize.c: Likewise.
55819         * tests/test-carray_list.c: Likewise.
55820         * tests/test-ceilf.c: Likewise.
55821         * tests/test-ceill.c: Likewise.
55822         * tests/test-count-one-bits.c: Likewise.
55823         * tests/test-crc.c: Likewise.
55824         * tests/test-dirname.c: Likewise.
55825         * tests/test-fbufmode.c: Likewise.
55826         * tests/test-fcntl.c: Likewise.
55827         * tests/test-fflush.c: Likewise.
55828         * tests/test-floorf.c: Likewise.
55829         * tests/test-floorl.c: Likewise.
55830         * tests/test-fopen.c: Likewise.
55831         * tests/test-fprintf-posix.c: Likewise.
55832         * tests/test-fprintf-posix.h: Likewise.
55833         * tests/test-fpurge.c: Likewise.
55834         * tests/test-freadable.c: Likewise.
55835         * tests/test-freadahead.c: Likewise.
55836         * tests/test-freading.c: Likewise.
55837         * tests/test-freopen.c: Likewise.
55838         * tests/test-frexp.c: Likewise.
55839         * tests/test-frexpl.c: Likewise.
55840         * tests/test-fseek.c: Likewise.
55841         * tests/test-fseeko.c: Likewise.
55842         * tests/test-fseterr.c: Likewise.
55843         * tests/test-fstrcmp.c: Likewise.
55844         * tests/test-ftell.c: Likewise.
55845         * tests/test-ftello.c: Likewise.
55846         * tests/test-fwritable.c: Likewise.
55847         * tests/test-fwriting.c: Likewise.
55848         * tests/test-getaddrinfo.c: Likewise.
55849         * tests/test-getpass.c: Likewise.
55850         * tests/test-gettimeofday.c: Likewise.
55851         * tests/test-hmac-md5.c: Likewise.
55852         * tests/test-hmac-sha1.c: Likewise.
55853         * tests/test-iconv.c: Likewise.
55854         * tests/test-iconvme.c: Likewise.
55855         * tests/test-inttypes.c: Likewise.
55856         * tests/test-isnan.c: Likewise.
55857         * tests/test-isnanf.c: Likewise.
55858         * tests/test-isnanl-nolibm.c: Likewise.
55859         * tests/test-isnanl.c: Likewise.
55860         * tests/test-isnanl.h: Likewise.
55861         * tests/test-ldexpl.c: Likewise.
55862         * tests/test-linked_list.c: Likewise.
55863         * tests/test-linkedhash_list.c: Likewise.
55864         * tests/test-locale.c: Likewise.
55865         * tests/test-localename.c: Likewise.
55866         * tests/test-lock.c: Likewise.
55867         * tests/test-lseek.c: Likewise.
55868         * tests/test-malloca.c: Likewise.
55869         * tests/test-math.c: Likewise.
55870         * tests/test-mbscasecmp.c: Likewise.
55871         * tests/test-mbscasestr1.c: Likewise.
55872         * tests/test-mbscasestr2.c: Likewise.
55873         * tests/test-mbscasestr3.c: Likewise.
55874         * tests/test-mbscasestr4.c: Likewise.
55875         * tests/test-mbschr.c: Likewise.
55876         * tests/test-mbscspn.c: Likewise.
55877         * tests/test-mbsncasecmp.c: Likewise.
55878         * tests/test-mbspbrk.c: Likewise.
55879         * tests/test-mbspcasecmp.c: Likewise.
55880         * tests/test-mbsrchr.c: Likewise.
55881         * tests/test-mbsspn.c: Likewise.
55882         * tests/test-mbsstr1.c: Likewise.
55883         * tests/test-mbsstr2.c: Likewise.
55884         * tests/test-mbsstr3.c: Likewise.
55885         * tests/test-md5.c: Likewise.
55886         * tests/test-memmem.c: Likewise.
55887         * tests/test-netinet_in.c: Likewise.
55888         * tests/test-open.c: Likewise.
55889         * tests/test-printf-frexp.c: Likewise.
55890         * tests/test-printf-frexpl.c: Likewise.
55891         * tests/test-printf-posix.c: Likewise.
55892         * tests/test-printf-posix.h: Likewise.
55893         * tests/test-rbtree_list.c: Likewise.
55894         * tests/test-rbtree_oset.c: Likewise.
55895         * tests/test-rbtreehash_list.c: Likewise.
55896         * tests/test-read-file.c: Likewise.
55897         * tests/test-rijndael.c: Likewise.
55898         * tests/test-search.c: Likewise.
55899         * tests/test-signbit.c: Likewise.
55900         * tests/test-sleep.c: Likewise.
55901         * tests/test-snprintf-posix.c: Likewise.
55902         * tests/test-snprintf-posix.h: Likewise.
55903         * tests/test-snprintf.c: Likewise.
55904         * tests/test-sprintf-posix.c: Likewise.
55905         * tests/test-sprintf-posix.h: Likewise.
55906         * tests/test-stat-time.c: Likewise.
55907         * tests/test-stdbool.c: Likewise.
55908         * tests/test-stdint.c: Likewise.
55909         * tests/test-stdio.c: Likewise.
55910         * tests/test-stdlib.c: Likewise.
55911         * tests/test-stpncpy.c: Likewise.
55912         * tests/test-strcasestr.c: Likewise.
55913         * tests/test-striconv.c: Likewise.
55914         * tests/test-striconveh.c: Likewise.
55915         * tests/test-striconveha.c: Likewise.
55916         * tests/test-string.c: Likewise.
55917         * tests/test-sys_select.c: Likewise.
55918         * tests/test-sys_socket.c: Likewise.
55919         * tests/test-sys_stat.c: Likewise.
55920         * tests/test-sys_time.c: Likewise.
55921         * tests/test-sysexits.c: Likewise.
55922         * tests/test-time.c: Likewise.
55923         * tests/test-tls.c: Likewise.
55924         * tests/test-trunc.c: Likewise.
55925         * tests/test-truncf.c: Likewise.
55926         * tests/test-truncl.c: Likewise.
55927         * tests/test-unistd.c: Likewise.
55928         * tests/test-vasnprintf-posix.c: Likewise.
55929         * tests/test-vasnprintf-posix2.c: Likewise.
55930         * tests/test-vasnprintf.c: Likewise.
55931         * tests/test-vasprintf-posix.c: Likewise.
55932         * tests/test-vasprintf.c: Likewise.
55933         * tests/test-verify.c: Likewise.
55934         * tests/test-vfprintf-posix.c: Likewise.
55935         * tests/test-vprintf-posix.c: Likewise.
55936         * tests/test-vsnprintf-posix.c: Likewise.
55937         * tests/test-vsnprintf.c: Likewise.
55938         * tests/test-vsprintf-posix.c: Likewise.
55939         * tests/test-wchar.c: Likewise.
55940         * tests/test-wctype.c: Likewise.
55941         * tests/test-wcwidth.c: Likewise.
55942         * tests/test-xstrtol.c: Likewise.
55943         * tests/test-xvasprintf.c: Likewise.
55944         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
55945         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
55946         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
55947         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
55948         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
55949         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
55950         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
55951         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
55952         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
55953         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
55954         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
55955         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
55956         * tests/uniname/test-uninames.c: Likewise.
55957         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
55958         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
55959         * tests/unistdio/test-u16-printf1.h: Likewise.
55960         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
55961         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
55962         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
55963         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
55964         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
55965         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
55966         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
55967         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
55968         * tests/unistdio/test-u32-printf1.h: Likewise.
55969         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
55970         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
55971         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
55972         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
55973         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
55974         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
55975         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
55976         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
55977         * tests/unistdio/test-u8-printf1.h: Likewise.
55978         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
55979         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
55980         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
55981         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
55982         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
55983         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
55984         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
55985         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
55986         * tests/unistdio/test-ulc-printf1.h: Likewise.
55987         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
55988         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
55989         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
55990         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
55991         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
55992         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
55993         * tests/uniwidth/test-u16-strwidth.c: Likewise.
55994         * tests/uniwidth/test-u16-width.c: Likewise.
55995         * tests/uniwidth/test-u32-strwidth.c: Likewise.
55996         * tests/uniwidth/test-u32-width.c: Likewise.
55997         * tests/uniwidth/test-u8-strwidth.c: Likewise.
55998         * tests/uniwidth/test-u8-width.c: Likewise.
55999         * tests/uniwidth/test-uc_width.c: Likewise.
56000         * config/srclist-update: Likewise.
56001         (fixlicense): Update to GPLv3+.
56002
56003         Change copyright notice from LGPLv2.1+ to LGPLv3+.
56004         * tests/test-tsearch.c: Change copyright notice.
56005
56006         Change copyright notice from LGPLv2.0+ to LGPLv3+.
56007         * lib/c-strcaseeq.h: Change copyright notice.
56008         * lib/streq.h: Likewise.
56009         * lib/uniconv.h: Likewise.
56010         * lib/uniconv/u-conv-from-enc.h: Likewise.
56011         * lib/uniconv/u-conv-to-enc.h: Likewise.
56012         * lib/uniconv/u-strconv-from-enc.h: Likewise.
56013         * lib/uniconv/u-strconv-to-enc.h: Likewise.
56014         * lib/uniconv/u16-conv-from-enc.c: Likewise.
56015         * lib/uniconv/u16-conv-to-enc.c: Likewise.
56016         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
56017         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
56018         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
56019         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
56020         * lib/uniconv/u32-conv-from-enc.c: Likewise.
56021         * lib/uniconv/u32-conv-to-enc.c: Likewise.
56022         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
56023         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
56024         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
56025         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
56026         * lib/uniconv/u8-conv-from-enc.c: Likewise.
56027         * lib/uniconv/u8-conv-to-enc.c: Likewise.
56028         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
56029         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
56030         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
56031         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
56032         * lib/uniname.h: Likewise.
56033         * lib/uniname/uniname.c: Likewise.
56034         * lib/unistdio.h: Likewise.
56035         * lib/unistdio/u-asnprintf.h: Likewise.
56036         * lib/unistdio/u-asprintf.h: Likewise.
56037         * lib/unistdio/u-printf-args.c: Likewise.
56038         * lib/unistdio/u-printf-args.h: Likewise.
56039         * lib/unistdio/u-printf-parse.h: Likewise.
56040         * lib/unistdio/u-snprintf.h: Likewise.
56041         * lib/unistdio/u-sprintf.h: Likewise.
56042         * lib/unistdio/u-vasprintf.h: Likewise.
56043         * lib/unistdio/u-vsnprintf.h: Likewise.
56044         * lib/unistdio/u-vsprintf.h: Likewise.
56045         * lib/unistdio/u16-asnprintf.c: Likewise.
56046         * lib/unistdio/u16-asprintf.c: Likewise.
56047         * lib/unistdio/u16-printf-parse.c: Likewise.
56048         * lib/unistdio/u16-snprintf.c: Likewise.
56049         * lib/unistdio/u16-sprintf.c: Likewise.
56050         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
56051         * lib/unistdio/u16-u16-asprintf.c: Likewise.
56052         * lib/unistdio/u16-u16-snprintf.c: Likewise.
56053         * lib/unistdio/u16-u16-sprintf.c: Likewise.
56054         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
56055         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
56056         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
56057         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
56058         * lib/unistdio/u16-vasnprintf.c: Likewise.
56059         * lib/unistdio/u16-vasprintf.c: Likewise.
56060         * lib/unistdio/u16-vsnprintf.c: Likewise.
56061         * lib/unistdio/u16-vsprintf.c: Likewise.
56062         * lib/unistdio/u32-asnprintf.c: Likewise.
56063         * lib/unistdio/u32-asprintf.c: Likewise.
56064         * lib/unistdio/u32-printf-parse.c: Likewise.
56065         * lib/unistdio/u32-snprintf.c: Likewise.
56066         * lib/unistdio/u32-sprintf.c: Likewise.
56067         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
56068         * lib/unistdio/u32-u32-asprintf.c: Likewise.
56069         * lib/unistdio/u32-u32-snprintf.c: Likewise.
56070         * lib/unistdio/u32-u32-sprintf.c: Likewise.
56071         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
56072         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
56073         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
56074         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
56075         * lib/unistdio/u32-vasnprintf.c: Likewise.
56076         * lib/unistdio/u32-vasprintf.c: Likewise.
56077         * lib/unistdio/u32-vsnprintf.c: Likewise.
56078         * lib/unistdio/u32-vsprintf.c: Likewise.
56079         * lib/unistdio/u8-asnprintf.c: Likewise.
56080         * lib/unistdio/u8-asprintf.c: Likewise.
56081         * lib/unistdio/u8-printf-parse.c: Likewise.
56082         * lib/unistdio/u8-snprintf.c: Likewise.
56083         * lib/unistdio/u8-sprintf.c: Likewise.
56084         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
56085         * lib/unistdio/u8-u8-asprintf.c: Likewise.
56086         * lib/unistdio/u8-u8-snprintf.c: Likewise.
56087         * lib/unistdio/u8-u8-sprintf.c: Likewise.
56088         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
56089         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
56090         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
56091         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
56092         * lib/unistdio/u8-vasnprintf.c: Likewise.
56093         * lib/unistdio/u8-vasprintf.c: Likewise.
56094         * lib/unistdio/u8-vsnprintf.c: Likewise.
56095         * lib/unistdio/u8-vsprintf.c: Likewise.
56096         * lib/unistdio/ulc-asnprintf.c: Likewise.
56097         * lib/unistdio/ulc-asprintf.c: Likewise.
56098         * lib/unistdio/ulc-printf-parse.c: Likewise.
56099         * lib/unistdio/ulc-snprintf.c: Likewise.
56100         * lib/unistdio/ulc-sprintf.c: Likewise.
56101         * lib/unistdio/ulc-vasnprintf.c: Likewise.
56102         * lib/unistdio/ulc-vasprintf.c: Likewise.
56103         * lib/unistdio/ulc-vsnprintf.c: Likewise.
56104         * lib/unistdio/ulc-vsprintf.c: Likewise.
56105         * lib/unistr.h: Likewise.
56106         * lib/unistr/u-cpy-alloc.h: Likewise.
56107         * lib/unistr/u-cpy.h: Likewise.
56108         * lib/unistr/u-endswith.h: Likewise.
56109         * lib/unistr/u-move.h: Likewise.
56110         * lib/unistr/u-set.h: Likewise.
56111         * lib/unistr/u-startswith.h: Likewise.
56112         * lib/unistr/u-stpcpy.h: Likewise.
56113         * lib/unistr/u-stpncpy.h: Likewise.
56114         * lib/unistr/u-strcat.h: Likewise.
56115         * lib/unistr/u-strcpy.h: Likewise.
56116         * lib/unistr/u-strcspn.h: Likewise.
56117         * lib/unistr/u-strdup.h: Likewise.
56118         * lib/unistr/u-strlen.h: Likewise.
56119         * lib/unistr/u-strncat.h: Likewise.
56120         * lib/unistr/u-strncpy.h: Likewise.
56121         * lib/unistr/u-strnlen.h: Likewise.
56122         * lib/unistr/u-strpbrk.h: Likewise.
56123         * lib/unistr/u-strspn.h: Likewise.
56124         * lib/unistr/u-strstr.h: Likewise.
56125         * lib/unistr/u-strtok.h: Likewise.
56126         * lib/unistr/u16-check.c: Likewise.
56127         * lib/unistr/u16-chr.c: Likewise.
56128         * lib/unistr/u16-cmp.c: Likewise.
56129         * lib/unistr/u16-cpy-alloc.c: Likewise.
56130         * lib/unistr/u16-cpy.c: Likewise.
56131         * lib/unistr/u16-endswith.c: Likewise.
56132         * lib/unistr/u16-mblen.c: Likewise.
56133         * lib/unistr/u16-mbsnlen.c: Likewise.
56134         * lib/unistr/u16-mbtouc-aux.c: Likewise.
56135         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
56136         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
56137         * lib/unistr/u16-mbtouc.c: Likewise.
56138         * lib/unistr/u16-mbtoucr.c: Likewise.
56139         * lib/unistr/u16-move.c: Likewise.
56140         * lib/unistr/u16-next.c: Likewise.
56141         * lib/unistr/u16-prev.c: Likewise.
56142         * lib/unistr/u16-set.c: Likewise.
56143         * lib/unistr/u16-startswith.c: Likewise.
56144         * lib/unistr/u16-stpcpy.c: Likewise.
56145         * lib/unistr/u16-stpncpy.c: Likewise.
56146         * lib/unistr/u16-strcat.c: Likewise.
56147         * lib/unistr/u16-strchr.c: Likewise.
56148         * lib/unistr/u16-strcmp.c: Likewise.
56149         * lib/unistr/u16-strcpy.c: Likewise.
56150         * lib/unistr/u16-strcspn.c: Likewise.
56151         * lib/unistr/u16-strdup.c: Likewise.
56152         * lib/unistr/u16-strlen.c: Likewise.
56153         * lib/unistr/u16-strmblen.c: Likewise.
56154         * lib/unistr/u16-strmbtouc.c: Likewise.
56155         * lib/unistr/u16-strncat.c: Likewise.
56156         * lib/unistr/u16-strncmp.c: Likewise.
56157         * lib/unistr/u16-strncpy.c: Likewise.
56158         * lib/unistr/u16-strnlen.c: Likewise.
56159         * lib/unistr/u16-strpbrk.c: Likewise.
56160         * lib/unistr/u16-strrchr.c: Likewise.
56161         * lib/unistr/u16-strspn.c: Likewise.
56162         * lib/unistr/u16-strstr.c: Likewise.
56163         * lib/unistr/u16-strtok.c: Likewise.
56164         * lib/unistr/u16-to-u32.c: Likewise.
56165         * lib/unistr/u16-to-u8.c: Likewise.
56166         * lib/unistr/u16-uctomb-aux.c: Likewise.
56167         * lib/unistr/u16-uctomb.c: Likewise.
56168         * lib/unistr/u32-check.c: Likewise.
56169         * lib/unistr/u32-chr.c: Likewise.
56170         * lib/unistr/u32-cmp.c: Likewise.
56171         * lib/unistr/u32-cpy-alloc.c: Likewise.
56172         * lib/unistr/u32-cpy.c: Likewise.
56173         * lib/unistr/u32-endswith.c: Likewise.
56174         * lib/unistr/u32-mblen.c: Likewise.
56175         * lib/unistr/u32-mbsnlen.c: Likewise.
56176         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
56177         * lib/unistr/u32-mbtouc.c: Likewise.
56178         * lib/unistr/u32-mbtoucr.c: Likewise.
56179         * lib/unistr/u32-move.c: Likewise.
56180         * lib/unistr/u32-next.c: Likewise.
56181         * lib/unistr/u32-prev.c: Likewise.
56182         * lib/unistr/u32-set.c: Likewise.
56183         * lib/unistr/u32-startswith.c: Likewise.
56184         * lib/unistr/u32-stpcpy.c: Likewise.
56185         * lib/unistr/u32-stpncpy.c: Likewise.
56186         * lib/unistr/u32-strcat.c: Likewise.
56187         * lib/unistr/u32-strchr.c: Likewise.
56188         * lib/unistr/u32-strcmp.c: Likewise.
56189         * lib/unistr/u32-strcpy.c: Likewise.
56190         * lib/unistr/u32-strcspn.c: Likewise.
56191         * lib/unistr/u32-strdup.c: Likewise.
56192         * lib/unistr/u32-strlen.c: Likewise.
56193         * lib/unistr/u32-strmblen.c: Likewise.
56194         * lib/unistr/u32-strmbtouc.c: Likewise.
56195         * lib/unistr/u32-strncat.c: Likewise.
56196         * lib/unistr/u32-strncmp.c: Likewise.
56197         * lib/unistr/u32-strncpy.c: Likewise.
56198         * lib/unistr/u32-strnlen.c: Likewise.
56199         * lib/unistr/u32-strpbrk.c: Likewise.
56200         * lib/unistr/u32-strrchr.c: Likewise.
56201         * lib/unistr/u32-strspn.c: Likewise.
56202         * lib/unistr/u32-strstr.c: Likewise.
56203         * lib/unistr/u32-strtok.c: Likewise.
56204         * lib/unistr/u32-to-u16.c: Likewise.
56205         * lib/unistr/u32-to-u8.c: Likewise.
56206         * lib/unistr/u32-uctomb.c: Likewise.
56207         * lib/unistr/u8-check.c: Likewise.
56208         * lib/unistr/u8-chr.c: Likewise.
56209         * lib/unistr/u8-cmp.c: Likewise.
56210         * lib/unistr/u8-cpy-alloc.c: Likewise.
56211         * lib/unistr/u8-cpy.c: Likewise.
56212         * lib/unistr/u8-endswith.c: Likewise.
56213         * lib/unistr/u8-mblen.c: Likewise.
56214         * lib/unistr/u8-mbsnlen.c: Likewise.
56215         * lib/unistr/u8-mbtouc-aux.c: Likewise.
56216         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
56217         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
56218         * lib/unistr/u8-mbtouc.c: Likewise.
56219         * lib/unistr/u8-mbtoucr.c: Likewise.
56220         * lib/unistr/u8-move.c: Likewise.
56221         * lib/unistr/u8-next.c: Likewise.
56222         * lib/unistr/u8-prev.c: Likewise.
56223         * lib/unistr/u8-set.c: Likewise.
56224         * lib/unistr/u8-startswith.c: Likewise.
56225         * lib/unistr/u8-stpcpy.c: Likewise.
56226         * lib/unistr/u8-stpncpy.c: Likewise.
56227         * lib/unistr/u8-strcat.c: Likewise.
56228         * lib/unistr/u8-strchr.c: Likewise.
56229         * lib/unistr/u8-strcmp.c: Likewise.
56230         * lib/unistr/u8-strcpy.c: Likewise.
56231         * lib/unistr/u8-strcspn.c: Likewise.
56232         * lib/unistr/u8-strdup.c: Likewise.
56233         * lib/unistr/u8-strlen.c: Likewise.
56234         * lib/unistr/u8-strmblen.c: Likewise.
56235         * lib/unistr/u8-strmbtouc.c: Likewise.
56236         * lib/unistr/u8-strncat.c: Likewise.
56237         * lib/unistr/u8-strncmp.c: Likewise.
56238         * lib/unistr/u8-strncpy.c: Likewise.
56239         * lib/unistr/u8-strnlen.c: Likewise.
56240         * lib/unistr/u8-strpbrk.c: Likewise.
56241         * lib/unistr/u8-strrchr.c: Likewise.
56242         * lib/unistr/u8-strspn.c: Likewise.
56243         * lib/unistr/u8-strstr.c: Likewise.
56244         * lib/unistr/u8-strtok.c: Likewise.
56245         * lib/unistr/u8-to-u16.c: Likewise.
56246         * lib/unistr/u8-to-u32.c: Likewise.
56247         * lib/unistr/u8-uctomb-aux.c: Likewise.
56248         * lib/unistr/u8-uctomb.c: Likewise.
56249         * lib/unitypes.h: Likewise.
56250         * lib/uniwidth.h: Likewise.
56251         * lib/uniwidth/cjk.h: Likewise.
56252         * lib/uniwidth/u16-strwidth.c: Likewise.
56253         * lib/uniwidth/u16-width.c: Likewise.
56254         * lib/uniwidth/u32-strwidth.c: Likewise.
56255         * lib/uniwidth/u32-width.c: Likewise.
56256         * lib/uniwidth/u8-strwidth.c: Likewise.
56257         * lib/uniwidth/u8-width.c: Likewise.
56258         * lib/uniwidth/width.c: Likewise.
56259
56260 2007-10-07  Bruno Haible  <bruno@clisp.org>
56261
56262         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
56263         The file is still under LGPL (see modules/inttypes).
56264
56265 2007-10-06  Bruno Haible  <bruno@clisp.org>
56266
56267         * modules/trunc (Dependencies): Add 'extensions'.
56268         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
56269         Reported by Ben Pfaff <blp@gnu.org>.
56270
56271 2007-10-06  Bruno Haible  <bruno@clisp.org>
56272
56273         * modules/freopen-tests: New file.
56274         * tests/test-freopen.c: New file.
56275
56276         * modules/fopen-tests: New file.
56277         * tests/test-fopen.c: New file.
56278
56279         * modules/fopen: New file.
56280         * lib/fopen.c: New file.
56281         * m4/fopen.m4: New file.
56282         * modules/freopen: New file.
56283         * lib/freopen.c: New file.
56284         * m4/freopen.m4: New file.
56285         * lib/stdio.in.h (fopen, freopen): New declarations.
56286         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
56287         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
56288         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
56289         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
56290         * doc/functions/fopen.texi: Mention the 'fopen' module.
56291         * doc/functions/freopen.texi: Mention the 'freopen' module.
56292
56293 2007-10-06  Bruno Haible  <bruno@clisp.org>
56294
56295         * modules/open-tests: New file.
56296         * tests/test-open.c: New file.
56297
56298         * modules/open: New file.
56299         * lib/open.c: New file.
56300         * m4/open.m4: New file.
56301         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
56302         lib/open.c does.
56303         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
56304         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
56305         macros.
56306         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
56307         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
56308         REPLACE_OPEN.
56309         * doc/functions/open.texi: Mention the 'open' module.
56310
56311 2007-10-04  Bruno Haible  <bruno@clisp.org>
56312
56313         * modules/ceill-tests: New file.
56314         * tests/test-ceill.c: New file.
56315
56316         * modules/ceill: New file.
56317         * lib/ceill.c: Replace entire file.
56318         * m4/ceill.m4: New file.
56319         * lib/math.in.h (ceill): Replace declaration.
56320         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
56321         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
56322         * doc/functions/ceill.texi: Mention the 'ceill' module.
56323         * modules/mathl (Files): Remove lib/ceill.c.
56324         (Depends-on): Add ceill.
56325
56326 2007-10-04  Bruno Haible  <bruno@clisp.org>
56327
56328         * modules/ceilf-tests: New file.
56329         * tests/test-ceilf.c: New file.
56330
56331         * modules/ceilf: New file.
56332         * lib/ceil.c: New file.
56333         * lib/ceilf.c: New file.
56334         * m4/ceilf.m4: New file.
56335         * lib/math.in.h (ceilf): New declaration.
56336         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
56337         HAVE_DECL_CEILF.
56338         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
56339         HAVE_DECL_CEILF.
56340         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
56341
56342 2007-10-04  Bruno Haible  <bruno@clisp.org>
56343
56344         * modules/floorl-tests: New file.
56345         * tests/test-floorl.c: New file.
56346
56347         * modules/floorl: New file.
56348         * lib/floorl.c: Replace entire file.
56349         * m4/floorl.m4: New file.
56350         * lib/math.in.h (floorl): Replace declaration.
56351         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
56352         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
56353         * doc/functions/floorl.texi: Mention the 'floorl' module.
56354         * modules/mathl (Files): Remove lib/floorl.c.
56355         (Depends-on): Add floorl.
56356
56357 2007-10-04  Bruno Haible  <bruno@clisp.org>
56358
56359         * modules/floorf-tests: New file.
56360         * tests/test-floorf.c: New file.
56361
56362         * modules/floorf: New file.
56363         * lib/floor.c: New file.
56364         * lib/floorf.c: New file.
56365         * m4/floorf.m4: New file.
56366         * lib/math.in.h (floorf): New declaration.
56367         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
56368         HAVE_DECL_FLOORF.
56369         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
56370         HAVE_DECL_FLOORF.
56371         * doc/functions/floorf.texi: Mention the 'floorf' module.
56372
56373 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
56374             Bruno Haible  <bruno@clisp.org>
56375
56376         Advertise for the Git server instead of the CVS server.
56377         * doc/gnulib-intro.texi (Steady Development): Mention the Git
56378         repository instead of the CVS one.
56379         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
56380         about all VCS systems generically.
56381         * doc/gnulib.texi (Introduction): Capitalize `Git'.
56382
56383 2007-10-04  Bruno Haible  <bruno@clisp.org>
56384
56385         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
56386         means.
56387         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
56388
56389 2007-10-04  Bruno Haible  <bruno@clisp.org>
56390
56391         * modules/truncl-tests: New file.
56392         * tests/test-truncl.c: New file.
56393
56394         * modules/truncl: New file.
56395         * lib/truncl.c: New file.
56396         * m4/truncl.m4: New file.
56397         * lib/math.in.h (truncl): New declaration.
56398         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
56399         HAVE_DECL_TRUNCL.
56400         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
56401         HAVE_DECL_TRUNCL.
56402         * doc/functions/truncl.texi: Mention the 'truncl' module.
56403
56404 2007-10-04  Bruno Haible  <bruno@clisp.org>
56405
56406         * modules/truncf-tests: New file.
56407         * tests/test-truncf.c: New file.
56408
56409         * modules/truncf: New file.
56410         * lib/trunc.c: Make paramerizable through USE_* macros.
56411         * lib/truncf.c: New file.
56412         * m4/truncf.m4: New file.
56413         * lib/math.in.h (truncf): New declaration.
56414         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
56415         HAVE_DECL_TRUNCF.
56416         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
56417         HAVE_DECL_TRUNCF.
56418         * doc/functions/truncf.texi: Mention the 'truncf' module.
56419
56420 2007-10-03  Bruno Haible  <bruno@clisp.org>
56421
56422         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
56423         augmentation also for tests modules.
56424         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
56425         * modules/atexit-tests (Makefile.am): Likewise.
56426         * modules/binary-io-tests (Makefile.am): Likewise.
56427         * modules/c-strcase-tests (Makefile.am): Likewise.
56428         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
56429         * modules/canonicalize-tests (Makefile.am): Likewise.
56430         * modules/closein-tests (Makefile.am): Likewise.
56431         * modules/fprintf-posix-tests (Makefile.am): Likewise.
56432         * modules/freadahead-tests (Makefile.am): Likewise.
56433         * modules/fseek-tests (Makefile.am): Likewise.
56434         * modules/fseeko-tests (Makefile.am): Likewise.
56435         * modules/ftell-tests (Makefile.am): Likewise.
56436         * modules/ftello-tests (Makefile.am): Likewise.
56437         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
56438         * modules/isnanl-tests (Makefile.am): Likewise.
56439         * modules/lseek-tests (Makefile.am): Likewise.
56440         * modules/mbscasecmp-tests (Makefile.am): Likewise.
56441         * modules/mbscasestr-tests (Makefile.am): Likewise.
56442         * modules/mbschr-tests (Makefile.am): Likewise.
56443         * modules/mbscspn-tests (Makefile.am): Likewise.
56444         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
56445         * modules/mbspbrk-tests (Makefile.am): Likewise.
56446         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
56447         * modules/mbsrchr-tests (Makefile.am): Likewise.
56448         * modules/mbsspn-tests (Makefile.am): Likewise.
56449         * modules/mbsstr-tests (Makefile.am): Likewise.
56450         * modules/printf-posix-tests (Makefile.am): Likewise.
56451         * modules/snprintf-posix-tests (Makefile.am): Likewise.
56452         * modules/sprintf-posix-tests (Makefile.am): Likewise.
56453         * modules/tsearch-tests (Makefile.am): Likewise.
56454         * modules/uniname/uniname-tests (Makefile.am): Likewise.
56455         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
56456         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
56457         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
56458         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
56459         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
56460         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
56461         * modules/vprintf-posix-tests (Makefile.am): Likewise.
56462         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
56463         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
56464         * modules/xstrtoimax-tests (Makefile.am): Likewise.
56465         * modules/xstrtol-tests (Makefile.am): Likewise.
56466         * modules/xstrtoumax-tests (Makefile.am): Likewise.
56467         * modules/yesno-tests (Makefile.am): Likewise.
56468
56469 2007-10-03  Bruno Haible  <bruno@clisp.org>
56470
56471         * modules/trunc-tests: New file.
56472         * tests/test-trunc.c: New file.
56473
56474         * modules/trunc: New file.
56475         * lib/trunc.c: New file.
56476         * m4/trunc.m4: New file.
56477         * lib/math.in.h (trunc): New declaration.
56478         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
56479         HAVE_DECL_TRUNC.
56480         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
56481         HAVE_DECL_TRUNC.
56482         * doc/functions/trunc.texi: Mention the 'trunc' module.
56483
56484 2007-10-03  Bruno Haible  <bruno@clisp.org>
56485
56486         * tests/test-fpending.c: New file, mostly copied
56487         from coreutils/lib/t-fpending.c.
56488         * modules/fpending-tests: New file.
56489
56490 2007-10-03  Bruno Haible  <bruno@clisp.org>
56491
56492         Port the stdio extensions to QNX (untested).
56493         * lib/fseterr.c (fseterr): Add support for QNX.
56494         * lib/fbufmode.c (fbufmode): Likewise.
56495         * lib/freadable.c (freadable): Likewise.
56496         * lib/fwritable.c (fwritable): Likewise.
56497         * lib/freading.c (freading): Likewise.
56498         * lib/fwriting.c (fwriting): Likewise.
56499         * lib/freadahead.c (freadahed): Likewise.
56500         * lib/fpurge.c (fpurge): Likewise.
56501         * lib/fseeko.c (rpl_fseeko): Likewise.
56502
56503 2007-10-03  Bruno Haible  <bruno@clisp.org>
56504             Jim Meyering  <jim@meyering.net>
56505             Eric Blake  <ebb9@byu.net>
56506
56507         * doc/relocatable.texi: Use @command instead of @program.
56508
56509 2007-10-02  Jim Meyering  <jim@meyering.net>
56510
56511         Perform one more "_.h" -> ".in.h" substitution.
56512         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
56513         instead of unistd_.h here, too.
56514
56515 2007-10-01  Bruno Haible  <bruno@clisp.org>
56516
56517         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
56518         Needed for the alloca-opt module.
56519
56520 2007-09-30  Bruno Haible  <bruno@clisp.org>
56521
56522         * lib/alloca.in.h: Renamed from lib/alloca_.h.
56523         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
56524         alloca_.h.
56525         * lib/argz.in.h: Renamed from lib/argz_.h.
56526         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
56527         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
56528         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
56529         byteswap_.h.
56530         * lib/dirent.in.h: Renamed from lib/dirent_.h.
56531         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
56532         dirent_.h.
56533         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
56534         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
56535         fcntl_.h.
56536         * lib/float.in.h: Renamed from lib/float_.h.
56537         * modules/float (Files, Makefile.am): Use float.in.h instead of
56538         float_.h.
56539         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
56540         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
56541         fnmatch_.h.
56542         * lib/getopt.in.h: Renamed from lib/getopt_.h.
56543         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
56544         getopt_.h.
56545         * lib/glob.in.h: Renamed from lib/glob_.h.
56546         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
56547         * lib/iconv.in.h: Renamed from lib/iconv_.h.
56548         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
56549         iconv_.h.
56550         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
56551         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
56552         inttypes_.h.
56553         * lib/locale.in.h: Renamed from lib/locale_.h.
56554         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
56555         locale_.h.
56556         * lib/math.in.h: Renamed from lib/math_.h.
56557         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
56558         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
56559         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
56560         of netinet_in_.h. Add dependency.
56561         * lib/poll.in.h: Renamed from lib/poll_.h.
56562         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
56563         * lib/search.in.h: Renamed from lib/search_.h.
56564         * modules/search (Files, Makefile.am): Use search.in.h instead of
56565         search_.h.
56566         * lib/signal.in.h: Renamed from lib/signal_.h.
56567         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
56568         _signal.h.
56569         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
56570         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
56571         stdbool_.h.
56572         * lib/stdint.in.h: Renamed from lib/stdint_.h.
56573         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
56574         stdint_.h.
56575         * lib/stdio.in.h: Renamed from lib/stdio_.h.
56576         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
56577         stdio_.h.
56578         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
56579         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
56580         stdlib_.h.
56581         * lib/string.in.h: Renamed from lib/string_.h.
56582         * modules/string (Files, Makefile.am): Use string.in.h instead of
56583         string_.h.
56584         * doc/gnulib-tool.texi (Initial import): Update.
56585         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
56586         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
56587         of sys_select_.h. Add dependency.
56588         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
56589         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
56590         of sys_socket_.h.
56591         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
56592         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
56593         sys_stat_.h.
56594         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
56595         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
56596         sys_time_.h.
56597         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
56598         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
56599         sysexits_.h.
56600         * lib/time.in.h: Renamed from lib/time_.h.
56601         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
56602         * lib/unistd.in.h: Renamed from lib/unistd_.h.
56603         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
56604         unistd_.h.
56605         * lib/wchar.in.h: Renamed from lib/wchar_.h.
56606         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
56607         wchar_.h.
56608         * lib/wctype.in.h: Renamed from lib/wctype_.h.
56609         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
56610         wctype_.h.
56611         * build-aux/bootstrap (slurp): Update.
56612         * lib/.cppi-disable: Update.
56613
56614 2007-09-30  Bruno Haible  <bruno@clisp.org>
56615
56616         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
56617         Needed on BeOS.
56618
56619 2007-09-30  Bruno Haible  <bruno@clisp.org>
56620
56621         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
56622
56623 2007-09-29  Bruno Haible  <bruno@clisp.org>
56624
56625         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
56626
56627 2007-09-29  Bruno Haible  <bruno@clisp.org>
56628
56629         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
56630         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
56631         * build-aux/install-reloc: Compile also areadlink.c.
56632         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
56633
56634 2007-09-29  Bruno Haible  <bruno@clisp.org>
56635
56636         * gnulib-tool (func_emit_initmacro_done): Indentation.
56637
56638 2007-09-29  Bruno Haible  <bruno@clisp.org>
56639
56640         * README: Add CVS checkout update instructions.
56641         Info from Bob Proulx <bob@proulx.com>.
56642
56643 2007-09-28  Eric Blake  <ebb9@byu.net>
56644
56645         Provide move-if-change.
56646         * build-aux/move-if-change: New file, based on best practice
56647         rather than any canonical upstream location.
56648
56649 2007-09-28  Jim Meyering  <jim@meyering.net>
56650
56651         Fix canonicalize loop-detection corner case.
56652         Do not attempt to stat the symlink values stored via seen_triple.
56653         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
56654         on linux-2.6.18, (but not 2.6.22).
56655         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
56656         triple_compare.  The former compares dev,ino,filename, while the latter
56657         would actually stat dirname(filename) when dev and ino were equal.
56658         * lib/hash-triple.c: Install <string.h>.
56659         (STREQ): Define.
56660         (triple_compare_ino_str): New function.
56661         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
56662
56663 2007-09-28  Eric Blake  <ebb9@byu.net>
56664
56665         Enforce that AC_REPLACE_FUNCS files exist.
56666         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
56667         override check for typos.
56668
56669         Fix test-closein on Solaris 10.
56670         * tests/test-closein.c (main): Don't assume stdin can be inherited
56671         closed on all systems.
56672         * tests/test-closein.sh: Likewise.
56673         Reported by Piotr Tarnowski.
56674
56675 2007-09-28  Jim Meyering  <jim@meyering.net>
56676
56677         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
56678
56679 2007-09-27  Jim Meyering  <jim@meyering.net>
56680
56681         canonicalize: Avoid a false-positive cycle failure.
56682         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
56683         Sort.  Remove cycle-check.
56684         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
56685         not cycle-check.h.
56686         (seen_triple): New function.
56687         (canonicalize_filename_mode): Use it instead of cycle-check.
56688         * tests/test-canonicalize.c: Add a test for this bug.
56689         * tests/test-canonicalize.sh: Set up and run the test.
56690
56691         New module, file-set, from coreutils.
56692         * modules/file-set: Define it.
56693         * lib/file-set.c, lib/file-set.h: Implement.
56694
56695         New module, hash-triple, from coreutils.
56696         * modules/hash-triple: Define it.
56697         * lib/hash-triple.c, lib/hash-triple.h: Implement.
56698
56699 2007-09-25  Eric Blake  <ebb9@byu.net>
56700
56701         Fix strerror on Interix.
56702         * lib/string_.h (strerror): Declare replacement.
56703         * doc/functions/strerror.texi (strerror): Document the Interix
56704         shortcoming.
56705         * modules/string (Makefile.am): Support new hooks.
56706         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
56707         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
56708         gl_FUNC_STRERROR_SEPARATE.
56709         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
56710         * lib/strerror.c (rpl_strerror): Provide replacement.
56711         * modules/strerror (Depends-on): Add string.
56712         (configure.ac): Detect use of module.
56713         * tests/test-strerror.c: New file.
56714         * modules/strerror-tests: New test module.
56715         * modules/argp (Depends-on): Add strerror.
56716         * modules/error (Depends-on): Likewise.
56717         Reported by Martin Koeppe.
56718
56719 2007-09-24  Bruno Haible  <bruno@clisp.org>
56720
56721         * README: Update git instructions.
56722
56723 2007-09-24  Eric Blake  <ebb9@byu.net>
56724
56725         Revert fpending breakage from 2007-09-08.
56726         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
56727         __fpending.c.
56728
56729 2007-09-24  Jim Meyering  <jim@meyering.net>
56730
56731         filenamecat.c: Add a test.
56732         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
56733         showing how the function works when DIR is the empty string.
56734
56735 2007-09-21  Simon Josefsson  <simon@josefsson.org>
56736
56737         * tests/test-canonicalize.sh: Turn on executable bit.
56738
56739 2007-09-19  Eric Blake  <ebb9@byu.net>
56740
56741         * README: Update CVS instructions.
56742
56743 2007-09-18  Bruno Haible  <bruno@clisp.org>
56744
56745         * modules/areadlink: New file.
56746         * lib/areadlink.h (areadlink): New declaration.
56747         * lib/areadlink.c: New file, based on lib/xreadlink.c.
56748
56749 2007-09-17  Jim Meyering  <jim@meyering.net>
56750
56751         * lib/savewd.c (ESTALE) [!defined]: Define.
56752         Reported to be required on Interix by Martin Koeppe.
56753
56754 2007-09-17  Bruno Haible  <bruno@clisp.org>
56755
56756         * gnulib-tool (func_version): Use $version.
56757
56758 2007-09-16  Bruno Haible  <bruno@clisp.org>
56759
56760         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
56761         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
56762         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
56763         Reported by Greg Schafer <gschafer@zip.com.au>.
56764
56765 2007-09-15  Bruno Haible  <bruno@clisp.org>
56766
56767         * gnulib-tool (sed): Try a little harder to make bash understand the
56768         alias.
56769         Reported by Bruce Korb <bruce.korb@gmail.com>.
56770
56771 2007-09-13  Eric Blake  <ebb9@byu.net>
56772
56773         * ChangeLog: Remove conflict markers.
56774
56775 2007-09-13  Simon Josefsson  <simon@josefsson.org>
56776
56777         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
56778         Reported by Bruno Haible <bruno@clisp.org>.
56779
56780 2007-09-12  Bruno Haible  <bruno@clisp.org>
56781
56782         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
56783         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
56784         is not defined.
56785
56786 2007-09-12  Eric Blake  <ebb9@byu.net>
56787
56788         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
56789         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
56790         Autoconf definition.
56791         * modules/euidaccess (Depends-on): Add extensions, for
56792         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
56793         * modules/fnmatch (Depends-on): Likewise.
56794         * modules/getaddrinfo (Depends-on): Likewise.
56795         * modules/getdelim (Depends-on): Likewise.
56796         * modules/getline (Depends-on): Likewise.
56797         * modules/getsubopt (Depends-on): Likewise.
56798         * modules/gettext (Depends-on): Likewise.
56799         * modules/group-member (Depends-on): Likewise.
56800         * modules/mbchar (Depends-on): Likewise.
56801         * modules/memmem (Depends-on): Likewise.
56802         * modules/mempcpy (Depends-on): Likewise.
56803         * modules/memrchr (Depends-on): Likewise.
56804         * modules/pagealign_alloc (Depends-on): Likewise.
56805         * modules/readutmp (Depends-on): Likewise.
56806         * modules/stpcpy (Depends-on): Likewise.
56807         * modules/stpncpy (Depends-on): Likewise.
56808         * modules/strchrnul (Depends-on): Likewise.
56809         * modules/strndup (Depends-on): Likewise.
56810         * modules/strsep (Depends-on): Likewise.
56811         * modules/strverscmp (Depends-on): Likewise.
56812         * modules/vasprintf (Depends-on): Likewise.
56813         * modules/wcwidth (Depends-on): Likewise.
56814         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
56815         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
56816         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
56817         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
56818         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
56819         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
56820         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
56821         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
56822         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
56823         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
56824         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
56825         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
56826         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
56827         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
56828         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
56829         * m4/readutmp.m4 (gl_READUTMP): Likewise.
56830         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
56831         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
56832         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
56833         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
56834         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
56835         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
56836         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
56837         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
56838         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
56839         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
56840         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
56841         so that lock.m4 can be used in gettext without extensions module.
56842
56843 2007-09-11  Bruno Haible  <bruno@clisp.org>
56844
56845         * m4/isc-posix.m4: Remove file.
56846         Suggested by Eric Blake.
56847
56848 2007-09-11  Eric Blake  <ebb9@byu.net>
56849
56850         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
56851
56852 2007-09-10  Bruno Haible  <bruno@clisp.org>
56853
56854         * posix-modules: Fix typo in error message.
56855         Reported by Matt <mkraai@beckman.com>.
56856
56857 2007-09-09  Bruno Haible  <bruno@clisp.org>
56858
56859         * doc/functions/getdelim.texi: Update list of platforms lacking the
56860         function.
56861         * doc/functions/getline.texi: Likewise.
56862
56863 2007-09-09  Jim Meyering  <jim@meyering.net>
56864
56865         * lib/hash.c (hash_initialize): Detect calloc failure.
56866         Reported by Bruno Haible.
56867
56868 2007-09-09  Bruno Haible  <bruno@clisp.org>
56869
56870         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
56871         malloc or realloc fails.
56872
56873 2007-09-09  Bruno Haible  <bruno@clisp.org>
56874
56875         * modules/getcwd (Depends-on): Add malloc-posix.
56876         * modules/glob (Depends-on): Likewise.
56877         * modules/putenv (Depends-on): Likewise.
56878         * modules/strdup (Depends-on): Likewise.
56879         * modules/getdelim (Depends-on): Add realloc-posix.
56880         * modules/read-file (Depends-on): Likewise.
56881
56882 2007-09-09  Bruno Haible  <bruno@clisp.org>
56883
56884         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
56885         (gl_FUNC_MALLOC_POSIX): Require it.
56886         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
56887         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
56888         * modules/realloc (Files): Add m4/malloc.m4.
56889         * modules/calloc (Files): Likewise.
56890
56891 2007-09-09  Bruno Haible  <bruno@clisp.org>
56892
56893         * modules/malloc-posix: New file.
56894         * modules/malloc (Depends-on): Add malloc-posix.
56895         * lib/malloc.c: Include errno.h.
56896         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
56897         and a POSIX-compatible malloc into a single function. Set ENOMEM
56898         when returning NULL.
56899         * m4/malloc.m4: New file.
56900         * doc/functions/malloc.texi: Mention the malloc-posix module.
56901         * lib/stdlib_.h (malloc): New declaration.
56902         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
56903         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
56904         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
56905         and HAVE_MALLOC_POSIX.
56906
56907 2007-09-09  Bruno Haible  <bruno@clisp.org>
56908
56909         * modules/realloc-posix: New file.
56910         * modules/realloc (Depends-on): Add realloc-posix.
56911         * lib/realloc.c: Include errno.h.
56912         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
56913         and a POSIX-compatible realloc into a single function. Set ENOMEM
56914         when returning NULL.
56915         * m4/realloc.m4: New file.
56916         * doc/functions/realloc.texi: Mention the realloc-posix module.
56917         * lib/stdlib_.h (realloc): New declaration.
56918         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
56919         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
56920         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
56921         and HAVE_REALLOC_POSIX.
56922
56923 2007-09-09  Bruno Haible  <bruno@clisp.org>
56924
56925         * modules/calloc-posix: New file.
56926         * modules/calloc (Depends-on): Add calloc-posix.
56927         * lib/calloc.c: Include errno.h.
56928         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
56929         and a POSIX-compatible calloc into a single function. Set ENOMEM
56930         when returning NULL.
56931         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
56932         * doc/functions/calloc.texi: Mention the calloc-posix module.
56933         * lib/stdlib_.h (calloc): New declaration.
56934         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
56935         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
56936         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
56937         and HAVE_CALLOC_POSIX.
56938
56939 2007-09-09  Bruno Haible  <bruno@clisp.org>
56940
56941         Allow for modules to show an arbitrary notice.
56942         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
56943         * gnulib-tool: New option --extract-notice.
56944         (func_usage): Document it.
56945         (sed_extract_prog): Update.
56946         (func_get_notice): New function.
56947         (func_modules_notice): New function.
56948         (func_import, func_create_testdir): Invoke it.
56949         Suggested by Jim Meyering.
56950
56951 2007-09-09  Bruno Haible  <bruno@clisp.org>
56952
56953         * gnulib-tool: New options --verbose, --quiet.
56954         (func_usage): Document them.
56955         (verbose): New variable.
56956         (func_execute_command): New function.
56957         (func_import): Don't show the module list and the file list if
56958         $verbose < 0.
56959         (func_create_testdir): Likewise. Use func_execute_command.
56960         (func_create_megatestdir): Use func_execute_command.
56961
56962 2007-09-08  Bruno Haible  <bruno@clisp.org>
56963
56964         * gnulib-tool (func_import): Prefer rsync over wget when available,
56965         for fetching the PO files.
56966
56967 2007-09-08  Bruno Haible  <bruno@clisp.org>
56968
56969         * posix-modules: New file. Portions copied from gnulib-tool.
56970         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
56971
56972 2007-09-08  Jim Meyering  <jim@meyering.net>
56973
56974         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
56975         * lib/fpending.h: Rename from __fpending.h.
56976         * lib/fpending.c: Rename from __fpending.c.
56977         Include "fpending.h", not "__fpending.h".
56978         * lib/__fpending.h, lib/__fpending.c: Remove files.
56979         * modules/fpending (Files): Reflect new file names.
56980         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
56981
56982 2007-09-08  Bruno Haible  <bruno@clisp.org>
56983
56984         * m4/inttypes-h.m4: Remove stub file.
56985
56986 2007-09-07  Simon Josefsson  <simon@josefsson.org>
56987
56988         * doc/headers/stdint.texi: Discuss #include_next issue.
56989
56990 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
56991
56992         * build-aux/bootstrap: Remove obsolete comment about wget --help.
56993
56994 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56995
56996         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
56997         in variable name.
56998
56999 2007-09-03  Jim Meyering  <jim@meyering.net>
57000
57001         New module: git-version-gen.
57002         * modules/git-version-gen: New file.
57003
57004         Import changes from coreutils for bootstrap script.
57005
57006         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
57007
57008         bootstrap: uses rsync to download the .po files
57009         * build-aux/bootstrap (po_download_command_format): New global.
57010         (download_po_files): Use rsync.
57011         (update_po_files): Don't remove .po files after download,
57012         so future rsync runs can take advantage of the copies.
57013
57014         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
57015
57016         Solve the unnecessary-.po-file-regeneration problem once and for all.
57017         * build-aux/bootstrap (download_po_files): New function, renamed from
57018         get_translations.  Now, downloads, but doesn't update LINGUAS.
57019         (update_po_files): New function.
57020
57021         bootstrap: Ignore more.
57022         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
57023         uniwidth to e.g., lib/.gitignore.
57024         (slurp): Handle the sys_stat_.h -> sys mapping, too.
57025
57026         * build-aux/bootstrap: New setting: vc_ignore.
57027         (insert_sorted_if_absent): Create $file if absent.
57028         Adapt to new, possibly empty, list: $vc_ignore.
57029
57030         bootstrap: generate more ignorable names
57031         * build-aux/bootstrap (slurp): When generating ignorable names,
57032         also map .sin to .sed, .gperf to .c, and .y to .c.
57033
57034 2007-09-03  Jim Meyering  <jim@meyering.net>
57035
57036         * build-aux/git-version-gen: New file, from coreutils.  For details, see
57037         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
57038
57039 2007-09-02  Bruno Haible  <bruno@clisp.org>
57040
57041         Fix mis-recognition of 'mcs' on QNX 6.
57042         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
57043         output contains the string "Mono".
57044         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
57045         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
57046
57047 2007-09-01  Bruno Haible  <bruno@clisp.org>
57048
57049         Fix collision between uniwidth/* and linebreak modules.
57050         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
57051         u32_width): Remove declarations.
57052         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
57053         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
57054         streq3, streq2, streq1, streq0): Remove functions.
57055         (STREQ): Remove macro.
57056         (is_cjk_encoding): Remove function.
57057         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
57058         (uc_width, u8_width, u16_width, u32_width): Remove functions.
57059         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
57060         * NEWS: Document the change.
57061
57062 2007-09-01  Bruno Haible  <bruno@clisp.org>
57063
57064         * lib/streq.h: Add double-inclusion guard.
57065
57066 2007-09-01  Karl Berry  <karl@gnu.org>
57067
57068         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
57069
57070 2007-08-28  Jim Meyering  <jim@meyering.net>
57071
57072         Rename mreadlink_with_size to areadlink_with_size.
57073         * NEWS: Document the change.
57074         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
57075         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
57076         * lib/mreadlink.h: Rename this to...
57077         * lib/areadlink.h: ...this.
57078         * modules/mreadlink-with-size: Rename this to...
57079         * modules/areadlink-with-size: ...this.
57080         * lib/canonicalize.c: Reflect the renaming.
57081         * modules/canonicalize: Likewise.
57082
57083 2007-08-26  Bruno Haible  <bruno@clisp.org>
57084
57085         * gnulib-tool (func_import): When deciding which files to remove,
57086         consider also dangling symbolic links.
57087         Reported by Eric Blake.
57088
57089 2007-08-26  Bruno Haible  <bruno@clisp.org>
57090
57091         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
57092
57093 2007-08-23  Simon Josefsson  <simon@josefsson.org>
57094
57095         * lib/readline.c: Don't include getline.h, the prototype is now
57096         found in stdio.h.
57097
57098 2007-08-23  Jim Meyering  <jim@meyering.net>
57099
57100         Getdelim touchup.
57101         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
57102         around the funlockfile call, since funlockfile never sets errno.
57103         Don't set errno upon failed realloc.
57104
57105 2007-08-22  Eric Blake  <ebb9@byu.net>
57106
57107         Getline touchups.
57108         * lib/getdelim.c (getdelim): Revert regression that required *n to
57109         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
57110         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
57111         getdelim, rather than whether implementation is missing.
57112         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
57113         * lib/stdio_.h (getline): Also declare if replacement is
57114         required.
57115         * doc/functions/getdelim.texi: New file.
57116         * doc/functions/getline.texi: Likewise.
57117         * doc/gnulib.texi (Function Substitutes): Add new files.
57118         Reported by Bruno Haible.
57119
57120 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
57121
57122         * users.txt: Add Guile.
57123
57124 2007-08-22  Eric Blake  <ebb9@byu.net>
57125
57126         * tests/test-getdelim.c (main): Use remove, not unlink.
57127         * tests/test-getline.c (main): Likewise.
57128
57129         Move getline and getdelim into stdio.h, per POSIX 200x.
57130         * modules/getline (Files): Remove getline.h.
57131         (Depends-on): Add stdio.
57132         (configure.ac): Add module indicator.
57133         * modules/getdelim (Files): Remove getdelim.h.
57134         (Depends-on): Add stdio.
57135         (configure.ac): Add module indicator.
57136         * modules/stdio (Makefile.am): Work with new indicators.
57137         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
57138         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
57139         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
57140         * lib/getdelim.h: Delete.
57141         * lib/getline.h: Delete.
57142         * lib/stdio_.h (getdelim, getline): Declare.
57143         * modules/getdelim-tests: New module.
57144         * modules/getline-tests: Likewise.
57145         * tests/test-getdelim.c: New file.
57146         * tests/test-getline.c: Likewise.
57147         * NEWS: Document the change.
57148         * lib/getline.c: Update choice of header.
57149         * lib/csharpcomp.c: Likewise.
57150         * lib/getpass.c: Likewise.
57151         * lib/javacomp.c: Likewise.
57152         * lib/javaversion.c: Likewise.
57153         * lib/yesno.c: Likewise.
57154         * lib/getdelim.c: Likewise.
57155         (getdelim): Set errno on failure, and avoid memory leak.
57156
57157 2007-08-19  Bruno Haible  <bruno@clisp.org>
57158
57159         * modules/closein (Depends-on): Add freadahead.
57160         * lib/closein.c: Include freadahead.h.
57161         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
57162         is zero.
57163
57164 2007-08-19  Bruno Haible  <bruno@clisp.org>
57165
57166         * modules/freadahead-tests: New file.
57167         * tests/test-freadahead.sh: New file.
57168         * tests/test-freadahead.c: New file.
57169
57170         * modules/freadahead: New file.
57171         * lib/freadahead.h: New file.
57172         * lib/freadahead.c: New file.
57173         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
57174         fbufmode, fpurge, freadable, fwritable.
57175
57176 2007-08-19  Eric Blake  <ebb9@byu.net>
57177
57178         Test yesno in combination with closein.
57179         * lib/yesno.c (yesno): Document use of stdin.
57180         * modules/yesno-tests (Files): New module.
57181         * tests/test-yesno.c (main): New file.
57182         * tests/test-yesno.sh: Likewise.
57183
57184 2007-08-19  Bruno Haible  <bruno@clisp.org>
57185
57186         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
57187         * lib/fseeko.c (rpl_fseeko): Likewise.
57188         * lib/fseterr.c (fseterr): Likewise.
57189
57190 2007-08-19  Bruno Haible  <bruno@clisp.org>
57191
57192         * tests/test-lseek.c (main): Disable a test for BeOS.
57193         * doc/functions/lseek.texi: Document the BeOS bug.
57194
57195 2007-08-19  Bruno Haible  <bruno@clisp.org>
57196             Eric Blake  <ebb9@byu.net>
57197
57198         * lib/lseek.c: Include <sys/stat.h>.
57199         (rpl_lseek): Add workaround code also for Unix platforms.
57200         Needed for BeOS.
57201         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
57202         * doc/functions/lseek.texi: Document BeOS definiency.
57203
57204 2007-08-18  Bruno Haible  <bruno@clisp.org>
57205
57206         * modules/fstrcmp-tests: New file.
57207         * tests/test-fstrcmp.c: New file.
57208
57209 2007-08-18  Bruno Haible  <bruno@clisp.org>
57210
57211         * modules/fstrcmp: New file, from GNU gettext with modifications.
57212         * lib/fstrcmp.h: New file, from GNU gettext.
57213         * lib/fstrcmp.c: New file, from GNU gettext.
57214         * MODULES.html.sh (String handling): Add fstrcmp.
57215
57216 2007-08-18  Bruno Haible  <bruno@clisp.org>
57217
57218         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
57219         'bool'.
57220         (diag, compareseq): Remove const from the ctxt argument.
57221         (USE_HEURISTIC): Undefine at the end.
57222
57223 2007-08-18  Jim Meyering  <jim@meyering.net>
57224
57225         New file: lib/idcache.h
57226         * NEWS: Mention the addition.
57227         * modules/idcache (Files): Add lib/idcache.h
57228         * lib/idcache.c: Include "idcache.h".
57229         Don't include <sys/types.h>.
57230         Add a FIXME comment.
57231         Move file-scoped "static" declarations to the top.
57232         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
57233
57234 2007-08-17  Bruno Haible  <bruno@clisp.org>
57235         and Paul Eggert  <eggert@cs.ucla.edu>
57236
57237         * MODULES.html.sh: Add diffseq.
57238         * modules/diffseq: New file.
57239         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
57240         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
57241
57242 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
57243
57244         Import changes from coreutils for bootstrap script.
57245
57246         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
57247
57248         * build-aux/bootstrap (slurp): Work even in environments where
57249         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
57250         current code does not slurp files whose names start with ".", and
57251         this looks like it might be a troublesome area.
57252
57253         2007-07-11  Jim Meyering  <jim@meyering.net>
57254
57255         If there's a GPL vN copyright comment, require that N == 3.
57256
57257         2007-07-08  Jim Meyering  <jim@meyering.net>
57258
57259         Run the coreutils-specific code only if tests/Makefile.am.in exists.
57260         * build-aux/bootstrap (mam_template): Move definition out of loop.
57261
57262         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
57263
57264         * build-aux/bootstrap (symlink_to_dir): Rename function from
57265         symlink_to_gnulib.  Add a directory parameter.  Update all
57266         callers.
57267         (cp_mark_as_generated): Also check for -- and link to -- files in
57268         gl/.
57269
57270         2007-07-08  Jim Meyering  <jim@meyering.net>
57271
57272         Adapt to deeper hierarchy in gnulib.
57273         * build-aux/bootstrap (symlink_to_dir): If the destination
57274         directory doesn't exist, create it. This is required at least for
57275         "lib/uniwidth/cjk.h".
57276
57277         2007-05-15  Jim Meyering  <jim@meyering.net>
57278
57279         * build-aux/bootstrap: Now that generated Makefile.am files
57280         are no longer under version control, they must be created at
57281         bootstrap time.
57282
57283 2007-08-14  Ben Pfaff  <blp@gnu.org>
57284
57285         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
57286
57287 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
57288
57289         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
57290         given the changes below.
57291         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
57292         even on hosts that have padding bits beyond the supported 64.
57293
57294 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
57295
57296         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
57297         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
57298         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
57299         depends on it.
57300         (xstrtol_error): Remove.
57301         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
57302         but with a different signature.
57303         (ATTRIBUTE_NORETURN, __attribute__): New macros.
57304         * lib/xstrtol-error.c: Include exitfail.h.
57305         (xstrtol_fatal): New function, with a different signature from the
57306         old xstrtol_error, so that the caller need not worry about passing
57307         in an exit status, or about storage management of the option argument.
57308         (xstrtol_error): Now a static function.  Redo signature to
57309         implement xstrtol_fatal.  Output the correct number of hyphens in
57310         front of the option so that the caller need not worry about
57311         storage management.
57312         (N_): New macro.
57313         (_): Remove; not used now.
57314         * modules/xstrtol: Depend on getopt.
57315         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
57316         of old STRTOL_FATAL_ERROR macro.
57317         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
57318         of test program.
57319         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
57320         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
57321
57322 2007-08-08  Eric Blake  <ebb9@byu.net>
57323
57324         * lib/xstrtol-error.c: Add missing include.
57325
57326         Move xstrtol messages into gnulib domain, when --pobase is used.
57327         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
57328         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
57329         * modules/xstrtol (Files): Distribute new file.
57330         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
57331         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
57332         * tests/test-xstrtol.c: ...into new file.
57333         * tests/test-xstrtoul.c: Also test xstrtoul.
57334         * tests/test-xstrtoimax.c: Also test xstrtoimax.
57335         * tests/test-xstrtoumax.c: Also test xstrtoumax.
57336         * tests/test-xstrtol.sh: Drive the tests.
57337         * tests/test-xstrtoimax.sh: Likewise.
57338         * tests/test-xstrtoumax.sh: Likewise.
57339         * modules/xstrtol-tests: New module.
57340         * modules/xstrtoimax-tests: Likewise.
57341         * modules/xstrtoumax-tests: Likewise.
57342
57343 2007-08-08  Jim Meyering  <jim@meyering.net>
57344
57345         New function: mfile_name_concat.
57346         * lib/filenamecat.c (mfile_name_concat): New function, just like
57347         file_name_concat, but return NULL upon failure rather than exiting
57348         with a diagnostic.
57349         * lib/filenamecat.h: Declare it.
57350
57351 2007-08-07  Bruno Haible  <bruno@clisp.org>
57352
57353         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
57354         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
57355         warning from gcc.
57356         Reported by Eric Blake.
57357
57358 2007-08-07  Simon Josefsson  <simon@josefsson.org>
57359
57360         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
57361         * modules/crypto/arcfour (License): Likewise.
57362         * modules/crypto/des-tests (License): Likewise.
57363         * modules/crypto/gc-arctwo-tests (License): Likewise.
57364         * modules/crypto/gc-des-tests (License): Likewise.
57365         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
57366         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
57367         * modules/crypto/gc-md2-tests (License): Likewise.
57368         * modules/crypto/gc-md4-tests (License): Likewise.
57369         * modules/crypto/gc-md5-tests (License): Likewise.
57370         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
57371         * modules/crypto/gc-rijndael-tests (License): Likewise.
57372         * modules/crypto/gc-sha1-tests (License): Likewise.
57373         * modules/crypto/gc-tests (License): Likewise.
57374         * modules/crypto/hmac-md5 (License): Likewise.
57375         * modules/crypto/hmac-sha1 (License): Likewise.
57376         * modules/crypto/md2-tests (License): Likewise.
57377         * modules/crypto/md4-tests (License): Likewise.
57378         * modules/crypto/md5 (License): Likewise.
57379         * modules/crypto/rijndael (License): Likewise.
57380         * modules/crypto/sha1 (License): Likewise.
57381         * modules/memxor (License): Likewise.
57382
57383 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
57384         and Bruno Haible  <bruno@clisp.org>
57385
57386         * NEWS: Describe interface changes to human, xstrtol.
57387         * lib/human.h: Include <xstrtol.h>.
57388         (human_options): Return enum strtol_error, not int.  Remove
57389         bool arg; take int * instead.
57390         * lib/human.c: Don't include "gettext.h".
57391         (_): Remove; no longer used.
57392         Don't include <xstrtol.h>, since human.h does it.
57393         (human_options): Adjust to abovementioned interface changes.
57394         Do not report error to stderr; that's now the caller's
57395         responsibility.
57396         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
57397         interface change.
57398         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
57399         Str, Argument_type_string.  All uses changed.  Put " argument"
57400         in diagnostics to make them clearer.  Change wording of suffix
57401         message for clarity.
57402         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
57403         Argument_type_string.
57404         (STRTOL_FATAL_WARN): Remove; no longer used.
57405         * modules/human (Depends-on): Remove gettext-h.
57406
57407 2007-08-06  Simon Josefsson  <simon@josefsson.org>
57408
57409         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
57410
57411 2007-07-31  Bruno Haible  <bruno@clisp.org>
57412
57413         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
57414         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
57415         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
57416
57417 2007-07-31  Bruno Haible  <bruno@clisp.org>
57418
57419         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
57420         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
57421
57422 2007-07-30  Bruno Haible  <bruno@clisp.org>
57423
57424         * modules/base64 (License): Use the synonymous term "LGPLv2+".
57425         * modules/c-ctype (License): Likewise.
57426         * modules/c-strcase (License): Likewise.
57427         * modules/check-version (License): Likewise.
57428         * modules/iconv (License): Likewise.
57429         * modules/iconv_open (License): Likewise.
57430         * modules/read-file (License): Likewise.
57431         * modules/striconv (License): Likewise.
57432         * modules/strverscmp (License): Likewise.
57433         * modules/vasprintf (License): Likewise.
57434         * modules/crypto/des (License): Likewise.
57435         * modules/crypto/gc (License): Likewise.
57436         * modules/crypto/gc-arcfour (License): Likewise.
57437         * modules/crypto/gc-arctwo (License): Likewise.
57438         * modules/crypto/gc-des (License): Likewise.
57439         * modules/crypto/gc-hmac-md5 (License): Likewise.
57440         * modules/crypto/gc-hmac-sha1 (License): Likewise.
57441         * modules/crypto/gc-md2 (License): Likewise.
57442         * modules/crypto/gc-md4 (License): Likewise.
57443         * modules/crypto/gc-md5 (License): Likewise.
57444         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
57445         * modules/crypto/gc-random (License): Likewise.
57446         * modules/crypto/gc-rijndael (License): Likewise.
57447         * modules/crypto/gc-sha1 (License): Likewise.
57448         * modules/crypto/md2 (License): Likewise.
57449         * modules/crypto/md4 (License): Likewise.
57450
57451 2007-07-30  Jim Meyering  <jim@meyering.net>
57452
57453         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
57454         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
57455         it has valid stat data.  This bug would cause du not to count the
57456         sizes of inaccessible directories.
57457         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
57458         in <http://bugzilla.redhat.com/250077>.
57459
57460 2007-07-25  Peter O'Gorman  <peter@pogma.com>
57461             Bruno Haible  <bruno@clisp.org>
57462
57463         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
57464         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
57465         #include_next, gives a diagnostic about it, but reports no error in
57466         the exit code.
57467         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
57468
57469 2007-07-24  Ben Pfaff  <blp@gnu.org>
57470
57471         Improve name: "count-one-bits" is better than "popcount".
57472         * MODULES.html.sh: Update name.
57473         * lib/popcount.h: Renamed lib/count-one-bits.h.
57474         (popcount): Renamed count_one_bits.
57475         (popcountl): Renamed count_one_bits_l.
57476         (popcountll): Renamed count_one_bits_ll.
57477         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
57478         * modules/popcount: Renamed module/count-one-bits.
57479         * modules/popcount-tests: Renamed module/count-one-bits-tests.
57480         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
57481
57482 2007-07-23  Ben Pfaff  <blp@gnu.org>
57483
57484         * lib/popcount.h (popcount32): Reduce size of constants, to allow
57485         better code generation, and add U to large constants to avoid
57486         warnings, in non-GCC case.
57487         Suggested by Bruno Haible.
57488
57489 2007-07-23  Ben Pfaff  <blp@gnu.org>
57490
57491         * lib/popcount.h: Use verify_true instead of if...abort.
57492         * modules/popcount: Depend on verify module.
57493         Suggested by Jim Meyering.
57494
57495 2007-07-23  Bruno Haible  <bruno@clisp.org>
57496
57497         * gnulib-tool (func_import): Create a .cvsignore file also when the
57498         directory is not yet in CVS but the toplevel directory is. When
57499         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
57500         Reported by Karl Berry.
57501
57502 2007-07-22  Ben Pfaff  <blp@gnu.org>
57503
57504         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
57505         case.
57506         Suggested by Eric Blake.
57507
57508 2007-07-22  Ben Pfaff  <blp@gnu.org>
57509
57510         New module: popcount.
57511         * MODULES.html.sh: Add popcount.
57512         * modules/popcount: New file.
57513         * modules/popcount-tests: New file.
57514         * tests/test-popcount.c: New file.
57515         * lib/popcount.h: New file.
57516         * m4/popcount.m4: New file.
57517
57518 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
57519
57520         * build-aux/announce-gen: Update to GPLv3.
57521
57522         * build-aux/config.guess: Update from config.
57523
57524 2007-07-21  Bruno Haible  <bruno@clisp.org>
57525
57526         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
57527         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
57528
57529 2007-07-20  Jim Meyering  <jim@meyering.net>
57530
57531         * check-module: Diagnose a self-dependency.
57532
57533 2007-07-19  Bruno Haible  <bruno@clisp.org>
57534
57535         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
57536         empty.
57537         Reported by Eric Blake.
57538
57539 2007-07-18  Bruno Haible  <bruno@clisp.org>
57540
57541         * gnulib-tool: New options --po-base, --po-domain.
57542         (func_usage): Document them.
57543         (pobase, po_domain): New variables.
57544         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
57545         DEFAULT_TEXT_DOMAIN.
57546         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
57547         (func_import): Consider pobase and po_domain. Create a po/ directory.
57548         (func_create_testdir): Set pobase and po_domain to empty.
57549         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
57550         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
57551
57552 2007-07-18  Bruno Haible  <bruno@clisp.org>
57553
57554         * gnulib-tool (func_get_automake_snippet): Synthesize also an
57555         EXTRA_DIST augmentation for files in build-aux/.
57556
57557 2007-07-16  Bruno Haible  <bruno@clisp.org>
57558
57559         * modules/lseek (License): Use the synonymous term "LGPLv2+".
57560         * modules/getdelim (License): Likewise.
57561
57562 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57563
57564         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
57565         * modules/d-type (License): Likewise.
57566         * modules/extensions (License): Likewise.
57567         * modules/fnmatch (License): Likewise.
57568         * modules/fseeko (License): Likewise.
57569         * modules/getaddrinfo (License): Likewise.
57570         * modules/getline (License): Likewise.
57571         * modules/getlogin_r (License): Likewise.
57572         * modules/getpass (License): Likewise.
57573         * modules/gettimeofday (License): Likewise.
57574         * modules/glob (License): Likewise.
57575         * modules/inet_ntop (License): Likewise.
57576         * modules/malloc (License): Likewise.
57577         * modules/malloca (License): Likewise.
57578         * modules/memmem (License): Likewise.
57579         * modules/mempcpy (License): Likewise.
57580         * modules/memset (License): Likewise.
57581         * modules/minmax (License): Likewise.
57582         * modules/mktime (License): Likewise.
57583         * modules/netinet_in (License): Likewise.
57584         * modules/pathmax (License): Likewise.
57585         * modules/poll (License): Likewise.
57586         * modules/regex (License): Likewise.
57587         * modules/snprintf (License): Likewise.
57588         * modules/stdbool (License): Likewise.
57589         * modules/stdint (License): Likewise.
57590         * modules/stdio (License): Likewise.
57591         * modules/strcase (License): Likewise.
57592         * modules/strcasestr (License): Likewise.
57593         * modules/strdup (License): Likewise.
57594         * modules/string (License): Likewise.
57595         * modules/strndup (License): Likewise.
57596         * modules/strnlen (License): Likewise.
57597         * modules/strpbrk (License): Likewise.
57598         * modules/strptime (License): Likewise.
57599         * modules/strsep (License): Likewise.
57600         * modules/sys_select (License): Likewise.
57601         * modules/sys_socket (License): Likewise.
57602         * modules/sys_stat (License): Likewise.
57603         * modules/sys_time (License): Likewise.
57604         * modules/time (License): Likewise.
57605         * modules/time_r (License): Likewise.
57606         * modules/timegm (License): Likewise.
57607         * modules/unistd (License): Likewise.
57608         * modules/vsnprintf (License): Likewise.
57609         * modules/wctype (License): Likewise.
57610
57611 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57612
57613         * modules/argz (License): LGPLv2+.
57614
57615 2007-07-15  Karl Berry  <karl@gnu.org>
57616
57617         * doc/gnulib.texi: revise node structure per new fdl.texi.
57618
57619 2007-07-14  Bruno Haible  <bruno@clisp.org>
57620
57621         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
57622         the output file.
57623         * lib/uniname/uninames.h: Regenerated.
57624
57625 2007-07-14  Karl Berry  <karl@gnu.org>
57626
57627         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
57628         omitting sectioning and index commands.
57629
57630 2007-07-13  Bruno Haible  <bruno@clisp.org>
57631
57632         New gnulib-tool option --more-symlinks.
57633         * gnulib-tool (func_usage): Document --more-symlinks.
57634         (do_copyrights): New variable.
57635         Recognize option --more-symlinks.
57636         (func_import): Don't add a copyright notice transform to
57637         sed_transform_lib_file if do_copyrights is empty.
57638
57639 2007-07-13  Bruno Haible  <bruno@clisp.org>
57640
57641         * lib/vasnprintf.c (decimal_point_char): Define also if
57642         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
57643         && !NEED_PRINTF_DIRECTIVE_A.
57644         Reported by Clemens Koller <clemens.koller@anagramm.de> via
57645         Gary V. Vaughan <gary@gnu.org>.
57646
57647 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
57648
57649         * lib/inttypes_.h: Undo previous change, since it was fixed
57650         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
57651
57652 2007-07-13  Bruno Haible  <bruno@clisp.org>
57653
57654         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
57655         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
57656
57657 2007-07-13  Jim Meyering  <jim@meyering.net>
57658
57659         df: Don't fail for Tru64's "file-on-file mount".
57660         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
57661         so we fall through and use statfs instead.  Details here:
57662         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
57663         Reported by Albert Chin.
57664
57665 2007-07-13  Bruno Haible  <bruno@clisp.org>
57666
57667         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
57668         * modules/configmake (License): Likewise.
57669         * modules/gettext (License): Likewise.
57670         * modules/gettext-h (License): Likewise.
57671         * modules/include_next (License): Likewise.
57672         * modules/link-warning (License): Likewise.
57673         * modules/localcharset (License): Likewise.
57674         * modules/localename (License): Likewise.
57675         * modules/lock (License): Likewise.
57676         * modules/relocatable-lib-lgpl (License): Likewise.
57677         * modules/size_max (License): Likewise.
57678         * modules/vasnprintf (License): Likewise.
57679         * modules/wchar (License): Likewise.
57680         * modules/xsize (License): Likewise.
57681
57682 2007-07-13  Bruno Haible  <bruno@clisp.org>
57683
57684         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
57685         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
57686
57687 2007-07-12  Bruno Haible  <bruno@clisp.org>
57688
57689         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
57690         in the modules files.
57691
57692 2007-07-11  Karl Berry  <karl@gnu.org>
57693
57694         * MODULES.html.sh (func_module): use
57695          sed -e '\|^'"${includefile}"'$|d'
57696          instead of /.../d, to avoid errors on $includefile's containing /.
57697
57698 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
57699
57700         * gnulib-tool (func_import): Avoid duplication of --avoid
57701         statements
57702         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
57703         names to `_' in variable names.
57704
57705 2007-07-10  Eric Blake  <ebb9@byu.net>
57706
57707         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
57708         * NEWS: Document this change.
57709
57710 2007-07-08  Bruno Haible  <bruno@clisp.org>
57711
57712         Update to Unicode 5.0.
57713         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
57714         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
57715         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
57716         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
57717         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
57718         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
57719         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
57720         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
57721         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
57722         U+10A3F, U+1D242..U+1D244.
57723         (nonspacing_table_ind): Update.
57724         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
57725         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
57726
57727 2007-07-08  Bruno Haible  <bruno@clisp.org>
57728
57729         Update to Unicode 5.0.
57730         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
57731         code transform. Extend the name index field of unicode_name_to_code and
57732         unicode_code_to_name from 16 to 24 bits.
57733         * lib/uniname/uniname.c (unicode_character_name,
57734         unicode_name_character): Add the range 0x12xxx to the code transform.
57735         * lib/uniname/uninames.h: Regenerated.
57736         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
57737
57738 2007-07-07  Bruno Haible  <bruno@clisp.org>
57739
57740         * modules/wcwidth-tests: New file.
57741         * tests/test-wcwidth.c: New file.
57742
57743         Work around MacOS X wcwidth() bug.
57744         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
57745         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
57746         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
57747         original wcwidth in non-UTF-8 locales.
57748         * modules/wcwidth (Depends-on): Add localcharset, streq,
57749         uniwidth/width.
57750         * doc/functions/wcwidth.texi: Update.
57751
57752 2007-07-07  Bruno Haible  <bruno@clisp.org>
57753
57754         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
57755         (wcwidth): New declaration.
57756         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
57757         macros.
57758         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
57759         here. Prepare for creating <wchar.h> unconditionally.
57760         * modules/wchar (Depends-on): Add link-warning.
57761         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
57762         REPLACE_WCWIDTH, and GL_LINK_WARNING.
57763         * lib/wcwidth.h: Remove file.
57764         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
57765         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
57766         * modules/wcwidth (Files): Remove lib/wcwidth.h.
57767         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
57768         (Include): Replace wcwidth.h with <wchar.h>.
57769         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
57770         * lib/mbchar.h: Don't include wcwidth.h.
57771         * lib/mbswidth.c: Likewise.
57772         * NEWS: Mention the change.
57773
57774 2007-07-07  Bruno Haible  <bruno@clisp.org>
57775
57776         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
57777         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
57778         definition with an external declaration.
57779         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
57780         defined as a function. Remove AC_C_INLINE requirement.
57781         * modules/wcwidth (Files): Add lib/wcwidth.c.
57782         (Makefile.am): Remove redundant statement.
57783
57784 2007-07-07  Bruno Haible  <bruno@clisp.org>
57785
57786         * MODULES.html.sh (Unicode string functions): Add the new modules.
57787
57788         * tests/uniwidth/test-u32-strwidth.c: New file.
57789         * modules/uniwidth/u32-strwidth-tests: New file.
57790
57791         * lib/uniwidth/u32-strwidth.c: New file.
57792         * modules/uniwidth/u32-strwidth: New file.
57793
57794         * tests/uniwidth/test-u16-strwidth.c: New file.
57795         * modules/uniwidth/u16-strwidth-tests: New file.
57796
57797         * lib/uniwidth/u16-strwidth.c: New file.
57798         * modules/uniwidth/u16-strwidth: New file.
57799
57800         * tests/uniwidth/test-u8-strwidth.c: New file.
57801         * modules/uniwidth/u8-strwidth-tests: New file.
57802
57803         * lib/uniwidth/u8-strwidth.c: New file.
57804         * modules/uniwidth/u8-strwidth: New file.
57805
57806         * tests/uniwidth/test-u32-width.c: New file.
57807         * modules/uniwidth/u32-width-tests: New file.
57808
57809         * lib/uniwidth/u32-width.c: New file.
57810         * modules/uniwidth/u32-width: New file.
57811
57812         * tests/uniwidth/test-u16-width.c: New file.
57813         * modules/uniwidth/u16-width-tests: New file.
57814
57815         * lib/uniwidth/u16-width.c: New file.
57816         * modules/uniwidth/u16-width: New file.
57817
57818         * tests/uniwidth/test-u8-width.c: New file.
57819         * modules/uniwidth/u8-width-tests: New file.
57820
57821         * lib/uniwidth/u8-width.c: New file.
57822         * modules/uniwidth/u8-width: New file.
57823
57824         * tests/uniwidth/test-uc_width.c: New file.
57825         * modules/uniwidth/width-tests: New file.
57826
57827         * lib/uniwidth/width.c: New file, from GNU libiconv.
57828         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
57829         * modules/uniwidth/width: New file.
57830
57831         * lib/uniwidth.h: New file, from GNU libiconv.
57832         * modules/uniwidth/base: New file.
57833
57834 2007-07-07  Bruno Haible  <bruno@clisp.org>
57835
57836         * lib/uniname.h: New file, from GNU gettext.
57837         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
57838         * lib/uniname/uninames.h: New file, from GNU gettext.
57839         * lib/uniname/uniname.c: New file, from GNU gettext.
57840         * tests/uniname/test-uninames.sh: New file.
57841         * tests/uniname/test-uninames.c: New file, from GNU gettext.
57842         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
57843         * modules/uniname/base: New file.
57844         * modules/uniname/uniname: New file.
57845         * modules/uniname/uniname-tests: New file.
57846         * MODULES.html.sh (Unicode string functions): Add the new modules.
57847
57848 2007-07-06  Bruno Haible  <bruno@clisp.org>
57849
57850         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
57851
57852 2007-07-06  Bruno Haible  <bruno@clisp.org>
57853
57854         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
57855         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
57856         includes <cygwin/sys_time.h> which includes <sys/select.h> which
57857         include <sys/time.h>.
57858         Reported by Eric Blake.
57859
57860 2007-07-06  Eric Blake  <ebb9@byu.net>
57861
57862         Fix testing canonicalize on cygwin.
57863         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
57864         Revert patch from 2007-06-19.
57865         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
57866         canonicalize module is also in use.
57867         * tests/test-canonicalize.c: New file.
57868         * tests/test-canonicalize.sh: Likewise.
57869         * modules/canonicalize-tests: Likewise.
57870
57871 2007-07-06  Jim Meyering  <jim@meyering.net>
57872
57873         * lib/getugroups.c (getugroups): Detect getgrent failure.
57874         Adjust comment to reflect reality: this function may return -1.
57875
57876 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
57877
57878         * build-aux/bootstrap (TP_URL,get_translations): Update to use
57879         the new TP address.
57880         (usage): Fix typo
57881         (gnulib_mk): New variable.
57882
57883 2007-07-05  Jim Meyering  <jim@meyering.net>
57884
57885         Don't let endgrent clobber errno, no matter how improbable.
57886         * lib/getugroups.c (getugroups): Save and restore errno around
57887         endgrent call.
57888
57889         Close the group DB even when failing with 2^31 or more members.
57890         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
57891
57892 2007-07-04  Jim Meyering  <jim@meyering.net>
57893
57894         * lib/getugroups.h: New file.
57895         * lib/getugroups.c: Include "getugroups.h".
57896         Remove uses of "register" keyword.
57897         Move local variable, "cp", down into scope where used.
57898         Give "username" parameter the "const" attribute.
57899         * modules/getugroups (Files): Add lib/getugroups.h
57900
57901 2007-07-04  Karl Berry  <karl@gnu.org>
57902
57903         * MODULES.html.sh (func_all_modules): Complete rename of
57904         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
57905
57906 2007-07-02  Bruno Haible  <bruno@clisp.org>
57907
57908         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
57909         mode, when inttypes.h comes from gnulib.
57910         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
57911
57912 2007-07-02  Simon Josefsson  <simon@josefsson.org>
57913
57914         * NEWS: Mention lgpl module name change.
57915
57916         * modules/lgpl-2.1: Renamed from lgpl.
57917
57918         * NEWS: Mention gpl module name change.
57919
57920         * modules/gpl-3.0: New file, based on gpl-2.0.
57921
57922         * modules/gpl-2.0: Renamed from gpl.
57923
57924         * modules/gpl: Fix filename, doc/gpl.texi is now found at
57925         doc/gpl-2.0.texi.
57926
57927 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
57928
57929         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
57930         #define __STDC_LIMIT_MACROS temporarily while including
57931         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
57932         Problem reported by Joel E. Denny in
57933         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
57934
57935 2007-07-01  Bruno Haible  <bruno@clisp.org>
57936
57937         * lib/unistdio.h: New file.
57938         * lib/unistdio/u-asnprintf.h: New file.
57939         * lib/unistdio/u-asprintf.h: New file.
57940         * lib/unistdio/u-printf-args.c: New file.
57941         * lib/unistdio/u-printf-args.h: New file.
57942         * lib/unistdio/u-printf-parse.h: New file.
57943         * lib/unistdio/u-snprintf.h: New file.
57944         * lib/unistdio/u-sprintf.h: New file.
57945         * lib/unistdio/u-vasprintf.h: New file.
57946         * lib/unistdio/u-vsnprintf.h: New file.
57947         * lib/unistdio/u-vsprintf.h: New file.
57948         * lib/unistdio/ulc-asnprintf.c: New file.
57949         * lib/unistdio/ulc-asprintf.c: New file.
57950         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
57951         * lib/unistdio/ulc-printf-parse.c: New file.
57952         * lib/unistdio/ulc-snprintf.c: New file.
57953         * lib/unistdio/ulc-sprintf.c: New file.
57954         * lib/unistdio/ulc-vasnprintf.c: New file.
57955         * lib/unistdio/ulc-vasprintf.c: New file.
57956         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
57957         * lib/unistdio/ulc-vsnprintf.c: New file.
57958         * lib/unistdio/ulc-vsprintf.c: New file.
57959         * lib/unistdio/u8-asnprintf.c: New file.
57960         * lib/unistdio/u8-asprintf.c: New file.
57961         * lib/unistdio/u8-printf-parse.c: New file.
57962         * lib/unistdio/u8-snprintf.c: New file.
57963         * lib/unistdio/u8-sprintf.c: New file.
57964         * lib/unistdio/u8-vasnprintf.c: New file.
57965         * lib/unistdio/u8-vasprintf.c: New file.
57966         * lib/unistdio/u8-vsnprintf.c: New file.
57967         * lib/unistdio/u8-vsprintf.c: New file.
57968         * lib/unistdio/u8-u8-asnprintf.c: New file.
57969         * lib/unistdio/u8-u8-asprintf.c: New file.
57970         * lib/unistdio/u8-u8-snprintf.c: New file.
57971         * lib/unistdio/u8-u8-sprintf.c: New file.
57972         * lib/unistdio/u8-u8-vasnprintf.c: New file.
57973         * lib/unistdio/u8-u8-vasprintf.c: New file.
57974         * lib/unistdio/u8-u8-vsnprintf.c: New file.
57975         * lib/unistdio/u8-u8-vsprintf.c: New file.
57976         * lib/unistdio/u16-asnprintf.c: New file.
57977         * lib/unistdio/u16-asprintf.c: New file.
57978         * lib/unistdio/u16-printf-parse.c: New file.
57979         * lib/unistdio/u16-snprintf.c: New file.
57980         * lib/unistdio/u16-sprintf.c: New file.
57981         * lib/unistdio/u16-vasnprintf.c: New file.
57982         * lib/unistdio/u16-vasprintf.c: New file.
57983         * lib/unistdio/u16-vsnprintf.c: New file.
57984         * lib/unistdio/u16-vsprintf.c: New file.
57985         * lib/unistdio/u16-u16-asnprintf.c: New file.
57986         * lib/unistdio/u16-u16-asprintf.c: New file.
57987         * lib/unistdio/u16-u16-snprintf.c: New file.
57988         * lib/unistdio/u16-u16-sprintf.c: New file.
57989         * lib/unistdio/u16-u16-vasnprintf.c: New file.
57990         * lib/unistdio/u16-u16-vasprintf.c: New file.
57991         * lib/unistdio/u16-u16-vsnprintf.c: New file.
57992         * lib/unistdio/u16-u16-vsprintf.c: New file.
57993         * lib/unistdio/u32-asnprintf.c: New file.
57994         * lib/unistdio/u32-asprintf.c: New file.
57995         * lib/unistdio/u32-printf-parse.c: New file.
57996         * lib/unistdio/u32-snprintf.c: New file.
57997         * lib/unistdio/u32-sprintf.c: New file.
57998         * lib/unistdio/u32-vasnprintf.c: New file.
57999         * lib/unistdio/u32-vasprintf.c: New file.
58000         * lib/unistdio/u32-vsnprintf.c: New file.
58001         * lib/unistdio/u32-vsprintf.c: New file.
58002         * lib/unistdio/u32-u32-asnprintf.c: New file.
58003         * lib/unistdio/u32-u32-asprintf.c: New file.
58004         * lib/unistdio/u32-u32-snprintf.c: New file.
58005         * lib/unistdio/u32-u32-sprintf.c: New file.
58006         * lib/unistdio/u32-u32-vasnprintf.c: New file.
58007         * lib/unistdio/u32-u32-vasprintf.c: New file.
58008         * lib/unistdio/u32-u32-vsnprintf.c: New file.
58009         * lib/unistdio/u32-u32-vsprintf.c: New file.
58010         * tests/unistdio/test-ulc-asnprintf1.c: New file.
58011         * tests/unistdio/test-ulc-asnprintf1.h: New file.
58012         * tests/unistdio/test-ulc-printf1.h: New file.
58013         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
58014         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
58015         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
58016         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
58017         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
58018         * tests/unistdio/test-ulc-vasprintf1.c: New file.
58019         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
58020         * tests/unistdio/test-ulc-vsprintf1.c: New file.
58021         * tests/unistdio/test-u8-asnprintf1.c: New file.
58022         * tests/unistdio/test-u8-asnprintf1.h: New file.
58023         * tests/unistdio/test-u8-printf1.h: New file.
58024         * tests/unistdio/test-u8-vasnprintf1.c: New file.
58025         * tests/unistdio/test-u8-vasnprintf2.c: New file.
58026         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
58027         * tests/unistdio/test-u8-vasnprintf3.c: New file.
58028         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
58029         * tests/unistdio/test-u8-vasprintf1.c: New file.
58030         * tests/unistdio/test-u8-vsnprintf1.c: New file.
58031         * tests/unistdio/test-u8-vsprintf1.c: New file.
58032         * tests/unistdio/test-u16-asnprintf1.c: New file.
58033         * tests/unistdio/test-u16-asnprintf1.h: New file.
58034         * tests/unistdio/test-u16-printf1.h: New file.
58035         * tests/unistdio/test-u16-vasnprintf1.c: New file.
58036         * tests/unistdio/test-u16-vasnprintf2.c: New file.
58037         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
58038         * tests/unistdio/test-u16-vasnprintf3.c: New file.
58039         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
58040         * tests/unistdio/test-u16-vasprintf1.c: New file.
58041         * tests/unistdio/test-u16-vsnprintf1.c: New file.
58042         * tests/unistdio/test-u16-vsprintf1.c: New file.
58043         * tests/unistdio/test-u32-asnprintf1.c: New file.
58044         * tests/unistdio/test-u32-asnprintf1.h: New file.
58045         * tests/unistdio/test-u32-printf1.h: New file.
58046         * tests/unistdio/test-u32-vasnprintf1.c: New file.
58047         * tests/unistdio/test-u32-vasnprintf2.c: New file.
58048         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
58049         * tests/unistdio/test-u32-vasnprintf3.c: New file.
58050         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
58051         * tests/unistdio/test-u32-vasprintf1.c: New file.
58052         * tests/unistdio/test-u32-vsnprintf1.c: New file.
58053         * tests/unistdio/test-u32-vsprintf1.c: New file.
58054         * modules/unistdio/base: New file.
58055         * modules/unistdio/u-printf-args: New file.
58056         * modules/unistdio/ulc-asnprintf: New file.
58057         * modules/unistdio/ulc-asprintf: New file.
58058         * modules/unistdio/ulc-fprintf: New file.
58059         * modules/unistdio/ulc-printf-parse: New file.
58060         * modules/unistdio/ulc-snprintf: New file.
58061         * modules/unistdio/ulc-sprintf: New file.
58062         * modules/unistdio/ulc-vasnprintf: New file.
58063         * modules/unistdio/ulc-vasprintf: New file.
58064         * modules/unistdio/ulc-vfprintf: New file.
58065         * modules/unistdio/ulc-vsnprintf: New file.
58066         * modules/unistdio/ulc-vsprintf: New file.
58067         * modules/unistdio/u8-asnprintf: New file.
58068         * modules/unistdio/u8-asprintf: New file.
58069         * modules/unistdio/u8-printf-parse: New file.
58070         * modules/unistdio/u8-snprintf: New file.
58071         * modules/unistdio/u8-sprintf: New file.
58072         * modules/unistdio/u8-vasnprintf: New file.
58073         * modules/unistdio/u8-vasprintf: New file.
58074         * modules/unistdio/u8-vsnprintf: New file.
58075         * modules/unistdio/u8-vsprintf: New file.
58076         * modules/unistdio/u8-u8-asnprintf: New file.
58077         * modules/unistdio/u8-u8-asprintf: New file.
58078         * modules/unistdio/u8-u8-snprintf: New file.
58079         * modules/unistdio/u8-u8-sprintf: New file.
58080         * modules/unistdio/u8-u8-vasnprintf: New file.
58081         * modules/unistdio/u8-u8-vasprintf: New file.
58082         * modules/unistdio/u8-u8-vsnprintf: New file.
58083         * modules/unistdio/u8-u8-vsprintf: New file.
58084         * modules/unistdio/u16-asnprintf: New file.
58085         * modules/unistdio/u16-asprintf: New file.
58086         * modules/unistdio/u16-printf-parse: New file.
58087         * modules/unistdio/u16-snprintf: New file.
58088         * modules/unistdio/u16-sprintf: New file.
58089         * modules/unistdio/u16-vasnprintf: New file.
58090         * modules/unistdio/u16-vasprintf: New file.
58091         * modules/unistdio/u16-vsnprintf: New file.
58092         * modules/unistdio/u16-vsprintf: New file.
58093         * modules/unistdio/u16-u16-asnprintf: New file.
58094         * modules/unistdio/u16-u16-asprintf: New file.
58095         * modules/unistdio/u16-u16-snprintf: New file.
58096         * modules/unistdio/u16-u16-sprintf: New file.
58097         * modules/unistdio/u16-u16-vasnprintf: New file.
58098         * modules/unistdio/u16-u16-vasprintf: New file.
58099         * modules/unistdio/u16-u16-vsnprintf: New file.
58100         * modules/unistdio/u16-u16-vsprintf: New file.
58101         * modules/unistdio/u32-asnprintf: New file.
58102         * modules/unistdio/u32-asprintf: New file.
58103         * modules/unistdio/u32-printf-parse: New file.
58104         * modules/unistdio/u32-snprintf: New file.
58105         * modules/unistdio/u32-sprintf: New file.
58106         * modules/unistdio/u32-vasnprintf: New file.
58107         * modules/unistdio/u32-vasprintf: New file.
58108         * modules/unistdio/u32-vsnprintf: New file.
58109         * modules/unistdio/u32-vsprintf: New file.
58110         * modules/unistdio/u32-u32-asnprintf: New file.
58111         * modules/unistdio/u32-u32-asprintf: New file.
58112         * modules/unistdio/u32-u32-snprintf: New file.
58113         * modules/unistdio/u32-u32-sprintf: New file.
58114         * modules/unistdio/u32-u32-vasnprintf: New file.
58115         * modules/unistdio/u32-u32-vasprintf: New file.
58116         * modules/unistdio/u32-u32-vsnprintf: New file.
58117         * modules/unistdio/u32-u32-vsprintf: New file.
58118         * modules/unistdio/ulc-asnprintf-tests: New file.
58119         * modules/unistdio/ulc-vasnprintf-tests: New file.
58120         * modules/unistdio/ulc-vasprintf-tests: New file.
58121         * modules/unistdio/ulc-vsnprintf-tests: New file.
58122         * modules/unistdio/ulc-vsprintf-tests: New file.
58123         * modules/unistdio/u8-asnprintf-tests: New file.
58124         * modules/unistdio/u8-vasnprintf-tests: New file.
58125         * modules/unistdio/u8-vasprintf-tests: New file.
58126         * modules/unistdio/u8-vsnprintf-tests: New file.
58127         * modules/unistdio/u8-vsprintf-tests: New file.
58128         * modules/unistdio/u16-asnprintf-tests: New file.
58129         * modules/unistdio/u16-vasnprintf-tests: New file.
58130         * modules/unistdio/u16-vasprintf-tests: New file.
58131         * modules/unistdio/u16-vsnprintf-tests: New file.
58132         * modules/unistdio/u16-vsprintf-tests: New file.
58133         * modules/unistdio/u32-asnprintf-tests: New file.
58134         * modules/unistdio/u32-vasnprintf-tests: New file.
58135         * modules/unistdio/u32-vasprintf-tests: New file.
58136         * modules/unistdio/u32-vsnprintf-tests: New file.
58137         * modules/unistdio/u32-vsprintf-tests: New file.
58138         * MODULES.html.sh (Unicode string functions): Add the new modules.
58139
58140 2007-07-01  Bruno Haible  <bruno@clisp.org>
58141
58142         * lib/sprintf.c (sprintf): Limit the available length estimation,
58143         to avoid address wraparound.
58144         * lib/vsprintf.c (vsprintf): Likewise.
58145         * modules/sprintf-posix (Dependencies): Add stdint.
58146         * modules/vsprintf-posix (Dependencies): Likewise.
58147
58148 2007-07-01  Bruno Haible  <bruno@clisp.org>
58149
58150         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
58151         Windows PATH as well. Conservative double-quoting. Comments.
58152
58153 2007-07-01  Bruno Haible  <bruno@clisp.org>
58154             Eric Blake  <ebb9@byu.net>
58155             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58156
58157         * gnulib-tool (self_abspathname): Fix algorithm to cope with
58158         empty components in $PATH, denoting '.'.
58159
58160 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58161
58162         * gnulib-tool: Fix indentation.
58163         (func_create_megatestdir): Likewise.
58164         Report by Bruno Haible.
58165
58166 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58167
58168         Sync from Automake.
58169         * build-aux/gnupload: Fix shell portability issues with for loops.
58170         Report by Karl Berry.
58171
58172 2007-06-29  Simon Josefsson  <simon@josefsson.org>
58173
58174         * build-aux/maint.mk (POURL): Use translationproject.org.
58175
58176 2007-06-27  Simon Josefsson  <simon@josefsson.org>
58177             Bruno Haible  <bruno@clisp.org>
58178
58179         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
58180         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
58181         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
58182         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
58183         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
58184
58185 2007-06-27  Bruno Haible  <bruno@clisp.org>
58186
58187         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
58188         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
58189
58190 2007-06-26  Karl Berry  <karl@gnu.org>
58191
58192         * MODULES.html.sh: remove xreadlink-with-size.
58193
58194 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
58195
58196         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
58197         method that I hope also handles the double-include problem noted
58198         by Bruno Haible in
58199         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
58200
58201 2007-06-23  Bruno Haible  <bruno@clisp.org>
58202
58203         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
58204         Don't let the 'mostlyclean' target fail if the last subdirectory could
58205         not be removed.
58206         Reported by Karl Berry.
58207
58208 2007-06-23  Bruno Haible  <bruno@clisp.org>
58209
58210         * gnulib-tool (echo): Add a speedier workaround for ksh.
58211         * tests/test-echo.sh: Likewise.
58212
58213 2007-06-23  Bruno Haible  <bruno@clisp.org>
58214
58215         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
58216         * tests/test-echo.sh: Likewise.
58217
58218 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58219
58220         * gnulib-tool (IFS): Initialize early, so we don't set it to
58221         empty later.
58222         (self_abspathname): Rewrite algorithm to set it, reindent.
58223         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
58224         (func_create_megatestdir): Merge some sed scripts.
58225
58226 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
58227
58228         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
58229         exposed by Sun Studio 11 cc on Solaris 8.
58230
58231 2007-06-22  Bruno Haible  <bruno@clisp.org>
58232
58233         * gnulib-tool (echo): Ensure the echo primitive does not interpret
58234         backslashes.
58235         * tests/test-echo.sh: New file.
58236
58237 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58238
58239         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
58240         simplify `sed_replace_build_aux' scripts, they are portable but
58241         echoing them with `echo' is not.
58242         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
58243
58244 2007-06-21  Karl Berry  <karl@gnu.org>
58245
58246         * config/srclist.txt: guess we can't handle the licenses via
58247         srclist at the moment.
58248
58249 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
58250
58251         * MODULES.html.sh: Add include_next.
58252         * modules/include_next: New file.
58253
58254 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
58255
58256         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
58257         INCLUDE_NEXT.
58258         (gl_CHECK_NEXT_HEADERS): New macro.
58259         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
58260         the obsolescent gl_ABSOLUTE_HEADER.
58261         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
58262         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
58263         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
58264         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
58265         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
58266         * m4/math_h.m4 (gl_MATH_H): Likewise.
58267         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
58268         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
58269         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
58270         * m4/stdint.m4 (gl_STDINT_H): Likewise.
58271         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
58272         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
58273         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
58274         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
58275         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
58276         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
58277         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
58278         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
58279         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
58280         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
58281         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
58282         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
58283         * m4/inttypes.m4 (gl_INTTYPES_H): Define
58284         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
58285         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
58286         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
58287         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
58288         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
58289         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
58290         * lib/float_.h: Likewise.
58291         * lib/inttypes_.h: Likewise.
58292         * lib/math_.h: Likewise.
58293         * lib/search_.h: Likewise.
58294         * lib/signal_.h: Likewise.
58295         * lib/stdint_.h: Likewise.
58296         * lib/stdio_.h: Likewise.
58297         * lib/stdlib_.h: Likewise.
58298         * lib/string_.h: Likewise.
58299         * lib/sys_stat_.h: Likewise.
58300         * lib/sys_time_.h: Likewise.
58301         * lib/time_.h: Likewise.
58302         * lib/unistd_.h: Likewise.
58303         * lib/wchar_.h: Likewise.
58304         * lib/wctype_.h: Likewise.
58305         * lib/dirent_.h: Likewise.
58306         * lib/iconv_.h: Likewise.
58307         * lib/locale_.h: Likewise.
58308         * lib/netinet_in_.h: Likewise.
58309         * lib/sys_select_.h: Likewise.
58310         * lib/sys_socket_.h: Likewise.
58311         * lib/sysexits_.h: Likewise.
58312         * modules/fcntl (Depends-on): Depend on include_next, not
58313         absolute_header.
58314         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
58315         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
58316         * modules/fchdir: Likewise.
58317         * modules/float: Likewise.
58318         * modules/iconv_open: Likewise.
58319         * modules/inttypes: Likewise.
58320         * modules/locale: Likewise.
58321         * modules/math: Likewise.
58322         * modules/netinet_in: Likewise.
58323         * modules/search: Likewise.
58324         * modules/signal: Likewise.
58325         * modules/stdint: Likewise.
58326         * modules/stdio: Likewise.
58327         * modules/stdlib: Likewise.
58328         * modules/string: Likewise.
58329         * modules/sys_select: Likewise.
58330         * modules/sys_socket: Likewise.
58331         * modules/sys_stat: Likewise.
58332         * modules/sys_time: Likewise.
58333         * modules/sysexits: Likewise.
58334         * modules/time: Likewise.
58335         * modules/unistd: Likewise.
58336         * modules/wchar: Likewise.
58337         * modules/wctype: Likewise.
58338         * modules/sys_stat: Change maintainer to "all".
58339         * modules/unistd: Likewise.
58340
58341 2007-06-20  Karl Berry  <karl@gnu.org>
58342
58343         * config/srclist.txt: track www changes in license files.
58344
58345 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
58346
58347         * build-aux/bootstrap: Remove stray dot.
58348         Make sure build_aux settings are honored when linking
58349         gnulib_extra_files.
58350
58351 2007-06-19  Eric Blake  <ebb9@byu.net>
58352
58353         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
58354         Allow compilation on cygwin.
58355
58356 2007-06-19  Jim Meyering  <jim@meyering.net>
58357
58358         xreadlink-with-size: Remove module.  No longer used.
58359         Ex-callers now use xreadlink or mreadlink-with-size.
58360         * modules/xreadlink-with-size: Remove module.
58361         * lib/xreadlink-with-size.c: Remove file.
58362         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
58363         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
58364         just before the function definition *is* accurate.
58365
58366         Eliminate one way canonicalize_filename_mode could exit.
58367         * lib/canonicalize.c (canonicalize_filename_mode):
58368         Use mreadlink_with_size, not xreadlink_with_size.
58369
58370 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
58371
58372         Detect porting problems to FreeBSD/arm, which has time_t wider than
58373         long int.  Original problem reported for GNU diff by Xin Li in
58374         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
58375         * modules/getdate (Depends-on): Add intprops, verify.
58376         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
58377         is an integer type no wider than long int.
58378
58379 2007-06-18  Jim Meyering  <jim@meyering.net>
58380
58381         New module: mreadlink-with-size.
58382         * MODULES.html.sh: Add mreadlink-with-size.
58383         * modules/mreadlink-with-size: New module
58384         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
58385         not xreadlink-with-size.
58386         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
58387
58388 2007-06-16  Bruno Haible  <bruno@clisp.org>
58389
58390         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
58391         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
58392         Reported by Gary V. Vaughan <gary@gnu.org>.
58393
58394 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
58395
58396         Revamp lchown so that it lives in unistd.h where it belongs.
58397         * lib/lchown.h: Remove.
58398         * lib/dirchownmod.c: Don't include lib/lchown.h.
58399         * lib/fchownat.c: Likewise.
58400         * lib/openat.c: Likewise.
58401         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
58402         does not follow symlinks.
58403         (EOPNOTSUPP): Define if not defined.
58404         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
58405         is defined to 0.
58406         (lchown): New decl.
58407         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
58408         Do not check for lchown decl.
58409         Set REPLACE_LCHOWN.
58410         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
58411         REPLACE_LCHOWN.
58412         * modules/chown: Make it clear it follows symlinks.
58413         * modules/lchown: Make it clear it doesn't follow symlinks.
58414         (Files): Remove lib/lchown.h
58415         (Depends-on): Add unistd.
58416         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
58417         (Include): Include <unistd.h>, not "lchown.h".
58418         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
58419         REPLACE_LCHOWN.
58420
58421 2007-06-15  Jim Meyering  <jim@meyering.net>
58422
58423         Change license (GPL to LGPL) of fsusage and dependents.
58424         * modules/fsusage (License): Change to LGPL.
58425         * modules/full-read (License): Likewise.
58426         * modules/full-write (License): Likewise.
58427         * modules/safe-read (License): Likewise.
58428         * modules/safe-write (License): Likewise.
58429
58430 2007-06-14  Ben Pfaff  <blp@gnu.org>
58431
58432         Missing part of allocsa -> malloca transition.
58433         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
58434         gl_MALLOCA.
58435
58436 2007-06-12  Bruno Haible  <bruno@clisp.org>
58437
58438         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
58439         to ia64, x86_64, i386.
58440         Reported by Eric Blake.
58441
58442 2007-06-12  Bruno Haible  <bruno@clisp.org>
58443
58444         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
58445         cross-compiling to x86_64.
58446
58447 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
58448
58449         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
58450         glitch reported by Ralf Wildenhues in
58451         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
58452
58453         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
58454         Vin Shelton.
58455
58456 2007-06-11  Bruno Haible  <bruno@clisp.org>
58457
58458         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
58459         replacement string.
58460         Reported by Eric Blake.
58461
58462 2007-06-10  Bruno Haible  <bruno@clisp.org>
58463
58464         Prepare vasnprintf code for use with Unicode strings.
58465         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
58466         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
58467         TYPE_U32_STRING.
58468         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
58469         a_u32_string variants.
58470         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
58471         * lib/printf-args.c: Don't include config.h and the specification
58472         header if PRINTF_FETCHARGS is already defined.
58473         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
58474         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
58475         TYPE_U16_STRING, TYPE_U32_STRING.
58476         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
58477         u16_directive, u16_directives, u32_directive, u32_directives): New
58478         types.
58479         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
58480         New declarations.
58481         * lib/printf-parse.c: Don't include config.h and the specification
58482         header if PRINTF_PARSE is already defined. Eliminate the set of
58483         parameters for WIDE_CHAR_VERSION; the user of this file must provide
58484         them now. Include c-ctype.h.
58485         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
58486         directive and CHAR_T_ONLY_ASCII.
58487         * lib/vasnprintf.c: Don't include config.h and the specification header
58488         if VASNPRINTF is already defined.
58489         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
58490         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
58491         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
58492         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
58493         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
58494         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
58495         code accordingly.
58496         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
58497         pad_ourselves also in this case, with the 'c' and 's' directives, and
58498         with a different notion of "width".
58499         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
58500
58501 2007-06-10  Bruno Haible  <bruno@clisp.org>
58502
58503         * modules/unistr/u32-mbsnlen: New file.
58504         * lib/unistr/u32-mbsnlen.c: New file.
58505
58506         * modules/unistr/u16-mbsnlen: New file.
58507         * lib/unistr/u16-mbsnlen.c: New file.
58508
58509         * modules/unistr/u8-mbsnlen: New file.
58510         * lib/unistr/u8-mbsnlen.c: New file.
58511
58512         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
58513         declarations.
58514
58515 2007-06-10  Bruno Haible  <bruno@clisp.org>
58516
58517         * lib/string_.h (mbsnlen): New declaration.
58518         * lib/mbsnlen.c: New file.
58519         * m4/mbsnlen.m4: New file.
58520         * modules/mbsnlen: New file.
58521         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
58522         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
58523         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
58524
58525 2007-06-10  Bruno Haible  <bruno@clisp.org>
58526
58527         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
58528
58529 2007-06-10  Bruno Haible  <bruno@clisp.org>
58530
58531         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
58532         * lib/mbuiter.h: Likewise.
58533
58534 2007-06-10  Bruno Haible  <bruno@clisp.org>
58535
58536         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
58537         declaration.
58538
58539 2007-06-10  Karl Berry  <karl@gnu.org>
58540
58541         * config/srclist.txt: remove gettext entries, Bruno prefers
58542         to update individually.
58543
58544 2007-06-10  Bruno Haible  <bruno@clisp.org>
58545
58546         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
58547         'maxlen'. Ensure only length + width bytes are allocated, not
58548         length + 1 + width.
58549
58550 2007-06-09  Bruno Haible  <bruno@clisp.org>
58551
58552         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
58553         (CHAR_T): Remove macro.
58554         (VASNPRINTF): Update.
58555
58556 2007-06-09  Bruno Haible  <bruno@clisp.org>
58557
58558         * MODULES.html.sh (Unicode string functions): Add the new modules.
58559
58560         * modules/uniconv/u32-conv-to-enc: New file.
58561         * lib/uniconv/u32-conv-to-enc.c: New file.
58562         * modules/uniconv/u32-conv-to-enc-tests: New file.
58563         * tests/uniconv/test-u32-conv-to-enc.c: New file.
58564
58565         * modules/uniconv/u16-conv-to-enc: New file.
58566         * lib/uniconv/u16-conv-to-enc.c: New file.
58567         * lib/uniconv/u-conv-to-enc.h: New file.
58568         * modules/uniconv/u16-conv-to-enc-tests: New file.
58569         * tests/uniconv/test-u16-conv-to-enc.c: New file.
58570
58571         * modules/uniconv/u8-conv-to-enc: New file.
58572         * lib/uniconv/u8-conv-to-enc.c: New file.
58573         * modules/uniconv/u8-conv-to-enc-tests: New file.
58574         * tests/uniconv/test-u8-conv-to-enc.c: New file.
58575
58576         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
58577         u32_conv_to_encoding): New declarations.
58578
58579 2007-06-09  Bruno Haible  <bruno@clisp.org>
58580
58581         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
58582
58583 2007-06-09  Bruno Haible  <bruno@clisp.org>
58584
58585         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
58586         * modules/malloca: Renamed from modules/allocsa, updated.
58587         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
58588         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
58589         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
58590         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
58591         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
58592         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
58593         * modules/xmalloca: Renamed from modules/xallocsa, updated.
58594         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
58595         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
58596         * modules/c-strcasestr (Depends-on): Update.
58597         * lib/c-strcasestr.c: Update.
58598         * modules/c-strstr (Depends-on): Update.
58599         * lib/c-strstr.c: Update.
58600         * modules/canonicalize-lgpl (Depends-on): Update.
58601         * lib/canonicalize-lgpl.c: Update.
58602         * modules/clean-temp (Depends-on): Update.
58603         * lib/clean-temp.c: Update.
58604         * modules/csharpcomp (Depends-on): Update.
58605         * lib/csharpcomp.c: Update.
58606         * modules/csharpexec (Depends-on): Update.
58607         * lib/csharpexec.c: Update.
58608         * modules/javacomp (Depends-on): Update.
58609         * lib/javacomp.c: Update.
58610         * modules/javaexec (Depends-on): Update.
58611         * lib/javaexec.c: Update.
58612         * modules/mbscasestr (Depends-on): Update.
58613         * lib/mbscasestr.c: Update.
58614         * modules/mbsstr (Depends-on): Update.
58615         * lib/mbsstr.c: Update.
58616         * modules/setenv (Depends-on): Update.
58617         * lib/setenv.c: Update.
58618         * modules/strcasestr (Depends-on): Update.
58619         * lib/strcasestr.c: Update.
58620         * modules/striconveha (Depends-on): Update.
58621         * lib/striconveha.c: Update.
58622         * modules/relocatable-prog-wrapper (Files): Update.
58623         * lib/relocwrapper.c: Update.
58624         * build-aux/install-reloc: Update.
58625         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
58626
58627 2007-06-08  Bruno Haible  <bruno@clisp.org>
58628
58629         Port to uClibc.
58630         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
58631         * lib/fpurge.c (fpurge): Likewise.
58632         * lib/freading.c (freading): Likewise.
58633         * lib/fseeko.c (rpl_fseeko): Likewise.
58634         * lib/fseterr.c (fseterr): Likewise.
58635         * lib/fwriting.c (fwriting): Likewise.
58636         * tests/test-fflush.c (main): Avoid a failure on uClibc.
58637
58638 2007-06-08  Bruno Haible  <bruno@clisp.org>
58639
58640         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
58641         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
58642         * modules/gettext (Files): Add m4/intlmacosx.m4.
58643
58644 2007-06-07  Bruno Haible  <bruno@clisp.org>
58645
58646         * modules/localename-tests: New file.
58647         * tests/test-localename.c: New file.
58648
58649         New module 'localename'.
58650         * lib/localename.h: New file.
58651         * lib/localename.c: New file, from GNU gettext.
58652         * m4/localename.m4: New file.
58653         * modules/localename: New file.
58654
58655 2007-06-07  Bruno Haible  <bruno@clisp.org>
58656
58657         Work around the lack of <wchar.h> on some builds of uClibc.
58658         * doc/headers/wchar.texi: Update.
58659         * lib/wchar_.h: Include <wchar.h> only if it exists.
58660         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
58661         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
58662         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
58663         doesn't exist.
58664         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
58665         * modules/mbfile (Depends-on): Add wchar.
58666         * modules/mbiter (Depends-on): Likewise.
58667         * modules/mbuiter (Depends-on): Likewise.
58668         Reported by Simon Josefsson.
58669
58670 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
58671
58672         Work around problem reported by Steven M. Schweda in
58673         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
58674         Tru64 5.1B with the Compaq compiler environment installed declares
58675         an 'isblank' function but does not define it in the C library.
58676         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
58677         * lib/regex_internal.h (isblank): Likewise.
58678         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
58679         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
58680
58681 2007-06-05  Bruno Haible  <bruno@clisp.org>
58682
58683         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
58684         ia64.
58685         * modules/printf-safe: New file.
58686         * modules/fprintf-posix (Depends-on): Add printf-safe.
58687         * modules/printf-posix (Depends-on): Likewise.
58688         * modules/snprintf-posix (Depends-on): Likewise.
58689         * modules/sprintf-posix (Depends-on): Likewise.
58690         * modules/vasnprintf-posix (Depends-on): Likewise.
58691         * modules/vasprintf-posix (Depends-on): Likewise.
58692         * modules/vfprintf-posix (Depends-on): Likewise.
58693         * modules/vprintf-posix (Depends-on): Likewise.
58694         * modules/vsnprintf-posix (Depends-on): Likewise.
58695         * modules/vsprintf-posix (Depends-on): Likewise.
58696         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
58697         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
58698         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
58699         "no" on i386, x86_64, ia64.
58700         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
58701         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
58702         on i386, x86_64, ia64.
58703         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
58704         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
58705         on i386, x86_64, ia64.
58706         * tests/test-vasnprintf-posix.c: Include float.h.
58707         (LDBL80_WORDS): New macro.
58708         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
58709         on i386, x86_64, ia64.
58710         * tests/test-vasprintf-posix.c: Include float.h.
58711         (LDBL80_WORDS): New macro.
58712         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
58713         on i386, x86_64, ia64.
58714         * tests/test-snprintf-posix.c: Include float.h.
58715         * tests/test-sprintf-posix.c: Likewise.
58716         * tests/test-vsnprintf-posix.c: Likewise.
58717         * tests/test-vsprintf-posix.c: Likewise.
58718
58719 2007-06-05  Bruno Haible  <bruno@clisp.org>
58720
58721         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
58722         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
58723         non-IEEE numbers on i386, x86_64, ia64.
58724         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
58725         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
58726         * tests/test-isnanl.h: Include float.h.
58727         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
58728
58729 2007-06-05  Bruno Haible  <bruno@clisp.org>
58730
58731         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
58732         also the %a / %A. Handle the %a / %A code before this extra handling.
58733
58734 2007-06-05  Bruno Haible  <bruno@clisp.org>
58735
58736         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
58737         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
58738
58739 2007-06-05  Bruno Haible  <bruno@clisp.org>
58740
58741         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
58742         typo in variable name.
58743
58744 2007-06-05  Eric Blake  <ebb9@byu.net>
58745
58746         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
58747         Reported by Simon Josefsson.
58748
58749 2007-06-04  Bruno Haible  <bruno@clisp.org>
58750
58751         Avoid test failures on some PowerPC platforms.
58752         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
58753         Define differently for PowerPC.
58754         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
58755         Reported by Gary V. Vaughan <gary@gnu.org>.
58756
58757 2007-06-02  Bruno Haible  <bruno@clisp.org>
58758
58759         Fix test-stdint failure on FreeBSD/ia64.
58760         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
58761         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
58762         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
58763         * doc/headers/stdint.texi: Update.
58764
58765 2007-06-01  Bruno Haible  <bruno@clisp.org>
58766
58767         * tests/test-binary-io.c (main): Pass a third argument to open().
58768         Reported by Gary V. Vaughan <gary@gnu.org>.
58769
58770 2007-06-01  Bruno Haible  <bruno@clisp.org>
58771
58772         * doc/functions/frexpl.texi: Update for mingw.
58773
58774 2007-06-01  Bruno Haible  <bruno@clisp.org>
58775
58776         * tests/test-lseek.c (main): Disable test of errno for invalid third
58777         argument.
58778         * doc/functions/lseek.texi: Update.
58779         Reported by Gary V. Vaughan <gary@gnu.org>.
58780
58781 2007-05-28  Bruno Haible  <bruno@clisp.org>
58782
58783         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
58784
58785 2007-05-31  Eric Blake  <ebb9@byu.net>
58786
58787         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
58788         cross compiling.
58789
58790 2007-05-30  Eric Blake  <ebb9@byu.net>
58791         and Bruno Haible  <bruno@clisp.org>
58792
58793         Work around mingw test failures exposed by m4-1.4.9b.
58794         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
58795         * tests/test-unistd.c: Disable uid_t and git_t tests for the
58796         moment.
58797
58798 2007-05-30  Bruno Haible  <bruno@clisp.org>
58799
58800         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
58801         assuming that they are closed. Needed on HP-UX 11.
58802
58803 2007-05-29  Bruno Haible  <bruno@clisp.org>
58804
58805         Fix a problem with #include_next.
58806         * lib/dirent_.h: Split the double-inclusion guard.
58807         * lib/fcntl_.h: Likewise.
58808         * lib/float_.h: Likewise.
58809         * lib/iconv_.h: Likewise.
58810         * lib/inttypes_.h: Likewise.
58811         * lib/locale_.h: Likewise.
58812         * lib/math_.h: Likewise.
58813         * lib/netinet_in_.h: Likewise.
58814         * lib/search_.h: Likewise.
58815         * lib/signal_.h: Likewise.
58816         * lib/stdint_.h: Likewise.
58817         * lib/stdio_.h: Likewise.
58818         * lib/stdlib_.h: Likewise.
58819         * lib/string_.h: Likewise.
58820         * lib/sys_select_.h: Likewise.
58821         * lib/sys_socket_.h: Likewise.
58822         * lib/sys_stat_.h: Likewise.
58823         * lib/sys_time_.h: Likewise.
58824         * lib/sysexits_.h: Likewise.
58825         * lib/time_.h: Likewise.
58826         * lib/unistd_.h: Likewise.
58827         * lib/wchar_.h: Likewise.
58828         * lib/wctype_.h: Likewise.
58829
58830 2007-05-29  Bruno Haible  <bruno@clisp.org>
58831
58832         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
58833         for the moment.
58834
58835 2007-05-29  Bruno Haible  <bruno@clisp.org>
58836
58837         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
58838         invocation.
58839         Reported by Eric Blake.
58840
58841 2007-05-29  Bruno Haible  <bruno@clisp.org>
58842
58843         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
58844         compiling case.
58845
58846 2007-05-29  Eric Blake  <ebb9@byu.net>
58847             Bruno Haible  <bruno@clisp.org>
58848
58849         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
58850         cross compiles.
58851
58852 2007-05-28  Eric Blake  <ebb9@byu.net>
58853
58854         * modules/closein-tests (test_closein_LDADD): Support test on
58855         cygwin with libtool.
58856
58857 2007-05-28  Bruno Haible  <bruno@clisp.org>
58858
58859         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
58860         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
58861         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
58862         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
58863         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
58864         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
58865         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
58866         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
58867         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
58868
58869 2007-05-28  Eric Blake  <ebb9@byu.net>
58870
58871         Unconditionally include <config.h> in unit tests.
58872         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
58873         * tests/test-allocsa.c, tests/test-arcfour.c,
58874         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
58875         tests/test-array_list.c, tests/test-array_oset.c,
58876         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
58877         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
58878         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
58879         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
58880         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
58881         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
58882         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
58883         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
58884         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
58885         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
58886         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
58887         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
58888         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
58889         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
58890         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
58891         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
58892         test-md5.c, test-memmem.c, test-printf-posix.c,
58893         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
58894         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
58895         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
58896         test-strcasestr.c, test-striconv.c, test-striconveh.c,
58897         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
58898         test-vasnprintf-posix2.c, test-vasnprintf.c,
58899         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
58900         test-vfprintf-posix.c, test-vprintf-posix.c,
58901         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
58902         test-xvasprintf.c: Likewise.
58903
58904 2007-05-28  Bruno Haible  <bruno@clisp.org>
58905
58906         * gnulib-tool (func_import): Remember the --with-tests command-line
58907         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
58908         Reported by Eric Blake.
58909
58910 2007-05-28  Bruno Haible  <bruno@clisp.org>
58911
58912         * modules/ftell-tests: New file.
58913         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
58914         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
58915
58916         * lib/ftell.c: New file.
58917         * modules/ftell: New file.
58918         * m4/ftell.m4: New file.
58919         * doc/functions/ftell.texi: Update.
58920         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
58921         REPLACE_FTELL.
58922         * lib/stdio_.h (rpl_ftell): New declaration.
58923         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
58924         REPLACE_FTELL.
58925
58926 2007-05-28  Eric Blake  <ebb9@byu.net>
58927
58928         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
58929
58930 2007-05-28  Bruno Haible  <bruno@clisp.org>
58931
58932         * modules/fseek-tests: New file.
58933         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
58934         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
58935
58936         * lib/fseek.c: New file.
58937         * modules/fseek: New file.
58938         * m4/fseek.m4: New file.
58939         * doc/functions/fseek.texi: Update.
58940         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
58941         REPLACE_FSEEK.
58942         * lib/stdio_.h (rpl_fseek): New declaration.
58943         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
58944         REPLACE_FSEEK.
58945
58946 2007-05-28  Bruno Haible  <bruno@clisp.org>
58947
58948         * lib/stdio_.h (fflush): More comments.
58949
58950 2007-05-28  Bruno Haible  <bruno@clisp.org>
58951
58952         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
58953         runtime test.
58954
58955 2007-05-28  Eric Blake  <ebb9@byu.net>
58956
58957         Improve lseek module.
58958         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
58959         * lib/unistd_.h (lseek): Scale back link warning message.
58960         * tests/test-lseek.c: Beef up test.
58961         * tests/test-lseek.sh: Exercise more facets of lseek.
58962         Reported by Bruno Haible.
58963
58964 2007-05-28  Bruno Haible  <bruno@clisp.org>
58965
58966         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
58967         to define.
58968
58969 2007-05-27  Bruno Haible  <bruno@clisp.org>
58970
58971         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
58972
58973 2007-05-27  Bruno Haible  <bruno@clisp.org>
58974
58975         * modules/openmp: New file.
58976         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
58977         Noah Misch.
58978
58979 2007-05-26  Bruno Haible  <bruno@clisp.org>
58980
58981         * modules/chdir-long (Depends-on): Add fchdir.
58982         * modules/chdir-safer (Depends-on): Likewise.
58983         * modules/fts (Depends-on): Likewise.
58984         * modules/fts-lgpl (Depends-on): Likewise.
58985         * modules/openat (Depends-on): Likewise.
58986         * modules/savewd (Depends-on): Likewise.
58987
58988 2007-05-24  Eric Blake  <ebb9@byu.net>
58989
58990         Fix lseek on mingw.
58991         * modules/lseek: New module.
58992         * m4/lseek.m4: New file.
58993         * lib/lseek.c: New file.
58994         * modules/lseek-tests: New file.
58995         * tests/test-lseek.c: New file.
58996         * tests/test-lseek.sh: New file.
58997         * MODULES.html.sh: Document lseek module.
58998         * modules/fflush (Depends-on): Add lseek, fseeko.
58999         * modules/fseeko (Depends-on): Likewise.
59000         * modules/ftello (Depends-on): Likewise.
59001         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
59002         broken.
59003         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
59004         broken.
59005         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
59006         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
59007         * lib/ftello.c (rpl_ftello): Likewise.
59008         * tests/test-fseeko.c (main): Test this.
59009         * tests/test-fseeko.sh: Likewise.
59010         * tests/test-ftello.c (main): Likewise.
59011         * tests/test-ftello.sh: Likewise.
59012         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
59013         implies replacing fseek.
59014         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
59015         HAVE_FTELLO.
59016         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
59017         * modules/unistd (Makefile.am): Likewise.
59018         * lib/unistd_.h (lseek): Declare a replacement.
59019         * doc/functions/lseek.texi (lseek): Document this fix.
59020         * doc/functions/fseek.texi (fseek): Likewise.
59021         * doc/functions/ftell.texi (ftell): Likewise.
59022
59023 2007-05-24  Bruno Haible  <bruno@clisp.org>
59024
59025         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
59026         in the printed representation of a NaN.
59027         * tests/test-vasprintf-posix.c (test_function): Likewise.
59028         * tests/test-snprintf-posix.h (test_function): Likewise.
59029         * tests/test-sprintf-posix.h (test_function): Likewise.
59030         Reported by Eric Blake.
59031
59032 2007-05-23  Eric Blake  <ebb9@byu.net>
59033
59034         Fix fseeko/ftello on cygwin 1.5.24.
59035         * doc/functions/fseeko.texi (fseeko): Document the fix.
59036         * doc/functions/ftello.texi (ftello): Document the fix.
59037         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
59038         * doc/functions/stdout.text (stdout): New file.
59039         * doc/functions/stderr.text (stderr): New file.
59040         * doc/gnulib.texi (Function Substitutes): Use new files.
59041         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
59042         prior to 1.7.0.
59043         * tests/test-ftello.c (main): Likewise for ftello.
59044         * tests/test-fseeko.sh: New file.
59045         * tests/test-ftello.sh: New file.
59046         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
59047         with seekable stdin.
59048         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
59049         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
59050         (gl_REPLACE_FSEEKO): New macro.
59051         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
59052         * modules/fseeko (Files): Distribute fseeko.c.
59053         * modules/ftello (Files): Distribute ftello.c.
59054         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
59055         mode.
59056         * lib/ftello.c (rpl_ftello): New file.
59057         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
59058         fseeko, ftello.
59059         (gl_STDIN_LARGE_OFFSET): New macro.
59060         * modules/stdio (Makefile.am): Perform the replacement.
59061         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
59062
59063 2007-05-23  Bruno Haible  <bruno@clisp.org>
59064
59065         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
59066         GNULIB_POSIXCHECK is defined.
59067
59068 2007-05-21  Bruno Haible  <bruno@clisp.org>
59069
59070         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
59071         Check also the output for NaN arguments. When cross-compiling, guess
59072         no on IRIX.
59073         * lib/vasnprintf.c: Update comments.
59074         * tests/test-vasnprintf-posix.c (strisnan): New function.
59075         (test_function): Use it.
59076         * tests/test-vasprintf-posix.c (strisnan): New function.
59077         (test_function): Use it.
59078         * tests/test-snprintf-posix.h (strisnan): New function.
59079         (test_function): Use it.
59080         * tests/test-sprintf-posix.h (strisnan): New function.
59081         (test_function): Use it.
59082         Reported by Eric Blake.
59083
59084 2007-05-20  Bruno Haible  <bruno@clisp.org>
59085
59086         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
59087         numbers that fails on BeOS.
59088         * doc/functions/frexpl.texi: Update.
59089
59090 2007-05-20  Jim Meyering  <jim@meyering.net>
59091
59092         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
59093         forced upon us by glibc-2.6.
59094
59095 2007-05-20  Bruno Haible  <bruno@clisp.org>
59096
59097         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
59098         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
59099         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
59100         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
59101         NEED_PRINTF_INFINITE.
59102         (is_infinitel): New function.
59103         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
59104         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
59105         gl_PREREQ_VASNPRINTF_INFINITE.
59106         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
59107         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59108         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
59109         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
59110         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
59111         gl_PREREQ_VASNPRINTF_INFINITE.
59112         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59113         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59114         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59115         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59116         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59117         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59118         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59119         * doc/functions/fprintf.texi: Update.
59120         * doc/functions/printf.texi: Update.
59121         * doc/functions/snprintf.texi: Update.
59122         * doc/functions/sprintf.texi: Update.
59123         * doc/functions/vfprintf.texi: Update.
59124         * doc/functions/vprintf.texi: Update.
59125         * doc/functions/vsnprintf.texi: Update.
59126         * doc/functions/vsprintf.texi: Update.
59127
59128 2007-05-20  Bruno Haible  <bruno@clisp.org>
59129
59130         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
59131         was not found in libc.
59132         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
59133
59134 2007-05-20  Bruno Haible  <bruno@clisp.org>
59135
59136         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
59137         printed as "-nan" instead of "nan".
59138         * tests/test-vasprintf-posix.c (test_function): Likewise.
59139         * tests/test-snprintf-posix.h (test_function): Likewise.
59140         * tests/test-sprintf-posix.h (test_function): Likewise.
59141         Needed for HP-UX 11.
59142
59143 2007-05-20  Jim Meyering  <jim@meyering.net>
59144
59145         Fix buggy test for the fchownat-deref bug.
59146         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
59147         symlink required for the run-test.  Without it, this test would
59148         always declare that fchownat doesn't work, and client code would
59149         unnecessarily use the replacement function with fixed libc.
59150         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
59151         Reported by Greg Schafer.
59152
59153 2007-05-19  Bruno Haible  <bruno@clisp.org>
59154
59155         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
59156         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
59157         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
59158         Needed for IRIX 6.5 and Solaris 2.5.1.
59159
59160 2007-05-19  Bruno Haible  <bruno@clisp.org>
59161
59162         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
59163         (test_function): Skip tests involving -0.0 on platforms where
59164         -0.0 = 0.0.
59165         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
59166         (test_function): Skip tests involving -0.0 on platforms where
59167         -0.0 = 0.0.
59168         * tests/test-snprintf-posix.h (have_minus_zero): New function.
59169         (test_function): Skip tests involving -0.0 on platforms where
59170         -0.0 = 0.0.
59171         * tests/test-sprintf-posix.h (have_minus_zero): New function.
59172         (test_function): Skip tests involving -0.0 on platforms where
59173         -0.0 = 0.0.
59174         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
59175         tests.
59176         * tests/test-printf-posix.h (test_function): Likewise.
59177         * tests/test-printf-posix.output: Remove all -0.0 related results.
59178         Needed for IRIX 6.5.
59179
59180 2007-05-19  Bruno Haible  <bruno@clisp.org>
59181
59182         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
59183         printed as "nan0x7fffffff" instead of "nan".
59184         * tests/test-vasprintf-posix.c (test_function): Likewise.
59185         * tests/test-snprintf-posix.h (test_function): Likewise.
59186         * tests/test-sprintf-posix.h (test_function): Likewise.
59187         * tests/test-fprintf-posix.h (NaN): Remove macro.
59188         (test_function): Remove all NaN related tests.
59189         * tests/test-printf-posix.h (NaN): Remove macro.
59190         (test_function): Remove all NaN related tests.
59191         * tests/test-printf-posix.output: Remove all NaN related results.
59192         Needed for IRIX 6.5.
59193
59194 2007-05-19  Bruno Haible  <bruno@clisp.org>
59195
59196         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
59197         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
59198
59199 2007-05-19  Bruno Haible  <bruno@clisp.org>
59200
59201         * lib/float_.h: New file.
59202         * m4/float_h.m4: New file.
59203         * modules/float: New file.
59204         * modules/isnanl (Dependencies): Add float.
59205         * modules/isnanl-nolibm (Dependencies): Likewise.
59206         * modules/mathl (Dependencies): Likewise.
59207         * modules/printf-frexpl (Dependencies): Likewise.
59208         * modules/signbit (Dependencies): Likewise.
59209         * modules/vasnprintf (Dependencies): Likewise.
59210         * doc/headers/float.texi: Update.
59211
59212 2007-05-19  Jim Meyering  <jim@meyering.net>
59213
59214         * lib/utimens.c (gl_futimens): Rename from futimens,
59215         now that glibc-2.6 declares futimens.
59216         * lib/utimens.h: Likewise.
59217
59218 2007-05-19  Bruno Haible  <bruno@clisp.org>
59219
59220         Avoid test failures on mingw.
59221         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
59222         * tests/test-printf-posix.sh: Likewise.
59223         * tests/test-vfprintf-posix.sh: Likewise.
59224         * tests/test-vprintf-posix.sh: Likewise.
59225
59226 2007-05-19  Bruno Haible  <bruno@clisp.org>
59227
59228         Fix *printf result for NaN, Inf, -0.0 on mingw.
59229         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
59230         * lib/vasnprintf.c: Include math.h and isnan.h.
59231         (is_infinite_or_zero): New function.
59232         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
59233         values in the %f, %F, %e, %E, %g, %G directives.
59234         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
59235         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59236         gl_PRINTF_INFINITE and test its result. Invoke
59237         gl_PREREQ_VASNPRINTF_INFINITE.
59238         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59239         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59240         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59241         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59242         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59243         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59244         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59245         * doc/functions/fprintf.texi: Update.
59246         * doc/functions/printf.texi: Update.
59247         * doc/functions/snprintf.texi: Update.
59248         * doc/functions/sprintf.texi: Update.
59249         * doc/functions/vfprintf.texi: Update.
59250         * doc/functions/vprintf.texi: Update.
59251         * doc/functions/vsnprintf.texi: Update.
59252         * doc/functions/vsprintf.texi: Update.
59253
59254 2007-05-19  Bruno Haible  <bruno@clisp.org>
59255
59256         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
59257         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
59258         Instead of multiplying with 10^k, set extra_zeroes to k.
59259         (scale10_round_long_double): Remove function.
59260
59261 2007-05-18  Bruno Haible  <bruno@clisp.org>
59262
59263         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
59264         introduced on 2007-05-06.
59265
59266 2007-05-18  Bruno Haible  <bruno@clisp.org>
59267
59268         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
59269         %g directives.
59270         * tests/test-vasprintf-posix.c (test_function): Likewise.
59271         * tests/test-snprintf-posix.h (test_function): Likewise.
59272         * tests/test-sprintf-posix.h (test_function): Likewise.
59273
59274 2007-05-18  Bruno Haible  <bruno@clisp.org>
59275
59276         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
59277         (strmatch): New function.
59278         (test_function): Test the %f directive on numbers of various exponents.
59279         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
59280         (strmatch): New function.
59281         (test_function): Test the %f directive on numbers of various exponents.
59282         * tests/test-snprintf-posix.h (strmatch): New function.
59283         (test_function): Test the %f directive on numbers of various exponents.
59284         * tests/test-sprintf-posix.h (strmatch): New function.
59285         (test_function): Test the %f directive on numbers of various exponents.
59286         * tests/test-snprintf-posix.c (SIZEOF): New macro.
59287         * tests/test-sprintf-posix.c (SIZEOF): New macro.
59288         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
59289         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
59290
59291 2007-05-18  Bruno Haible  <bruno@clisp.org>
59292
59293         Add support for 'long double' number output.
59294         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
59295         * lib/vasnprintf.c: Include math.h and float+.h.
59296         (mp_limb_t): New type.
59297         (GMP_LIMB_BITS): New macro.
59298         (mp_twolimb_t): New type.
59299         (GMP_TWOLIMB_BITS): New macro.
59300         (mpn_t): New type.
59301         (multiply, divide, convert_to_decimal, decode_long_double,
59302         scale10_round_long_double, scale10_round_decimal_long_double,
59303         floorlog10l): New functions.
59304         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
59305         for the %f, %F, %e, %E, %g, %G directives.
59306         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
59307         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59308         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
59309         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
59310         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59311         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59312         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59313         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59314         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59315         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59316         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59317         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
59318         * modules/snprintf-posix (Depends-on): Likewise.
59319         * modules/sprintf-posix (Depends-on): Likewise.
59320         * modules/vasnprintf-posix (Depends-on): Likewise.
59321         * modules/vasprintf-posix (Depends-on): Likewise.
59322         * modules/vfprintf-posix (Depends-on): Likewise.
59323         * modules/vsnprintf-posix (Depends-on): Likewise.
59324         * modules/vsprintf-posix (Depends-on): Likewise.
59325         * modules/vasnprintf (Files): Add lib/float+.h.
59326         * doc/functions/fprintf.texi: Update.
59327         * doc/functions/printf.texi: Update.
59328         * doc/functions/snprintf.texi: Update.
59329         * doc/functions/sprintf.texi: Update.
59330         * doc/functions/vfprintf.texi: Update.
59331         * doc/functions/vprintf.texi: Update.
59332         * doc/functions/vsnprintf.texi: Update.
59333         * doc/functions/vsprintf.texi: Update.
59334
59335 2007-05-18  Bruno Haible  <bruno@clisp.org>
59336
59337         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
59338
59339 2007-05-18  Bruno Haible  <bruno@clisp.org>
59340
59341         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
59342         for printing 64-bit integers. Needed for mingw.
59343
59344 2007-05-18  Bruno Haible  <bruno@clisp.org>
59345
59346         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
59347         gl_FUNC_FREXPL_WORKS.
59348         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
59349
59350 2007-05-18  Bruno Haible  <bruno@clisp.org>
59351
59352         * modules/frexpl-nolibm-tests: New file.
59353
59354         * modules/frexpl-nolibm: New file.
59355         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
59356
59357 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
59358
59359         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
59360         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
59361         GCC 4.2, which otherwise issues a lot of warnings.
59362         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
59363         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
59364         Likewise.
59365         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
59366         * modules/iconv_open (iconv.h): Likewise.
59367         * modules/locale (locale.h): Likewise.
59368         * modules/netinet_in (netinet/in.h): Likewise.
59369         * modules/sys_select (sys_select.h): Likewise.
59370         * modules/sys_socket (sys/socket.h): Likewise.
59371         * modules/sys_stat (sys/stat.h): Likewise.
59372         * modules/sysexits (sysexits.h): Likewise.
59373         * modules/unistd (unistd.h): Likewise.
59374
59375 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59376
59377         * modules/closein-tests (Makefile.am): Distribute
59378         `test-closein.sh'.
59379
59380 2007-05-17  Bruno Haible  <bruno@clisp.org>
59381
59382         * tests/test-printf-posix.output: Renamed from
59383         tests/test-fprintf-posix.out.
59384         * modules/fprintf-posix-tests: Update.
59385         * modules/printf-posix-tests: Update.
59386         * modules/vfprintf-posix-tests: Update.
59387         * modules/vprintf-posix-tests: Update.
59388         * tests/test-fprintf-posix.sh: Update.
59389         * tests/test-printf-posix.sh: Update.
59390         * tests/test-vfprintf-posix.sh: Update.
59391         * tests/test-vprintf-posix.sh: Update.
59392         Reported by Ralf Wildenhues.
59393
59394 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
59395
59396         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
59397         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
59398         GCC 4.2, which otherwise issues a lot of warnings.
59399         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
59400         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
59401         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
59402         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
59403         it should no longer be needed.
59404         * lib/string_.h: Likewise.
59405         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
59406         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
59407         * modules/inttypes (inttypes.h): Likewise.
59408         * modules/math (math.h): Likewise.
59409         * modules/search (search.h): Likewise.
59410         * modules/signal (signal.h): Likewise.
59411         * modules/stdint (stdint.h): Likewise.
59412         * modules/stdio (stdio.h): Likewise.
59413         * modules/stdlib (stdlib.h): Likewise.
59414         * modules/string (string.h): Likewise.
59415         * modules/sys_time (sys/time.h): Likewise.
59416         * modules/time (time.h): Likewise.
59417         * modules/wchar (wchar.h): Likewise.
59418         * modules/wctype (wtype.h): Likewise.
59419
59420 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
59421
59422         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
59423
59424 2007-05-13  Bruno Haible  <bruno@clisp.org>
59425
59426         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
59427         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
59428         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
59429         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
59430         (gl_PREREQ_STRTOK_R): Don't require it here.
59431
59432 2007-05-13  Bruno Haible  <bruno@clisp.org>
59433
59434         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
59435         when used in C++ mode.
59436
59437 2007-05-12  Bruno Haible  <bruno@clisp.org>
59438
59439         * lib/linebuffer.h: Tweak doc.
59440         * lib/linebuffer.c: Likewise.
59441
59442 2007-05-12  James Youngman  <jay@gnu.org>
59443
59444         * lib/linebuffer.c (readlinebuffer_delim): New function,
59445         like readlinebuffer, but use a caller-specified delimiter.
59446         (readlinebuffer): Just call readlinebuffer_delim with '\n'
59447         as the delimiter.
59448         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
59449
59450 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
59451
59452         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
59453         * modules/openat (Files): Remove openat-die.c.
59454         (Depends-on): Add openat-die.
59455         * modules/openat-die: New module.
59456
59457 2007-05-06  Bruno Haible  <bruno@clisp.org>
59458
59459         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
59460         Update with info about Cygwin.
59461         * doc/functions/fprintf.texi: Update.
59462         * doc/functions/printf.texi: Update.
59463         * doc/functions/snprintf.texi: Update.
59464         * doc/functions/sprintf.texi: Update.
59465         * doc/functions/vfprintf.texi: Update.
59466         * doc/functions/vprintf.texi: Update.
59467         * doc/functions/vsnprintf.texi: Update.
59468         * doc/functions/vsprintf.texi: Update.
59469         Reported by Eric Blake.
59470
59471 2007-05-06  Bruno Haible  <bruno@clisp.org>
59472
59473         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
59474         padding ourselves for the floating-point directives.
59475         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
59476         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
59477         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
59478         gl_PRINTF_FLAG_ZERO and test its result. Invoke
59479         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
59480         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59481         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
59482         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59483         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59484         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59485         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59486         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59487         * tests/test-snprintf-posix.h (test_function): Also check the width
59488         and some flags in the %f directive.
59489         * tests/test-sprintf-posix.h (test_function): Likewise.
59490         * tests/test-vasnprintf-posix.c (test_function): Likewise.
59491         * tests/test-vasprintf-posix.c (test_function): Likewise.
59492         * doc/functions/fprintf.texi: Update.
59493         * doc/functions/printf.texi: Update.
59494         * doc/functions/snprintf.texi: Update.
59495         * doc/functions/sprintf.texi: Update.
59496         * doc/functions/vfprintf.texi: Update.
59497         * doc/functions/vprintf.texi: Update.
59498         * doc/functions/vsnprintf.texi: Update.
59499         * doc/functions/vsprintf.texi: Update.
59500
59501 2007-05-06  Bruno Haible  <bruno@clisp.org>
59502
59503         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
59504         pass the ' flag character to sprintf or snprintf.
59505         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
59506         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
59507         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
59508         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
59509         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
59510         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59511         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
59512         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59513         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59514         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59515         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59516         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59517         * tests/test-snprintf-posix.h (test_function): Also check the grouping
59518         flag.
59519         * tests/test-sprintf-posix.h (test_function): Likewise.
59520         * tests/test-vasnprintf-posix.c (test_function): Likewise.
59521         * tests/test-vasprintf-posix.c (test_function): Likewise.
59522         * doc/functions/fprintf.texi: Update.
59523         * doc/functions/printf.texi: Update.
59524         * doc/functions/snprintf.texi: Update.
59525         * doc/functions/sprintf.texi: Update.
59526         * doc/functions/vfprintf.texi: Update.
59527         * doc/functions/vprintf.texi: Update.
59528         * doc/functions/vsnprintf.texi: Update.
59529         * doc/functions/vsprintf.texi: Update.
59530
59531 2007-05-01  Bruno Haible  <bruno@clisp.org>
59532
59533         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
59534
59535 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
59536
59537         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
59538         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
59539
59540 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
59541
59542         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
59543         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
59544         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
59545
59546 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
59547
59548         * lib/argp-help.c (struct hol_entry): New member `ord'.
59549         (HOL_ENTRY_PTRCMP): Use ord for comparison
59550         (hol_sort): Initialize ord.
59551
59552 2007-05-01  Bruno Haible  <bruno@clisp.org>
59553
59554         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
59555         Reported by Eric Blake.
59556         * doc/gnulib.texi (Function Substitutes): Update.
59557
59558 2007-05-01  Bruno Haible  <bruno@clisp.org>
59559
59560         * doc/functions.texi: Remove file, now redundant through
59561         doc/functions/*.texi.
59562
59563 2007-05-01  Bruno Haible  <bruno@clisp.org>
59564
59565         * modules/argp (Depends-on): Add sleep.
59566
59567 2007-05-01  Bruno Haible  <bruno@clisp.org>
59568
59569         * modules/sleep-tests: New file.
59570         * tests/test-sleep.c: New file.
59571
59572         * modules/sleep: New file.
59573         * lib/sleep.c: New file.
59574         * m4/sleep.m4: New file.
59575         * lib/unistd_.h (sleep): New declaration.
59576         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
59577         HAVE_SLEEP.
59578         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
59579         * doc/functions/sleep.texi: Document the sleep module.
59580
59581 2007-05-01  Bruno Haible  <bruno@clisp.org>
59582
59583         * lib/sigprocmask.h: Remove file.
59584         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
59585         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
59586         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
59587         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
59588         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
59589         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
59590         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
59591         HAVE_SIGSET_T as a shell variable.
59592         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
59593         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
59594         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
59595         (Depends-on): Add signal. Remove verify.
59596         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
59597         (Include): Mention <signal.h> instead of sigprocmask.h.
59598         * NEWS: Mention the change.
59599         * lib/fatal-signal.c: Don't include sigprocmask.h.
59600
59601 2007-05-01  Bruno Haible  <bruno@clisp.org>
59602
59603         * modules/signal: New file.
59604         * lib/signal_.h: New file.
59605         * m4/signal_h.m4: New file.
59606
59607 2007-05-01  Bruno Haible  <bruno@clisp.org>
59608
59609         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
59610         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
59611         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
59612         HAVE_WCTYPE_CTMP_BUG into wctype.h.
59613
59614 2007-05-01  Bruno Haible  <bruno@clisp.org>
59615
59616         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
59617         configure time.
59618         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
59619         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
59620         * modules/sys_stat (Makefile.am): Substitute their values into
59621         sys/stat.h.
59622
59623 2007-05-01  Bruno Haible  <bruno@clisp.org>
59624
59625         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
59626         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
59627         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
59628
59629 2007-05-01  Bruno Haible  <bruno@clisp.org>
59630
59631         * doc/header/assert.texi: Undo last change: don't mention the gnulib
59632         'assert' module here.
59633
59634 2007-05-01  Bruno Haible  <bruno@clisp.org>
59635
59636         * doc/functions/*.texi: New files.
59637         * doc/functions/google-ranking.txt: New file.
59638         * doc/gnulib.texi (Function Substitutes): New chapter.
59639         (ctime, inet_ntoa): Remove sections.
59640         * doc/ctime.texi: Remove file.
59641         * doc/inet_ntoa.texi: Remove file.
59642         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
59643         dependencies.
59644         (%.info): New rule, specifying a --reference-limit.
59645
59646 2007-05-01  Bruno Haible  <bruno@clisp.org>
59647
59648         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
59649
59650 2007-05-01  Bruno Haible  <bruno@clisp.org>
59651
59652         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
59653         the portability of 'mkdir' to mingw systems.
59654
59655 2007-05-01  Bruno Haible  <bruno@clisp.org>
59656
59657         * doc/headers/google-ranking.txt: New file.
59658
59659 2007-04-30  Eric Blake  <ebb9@byu.net>
59660
59661         Prefer fseeko to fseek.
59662         * modules/getpass (Depends-on): Add fseeko.
59663         * lib/getpass.c (getpass): Use fseeko, not fseek.
59664
59665 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
59666
59667         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
59668         assumes the sorting is stable, while most qsort implementations
59669         are not.  Use argument addresses to ensure they never compare as
59670         equal.
59671
59672         * tests/test-argp-2.sh (usage-indent test): Fix output
59673         (func_compare): Restore diff options
59674         * tests/test-argp.c: Restore #include "progname.h"
59675
59676 2007-04-29  Bruno Haible  <bruno@clisp.org>
59677
59678         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
59679         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
59680         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
59681         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59682         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
59683         (configure.ac): Define CHECK_SNPRINTF_POSIX.
59684         (TESTS, check_PROGRAMS): Add test-snprintf.
59685         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
59686         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
59687         (TESTS, check_PROGRAMS): Add test-vsnprintf.
59688         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
59689         assertions that fail on HP-UX, OSF/1, or IRIX.
59690         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
59691
59692 2007-04-29  Bruno Haible  <bruno@clisp.org>
59693
59694         * MODULES.html.sh (posix_functions): Remove 'contents'.
59695
59696 2007-04-29  Karl Berry  <karl@gnu.org>
59697
59698         * config/srclist.txt (gendocs_template_min): new entry.
59699
59700 2007-04-29  Bruno Haible  <bruno@clisp.org>
59701
59702         Work around fpurge bug on BSD systems.
59703         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
59704         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
59705         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
59706         fpurge to rpl_fpurge if the system already has this function.
59707         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
59708         the case where the system already has this function. Correct invariants
59709         on BSD systems.
59710         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
59711         BSD systems.
59712
59713 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
59714
59715         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
59716         proposed by Sven Verdoolaege.
59717
59718         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
59719         options.
59720         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
59721         (usage and help tests): Update
59722
59723 2007-04-29  Bruno Haible  <bruno@clisp.org>
59724
59725         * tests/test-fflush.c (main): Use a file of size 17, not 10.
59726         Print more information in case of failure. Disable a test on BeOS.
59727
59728 2007-04-29  Bruno Haible  <bruno@clisp.org>
59729
59730         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
59731         This helps debugging on systems on which no gdb is available.
59732
59733 2007-04-29  Bruno Haible  <bruno@clisp.org>
59734
59735         * lib/freading.h: Improve comments.
59736         * lib/fwriting.h: Likewise.
59737         * tests/test-freading.c (main): Don't check freading immediately after
59738         repositioning. Needed for glibc.
59739
59740 2007-04-29  Bruno Haible  <bruno@clisp.org>
59741
59742         * lib/freading.c (freading): Trivial simplification.
59743
59744 2007-04-28  Bruno Haible  <bruno@clisp.org>
59745
59746         * tests/test-fwriting.c (main): Also test the interaction between
59747         fflush and fwriting.
59748         * modules/fwriting-tests (Depends-on): Add fflush.
59749
59750         * tests/test-freading.c (main): Also test the interaction between
59751         fflush and freading.
59752         * modules/freading-tests (Depends-on): Add fflush.
59753
59754 2007-04-28  Bruno Haible  <bruno@clisp.org>
59755
59756         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
59757         fseeko and ftello.
59758         Suggested by Eric Blake.
59759
59760 2007-04-28  Jim Meyering  <jim@meyering.net>
59761
59762         Avoid false-negative in gl_STDINT_H's C99 conformance test.
59763         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
59764         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
59765
59766 2007-04-27  Eric Blake  <ebb9@byu.net>
59767
59768         * doc/headers/assert.texi (assert.h): Document assert module use.
59769
59770 2007-04-27  Bruno Haible  <bruno@clisp.org>
59771
59772         * doc/headers/*.texi: New files.
59773         * doc/gnulib.texi (Header File Substitutes): New chapter.
59774         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
59775         dependencies.
59776         (standards.info ,standards.html, standards.dvi): Update dependencies.
59777         (mostlyclean, clean): New targets.
59778
59779 2007-04-27  Bruno Haible  <bruno@clisp.org>
59780
59781         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
59782         * modules/sysexits (Files, Makefile.am): Update.
59783
59784         * lib/sys_socket_.h: Renamed from lib/socket_.h.
59785         * modules/sys_socket (Files, Makefile.am): Update.
59786
59787         * lib/sys_stat_.h: Renamed from lib/stat_.h.
59788         * modules/sys_stat (Files, Makefile.am): Update.
59789
59790 2007-04-27  Eric Blake  <ebb9@byu.net>
59791
59792         * lib/freading.h: Improve comments.
59793         * lib/fwriting.h: Likewise.
59794         * lib/fflush.c: Likewise.
59795
59796         Fix closein for mingw.
59797         * modules/closein-tests: Add tests for closein.
59798         * tests/test-closein.c: New file.
59799         * tests/test-closein.sh: Likewise.
59800         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
59801         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
59802
59803 2007-04-27  Bruno Haible  <bruno@clisp.org>
59804
59805         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
59806         version is < 6.
59807         * lib/math_.h [__DECC]: Likewise.
59808         * lib/stdio_.h [__DECC]: Likewise.
59809         * lib/stdlib_.h [__DECC]: Likewise.
59810         * lib/string_.h [__DECC]: Likewise.
59811         * lib/time_.h [__DECC]: Likewise.
59812         * lib/wchar_.h [__DECC]: Likewise.
59813         * lib/wctype_.h [__DECC]: Likewise.
59814
59815 2007-04-27  Bruno Haible  <bruno@clisp.org>
59816
59817         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
59818
59819 2007-04-27  Bruno Haible  <bruno@clisp.org>
59820
59821         * lib/fflush.c: Add comments.
59822         * modules/fpurge-tests (Depends-on): Add fflush.
59823         * modules/freadable-tests (Depends-on): Likewise.
59824         * modules/fwritable-tests (Depends-on): Likewise.
59825
59826 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
59827
59828         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
59829         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
59830         Report by Bruno Haible <bruno@clisp.org>.
59831
59832 2007-04-26  Eric Blake  <ebb9@byu.net>
59833
59834         Fix fflush on mingw.
59835         * modules/fflush (Depends-on): Add freading.
59836         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
59837         but unread data.
59838
59839 2007-04-26  Eric Blake  <ebb9@byu.net>
59840         and Bruno Haible  <bruno@clisp.org>
59841
59842         Implement freading and fwriting.
59843         * lib/freading.c: New file.
59844         * lib/freading.h: Likewise.
59845         * m4/freading.m4: Likewise.
59846         * modules/freading: Likewise.
59847         * modules/freading-tests: Likewise.
59848         * tests/test-freading.c: Likewise.
59849         * lib/fwriting.c: New file.
59850         * lib/fwriting.h: Likewise.
59851         * m4/fwriting.m4: Likewise.
59852         * modules/fwriting: Likewise.
59853         * modules/fwriting-tests: Likewise.
59854         * tests/test-fwriting.c: Likewise.
59855         * MODULES.html.sh (File stream based Input/Output): Mention them.
59856
59857 2007-04-26  Bruno Haible  <bruno@clisp.org>
59858
59859         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
59860         'long' when we assume it.
59861         Suggested by Eric Blake.
59862
59863 2007-04-26  Bruno Haible  <bruno@clisp.org>
59864
59865         Ensure fseeko, ftello are declared on glibc systems.
59866         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
59867         * modules/fseeko (configure.ac-early): Likewise.
59868         * modules/ftello (configure.ac-early): Likewise.
59869         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
59870         AC_FUNC_FSEEKO for this.
59871         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
59872         (gl_CHECK_FSEEKO): Remove macro.
59873
59874 2007-04-26  Bruno Haible  <bruno@clisp.org>
59875
59876         * tests/test-fflush.c (main): Also check the ftell result after
59877         fflush and fseek/fseeko.
59878         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
59879         file descriptor position cache in the stream.
59880         * lib/fseeko.c (rpl_fseeko): Likewise.
59881
59882 2007-04-26  Bruno Haible  <bruno@clisp.org>
59883
59884         * modules/fflush-tests (Depends-on): Add fseeko.
59885
59886 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
59887             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59888
59889         * lib/argz_.h: ensure error_t definition is obtained in same
59890         mechanism system argz.h would have.
59891         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
59892         argz facilities are known bad.  Err on the side of caution if
59893         cross-compiling.
59894
59895 2007-04-25  Eric Blake  <ebb9@byu.net>
59896
59897         * lib/fpurge.c (includes): Use stdlib.h for free.
59898         * tests/test-fflush.c (main): Also test fflush-fseeko.
59899
59900 2007-04-25  Bruno Haible  <bruno@clisp.org>
59901
59902         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
59903         * lib/fseeko.c: New file.
59904         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
59905         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
59906         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
59907         gl_FUNC_FSEEKO.
59908         (gl_FUNC_FSEEKO): Invoke it.
59909         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
59910         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
59911         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
59912
59913 2007-04-25  Bruno Haible  <bruno@clisp.org>
59914
59915         * modules/fflush (Depends-on): Add ftello.
59916
59917 2007-04-25  Bruno Haible  <bruno@clisp.org>
59918
59919         * modules/ftello-tests: New file.
59920         * tests/test-ftello.c: New file.
59921
59922         * modules/ftello: New file.
59923         * m4/ftello.m4: New file.
59924         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
59925         HAVE_FTELLO.
59926         * lib/stdio_.h (ftello): New declaration.
59927         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
59928         HAVE_FTELLO.
59929
59930 2007-04-25  Bruno Haible  <bruno@clisp.org>
59931
59932         * modules/fseeko-tests: New file.
59933         * tests/test-fseeko.c: New file.
59934
59935         * modules/fseeko: New file.
59936         * m4/fseeko.m4: New file.
59937         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
59938         HAVE_FSEEKO.
59939         * lib/stdio_.h (fseeko): New declaration.
59940         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
59941         HAVE_FSEEKO.
59942
59943 2007-04-25  Bruno Haible  <bruno@clisp.org>
59944
59945         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
59946
59947 2007-04-25  Bruno Haible  <bruno@clisp.org>
59948
59949         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
59950         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
59951         * tests/test-unistd.c: Likewise.
59952         * tests/test-fcntl.c: Likewise.
59953
59954 2007-04-23  Eric Blake  <ebb9@byu.net>
59955
59956         * lib/fflush.c: Fix missing include.
59957         Reported by Bruno Haible.
59958
59959 2007-04-23  Bruno Haible  <bruno@clisp.org>
59960
59961         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
59962         Reported by Eric Blake.
59963
59964 2007-04-23  Bruno Haible  <bruno@clisp.org>
59965
59966         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
59967
59968 2007-04-23  Bruno Haible  <bruno@clisp.org>
59969
59970         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
59971
59972 2007-04-23  Bruno Haible  <bruno@clisp.org>
59973
59974         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
59975         Needed on HP-UX 11.
59976
59977 2007-04-16  Eric Blake  <ebb9@byu.net>
59978
59979         Make fflush rely on fpurge.
59980         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
59981         open coding all variants.
59982         * modules/fflush (Depends-on): Add fpurge and unistd.
59983         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
59984         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
59985
59986         Fix --with-tests compilation on cygwin.
59987         * modules/argmatch-tests (Makefile.am): List gnulib library first
59988         in LDADD.
59989         * modules/argp-tests (Makefile.am): Likewise.
59990         * modules/array-list-tests (Makefile.am): Likewise.
59991         * modules/array-oset-tests (Makefile.am): Likewise.
59992         * modules/avltree-list-tests (Makefile.am): Likewise.
59993         * modules/avltree-oset-tests (Makefile.am): Likewise.
59994         * modules/avltreehash-list-tests (Makefile.am): Likewise.
59995         * modules/carray-list-tests (Makefile.am): Likewise.
59996         * modules/dirname-tests (Makefile.am): Likewise.
59997         * modules/frexp-tests (Makefile.am): Likewise.
59998         * modules/isnanl-tests (Makefile.am): Likewise.
59999         * modules/linked-list-tests (Makefile.am): Likewise.
60000         * modules/linkedhash-list-tests (Makefile.am): Likewise.
60001         * modules/lock-tests (Makefile.am): Likewise.
60002         * modules/rbtree-list-tests (Makefile.am): Likewise.
60003         * modules/rbtree-oset-tests (Makefile.am): Likewise.
60004         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
60005         * modules/tls-tests (Makefile.am): Likewise.
60006         * modules/tsearch-tests (Makefile.am): Likewise.
60007         * modules/xvasprintf-tests (Makefile.am): Likewise.
60008
60009         Fix fpurge for cygwin.
60010         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
60011         value.
60012         * modules/fpurge-tests (Depends-on): Clean up trash.
60013
60014 2007-04-16  Simon Josefsson  <simon@josefsson.org>
60015
60016         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
60017
60018         * m4/autobuild.m4: Re-indent.
60019
60020 2007-04-13  Bruno Haible  <bruno@clisp.org>
60021
60022         * modules/fpurge-tests: New file.
60023         * tests/test-fpurge.c: New file.
60024
60025         * modules/fpurge: New file.
60026         * lib/fpurge.h: New file.
60027         * lib/fpurge.c: New file.
60028         * m4/fpurge.m4: New file.
60029
60030 2007-04-13  Bruno Haible  <bruno@clisp.org>
60031
60032         * modules/fbufmode-tests: New file.
60033         * tests/test-fbufmode.c: New file.
60034
60035         * modules/fbufmode: New file.
60036         * lib/fbufmode.h: New file.
60037         * lib/fbufmode.c: New file.
60038         * m4/fbufmode.m4: New file.
60039
60040 2007-04-13  Bruno Haible  <bruno@clisp.org>
60041
60042         * modules/fwritable-tests: New file.
60043         * tests/test-fwritable.c: New file.
60044
60045         * modules/fwritable: New file.
60046         * lib/fwritable.h: New file.
60047         * lib/fwritable.c: New file.
60048         * m4/fwritable.m4: New file.
60049
60050 2007-04-13  Bruno Haible  <bruno@clisp.org>
60051
60052         * modules/freadable-tests: New file.
60053         * tests/test-freadable.c: New file.
60054
60055         * modules/freadable: New file.
60056         * lib/freadable.h: New file.
60057         * lib/freadable.c: New file.
60058         * m4/freadable.m4: New file.
60059
60060 2007-04-13  Bruno Haible  <bruno@clisp.org>
60061
60062         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
60063         MOSTLYCLEANFILES.
60064
60065 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
60066
60067         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
60068         gzip bootstrap.conf to avoid dragging in i18n machinery.
60069         (gnulib_tool_option): Use it.
60070
60071 2007-04-13  Bruno Haible  <bruno@clisp.org>
60072
60073         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
60074         %F directives.
60075         * tests/test-vasprintf-posix.c (test_function): Likewise.
60076         * tests/test-snprintf-posix.h (test_function): Likewise.
60077         * tests/test-sprintf-posix.h (test_function): Likewise.
60078         * tests/test-fprintf-posix.h (test_function): Likewise.
60079         * tests/test-printf-posix.h (test_function): Likewise.
60080         * tests/test-fprintf-posix.out: Likewise.
60081
60082 2007-04-13  Bruno Haible  <bruno@clisp.org>
60083
60084         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
60085         * modules/tls-tests (configure.ac): Likewise.
60086         Reported by Arto C. Nirkko <anirkko@insel.ch>.
60087
60088 2007-04-13  Bruno Haible  <bruno@clisp.org>
60089
60090         * lib/tls.c (glthread_tls_get): Fix return type.
60091         Patch by Arto C. Nirkko <anirkko@insel.ch>.
60092
60093 2007-04-12  Eric Blake  <ebb9@byu.net>
60094
60095         * modules/gettime (Depends-on): Remove gettime.
60096         Reported by Dmitry V. Levin.
60097
60098 2007-04-12  Bruno Haible  <bruno@clisp.org>
60099
60100         * modules/fflush (Include): Mention <stdio.h>.
60101         * modules/strtoimax (Include): Mention <inttypes.h>.
60102         * modules/strtoumax (Include): Likewise.
60103
60104 2007-04-12  Eric Blake  <ebb9@byu.net>
60105
60106         * .cvsignore: New file.
60107         * .gitignore: Likewise.
60108
60109 2007-04-12  Bruno Haible  <bruno@clisp.org>
60110
60111         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
60112         not before, since $(LDADD) often contains libgnu.a.
60113         * modules/striconv-tests (test_striconv_LDADD): Likewise.
60114         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
60115         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
60116         Needed on Cygwin.
60117
60118 2007-04-12  Eric Blake  <ebb9@byu.net>
60119
60120         Work around glibc's failure to flush stdin on fclose.
60121         * lib/closein.c (close_stdin): Flush stdin before closing.
60122
60123         Work around glibc's failure to reset seekable stdin on exit.
60124         * modules/closein: New module.
60125         * lib/closein.c: New file.
60126         * lib/closein.h: Likewise.
60127         * m4/closein.m4: Likewise.
60128         * MODULES.html.sh (File stream based Input/Output): Document it.
60129
60130 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60131
60132         * gnulib-tool: Rename generated 'autobuild' script to
60133         'do-autobuild' in --create-megatestdir output.
60134
60135         * doc/gnulib.texi (Build robot for gnulib): Fix.
60136
60137 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60138
60139         * modules/sysexits (Depends-on): Add absolute-header.
60140
60141 2007-04-12  Eric Blake  <ebb9@byu.net>
60142
60143         No need to preserve errno on success.
60144         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
60145         Reported by Bruno Haible.
60146
60147 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60148
60149         * MODULES.html.sh (Support for maintaining and releasing
60150         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
60151
60152 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60153
60154         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
60155
60156 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60157
60158         * modules/autobuild: New module.
60159
60160         * m4/autobuild.m4: New file.
60161
60162 2007-04-11  Bruno Haible  <bruno@clisp.org>
60163
60164         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
60165         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
60166         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
60167         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
60168         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60169         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60170         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60171         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
60172         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60173         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60174         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
60175         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60176         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60177         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
60178         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60179         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60180         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
60181         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60182         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60183         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
60184         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60185         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60186         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
60187         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60188         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60189         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
60190         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60191         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60192         Reported by Eric Blake.
60193
60194 2007-04-11  Bruno Haible  <bruno@clisp.org>
60195
60196         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
60197
60198 2007-04-10  Bruno Haible  <bruno@clisp.org>
60199
60200         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
60201         for NaN and Infinity. Needed on FreeBSD 6.1.
60202         * tests/test-vasnprintf-posix.c (test_function): Undo last change
60203         regarding results for "%010a" of Infinity and NaN.
60204         * tests/test-vasprintf-posix.c (test_function): Likewise.
60205         * tests/test-snprintf-posix.h (test_function): Likewise.
60206         * tests/test-sprintf-posix.h (test_function): Likewise.
60207         * tests/test-fprintf-posix.h (test_function): Likewise.
60208         * tests/test-printf-posix.h (test_function): Likewise.
60209         * tests/test-fprintf-posix.out: Likewise.
60210
60211 2007-04-10  Bruno Haible  <bruno@clisp.org>
60212
60213         * modules/locale-tests: New file.
60214         * tests/test-locale.c: New file.
60215
60216         * modules/locale: New file.
60217         * lib/locale_.h: New file.
60218         * m4/locale_h.m4: New file.
60219
60220 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
60221             Bruno Haible  <bruno@clisp.org>
60222
60223         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
60224         be determined, test for availability of the copysignf, copysign,
60225         copysignl functions.
60226         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
60227         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
60228         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
60229
60230 2007-04-09  Eric Blake  <ebb9@byu.net>
60231
60232         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
60233         * modules/stdio (Makefile.am): Support fflush.
60234         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
60235         * modules/fflush: New file.
60236         * lib/fflush.c: Likewise.
60237         * m4/fflush.m4: Likewise.
60238         * modules/fflush-tests: New test.
60239         * tests/test-fflush.c: Likewise.
60240         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
60241
60242 2007-04-06  Bruno Haible  <bruno@clisp.org>
60243
60244         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
60245         (VASNPRINTF): Use signbit for faster determination whether to print a
60246         minus sign.
60247         * modules/vasnprintf (Files): Remove lib/float+.h.
60248         * modules/fprintf-posix (Depends-on): Add signbit.
60249         * modules/snprintf-posix (Depends-on): Likewise.
60250         * modules/sprintf-posix (Depends-on): Likewise.
60251         * modules/vasnprintf-posix (Depends-on): Likewise.
60252         * modules/vasprintf-posix (Depends-on): Likewise.
60253         * modules/vfprintf-posix (Depends-on): Likewise.
60254         * modules/vsnprintf-posix (Depends-on): Likewise.
60255         * modules/vsprintf-posix (Depends-on): Likewise.
60256
60257 2007-04-06  Bruno Haible  <bruno@clisp.org>
60258
60259         * tests/test-frexp.c (main): Test also the sign bit of zero results.
60260         * tests/test-frexpl.c (main): Likewise.
60261         * tests/test-ldexpl.c (main): Likewise.
60262         * modules/frexp-tests (Depends-on): Add signbit.
60263         * modules/frexpl-tests (Depdends-on): Likewise.
60264         * modules/ldexpl-tests (Depdends-on): Likewise.
60265
60266 2007-04-06  Bruno Haible  <bruno@clisp.org>
60267
60268         * modules/signbit-tests: New file.
60269         * tests/test-signbit.c: New file.
60270
60271         * modules/signbit: New file.
60272         * lib/signbitf.c: New file.
60273         * lib/signbitd.c: New file.
60274         * lib/signbitl.c: New file.
60275         * m4/signbit.m4: New file.
60276         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
60277         (signbit): New macro.
60278         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
60279         REPLACE_SIGNBIT.
60280         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
60281         REPLACE_FREXPL into math.h.
60282
60283 2007-04-06  Bruno Haible  <bruno@clisp.org>
60284
60285         * modules/isnanf-nolibm-tests: New file.
60286         * tests/test-isnanf.c: New file.
60287
60288         * modules/isnanf-nolibm: New file.
60289         * lib/isnanf.h: New file.
60290         * lib/isnanf.c: New file.
60291         * lib/isnan.c: Consider the USE_FLOAT macro.
60292         * m4/isnanf.m4: New file.
60293
60294 2007-04-06  Bruno Haible  <bruno@clisp.org>
60295
60296         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
60297         (Link): New section.
60298
60299         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
60300
60301 2007-04-06  Bruno Haible  <bruno@clisp.org>
60302
60303         Assume the 'long double' type.
60304         * m4/longdouble.m4: Remove file.
60305         * config/srclist.txt: Don't mention longdouble.m4.
60306         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
60307         * lib/float+.h: Likewise.
60308         * lib/frexp.c: Likewise.
60309         * lib/printf-args.h: Likewise.
60310         * lib/printf-args.c: Likewise.
60311         * lib/printf-frexp.c: Likewise.
60312         * lib/printf-parse.c: Likewise.
60313         * lib/vasnprintf.c: Likewise.
60314         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
60315         * m4/intl.m4: Likewise.
60316         * m4/isnanl.m4: Likewise.
60317         * m4/printf.m4: Likewise.
60318         * m4/printf-frexpl.m4: Likewise.
60319         * m4/vasnprintf.m4: Likewise.
60320         * modules/allocsa (Files): Remove m4/longdouble.m4.
60321         * modules/gettext (Files): Likewise.
60322         * modules/relocatable-prog-wrapper (Files): Likewise.
60323         * modules/vasnprintf (Files): Likewise.
60324         * modules/isnanl (Files): Likewise.
60325         (Include): Simplify.
60326         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
60327         (Include): Simplify.
60328         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
60329         (Include): Simplify.
60330         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
60331         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60332         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
60333         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60334         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
60335         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60336         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
60337         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60338         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
60339         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60340         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
60341         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60342         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
60343         * tests/test-isnanl.c: Likewise.
60344         * tests/test-snprintf-posix.h: Likewise.
60345         * tests/test-sprintf-posix.h: Likewise.
60346         * tests/test-vasnprintf-posix.c: Likewise.
60347         * tests/test-vasnprintf-posix2.c: Likewise.
60348         * tests/test-vasprintf-posix.c: Likewise.
60349
60350 2007-04-06  Bruno Haible  <bruno@clisp.org>
60351
60352         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
60353         * lib/math_.h [__DECC]: Include the overridden include file through
60354         #include_next, outside the double-inclusion guard.
60355         * lib/stdio_.h [__DECC]: Likewise.
60356         * lib/stdlib_.h [__DECC]: Likewise.
60357         * lib/string_.h [__DECC]: Likewise.
60358         * lib/time_.h [__DECC]: Likewise.
60359         * lib/wchar_.h [__DECC]: Likewise.
60360         * lib/wctype_.h [__DECC]: Likewise.
60361         * lib/inttypes_.h [__DECC]: Likewise.
60362         Reported by Albert Chin <china@thewrittenword.com> in
60363         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
60364
60365 2007-04-04  Eric Blake  <ebb9@byu.net>
60366
60367         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
60368         1.5.x.
60369
60370 2007-04-04  Bruno Haible  <bruno@clisp.org>
60371
60372         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
60373         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
60374
60375 2007-04-04  Bruno Haible  <bruno@clisp.org>
60376
60377         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
60378         results for "%010a" of Infinity and NaN.
60379         * tests/test-vasprintf-posix.c (test_function): Likewise.
60380         * tests/test-snprintf-posix.h (test_function): Likewise.
60381         * tests/test-sprintf-posix.h (test_function): Likewise.
60382         * tests/test-fprintf-posix.h (test_function): Remove these tests.
60383         * tests/test-printf-posix.h (test_function): Likewise.
60384         * tests/test-fprintf-posix.out: Update.
60385         Needed for FreeBSD 6.1.
60386
60387 2007-04-04  Bruno Haible  <bruno@clisp.org>
60388
60389         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
60390         directly used by the gnulib modules nor by gnulib-tool.
60391
60392 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
60393
60394         * DEPENDENCIES: Give overall description of version dependency
60395         desirability.  Use more-typical names for apps.
60396         Add shell, coreutils, diffutils, grep, tar, gzip.
60397
60398 2007-04-04  Simon Josefsson  <simon@josefsson.org>
60399
60400         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
60401
60402 2007-04-04  Karl Berry  <karl@gnu.org>
60403
60404         * MODULES.html.sh (func_module): missing '.
60405
60406 2007-04-03  Bruno Haible  <bruno@clisp.org>
60407
60408         * modules/argmatch-tests (Makefile.am): New variable
60409         test_argmatch_LDADD.
60410         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
60411         * modules/array-list-tests (Makefile.am): New variable
60412         test_array_list_LDADD.
60413         * modules/array-oset-tests (Makefile.am): New variable
60414         test_array_oset_LDADD.
60415         * modules/avltree-list-tests (Makefile.am): New variable
60416         test_avltree_list_LDADD.
60417         * modules/avltree-oset-tests (Makefile.am): New variable
60418         test_avltree_oset_LDADD.
60419         * modules/avltreehash-list-tests (Makefile.am): New variable
60420         test_avltreehash_list_LDADD.
60421         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
60422         test_canonicalize_lgpl_LDADD.
60423         * modules/carray-list-tests (Makefile.am): New variable
60424         test_carray_list_LDADD.
60425         * modules/dirname-tests (Makefile.am): New variable
60426         test_dirname_LDADD.
60427         * modules/linked-list-tests (Makefile.am): New variable
60428         test_linked_list_LDADD.
60429         * modules/linkedhash-list-tests (Makefile.am): New variable
60430         test_linkedhash_list_LDADD.
60431         * modules/rbtree-list-tests (Makefile.am): New variable
60432         test_rbtree_list_LDADD.
60433         * modules/rbtree-oset-tests (Makefile.am): New variable
60434         test_rbtree_oset_LDADD.
60435         * modules/rbtreehash-list-tests (Makefile.am): New variable
60436         test_rbtreehash_list_LDADD.
60437         * modules/xvasprintf-tests (Makefile.am): New variable
60438         test_xvasprintf_LDADD.
60439         Reported by Eric Blake.
60440
60441 2007-04-03  Eric Blake  <ebb9@byu.net>
60442
60443         * DEPENDENCIES: Weaken m4 requirements.
60444
60445 2007-04-03  Bruno Haible  <bruno@clisp.org>
60446
60447         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
60448         * modules/isnanl-tests (configure.ac): Likewise.
60449
60450 2007-04-03  Ben Pfaff  <blp@gnu.org>
60451
60452         * modules/iconv_open: Add $(srcdir)/ to source directory
60453         references in Makefile fragments that call gperf, to fix VPATH
60454         builds.
60455
60456 2007-04-03  Bruno Haible  <bruno@clisp.org>
60457
60458         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
60459         * lib/ldexpl.c: Undo last change.
60460
60461 2007-04-03  Bruno Haible  <bruno@clisp.org>
60462
60463         * modules/printf-frexpl (Depends-on): Undo last change.
60464         (Files): Add m4/ldexpl.m4.
60465
60466 2007-04-03  Bruno Haible  <bruno@clisp.org>
60467
60468         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
60469         * modules/isnanl (Link): New section.
60470
60471         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
60472         * modules/frexp (Link): New section.
60473
60474         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
60475         * modules/frexpl (Link): New section.
60476
60477         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
60478         * modules/ldexpl (Link): New section.
60479
60480 2007-04-03  Bruno Haible  <bruno@clisp.org>
60481
60482         * modules/TEMPLATE-EXTENDED: New file.
60483         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
60484
60485 2007-04-03  Bruno Haible  <bruno@clisp.org>
60486
60487         * DEPENDENCIES: New file.
60488         Suggested by Simon Josefsson.
60489
60490 2007-04-03  Bruno Haible  <bruno@clisp.org>
60491
60492         * doc/gnulib.texi: Escape @.
60493
60494 2007-04-03  James Youngman  <jay@gnu.org>
60495         and Paul Eggert  <eggert@cs.ucla.edu>
60496
60497         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
60498         birthtime on all systems that have birthtime, not just those which
60499         use st_birthtimensec rather than st_birthtim.  Putting zero in
60500         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
60501         that the birth time is not available for files on an NFS mount.
60502
60503 2007-04-03  Simon Josefsson  <simon@josefsson.org>
60504
60505         * modules/memxor: Move back from crypto/, suggested by Bruno.
60506         * modules/crypto/hmac-sha1: Fix memxor dependency.
60507
60508         * modules/crypto/gc: Moved from ../.
60509
60510 2007-04-02  Eric Blake  <ebb9@byu.net>
60511
60512         * lib/ldexpl.c (includes): Avoid libm.
60513
60514         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
60515
60516 2007-04-02  Bruno Haible  <bruno@clisp.org>
60517
60518         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
60519         on IRIX.
60520
60521 2007-04-02  Bruno Haible  <bruno@clisp.org>
60522
60523         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
60524         x86 or x86_64 platforms running MacOS X.
60525         Reported by Ryan Schmidt <@ryandesign.com>.
60526
60527 2007-04-02  Bruno Haible  <bruno@clisp.org>
60528
60529         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
60530         i386.
60531
60532 2007-04-01  Simon Josefsson  <simon@josefsson.org>
60533
60534         * modules/crypto/arcfour: Moved from ../.
60535         * modules/crypto/arcfour-tests: Moved from ../.
60536         * modules/crypto/arctwo: Moved from ../.
60537         * modules/crypto/arctwo-tests: Moved from ../.
60538         * modules/crypto/des: Moved from ../.
60539         * modules/crypto/des-tests: Moved from ../.
60540         * modules/crypto/gc-arcfour: Moved from ../.
60541         * modules/crypto/gc-arcfour-tests: Moved from ../.
60542         * modules/crypto/gc-arctwo: Moved from ../.
60543         * modules/crypto/gc-arctwo-tests: Moved from ../.
60544         * modules/crypto/gc-des: Moved from ../.
60545         * modules/crypto/gc-des-tests: Moved from ../.
60546         * modules/crypto/gc-hmac-md5: Moved from ../.
60547         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
60548         * modules/crypto/gc-hmac-sha1: Moved from ../.
60549         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
60550         * modules/crypto/gc-md2: Moved from ../.
60551         * modules/crypto/gc-md2-tests: Moved from ../.
60552         * modules/crypto/gc-md4: Moved from ../.
60553         * modules/crypto/gc-md4-tests: Moved from ../.
60554         * modules/crypto/gc-md5: Moved from ../.
60555         * modules/crypto/gc-md5-tests: Moved from ../.
60556         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
60557         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
60558         * modules/crypto/gc-random: Moved from ../.
60559         * modules/crypto/gc-rijndael: Moved from ../.
60560         * modules/crypto/gc-rijndael-tests: Moved from ../.
60561         * modules/crypto/gc-sha1: Moved from ../.
60562         * modules/crypto/gc-sha1-tests: Moved from ../.
60563         * modules/crypto/gc-tests: Moved from ../.
60564         * modules/crypto/hmac-md5: Moved from ../.
60565         * modules/crypto/hmac-md5-tests: Moved from ../.
60566         * modules/crypto/hmac-sha1: Moved from ../.
60567         * modules/crypto/hmac-sha1-tests: Moved from ../.
60568         * modules/crypto/md2: Moved from ../.
60569         * modules/crypto/md2-tests: Moved from ../.
60570         * modules/crypto/md4: Moved from ../.
60571         * modules/crypto/md4-tests: Moved from ../.
60572         * modules/crypto/md5: Moved from ../.
60573         * modules/crypto/md5-tests: Moved from ../.
60574         * modules/crypto/memxor: Moved from ../.
60575         * modules/crypto/rijndael: Moved from ../.
60576         * modules/crypto/rijndael-tests: Moved from ../.
60577         * modules/crypto/sha1: Moved from ../.
60578
60579 2007-03-30  James Youngman  <jay@gnu.org>
60580
60581         * tests/test-stat-time.c (prepare_test): use chmod() rather than
60582         rename() to change the ctime of a file (because ctime is unaffected
60583         by rename on jfs2 on AIX 5.1).
60584         (main): Start by doing cleanup, in case a previous run failed leaving
60585         test files behind.
60586
60587 2007-03-31  Bruno Haible  <bruno@clisp.org>
60588
60589         Support old proprietary implementations of iconv.
60590         * modules/iconv_open: New file.
60591         * lib/iconv_.h: New file.
60592         * m4/iconv_h.m4: New file.
60593         * lib/iconv_open.c: New file.
60594         * lib/iconv_open-aix.gperf: New file.
60595         * lib/iconv_open-hpux.gperf: New file.
60596         * lib/iconv_open-irix.gperf: New file.
60597         * lib/iconv_open-osf.gperf: New file.
60598         * m4/iconv_open.m4: New file.
60599         * modules/linebreak (Depends-on): Add iconv_open.
60600         * modules/striconv (Depends-on): Likewise.
60601         * modules/striconveh (Depends-on): Likewise.
60602         * modules/unicodeio (Depends-on): Likewise.
60603         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
60604         (iconv_t)(-1).
60605         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
60606         conversion if cd is (iconv_t)(-1).
60607         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
60608         is not possible.
60609
60610 2007-03-31  Bruno Haible  <bruno@clisp.org>
60611
60612         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
60613         work on Solaris either. Protect also second use of "autodetect_jp".
60614
60615 2007-03-31  Bruno Haible  <bruno@clisp.org>
60616
60617         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
60618         the function is not present.
60619
60620 2007-03-31  Bruno Haible  <bruno@clisp.org>
60621
60622         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
60623         the function is not present.
60624
60625 2007-03-31  Bruno Haible  <bruno@clisp.org>
60626
60627         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
60628         a bug in HP-UX iconv_open().
60629
60630 2007-03-31  Bruno Haible  <bruno@clisp.org>
60631
60632         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
60633         (Mathematics <math.h>): New section, add fpieee.
60634         (Input/output <stdio.h>): Add fseterr.
60635         (Mathematics <math.h>): New section, add printf-frexp.
60636         (Container data structures): Add sublist.
60637         (Core language properties): Add fpucw, inline.
60638         (Functions for greatest-width integer types <inttypes.h>): Add
60639         imaxabs, imaxdiv, inttypes.
60640         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
60641         isnanl-nolibm, ldexp.
60642         (Mathematics <math.h>): New section, add printf-frexpl.
60643         (Support for systems lacking POSIX:2001): Add fprintf-posix,
60644         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
60645         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
60646         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
60647         (Unicode string functions): Add unistr/u*-mbtoucr.
60648         (Java): Add javacomp-script, javaexec-script.
60649         (C#): Add csharpcomp-script, csharpexec-script.
60650         (Support for building libraries and executables): Add havelib,
60651         relocatable-*.
60652         (Support for maintaining and releasing projects): Renamed from
60653         'Support for maintaining and release projects'. Add announce-gen.
60654
60655 2007-03-31  Bruno Haible  <bruno@clisp.org>
60656
60657         * README: Talk primarily about git.
60658         (git and CVS): Renamed from CVS.
60659         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
60660         gnulib is available through git.
60661         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
60662
60663 2007-03-30  Bruno Haible  <bruno@clisp.org>
60664
60665         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
60666         * lib/poll_.h: Likewise.
60667         * lib/stat_.h: Likewise.
60668         * lib/sys_time_.h: Likewise.
60669         * lib/sysexit_.h: Likewise.
60670         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
60671         * lib/stdbool_.h: Likewise.
60672         * lib/byteswap_.h: Add double-inclusion guard.
60673
60674 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
60675
60676         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
60677
60678 2007-03-30  Karl Berry  <karl@gnu.org>
60679
60680         * config/srclist-update: double space after USA in the license
60681         substitution, since that's how it's usually (?) written.
60682
60683 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
60684
60685         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
60686         reported by Bruno Haible.
60687
60688 2007-03-29  Bruno Haible  <bruno@clisp.org>
60689
60690         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
60691         a bug in AIX iconv().
60692
60693 2007-03-29  Bruno Haible  <bruno@clisp.org>
60694
60695         * modules/ldexpl-tests: New file.
60696         * tests/test-ldexpl.c: New file.
60697
60698 2007-03-29  Bruno Haible  <bruno@clisp.org>
60699
60700         * lib/ldexpl.c: Include fpucw.h.
60701         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
60702         multiplication.
60703         * modules/ldexpl (Depends-on): Add fpucw.
60704
60705 2007-03-29  Bruno Haible  <bruno@clisp.org>
60706
60707         * modules/ldexpl: New file.
60708         * m4/ldexpl.m4: New file.
60709         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
60710         set.
60711         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
60712         REPLACE_LDEXPL.
60713         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
60714         REPLACE_LDEXPL.
60715         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
60716         gl_FUNC_LDEXPL_WORKS.
60717         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
60718         * modules/mathl (Files): Remove lib/ldexpl.c.
60719         (Depends-on): Add ldexpl.
60720
60721 2007-03-29  Bruno Haible  <bruno@clisp.org>
60722
60723         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
60724
60725 2007-03-29  Bruno Haible  <bruno@clisp.org>
60726
60727         * tests/test-striconveh.c (main): Don't assume that a direct conversion
60728         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
60729         and possibly also HP-UX.
60730         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
60731         work on AIX, IRIX, HP-UX, OSF/1.
60732         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
60733         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
60734         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
60735         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
60736         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
60737         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
60738
60739 2007-03-29  Bruno Haible  <bruno@clisp.org>
60740
60741         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
60742
60743 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
60744
60745         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
60746         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
60747
60748 2007-03-29  Eric Blake  <ebb9@byu.net>
60749
60750         * lib/acl-internal.h: Remove redundant include.
60751         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
60752         Cygwin when a file is locked.
60753
60754 2007-03-29  Bruno Haible  <bruno@clisp.org>
60755
60756         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
60757         file.
60758         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
60759
60760 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
60761
60762         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
60763         try to remove a parent directory if the child couldn't be removed
60764         (except for the first rmdir, which could fail because the child
60765         doesn't exist).  Problem reported by Jeff Blaine in
60766         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
60767
60768 2007-03-28  Bruno Haible  <bruno@clisp.org>
60769
60770         * lib/striconveh.c (utf8conv_carefully): New function.
60771         (mem_cd_iconveh_internal): Invoke it.
60772
60773 2007-03-28  Bruno Haible  <bruno@clisp.org>
60774
60775         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
60776         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
60777         input.
60778         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
60779         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
60780         unistr/u8-uctomb.
60781
60782 2007-03-28  Bruno Haible  <bruno@clisp.org>
60783
60784         * modules/unistr/u8-mbtoucr: New file.
60785         * lib/unistr/u8-mbtoucr.c: New file.
60786         * modules/unistr/u16-mbtoucr: New file.
60787         * lib/unistr/u16-mbtoucr.c: New file.
60788         * modules/unistr/u16-mbtoucr: New file.
60789         * lib/unistr/u16-mbtoucr.c: New file.
60790         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
60791
60792 2007-03-27  Simon Josefsson  <simon@josefsson.org>
60793             Bruno Haible  <bruno@clisp.org>
60794
60795         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
60796         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
60797         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
60798
60799         * m4/stdio_h.m4: Add stubs for vasprintf too.
60800
60801         * modules/stdio: Support vasprintf in sed command.
60802
60803         * modules/vasprintf: Depend on stdio for prototypes.  Remove
60804         vasprintf.h.  Add stdio module indicator.
60805
60806         * lib/stdio_.h: Declare asprintf and vasprintf, based on
60807         vasprintf.h.
60808
60809         * lib/vasprintf.h: File removed.
60810
60811         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
60812         * lib/vasprintf.c: Ditto.
60813         * lib/xvasprintf.c: Ditto.
60814         * tests/test-vasprintf-posix.c: Ditto.
60815         * tests/test-vasprintf.c: Ditto.
60816
60817 2007-03-27  Bruno Haible  <bruno@clisp.org>
60818
60819         Make vasnprintf multithread-safe.
60820         * lib/vasnprintf.c (decimal_point_char): New function.
60821         (VASNPRINTF): Use it.
60822         Suggested by Simon Josefsson.
60823
60824 2007-03-27  Eric Blake  <ebb9@byu.net>
60825
60826         Support sub-second birthtime on cygwin.
60827         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
60828         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
60829         (get_stat_birthtime): Also work with st_birthtim.
60830
60831 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
60832
60833         * lib/stat-time.h (USE_BIRTHTIME): Remove.
60834         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
60835         (get_stat_birthtime_ns): Do not try to use "spare" fields.
60836         (get_stat_birthtime_ns): Simplify compile-time tests.
60837         (get_stat_birthtime): Change the API to look like
60838         get_stat_mtime etc., except return a negative tv_nsec on error.
60839         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
60840         Don't check for "spare" fields.
60841         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
60842         or for struct stat.st_birthtime, as these tests aren't used.
60843         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
60844
60845 2007-03-27  Bruno Haible  <bruno@clisp.org>
60846
60847         * lib/stat-time.h: Include <sys/stat.h>.
60848
60849 2007-03-27  James Youngman  <jay@gnu.org>
60850
60851         * lib/stat-time.h (get_stat_birthtime): New function for
60852           retrieving st_birthtime as provided by UFS2 (hence *BSD).
60853         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
60854           and its variants.
60855         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
60856         * modules/stat-time-test: New file.
60857         * tests/test-stat-time.c: New test, devised by Bruno Haible.
60858
60859 2007-03-26  Bruno Haible  <bruno@clisp.org>
60860
60861         Better support of signalling NaNs.
60862         * lib/atanl.c: Include isnanl.h.
60863         (atanl): Perform test for NaN at the beginning of the function and
60864         through a call to isnanl.
60865         * lib/cosl.c: Include isnanl.h.
60866         (cosl): Perform test for NaN at the beginning of the function and
60867         through a call to isnanl.
60868         * lib/ldexpl.c: Include isnanl.h.
60869         (ldexpl): Perform test for NaN through a call to isnanl.
60870         * lib/logl.c: Include isnanl.h.
60871         (logl): Perform test for NaN at the beginning of the function and
60872         through a call to isnanl.
60873         * lib/sinl.c: Include isnanl.h.
60874         (sinl): Perform test for NaN at the beginning of the function and
60875         through a call to isnanl.
60876         * lib/sqrtl.c: Include isnanl.h.
60877         (sqrtl): Perform test for NaN at the beginning of the function and
60878         through a call to isnanl.
60879         * lib/tanl.c: Include isnanl.h.
60880         (tanl): Perform test for NaN at the beginning of the function and
60881         through a call to isnanl.
60882         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
60883         * modules/mathl (Depends-on): Add isnanl.
60884
60885 2007-03-26  Eric Blake  <ebb9@byu.net>
60886
60887         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
60888         regression in logic sense of previous patch.
60889
60890 2007-03-26  Bruno Haible  <bruno@clisp.org>
60891
60892         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
60893         unportable shell command "if ! ...".
60894         Reported by Ralf Wildenhues.
60895
60896 2007-03-25  Bruno Haible  <bruno@clisp.org>
60897
60898         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
60899         <sysexits.h> file, and only add EX_CONFIG.
60900         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
60901         absolute file name and whether it is sufficient. Substitute also
60902         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
60903         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
60904         ABSOLUTE_SYSEXITS_H into sysexits.h.
60905
60906 2007-03-25  Bruno Haible  <bruno@clisp.org>
60907
60908         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
60909         hints is NULL.
60910
60911 2007-03-25  Bruno Haible  <bruno@clisp.org>
60912
60913         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
60914         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
60915
60916 2007-03-25  Bruno Haible  <bruno@clisp.org>
60917
60918         * lib/vasnprintf.c: Include langinfo.h.
60919         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
60920         multithread-safe.
60921         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
60922         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
60923         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60924         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60925         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60926         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60927         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60928         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
60929         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60930         Reported by Simon Josefsson.
60931
60932 2007-03-25  Bruno Haible  <bruno@clisp.org>
60933
60934         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
60935         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
60936         * modules/vasnprintf (Depends-on): Add stdint.
60937
60938 2007-03-25  Bruno Haible  <bruno@clisp.org>
60939
60940         * modules/fpieee: New file.
60941         * m4/fpieee.m4: New file.
60942         * modules/isnan-nolibm (Depends-on): Add fpieee.
60943         * modules/isnanl-nolibm (Depends-on): Add fpieee.
60944         * modules/isnanl (Depends-on): Add fpieee.
60945
60946 2007-03-25  Bruno Haible  <bruno@clisp.org>
60947
60948         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
60949
60950 2007-03-25  Bruno Haible  <bruno@clisp.org>
60951
60952         Avoid test failures on IRIX 6.5.
60953         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
60954         (main): Use it.
60955         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
60956         macros.
60957         (main): Use them.
60958
60959 2007-03-25  Bruno Haible  <bruno@clisp.org>
60960
60961         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
60962         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
60963         exists but doesn't work.
60964         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
60965         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
60966         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
60967         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
60968         math.h.
60969
60970 2007-03-25  Bruno Haible  <bruno@clisp.org>
60971
60972         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
60973         returns inf. Needed on IRIX 6.5.
60974
60975 2007-03-25  Bruno Haible  <bruno@clisp.org>
60976
60977         * tests/test-frexpl.c: Include isnanl-nolibm.h.
60978         (main): Use isnanl instead of x != x idiom.
60979         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
60980
60981         * tests/test-frexp.c: Include isnan.h.
60982         (main): Use isnan instead of x != x idiom.
60983         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
60984
60985 2007-03-25  Bruno Haible  <bruno@clisp.org>
60986
60987         * tests/test-frexp.c (NaN): New function/macro.
60988         (main): Use it instead of 0.0 / 0.0.
60989         * tests/test-isnan.c (NaN): New function/macro.
60990         (main): Use it instead of 0.0 / 0.0.
60991         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
60992         (test_function): Use it instead of 0.0 / 0.0.
60993         * tests/test-vasprintf-posix.c (NaN): New function/macro.
60994         (test_function): Use it instead of 0.0 / 0.0.
60995         * tests/test-snprintf-posix.h (NaN): New function/macro.
60996         (test_function): Use it instead of 0.0 / 0.0.
60997         * tests/test-sprintf-posix.h (NaN): New function/macro.
60998         (test_function): Use it instead of 0.0 / 0.0.
60999         * tests/test-fprintf-posix.h (NaN): New function/macro.
61000         (test_function): Use it instead of 0.0 / 0.0.
61001         * tests/test-printf-posix.h (NaN): New function/macro.
61002         (test_function): Use it instead of 0.0 / 0.0.
61003
61004         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
61005
61006 2007-03-25  Bruno Haible  <bruno@clisp.org>
61007
61008         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
61009
61010 2007-03-25  Bruno Haible  <bruno@clisp.org>
61011
61012         * lib/regexec.c (merge_state_with_log): Make static.
61013
61014 2007-03-25  Bruno Haible  <bruno@clisp.org>
61015
61016         * lib/trigl.c (kernel_rem_pio2): Make static.
61017
61018 2007-03-25  Bruno Haible  <bruno@clisp.org>
61019
61020         * lib/sincosl.c (sincosl_table): Make static.
61021
61022 2007-03-25  Bruno Haible  <bruno@clisp.org>
61023
61024         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
61025         if the compiler does not support C99.
61026
61027 2007-03-25  Bruno Haible  <bruno@clisp.org>
61028
61029         * modules/time (Makefile.am): Ensure all rule action lines start with a
61030         tab.
61031
61032 2007-03-24  Bruno Haible  <bruno@clisp.org>
61033
61034         * modules/tsearch-tests: New file.
61035         * tests/test-tsearch.sh: New file.
61036         * tests/test-tsearch.c: New file, mostly copied from glibc.
61037
61038         * modules/search-tests: New file.
61039         * tests/test-search.c: New file.
61040
61041         * modules/search: New file.
61042         * lib/search_.h: New file, incorporating lib/tsearch.h.
61043         * m4/search_h.m4: New file.
61044         * lib/tsearch.h: Remove file.
61045         * lib/tsearch.c: Include search.h instead of tsearch.h.
61046         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
61047         HAVE_TSEARCH.
61048         * modules/tsearch (Files): Remove lib/tsearch.h.
61049         (Depends-on): Add search.
61050         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
61051         (Include): Change tsearch.h into search.h.
61052
61053 2007-03-24  Bruno Haible  <bruno@clisp.org>
61054
61055         * modules/fpucw: New file.
61056         * lib/fpucw.h: New file.
61057         * lib/frexp.c: Include fpucw.h.
61058         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
61059         (FUNC): Use them.
61060         * lib/printf-frexp.c: Include fpucw.h.
61061         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
61062         (FUNC): Use them.
61063         * lib/vasnprintf.c: Include fpucw.h.
61064         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
61065         'long double' calculations.
61066         * tests/test-frexpl.c: Include fpucw.h.
61067         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
61068         * tests/test-printf-frexpl.c: Include fpucw.h.
61069         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
61070         * modules/frexpl (Depends-on): Add fpucw.
61071         * modules/printf-frexpl (Depends-on): Likewise.
61072         * modules/fprintf-posix (Depends-on): Likewise.
61073         * modules/snprintf-posix (Depends-on): Likewise.
61074         * modules/sprintf-posix (Depends-on): Likewise.
61075         * modules/vasnprintf-posix (Depends-on): Likewise.
61076         * modules/vasprintf-posix (Depends-on): Likewise.
61077         * modules/vfprintf-posix (Depends-on): Likewise.
61078         * modules/vsnprintf-posix (Depends-on): Likewise.
61079         * modules/vsprintf-posix (Depends-on): Likewise.
61080         * modules/frexpl-tests (Depends-on): Likewise.
61081         * modules/printf-frexpl-tests (Depends-on): Likewise.
61082
61083 2007-03-24  Bruno Haible  <bruno@clisp.org>
61084
61085         * lib/float+.h: New file.
61086         * lib/isnan.c: Include float+.h.
61087         (SIZE): New macro.
61088         (FUNC): Compare only SIZE bytes of the value.
61089         * lib/vasnprintf.c: Include float+.h.
61090         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
61091         SIZEOF_LDBL or SIZEOF_DBL bytes.
61092         * modules/isnan-nolibm (Files): Add lib/float+.h.
61093         * modules/isnanl-nolibm (Files): Add lib/float+.h.
61094         * modules/isnanl (Files): Add lib/float+.h.
61095         * modules/vasnprintf (Files): Add lib/float+.h.
61096
61097 2007-03-24  Bruno Haible  <bruno@clisp.org>
61098
61099         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
61100         include isnanl-nolibm.h.
61101
61102 2007-03-24  Bruno Haible  <bruno@clisp.org>
61103
61104         * tests/test-read-file.c (main): Don't produce spurious output for
61105         expected situations. Make the test fail if it encountered unexpected
61106         results.
61107
61108 2007-03-24  Bruno Haible  <bruno@clisp.org>
61109
61110         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
61111         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
61112
61113 2007-03-24  Bruno Haible  <bruno@clisp.org>
61114
61115         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
61116
61117 2007-03-24  Bruno Haible  <bruno@clisp.org>
61118
61119         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
61120         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
61121
61122         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
61123         * modules/utf8-ucs4: Turn into a symbolic link to module
61124         unistr/u8-mbtouc.
61125
61126         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
61127         utf8-ucs4-unsafe.
61128         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
61129         unistr/u8-mbtouc-unsafe.
61130
61131         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
61132         * modules/utf16-ucs4: Turn into a symbolic link to module
61133         unistr/u16-mbtouc.
61134
61135         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
61136         utf16-ucs4-unsafe.
61137         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
61138         unistr/u16-mbtouc-unsafe.
61139
61140         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
61141         * modules/ucs4-utf8: Turn into a symbolic link to module
61142         unistr/u8-ubtomb.
61143
61144         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
61145         * modules/ucs4-utf16: Turn into a symbolic link to module
61146         unistr/u16-ubtomb.
61147
61148 2007-03-24  Bruno Haible  <bruno@clisp.org>
61149
61150         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
61151         Enable the function only if HAVE_INLINE.
61152         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
61153         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
61154         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
61155         Enable the function only if HAVE_INLINE.
61156         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
61157         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
61158         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
61159         Enable the function only if HAVE_INLINE.
61160         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
61161         Enable the function only if HAVE_INLINE.
61162         * modules/utf8-ucs4: Update.
61163         * modules/utf8-ucs4-unsafe: Update.
61164         * modules/utf16-ucs4: Update.
61165         * modules/utf16-ucs4-unsafe: Update.
61166         * modules/ucs4-utf8: Update.
61167         * modules/ucs4-utf16: Update.
61168
61169 2007-03-24  Bruno Haible  <bruno@clisp.org>
61170
61171         * lib/utf8-ucs4.h: Remove file.
61172         * lib/utf8-ucs4-unsafe.h: Remove file.
61173         * lib/utf16-ucs4.h: Remove file.
61174         * lib/utf16-ucs4-unsafe.h: Remove file.
61175         * lib/ucs4-utf8.h: Remove file.
61176         * lib/ucs4-utf16.h: Remove file.
61177         * lib/unistr.h: Include their previous contents.
61178         * m4/utf-ucs4.m4: Remove file.
61179         * m4/ucs4-utf.m4: Remove file.
61180         * modules/utf8-ucs4 (Files): Remove lib/utf8-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/utf8-ucs4-unsafe (Files): Remove lib/utf8-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/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
61191         (Depends-on): Add unistr/base.
61192         (configure.ac): Remove gl_UTF_UCS4.
61193         (Makefile.am): Update.
61194         (Include): Change to unistr.h.
61195         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
61196         (Depends-on): Add unistr/base.
61197         (configure.ac): Remove gl_UTF_UCS4.
61198         (Makefile.am): Update.
61199         (Include): Change to unistr.h.
61200         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
61201         (Depends-on): Add unistr/base.
61202         (configure.ac): Remove gl_UCS4_UTF.
61203         (Makefile.am): Update.
61204         (Include): Change to unistr.h.
61205         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
61206         (Depends-on): Add unistr/base.
61207         (configure.ac): Remove gl_UCS4_UTF.
61208         (Makefile.am): Update.
61209         (Include): Change to unistr.h.
61210         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
61211         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
61212         utf8-ucs4-unsafe.h.
61213         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
61214         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
61215         utf16-ucs4-unsafe.h.
61216         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
61217         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
61218         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
61219         * lib/unistr/u8-strchr.c: Likewise.
61220         * lib/unistr/u8-strrchr.c: Likewise.
61221         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
61222         * lib/unistr/u16-strchr.c: Likewise.
61223         * lib/unistr/u16-strrchr.c: Likewise.
61224         * lib/striconveh.c: Update.
61225         * lib/linebreak.c: Update.
61226
61227 2007-03-24  Bruno Haible  <bruno@clisp.org>
61228
61229         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
61230         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
61231
61232 2007-03-22  Bruno Haible  <bruno@clisp.org>
61233
61234         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
61235
61236 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
61237
61238         * MODULES.html.sh (File system functions): New module write-any-file.
61239         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
61240         * m4/write-any-file.m4: New files.
61241
61242 2007-03-23  Eric Blake  <ebb9@byu.net>
61243
61244         * gnulib-tool: Rearrange space-tab sequences, since some editors
61245         like to eat them.
61246
61247 2007-03-23  Eric Blake  <ebb9@byu.net>
61248
61249         * lib/version-etc.c (version_etc_va): Update license wording to
61250         be more concise.  Recommended by Richard Stallman.
61251
61252 2007-03-22  Bruno Haible  <bruno@clisp.org>
61253
61254         * lib/poll.c (MSG_PEEK): New fallback definition.
61255
61256 2007-03-22  Bruno Haible  <bruno@clisp.org>
61257
61258         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
61259         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
61260         (main): Update.
61261         Fixes a compilation error on BeOS.
61262
61263 2007-03-22  Bruno Haible  <bruno@clisp.org>
61264
61265         * modules/frexpl-tests: New file.
61266         * tests/test-frexpl.c: New file.
61267
61268         * modules/frexpl: New file.
61269         * m4/frexpl.m4: New file.
61270         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
61271         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
61272         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
61273         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
61274         (Depends-on): Add frexpl. Remove isnanl-nolibm.
61275         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
61276
61277 2007-03-22  Bruno Haible  <bruno@clisp.org>
61278
61279         * lib/frexpl.c: Share code with lib/frexp.c.
61280         * modules/mathl (Files): Add lib/frexp.c.
61281         (Depends-on): Add isnanl-nolibm.
61282
61283 2007-03-22  Bruno Haible  <bruno@clisp.org>
61284
61285         * modules/printf-frexp (Files): Add m4/frexp.m4.
61286         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
61287         only if the found frexp function actually works.
61288
61289 2007-03-22  Bruno Haible  <bruno@clisp.org>
61290
61291         * lib/frexp.c: Remove older implementation that uses divisions.
61292
61293 2007-03-21  Bruno Haible  <bruno@clisp.org>
61294
61295         * modules/frexp-tests: New file.
61296         * tests/test-frexp.c: New file.
61297
61298         * modules/frexp: New file.
61299         * lib/frexp.c: New file.
61300         * m4/frexp.m4: New file.
61301         * lib/math_.h (frexp): New declaration.
61302         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
61303         REPLACE_FREXP.
61304         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
61305
61306 2007-03-21  Bruno Haible  <bruno@clisp.org>
61307
61308         * modules/isnanl-tests: New file.
61309         * tests/test-isnanl.c: New file.
61310
61311         * modules/isnanl: New file.
61312         * lib/isnanl.h: New file.
61313         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
61314         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
61315         gl_FUNC_ISNANL_WORKS.
61316         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
61317         New macros.
61318
61319 2007-03-21  Bruno Haible  <bruno@clisp.org>
61320
61321         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
61322         lib/isnanl.h.
61323         (Include): Update.
61324         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
61325         * lib/vasnprintf.c: Update.
61326         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
61327         tests/test-isnanl.h, remove tests/test-isnanl.c.
61328         (Makefile.am): Update.
61329         * tests/test-isnanl-nolibm.c: New file.
61330         * tests/test-isnanl.h: New file.
61331         * tests/test-isnanl.c: Remove file.
61332
61333 2007-03-21  Jim Meyering  <jim@meyering.net>
61334
61335         When trying to open ".", treat ESTALE like EACCES.
61336         * lib/savewd.c (savewd_save): Resort to forking not just upon
61337         failure with EACCES, but also when errno is ESTALE.
61338
61339 2007-03-20  Bruno Haible  <bruno@clisp.org>
61340
61341         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
61342         Needed on AIX 5.1. Reported by Matthew Woehlke.
61343
61344 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
61345
61346         Suggestions by Bruno Haible:
61347         * lib/acl-internal.h: Include "gettext.h" rather than rolling
61348         our own.
61349         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
61350         * modules/acl (Depends-on): Add gettext.
61351
61352 2007-03-19  Bruno Haible  <bruno@clisp.org>
61353
61354         * modules/iconvme: Remove file.
61355         * lib/iconvme.h: Remove file.
61356         * lib/iconvme.c: Remove file.
61357         * m4/iconvme.m4: Remove file.
61358
61359 2007-03-19  Bruno Haible  <bruno@clisp.org>
61360
61361         * doc/relocatable-maint.texi: Break long shell script line.
61362         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
61363
61364 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
61365
61366         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
61367         handle file_has_acl.
61368         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
61369         * lib/acl.c: Move header inclusions and related macro defns into
61370         lib/acl-internal.h.
61371         (S_ISLNK): Remove defn, since that's now done for us.
61372         (file_has_acl): Move to lib/file-has-acl.c.
61373         Call acl_trivial if available.  This is the crucial part of the fix.
61374         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
61375         shared within the library.  Rewrite a bit, partly to make it compatible
61376         with the GNU coding style.
61377         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
61378         Remove unnecessary double-quotes.
61379         Don't test for acl_to_text; the build will catch that.
61380         Replace acl_entries if it doesn't exist and it is needed.
61381         Check for -lsec and acl_trivial (as used on Solaris 10).
61382         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
61383         lib/file-has-acl.c.
61384         (Depends-on): Add sys_stat, for S_ISLNK.
61385
61386 2007-03-19  Ben Pfaff  <blp@gnu.org>
61387
61388         * doc/gnulib.texi: Fix typos.
61389         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
61390
61391 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
61392
61393         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
61394         If size is zero here, buf must be zero.
61395
61396 2007-03-19  Simon Josefsson  <simon@josefsson.org>
61397
61398         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
61399         <bruno@clisp.org>.
61400
61401 2007-03-18  Bruno Haible  <bruno@clisp.org>
61402
61403         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
61404         Suggested by Eric Blake.
61405
61406 2007-03-18  Ben Pfaff  <blp@gnu.org>
61407
61408         * doc/relocatable.texi: Recommend using as prefix a directory
61409         that does not exist and will never be created.  Based on
61410         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
61411         and others.
61412
61413 2007-03-17  Bruno Haible  <bruno@clisp.org>
61414
61415         * lib/fchownat.c: Include lchown.h.
61416
61417 2007-03-17  Bruno Haible  <bruno@clisp.org>
61418
61419         Fix endless loop when the given allocated size was > INT_MAX.
61420         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
61421         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
61422         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
61423         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
61424         * lib/sprintf.c (sprintf): Likewise.
61425
61426 2007-03-17  Bruno Haible  <bruno@clisp.org>
61427
61428         * tests/test-argp-2.sh (func_compare): Output a context diff.
61429
61430 2007-03-17  Bruno Haible  <bruno@clisp.org>
61431
61432         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
61433         locale's decimal-point character.
61434
61435 2007-03-17  Bruno Haible  <bruno@clisp.org>
61436
61437         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
61438         before comparing it. Needed because on some platforms (e.g. x86) a
61439         'long double' occupies less bytes than sizeof (long double).
61440
61441 2007-03-17  Bruno Haible  <bruno@clisp.org>
61442
61443         * tests/test-crc.c (main): Make printf statements 64-bit clean.
61444         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
61445         * tests/test-getaddrinfo.c (simple): Likewise.
61446         * tests/test-read-file.c (main): Likewise.
61447
61448 2007-03-17  Bruno Haible  <bruno@clisp.org>
61449
61450         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
61451
61452 2007-03-17  Bruno Haible  <bruno@clisp.org>
61453
61454         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
61455         unused variable.
61456
61457 2007-03-17  Bruno Haible  <bruno@clisp.org>
61458
61459         * tests/test-c-strcasecmp.c: Include c-strcase.h.
61460         * tests/test-c-strncasecmp.c: Likewise.
61461
61462 2007-03-17  Bruno Haible  <bruno@clisp.org>
61463
61464         * modules/stdlib (Depends-on): Add unistd.
61465         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
61466         Needed for MacOS X 10.3.
61467
61468 2007-03-17  Bruno Haible  <bruno@clisp.org>
61469
61470         * lib/unistr/u-strdup.h: Include <stdlib.h>.
61471
61472 2007-03-17  Bruno Haible  <bruno@clisp.org>
61473
61474         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
61475
61476 2007-03-17  Bruno Haible  <bruno@clisp.org>
61477
61478         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
61479         to reflect files copied from gnulib (with or without modifications).
61480         Suggested by Jim Meyering.
61481
61482 2007-03-17  Eric Blake  <ebb9@byu.net>
61483
61484         * NEWS: Document stdlib change from 2007-02-18.
61485
61486 2007-03-17  Jim Meyering  <jim@meyering.net>
61487
61488         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
61489         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
61490         someone uses a name containing shell meta-characters.
61491         Reported by Alfred M. Szmidt.
61492
61493         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
61494
61495 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
61496
61497         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
61498         and copy gettext configuration files only if configure.ac contains
61499         a use of AM_GNU_GETTEXT_VERSION.
61500
61501 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
61502
61503         * build-aux/bootstrap (gnulib_name): New variable.
61504         (gnulib_tool_options): Use it.
61505
61506 2007-03-13  Simon Josefsson  <simon@josefsson.org>
61507
61508         * tests/test-des.c: Use new namespace.
61509
61510 2007-03-15  Bruno Haible  <bruno@clisp.org>
61511
61512         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
61513         Reported by James Youngman <jay@gnu.org>.
61514
61515 2007-03-15  Bruno Haible  <bruno@clisp.org>
61516
61517         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
61518         declared prototype. Needed with cc on OSF/1 5.1.
61519
61520 2007-03-15  Bruno Haible  <bruno@clisp.org>
61521
61522         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
61523         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
61524         (struct gl_list_implementation): Add dispose_fn argument to the
61525         'create_empty', 'create' methods.
61526         (struct gl_list_impl_base): Add field 'dispose_fn'.
61527         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
61528         argument.
61529         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
61530         dispose_fn argument.
61531         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
61532         dispose_fn on the dropped values.
61533         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
61534         dispose_fn argument.
61535         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
61536         dropped values.
61537         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
61538         (gl_tree_remove_node): Call dispose_fn on the dropped value.
61539         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
61540         (gl_tree_remove_node): Call dispose_fn on the dropped value.
61541         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
61542         argument.
61543         (gl_tree_list_free): Call dispose_fn on the dropped values.
61544         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
61545         the dropped values.
61546         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
61547         Add dispose_fn argument.
61548         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
61549         Call dispose_fn on the dropped values.
61550         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
61551         Add dispose_fn argument.
61552         (gl_sublist_create): Initialize the 'dispose_fn' field.
61553         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
61554         * tests/test-array_list.c (main): Update.
61555         * tests/test-carray_list.c (main): Update.
61556         * tests/test-avltree_list.c (main): Update.
61557         * tests/test-rbtree_list.c (main): Update.
61558         * tests/test-avltreehash_list.c (main): Update.
61559         * tests/test-rbtreehash_list.c (main): Update.
61560         * tests/test-linked_list.c (main): Update.
61561         * tests/test-linkedhash_list.c (main): Update.
61562         * tests/test-array_oset.c (main): Update.
61563
61564 2007-03-15  Bruno Haible  <bruno@clisp.org>
61565
61566         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
61567         (gl_oset_create_empty): Add dispose_fn argument.
61568         (struct gl_oset_implementation): Add dispose_fn argument to
61569         'create_empty' method.
61570         (struct gl_oset_impl_base): Add dispose_fn field.
61571         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
61572         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
61573         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
61574         values.
61575         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
61576         (gl_tree_oset_free): Call dispose_fn on the dropped values.
61577         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
61578         dropped value.
61579         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
61580         dropped value.
61581         * tests/test-array_oset.c (main): Update.
61582         * tests/test-avltree_oset.c (main): Update.
61583         * tests/test-rbtree_oset.c (main): Update.
61584         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
61585
61586 2007-03-13  Bruno Haible  <bruno@clisp.org>
61587
61588         * tests/test-stdbool.c (i): Update after last patch.
61589
61590 2007-03-12  Bruno Haible  <bruno@clisp.org>
61591
61592         * lib/quotearg.c: Include <wctype.h> early, before the definition of
61593         the iswprint macro. Needed on Solaris 2.5.1.
61594
61595 2007-03-12  Bruno Haible  <bruno@clisp.org>
61596
61597         * tests/test-printf-frexp.c (main): Declare x as volatile.
61598
61599 2007-03-12  Simon Josefsson  <simon@josefsson.org>
61600
61601         * doc/gnulib.texi (Build robot for gnulib): New section.
61602
61603 2007-03-12  Jim Meyering  <jim@meyering.net>
61604
61605         * build-aux/bootstrap: New file.
61606         * build-aux/bootstrap.conf: New file, from coreutils.
61607
61608 2007-03-11  Bruno Haible  <bruno@clisp.org>
61609
61610         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
61611
61612 2007-03-12  Simon Josefsson  <simon@josefsson.org>
61613
61614         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
61615         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
61616         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
61617
61618 2007-03-11  Bruno Haible  <bruno@clisp.org>
61619
61620         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
61621         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
61622
61623 2007-03-11  Bruno Haible  <bruno@clisp.org>
61624
61625         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
61626         formula. Needed for SunPRO C 5.0.
61627
61628 2007-03-11  Bruno Haible  <bruno@clisp.org>
61629
61630         * modules/long-options (Depends-on): Add getopt.
61631
61632 2007-03-11  Bruno Haible  <bruno@clisp.org>
61633
61634         * modules/modechange (Depends-on): Add stdbool.
61635
61636 2007-03-11  Bruno Haible  <bruno@clisp.org>
61637
61638         * modules/i-ring (Depends-on): Add stdbool.
61639
61640 2007-03-11  Bruno Haible  <bruno@clisp.org>
61641
61642         * modules/gc-des (Depends-on): Add stdbool.
61643
61644 2007-03-11  Bruno Haible  <bruno@clisp.org>
61645
61646         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
61647
61648 2007-03-11  Bruno Haible  <bruno@clisp.org>
61649
61650         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
61651
61652 2007-03-11  Bruno Haible  <bruno@clisp.org>
61653
61654         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
61655
61656 2007-03-11  Bruno Haible  <bruno@clisp.org>
61657
61658         * lib/vasnprintf.c (sprintf): Undefine.
61659
61660 2007-03-11  Bruno Haible  <bruno@clisp.org>
61661
61662         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
61663         initializers in SunPRO C and Compaq C compilers.
61664
61665 2007-03-11  Bruno Haible  <bruno@clisp.org>
61666
61667         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
61668         decrementing code ANSI C compliant.
61669
61670 2007-03-11  Bruno Haible  <bruno@clisp.org>
61671
61672         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
61673         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
61674
61675 2007-03-11  Bruno Haible  <bruno@clisp.org>
61676
61677         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
61678         <stdbool.h> substitute doesn't pass.
61679
61680 2007-03-11  Bruno Haible  <bruno@clisp.org>
61681
61682         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
61683
61684 2007-03-11  Bruno Haible  <bruno@clisp.org>
61685
61686         * gnulib-tool (func_create_megatestdir): Create also an autobuild
61687         script, for submission to autobuild.josefsson.org.
61688
61689 2007-03-10  Bruno Haible  <bruno@clisp.org>
61690
61691         * modules/canonicalize-lgpl-tests: New file.
61692         * tests/test-canonicalize-lgpl.sh: New file.
61693         * tests/test-canonicalize-lgpl.c: New file.
61694
61695         * modules/c-strcase-tests: New file.
61696         * tests/test-c-strcase.sh: New file.
61697         * tests/test-c-strcasecmp.c: New file.
61698         * tests/test-c-strncasecmp.c: New file.
61699
61700         * modules/atexit-tests: New file.
61701         * tests/test-atexit.sh: New file.
61702         * tests/test-atexit.c: New file.
61703
61704 2007-03-10  Bruno Haible  <bruno@clisp.org>
61705
61706         * tests/test-binary-io.sh: Use temporary filenames that are not so
61707         likely to clash with those of other tests (in a parallel make).
61708         * tests/test-binary-io.c: Likewise.
61709
61710 2007-03-10  Bruno Haible  <bruno@clisp.org>
61711
61712         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
61713         fallback; use #error instead.
61714         Suggested by Simon Josefsson.
61715
61716 2007-03-10  Bruno Haible  <bruno@clisp.org>
61717
61718         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
61719         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
61720         first and the last.
61721
61722 2007-03-10  Bruno Haible  <bruno@clisp.org>
61723
61724         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
61725
61726 2007-03-10  Bruno Haible  <bruno@clisp.org>
61727
61728         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
61729         "make distcheck".
61730         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
61731         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
61732         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
61733
61734 2007-03-10  Bruno Haible  <bruno@clisp.org>
61735
61736         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
61737         variable.
61738         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
61739         variable.
61740
61741 2007-03-09  Eric Blake  <ebb9@byu.net>
61742         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
61743
61744         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
61745         types are not being provided by gnulib.
61746         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
61747         types are supported.
61748
61749 2007-03-10  Bruno Haible  <bruno@clisp.org>
61750
61751         * lib/stdio_.h (__attribute__): New macro.
61752         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
61753         vsprintf): Specify __attribute__ __format__ for GCC.
61754         Suggested by Eric Blake.
61755
61756 2007-03-09  Bruno Haible  <bruno@clisp.org>
61757
61758         * modules/printf-posix-tests: New file.
61759         * tests/test-printf-posix.sh: New file.
61760         * tests/test-printf-posix.c: New file.
61761
61762         * modules/printf-posix: New file.
61763         * lib/printf.c: New file.
61764         * m4/printf-posix-rpl.m4: New file.
61765         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
61766         REPLACE_PRINTF.
61767         * lib/stdio_.h (printf): New declaration.
61768         (format, __format__, ____printf____, ____scanf____, ____strftime____,
61769         ____strfmon____): New macros.
61770         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
61771         REPLACE_PRINTF.
61772
61773 2007-03-09  Bruno Haible  <bruno@clisp.org>
61774
61775         * tests/test-vasnprintf-posix2.sh: New file.
61776         * tests/test-vasnprintf-posix2.c: New file.
61777         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
61778         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
61779         (Makefile.am): Activate test-vasnprintf-posix2.sh.
61780
61781         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
61782         a locale dependent decimal point, rather than always '.'.
61783
61784 2007-03-09  Eric Blake  <ebb9@byu.net>
61785
61786         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
61787         spite of platforms like Tandem/NSK that define it to -1.
61788
61789 2007-03-08  Bruno Haible  <bruno@clisp.org>
61790
61791         * modules/vprintf-posix-tests: New file.
61792         * tests/test-vprintf-posix.sh: New file.
61793         * tests/test-vprintf-posix.c: New file.
61794         * tests/test-printf-posix.h: New file.
61795
61796         * modules/vprintf-posix: New file.
61797         * lib/vprintf.c: New file.
61798         * m4/vprintf-posix.m4: New file.
61799         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
61800         REPLACE_VPRINTF.
61801         * lib/stdio_.h (vprintf): New declaration.
61802         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
61803         REPLACE_VPRINTF.
61804
61805 2007-03-08  Bruno Haible  <bruno@clisp.org>
61806
61807         * modules/fprintf-posix-tests: New file.
61808         * tests/test-fprintf-posix.sh: New file.
61809         * tests/test-fprintf-posix.c: New file.
61810
61811         * modules/fprintf-posix: New file.
61812         * lib/fprintf.c: New file.
61813         * m4/fprintf-posix.m4: New file.
61814         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
61815         REPLACE_FPRINTF.
61816         * lib/stdio_.h (fprintf): New declaration.
61817         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
61818         REPLACE_FPRINTF.
61819
61820 2007-03-08  Bruno Haible  <bruno@clisp.org>
61821
61822         * modules/vfprintf-posix-tests: New file.
61823         * tests/test-vfprintf-posix.sh: New file.
61824         * tests/test-vfprintf-posix.c: New file.
61825         * tests/test-fprintf-posix.h: New file.
61826         * tests/test-fprintf-posix.out: New file.
61827
61828         * modules/vfprintf-posix: New file.
61829         * lib/vfprintf.c: New file.
61830         * m4/vfprintf-posix.m4: New file.
61831         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
61832         REPLACE_VFPRINTF.
61833         * lib/stdio_.h (vfprintf): New declaration.
61834         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
61835         REPLACE_VFPRINTF.
61836
61837 2007-03-08  Bruno Haible  <bruno@clisp.org>
61838
61839         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
61840
61841 2007-03-08  Bruno Haible  <bruno@clisp.org>
61842
61843         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
61844         instead of 'expr' invocations.
61845         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61846         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61847         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61848         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61849         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61850         Suggested by Paul Eggert.
61851
61852 2007-03-08  Bruno Haible  <bruno@clisp.org>
61853
61854         * modules/fseterr-tests: New file.
61855         * tests/test-fseterr.c: New file.
61856
61857         * modules/fseterr: New file.
61858         * lib/fseterr.h: New file.
61859         * lib/fseterr.c: New file.
61860
61861 2007-03-08  Bruno Haible  <bruno@clisp.org>
61862
61863         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
61864         * lib/getopt_.h: Likewise.
61865         * lib/mbswidth.h: Likewise.
61866         * lib/setenv.h: Likewise.
61867         * lib/vasnprintf.h: Likewise.
61868         * lib/vasprintf.h: Likewise.
61869         * lib/verror.h: Likewise.
61870         * lib/xsetenv.h: Likewise.
61871         * lib/xvasprintf.h: Likewise.
61872
61873 2007-03-08  Jim Meyering  <jim@meyering.net>
61874
61875         * users.txt: Add parted.
61876
61877         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
61878
61879 2007-03-07  Bruno Haible  <bruno@clisp.org>
61880
61881         * m4/printf.m4: Make the shell script snippets copy&pastable.
61882
61883 2007-03-02  Bruno Haible  <bruno@clisp.org>
61884
61885         * lib/netinet_in_.h: New file.
61886         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
61887         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
61888         * modules/netinet_in (Files): Add lib/netinet_in_.h.
61889         (Depends-on): Add absolute-header.
61890         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
61891         into netinet/in.h.
61892
61893 2007-03-03  Bruno Haible  <bruno@clisp.org>
61894
61895         * lib/sys_select_.h: New file.
61896         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
61897         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
61898         * modules/sys_select (Files): Add lib/sys_select_.h.
61899         (Depends-on): Add absolute-header.
61900         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
61901         into sys/select.h.
61902
61903 2007-03-02  Bruno Haible  <bruno@clisp.org>
61904
61905         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
61906         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
61907         values.
61908         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
61909         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
61910         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
61911         * modules/sys_socket (Depends-on): Add absolute-header.
61912         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
61913         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
61914         (Include): Remove requirement of inclusion of <sys/types.h>.
61915
61916 2007-03-02  Bruno Haible  <bruno@clisp.org>
61917
61918         * lib/byteswap_.h (bswap_32): Fix formula.
61919
61920 2007-03-06  Bruno Haible  <bruno@clisp.org>
61921
61922         * modules/sprintf-posix-tests: New file.
61923         * tests/test-sprintf-posix.c: New file.
61924
61925         * modules/sprintf-posix: New file.
61926         * lib/sprintf.c: New file.
61927         * m4/sprintf-posix.m4: New file.
61928         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
61929         REPLACE_SPRINTF.
61930         * lib/stdio_.h (sprintf): New declaration.
61931         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
61932         REPLACE_SPRINTF.
61933
61934 2007-03-06  Bruno Haible  <bruno@clisp.org>
61935
61936         * modules/vsprintf-posix-tests: New file.
61937         * tests/test-vsprintf-posix.c: New file.
61938         * tests/test-sprintf-posix.h: New file.
61939
61940         * modules/vsprintf-posix: New file.
61941         * lib/vsprintf.c: New file.
61942         * m4/vsprintf-posix.m4: New file.
61943         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
61944         REPLACE_VSPRINTF.
61945         * lib/stdio_.h (vsprintf): New declaration.
61946         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
61947         REPLACE_VSPRINTF.
61948
61949 2007-03-06  Bruno Haible  <bruno@clisp.org>
61950
61951         * modules/vsnprintf (Depend-on): Remove minmax.
61952
61953 2007-03-06  Bruno Haible  <bruno@clisp.org>
61954
61955         * modules/snprintf-posix-tests: New file.
61956         * tests/test-snprintf-posix.c: New file.
61957
61958         * modules/snprintf-posix: New file.
61959         * m4/snprintf-posix.m4: New file.
61960         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
61961         gl_FUNC_SNPRINTF.
61962         (gl_FUNC_SNPRINTF): Invoke it.
61963         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
61964         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
61965         is set.
61966         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
61967
61968 2007-03-06  Bruno Haible  <bruno@clisp.org>
61969
61970         * modules/vsnprintf-posix-tests: New file.
61971         * tests/test-vsnprintf-posix.c: New file.
61972         * tests/test-snprintf-posix.h: New file.
61973
61974         * modules/vsnprintf-posix: New file.
61975         * m4/vsnprintf-posix.m4: New file.
61976         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
61977         gl_FUNC_VSNPRINTF.
61978         (gl_FUNC_VSNPRINTF): Invoke it.
61979         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
61980         * lib/stdio_.h (vsnprintf): Define as a replacement if
61981         REPLACE_VSNPRINTF is set.
61982         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
61983
61984 2007-03-06  Bruno Haible  <bruno@clisp.org>
61985
61986         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
61987         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
61988
61989 2007-03-06  Bruno Haible  <bruno@clisp.org>
61990
61991         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
61992         (asinl): Declare also if HAVE_DECL_ASINL is set.
61993         (atanl): Declare also if HAVE_DECL_ATANL is set.
61994         (ceill): Declare also if HAVE_DECL_CEILL is set.
61995         (cosl): Declare also if HAVE_DECL_COSL is set.
61996         (expl): Declare also if HAVE_DECL_EXPL is set.
61997         (floorl): Declare also if HAVE_DECL_FLOORL is set.
61998         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
61999         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
62000         (logl): Declare also if HAVE_DECL_LOGL is set.
62001         (sinl): Declare also if HAVE_DECL_SINL is set.
62002         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
62003         (tanl): Declare also if HAVE_DECL_TANL is set.
62004         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
62005         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
62006         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
62007         declaration of frexpl, ldexpl.
62008         * modules/printf-frexpl (Depends-on): Add math.
62009         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
62010
62011 2007-03-05  Bruno Haible  <bruno@clisp.org>
62012
62013         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
62014         frexpl and ldexpl are declared.
62015         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
62016
62017 2007-03-05  Bruno Haible  <bruno@clisp.org>
62018
62019         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
62020         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
62021
62022 2007-03-05  Bruno Haible  <bruno@clisp.org>
62023
62024         * lib/stdio_.h: Include <stddef.h>.
62025
62026 2007-03-05  Bruno Haible  <bruno@clisp.org>
62027
62028         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
62029
62030 2007-03-05  Bruno Haible  <bruno@clisp.org>
62031
62032         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
62033         NetBSD 4, from Ralf Wildenhues.
62034
62035 2007-03-04  Bruno Haible  <bruno@clisp.org>
62036
62037         * lib/vasprintf.h: Update #if logic for the case when the functions
62038         exist but are overridden.
62039
62040 2007-03-04  Bruno Haible  <bruno@clisp.org>
62041
62042         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
62043         implementations: glibc-2.4 and MacOS X 10.3.
62044         * tests/test-vasnprintf-posix.c (test_function): Test also the case
62045         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
62046         * tests/test-vasprintf-posix.c (test_function): Likewise.
62047
62048 2007-03-04  Bruno Haible  <bruno@clisp.org>
62049
62050         * modules/vasprintf-posix-tests: New file.
62051         * tests/test-vasprintf-posix.c: New file.
62052
62053         * modules/vasprintf-posix: New file.
62054         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
62055         defined.
62056         * m4/vasprintf-posix.m4: New file.
62057         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
62058         gl_FUNC_VASPRINTF.
62059         (gl_FUNC_VASPRINTF): Invoke it.
62060         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
62061         here.
62062         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
62063
62064 2007-03-04  Bruno Haible  <bruno@clisp.org>
62065
62066         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
62067         REPLACE_GETTIMEOFDAY.
62068         * modules/sys_time (Makefile.am): Likewise.
62069         * m4/sys_time_h.m4: Likewise.
62070         * m4/gettimeofday.m4: Likewise.
62071
62072 2007-03-04  Bruno Haible  <bruno@clisp.org>
62073
62074         * modules/vasnprintf-posix-tests: New file.
62075         * tests/test-vasnprintf-posix.c: New file.
62076
62077         * modules/vasnprintf-posix: New file.
62078         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
62079         printf-frexpl.h.
62080         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
62081         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
62082         REPLACE_VASNPRINTF is defined.
62083         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
62084         gl_FUNC_VASNPRINTF.
62085         (gl_FUNC_VASNPRINTF): Invoke it.
62086         * m4/vasnprintf-posix.m4: New file.
62087         * m4/printf.m4: New file.
62088
62089 2007-03-04  Bruno Haible  <bruno@clisp.org>
62090
62091         Compile progreloc.c only if --enable-relocatable is specified.
62092         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
62093         if --enable-relocatable was specified.
62094         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
62095         lib_SOURCES.
62096
62097 2007-03-04  Jim Meyering  <jim@meyering.net>
62098
62099         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
62100         Use it consistently, rather than enumerating errno constants.
62101
62102 2007-03-04  Bruno Haible  <bruno@clisp.org>
62103
62104         * modules/xvasprintf-tests: New file.
62105         * tests/test-xvasprintf.c: New file.
62106
62107         * modules/vasprintf-tests: New file.
62108         * tests/test-vasprintf.c: New file.
62109
62110         * modules/vasnprintf-tests: New file.
62111         * tests/test-vasnprintf.c: New file.
62112
62113         * modules/vsnprintf-tests: New file.
62114         * tests/test-vsnprintf.c: New file.
62115
62116         * modules/snprintf-tests: New file.
62117         * tests/test-snprintf.c: New file.
62118
62119 2007-03-04  Bruno Haible  <bruno@clisp.org>
62120
62121         Compile relocatable.c only if --enable-relocatable is specified.
62122         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
62123         gl_RELOCATABLE_LIBRARY.
62124         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
62125         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
62126         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
62127         gl_RELOCATABLE_LIBRARY.
62128         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
62129         (Makefile.am): Remove lib_SOURCES.
62130         * modules/relocatable-lib-lgpl (configure.ac): Invoke
62131         gl_RELOCATABLE_LIBRARY.
62132         (Makefile.am): Remove lib_SOURCES.
62133         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
62134         always.
62135         * modules/relocatable-prog-wrapper (configure.ac): Invoke
62136         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
62137
62138 2007-03-04  Bruno Haible  <bruno@clisp.org>
62139
62140         * modules/argmatch-tests: New file.
62141         * tests/test-argmatch.c: New file.
62142
62143         * tests/test-allocsa.c (main): Halve the number of loop runs.
62144
62145         * modules/alloca-opt-tests: New file.
62146         * tests/test-alloca-opt.c: New file.
62147
62148 2007-03-04  Jim Meyering  <jim@meyering.net>
62149
62150         Work around difference between Linux ACLs and Solaris 10 ZFS.
62151         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
62152         for EINVAL.
62153
62154 2007-03-03  Bruno Haible  <bruno@clisp.org>
62155
62156         * modules/relocatable-prog (Depends-on): Add back progreloc's
62157         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
62158
62159 2007-03-03  Bruno Haible  <bruno@clisp.org>
62160
62161         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
62162         * modules/relocatable-lib: New file.
62163
62164 2007-03-03  Bruno Haible  <bruno@clisp.org>
62165
62166         * modules/relocatable-prog: Renamed from modules/relocatable.
62167         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
62168
62169 2007-03-03  Bruno Haible  <bruno@clisp.org>
62170
62171         * modules/relocatable-script (Files): Add doc/relocatable.texi,
62172         m4/relocatable-lib.m4.
62173         (Depends-on): Remove 'relocatable'.
62174         (configure.ac): Add gl_RELOCATABLE_NOP.
62175
62176 2007-03-03  Bruno Haible  <bruno@clisp.org>
62177
62178         * modules/relocatable-prog-wrapper: New file.
62179         * modules/relocatable (Depends-on): Add it. Remove all other
62180         dependencies except progname.
62181         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
62182
62183         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
62184         (gl_FUNC_STRERROR): Nop.
62185         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
62186
62187         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
62188         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
62189
62190         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
62191         (gl_FUNC_READLINK): Update.
62192
62193         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
62194
62195 2007-03-03  Bruno Haible  <bruno@clisp.org>
62196
62197         * lib/xreadlink.c: Include <unistd.h> unconditionally.
62198         * modules/xreadlink (Depends-on): Add unistd.
62199         * modules/xreadlink-with-size (Depends-on): Likewise.
62200
62201 2007-03-03  Bruno Haible  <bruno@clisp.org>
62202
62203         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
62204         extracted from gt_FUNC_SETENV.
62205         (gt_FUNC_SETENV): Remove macro.
62206         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
62207         remove gt_FUNC_SETENV.
62208
62209 2007-03-03  Bruno Haible  <bruno@clisp.org>
62210
62211         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
62212         ENABLE_RELOCATABLE here.
62213         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
62214
62215 2007-03-03  Bruno Haible  <bruno@clisp.org>
62216
62217         * modules/rbtreehash-list-tests (Depends-on): Add progname.
62218         * tests/test-rbtreehash_list.c: Include progname.h.
62219         (main): Call set_program_name.
62220
62221         * modules/rbtree-oset-tests (Depends-on): Add progname.
62222         * tests/test-rbtree_oset.c: Include progname.h.
62223         (main): Call set_program_name.
62224
62225         * modules/rbtree-list-tests (Depends-on): Add progname.
62226         * tests/test-rbtree_list.c: Include progname.h.
62227         (main): Call set_program_name.
62228
62229         * modules/linked-list-tests (Depends-on): Add progname.
62230         * tests/test-linked_list.c: Include progname.h.
62231         (main): Call set_program_name.
62232
62233 2007-03-03  Bruno Haible  <bruno@clisp.org>
62234
62235         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
62236         All uses of __restrict changed to _Restrict_.
62237         * lib/glob_.h (__restrict): Remove macro.
62238
62239 2007-03-02  Bruno Haible  <bruno@clisp.org>
62240
62241         * modules/gettext (configure.ac): Require gettext infrastructure
62242         from version 0.16.1.
62243
62244 2007-03-02  Bruno Haible  <bruno@clisp.org>
62245
62246         * modules/linkedhash-list-tests (Depends-on): Add progname.
62247         * tests/test-linkedhash_list.c: Include progname.h.
62248         (main): Call set_program_name.
62249
62250         * modules/carray-list-tests (Depends-on): Add progname.
62251         * tests/test-carray_list.c: Include progname.h.
62252         (main): Call set_program_name.
62253
62254         * modules/avltreehash-list-tests (Depends-on): Add progname.
62255         * tests/test-avltreehash_list.c: Include progname.h.
62256         (main): Call set_program_name.
62257
62258         * modules/avltree-oset-tests (Depends-on): Add progname.
62259         * tests/test-avltree_oset.c: Include progname.h.
62260         (main): Call set_program_name.
62261
62262         * modules/avltree-list-tests (Depends-on): Add progname.
62263         * tests/test-avltree_list.c: Include progname.h.
62264         (main): Call set_program_name.
62265
62266         * modules/array-oset-tests (Depends-on): Add progname.
62267         * tests/test-array_oset.c: Include progname.h.
62268         (main): Call set_program_name.
62269
62270         * modules/array-list-tests (Depends-on): Add progname.
62271         * tests/test-array_list.c: Include progname.h.
62272         (main): Call set_program_name.
62273
62274         * modules/argp-tests (Depends-on): Add progname.
62275         * tests/test-argp.c: Include argp.h first. Include progname.h.
62276         (main): Call set_program_name.
62277
62278 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
62279
62280         * doc/gnulib-tool.texi (Initial import): Reword description of
62281         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
62282         limited effect even if defined after the first system include.
62283
62284 2007-03-01  Bruno Haible  <bruno@clisp.org>
62285
62286         * build-aux/config.libpath: Update to libtool-1.5.22.
62287         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
62288
62289 2007-03-01  Bruno Haible  <bruno@clisp.org>
62290
62291         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
62292         foo_CFLAGS.
62293         Reported by Ralf Wildenhues.
62294
62295 2007-03-01  Bruno Haible  <bruno@clisp.org>
62296
62297         * build-aux/install-reloc: Remove object files left over by some
62298         compilers.
62299         Reported by Ralf Wildenhues.
62300
62301 2007-03-01  Bruno Haible  <bruno@clisp.org>
62302
62303         * build-aux/install-reloc: Break long lines.
62304
62305 2007-03-01  Bruno Haible  <bruno@clisp.org>
62306
62307         * doc/relocatable.texi: Document that it may not work on OpenBSD.
62308         Reported by Ralf Wildenhues.
62309
62310 2007-03-01  Bruno Haible  <bruno@clisp.org>
62311
62312         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
62313         include ordering constraints.
62314
62315 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
62316
62317         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
62318         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
62319         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
62320         as another example.
62321         * lib/time_.h: Fix misspelling.
62322         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
62323         Require gl_HEADER_TIME_H_DEFAULTS.
62324         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
62325         * m4/time_r.m4 (gl_TIME_R): Likewise.
62326         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
62327
62328 2007-03-01  Bruno Haible  <bruno@clisp.org>
62329
62330         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
62331         * m4/utimens.m4 (gl_UTIMENS): Likewise.
62332
62333 2007-03-01  Jim Meyering  <jim@meyering.net>
62334
62335         * modules/xreadlink (Maintainer): Add my name.
62336         * modules/xreadlink-with-size (Depends-on): Alphabetize.
62337
62338 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
62339             Bruno Haible  <bruno@clisp.org>
62340
62341         * build-aux/install-reloc: Compile also c-ctype.c.
62342         * build-aux/relocatable.sh.in: New file.
62343         * doc/relocatable.texi: New file.
62344         * doc/relocatable-maint.texi: New file.
62345         * doc/gnulib.texi: Include relocatable-maint.texi.
62346         * lib/progreloc.c: Include unistd.h unconditionally.
62347         * lib/relocwrapper.c: Include unistd.h unconditionally.
62348         Include c-ctype.h.
62349         (add_dotbin): Use c_tolower.
62350         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
62351         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
62352         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
62353         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
62354         to m4/relocatable-lib.m4.
62355         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
62356         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
62357         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
62358         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
62359         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
62360         * modules/relocatable: New file.
62361         * modules/relocatable-lib: New file.
62362         * modules/relocatable-script: New file.
62363
62364 2007-02-28  Bruno Haible  <bruno@clisp.org>
62365
62366         Import --enable-relocatable infrastructure.
62367         * build-aux/config.libpath: New file, from GNU gettext.
62368         * build-aux/install-reloc: New file, from GNU gettext.
62369         * build-aux/reloc-ldflags: New file, from GNU gettext.
62370         * lib/relocatable.h: New file, from GNU gettext.
62371         * lib/relocatable.c: New file, from GNU gettext.
62372         * lib/relocwrapper.c: New file, from GNU gettext.
62373         * m4/relocatable.m4: New file, from GNU gettext.
62374
62375 2007-02-28  Bruno Haible  <bruno@clisp.org>
62376
62377         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
62378
62379         * modules/xreadlink: New file, from GNU gettext with modifications.
62380         * lib/xreadlink.c: New file, from GNU gettext.
62381         * lib/xreadlink.h: Add comments.
62382         (xreadlink): New declaration.
62383
62384         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
62385         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
62386         lib/xreadlink-with-size.c.
62387         (configure.ac): Remove gl_XREADLINK invocation.
62388         (Makefile.am): Augment lib_SOURCES.
62389         * m4/xreadlink.m4: Remove file.
62390         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
62391         (xreadlink_with_size): Renamed from xreadink.
62392         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
62393         * modules/canonicalize (Depends-on): Replace xreadlink with
62394         xreadlink-with-size.
62395         * lib/canonicalize.c (canonicalize_filename_mode): Update.
62396
62397 2007-02-25  Jim Meyering  <jim@meyering.net>
62398
62399         * build-aux/announce-gen: When complaining about excess arguments,
62400         list them.
62401
62402 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
62403
62404         * README: Document signed integer overflow situation more
62405         accurately.
62406
62407 2007-02-25  Bruno Haible  <bruno@clisp.org>
62408
62409         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
62410         'a' or 'A' conversion.
62411
62412 2007-02-25  Bruno Haible  <bruno@clisp.org>
62413
62414         * modules/filename: Renamed from modules/pathname.
62415         (Files): Replace lib/pathname.h with lib/filename.h. Replace
62416         lib/concatpath.c with lib/concat-filename.c.
62417         (Makefile.am): Update.
62418         (Include): Replace pathname.h with filename.h.
62419         * lib/filename.h: Renamed from lib/pathname.h.
62420         (concatenated_filename): Renamed from concatenated_pathname.
62421         * lib/concat-filename.c: Renamed from lib/concatpath.c.
62422         (concatenated_filename): Renamed from concatenated_pathname.
62423         * lib/findprog.c: Include filename.h instead of pathname.h.
62424         (find_in_path): Update.
62425         * lib/javacomp.c: Include filename.h instead of pathname.h.
62426         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
62427         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
62428         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
62429         is_oldgcj_14_13_usable, is_javac_usable): Update.
62430         * lib/javaexec.c: Include filename.h instead of pathname.h.
62431         (execute_java_class): Update.
62432         * modules/findprog: Update.
62433         * modules/javacomp: Update.
62434         * modules/javaexec: Update.
62435         * MODULES.html.sh (File system functions): Add 'filename', remove
62436         'pathname'.
62437
62438 2007-02-25  Bruno Haible  <bruno@clisp.org>
62439
62440         * modules/printf-frexpl-tests: New file.
62441         * tests/test-printf-frexpl.c: New file.
62442
62443         * modules/printf-frexpl: New file.
62444         * lib/printf-frexpl.h: New file.
62445         * lib/printf-frexpl.c: New file.
62446         * m4/printf-frexpl.m4: New file.
62447
62448 2007-02-25  Bruno Haible  <bruno@clisp.org>
62449
62450         * modules/printf-frexp-tests: New file.
62451         * tests/test-printf-frexp.c: New file.
62452
62453         * modules/printf-frexp: New file.
62454         * lib/printf-frexp.h: New file.
62455         * lib/printf-frexp.c: New file.
62456         * m4/printf-frexp.m4: New file.
62457
62458 2007-02-25  Bruno Haible  <bruno@clisp.org>
62459
62460         Assume automake >= 1.10 for the tests.
62461         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
62462         * modules/arctwo-tests: Likewise.
62463         * modules/argp-tests: Likewise.
62464         * modules/avltree-list-tests: Likewise.
62465         * modules/avltree-oset-tests: Likewise.
62466         * modules/avltreehash-list-tests: Likewise.
62467         * modules/carray-list-tests: Likewise.
62468         * modules/crc-tests: Likewise.
62469         * modules/des-tests: Likewise.
62470         * modules/gc-arcfour-tests: Likewise.
62471         * modules/gc-arctwo-tests: Likewise.
62472         * modules/gc-des-tests: Likewise.
62473         * modules/gc-hmac-md5-tests: Likewise.
62474         * modules/gc-hmac-sha1-tests: Likewise.
62475         * modules/gc-md2-tests: Likewise.
62476         * modules/gc-md4-tests: Likewise.
62477         * modules/gc-md5-tests: Likewise.
62478         * modules/gc-pbkdf2-sha1-tests: Likewise.
62479         * modules/gc-rijndael-tests: Likewise.
62480         * modules/gc-sha1-tests: Likewise.
62481         * modules/gc-tests: Likewise.
62482         * modules/getaddrinfo-tests: Likewise.
62483         * modules/hmac-md5-tests: Likewise.
62484         * modules/hmac-sha1-tests: Likewise.
62485         * modules/linked-list-tests: Likewise.
62486         * modules/linkedhash-list-tests: Likewise.
62487         * modules/lock-tests: Likewise.
62488         * modules/md2-tests: Likewise.
62489         * modules/md4-tests: Likewise.
62490         * modules/md5-tests: Likewise.
62491         * modules/rbtree-list-tests: Likewise.
62492         * modules/rbtree-oset-tests: Likewise.
62493         * modules/rbtreehash-list-tests: Likewise.
62494         * modules/read-file-tests: Likewise.
62495         * modules/rijndael-tests: Likewise.
62496         * modules/stdint-tests: Likewise.
62497         * modules/tls-tests: Likewise.
62498
62499 2007-02-24  Bruno Haible  <bruno@clisp.org>
62500
62501         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
62502         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
62503         function; instead check whether isnan with a double argument links.
62504         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
62505         function; instead check whether isnan with a 'long double' argument
62506         links.
62507         Reported by Eric Blake <ebb9@byu.net>.
62508
62509 2007-02-24  Bruno Haible  <bruno@clisp.org>
62510
62511         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
62512         defined.
62513         * lib/isnanl.c: Remove all code. Just include isnan.c.
62514         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
62515
62516 2007-02-25  Jim Meyering  <jim@meyering.net>
62517
62518         Avoid conflicting types for 'unsetenv' on FreeBSD.
62519         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
62520         conflicting with FreeBSD's (5.0 and 6.1) function declaration
62521         in stdlib.h.
62522
62523 2007-02-24  Bruno Haible  <bruno@clisp.org>
62524
62525         * modules/isnanl-nolibm-tests: New file.
62526         * tests/test-isnanl.c: New file.
62527
62528         * modules/isnanl-nolibm: New file.
62529         * lib/isnanl.h: New file.
62530         * lib/isnanl.c: New file.
62531         * m4/isnanl.m4: New file.
62532
62533 2007-02-24  Bruno Haible  <bruno@clisp.org>
62534
62535         * modules/isnan-nolibm-tests: New file.
62536         * tests/test-isnan.c: New file.
62537
62538         * modules/isnan-nolibm: New file.
62539         * lib/isnan.h: New file.
62540         * lib/isnan.c: New file.
62541         * m4/isnan.m4: New file.
62542
62543 2007-02-24  Bruno Haible  <bruno@clisp.org>
62544
62545         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
62546         assume that an exponent fits in 20 bits.
62547
62548 2007-02-24  Jim Meyering  <jim@meyering.net>
62549
62550         * m4/regex.m4: Update the description of the configure-time option,
62551         --without-included-regex, to state accurately what the defaults are,
62552         and perhaps to give people an idea why using this option is risky.
62553
62554 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
62555
62556         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
62557         loops on small arguments.  This attempts to avoid the problem
62558         Bruno Haible reported for AIX 4.3.2 in
62559         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
62560
62561 2007-02-23  Bruno Haible  <bruno@clisp.org>
62562
62563         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
62564         Needed for help2man.
62565
62566 2007-02-23  Karl Berry  <karl@gnu.org>
62567
62568         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
62569         exists, foo.h should be cvs-ignored, not committed.
62570
62571 2007-02-23  Eric Blake  <ebb9@byu.net>
62572
62573         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
62574         * lib/stat-time.h (includes): Likewise.
62575         * lib/utimecmp.c (includes): Likewise.
62576         * lib/utimens.h (includes): Likewise.
62577         * lib/getdate.y (includes): Also include "timespec.h" for use
62578         internal to the module.
62579         * modules/utimens (Depends-on): Revert yesterday's patch.
62580         * modules/nanosleep (Depends-on): Add missing dependency.
62581
62582 2007-02-22  Bruno Haible  <bruno@clisp.org>
62583
62584         * lib/glob.c: Don't include getlogin_r.h.
62585
62586 2007-02-22  Jim Meyering  <jim@meyering.net>
62587
62588         * modules/utimens (Depends-on): Add timespec, required for
62589         utimens.h's inclusion of timespec.h.
62590
62591 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
62592
62593         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
62594         long unreadable paths in GNU/Linux.  Problem reported by Andreas
62595         Schwab in
62596         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
62597         I'll try to think of a better way to fix the Solaris problem.
62598
62599         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
62600         like glibc; on Solaris 10, it fails with errno == EINVAL.
62601         POSIX says the behavior is unspecified if the first argument is NULL,
62602         so play it safe and never pass NULL to the system getcwd.
62603
62604 2007-02-21  Jim Meyering  <jim@meyering.net>
62605
62606         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
62607         of gettimeofday.  It would conflict with the one now always
62608         provided via sys_time_.h.  Reported by Matthew Woehlke, as
62609         an IRIX 6.5 build failure.
62610
62611 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
62612
62613         Minor fixups to port to Solaris 10 with Sun C 5.8.
62614         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
62615         * modules/getcwd (Depends-on): Add dirfd.
62616         * lib/putenv.c (putenv): #undef it.
62617         (rpl_putenv): New decl.
62618         (malloc, free): Include <stdlib.h> rather than prototyping separately.
62619
62620 2007-02-20  Bruno Haible  <bruno@clisp.org>
62621
62622         * modules/stdio-tests: New file.
62623         * tests/test-stdio.c: New file.
62624
62625         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
62626         (Depends-on): Add stdio.
62627         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
62628         (Include): Use <stdio.h> instead of vsnprintf.h.
62629         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
62630         HAVE_DECL_VSNPRINTF.
62631         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
62632
62633         * modules/snprintf (Files): Remove lib/snprintf.h.
62634         (Depends-on): Add stdio.
62635         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
62636         (Include): Use <stdio.h> instead of snprintf.h.
62637         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
62638         HAVE_DECL_SNPRINTF.
62639         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
62640         * lib/getaddrinfo.c: Likewise.
62641
62642         * modules/stdio: New file.
62643         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
62644         * lib/snprintf.h: Remove file.
62645         * lib/vsnprintf.h: Remove file.
62646         * lib/.cppi-disable: Remove snprintf.h.
62647         * m4/stdio_h.m4: New file.
62648         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
62649
62650 2007-02-20  Jim Meyering  <jim@meyering.net>
62651
62652         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
62653         used by e.g., mingw.  From Bruno Haible.
62654
62655 2007-02-19  Bruno Haible  <bruno@clisp.org>
62656
62657         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
62658         warnings.
62659         Reported by Ben Pfaff <blp@cs.stanford.edu>.
62660
62661 2007-02-19  Bruno Haible  <bruno@clisp.org>
62662
62663         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
62664         from mingw users.
62665
62666 2007-02-19  Bruno Haible  <bruno@clisp.org>
62667
62668         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
62669         warnings.
62670         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
62671
62672 2007-02-19  Jim Meyering  <jim@meyering.net>
62673
62674         Don't use FD after a successful "fdopendir (fd)".
62675         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
62676         Reset it by calling dirfd on the just-obtained DIR*.
62677
62678         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
62679         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
62680
62681 2007-02-18  Bruno Haible  <bruno@clisp.org>
62682
62683         * lib/readlink.c: Include <unistd.h>.
62684         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
62685         HAVE_READLINK.
62686         * modules/readlink (Depends-on): Add unistd.
62687         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62688         (Include): Add <unistd.h>.
62689
62690         * lib/getlogin_r.h: Remove file.
62691         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
62692         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
62693         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
62694         HAVE_DECL_GETLOGIN_R.
62695         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
62696         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62697         (Include): Use <unistd.h> instead of getlogin_r.h.
62698
62699         * lib/getcwd.h: Remove file.
62700         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
62701         * lib/xgetcwd.c: Likewise.
62702         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
62703         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
62704         * modules/getcwd (Files): Remove lib/getcwd.h.
62705         (Depends-on): Add unistd.
62706         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62707         (Include): Use <unistd.h> instad of getcwd.h.
62708
62709         * lib/ftruncate.c: Include <unistd.h> first.
62710         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
62711         Set HAVE_FTRUNCATE.
62712         * modules/ftruncate (Depends-on): Add unistd.
62713         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62714
62715         * lib/fchdir.c: Include <unistd.h> first.
62716         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
62717         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
62718         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
62719         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62720         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
62721
62722         * lib/dup2.c: Include <unistd.h> first.
62723         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
62724         HAVE_DUP2.
62725         * modules/dup2 (Depends-on): Add unistd.
62726         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62727
62728         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
62729         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
62730         REPLACE_CHOWN. Don't define chown as a macro here.
62731         * modules/chown (Depends-on): Add unistd.
62732         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62733
62734         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
62735         Add definition for GL_LINK_WARNING.
62736         (chown, dup2): New declarations.
62737         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
62738         link warning.
62739         (ftruncate): New declaration.
62740         (getcwd): New declaration, taken from old getcwd.h.
62741         (getlogin_r): New declaration, taken from old getlogin_r.h.
62742         (readlink): New declaration.
62743         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
62744         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
62745         (gl_PREREQ_UNISTD): Remove macro.
62746         (gl_UNISTD_MODULE_INDICATOR): New macro.
62747         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
62748         many new variables. Don't set UNISTD_H.
62749         * modules/unistd (Description): Change.
62750         (Depends-on): Add link-warning.
62751         (configure.ac): Update.
62752         (Makefile.am): Create unistd.h always. Substitute many new variables
62753         into it.
62754
62755 2007-02-18  Bruno Haible  <bruno@clisp.org>
62756
62757         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
62758         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
62759         HAVE_GETSUBOPT.
62760         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
62761         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
62762         * lib/getsubopt.h: Remove file.
62763         * modules/getsubopt (Files): Remove lib/getsubopt.h.
62764         (Depends-on): Add stdlib.
62765         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
62766         (Includes): Use <stdlib.h> instead of getsubopt.h.
62767         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
62768         Set HAVE_GETSUBOPT.
62769         * lib/getsubopt.c: Don't include getsubopt.h.
62770
62771 2007-02-18  Bruno Haible  <bruno@clisp.org>
62772
62773         * modules/fchdir (Depends-on): Add dup2.
62774
62775 2007-02-18  Bruno Haible  <bruno@clisp.org>
62776
62777         * lib/stdlib_.h: Handle glibc's special invocation convention
62778         specially.
62779
62780 2007-02-18  Bruno Haible  <bruno@clisp.org>
62781
62782         * modules/stdlib-tests: New file.
62783         * tests/test-stdlib.c: New file.
62784
62785         * modules/mkstemp (Files): Remove lib/mkstemp.h.
62786         (Depends-on): Add stdlib.
62787         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
62788         (Includes): Use <stdlib.h> instead of mkstemp.h.
62789         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
62790         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
62791         * lib/mkstemp.c: Don't include mkstemp.h.
62792         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
62793         * lib/stdlib--.h: Don't include mkstemp.h.
62794
62795         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
62796         (Depends-on): Add stdlib.
62797         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
62798         (Includes): Use <stdlib.h> instead of mkdtemp.h.
62799         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
62800         HAVE_MKDTEMP.
62801         * lib/mkdtemp.c: Don't include mkdtemp.h.
62802         * lib/clean-temp.c: Don't include mkdtemp.h.
62803
62804         * modules/exit (Files): Remove lib/exit.h.
62805         (Depends-on): Add stdlib.
62806         (Makefile.am): Remove lib_SOURCES.
62807         (Include): Use <stdlib.h> instead of exit.h.
62808         * lib/argmatch.c: Don't include exit.h.
62809         * lib/execute.c: Likewise.
62810         * lib/pagealign_alloc.c: Likewise.
62811         * lib/pipe.c: Likewise.
62812         * lib/wait-process.c: Likewise.
62813         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
62814         * lib/exitfail.c: Likewise.
62815         * lib/savewd.c: Likewise.
62816         * lib/xsetenv.c: Likewise.
62817
62818         * modules/stdlib: New file.
62819         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
62820         and extra comments about mkstemp().
62821         * lib/exit.h: Remove file.
62822         * lib/mkdtemp.h: Remove file.
62823         * lib/mkstemp.h: Remove file.
62824         * m4/stdlib_h.m4: New file.
62825         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
62826
62827 2007-02-18  Bruno Haible  <bruno@clisp.org>
62828
62829         * modules/math-tests: New file.
62830         * tests/test-math.c: New file.
62831
62832         * modules/math: New file.
62833         * modules/mathl (Files): Remove lib/mathl.h.
62834         (Depends-on): Add math.
62835         (Makefile.am): Don't mention mathl.h.
62836         (Include): Use <math.h> instead of mathl.h.
62837         * lib/math_.h: New file.
62838         * lib/mathl.h: Remove file.
62839         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
62840         mathl.h.
62841         * lib/asinl.c: Likewise.
62842         * lib/atanl.c: Likewise.
62843         * lib/ceill.c: Likewise.
62844         * lib/cosl.c: Likewise.
62845         * lib/expl.c: Likewise.
62846         * lib/floorl.c: Likewise.
62847         * lib/frexpl.c: Likewise.
62848         * lib/ldexpl.c: Likewise.
62849         * lib/logl.c: Likewise.
62850         * lib/sincosl.c: Likewise.
62851         * lib/sinl.c: Likewise.
62852         * lib/sqrtl.c: Likewise.
62853         * lib/tanl.c: Likewise.
62854         * lib/trigl.c: Likewise.
62855         * m4/math_h.m4: New file.
62856         * MODULES.html.sh (Mathematics): Add math.
62857
62858 2007-02-17  Bruno Haible  <bruno@clisp.org>
62859
62860         * modules/wctype-tests: New file.
62861         * tests/test-wctype.c: New file.
62862
62863         * modules/wchar-tests: New file.
62864         * tests/test-wchar.c: New file.
62865
62866         * modules/unistd-tests: New file.
62867         * tests/test-unistd.c: New file.
62868
62869         * modules/time-tests: New file.
62870         * tests/test-time.c: New file.
62871
62872         * modules/sysexits-tests: New file.
62873         * tests/test-sysexits.c: New file.
62874
62875         * modules/sys_time-tests: New file.
62876         * tests/test-sys_time.c: New file.
62877
62878         * modules/sys_stat-tests: New file.
62879         * tests/test-sys_stat.c: New file.
62880
62881         * modules/sys_socket-tests: New file.
62882         * tests/test-sys_socket.c: New file.
62883
62884         * modules/sys_select-tests: New file.
62885         * tests/test-sys_select.c: New file.
62886
62887         * modules/string-tests: New file.
62888         * tests/test-string.c: New file.
62889
62890         * modules/stdbool-tests: New file.
62891         * tests/test-stdbool.c: New file.
62892
62893         * modules/netinet_in-tests: New file.
62894         * tests/test-netinet_in.c: New file.
62895
62896         * modules/inttypes-tests: New file.
62897         * tests/test-inttypes.c: New file.
62898
62899         * modules/fcntl-tests: New file.
62900         * tests/test-fcntl.c: New file.
62901
62902         * modules/byteswap-tests: New file.
62903         * tests/test-byteswap.c: New file.
62904
62905         * modules/arpa_inet-tests: New file.
62906         * tests/test-arpa_inet.c: New file.
62907
62908 2007-02-17  Bruno Haible  <bruno@clisp.org>
62909
62910         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
62911         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
62912         if the corresponding module is not enabled. Emit link warnings if
62913         the function is used nevertheless.
62914         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
62915         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
62916         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
62917         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
62918         * modules/inttypes (Depends-on): Add link-warning.
62919         (Makefile.am): Copy the contents of build-aux/link-warning.h into
62920         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
62921         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
62922         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
62923         * modules/imaxdiv (configure.ac): Likewise.
62924         * modules/strtoimax (configure.ac): Likewise.
62925         * modules/strtoumax (configure.ac): Likewise.
62926
62927 2007-02-17  Bruno Haible  <bruno@clisp.org>
62928
62929         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
62930         gl_STRING_MODULE_INDICATOR_DEFAULTS.
62931         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
62932         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
62933
62934 2007-02-17  Bruno Haible  <bruno@clisp.org>
62935
62936         * modules/link-warning: New file.
62937         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
62938         * lib/string_.h (GL_LINK_WARNING): Remove definition.
62939         * modules/string (Depends-on): Add link-warning.
62940         (Makefile.am): Copy the contents of build-aux/link-warning.h into
62941         string.h.
62942         * MODULES.html.sh (Support for building libraries and executables): Add
62943         link-warning.
62944
62945 2007-02-17  Bruno Haible  <bruno@clisp.org>
62946
62947         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
62948         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
62949         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
62950         long lines.
62951
62952 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
62953             Bruno Haible  <bruno@clisp.org>
62954
62955         * modules/tmpfile: New file.
62956         * lib/tmpfile.c: New file.
62957         * m4/tmpfile.m4: New file.
62958         * MODULES.html.sh (func_all_modules): New section "Input/output".
62959
62960 2007-02-15  Bruno Haible  <bruno@clisp.org>
62961
62962         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
62963         (supports_delete_on_close): New function.
62964         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
62965
62966 2007-02-14  Bruno Haible  <bruno@clisp.org>
62967
62968         * modules/mbspcasecmp-tests: New file.
62969         * tests/test-mbspcasecmp.sh: New file.
62970         * tests/test-mbspcasecmp.c: New file.
62971
62972         New module mbspcasecmp.
62973         * modules/mbspcasecmp: New file.
62974         * lib/mbspcasecmp.c: New file.
62975         * lib/string_.h (strncasecmp): Change warning message.
62976         (mbspcasecmp): New declaration.
62977         * m4/mbspcasecmp.m4: New file.
62978         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62979         GNULIB_MBSPCASECMP.
62980         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
62981         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
62982
62983 2007-02-14  Bruno Haible  <bruno@clisp.org>
62984
62985         * modules/mbsncasecmp-tests: New file.
62986         * tests/test-mbsncasecmp.sh: New file.
62987         * tests/test-mbsncasecmp.c: New file.
62988
62989         New module mbsncasecmp.
62990         * modules/mbsncasecmp: New file.
62991         * lib/mbsncasecmp.c: New file.
62992         * lib/string_.h (mbsncasecmp): New declaration.
62993         * m4/mbsncasecmp.m4: New file.
62994         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62995         GNULIB_MBSNCASECMP.
62996         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
62997         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
62998
62999 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
63000
63001         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
63002         Verify that it doesn't overlap with our flags.
63003         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
63004         do not have the desired effect in multibyte locales; instead, use
63005         mbscasecmp.
63006         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
63007         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
63008         we don't require GNU fnmatch ourselves (if our users require it, they
63009         should do so explicitly).
63010
63011         Fix regex code so it doesn't rely on strcasecmp.
63012         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
63013         Otherwise, include gnulib's langinfo.h.
63014         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
63015         undesirable behavior in non-C locales.  Instead, rely on localecharset.
63016         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
63017         * modules/regex (FILES): Remove m4/codeset.m4.
63018         (Depends-on): Add localcharset.  Remove strcase.
63019
63020 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63021
63022         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
63023         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
63024
63025 2007-02-13  Bruno Haible  <bruno@clisp.org>
63026
63027         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
63028         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63029
63030 2007-02-12  Bruno Haible  <bruno@clisp.org>
63031
63032         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
63033         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
63034         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
63035         time warning rather than a link error.
63036
63037 2007-02-12  Bruno Haible  <bruno@clisp.org>
63038
63039         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
63040         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
63041         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63042
63043 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
63044
63045         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
63046         args, not 2.
63047
63048 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
63049
63050         New module 'time', so that apps can include <time.h> as per
63051         POSIX and GNU instead of separate include files like time_r.h
63052         and timegm.h.  This implementation tries out a simpler approach
63053         for replacing decls in standard include files (as compared to
63054         the string module), somewhat as an experiment.
63055
63056         * config/srclist.txt: Comment out mktime.c for now.
63057         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
63058         since it doesn't apply any more.  Use generic wording instead.
63059         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
63060         'time'.
63061         * lib/time_.h, m4/time_h.m4, modules/time: New files.
63062         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
63063         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
63064         Don't include <sys/types.h>; no longer needed since we assume C89.
63065         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
63066         * lib/strftime.c: Likewise.
63067         * lib/time_r.c: Likewise.
63068         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
63069         * lib/nanosleep.c: Include <time.h> first, to check interface.
63070         * lib/strptime.c: Likewise.
63071         * lib/time_r.c: Likewise.
63072         * lib/timegm.c: Likewise.
63073         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
63074         needed.
63075         * lib/timegm.c: Don't include timegm.h; no longer needed.
63076         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
63077         time.h now handles any problems in that area.
63078         (struct timespec, nanosleep): Remove; time.h now arranges for these.
63079         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
63080         that time.h defines struct timespec.
63081         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
63082         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
63083         handles that.
63084         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
63085         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
63086         needed.  Set REPLACE_LOCALTIME.
63087         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
63088         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
63089         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
63090         nanosleep; time_h.m4 now does that.  Don't require
63091         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
63092         module handles this now.
63093         * modules/getdate (Depends-on): Remove timespec.  Add time.
63094         * modules/nanosleep (Depends-on): Likewise.
63095         * modules/stat-time (Depends-on): Likewise.
63096         * modules/nanosleep (Include): Include time.h, not timespec.h.
63097         * modules/strptime (Files): Remove lib/strptime.h.
63098         (Depends-on): Add extensions, time.
63099         (Include): Include time.h, not strptime.h.
63100         * modules/time_r (Files): Remove lib/time_r.h.
63101         (Depends-on): Add time.
63102         (Include): Include time.h, not time_r.h.
63103         * modules/timegm: Likewise.
63104         * modules/timespec (Description): Now does timespec-related decls
63105         of our own, instead of struct timespec itself.
63106         (Depends-on): Add time; remove extensions.
63107         (Maintainer): Add self.
63108         * modules/utimecmp (Depends-on): Add time; remove timespec.
63109         * modules/utimens (Depends-on): Likewise.
63110         * modules/xnanosleep (Depends-on): Likewise.
63111
63112 2007-02-11  Bruno Haible  <bruno@clisp.org>
63113
63114         * lib/c-strstr.c: Include allocsa.h.
63115         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
63116         * lib/c-strcasestr.c: Include allocsa.h.
63117         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
63118         * lib/strcasestr.c: Include allocsa.h.
63119         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
63120         * lib/mbsstr.c: Include allocsa.h.
63121         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
63122         allocsa/freesa instead of malloc/free.
63123         * lib/mbscasestr.c: Include allocsa.h.
63124         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
63125         allocsa/freesa instead of malloc/free.
63126         * modules/c-strstr (Depends-on): Add allocsa.
63127         * modules/c-strcasestr (Depends-on): Likewise.
63128         * modules/strcasestr (Depends-on): Likewise.
63129         * modules/mbsstr (Depends-on): Likewise.
63130         * modules/mbscasestr (Depends-on): Likewise.
63131
63132 2007-02-11  Bruno Haible  <bruno@clisp.org>
63133
63134         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
63135
63136         * modules/mbsspn-tests: New file.
63137         * tests/test-mbsspn.sh: New file.
63138         * tests/test-mbsspn.c: New file.
63139
63140 2007-02-11  Bruno Haible  <bruno@clisp.org>
63141
63142         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
63143
63144         * modules/mbspbrk-tests: New file.
63145         * tests/test-mbspbrk.sh: New file.
63146         * tests/test-mbspbrk.c: New file.
63147
63148 2007-02-11  Bruno Haible  <bruno@clisp.org>
63149
63150         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
63151         unneeded cast.
63152
63153         * modules/mbscspn-tests: New file.
63154         * tests/test-mbscspn.sh: New file.
63155         * tests/test-mbscspn.c: New file.
63156
63157 2007-02-11  Bruno Haible  <bruno@clisp.org>
63158
63159         * modules/mbscasecmp-tests: New file.
63160         * tests/test-mbscasecmp.sh: New file.
63161         * tests/test-mbscasecmp.c: New file.
63162
63163 2007-02-11  Bruno Haible  <bruno@clisp.org>
63164
63165         Ensure O(n) worst-case complexity of mbscasestr.
63166         * lib/mbscasestr.c: Include stdbool.h.
63167         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
63168         functions.
63169         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
63170         the bookkeeping indicates that it's worth it.
63171         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
63172
63173         * modules/mbscasestr-tests: New file.
63174         * tests/test-mbscasestr1.c: New file.
63175         * tests/test-mbscasestr2.sh: New file.
63176         * tests/test-mbscasestr2.c: New file.
63177         * tests/test-mbscasestr3.sh: New file.
63178         * tests/test-mbscasestr3.c: New file.
63179         * tests/test-mbscasestr4.sh: New file.
63180         * tests/test-mbscasestr4.c: New file.
63181         * m4/locale-tr.m4: New file.
63182
63183 2007-02-11  Bruno Haible  <bruno@clisp.org>
63184
63185         Ensure O(n) worst-case complexity of mbsstr.
63186         * lib/mbsstr.c: Include stdbool.h.
63187         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
63188         functions.
63189         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
63190         bookkeeping indicates that it's worth it.
63191         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
63192
63193         * modules/mbsstr-tests: New file.
63194         * tests/test-mbsstr1.c: New file.
63195         * tests/test-mbsstr2.sh: New file.
63196         * tests/test-mbsstr2.c: New file.
63197         * tests/test-mbsstr3.sh: New file.
63198         * tests/test-mbsstr3.c: New file.
63199         * m4/locale-fr.m4: New file.
63200
63201 2007-02-11  Bruno Haible  <bruno@clisp.org>
63202
63203         * lib/mbsrchr.c (mbsrchr): Fix bug.
63204
63205         * modules/mbsrchr-tests: New file.
63206         * tests/test-mbsrchr.sh: New file.
63207         * tests/test-mbsrchr.c: New file.
63208
63209 2007-02-11  Bruno Haible  <bruno@clisp.org>
63210
63211         * lib/mbschr.c (mbschr): Fix bug.
63212
63213         * modules/mbschr-tests: New file.
63214         * tests/test-mbschr.sh: New file.
63215         * tests/test-mbschr.c: New file.
63216         * m4/locale-zh.m4: New file.
63217
63218 2007-02-11  Bruno Haible  <bruno@clisp.org>
63219
63220         Support for copying multibyte string iterators.
63221         * lib/mbiter.h: Include <string.h>.
63222         (mbiter_multi_copy): New function.
63223         (mbi_copy): New macro.
63224         * lib/mbuiter.h: Include <string.h>.
63225         (mbuiter_multi_copy): New function.
63226         (mbui_copy): New macro.
63227
63228 2007-02-11  Bruno Haible  <bruno@clisp.org>
63229
63230         New module mbslen.
63231         * modules/mbslen: New file.
63232         * lib/mbslen.c: New file.
63233         * lib/string_.h (mbslen): New declaration.
63234         * m4/mbslen.m4: New file.
63235         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63236         GNULIB_MBSLEN.
63237         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
63238         * MODULES.html.sh (Internationalization functions): Add mbslen.
63239
63240 2007-02-11  Bruno Haible  <bruno@clisp.org>
63241
63242         Ensure O(n) worst-case complexity of strcasestr substitute.
63243         * lib/strcasestr.c: Include stdbool.h.
63244         (knuth_morris_pratt): New function.
63245         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
63246         bookkeeping indicates that it's worth it.
63247         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
63248
63249         * modules/strcasestr-tests: New file.
63250         * tests/test-strcasestr.c: New file.
63251
63252 2007-02-11  Bruno Haible  <bruno@clisp.org>
63253
63254         Ensure O(n) worst-case complexity of c_strcasestr.
63255         * lib/c-strcasestr.c: Include stdbool.h, string.h.
63256         (knuth_morris_pratt): New function.
63257         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
63258         the bookkeeping indicates that it's worth it.
63259         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
63260
63261         * modules/c-strcasestr-tests: New file.
63262         * tests/test-c-strcasestr.c: New file.
63263
63264 2007-02-11  Bruno Haible  <bruno@clisp.org>
63265
63266         Ensure O(n) worst-case complexity of c_strstr.
63267         * lib/c-strstr.c: Include stdbool.h, string.h.
63268         (knuth_morris_pratt): New function.
63269         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
63270         bookkeeping indicates that it's worth it.
63271         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
63272
63273         * lib/c-strstr.c: Complete rewrite for maintainability.
63274
63275         * modules/c-strstr-tests: New file.
63276         * tests/test-c-strstr.c: New file.
63277
63278 2007-02-11  Bruno Haible  <bruno@clisp.org>
63279
63280         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
63281         5.2.1 and earlier, whereby \055 was treated just like the range
63282         delimiter '-'.
63283         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
63284
63285 2007-02-08  Bruno Haible  <bruno@clisp.org>
63286
63287         * modules/regex (Depends-on): Add stdbool.
63288         Reported by Dalibor Topic <robilad@kaffe.org>.
63289
63290 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
63291
63292         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
63293         Prefer returning from main to exiting from it.
63294         Remove unnecessary parens after sizeof.
63295
63296 2007-02-05  Bruno Haible  <bruno@clisp.org>
63297
63298         New module mbssep.
63299         * modules/mbssep: New file.
63300         * lib/mbssep.c: New file.
63301         * lib/string_.h (strsep): Add a conditional link warning.
63302         (mbssep): New declaration.
63303         * m4/mbssep.m4: New file.
63304         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63305         GNULIB_MBSSEP.
63306         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
63307         * MODULES.html.sh (Internationalization functions): Add mbssep.
63308
63309 2007-02-05  Bruno Haible  <bruno@clisp.org>
63310
63311         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
63312         Optimize search in case of 1 delimiter.
63313
63314 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
63315
63316         * lib/acl.h: Include sys/types.h before sys/acl.h.
63317
63318 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
63319
63320         Merge upstream fix for glibc bugzilla #3957:
63321
63322         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
63323
63324         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
63325         bit for RE_HAT_LISTS_NOT_NEWLINE.
63326         (build_charclass_op): Remove bogus comment.
63327
63328 2007-02-05  Simon Josefsson  <simon@josefsson.org>
63329
63330         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
63331
63332 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
63333
63334         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
63335         * lib/memmem.c [!defined _LIBC]: Include config.h.
63336
63337 2007-02-04  Bruno Haible  <bruno@clisp.org>
63338
63339         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
63340         warning message.
63341
63342 2007-02-04  Bruno Haible  <bruno@clisp.org>
63343
63344         New module mbstok_r.
63345         * modules/mbstok_r: New file.
63346         * lib/mbstok_r.c: New file.
63347         * lib/string_.h (strtok_r): Change argument names to match the
63348         comments. Add a conditional link warning.
63349         (mbstok_r): New declaration.
63350         * m4/mbstok_r.m4: New file.
63351         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63352         GNULIB_MBSTOK_R.
63353         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
63354         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
63355
63356 2007-02-04  Bruno Haible  <bruno@clisp.org>
63357
63358         New module mbsspn.
63359         * modules/mbsspn: New file.
63360         * lib/mbsspn.c: New file.
63361         * lib/string_.h (strspn): Add a conditional link warning.
63362         (mbsspn): New declaration.
63363         * m4/mbsspn.m4: New file.
63364         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63365         GNULIB_MBSSPN.
63366         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
63367         * MODULES.html.sh (Internationalization functions): Add mbsspn.
63368
63369 2007-02-04  Bruno Haible  <bruno@clisp.org>
63370
63371         New module mbspbrk.
63372         * modules/mbspbrk: New file.
63373         * lib/mbspbrk.c: New file.
63374         * lib/string_.h (strpbrk): Add a conditional link warning.
63375         (mbspbrk): New declaration.
63376         * m4/mbspbrk.m4: New file.
63377         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63378         GNULIB_MBSPBRK.
63379         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
63380         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
63381
63382 2007-02-04  Bruno Haible  <bruno@clisp.org>
63383
63384         New module mbscspn.
63385         * modules/mbscspn: New file.
63386         * lib/mbscspn.c: New file.
63387         * lib/string_.h (strcspn): Add a conditional link warning.
63388         (mbscspn): New declaration.
63389         * m4/mbscspn.m4: New file.
63390         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63391         GNULIB_MBSCSPN.
63392         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
63393         * MODULES.html.sh (Internationalization functions): Add mbscspn.
63394
63395 2007-02-04  Bruno Haible  <bruno@clisp.org>
63396
63397         New module mbscasestr, reduced goal of strcasestr.
63398         * modules/mbscasestr: New file.
63399         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
63400         (mbscasestr): Renamed from strcasestr.
63401         * lib/strcasestr.c: Don't include mbuiter.h.
63402         (strcasestr): Remove support for multibyte locales.
63403         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
63404         Change the conditional link warning.
63405         (mbscasestr): New declaration.
63406         * m4/mbscasestr.m4: New file.
63407         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
63408         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
63409         REPLACE_STRCASESTR.
63410         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
63411         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
63412         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
63413         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
63414         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
63415         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
63416         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
63417         (Depends-on): Remove mbuiter.
63418         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
63419
63420 2007-02-04  Bruno Haible  <bruno@clisp.org>
63421
63422         Simplify handling of strncasecmp.
63423         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
63424         the conditional link warning.
63425         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
63426         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
63427         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
63428         * modules/strcase (configure.ac): Don't invoke
63429         gl_STRING_MODULE_INDICATOR.
63430         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
63431
63432 2007-02-04  Bruno Haible  <bruno@clisp.org>
63433
63434         New module mbscasecmp, reduced goal of strcasecmp.
63435         * modules/mbscasecmp: New file.
63436         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
63437         (mbscasecmp): Renamed from strcasecmp.
63438         * lib/strcasecmp.c: Don't include mbuiter.h.
63439         (strcasecmp): Remove support for multibyte locales.
63440         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
63441         Change the conditional link warning.
63442         (mbscasecmp): New declaration.
63443         * m4/mbscasecmp.m4: New file.
63444         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
63445         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
63446         REPLACE_STRCASECMP.
63447         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
63448         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63449         GNULIB_MBSCASECMP.
63450         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
63451         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
63452         * modules/strcase (Files): Remove m4/mbrtowc.m4.
63453         (Depends-on): Remove mbuiter.
63454         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
63455
63456 2007-02-04  Bruno Haible  <bruno@clisp.org>
63457
63458         New module mbsstr. Remove module strstr.
63459         * modules/mbsstr: New file.
63460         * modules/strstr: Remove file.
63461         * lib/mbsstr.c: Renamed from lib/strstr.c.
63462         (mbsstr): Renamed from strstr.
63463         * lib/string_.h (strstr): Remove declaration. Change the conditional
63464         link warning.
63465         (mbsstr): New declaration.
63466         * m4/mbsstr.m4: New file.
63467         * m4/strstr.m4: Remove file.
63468         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
63469         REPLACE_STRSTR.
63470         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
63471         Don't initialize GNULIB_STRSTR.
63472         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
63473         substitute GNULIB_STRSTR and REPLACE_STRSTR.
63474         * MODULES.html.sh (Internationalization functions): Add mbsstr.
63475         (Support for systems lacking ANSI C 89): Remove strstr.
63476
63477 2007-02-04  Bruno Haible  <bruno@clisp.org>
63478
63479         New module mbsrchr.
63480         * modules/mbsrchr: New file.
63481         * lib/mbsrchr.c: New file.
63482         * lib/string_.h (strrchr): Add a conditional link warning.
63483         (mbsrchr): New declaration.
63484         * m4/mbsrchr.m4: New file.
63485         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63486         GNULIB_MBSRCHR.
63487         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
63488         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
63489
63490 2007-02-04  Bruno Haible  <bruno@clisp.org>
63491
63492         New module mbschr.
63493         * modules/mbschr: New file.
63494         * lib/mbschr.c: New file.
63495         * lib/string_.h (strchr): Add a conditional link warning.
63496         (mbschr): New declaration.
63497         * m4/mbschr.m4: New file.
63498         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63499         GNULIB_MBSCHR.
63500         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
63501         * MODULES.html.sh (Internationalization functions): Add mbschr.
63502
63503 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
63504
63505         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
63506
63507         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
63508
63509 2007-02-04  Bruno Haible  <bruno@clisp.org>
63510
63511         New module description section 'configure.ac-early'.
63512         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
63513         (func_get_autoconf_early_snippet): New function.
63514         (func_import, func_create_testdir): Use it. Remove special cases for
63515         modules 'extensions' and 'lock'.
63516         * modules/extensions (configure.ac-early): Require
63517         gl_USE_SYSTEM_EXTENSIONS.
63518         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
63519
63520 2007-02-04  Bruno Haible  <bruno@clisp.org>
63521
63522         Make use of gcj-4.3's -fsource and -ftarget option.
63523         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
63524         and if so try the options -fsource and -ftarget.
63525         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
63526         source_version, ftarget_option, target_version arguments.
63527         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
63528         (is_envjavac_oldgcj_14_14_usable): Renamed from
63529         is_envjavac_gcj_14_14_usable.
63530         (is_envjavac_oldgcj_14_13_usable): Renamed from
63531         is_envjavac_gcj_14_13_usable.
63532         (is_gcj_present): Update.
63533         (is_gcj_43, is_gcj43_usable): New functions.
63534         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
63535         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
63536         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
63537         try the options -fsource and -ftarget.
63538
63539 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
63540
63541         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
63542         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
63543         larger value.
63544
63545 2007-02-03  Jim Meyering  <jim@meyering.net>
63546
63547         Give tools a better chance to allocate space for very large buffers.
63548         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
63549
63550         Make pwd and readlink work also when run with an unreadable parent dir
63551         on systems with openat support.
63552         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
63553         provided getcwd function, even when we have openat support.
63554         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
63555
63556 2007-02-02  Bruno Haible  <bruno@clisp.org>
63557
63558         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
63559         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
63560         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
63561         portability problems if one of these functions is only used on specific
63562         platforms.
63563         Reported by Paul Eggert.
63564
63565 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
63566
63567         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
63568         is causing more trouble than it's curing.
63569         * lib/regex_internal.h (__mempcpy): Remove.
63570         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
63571         (and make the code a tad smaller to boot).
63572         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
63573
63574 2007-02-02  Jim Meyering  <jim@meyering.net>
63575
63576         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
63577         section, not in the Makefile.am: one.
63578
63579 2007-02-02  Eric Blake  <ebb9@byu.net>
63580
63581         * lib/strchrnul.c: Always include config.h first.
63582
63583         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
63584         gnulib strstr is not necessary here.
63585
63586 2007-02-02  Simon Josefsson  <simon@josefsson.org>
63587
63588         * m4/socklen.m4: Fix typo.
63589
63590 2007-02-02  Eric Blake  <ebb9@byu.net>
63591
63592         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
63593         * modules/netinet_in (Makefile.am): Likewise.
63594
63595 2007-02-01  Bruno Haible  <bruno@clisp.org>
63596
63597         * lib/string_.h (GL_LINK_WARNING): New macro.
63598         (strcasecmp, strstr, strcasestr): If provided by the system,
63599         conditionally define as a macro that leads to a warning instead of to
63600         an error.
63601         (strncasecmp): Conditionally define as a macro that leads to a warning.
63602
63603 2007-02-01  Karl Berry  <karl@gnu.org>
63604
63605         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
63606
63607 2007-02-01  Bruno Haible  <bruno@clisp.org>
63608
63609         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
63610         renamings.
63611
63612 2007-02-01  Eric Blake  <ebb9@byu.net>
63613
63614         * modules/regex (Depends-on): Revert dependence on mempcpy.
63615         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
63616         module's definition of mempcpy.
63617         Reported by Paul Eggert.
63618
63619 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
63620
63621         * lib/string_.h: If the gnulib module XYZ is not present, undefine
63622         the symbol XYZ before redefining it.  This fixes a problem with
63623         programs that don't use XYZ, when compiled on systems that define
63624         XYZ to something else.
63625
63626 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
63627
63628         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
63629         occurs when "mkdir -m foo" creates a setgid directory that is (1)
63630         writeable to group or other and (2) is intended to have a special
63631         mode bit that is set or cleared.  In such a case, the directory
63632         should be neither group- nor other-writeable until the special
63633         mode bits are right.
63634
63635 2007-01-31  Eric Blake  <ebb9@byu.net>
63636
63637         * modules/mountlist (Depends-on): Add strstr.
63638
63639         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
63640         bug.
63641         * modules/string (Makefile.am): Remove redundant replacement.
63642         * modules/regex (Depends-on): Add mempcpy.
63643
63644 2007-01-31  Bruno Haible  <bruno@clisp.org>
63645
63646         New module description field 'Link'.
63647         * gnulib-tool (func_usage): Document --extract-link-directive.
63648         (sed_extract_prog): Recognize 'Link' directive.
63649         (func_get_link_directive): New function.
63650         (func_import): Show summary of link directives.
63651         Handle --extract-link-directive option.
63652         * modules/acl (Link): New section.
63653         * modules/clock-time (Link): New section.
63654         * modules/euidaccess (Link): New section.
63655         * modules/gettext (Link): New section.
63656         * modules/iconv (Link): New section.
63657         * modules/lock (Link): New section.
63658         * modules/nanosleep (Link): New section.
63659         * modules/readline (Link): New section.
63660
63661 2007-01-27  Bruno Haible  <bruno@clisp.org>
63662
63663         Enforce the use of gnulib modules for unportable <string.h> functions.
63664         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
63665         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
63666         (gl_HEADER_STRING_H_BODY): Require it.
63667         * lib/string_.h: If the gnulib module XYZ is not present, redefine
63668         the symbol XYZ to one that gives a link error.
63669         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
63670         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
63671         * modules/mempcpy (configure.ac): Likewise.
63672         * modules/memrchr (configure.ac): Likewise.
63673         * modules/stpcpy (configure.ac): Likewise.
63674         * modules/stpncpy (configure.ac): Likewise.
63675         * modules/strcase (configure.ac): Likewise.
63676         * modules/strcasestr (configure.ac): Likewise.
63677         * modules/strchrnul (configure.ac): Likewise.
63678         * modules/strdup (configure.ac): Likewise.
63679         * modules/strndup (configure.ac): Likewise.
63680         * modules/strnlen (configure.ac): Likewise.
63681         * modules/strpbrk (configure.ac): Likewise.
63682         * modules/strsep (configure.ac): Likewise.
63683         * modules/strstr (configure.ac): Likewise.
63684         * modules/strtok_r (configure.ac): Likewise.
63685
63686 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
63687
63688         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
63689
63690 2007-01-30  Jim Meyering  <jim@meyering.net>
63691
63692         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
63693
63694 2007-01-29  Bruno Haible  <bruno@clisp.org>
63695
63696         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
63697         * lib/execute.c: Likewise.
63698         * lib/pipe.c: Likewise.
63699         * lib/printf-args.h: Likewise.
63700         * lib/printf-args.c: Likewise.
63701         * lib/printf-parse.c: Likewise.
63702         * lib/vasnprintf.c: Likewise.
63703
63704 2007-01-29  Eric Blake  <ebb9@byu.net>
63705
63706         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
63707         declaration.
63708
63709 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
63710
63711         * lib/strptime.h (strptime): Use 'restrict' for args where
63712         POSIX requires this.
63713         * lib/strptime.c (strptime): Likewise.
63714         Change license notice from LGPL to GPL, since gnulib-tool will
63715         change this as needed.
63716         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
63717         defined.
63718         Include "strptime.h" first, to check interface.
63719         Do not #undef _LIBC and _NL_CURRENT.
63720         Do not include <stdlib.h>; no longer needed.
63721         Include "time_r.h" and declare ptime_locale_status
63722         only if _LIBC is not defined.
63723         (__P): Remove unused macro.
63724         (match_string): Bring back glibc version, but use it only if _LIBC
63725         is defined.
63726         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
63727         Remove unnecessary assertion and abort() call.
63728         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
63729         * m4/strptime.m4: Fix serial number comment.
63730         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
63731         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
63732         (Depends-on): Add time_r.
63733
63734 2007-01-29  Bruno Haible  <bruno@clisp.org>
63735
63736         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
63737         strptime.
63738         * modules/strptime (Depends-on): Add stdbool.
63739         * lib/strptime.h: Include <time.h> always. Add comments.
63740
63741 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
63742
63743         * modules/strptime: New file.
63744         * lib/strptime.h: New file.
63745         * lib/strptime.c: New file.
63746         * m4/strptime.m4: New file.
63747
63748 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
63749
63750         * MODULES.html.sh: New module mpsort.
63751         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
63752
63753         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
63754         a circularity problem with HP-UX ia64 reported by Bob Proulx in
63755         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
63756         All uses changed.
63757         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
63758         All uses changed.
63759         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
63760         to _Restrict_.
63761         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
63762         the parameter matches the prototype.
63763
63764 2007-01-28  Jim Meyering  <jim@meyering.net>
63765
63766         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
63767         sys/time.h here, reverting that part of the previous patch:
63768         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
63769
63770 2007-01-28  Bruno Haible  <bruno@clisp.org>
63771
63772         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
63773         value of $(SYS_TIME_H).
63774         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
63775         remove it conditionally, too. [added by Jim Meyering]
63776         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
63777         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
63778         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
63779         GETTIMEOFDAY_REPLACEMENT to 1.
63780
63781 2007-01-28  Bruno Haible  <bruno@clisp.org>
63782
63783         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
63784         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
63785         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
63786         Set UNISTD_H instead of UNISTD_H2.
63787         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
63788
63789 2007-01-28  Bruno Haible  <bruno@clisp.org>
63790
63791         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
63792         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
63793
63794 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63795
63796         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
63797         (func_create_testdir): Ensure C locale for `grep' and `tr'
63798         character ranges.
63799         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
63800         ACLOCAL_AMFLAGS parsing state machine.
63801
63802 2007-01-27  Bruno Haible  <bruno@clisp.org>
63803
63804         * modules/unistr/base: Update.
63805
63806 2007-01-27  Bruno Haible  <bruno@clisp.org>
63807
63808         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
63809         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
63810         * modules/unistr/u32-mbtouc-unsafe: Renamed from
63811         modules/unistr/u32-mbtouc.
63812         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
63813         * lib/unistr.h: Update.
63814         * lib/linebreak.c: Update.
63815         * modules/unistr/u32-mbtouc: Renamed from
63816         modules/unistr/u32-mbtouc-safe.
63817         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
63818         * lib/unistr.h: Update.
63819         * lib/unistr/u32-to-u8.c: Update.
63820         * lib/unistr/u32-to-u16.c: Update.
63821
63822 2007-01-27  Bruno Haible  <bruno@clisp.org>
63823
63824         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
63825         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
63826         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
63827         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
63828         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
63829         * modules/unistr/u16-mbtouc-unsafe: Renamed from
63830         modules/unistr/u16-mbtouc.
63831         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
63832         * lib/unistr.h: Update.
63833         * lib/linebreak.c: Update.
63834         * modules/linebreak: Update.
63835         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
63836         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
63837         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
63838         * modules/unistr/u16-mbtouc: Renamed from
63839         modules/unistr/u16-mbtouc-safe.
63840         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
63841         * lib/unistr.h: Update.
63842         * lib/unistr/u16-to-u8.c: Update.
63843         * modules/unistr/u16-to-u8: Update.
63844         * lib/unistr/u16-to-u32.c: Update.
63845         * modules/unistr/u16-to-u32: Update.
63846
63847 2007-01-27  Bruno Haible  <bruno@clisp.org>
63848
63849         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
63850         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
63851         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
63852         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
63853         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
63854         * modules/unistr/u8-mbtouc-unsafe: Renamed from
63855         modules/unistr/u8-mbtouc.
63856         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
63857         * lib/unistr.h: Update.
63858         * lib/striconveh.c: Update.
63859         * modules/striconveh: Update.
63860         * lib/linebreak.c: Update.
63861         * modules/linebreak: Update.
63862         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
63863         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
63864         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
63865         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
63866         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
63867         * lib/unistr.h: Update.
63868         * lib/striconveh.c: Update.
63869         * modules/striconveh: Update.
63870         * lib/unistr/u8-to-u16.c: Update.
63871         * modules/unistr/u8-to-u16: Update.
63872         * lib/unistr/u8-to-u32.c: Update.
63873         * modules/unistr/u8-to-u32: Update.
63874
63875 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63876
63877         Sync from Libtool.
63878         * lib/argz.c: Do not include strings.h nor memory.h, include
63879         string.h unconditionally.  Patch by Simon Josefsson.
63880
63881 2007-01-27  Bruno Haible  <bruno@clisp.org>
63882
63883         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
63884         from gl_HEADER_STRING_H_BODY.
63885         (gl_HEADER_STRING_H_BODY): Require it.
63886         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
63887         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
63888         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
63889         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
63890         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
63891         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
63892         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
63893         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
63894         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
63895         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
63896         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
63897         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
63898         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
63899         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
63900         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
63901
63902 2007-01-27  Bruno Haible  <bruno@clisp.org>
63903
63904         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
63905         check_PROGRAMS into noinst_PROGRAMS.
63906         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
63907         check_PROGRAMS in this case.
63908         (func_import): Set for_test to false.
63909         (func_create_testdir): Set for_test to true.
63910
63911 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
63912             Bruno Haible  <bruno@clisp.org>
63913
63914         * modules/strcasestr (Files): Remove lib/strcasestr.h.
63915         (Depends-on): Add string.
63916         (Includes): Use <string.h> instead of strcasestr.h.
63917         * modules/string (Makefile.am): Also substitute the value of
63918         REPLACE_STRCASESTR.
63919         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
63920         assume strcasestr is declared in <string.h> not <strings.h>. Also
63921         set REPLACE_STRCASESTR.
63922         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
63923         REPLACE_STRCASESTR.
63924         * lib/strcasestr.h: Remove file.
63925         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
63926         * lib/string_.h (strcasestr): New declaration.
63927
63928 2007-01-27  Bruno Haible  <bruno@clisp.org>
63929
63930         * lib/string_.h: Use 'extern'.
63931
63932 2007-01-27  Jim Meyering  <jim@meyering.net>
63933
63934         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
63935         of set-but-not-used local, "q".
63936
63937         * lib/mempcpy.c: Include <config.h> before <string.h>.
63938         This fixes a compilation error on HP-UX, due to the system's
63939         "restrict"-using mempcpy prototype.
63940
63941 2007-01-26  Bruno Haible  <bruno@clisp.org>
63942
63943         Small optimization.
63944         * lib/javacomp.c: Include c-strstr.h.
63945          (is_envjavac_gcj): Use c_strstr instead of strstr.
63946         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
63947
63948 2007-01-26  Bruno Haible  <bruno@clisp.org>
63949
63950         * MODULES.html.sh (Unicode string functions): Add the new modules.
63951
63952         * modules/uniconv/u32-strconv-to-locale: New file.
63953         * lib/uniconv/u32-strconv-to-locale.c: New file.
63954
63955         * modules/uniconv/u16-strconv-to-locale: New file.
63956         * lib/uniconv/u16-strconv-to-locale.c: New file.
63957
63958         * modules/uniconv/u8-strconv-to-locale: New file.
63959         * lib/uniconv/u8-strconv-to-locale.c: New file.
63960
63961         * modules/uniconv/u32-strconv-from-locale: New file.
63962         * lib/uniconv/u32-strconv-from-locale.c: New file.
63963
63964         * modules/uniconv/u16-strconv-from-locale: New file.
63965         * lib/uniconv/u16-strconv-from-locale.c: New file.
63966
63967         * modules/uniconv/u8-strconv-from-locale: New file.
63968         * lib/uniconv/u8-strconv-from-locale.c: New file.
63969
63970         * modules/uniconv/u32-strconv-to-enc: New file.
63971         * lib/uniconv/u32-strconv-to-enc.c: New file.
63972         * modules/uniconv/u32-strconv-to-enc-tests: New file.
63973         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
63974
63975         * modules/uniconv/u16-strconv-to-enc: New file.
63976         * lib/uniconv/u16-strconv-to-enc.c: New file.
63977         * lib/uniconv/u-strconv-to-enc.h: New file.
63978         * modules/uniconv/u16-strconv-to-enc-tests: New file.
63979         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
63980
63981         * modules/uniconv/u8-strconv-to-enc: New file.
63982         * lib/uniconv/u8-strconv-to-enc.c: New file.
63983         * modules/uniconv/u8-strconv-to-enc-tests: New file.
63984         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
63985
63986         * modules/uniconv/u32-strconv-from-enc: New file.
63987         * lib/uniconv/u32-strconv-from-enc.c: New file.
63988         * modules/uniconv/u32-strconv-from-enc-tests: New file.
63989         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
63990
63991         * modules/uniconv/u16-strconv-from-enc: New file.
63992         * lib/uniconv/u16-strconv-from-enc.c: New file.
63993         * modules/uniconv/u16-strconv-from-enc-tests: New file.
63994         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
63995
63996         * modules/uniconv/u8-strconv-from-enc: New file.
63997         * lib/uniconv/u8-strconv-from-enc.c: New file.
63998         * lib/uniconv/u-strconv-from-enc.h: New file.
63999         * modules/uniconv/u8-strconv-from-enc-tests: New file.
64000         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
64001
64002         * modules/uniconv/u32-conv-from-enc: New file.
64003         * lib/uniconv/u32-conv-from-enc.c: New file.
64004         * modules/uniconv/u32-conv-from-enc-tests: New file.
64005         * tests/uniconv/test-u32-conv-from-enc.c: New file.
64006
64007         * modules/uniconv/u16-conv-from-enc: New file.
64008         * lib/uniconv/u16-conv-from-enc.c: New file.
64009         * lib/uniconv/u-conv-from-enc.h: New file.
64010         * modules/uniconv/u16-conv-from-enc-tests: New file.
64011         * tests/uniconv/test-u16-conv-from-enc.c: New file.
64012
64013         * modules/uniconv/u8-conv-from-enc: New file.
64014         * lib/uniconv/u8-conv-from-enc.c: New file.
64015         * modules/uniconv/u8-conv-from-enc-tests: New file.
64016         * tests/uniconv/test-u8-conv-from-enc.c: New file.
64017
64018         * modules/uniconv/base: New file.
64019         * lib/uniconv.h: New file.
64020
64021 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
64022
64023         * doc/gnulib-tool.texi (Initial import): Update to match current
64024         behavior with strdup module.
64025         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
64026         * lib/memmem.h: Remove; all uses removed.  This is now done
64027         by <string.h>.
64028         * lib/mempcpy.h: Likewise.
64029         * lib/memrchr.h: Likewise.
64030         * lib/stpcpy.h: Likewise.
64031         * lib/stpncpy.h: Likewise.
64032         * lib/strcase.h: Likewise.
64033         * lib/strchrnul.h: Likewise.
64034         * lib/strdup.h: Likewise.
64035         * lib/strndup.h: Likewise.
64036         * lib/strnlen.h: Likewise.
64037         * lib/strpbrk.h: Likewise.
64038         * lib/strsep.h: Likewise.
64039         * lib/strstr.h: Likewise.
64040         * lib/strtok_r.h: Likewise.
64041         * lib/string_.h: New file.
64042         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
64043         Rely on <string.h> instead.
64044         * lib/canon-host.c: Likewise.
64045         * lib/chdir-long.c: Likewise.
64046         * lib/concatpath.c: Likewise.
64047         * lib/exclude.c: Likewise.
64048         * lib/fchdir.c: Likewise.
64049         * lib/getaddrinfo.c: Likewise.
64050         * lib/getcwd.c: Likewise.
64051         * lib/getsubopt.c: Likewise.
64052         * lib/glob.c: Likewise.
64053         * lib/hard-locale.c: Likewise.
64054         * lib/iconvme.c: Likewise.
64055         * lib/javacomp.c: Likewise.
64056         * lib/mempcpy.c: Likewise.
64057         * lib/memrchr.c: Likewise.
64058         * lib/regex_internal.h: Likewise.
64059         * lib/stpncpy.c: Likewise.
64060         * lib/strcasecmp.c: Likewise.
64061         * lib/strchrnul.c: Likewise.
64062         * lib/strdup.c: Likewise.
64063         * lib/striconv.c: Likewise.
64064         * lib/striconveh.c: Likewise.
64065         * lib/striconveha.c: Likewise.
64066         * lib/strncasecmp.c: Likewise.
64067         * lib/strndup.c: Likewise.
64068         * lib/strnlen.c: Likewise.
64069         * lib/strsep.c: Likewise.
64070         * lib/strstr.c: Likewise.
64071         * lib/strtok_r.c: Likewise.
64072         * lib/userspec.c: Likewise.
64073         * lib/w32spawn.h: Likewise.
64074         * lib/xstrndup.c: Likewise.
64075         * lib/mountlist.c (strstr): Remove decl.
64076         * m4/string_h.m4: New file.
64077         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
64078         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
64079         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
64080         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
64081         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
64082         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
64083         Set REPLACE_STRCASECMP if necessary.
64084         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
64085         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
64086         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
64087         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
64088         HAVE_DECL_STRDUP if necessary.
64089         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
64090         since gl_FUNC_STRNDUP does that now.
64091         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
64092         Check for decl here...
64093         (gl_PREREQ_STRNLEN): ... not here.
64094         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
64095         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
64096         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
64097         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
64098         necessary.
64099         * modules/string: New file.
64100         * modules/memmem (Files): Remove special-purpose include file.
64101         (Depends-on): Add string.
64102         (Include): Include <string.h>, not the removed file.
64103         * modules/mempcpy: Likewise.
64104         * modules/memrchr: Likewise.
64105         * modules/stpcpy: Likewise.
64106         * modules/stpncpy: Likewise.
64107         * modules/strcase: Likewise.
64108         * modules/strchrnul: Likewise.
64109         * modules/strdup: Likewise.
64110         * modules/strndup: Likewise.
64111         * modules/strnlen: Likewise.
64112         * modules/strpbrk: Likewise.
64113         * modules/strsep: Likewise.
64114         * modules/strstr: Likewise.
64115         * modules/strtok_r: Likewise.
64116         * tests/test-dirname.c: Don't include "strdup.h", since
64117         <string.h> now suffices.
64118         * tests/test-memmem.c: Don't include "memmem.h", since
64119         <string.h> now suffices.
64120
64121 2007-01-25  Bruno Haible  <bruno@clisp.org>
64122
64123         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
64124         *resultp is 0.
64125
64126         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
64127         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
64128         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
64129         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
64130
64131         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
64132         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
64133         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
64134         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
64135         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
64136         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
64137
64138 2007-01-24  Bruno Haible  <bruno@clisp.org>
64139
64140         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
64141         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
64142         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
64143         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
64144         gl_FUNC_FTS_CORE.
64145         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
64146         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
64147         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
64148         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
64149         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
64150         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
64151         gl_FUNC_FCHOWNAT.
64152         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
64153         gl_FUNC_STRFTIME.
64154         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
64155         Reported by Ralf Wildenhues.
64156
64157 2007-01-24  Bruno Haible  <bruno@clisp.org>
64158
64159         Drop AC_REQUIRE calls that are redundant with the module dependencies.
64160         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
64161         gl_GETADDRINFO.
64162         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
64163         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
64164         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
64165
64166 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
64167
64168         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
64169         Don't use 'exit'; just return from 'main'.
64170         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
64171
64172         * lib/fnmatch_.h: Readjust white space and comments to match
64173         glibc, to avoid spurious diffs.
64174
64175 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
64176
64177         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
64178         2004-12-01 change by Jakub Jelinek, since this code won't compile
64179         if !LIBC.  Problem reported by Bob Proulx.
64180
64181 2007-01-23  Bruno Haible  <bruno@clisp.org>
64182
64183         * lib/striconveh.c: Include c-strcaseeq.h.
64184         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
64185         * modules/striconveh (Depends-on): Add c-strcaseeq.
64186
64187 2007-01-23  Bruno Haible  <bruno@clisp.org>
64188
64189         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
64190
64191         * modules/c-strcaseeq: New file.
64192         * lib/c-strcaseeq.h: New file.
64193
64194         * modules/streq: New file.
64195         * lib/streq.h: New file.
64196
64197 2007-01-23  Bruno Haible  <bruno@clisp.org>
64198
64199         * modules/striconveha-tests: New file.
64200         * tests/test-striconveha.c: New file.
64201
64202         * lib/striconveha.h: Include <stdbool.h>.
64203         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
64204         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
64205         (mem_iconveha_notranslit): Renamed from mem_iconveha.
64206         (mem_iconveha): New function.
64207         (str_iconveha_notranslit): Renamed from str_iconveha.
64208         (str_iconveha): New function.
64209         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
64210         c-strcase.
64211
64212 2007-01-23  Bruno Haible  <bruno@clisp.org>
64213
64214         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
64215         encodings without forgiving before trying any encoding with handler.
64216         (str_iconveha): Try all encodings without forgiving before trying any
64217         encoding with handler.
64218
64219 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
64220
64221         Import the following changes from libc.
64222
64223         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
64224
64225         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
64226
64227         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
64228
64229         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
64230         normal_bracket label.
64231
64232         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
64233
64234         [BZ #361]
64235         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
64236         to normal_bracket after fetching the next character.
64237
64238 2007-01-22  Bruno Haible  <bruno@clisp.org>
64239
64240         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
64241         argument.
64242         * lib/striconveh.c (iconv_carefully_1): New function.
64243         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
64244         argument.
64245         (str_cd_iconveh): Update.
64246         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
64247         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
64248         * tests/test-striconveh.c (MAGIC): New macro.
64249         (new_offsets): New function.
64250         (main): Test call with and without offsets.
64251
64252 2007-01-22  Bruno Haible  <bruno@clisp.org>
64253
64254         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
64255         * modules/sys_select (Makefile.am): Likewise.
64256         * modules/sys_socket (Makefile.am): Likewise.
64257         * modules/sys_time (Makefile.am): Likewise.
64258
64259 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
64260
64261         * modules/gettimeofday (License): Change from GPL to LGPL, since
64262         gettimeofday is a library function.
64263
64264 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64265
64266         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
64267
64268 2007-01-21  Bruno Haible  <bruno@clisp.org>
64269
64270         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
64271
64272 2007-01-21  Bruno Haible  <bruno@clisp.org>
64273
64274         * modules/striconveha: New file.
64275         * lib/striconveha.h: New file.
64276         * lib/striconveha.c: New file.
64277         * MODULES.html.sh (Internationalization functions): Add striconveha.
64278         * lib/striconv.c (str_iconv): Optimize the case of an empty input
64279         string.
64280         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
64281
64282 2007-01-21  Bruno Haible  <bruno@clisp.org>
64283
64284         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
64285         * lib/striconveh.c (str_iconveh): Likewise.
64286
64287 2007-01-21  Bruno Haible  <bruno@clisp.org>
64288
64289         * lib/striconveh.h (mem_iconveh): New declaration.
64290         * lib/striconveh.c (mem_iconveh): New function.
64291         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
64292
64293 2007-01-21  Bruno Haible  <bruno@clisp.org>
64294
64295         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
64296
64297         * lib/striconveh.h (mem_cd_iconveh): Change specification.
64298         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
64299         original result buffer.
64300         (str_cd_iconveh): Update.
64301         * tests/test-striconveh.c (main): Update.
64302
64303         * lib/striconv.h (mem_cd_iconv): Change specification.
64304         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
64305         result buffer.
64306         (str_cd_iconv): Update.
64307         * tests/test-striconv.c (main): Update.
64308
64309 2007-01-21  Bruno Haible  <bruno@clisp.org>
64310
64311         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
64312
64313 2007-01-20  Jim Meyering  <jim@meyering.net>
64314
64315         * lib/userspec.c (parse_with_separator): If a user or group string
64316         starts with "+", skip the corresponding name-to-ID look-up, since
64317         such a look-up must fail: user and group names may not include "+".
64318
64319 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
64320
64321         * lib/poll.c: Include sys/time.h and time.h unconditionally,
64322         since we now assume the sys_time module.
64323         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
64324         check for sys/time.h; no longer needed.
64325         * modules/poll (Depends-on): Depend on sys_time.
64326
64327 2007-01-18  Bruno Haible  <bruno@clisp.org>
64328
64329         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
64330         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
64331
64332         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
64333         gettimeofday.
64334
64335         * tests/test-gettimeofday.c: Include <time.h>.
64336         (dummy): Remove variable.
64337
64338         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
64339         gl_HEADER_SYS_TIME_H.
64340         (gl_HEADER_SYS_TIME_H): New macro.
64341
64342         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
64343         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64344         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
64345         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
64346         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64347         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
64348         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
64349         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64350         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
64351         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
64352         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64353
64354         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
64355         last change; it caused a compilation error when cross-compiling to
64356         Cygwin.
64357
64358 2007-01-18  Jim Meyering  <jim@meyering.net>
64359
64360         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
64361         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
64362         than the race-prone "test -d sys || mkdir sys".
64363         (configure.ac): Use AC_PROG_MKDIR_P.
64364         * modules/sys_select: Likewise.
64365         * modules/sys_socket: Likewise.
64366         * modules/sys_time: Likewise.
64367
64368 2007-01-18  Eric Blake  <ebb9@byu.net>
64369
64370         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
64371         replace gettimeofday.
64372         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
64373         name, to avoid infinite recursion.
64374
64375 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
64376
64377         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
64378         module sys_time.
64379         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
64380         assume timespec.h defines struct timeval.
64381         * lib/settime.c: Likewise.
64382         * lib/utimens.c: Likewise.
64383         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
64384         since we now assume the gettimeofday module.
64385         * lib/tempname.c (__gen_tempname): Likewise.
64386         * lib/gettimeofday.h: Remove.
64387         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
64388         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
64389         Include <time.h>, for 'time()'.
64390         (localtime_buffer_addr): Also use this workaround if
64391         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
64392         to simplify the uses.  All uses changed.
64393         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
64394         that #undef is inside {}, and 'const' follows type name consistently.
64395         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
64396         (gettimeofday): Do not use the maximum possible value for
64397         tv->tv_usec, since that might break usages other than ls.c.
64398         Instead, we'll leave ls.c alone.  This undoes today's patch
64399         by Bruno.  Add a compile-time warning for 1s-clock resolution;
64400         we've never observed the problem but might as well keep the
64401         canary.
64402         * lib/nanosleep.c: Include timespec.h first, for interface check.
64403         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
64404         now assume the sys_time module.
64405         * lib/tempname.c: Likewise.
64406         * lib/timespec.h: Likewise.
64407         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
64408         needed.
64409         * lib/strftime.c: Likewise.
64410         * lib/timespec.h: Likewise.
64411         * lib/posixtm.c: Include posixtm.h first, for interface check.
64412         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
64413         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
64414         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
64415         * lib/sys_time_.h: New file.
64416         * lib/timespec.h (struct timespec): Use long int, not long.
64417         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
64418         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
64419         Remove obsolescent call to AC_HEADER_TIME.
64420         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
64421         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
64422         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
64423         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
64424         Likewise.
64425         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
64426         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
64427         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
64428         into the sys_time module.  Check for gettimeofday just once.
64429         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
64430         for gettimeofday signature to just check the signature.  Merely
64431         compile it, since linking doesn't test signature.  Improve test for
64432         whether gettimeofday.o is actually needed.
64433         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
64434         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
64435         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
64436         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64437         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
64438         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
64439         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
64440         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
64441         than worrying about sys/time.h.
64442         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
64443         Don't bother worrying about TIME_WITH_SYS_TIME.
64444         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
64445         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
64446         * m4/sys_time_h.m4: New file.
64447         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
64448         Don't include sys/time.h.  Return from main rather than exiting.
64449         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
64450         all uses changed.
64451         * modules/gethrxtime (Depends-on): Add sys_time.
64452         * modules/gettime (Depends-on): Likewise.
64453         * modules/gettimeofday (Depends-on): Likewise.
64454         * modules/nanosleep (Depends-on): Likewise.
64455         * modules/settime (Depends-on): Likewise.
64456         * modules/tempname (Depends-on): Likewise.
64457         * modules/utimens (Depends-on): Likewise.
64458         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
64459         (Include): Change back to <sys/time.h>.
64460         (Maintainer): Add self.
64461         * modules/sys_time: New file.
64462         * modules/tempname (Depends-on): Add gettimeofday.
64463         * tests/test-gettimeofday.c: Include <sys/time.h>
64464         rather than gettimeofday.h.
64465
64466 2007-01-17  Bruno Haible  <bruno@clisp.org>
64467
64468         * gnulib-tool (func_get_license): Revert last patch. Instead, let
64469         the license default to GPL.
64470         (func_create_testdir): Don't complain if a module is LGPL and its
64471         tests module depends on GPLed modules.
64472
64473 2007-01-17  Bruno Haible  <bruno@clisp.org>
64474
64475         * lib/gettimeofday.c (gettimeofday): Add code for the case
64476         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
64477         maximum possible value for tv->tv_usec, rather than the minimum one.
64478
64479 2005-10-08  Martin Lambers  <marlam@marlam.de>
64480 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
64481 2007-01-16  Bruno Haible  <bruno@clisp.org>
64482
64483         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
64484         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
64485         gl_FUNC_GETTIMEOFDAY.
64486         (Include): Add gettimeofday.h.
64487         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
64488         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
64489         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
64490         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
64491         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
64492         * lib/gettimeofday.h: New file.
64493         * lib/gettimeofday.c: Include <sys/timeb.h>.
64494         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
64495         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64496         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
64497         fall back on time().
64498
64499         * tests/test-gettimeofday.c: New file.
64500         * modules/gettimeofday-tests: New file.
64501
64502 2007-01-16  Eric Blake  <ebb9@byu.net>
64503
64504         * modules/fnmatch (Depends-on): Depend on wchar.
64505         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
64506         * m4/fnmatch.m4: Likewise.
64507         * modules/mbchar (Makefile.am): Assume <wchar.h>.
64508         * m4/mbchar.m4: Likewise.
64509         * modules/mbswidth (Depends-on): Depend on wchar.
64510         * lib/mbswidth.c: Assume <wchar.h>.
64511         * m4/mbswidth.m4: Likewise.
64512         * modules/quotearg (Depends-on): Depend on wchar.
64513         * lib/quotearg.c: Assume <wchar.h>.
64514         * m4/quotearg.m4: Likewise.
64515         * modules/regex (Depends-on): Depend on wchar.
64516         * lib/regex_internal.h: Assume <wchar.h>.
64517         * m4/regex.m4: Likewise.
64518         * modules/stdint (Depends-on): Depend on wchar.
64519         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
64520         * m4/stdint.m4: Likewise.
64521         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
64522         * modules/strftime (Depends-on): Depend on wchar.
64523         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
64524         * modules/strtol (Depends-on): Depend on wchar.
64525         * lib/strtol.c: Assume <wchar.h>.
64526         * modules/wcwidth (Depends-on): Depend on wchar.
64527         * lib/wcwidth.h: Assume <wchar.h>.
64528         * m4/wcwidth.m4: Likewise.
64529
64530 2007-01-16  Bruno Haible  <bruno@clisp.org>
64531
64532         * modules/csharpexec-script: New, created from...
64533         * modules/csharpexec: ... this.
64534
64535 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
64536
64537         * modules/javaexec-script: New, created from...
64538         * modules/javaexec: ... this.
64539
64540 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64541
64542         * modules/poll (Dependencies): Add sys_select.
64543
64544 2007-01-15  Jim Meyering  <jim@meyering.net>
64545
64546         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
64547         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
64548         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
64549         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
64550
64551 2007-01-15  Bruno Haible  <bruno@clisp.org>
64552
64553         * modules/striconveh: New file.
64554         * lib/striconveh.h: New file.
64555         * lib/striconveh.c: New file.
64556         * MODULES.html.sh (Internationalization functions): Add striconveh.
64557
64558         * modules/striconveh-tests: New file.
64559         * tests/test-striconveh.c: New file.
64560
64561 2007-01-15  Bruno Haible  <bruno@clisp.org>
64562
64563         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
64564         not from GNU libiconv or GNU libc.
64565
64566 2007-01-15  Bruno Haible  <bruno@clisp.org>
64567
64568         * doc/gnulib-intro.texi (Copyright): Explain the different license
64569         terms for module descriptions, autoconf macros, tests, documentation.
64570
64571 2007-01-14  Bruno Haible  <bruno@clisp.org>
64572
64573         * modules/striconv-tests: New file.
64574         * tests/test-striconv.c: New file.
64575
64576 2007-01-14  Bruno Haible  <bruno@clisp.org>
64577
64578         * modules/iconv-tests: New file.
64579         * tests/test-iconv.c: New file.
64580
64581 2007-01-14  Bruno Haible  <bruno@clisp.org>
64582
64583         * gnulib-tool (func_get_license): For test modules, use the license of
64584         the main module.
64585
64586 2007-01-14  Bruno Haible  <bruno@clisp.org>
64587
64588         * modules/iconv (Include): Clarify that <iconv.h> can only be included
64589         if iconv is found to exist.
64590
64591 2007-01-14  Bruno Haible  <bruno@clisp.org>
64592
64593         * modules/c-ctype-tests: New file.
64594         * tests/test-c-ctype.c: New file.
64595
64596 2007-01-14  Bruno Haible  <bruno@clisp.org>
64597
64598         * modules/binary-io-tests: New file.
64599         * tests/test-binary-io.sh: New file.
64600         * tests/test-binary-io.c: New file.
64601
64602 2007-01-14  Bruno Haible  <bruno@clisp.org>
64603
64604         * modules/array-oset-tests: New file.
64605         * tests/test-array_oset.c: New file.
64606
64607 2007-01-14  Bruno Haible  <bruno@clisp.org>
64608
64609         * modules/array-list-tests: New file.
64610         * tests/test-array_list.c: New file.
64611
64612 2007-01-14  Bruno Haible  <bruno@clisp.org>
64613
64614         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
64615         and make.
64616         Reported by Simon Josefsson in
64617         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
64618
64619 2007-01-14  Bruno Haible  <bruno@clisp.org>
64620
64621         * modules/allocsa-tests: New file.
64622         * tests/test-allocsa.c: New file.
64623
64624 2007-01-14  Bruno Haible  <bruno@clisp.org>
64625
64626         * modules/fchdir (Depends-on): Add absolute-header.
64627         * modules/unistd (Depends-on): Likewise.
64628
64629 2006-12-30  Bruno Haible  <bruno@clisp.org>
64630
64631         * modules/fchdir: New file.
64632         * modules/unistd (Files): Add lib/unistd_.h.
64633         (Makefile.am): Generate unistd.h from unistd_.h.
64634         * lib/fchdir.c: New file.
64635         * lib/dirent_.h: New file.
64636         * lib/unistd_.h: New file.
64637         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
64638         * m4/fchdir.m4: New file.
64639         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
64640         (gl_HEADER_UNISTD): Invoke it.
64641         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
64642         function.
64643         * lib/backupfile.c (opendir, closedir): Undefine.
64644         * lib/chown.c (open, close): Undefine.
64645         * lib/clean-temp.c (open, close): Undefine.
64646         * lib/copy-file.c (open, close): Undefine.
64647         * lib/execute.c (open, close): Undefine.
64648         * lib/fsusage.c (open, close): Undefine.
64649         * lib/gc-gnulib.c (open, close): Undefine.
64650         * lib/getcwd.c (opendir, closedir): Undefine.
64651         * lib/glob.c (opendir, closedir): Undefine.
64652         * lib/javacomp.c (open, close): Undefine.
64653         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
64654         * lib/openat-proc.c (open, close): Undefine.
64655         * lib/pagealign_alloc.c (open, close): Undefine.
64656         * lib/pipe.c (open, close): Undefine.
64657         * lib/progreloc.c (open, close): Undefine.
64658         * lib/savedir.c (opendir, closedir): Undefine.
64659         * lib/utime.c (open, close): Undefine.
64660         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
64661
64662 2007-01-10  Bruno Haible  <bruno@clisp.org>
64663
64664         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
64665
64666 2007-01-12  Eric Blake  <ebb9@byu.net>
64667
64668         Provide a robust <wchar.h>.  Further simplifications are now
64669         possible in other modules, but not included here.
64670         * modules/wchar: New module.
64671         * m4/wchar.m4: New file.
64672         * lib/wchar_.h: Likewise.
64673         * modules/mbchar (Depends-on): Depend on wchar, as the first use
64674         of the new module.
64675         * MODULES.html.sh (Extended multibyte and wide character utilities):
64676         New section.
64677
64678 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
64679
64680         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
64681         to a reasonable default for memory allocation.
64682         (xreadlink): Don't allocate a huge buffer, to work around a buggy
64683         file system that reports garbage st_size values for symlinks.
64684         Problem reported by Liyang Hu.
64685
64686 2007-01-11  Simon Josefsson  <simon@josefsson.org>
64687
64688         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
64689         Emacs .#* auto-save files).
64690
64691 2007-01-11  Bruno Haible  <bruno@clisp.org>
64692
64693         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
64694         directory.
64695
64696 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
64697
64698         Use @...@ consistently in lib/wctype_.h.
64699         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
64700         on it being set to 1 or 0.
64701         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
64702         go back to AC_SUBSTing it.
64703         * modules/wctype (Makefile.am): Undo previous change.
64704
64705 2007-01-10  Eric Blake  <ebb9@byu.net>
64706
64707         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
64708         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
64709         * modules/wctype (Makefile.am): Likewise.
64710         Reported by Chris McGuire.
64711
64712 2007-01-10  Jim Meyering  <jim@meyering.net>
64713
64714         fts.c: a small readability/maintainability improvement
64715         * lib/fts.c (fts_read): Make this code slightly more readable and
64716         maintainable by hoisting the "sp->fts_cur = p" assignments to
64717         immediately follow the statements that set P.  Derived from
64718         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
64719
64720 2007-01-10  Eric Blake  <ebb9@byu.net>
64721
64722         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
64723         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
64724         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
64725         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
64726         Reported by Chris McGuire.
64727
64728 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64729
64730         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
64731         in sed script.
64732
64733 2007-01-09  Bruno Haible  <bruno@clisp.org>
64734
64735         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
64736         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
64737         variables.
64738         (func_module): Use them.
64739
64740 2007-01-09  Bruno Haible  <bruno@clisp.org>
64741
64742         * modules/unistr/base: New file.
64743         * lib/unistr.h: New file.
64744
64745         * modules/unistr/u8-to-u16: New file.
64746         * lib/unistr/u8-to-u16.c: New file.
64747
64748         * modules/unistr/u8-to-u32: New file.
64749         * lib/unistr/u8-to-u32.c: New file.
64750
64751         * modules/unistr/u16-to-u8: New file.
64752         * lib/unistr/u16-to-u8.c: New file.
64753
64754         * modules/unistr/u16-to-u32: New file.
64755         * lib/unistr/u16-to-u32.c: New file.
64756
64757         * modules/unistr/u32-to-u8: New file.
64758         * lib/unistr/u32-to-u8.c: New file.
64759
64760         * modules/unistr/u32-to-u16: New file.
64761         * lib/unistr/u32-to-u16.c: New file.
64762
64763         * modules/unistr/u8-check: New file.
64764         * modules/unistr/u16-check: New file.
64765         * modules/unistr/u32-check: New file.
64766         * lib/unistr/u8-check.c: New file.
64767         * lib/unistr/u16-check.c: New file.
64768         * lib/unistr/u32-check.c: New file.
64769
64770         * modules/unistr/u8-chr: New file.
64771         * modules/unistr/u16-chr: New file.
64772         * modules/unistr/u32-chr: New file.
64773         * lib/unistr/u8-chr.c: New file.
64774         * lib/unistr/u16-chr.c: New file.
64775         * lib/unistr/u32-chr.c: New file.
64776
64777         * modules/unistr/u8-cmp: New file.
64778         * modules/unistr/u16-cmp: New file.
64779         * modules/unistr/u32-cmp: New file.
64780         * lib/unistr/u8-cmp.c: New file.
64781         * lib/unistr/u16-cmp.c: New file.
64782         * lib/unistr/u32-cmp.c: New file.
64783
64784         * modules/unistr/u8-cpy: New file.
64785         * modules/unistr/u16-cpy: New file.
64786         * modules/unistr/u32-cpy: New file.
64787         * lib/unistr/u8-cpy.c: New file.
64788         * lib/unistr/u16-cpy.c: New file.
64789         * lib/unistr/u32-cpy.c: New file.
64790         * lib/unistr/u-cpy.h: New file.
64791
64792         * modules/unistr/u8-cpy-alloc: New file.
64793         * modules/unistr/u16-cpy-alloc: New file.
64794         * modules/unistr/u32-cpy-alloc: New file.
64795         * lib/unistr/u8-cpy-alloc.c: New file.
64796         * lib/unistr/u16-cpy-alloc.c: New file.
64797         * lib/unistr/u32-cpy-alloc.c: New file.
64798         * lib/unistr/u-cpy-alloc.h: New file.
64799
64800         * modules/unistr/u8-endswith: New file.
64801         * modules/unistr/u16-endswith: New file.
64802         * modules/unistr/u32-endswith: New file.
64803         * lib/unistr/u8-endswith.c: New file.
64804         * lib/unistr/u16-endswith.c: New file.
64805         * lib/unistr/u32-endswith.c: New file.
64806         * lib/unistr/u-endswith.h: New file.
64807
64808         * modules/unistr/u8-mblen: New file.
64809         * modules/unistr/u16-mblen: New file.
64810         * modules/unistr/u32-mblen: New file.
64811         * lib/unistr/u8-mblen.c: New file.
64812         * lib/unistr/u16-mblen.c: New file.
64813         * lib/unistr/u32-mblen.c: New file.
64814
64815         * modules/unistr/u8-mbtouc: New file.
64816         * modules/unistr/u16-mbtouc: New file.
64817         * modules/unistr/u32-mbtouc: New file.
64818         * lib/unistr/u8-mbtouc.c: New file.
64819         * lib/unistr/u16-mbtouc.c: New file.
64820         * lib/unistr/u32-mbtouc.c: New file.
64821
64822         * modules/unistr/u8-mbtouc-safe: New file.
64823         * modules/unistr/u16-mbtouc-safe: New file.
64824         * modules/unistr/u32-mbtouc-safe: New file.
64825         * lib/unistr/u8-mbtouc-safe.c: New file.
64826         * lib/unistr/u16-mbtouc-safe.c: New file.
64827         * lib/unistr/u32-mbtouc-safe.c: New file.
64828
64829         * modules/unistr/u8-move: New file.
64830         * modules/unistr/u16-move: New file.
64831         * modules/unistr/u32-move: New file.
64832         * lib/unistr/u8-move.c: New file.
64833         * lib/unistr/u16-move.c: New file.
64834         * lib/unistr/u32-move.c: New file.
64835         * lib/unistr/u-move.h: New file.
64836
64837         * modules/unistr/u8-next: New file.
64838         * modules/unistr/u16-next: New file.
64839         * modules/unistr/u32-next: New file.
64840         * lib/unistr/u8-next.c: New file.
64841         * lib/unistr/u16-next.c: New file.
64842         * lib/unistr/u32-next.c: New file.
64843
64844         * modules/unistr/u8-prev: New file.
64845         * modules/unistr/u16-prev: New file.
64846         * modules/unistr/u32-prev: New file.
64847         * lib/unistr/u8-prev.c: New file.
64848         * lib/unistr/u16-prev.c: New file.
64849         * lib/unistr/u32-prev.c: New file.
64850
64851         * modules/unistr/u8-set: New file.
64852         * modules/unistr/u16-set: New file.
64853         * modules/unistr/u32-set: New file.
64854         * lib/unistr/u8-set.c: New file.
64855         * lib/unistr/u16-set.c: New file.
64856         * lib/unistr/u32-set.c: New file.
64857         * lib/unistr/u-set.h: New file.
64858
64859         * modules/unistr/u8-startswith: New file.
64860         * modules/unistr/u16-startswith: New file.
64861         * modules/unistr/u32-startswith: New file.
64862         * lib/unistr/u8-startswith.c: New file.
64863         * lib/unistr/u16-startswith.c: New file.
64864         * lib/unistr/u32-startswith.c: New file.
64865         * lib/unistr/u-startswith.h: New file.
64866
64867         * modules/unistr/u8-stpcpy: New file.
64868         * modules/unistr/u16-stpcpy: New file.
64869         * modules/unistr/u32-stpcpy: New file.
64870         * lib/unistr/u8-stpcpy.c: New file.
64871         * lib/unistr/u16-stpcpy.c: New file.
64872         * lib/unistr/u32-stpcpy.c: New file.
64873         * lib/unistr/u-stpcpy.h: New file.
64874
64875         * modules/unistr/u8-stpncpy: New file.
64876         * modules/unistr/u16-stpncpy: New file.
64877         * modules/unistr/u32-stpncpy: New file.
64878         * lib/unistr/u8-stpncpy.c: New file.
64879         * lib/unistr/u16-stpncpy.c: New file.
64880         * lib/unistr/u32-stpncpy.c: New file.
64881         * lib/unistr/u-stpncpy.h: New file.
64882
64883         * modules/unistr/u8-strcat: New file.
64884         * modules/unistr/u16-strcat: New file.
64885         * modules/unistr/u32-strcat: New file.
64886         * lib/unistr/u8-strcat.c: New file.
64887         * lib/unistr/u16-strcat.c: New file.
64888         * lib/unistr/u32-strcat.c: New file.
64889         * lib/unistr/u-strcat.h: New file.
64890
64891         * modules/unistr/u8-strchr: New file.
64892         * modules/unistr/u16-strchr: New file.
64893         * modules/unistr/u32-strchr: New file.
64894         * lib/unistr/u8-strchr.c: New file.
64895         * lib/unistr/u16-strchr.c: New file.
64896         * lib/unistr/u32-strchr.c: New file.
64897
64898         * modules/unistr/u8-strcmp: New file.
64899         * modules/unistr/u16-strcmp: New file.
64900         * modules/unistr/u32-strcmp: New file.
64901         * lib/unistr/u8-strcmp.c: New file.
64902         * lib/unistr/u16-strcmp.c: New file.
64903         * lib/unistr/u32-strcmp.c: New file.
64904
64905         * modules/unistr/u8-strcpy: New file.
64906         * modules/unistr/u16-strcpy: New file.
64907         * modules/unistr/u32-strcpy: New file.
64908         * lib/unistr/u8-strcpy.c: New file.
64909         * lib/unistr/u16-strcpy.c: New file.
64910         * lib/unistr/u32-strcpy.c: New file.
64911         * lib/unistr/u-strcpy.h: New file.
64912
64913         * modules/unistr/u8-strcspn: New file.
64914         * modules/unistr/u16-strcspn: New file.
64915         * modules/unistr/u32-strcspn: New file.
64916         * lib/unistr/u8-strcspn.c: New file.
64917         * lib/unistr/u16-strcspn.c: New file.
64918         * lib/unistr/u32-strcspn.c: New file.
64919         * lib/unistr/u-strcspn.h: New file.
64920
64921         * modules/unistr/u8-strdup: New file.
64922         * modules/unistr/u16-strdup: New file.
64923         * modules/unistr/u32-strdup: New file.
64924         * lib/unistr/u8-strdup.c: New file.
64925         * lib/unistr/u16-strdup.c: New file.
64926         * lib/unistr/u32-strdup.c: New file.
64927         * lib/unistr/u-strdup.h: New file.
64928
64929         * modules/unistr/u8-strlen: New file.
64930         * modules/unistr/u16-strlen: New file.
64931         * modules/unistr/u32-strlen: New file.
64932         * lib/unistr/u8-strlen.c: New file.
64933         * lib/unistr/u16-strlen.c: New file.
64934         * lib/unistr/u32-strlen.c: New file.
64935         * lib/unistr/u-strlen.h: New file.
64936
64937         * modules/unistr/u8-strmblen: New file.
64938         * modules/unistr/u16-strmblen: New file.
64939         * modules/unistr/u32-strmblen: New file.
64940         * lib/unistr/u8-strmblen.c: New file.
64941         * lib/unistr/u16-strmblen.c: New file.
64942         * lib/unistr/u32-strmblen.c: New file.
64943
64944         * modules/unistr/u8-strmbtouc: New file.
64945         * modules/unistr/u16-strmbtouc: New file.
64946         * modules/unistr/u32-strmbtouc: New file.
64947         * lib/unistr/u8-strmbtouc.c: New file.
64948         * lib/unistr/u16-strmbtouc.c: New file.
64949         * lib/unistr/u32-strmbtouc.c: New file.
64950
64951         * modules/unistr/u8-strncat: New file.
64952         * modules/unistr/u16-strncat: New file.
64953         * modules/unistr/u32-strncat: New file.
64954         * lib/unistr/u8-strncat.c: New file.
64955         * lib/unistr/u16-strncat.c: New file.
64956         * lib/unistr/u32-strncat.c: New file.
64957         * lib/unistr/u-strncat.h: New file.
64958
64959         * modules/unistr/u8-strncmp: New file.
64960         * modules/unistr/u16-strncmp: New file.
64961         * modules/unistr/u32-strncmp: New file.
64962         * lib/unistr/u8-strncmp.c: New file.
64963         * lib/unistr/u16-strncmp.c: New file.
64964         * lib/unistr/u32-strncmp.c: New file.
64965
64966         * modules/unistr/u8-strncpy: New file.
64967         * modules/unistr/u16-strncpy: New file.
64968         * modules/unistr/u32-strncpy: New file.
64969         * lib/unistr/u8-strncpy.c: New file.
64970         * lib/unistr/u16-strncpy.c: New file.
64971         * lib/unistr/u32-strncpy.c: New file.
64972         * lib/unistr/u-strncpy.h: New file.
64973
64974         * modules/unistr/u8-strnlen: New file.
64975         * modules/unistr/u16-strnlen: New file.
64976         * modules/unistr/u32-strnlen: New file.
64977         * lib/unistr/u8-strnlen.c: New file.
64978         * lib/unistr/u16-strnlen.c: New file.
64979         * lib/unistr/u32-strnlen.c: New file.
64980         * lib/unistr/u-strnlen.h: New file.
64981
64982         * modules/unistr/u8-strpbrk: New file.
64983         * modules/unistr/u16-strpbrk: New file.
64984         * modules/unistr/u32-strpbrk: New file.
64985         * lib/unistr/u8-strpbrk.c: New file.
64986         * lib/unistr/u16-strpbrk.c: New file.
64987         * lib/unistr/u32-strpbrk.c: New file.
64988         * lib/unistr/u-strpbrk.h: New file.
64989
64990         * modules/unistr/u8-strrchr: New file.
64991         * modules/unistr/u16-strrchr: New file.
64992         * modules/unistr/u32-strrchr: New file.
64993         * lib/unistr/u8-strrchr.c: New file.
64994         * lib/unistr/u16-strrchr.c: New file.
64995         * lib/unistr/u32-strrchr.c: New file.
64996
64997         * modules/unistr/u8-strspn: New file.
64998         * modules/unistr/u16-strspn: New file.
64999         * modules/unistr/u32-strspn: New file.
65000         * lib/unistr/u8-strspn.c: New file.
65001         * lib/unistr/u16-strspn.c: New file.
65002         * lib/unistr/u32-strspn.c: New file.
65003         * lib/unistr/u-strspn.h: New file.
65004
65005         * modules/unistr/u8-strstr: New file.
65006         * modules/unistr/u16-strstr: New file.
65007         * modules/unistr/u32-strstr: New file.
65008         * lib/unistr/u8-strstr.c: New file.
65009         * lib/unistr/u16-strstr.c: New file.
65010         * lib/unistr/u32-strstr.c: New file.
65011         * lib/unistr/u-strstr.h: New file.
65012
65013         * modules/unistr/u8-strtok: New file.
65014         * modules/unistr/u16-strtok: New file.
65015         * modules/unistr/u32-strtok: New file.
65016         * lib/unistr/u8-strtok.c: New file.
65017         * lib/unistr/u16-strtok.c: New file.
65018         * lib/unistr/u32-strtok.c: New file.
65019         * lib/unistr/u-strtok.h: New file.
65020
65021         * modules/unistr/u8-uctomb: New file.
65022         * modules/unistr/u16-uctomb: New file.
65023         * modules/unistr/u32-uctomb: New file.
65024         * lib/unistr/u8-uctomb.c: New file.
65025         * lib/unistr/u16-uctomb.c: New file.
65026         * lib/unistr/u32-uctomb.c: New file.
65027
65028         * MODULES.html.sh (Unicode string functions): Add the new modules.
65029
65030 2007-01-08  Bruno Haible  <bruno@clisp.org>
65031
65032         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
65033         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
65034         subdirectories.
65035
65036 2007-01-08  Karl Berry  <karl@gnu.org>
65037
65038         * doc/error.texi: mention that main() fns must set program_name
65039         when progname is used.
65040
65041 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
65042
65043         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
65044         WCTYPE_H is empty, for the benefit of builds from non-distclean
65045         directories.  Problem reported by Eric Blake in
65046         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
65047
65048 2007-01-08  Bruno Haible  <bruno@clisp.org>
65049
65050         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
65051         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
65052         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
65053         PROVIDE_CANONICALIZE_FILENAME_MODE.
65054         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
65055
65056 2007-01-08  Bruno Haible  <bruno@clisp.org>
65057
65058         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
65059         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
65060         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
65061         * lib/fts.c: Likewise.
65062         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
65063
65064 2006-12-25  Bruno Haible  <bruno@clisp.org>
65065
65066         * modules/utf8-ucs4-safe: New file.
65067         * lib/utf8-ucs4-safe.h: New file.
65068         * lib/unistr/utf8-ucs4-safe.c: New file.
65069
65070         * modules/utf16-ucs4-safe: New file.
65071         * lib/utf16-ucs4-safe.h: New file.
65072         * lib/unistr/utf16-ucs4-safe.c: New file.
65073
65074         * MODULES.html.sh (Unicode string functions): Add the new modules.
65075
65076 2007-01-08  Bruno Haible  <bruno@clisp.org>
65077
65078         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
65079         (Depends-on): Add unitypes.
65080         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
65081         (u8_mbtouc_aux): Move out to separate file.
65082         (u8_mbtouc): Use ucs4_t, uint8_t types.
65083         * lib/unistr/utf8-ucs4.c: New file.
65084
65085         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
65086         (Depends-on): Add unitypes.
65087         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
65088         (u16_mbtouc_aux): Move out to separate file.
65089         (u16_mbtouc): Use ucs4_t, uint16_t types.
65090         * lib/unistr/utf16-ucs4.c: New file.
65091
65092         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
65093         (Depends-on): Add unitypes.
65094         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
65095         (u8_uctomb_aux): Move out to separate file.
65096         (u8_uctomb): Use ucs4_t, uint8_t types.
65097         * lib/unistr/ucs4-utf8.c: New file.
65098
65099         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
65100         (Depends-on): Add unitypes.
65101         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
65102         (u16_uctomb_aux): Move out to separate file.
65103         (u16_uctomb): Use ucs4_t, uint16_t types.
65104         * lib/unistr/ucs4-utf16.c: New file.
65105
65106 2006-12-25  Bruno Haible  <bruno@clisp.org>
65107
65108         * modules/unitypes: New file.
65109         * lib/unitypes.h: New file.
65110         * MODULES.html.sh (func_all_modules): New section "Unicode string
65111         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
65112         this section. Add unitypes.
65113
65114 2007-01-08  Bruno Haible  <bruno@clisp.org>
65115
65116         Avoid variable names that conflict with those from libtool.
65117         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
65118         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
65119         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
65120         library_names_spec to acl_library_names_spec, hardcode_* to
65121         acl_hardcode_*.
65122         Reported by Ralf Wildenhues.
65123
65124 2007-01-08  Bruno Haible  <bruno@clisp.org>
65125
65126         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
65127         definition.
65128         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
65129         definition.
65130         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
65131         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
65132         definition.
65133         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
65134         definition.
65135         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
65136         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
65137         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
65138         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
65139         definition.
65140         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
65141         definition.
65142         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
65143         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
65144         GC_USE_<algorithm>.
65145         * lib/gc-libgcrypt.c: Likewise.
65146         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
65147         * modules/gc-arctwo (configure.ac): Likewise.
65148         * modules/gc-des (configure.ac): Likewise.
65149         * modules/gc-hmac-md5 (configure.ac): Likewise.
65150         * modules/gc-hmac-sha1 (configure.ac): Likewise.
65151         * modules/gc-md2 (configure.ac): Likewise.
65152         * modules/gc-md4 (configure.ac): Likewise.
65153         * modules/gc-md5 (configure.ac): Likewise.
65154         * modules/gc-random (configure.ac): Likewise.
65155         * modules/gc-rijndael (configure.ac): Likewise.
65156         * modules/gc-sha1 (configure.ac): Likewise.
65157
65158 2007-01-08  Bruno Haible  <bruno@clisp.org>
65159
65160         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
65161         macro definition.
65162         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
65163         definition.
65164         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
65165         definition.
65166         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
65167         * modules/fcntl-safer (configure.ac): Likewise.
65168         * modules/fopen-safer (configure.ac): Likewise.
65169         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
65170         GNULIB_FWRITEERROR macro definition.
65171
65172 2007-01-08  Bruno Haible  <bruno@clisp.org>
65173
65174         * m4/gnulib-common.m4: New file.
65175         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
65176         (func_get_filelist): Add m4/gnulib-common.m4.
65177
65178 2007-01-08  Bruno Haible  <bruno@clisp.org>
65179
65180         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
65181         command.
65182
65183 2007-01-08  Jim Meyering  <jim@meyering.net>
65184
65185         Use a more robust test for a "can't happen" condition.
65186         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
65187         narrowed the st_size value.  Presuming the "can't happen" condition
65188         is true, that narrowing could conceivably convert an invalid st_size
65189         value into a valid one.  Instead, use a change based on Matthew
65190         Woehlke's original patch.
65191
65192         Slight readability improvement: use an assert-like macro
65193         in place of literal "abort ()" uses.
65194         * lib/fts.c (fts_assert): Define.
65195         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
65196         Use this macro instead of a bare 'abort'.
65197
65198 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
65199
65200         Don't worry about using IRIX 5.3's wctype.h broken definitions;
65201         simply work around them.
65202         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
65203         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
65204         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
65205         declaring.
65206         Don't bother to define as macros, since the standard doesn't require it.
65207         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
65208         longer worry about IRIX 5.3.
65209         (HAVE_WCTYPE_CTMP_BUG): Remove.
65210
65211 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
65212
65213         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
65214         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
65215         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
65216         Problems reported by Georg Schwarz for IRIX 5.3.
65217
65218         * gnulib-tool (autoconf_minversion): Take the maximum version number
65219         found, not the minimum.  Problem reported by James Youngman.
65220
65221 2007-01-03  Karl Berry  <karl@gnu.org>
65222
65223         * doc/error.texi: new file, explaining interaction with progname.
65224         * doc/gnulib.texi: include it.  Update copyright.
65225
65226 2007-01-03  Simon Josefsson  <simon@josefsson.org>
65227
65228         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
65229         AC_CANONICAL_HOST, to improve autobuild outputs.
65230
65231 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
65232             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
65233
65234         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
65235         sockets, server sockets, and other file descriptors.  Count errors
65236         to compute the return value.  Reorder the code a bit to be easier
65237         to follow.  Don't set event bits that were not requested (except
65238         POLLERR and POLLHUP).
65239
65240 2007-01-01  Bruno Haible  <bruno@clisp.org>
65241
65242         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
65243
65244 2007-01-03  Jim Meyering  <jim@meyering.net>
65245
65246         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
65247
65248 2007-01-02  Bruno Haible  <bruno@clisp.org>
65249
65250         * modules/settime (Include): Require timespec.h.
65251         * modules/nanosleep (Include): Likewise.
65252
65253 2007-01-01  Bruno Haible  <bruno@clisp.org>
65254
65255         * gnulib-tool (func_emit_copyright_notice): Bump year.
65256         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
65257
65258 2007-01-01  Bruno Haible  <bruno@clisp.org>
65259
65260         Improve support for OpenBSD.
65261         * build-aux/config.rpath (libname_spec): Export.
65262         (library_names_spec): New variable. Export.
65263         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
65264         library_names_spec from the config.rpath output. Locate shared library
65265         through the name pattern in library_names_spec.
65266
65267 2007-01-01  Eric Blake  <ebb9@byu.net>
65268
65269         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
65270
65271 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
65272
65273         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
65274         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
65275         assume the C locale, and avoid an "eval" that could cause trouble.
65276         Problem with SORT reported by Bob Proulx.
65277
65278         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
65279         Define.  Trivial patch from Henning Nielsen Lund, originally
65280         sent to bug-grep@gnu.org today.
65281
65282 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
65283
65284         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
65285         struct stat.  Problem reported by Henning Nielsen Lund.
65286         * lib/acl.c: Include acl.h first, to check interface.  Don't
65287         bother to include sys/types.h and sys/stat.h again.
65288
65289 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
65290
65291         Import the following change from libc; problem reported by
65292         Sven Verdoolaege.
65293
65294         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
65295
65296         [BZ #1373]
65297         * lib/argp.h: Remove __NTH for __argp_usage inline function.
65298
65299 2006-12-28  Jim Meyering  <jim@meyering.net>
65300
65301         * build-aux/announce-gen: Do not assume that the package
65302         builds any of tar.gz, tar.bz2, and .xdelta files.
65303         Suggestion from Simon Josefsson.
65304
65305 2006-12-28  Simon Josefsson  <simon@josefsson.org>
65306
65307         * modules/announce-gen: New file.
65308
65309 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
65310
65311         * lib/mbchar.h: Just include <wctype.h>; the wctype module
65312         handles its gotchas now.
65313         * lib/mbswidth.c: Likewise.
65314         * lib/wcwidth.h: Likewise.
65315         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
65316         and iswcntrl; the wctype module does this stuff now.
65317         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
65318         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
65319         * modules/mbchar (Depends-on): Add wctype.
65320         * modules/mbswidth (Depends-on): Likewise.
65321         * modules/wcwidth (Depends-on): Likewise.
65322
65323 2006-12-27  Eric Blake  <ebb9@byu.net>
65324
65325         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
65326         module uses more than what <wctype.h> is required to provide.
65327
65328 2006-12-26  Eric Blake  <ebb9@byu.net>
65329
65330         * gnulib-tool (sed_extract_prog): Avoid space-tab.
65331
65332 2006-12-26  Eric Blake  <ebb9@byu.net>
65333
65334         * modules/absolute-header: New module.
65335         * modules/fcntl (Depends-on): Depend on it.
65336         * modules/inttypes (Depends-on): Likewise.
65337         * modules/stdint (Depends-on): Likewise.
65338         * modules/sys_stat (Depends-on): Likewise.
65339         * modules/wctype (Depends-on): Likewise.
65340         * MODULES.html.sh (Support for building libraries and
65341         executables): Document it.
65342
65343 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
65344
65345         * gnulib-tool (SED): Remove, undoing previous change.
65346         The problem was that it broke coreutils on Solaris, because
65347         "sed --posix" leaked into a makefile.
65348         (sed): New alias, if 'alias' and GNU sed.
65349
65350 2006-12-24  Jim Meyering  <jim@meyering.net>
65351
65352         Work around an fchownat bug in glibc-2.4:
65353         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
65354         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
65355         in spite of the -P option.
65356         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
65357         New macros.
65358         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
65359         * modules/openat (Files): Add lib/fchownat.c.
65360         * lib/openat.c (fchownat): Don't define here.  Move to...
65361         * lib/fchownat.c: ...this new file.
65362
65363 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
65364
65365         Fix bug reported by Bruno Haible in
65366         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
65367         where quotearg.c didn't compile on Mac OS X 10.2 because it
65368         lacks <wchar.h> and wint_t.
65369         * lib/wctype_.h (__wctype_wint_t): New type.
65370         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
65371         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
65372         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
65373         Arg is now of type __wctype_wint_t, not wint_t.
65374         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
65375         substitute HAVE_WINT_T.
65376         * modules/wctype (Files): Add m4/wint_t.m4.
65377         (wctype.h): Substitute HAVE_WINT_T.
65378
65379 2006-12-23  Bruno Haible  <bruno@clisp.org>
65380
65381         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
65382
65383 2006-12-23  Bruno Haible  <bruno@clisp.org>
65384
65385         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
65386         S_ISLNK.
65387         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
65388         mingw.
65389
65390 2006-12-22  Bruno Haible  <bruno@clisp.org>
65391
65392         * lib/copy-file.c: Include acl.h.
65393         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
65394         Close the file descriptors only after being done with copy_acl.
65395         * modules/copy-file (Depends-on): Add acl.
65396
65397 2006-12-22  Bruno Haible  <bruno@clisp.org>
65398
65399         * gnulib-tool (SED): New variable.
65400         Use $SED instead of sed everywhere.
65401
65402 2006-12-22  Bruno Haible  <bruno@clisp.org>
65403
65404         * modules/no-c++: New file.
65405         * m4/no-c++.m4: New file.
65406         * MODULES.html.sh (Support for building libraries and executables):
65407         Add no-c++.
65408
65409 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
65410
65411         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
65412         Include <limits.h>, and use its INT_MAX to rewrite the
65413         j loop so that it does not overflow 'int'.  Problem reported by
65414         Ralf Wildenhues in
65415         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
65416         Play it safe by shifting left by 1 rather than multiplying by 2,
65417         as GCC is less likely to optimize this away when the value
65418         is signed (when it assumes overflow leads to undefined behavior).
65419         Also, don't assume time_t uses two's complement.
65420
65421 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
65422
65423         * MODULES.html.sh: New module wctype.
65424         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
65425         * lib/fnmatch.c: Don't bother to include <wchar.h> before
65426         <wctype.h>, since the new wctype module should fix this.
65427         * lib/quotearg.c: Include <wctype.h> unconditionally, since
65428         the wctype module should arrange for it.
65429         * lib/regex_internal.h: Likewise.
65430         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
65431         since the wctype module should handle this now.
65432         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
65433         * modules/fnmatch (Depends-on): Add wctype.
65434         * modules/quotearg (Depends-on): Likewise.
65435         * modules/regex (Depends-on): Likewise.
65436
65437 2006-12-19  Bruno Haible  <bruno@clisp.org>
65438
65439         * lib/strdup.h [C++]: Wrap definitions in extern "C".
65440         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
65441
65442 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65443
65444         * modules/savewd (Depends-on): Fix dependency on fcntl.
65445
65446 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
65447
65448         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
65449         conforms to C99, rather than relying on the user's environment
65450         setting of STDINT_H.
65451
65452 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
65453         and Eric Blake  <ebb9@byu.net>
65454
65455         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
65456         This is more consistent with the other defines here.
65457         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
65458         Port to z/OS.  Problem reported by Paul Gilmartin.
65459         Change local vars to use gl_ prefix rather than ac_.
65460         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
65461         with other defines.
65462         * modules/double-slash-root: New module.
65463         * modules/dirname (Files): Remove m4/double-slash-root.m4.
65464         (Depends-on): Add double-slash-root.
65465         * MODULES.html.sh (File system functions): Mention new module.
65466
65467 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
65468
65469         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
65470         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
65471         This is for the benefit of gzip, which doesn't do i18n.
65472
65473 2006-12-12  Jim Meyering  <jim@meyering.net>
65474
65475         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
65476         Reported by Andreas Schwab <schwab@suse.de>.
65477
65478 2006-12-12  Bruno Haible  <bruno@clisp.org>
65479
65480         Merge these changes.
65481         2006-09-05  Bruno Haible  <bruno@clisp.org>
65482         * lib/iconvme.c (iconv_string): No need to save and restore errno when
65483         iconv_alloc succeeded.
65484         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
65485         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
65486         test for " && dest " at the end - dest is always != NULL there. Call
65487         iconv with 4xNULL arguments initially, to reset the state. Call iconv
65488         with 2xNULL arguments, also to flush the state storage. Handle the
65489         IRIX iconv behaviour. Realloc the final result, to throw away unused
65490         memory.
65491
65492 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
65493
65494         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
65495         and fchmodat unconditionally, since glibc 2.4 has them.
65496         Problem reported by Arkadiusz Miskiewicz.
65497
65498 2006-12-10  Bruno Haible  <bruno@clisp.org>
65499
65500         * gnulib-tool (func_import): Show the include files only for those
65501         modules that are copied and specified.
65502         Reported by Karl Berry.
65503
65504 2006-12-08  Jim Meyering  <jim@meyering.net>
65505
65506         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
65507         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
65508
65509         * build-aux/announce-gen: Add two new options, both optional:
65510         --bootstrap-tools=TOOL_LIST
65511               a comma-separated list of tools, e.g.,
65512               autoconf,automake,bison,gnulib
65513         --gnulib-snapshot-date=DATE
65514               if gnulib is in the bootstrap tool list,
65515               then report this as the snapshot date.
65516               If not specified, use the current date/time.
65517               If you specify a date here, be sure it's UTC.
65518
65519 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65520
65521         * tests/test-argp-2.sh: Fix test to match actual output.
65522         (func_compare): Fix sed script to be portable.
65523
65524 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
65525
65526         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
65527         workaround for this case.  It is not autoconfigured now; offhand
65528         it's hard to see how to autoconfigure it.
65529
65530 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
65531
65532         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
65533         a directory that is about to be chowned.  Such a directory's
65534         initial file permissions should permit the owner only and this
65535         should not be changed until after the chown, since the group and
65536         other bits would be incorrect if they granted permission before
65537         the chown.
65538
65539         Fix porting problem for iswctype reported by Georg Schwarz in:
65540         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
65541         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
65542         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
65543         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
65544         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
65545
65546 2006-12-03  Jim Meyering  <jim@meyering.net>
65547
65548         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
65549         p->fts_statp may not yet be defined.
65550         (fts_read): Instead, set it in the caller, once p->fts_statp is
65551         sure to be defined, and corresponds to a top-level directory.
65552         This bug made du -x fail.  Here's the coreutils test case:
65553         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
65554         Reported by Mike Frysinger.
65555
65556 2006-12-01  Jim Meyering  <jim@meyering.net>
65557
65558         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
65559         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
65560         Reported by Simon Josefsson.
65561
65562 2006-11-30  Jim Meyering  <jim@meyering.net>
65563
65564         * m4/warning.m4: Use the all-permissive copyright notice
65565         recommended by RMS (rather than LGPL).
65566         * m4/vararrays.m4: Likewise.
65567         * m4/flexmember.m4: Likewise.
65568
65569 2006-11-29  Bruno Haible  <bruno@clisp.org>
65570
65571         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
65572         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
65573         using +=.
65574         Reported by Simon Josefsson <simon@josefsson.org>.
65575
65576 2006-11-28  James Youngman <jay@gnu.org>
65577
65578         * README: Advise users that they might find the bug-gnulib@gnu.org
65579         and autotools-announce@gnu.org mailing lists useful.
65580
65581 2006-11-28  Bruno Haible  <bruno@clisp.org>
65582
65583         * m4/ptrdiff_max.m4: Remove file.
65584
65585 2006-11-21  Bruno Haible  <bruno@clisp.org>
65586
65587         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
65588         _AC_COMPUTE_INT.
65589         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
65590         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
65591         _AC_COMPUTE_INT.
65592         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
65593         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
65594         _AC_COMPUTE_INT.
65595         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
65596
65597 2006-11-28  Jim Meyering  <jim@meyering.net>
65598
65599         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
65600         warning from "gcc -Wshadow" about shadowing the builtin.
65601
65602 2006-11-27  Bruno Haible  <bruno@clisp.org>
65603
65604         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
65605         _AC_COMPUTE_INT.
65606         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
65607
65608 2006-11-27  Bruno Haible  <bruno@clisp.org>
65609             Paul Eggert  <eggert@cs.ucla.edu>
65610
65611         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
65612
65613 2006-11-26  Bruno Haible  <bruno@clisp.org>
65614
65615         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
65616         noinst_LTLIBRARIES.
65617
65618 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
65619             Bruno Haible  <bruno@clisp.org>
65620
65621         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
65622         if compiling with "gcc -ansi".
65623
65624 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
65625
65626         Fix some incompatibilities with gcc -ansi -pedantic.
65627         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
65628         if compiling pedantically with GCC, unless it's C99 or later.
65629         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
65630         it mishandles gcc -ansi -pedantic as well.
65631         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
65632         if gcc -pedantic.
65633         * lib/regexec.c (check_node_accept_bytes): Don't use auto
65634         initializers for struct if -pedantic, unless it's C99 or later.
65635
65636 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
65637
65638         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
65639         Don't close an fd more than once. Identical atimes indicate
65640         success, not failure.
65641
65642 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
65643
65644         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
65645
65646 2006-11-23  Jim Meyering  <jim@meyering.net>
65647
65648         * build-aux/announce-gen: New file.  From coreutils.
65649
65650 2006-11-22  Jim Meyering  <jim@meyering.net>
65651
65652         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
65653         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
65654         (fts_read): Use a temporary to narrow the overused st_size member
65655         before using it in a switch statement.  Reported by Matthew Woehlke.
65656
65657         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
65658         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
65659
65660 2006-11-20  Bruno Haible  <bruno@clisp.org>
65661
65662         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
65663         changequote instead of pairs of brackets.
65664         Reported by Andreas Schwab <schwab@suse.de>.
65665
65666 2006-11-21  Jim Meyering  <jim@meyering.net>
65667
65668         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
65669         so as to remain compatible with older compilers.
65670         Patch from Michael Deutschmann.
65671
65672 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
65673
65674         * MODULES.html.sh (File system functions): Add openat.
65675
65676         * lib/openat.h (rpl_fstatat): New macro, if
65677         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
65678         (fstatat): Define to rpl_fstatat under the same conditions,
65679         unless COMPILING_FSTATAT.
65680         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
65681         seems to have the bug.
65682         * lib/fstatat.c: New file.
65683         * modules/openat (Files): Add it.
65684
65685 2006-11-20  Bruno Haible  <bruno@clisp.org>
65686
65687         * Makefile: New file.
65688
65689 2006-11-20  Jim Meyering  <jim@meyering.net>
65690
65691         The beginnings of syntax-related checks for gnulib.
65692         * lib/Makefile: New file.
65693         * lib/t-idcache: New script.  Ensure that the two halves of
65694         idcache.c stay in sync.
65695
65696         * lib/idcache.c: Adjust comments in user- and group- portions to
65697         be more accurate, and to be consistent with one another.
65698
65699 2006-11-20  Jim Meyering  <jim@meyering.net>
65700
65701         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
65702         continue using the flexible array member (thus, this module performs
65703         half as many malloc calls), with the addition that...
65704         (getgroup, getuser): Consistently record a non-match via an empty
65705         "name" string, and map an empty string match to a NULL return value.
65706         * modules/idcache (Depends-on): Re-add flexmember.
65707
65708         * lib/idcache.c (getuser): Remove all uses of the register keyword.
65709         (getuidbyname, getgroup, getgidbyname): Likewise.
65710
65711         Use cleaner syntax: NULL rather than 0.
65712         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
65713
65714 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
65715
65716         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
65717         It mishandled the case where the group was missing.
65718         Problem reported by Greg Schafer.
65719         * modules/idcache: Likewise.
65720
65721 2006-11-18  Jim Meyering  <jim@meyering.net>
65722
65723         * check-module (%exempt_header): Add exception for some
65724         conditionally-included headers.
65725
65726         * modules/i-ring (Depends-on): Add verify.
65727         (License): Change to LGPL.
65728
65729 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
65730
65731         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
65732         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
65733         and inttostr.h.  Use snprintf rather than uinttostr, so that
65734         LGPLed code doesn't depend on GPLed.
65735
65736 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
65737
65738         * modules/inline (License): Change from GPL to LGPL.
65739
65740 2006-11-17  Jim Meyering  <jim@meyering.net>
65741
65742         * modules/d-type (License): Switch to LGPL.
65743
65744 2006-11-15  Bruno Haible  <bruno@clisp.org>
65745
65746         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
65747
65748 2006-11-15  Eric Blake  <ebb9@byu.net>
65749
65750         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
65751         the module dependency.
65752
65753 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65754             Bruno Haible  <bruno@clisp.org>
65755
65756         * gnulib-tool (func_create_testdir): Add license consistency check.
65757
65758 2006-11-15  Eric Blake  <ebb9@byu.net>
65759
65760         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
65761         random "(cached)" in configure output.
65762
65763 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65764
65765         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
65766         test for conforming inttypes.h is both announced and cached.
65767
65768         * MODULES.html.sh (seen_modules, seen_files): New variables.
65769         (func_module): Rewrite to use a few less gnulib-tool and sed
65770         invocations.  Avoid a couple of quadratic algorithms for ...
65771         (missed_modules, missed_files): ... these, with ...
65772         (func_append, func_tmpdir): ... these new functions, from
65773         gnulib-tool.  Analogously, install traps for cleanup.
65774
65775         * tests/test-gc.c (main): Remove unused variables.
65776         * tests/test-read-file.c: Include stdlib.h, for 'free'.
65777
65778 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
65779
65780         * modules/inttostr (License): Change to LGPL.
65781
65782 2006-11-14  Eric Blake  <ebb9@byu.net>
65783
65784         * modules/tempname (License): Change to LGPL.
65785
65786 2006-11-14  Eric Blake  <ebb9@byu.net>
65787
65788         * doc/functions.texi (Function Portability): *printf functions on
65789         Cygwin now understand all POSIX size specifiers.
65790
65791 2006-11-14  Bruno Haible  <bruno@clisp.org>
65792
65793         * modules/c-ctype (License): Change to LGPL.
65794
65795 2006-11-12  Bruno Haible  <bruno@clisp.org>
65796
65797         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
65798         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
65799         for GNOME libraries, for which the include files are installed in
65800         subdirectories of $prefix/include.
65801
65802 2006-11-12  Bruno Haible  <bruno@clisp.org>
65803
65804         * m4/lib-link.m4: Require at least autoconf-2.54.
65805         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
65806         name to underscores for the --with option.
65807
65808 2006-11-13  Bruno Haible  <bruno@clisp.org>
65809
65810         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
65811         the tests directory.
65812         Reported by Ralf Wildenhues.
65813
65814 2006-11-13  Bruno Haible  <bruno@clisp.org>
65815
65816         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
65817         (func_emit_initmacro_end): Undo the override here.
65818         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
65819         Works around the famous automake error in coreutils.
65820
65821 2006-11-13  Eric Blake  <ebb9@byu.net>
65822
65823         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
65824         element, not its node.
65825
65826 2006-11-12  Bruno Haible  <bruno@clisp.org>
65827
65828         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
65829         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
65830
65831 2006-11-12  Bruno Haible  <bruno@clisp.org>
65832
65833         * gnulib-tool: New option --local-symlink.
65834         (func_usage): Document it.
65835         (lsymbolic): New variable.
65836         (func_import, func_create_testdir): If --symlink was not specified,
65837         test whether --local-symlink was specified and the file comes from
65838         the local_gnulib_dir.
65839
65840 2006-11-12  Bruno Haible  <bruno@clisp.org>
65841
65842         * gnulib-tool (func_ln): New function.
65843         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
65844
65845 2006-11-12  Bruno Haible  <bruno@clisp.org>
65846
65847         Finish support for source files in subdirectories.
65848         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
65849         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
65850         AUTOMAKE_OPTIONS.
65851         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
65852
65853 2006-11-12  Bruno Haible  <bruno@clisp.org>
65854
65855         * gnulib-tool (func_get_automake_snippet): Synthesize also an
65856         EXTRA_lib_SOURCES augmentation.
65857         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
65858
65859 2006-11-12  Jim Meyering  <jim@meyering.net>
65860
65861         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
65862         file descriptors.  This also averts a failure on systems with
65863         native openat support when a traversed directory lacks "x" access.
65864         * lib/fts_.h: Include "i-ring.h"
65865         (struct FTS) [fts_fd_ring]: New member.
65866         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
65867         (FCHDIR): Add parentheses.
65868         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
65869         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
65870         When descending, rather than simply closing the previous
65871         fts_cwd_fd value, push that file descriptor onto the ring.
65872         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
65873         (fts_open): Initialize the new fd_ring member.
65874         (fts_close): Clear the ring.
65875         (fts_safe_changedir): When possible, use our new fd_ring to skip
65876         the diropen and fstat and dev/ino comparison that would normally
65877         accompany a virtual `chdir ("..")'.
65878
65879         * modules/fts (Depends-on): Add i-ring.
65880         * modules/i-ring: New module.
65881         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
65882         * m4/i-ring.m4: New file.
65883
65884 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65885
65886         * gnulib-tool (func_create_testdir): Fix replacement of
65887         `build-aux' in configure.ac.  Run autotools in gltests
65888         subdirectory.
65889         (func_create_testdir, func_create_megatestdir, test): There is
65890         no need for '--force' in most autotool invocations in a new
65891         tree.  Actually fail the whole test if any of the tools, or the
65892         configure or make stages fail.
65893
65894         Sync from Automake.
65895         * build-aux/gnupload: Revert last change.  Add pointer to upload
65896         instructions of the GNU Maintenance Instructions.
65897         Suggestion by Karl Berry.
65898
65899 2006-11-10  Jim Meyering  <jim@meyering.net>
65900
65901         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
65902
65903 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
65904
65905         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
65906         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
65907         (bind_textdomain_codeset) [! ENABLE_NLS]:
65908         Evaluate all the arguments.  That way, callers get compatible behavior
65909         if the arguments have side effects.  Also, it avoids some GCC
65910         diagnostics in some cases; Joel E. Denny reported problems when Bison
65911         was configured with --enable-gcc-warnigs.
65912
65913 2006-11-10  Jim Meyering  <jim@meyering.net>
65914
65915         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
65916         relevant options in CFLAGS (like -O, -fno-inline) are taken into
65917         account.
65918
65919 2006-11-10  Jim Meyering  <jim@meyering.net>
65920
65921         * modules/inline: New file/module.
65922         * modules/xalloc (Files): Remove m4/inline.m4.
65923         (Depends-on): Add inline, instead.
65924         * modules/oset: Likewise.
65925         * modules/list: Likewise.
65926
65927 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
65928
65929         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
65930         Problem reported by Matthew Woehlke.
65931
65932 2006-11-09  Bruno Haible  <bruno@clisp.org>
65933
65934         * lib/tempname.c (gen_tempname): Remove variant that invokes
65935         __gen_tempname.
65936         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
65937         __gen_tempname.
65938
65939 2006-11-08  Bruno Haible  <bruno@clisp.org>
65940
65941         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
65942         to 'yes' instead of 'cross-compiling'.
65943
65944 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
65945
65946         * lib/quotearg.h (quotearg_free): New decl.
65947         * lib/quotearg.c (quotearg_free): New function.
65948         (slot0, nslots, slotvec0, slotvec):
65949         Now file-scope so that quotearg_free can get at them.
65950
65951 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65952
65953         Sync from Automake.
65954         * build-aux/gnupload: Add missing 'gnu' to example URL.
65955         Report by Karl Berry.
65956
65957 2006-11-08  Bruno Haible  <bruno@clisp.org>
65958
65959         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
65960         Suggested by Paul Eggert.
65961
65962 2006-11-08  Jim Meyering  <jim@meyering.net>
65963
65964         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
65965         It's already included if !_LIBC.
65966         (fts_safe_changedir): Add a comment.
65967
65968 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
65969
65970         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
65971         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
65972         Matthew Woehlke.
65973
65974         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
65975         definitions up, to avoid colliding with change below.
65976         (static_inline) [HAVE_INLINE]: New macro.
65977         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
65978         Provide extern decls when !HAVE_INLINE.  Do not define unless
65979         static_inline is defined, either by us or by xmalloc.c.  Use
65980         static_inline rather than static inline.
65981         (XCALLOC): Optimize sizeof(T) = 1 case.
65982         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
65983
65984 2006-11-07  Bruno Haible  <bruno@clisp.org>
65985
65986         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
65987         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
65988         AC_C_INLINE.
65989         * modules/xalloc (Files): Add m4/inline.m4.
65990
65991 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65992
65993         * README: Fix typo.
65994         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
65995         (Miscellanous Notes): ...from this.
65996
65997 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
65998
65999         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
66000         Mention that offsetof should be used instead of sizeof.
66001         From Bruno Haible.
66002
66003 2006-11-07  Bruno Haible  <bruno@clisp.org>
66004
66005         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
66006
66007 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
66008
66009         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
66010         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
66011         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
66012         (gl_tree_add_before, gl_tree_add_after):
66013         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
66014         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
66015         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
66016         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
66017         (gl_linked_add_after, gl_linked_add_at): Likewise.
66018         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
66019         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
66020         (gl_tree_add_before, gl_tree_add_after): Likewise.
66021         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
66022         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
66023         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
66024
66025 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66026
66027         * lib/gl_oset.h: Use C comment style, not C++ comment style.
66028
66029 2006-11-06  Bruno Haible  <bruno@clisp.org>
66030
66031         * m4/inline.m4: New file.
66032         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
66033         * modules/list (Files): Add m4/inline.m4.
66034         * modules/oset (Files): Likewise.
66035
66036 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
66037
66038         * lib/idcache.c: Include <stddef.h>, for offsetof.
66039         (struct userid.name): Change from char * to a flexible array member.
66040         All uses changed.
66041         * modules/idcache (Depends-on): Add flexmember.
66042
66043         * MODULES.html.sh (Core language properties): New module flexmember.
66044         * modules/flexmember, m4/flexmember.m4: New files.
66045
66046         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
66047         inline functions that are identical with the old xnmalloc_inline,
66048         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
66049         that we can avoid some unnecessary integer multiplications and
66050         divisions in the common case where the element size is known at
66051         compile time.
66052         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
66053         needed.
66054         (xnboundedmalloc): Remove.
66055         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
66056         arguments, for consistency with rest of this header.
66057         (xcharalloc): Rewrite using XNMALLOC.
66058         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
66059         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
66060         versions have been moved to lib/xalloc.h and renamed to be the
66061         non-*_inline versions.
66062         (xmalloc, xrealloc): Implement without reference to the xnmalloc
66063         and xnrealloc functions, since those functions are now inline and
66064         now call us.
66065         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
66066         renaming described above.
66067         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
66068         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
66069         captures the dependency in AC_C_INLINE.
66070
66071         New module canonicalize-lgpl, proposed by Charles Wilson in
66072         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
66073         with a few small changes afterwards.
66074         * MODULES.html.sh (File system functions): New module
66075         canonicalize-lgpl.
66076         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
66077         and canonicalize_file_name.
66078         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
66079         * modules/canonicalize-lgpl: New files.
66080
66081 2006-11-05  Bruno Haible  <bruno@clisp.org>
66082
66083         * gnulib-tool (func_import, func_create_testdir): Create directories
66084         also for files in subdirectories of lib/.
66085
66086 2006-11-05  Bruno Haible  <bruno@clisp.org>
66087
66088         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
66089         ANSI C compliant.
66090
66091 2006-11-03  Bruno Haible  <bruno@clisp.org>
66092
66093         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
66094         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
66095         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
66096         (xnboundedmalloc): New inline function.
66097         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
66098         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
66099         xmalloc.
66100         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
66101         xmalloc.
66102         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
66103         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
66104         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
66105         xmalloc.
66106         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
66107         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
66108         xmalloc.
66109         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
66110         gl_tree_add_after): Use XMALLOC instead of xmalloc.
66111         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
66112         xmalloc.
66113         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
66114         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
66115         gl_tree_add_after): Use XMALLOC instead of xmalloc.
66116         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
66117         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
66118         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
66119         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
66120
66121 2006-11-03  Bruno Haible  <bruno@clisp.org>
66122
66123         * lib/c-ctype.h [C++]: Define functions without name mangling.
66124         * lib/fwriteerror.h [C++]: Likewise.
66125         * lib/gcd.h [C++]: Likewise.
66126         * lib/linebreak.h [C++]: Likewise.
66127
66128 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
66129
66130         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
66131         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
66132         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
66133         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
66134         Check for functions and headers just once.
66135         Check for declaration of canonicalize_file_name.
66136         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
66137
66138 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
66139
66140         * gnulib-tool (func_import): Fix typo in actioncmd.
66141
66142 2006-11-02  Bruno Haible  <bruno@clisp.org>
66143
66144         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
66145         newline sequence in the Makefile.am snippet as a space, like "make"
66146         does.
66147         Reported by Roger Persson <perrog@gmail.com>.
66148
66149 2006-11-01  Bruno Haible  <bruno@clisp.org>
66150
66151         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
66152         already declared in <string.h>.
66153         * lib/strcase.h (strncasecmp): Don't declare it if yes.
66154
66155 2006-11-01  Bruno Haible  <bruno@clisp.org>
66156
66157         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
66158         * lib/strcase.h: Include <string.h>.
66159         (strcasecmp): Define to rpl_strcasecmp here.
66160
66161 2006-11-01  Bruno Haible  <bruno@clisp.org>
66162
66163         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
66164
66165 2006-11-01  Eric Blake  <ebb9@byu.net>
66166
66167         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
66168
66169         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
66170
66171 2006-10-29  Bruno Haible  <bruno@clisp.org>
66172
66173         Make it compile in C++ mode.
66174         * lib/full-write.c (full_rw): Add a cast.
66175
66176 2006-11-01  Bruno Haible  <bruno@clisp.org>
66177
66178         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
66179         be POSIX compliant.
66180         Reported by Roger Persson <perrog@gmail.com>.
66181
66182 2006-11-01  Eric Blake  <ebb9@byu.net>
66183
66184         * lib/getopt_.h: Fix comments.
66185
66186 2006-10-31  Eric Blake  <ebb9@byu.net>
66187
66188         * modules/tmpdir (Depends-on): Add sys_stat.
66189         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
66190         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
66191         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
66192         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
66193         tempname.
66194
66195 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
66196
66197         Avoid some C++ diagnostics reported by Bruno Haible.
66198         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
66199         xmalloc.
66200         (quotearg_alloc): Use xcharalloc rather than xmalloc.
66201         (struct slotvec): Move to top level.
66202         (quotearg_n_options): Rewrite to avoid xmalloc.
66203         * lib/xalloc.h (xcharalloc): New function.
66204         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
66205         [defined __cplusplus]: Add function template that provides result
66206         type propagation.  This part of the change is from Bruno Haible.
66207
66208 2006-10-29  Bruno Haible  <bruno@clisp.org>
66209
66210         Make it compile in C++ mode.
66211         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
66212         * lib/strnlen1.c (strnlen1): Cast memchr result.
66213         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
66214         * lib/clean-temp.c (string_equals, string_hash): Add casts.
66215         (create_temp_dir): Rename local variable 'template'.
66216         (compile_csharp_using_sscli): Add cast.
66217         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
66218         * lib/findprog.c (find_in_path): Likewise.
66219         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
66220         * lib/wait-process.c (register_slave_subprocess): Likewise.
66221
66222 2006-10-22  Bruno Haible  <bruno@clisp.org>
66223
66224         * modules/tsearch: New file.
66225         * lib/tsearch.h: New file.
66226         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
66227         * m4/tsearch.m4: New file.
66228         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
66229
66230 2006-10-29  Eric Blake  <ebb9@byu.net>
66231
66232         * lib/arcfour.c: Assume config.h.
66233         * lib/arctwo.c: Likewise.
66234         * lib/base64.c: Likewise.
66235         * lib/check-version.c: Likewise.
66236         * lib/crc.c: Likewise.
66237         * lib/des.c: Likewise.
66238         * lib/gc-gnulib.c: Likewise.
66239         * lib/gc-libgcrypt.c: Likewise.
66240         * lib/gc-pbkdf2-sha1.c: Likewise.
66241         * lib/getaddrinfo.c: Likewise.
66242         * lib/getdelim.c: Likewise.
66243         * lib/getline.c: Likewise.
66244         * lib/hmac-md5.c: Likewise.
66245         * lib/hmac-sha1.c: Likewise.
66246         * lib/iconvme.c: Likewise.
66247         * lib/md2.c: Likewise.
66248         * lib/md4.c: Likewise.
66249         * lib/memxor.c: Likewise.
66250         * lib/read-file.c: Likewise.
66251         * lib/readline.c: Likewise.
66252         * lib/rijndael-alg-fst.c: Likewise.
66253         * lib/rijndael-api-fst.c: Likewise.
66254         * lib/xgetdomainname.c: Likewise.
66255
66256 2006-10-28  Eric Blake  <ebb9@byu.net>
66257
66258         * lib/xstrndup.c: Assume config.h.
66259
66260 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
66261
66262         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
66263         stat-macros.h is now for our own macros, whereas stat_h is for
66264         macros in the <sys/stat.h> name space.
66265         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
66266         (STAT_MACROS_H): Remove.
66267         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
66268         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
66269         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
66270         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
66271         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
66272         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
66273         Move these macros to ...
66274         * lib/stat_.h: here.  Don't include stat-macros.h.
66275         * lib/canonicalize.c: Don't include stat-macros.h.
66276         * lib/chown.c: Likewise.
66277         * lib/euidaccess.c: Likewise.
66278         * lib/file-type.c: Likewise.
66279         * lib/filemode.c: Likewise.
66280         * lib/glob.c: Likewise.
66281         * lib/isapipe.c: Likewise.
66282         * lib/lchown.c: Likewise.
66283         * lib/lstat.c: Likewise.
66284         * lib/mkdir-p.c: Likewise.
66285         * lib/rmdir.c: Likewise.
66286         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
66287         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
66288         unless mkdir isn't declared, to speed up 'configure'.
66289         Always create sys/stat.h, since it's unlikely any real sys/stat.h
66290         would define all the S_* symbols.
66291         * modules/canonicalize (Depends-on):
66292         Depend on sys_stat, not stat-macros.
66293         * modules/chown: Likewise.
66294         * modules/euidaccess: Likewise.
66295         * modules/filemode: Likewise.
66296         * modules/file-type: Likewise.
66297         * modules/glob: Likewise.
66298         * modules/isapipe: Likewise.
66299         * modules/lchown: Likewise.
66300         * modules/lstat: Likewise.
66301         * modules/mkancesdirs: Likewise.
66302         * modules/rmdir: Likewise.
66303         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
66304         * modules/modechange: Likewise.
66305         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
66306         (configure.ac): Remove gl_STAT_MACROS.
66307         * modules/sys_stat (Depends-on): Remove stat-macros.
66308
66309 2006-10-27  Bruno Haible  <bruno@clisp.org>
66310
66311         * m4/signed.m4: Remove file.
66312         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
66313         invocation.
66314         * modules/vasnprintf (Files): Remove m4/signed.m4.
66315
66316 2006-10-27  Bruno Haible  <bruno@clisp.org>
66317
66318         Update to GNU gettext 0.16.
66319         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
66320         m4/inttypes-h.m4, m4/signed.m4.
66321         * m4/gettext.m4: Update to GNU gettext 0.16.
66322         * m4/intl.m4: New file, from GNU gettext.
66323         * m4/intldir.m4: New file, from GNU gettext.
66324         * config/srclist.txt: Update
66325
66326 2006-10-27  Eric Blake  <ebb9@byu.net>
66327
66328         * MODULES.html.sh: Document tempname.
66329         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
66330         dependencies.
66331         (Files): Move lib/tempname.c...
66332         * modules/tempname: ...to this new module.
66333         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
66334         (gl_PREREQ_TEMPNAME): Move...
66335         * m4/tempname.m4: ...to this new file.
66336         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
66337         * modules/sys_stat (Depends-on): Add stat-macros.
66338         * lib/stat_.h (includes): Pick up stat macros.
66339         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
66340         if stat macros are broken.
66341         * lib/tempname.c (includes): No need to include "stat-macros.h".
66342         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
66343         (direxists, __path_search) [!_LIBC]: Don't compile these in
66344         gnulib; the tmpdir module covers that.
66345         * lib/tempname.h: New file.
66346
66347 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
66348
66349         * COPYING: Explain how gnulib-tool converts licence headers.
66350         Almost all wording by Eric Blake.
66351
66352 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
66353
66354         * lib/mbchar.h (is_basic_table): Make read-only.
66355         * lib/mbchar.c (is_basic_table): Likewise.
66356         Reported by John Darrington.
66357
66358 2006-10-25  Bruno Haible  <bruno@clisp.org>
66359
66360         * lib/progname.h (set_program_name): Undefine before defining.
66361
66362 2006-10-25  Bruno Haible  <bruno@clisp.org>
66363
66364         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
66365         false for non-gcc C++ compilers.
66366         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
66367
66368 2006-10-24  Bruno Haible  <bruno@clisp.org>
66369
66370         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
66371         iconv implementations like Irix iconv.
66372
66373 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
66374
66375         * modules/vararrays: New file.
66376         * m4/vararrays.m4: New file, taken from diffutils.
66377         * MODULES.html.sh: New module vararrays.
66378
66379 2006-10-24  Karl Berry  <karl@gnu.org>
66380
66381         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
66382         Don't call GNU Unix.
66383
66384 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66385
66386         * users.txt: Add Libtool.
66387
66388         Sync from Libtool:
66389
66390         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
66391
66392         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
66393         to gnulib's policy of including config.h unconditionally.
66394
66395 2006-10-24  Bruno Haible  <bruno@clisp.org>
66396
66397         * modules/wcwidth (Files): Add m4/wint_t.m4.
66398         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
66399         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
66400
66401 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
66402
66403         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
66404         to pacify GCC with some -W flags enabled.  Problem reported by
66405         Bruno Haible.
66406
66407 2006-10-24  Jim Meyering  <jim@meyering.net>
66408
66409         * MODULES.html.sh: Remove uinttostr.  It's not a module.
66410         Reported by Karl Berry.
66411
66412 2006-10-23  Bruno Haible  <bruno@clisp.org>
66413
66414         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
66415
66416 2006-10-24  Bruno Haible  <bruno@clisp.org>
66417
66418         * lib/gl_list.h: Use C comment style, not C++ comment style.
66419
66420 2006-10-23  Eric Blake  <ebb9@byu.net>
66421
66422         * lib/getaddrinfo.c (includes): Add missing include.
66423
66424 2006-10-23  Bruno Haible  <bruno@clisp.org>
66425             Paul Eggert  <eggert@cs.ucla.edu>
66426
66427         Ability to rename obstack_free.
66428         * lib/obstack.h (__obstack_free): New macro. Declare instead of
66429         obstack_free.
66430         (obstack_free): Invoke the __obstack_free macro.
66431         * lib/obstack.c (obstack_free): Use __obstack_free macro.
66432
66433 2006-10-23  Bruno Haible  <bruno@clisp.org>
66434             Paul Eggert  <eggert@cs.ucla.edu>
66435
66436         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
66437         __argc, __argv from the declaration. (They are defined as macros on
66438         mingw.)
66439
66440 2006-10-22  Bruno Haible  <bruno@clisp.org>
66441
66442         * doc/gnulib-intro.texi: New file.
66443         * doc/gnulib.texi: Include it.
66444
66445 2006-10-21  Bruno Haible  <bruno@clisp.org>
66446
66447         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
66448         "Introduction", "Miscellanous Notes", "Particular Modules".
66449
66450 2006-10-21  Bruno Haible  <bruno@clisp.org>
66451
66452         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66453         Change mostlyclean-local rule to avoid sh syntax error from bash
66454         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
66455
66456 2006-10-23  Jim Meyering  <jim@meyering.net>
66457
66458         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
66459         in place of snprintf.
66460
66461         * modules/inttostr (Files): Add lib/uinttostr.c.
66462         * lib/uinttostr.c (inttostr): New file/function.
66463         * lib/inttostr.h (uinttostr): Declare.
66464         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
66465         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
66466         Add uinttostr.
66467         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
66468
66469 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
66470
66471         * lib/canonicalize.c (ELOOP): Define if not already defined.
66472         Problem reported by Bruno Haible in
66473         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
66474
66475 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
66476
66477         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
66478         Problem reported by Perry Smith and Ville Laurikari.
66479
66480         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
66481         uses.
66482
66483 2006-10-19  Bruno Haible  <bruno@clisp.org>
66484
66485         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
66486         for mingw.
66487
66488 2006-10-19  Bruno Haible  <bruno@clisp.org>
66489
66490         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
66491         Needed for mingw.
66492
66493 2006-10-19  Bruno Haible  <bruno@clisp.org>
66494
66495         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
66496
66497 2006-10-19  Bruno Haible  <bruno@clisp.org>
66498
66499         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
66500         it.
66501
66502 2006-10-19  Bruno Haible  <bruno@clisp.org>
66503
66504         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
66505         invocation.
66506
66507 2006-10-19  Bruno Haible  <bruno@clisp.org>
66508
66509         * gnulib-tool (func_create_testdir): Don't include ftruncate and
66510         mountlist by default.
66511
66512 2006-10-16  Bruno Haible  <bruno@clisp.org>
66513
66514         * lib/c-strstr.c: Include c-strstr.h.
66515
66516 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
66517
66518         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
66519         in a slash.
66520
66521 2006-10-18  Bruno Haible  <bruno@clisp.org>
66522
66523         * lib/lock.h [C++]: Wrap definitions in extern "C".
66524
66525 2006-10-18  Bruno Haible  <bruno@clisp.org>
66526
66527         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
66528         gl_LIBOBJS list.
66529
66530 2006-10-18  Bruno Haible  <bruno@clisp.org>
66531
66532         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
66533
66534 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
66535
66536         * lib/xstrtol.h: Include gettext.h.
66537         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
66538         Problem reported by Eric Blake.
66539         * modules/xstrtol (Depends-on): Add gettext-h.
66540
66541 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
66542
66543         * lib/strftime.c (advance): New macro.
66544         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
66545         incomplete type, so you can't add 0 to it.  Problem and patch
66546         reported by Eelco Dolstra for dietlibc.
66547
66548 2006-10-18  Jim Meyering  <jim@meyering.net>
66549
66550         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
66551         type for a local, and rename it: s/up/user_proc/.
66552
66553 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
66554
66555         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
66556         READ_UTMP_USER_PROCESS.
66557         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
66558
66559 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
66560
66561         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
66562         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
66563
66564 2006-10-17  Eric Blake  <ebb9@byu.net>
66565
66566         * lib/sigprocmask.c (sigprocmask): Fix typo.
66567
66568         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
66569
66570         * modules/clean-temp (Makefile.am): Don't add to make output...
66571         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
66572         config.h.
66573
66574 2006-10-17  Bruno Haible  <bruno@clisp.org>
66575
66576         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
66577         differently if DEFAULT_TEXT_DOMAIN is set.
66578
66579 2006-10-16  Bruno Haible  <bruno@clisp.org>
66580
66581         * lib/clean-temp.c: Include fwriteerror.h.
66582
66583 2006-10-16  Bruno Haible  <bruno@clisp.org>
66584
66585         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
66586
66587 2006-10-16  Bruno Haible  <bruno@clisp.org>
66588
66589         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
66590         * lib/sigprocmask.h: Include <sys/types.h>.
66591         (sigset_t): Use the system's definition if present.
66592
66593 2006-10-17  Eric Blake  <ebb9@byu.net>
66594
66595         * lib/xvasprintf.c (includes): Assume config.h.
66596         * lib/xasprintf.c (includes): Likewise.
66597
66598 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
66599
66600         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
66601         at least as wide as intmax_t.
66602
66603 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
66604
66605         (Imported from Automake.)
66606         * build-aux/gnupload: Update to version 1.1 of directive file.
66607
66608 2006-10-16  Eric Blake  <ebb9@byu.net>
66609
66610         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
66611         match Automake 1.10a.
66612
66613 2006-10-14  Bruno Haible  <bruno@clisp.org>
66614
66615         * modules/sigprocmask: New file.
66616         * lib/sigprocmask.h: New file.
66617         * lib/sigprocmask.c: New file.
66618         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
66619         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
66620         request sigprocmask.o.
66621         (gl_PREREQ_SIGPROCMASK): New macro.
66622         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
66623         (Depends-on): Add sigprocmask.
66624         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
66625         gt_SIGNALBLOCKING. Test for 'raise' only once.
66626         * lib/fatal-signal.c: Include sigprocmask.h.
66627         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
66628         unblock_fatal_signals): Define always.
66629         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
66630         sigprocmask.
66631
66632 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
66633
66634         Sync from Automake.
66635         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
66636         which incorrectly sets the mode of an existing destination
66637         directory.  In some cases the unpatched install-sh could do the
66638         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
66639         system.  We hope this is rare in practice, but it's clearly worth
66640         fixing.  Problem reported by Alex Unleashed in
66641         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
66642         Also, don't bother to check for -m bugs unless we're using -m;
66643         suggested by Stepan Kasal.
66644
66645 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66646
66647         Sync from Automake.
66648         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
66649         `-c' flag, so they appear at the same position as in %FASTDEP%
66650         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
66651         which ignores unknown options only after the first non-option.
66652         Bug report against M4 by Nelson H. F. Beebe.
66653
66654 2006-10-13  Jim Meyering  <jim@meyering.net>
66655
66656         Fix a bug in yesterday's change.
66657         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
66658         p->fts_statp->st_dev would be used uninitialized.
66659         Ensures that we always call fts_stat on the very first entry.
66660         Miklos Szeredi reported that find -xdev stopped working.
66661
66662 2006-10-12  Bruno Haible  <bruno@clisp.org>
66663
66664         * gnulib-tool (func_get_automake_snippet): Append an automatically
66665         computed EXTRA_DIST augmentation.
66666         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
66667         * modules/alloca-opt (Makefile.am): Likewise.
66668         * modules/allocsa (Makefile.am): Likewise.
66669         * modules/arcfour (Makefile.am): Likewise.
66670         * modules/arctwo (Makefile.am): Likewise.
66671         * modules/argmatch (Makefile.am): Likewise.
66672         * modules/argz (Makefile.am): Likewise.
66673         * modules/atexit (Makefile.am): Likewise.
66674         * modules/backupfile (Makefile.am): Likewise.
66675         * modules/byteswap (Makefile.am): Likewise.
66676         * modules/c-strtod (Makefile.am): Likewise.
66677         * modules/c-strtold (Makefile.am): Likewise.
66678         * modules/calloc (Makefile.am): Likewise.
66679         * modules/canon-host (Makefile.am): Likewise.
66680         * modules/canonicalize (Makefile.am): Likewise.
66681         * modules/chdir-long (Makefile.am): Likewise.
66682         * modules/chdir-safer (Makefile.am): Likewise.
66683         * modules/check-version (Makefile.am): Likewise.
66684         * modules/chown (Makefile.am): Likewise.
66685         * modules/cloexec (Makefile.am): Likewise.
66686         * modules/close-stream (Makefile.am): Likewise.
66687         * modules/closeout (Makefile.am): Likewise.
66688         * modules/crc (Makefile.am): Likewise.
66689         * modules/csharpexec (Makefile.am): Likewise.
66690         * modules/cycle-check (Makefile.am): Likewise.
66691         * modules/des (Makefile.am): Likewise.
66692         * modules/dev-ino (Makefile.am): Likewise.
66693         * modules/dirfd (Makefile.am): Likewise.
66694         * modules/dirname (Makefile.am): Likewise.
66695         * modules/dup2 (Makefile.am): Likewise.
66696         * modules/eealloc (Makefile.am): Likewise.
66697         * modules/error (Makefile.am): Likewise.
66698         * modules/euidaccess (Makefile.am): Likewise.
66699         * modules/exclude (Makefile.am): Likewise.
66700         * modules/exitfail (Makefile.am): Likewise.
66701         * modules/fcntl-safer (Makefile.am): Likewise.
66702         * modules/fcntl (Makefile.am): Likewise.
66703         * modules/file-type (Makefile.am): Likewise.
66704         * modules/fileblocks (Makefile.am): Likewise.
66705         * modules/filemode (Makefile.am): Likewise.
66706         * modules/filenamecat (Makefile.am): Likewise.
66707         * modules/fnmatch (Makefile.am): Likewise.
66708         * modules/fopen-safer (Makefile.am): Likewise.
66709         * modules/fpending (Makefile.am): Likewise.
66710         * modules/fprintftime (Makefile.am): Likewise.
66711         * modules/free (Makefile.am): Likewise.
66712         * modules/fsusage (Makefile.am): Likewise.
66713         * modules/ftruncate (Makefile.am): Likewise.
66714         * modules/fts (Makefile.am): Likewise.
66715         * modules/gc-arcfour (Makefile.am): Likewise.
66716         * modules/gc-des (Makefile.am): Likewise.
66717         * modules/gc-hmac-md5 (Makefile.am): Likewise.
66718         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
66719         * modules/gc-md4 (Makefile.am): Likewise.
66720         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
66721         * modules/gc-sha1 (Makefile.am): Likewise.
66722         * modules/gc (Makefile.am): Likewise.
66723         * modules/getaddrinfo (Makefile.am): Likewise.
66724         * modules/getcwd (Makefile.am): Likewise.
66725         * modules/getdelim (Makefile.am): Likewise.
66726         * modules/getdomainname (Makefile.am): Likewise.
66727         * modules/getgroups (Makefile.am): Likewise.
66728         * modules/gethostname (Makefile.am): Likewise.
66729         * modules/gethrxtime (Makefile.am): Likewise.
66730         * modules/getline (Makefile.am): Likewise.
66731         * modules/getloadavg (Makefile.am): Likewise.
66732         * modules/getlogin_r (Makefile.am): Likewise.
66733         * modules/getndelim2 (Makefile.am): Likewise.
66734         * modules/getopt (Makefile.am): Likewise.
66735         * modules/getpagesize (Makefile.am): Likewise.
66736         * modules/getpass-gnu (Makefile.am): Likewise.
66737         * modules/getpass (Makefile.am): Likewise.
66738         * modules/getsubopt (Makefile.am): Likewise.
66739         * modules/gettime (Makefile.am): Likewise.
66740         * modules/gettimeofday (Makefile.am): Likewise.
66741         * modules/getugroups (Makefile.am): Likewise.
66742         * modules/getusershell (Makefile.am): Likewise.
66743         * modules/glob (Makefile.am): Likewise.
66744         * modules/group-member (Makefile.am): Likewise.
66745         * modules/hard-locale (Makefile.am): Likewise.
66746         * modules/hash (Makefile.am): Likewise.
66747         * modules/hmac-md5 (Makefile.am): Likewise.
66748         * modules/hmac-sha1 (Makefile.am): Likewise.
66749         * modules/human (Makefile.am): Likewise.
66750         * modules/idcache (Makefile.am): Likewise.
66751         * modules/imaxabs (Makefile.am): Likewise.
66752         * modules/imaxdiv (Makefile.am): Likewise.
66753         * modules/inet_ntop (Makefile.am): Likewise.
66754         * modules/inet_pton (Makefile.am): Likewise.
66755         * modules/intprops (Makefile.am): Likewise.
66756         * modules/inttostr (Makefile.am): Likewise.
66757         * modules/inttypes (Makefile.am): Likewise.
66758         * modules/isapipe (Makefile.am): Likewise.
66759         * modules/javaversion (Makefile.am): Likewise.
66760         * modules/lchmod (Makefile.am): Likewise.
66761         * modules/lchown (Makefile.am): Likewise.
66762         * modules/localcharset (Makefile.am): Likewise.
66763         * modules/long-options (Makefile.am): Likewise.
66764         * modules/lstat (Makefile.am): Likewise.
66765         * modules/malloc (Makefile.am): Likewise.
66766         * modules/mathl (Makefile.am): Likewise.
66767         * modules/mbchar (Makefile.am): Likewise.
66768         * modules/md2 (Makefile.am): Likewise.
66769         * modules/md4 (Makefile.am): Likewise.
66770         * modules/md5 (Makefile.am): Likewise.
66771         * modules/memcasecmp (Makefile.am): Likewise.
66772         * modules/memchr (Makefile.am): Likewise.
66773         * modules/memcmp (Makefile.am): Likewise.
66774         * modules/memcoll (Makefile.am): Likewise.
66775         * modules/memcpy (Makefile.am): Likewise.
66776         * modules/memmem (Makefile.am): Likewise.
66777         * modules/memmove (Makefile.am): Likewise.
66778         * modules/mempcpy (Makefile.am): Likewise.
66779         * modules/memrchr (Makefile.am): Likewise.
66780         * modules/memset (Makefile.am): Likewise.
66781         * modules/memxor (Makefile.am): Likewise.
66782         * modules/mkancesdirs (Makefile.am): Likewise.
66783         * modules/mkdir-p (Makefile.am): Likewise.
66784         * modules/mkdir (Makefile.am): Likewise.
66785         * modules/mkdtemp (Makefile.am): Likewise.
66786         * modules/mkstemp (Makefile.am): Likewise.
66787         * modules/mktime (Makefile.am): Likewise.
66788         * modules/modechange (Makefile.am): Likewise.
66789         * modules/mountlist (Makefile.am): Likewise.
66790         * modules/nanosleep (Makefile.am): Likewise.
66791         * modules/obstack (Makefile.am): Likewise.
66792         * modules/openat (Makefile.am): Likewise.
66793         * modules/pagealign_alloc (Makefile.am): Likewise.
66794         * modules/pathmax (Makefile.am): Likewise.
66795         * modules/physmem (Makefile.am): Likewise.
66796         * modules/poll (Makefile.am): Likewise.
66797         * modules/posixtm (Makefile.am): Likewise.
66798         * modules/posixver (Makefile.am): Likewise.
66799         * modules/putenv (Makefile.am): Likewise.
66800         * modules/quote (Makefile.am): Likewise.
66801         * modules/quotearg (Makefile.am): Likewise.
66802         * modules/raise (Makefile.am): Likewise.
66803         * modules/read-file (Makefile.am): Likewise.
66804         * modules/readline (Makefile.am): Likewise.
66805         * modules/readlink (Makefile.am): Likewise.
66806         * modules/readtokens (Makefile.am): Likewise.
66807         * modules/readutmp (Makefile.am): Likewise.
66808         * modules/realloc (Makefile.am): Likewise.
66809         * modules/regex (Makefile.am): Likewise.
66810         * modules/rename-dest-slash (Makefile.am): Likewise.
66811         * modules/rename (Makefile.am): Likewise.
66812         * modules/rijndael (Makefile.am): Likewise.
66813         * modules/rmdir (Makefile.am): Likewise.
66814         * modules/rpmatch (Makefile.am): Likewise.
66815         * modules/safe-read (Makefile.am): Likewise.
66816         * modules/safe-write (Makefile.am): Likewise.
66817         * modules/same-inode (Makefile.am): Likewise.
66818         * modules/same (Makefile.am): Likewise.
66819         * modules/save-cwd (Makefile.am): Likewise.
66820         * modules/savedir (Makefile.am): Likewise.
66821         * modules/setenv (Makefile.am): Likewise.
66822         * modules/settime (Makefile.am): Likewise.
66823         * modules/sha1 (Makefile.am): Likewise.
66824         * modules/sig2str (Makefile.am): Likewise.
66825         * modules/snprintf (Makefile.am): Likewise.
66826         * modules/stat-macros (Makefile.am): Likewise.
66827         * modules/stat-time (Makefile.am): Likewise.
66828         * modules/stdbool (Makefile.am): Likewise.
66829         * modules/stdint (Makefile.am): Likewise.
66830         * modules/stdlib-safer (Makefile.am): Likewise.
66831         * modules/stpcpy (Makefile.am): Likewise.
66832         * modules/stpncpy (Makefile.am): Likewise.
66833         * modules/strcase (Makefile.am): Likewise.
66834         * modules/strcasestr (Makefile.am): Likewise.
66835         * modules/strchrnul (Makefile.am): Likewise.
66836         * modules/strcspn (Makefile.am): Likewise.
66837         * modules/strdup (Makefile.am): Likewise.
66838         * modules/strerror (Makefile.am): Likewise.
66839         * modules/strftime (Makefile.am): Likewise.
66840         * modules/strndup (Makefile.am): Likewise.
66841         * modules/strnlen (Makefile.am): Likewise.
66842         * modules/strpbrk (Makefile.am): Likewise.
66843         * modules/strsep (Makefile.am): Likewise.
66844         * modules/strstr (Makefile.am): Likewise.
66845         * modules/strtod (Makefile.am): Likewise.
66846         * modules/strtoimax (Makefile.am): Likewise.
66847         * modules/strtok_r (Makefile.am): Likewise.
66848         * modules/strtol (Makefile.am): Likewise.
66849         * modules/strtoll (Makefile.am): Likewise.
66850         * modules/strtoul (Makefile.am): Likewise.
66851         * modules/strtoull (Makefile.am): Likewise.
66852         * modules/strtoumax (Makefile.am): Likewise.
66853         * modules/strverscmp (Makefile.am): Likewise.
66854         * modules/sys_socket (Makefile.am): Likewise.
66855         * modules/sys_stat (Makefile.am): Likewise.
66856         * modules/sysexits (Makefile.am): Likewise.
66857         * modules/time_r (Makefile.am): Likewise.
66858         * modules/timegm (Makefile.am): Likewise.
66859         * modules/timespec (Makefile.am): Likewise.
66860         * modules/tmpfile-safer (Makefile.am): Likewise.
66861         * modules/trim (Makefile.am): Likewise.
66862         * modules/unistd-safer (Makefile.am): Likewise.
66863         * modules/unlinkdir (Makefile.am): Likewise.
66864         * modules/unlocked-io (Makefile.am): Likewise.
66865         * modules/userspec (Makefile.am): Likewise.
66866         * modules/utime (Makefile.am): Likewise.
66867         * modules/utimecmp (Makefile.am): Likewise.
66868         * modules/utimens (Makefile.am): Likewise.
66869         * modules/vasnprintf (Makefile.am): Likewise.
66870         * modules/vasprintf (Makefile.am): Likewise.
66871         * modules/vsnprintf (Makefile.am): Likewise.
66872         * modules/xalloc (Makefile.am): Likewise.
66873         * modules/xgetcwd (Makefile.am): Likewise.
66874         * modules/xnanosleep (Makefile.am): Likewise.
66875         * modules/xreadlink (Makefile.am): Likewise.
66876         * modules/xstrtod (Makefile.am): Likewise.
66877         * modules/xstrtol (Makefile.am): Likewise.
66878         * modules/xstrtold (Makefile.am): Likewise.
66879         * modules/yesno (Makefile.am): Likewise.
66880         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
66881
66882 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
66883
66884         * modules/error (Makefile.am): Distribute files through
66885         EXTRA_DIST, not lib_SOURCES.
66886
66887 2006-10-12  Eric Blake  <ebb9@byu.net>
66888
66889         * modules/error (Makefile.am): Distribute files in /lib.
66890         * modules/obstack (Makefile.am): Likewise.
66891
66892 2006-10-12  Bruno Haible  <bruno@clisp.org>
66893
66894         * modules/acl (Makefile.am): Distribute all files in lib/ through
66895         EXTRA_DIST.
66896         * modules/arcfour (Makefile.am): Likewise.
66897         * modules/arctwo (Makefile.am): Likewise.
66898         * modules/argmatch (Makefile.am): Likewise.
66899         * modules/argz (Makefile.am): Likewise.
66900         * modules/atexit (Makefile.am): Likewise.
66901         * modules/backupfile (Makefile.am): Likewise.
66902         * modules/c-strtod (Makefile.am): Likewise.
66903         * modules/c-strtold (Makefile.am): Likewise.
66904         * modules/calloc (Makefile.am): Likewise.
66905         * modules/canon-host (Makefile.am): Likewise.
66906         * modules/canonicalize (Makefile.am): Likewise.
66907         * modules/chdir-long (Makefile.am): Likewise.
66908         * modules/chdir-safer (Makefile.am): Likewise.
66909         * modules/check-version (Makefile.am): Likewise.
66910         * modules/chown (Makefile.am): Likewise.
66911         * modules/cloexec (Makefile.am): Likewise.
66912         * modules/close-stream (Makefile.am): Likewise.
66913         * modules/closeout (Makefile.am): Likewise.
66914         * modules/crc (Makefile.am): Likewise.
66915         * modules/cycle-check (Makefile.am): Likewise.
66916         * modules/des (Makefile.am): Likewise.
66917         * modules/dirfd (Makefile.am): Likewise.
66918         * modules/dirname (Makefile.am): Likewise.
66919         * modules/dup2 (Makefile.am): Likewise.
66920         * modules/euidaccess (Makefile.am): Likewise.
66921         * modules/exclude (Makefile.am): Likewise.
66922         * modules/exitfail (Makefile.am): Likewise.
66923         * modules/fcntl-safer (Makefile.am): Likewise.
66924         * modules/file-type (Makefile.am): Likewise.
66925         * modules/fileblocks (Makefile.am): Likewise.
66926         * modules/filemode (Makefile.am): Likewise.
66927         * modules/filenamecat (Makefile.am): Likewise.
66928         * modules/fnmatch (Makefile.am): Likewise.
66929         * modules/fopen-safer (Makefile.am): Likewise.
66930         * modules/fpending (Makefile.am): Likewise.
66931         * modules/fprintftime (Makefile.am): Likewise.
66932         * modules/free (Makefile.am): Likewise.
66933         * modules/fsusage (Makefile.am): Likewise.
66934         * modules/ftruncate (Makefile.am): Likewise.
66935         * modules/fts (Makefile.am): Likewise.
66936         * modules/gc (Makefile.am): Likewise.
66937         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
66938         * modules/getaddrinfo (Makefile.am): Likewise.
66939         * modules/getcwd (Makefile.am): Likewise.
66940         * modules/getdelim (Makefile.am): Likewise.
66941         * modules/getdomainname (Makefile.am): Likewise.
66942         * modules/getgroups (Makefile.am): Likewise.
66943         * modules/gethostname (Makefile.am): Likewise.
66944         * modules/gethrxtime (Makefile.am): Likewise.
66945         * modules/getline (Makefile.am): Likewise.
66946         * modules/getloadavg (Makefile.am): Likewise.
66947         * modules/getlogin_r (Makefile.am): Likewise.
66948         * modules/getopt (Makefile.am): Likewise.
66949         * modules/getpass (Makefile.am): Likewise.
66950         * modules/getpass-gnu (Makefile.am): Likewise.
66951         * modules/getsubopt (Makefile.am): Likewise.
66952         * modules/gettime (Makefile.am): Likewise.
66953         * modules/gettimeofday (Makefile.am): Likewise.
66954         * modules/getugroups (Makefile.am): Likewise.
66955         * modules/getusershell (Makefile.am): Likewise.
66956         * modules/glob (Makefile.am): Likewise.
66957         * modules/group-member (Makefile.am): Likewise.
66958         * modules/hard-locale (Makefile.am): Likewise.
66959         * modules/hash (Makefile.am): Likewise.
66960         * modules/hmac-md5 (Makefile.am): Likewise.
66961         * modules/hmac-sha1 (Makefile.am): Likewise.
66962         * modules/human (Makefile.am): Likewise.
66963         * modules/idcache (Makefile.am): Likewise.
66964         * modules/imaxabs (Makefile.am): Likewise.
66965         * modules/imaxdiv (Makefile.am): Likewise.
66966         * modules/inet_ntop (Makefile.am): Likewise.
66967         * modules/inet_pton (Makefile.am): Likewise.
66968         * modules/inttostr (Makefile.am): Likewise.
66969         * modules/isapipe (Makefile.am): Likewise.
66970         * modules/lchown (Makefile.am): Likewise.
66971         * modules/long-options (Makefile.am): Likewise.
66972         * modules/lstat (Makefile.am): Likewise.
66973         * modules/malloc (Makefile.am): Likewise.
66974         * modules/mathl (Makefile.am): Likewise.
66975         * modules/mbchar (Makefile.am): Likewise.
66976         * modules/md2 (Makefile.am): Likewise.
66977         * modules/md4 (Makefile.am): Likewise.
66978         * modules/md5 (Makefile.am): Likewise.
66979         * modules/memcasecmp (Makefile.am): Likewise.
66980         * modules/memchr (Makefile.am): Likewise.
66981         * modules/memcmp (Makefile.am): Likewise.
66982         * modules/memcoll (Makefile.am): Likewise.
66983         * modules/memcpy (Makefile.am): Likewise.
66984         * modules/memmem (Makefile.am): Likewise.
66985         * modules/memmove (Makefile.am): Likewise.
66986         * modules/mempcpy (Makefile.am): Likewise.
66987         * modules/memrchr (Makefile.am): Likewise.
66988         * modules/memset (Makefile.am): Likewise.
66989         * modules/memxor (Makefile.am): Likewise.
66990         * modules/mkancesdirs (Makefile.am): Likewise.
66991         * modules/mkdir (Makefile.am): Likewise.
66992         * modules/mkdir-p (Makefile.am): Likewise.
66993         * modules/mkdtemp (Makefile.am): Likewise.
66994         * modules/mkstemp (Makefile.am): Likewise.
66995         * modules/mktime (Makefile.am): Likewise.
66996         * modules/modechange (Makefile.am): Likewise.
66997         * modules/mountlist (Makefile.am): Likewise.
66998         * modules/nanosleep (Makefile.am): Likewise.
66999         * modules/openat (Makefile.am): Likewise.
67000         * modules/pagealign_alloc (Makefile.am): Likewise.
67001         * modules/physmem (Makefile.am): Likewise.
67002         * modules/poll (Makefile.am): Likewise.
67003         * modules/posixtm (Makefile.am): Likewise.
67004         * modules/posixver (Makefile.am): Likewise.
67005         * modules/putenv (Makefile.am): Likewise.
67006         * modules/quote (Makefile.am): Likewise.
67007         * modules/quotearg (Makefile.am): Likewise.
67008         * modules/raise (Makefile.am): Likewise.
67009         * modules/read-file (Makefile.am): Likewise.
67010         * modules/readline (Makefile.am): Likewise.
67011         * modules/readlink (Makefile.am): Likewise.
67012         * modules/readtokens (Makefile.am): Likewise.
67013         * modules/readutmp (Makefile.am): Likewise.
67014         * modules/realloc (Makefile.am): Likewise.
67015         * modules/regex (Makefile.am): Likewise.
67016         * modules/rename (Makefile.am): Likewise.
67017         * modules/rename-dest-slash (Makefile.am): Likewise.
67018         * modules/rijndael (Makefile.am): Likewise.
67019         * modules/rmdir (Makefile.am): Likewise.
67020         * modules/rpmatch (Makefile.am): Likewise.
67021         * modules/safe-read (Makefile.am): Likewise.
67022         * modules/safe-write (Makefile.am): Likewise.
67023         * modules/same (Makefile.am): Likewise.
67024         * modules/save-cwd (Makefile.am): Likewise.
67025         * modules/savedir (Makefile.am): Likewise.
67026         * modules/setenv (Makefile.am): Likewise.
67027         * modules/settime (Makefile.am): Likewise.
67028         * modules/sha1 (Makefile.am): Likewise.
67029         * modules/sig2str (Makefile.am): Likewise.
67030         * modules/snprintf (Makefile.am): Likewise.
67031         * modules/stdlib-safer (Makefile.am): Likewise.
67032         * modules/stpcpy (Makefile.am): Likewise.
67033         * modules/stpncpy (Makefile.am): Likewise.
67034         * modules/strcase (Makefile.am): Likewise.
67035         * modules/strcasestr (Makefile.am): Likewise.
67036         * modules/strchrnul (Makefile.am): Likewise.
67037         * modules/strcspn (Makefile.am): Likewise.
67038         * modules/strdup (Makefile.am): Likewise.
67039         * modules/strerror (Makefile.am): Likewise.
67040         * modules/strftime (Makefile.am): Likewise.
67041         * modules/strndup (Makefile.am): Likewise.
67042         * modules/strnlen (Makefile.am): Likewise.
67043         * modules/strpbrk (Makefile.am): Likewise.
67044         * modules/strsep (Makefile.am): Likewise.
67045         * modules/strstr (Makefile.am): Likewise.
67046         * modules/strtod (Makefile.am): Likewise.
67047         * modules/strtoimax (Makefile.am): Likewise.
67048         * modules/strtok_r (Makefile.am): Likewise.
67049         * modules/strtol (Makefile.am): Likewise.
67050         * modules/strtoll (Makefile.am): Likewise.
67051         * modules/strtoul (Makefile.am): Likewise.
67052         * modules/strtoull (Makefile.am): Likewise.
67053         * modules/strtoumax (Makefile.am): Likewise.
67054         * modules/strverscmp (Makefile.am): Likewise.
67055         * modules/time_r (Makefile.am): Likewise.
67056         * modules/timegm (Makefile.am): Likewise.
67057         * modules/tmpfile-safer (Makefile.am): Likewise.
67058         * modules/unistd-safer (Makefile.am): Likewise.
67059         * modules/unlinkdir (Makefile.am): Likewise.
67060         * modules/userspec (Makefile.am): Likewise.
67061         * modules/utime (Makefile.am): Likewise.
67062         * modules/utimecmp (Makefile.am): Likewise.
67063         * modules/utimens (Makefile.am): Likewise.
67064         * modules/vasnprintf (Makefile.am): Likewise.
67065         * modules/vasprintf (Makefile.am): Likewise.
67066         * modules/vsnprintf (Makefile.am): Likewise.
67067         * modules/xalloc (Makefile.am): Likewise.
67068         * modules/xgetcwd (Makefile.am): Likewise.
67069         * modules/xnanosleep (Makefile.am): Likewise.
67070         * modules/xreadlink (Makefile.am): Likewise.
67071         * modules/xstrtod (Makefile.am): Likewise.
67072         * modules/xstrtol (Makefile.am): Likewise.
67073         * modules/xstrtold (Makefile.am): Likewise.
67074         * modules/yesno (Makefile.am): Likewise.
67075
67076 2006-10-12  Jim Meyering  <jim@meyering.net>
67077
67078         * m4/getloadavg.m4: Revert the change below.
67079
67080         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
67081         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
67082         fail with a symlink, which is what coreutils' ./bootstrap now
67083         creates by default.
67084
67085 2006-10-12  Bruno Haible  <bruno@clisp.org>
67086
67087         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
67088         mingw.
67089         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
67090         MSVC and mingw explicitly.
67091
67092 2006-10-11  Simon Josefsson  <jas@extundo.com>
67093             Bruno Haible  <bruno@clisp.org>
67094
67095         Add support for multiple gnulib-tool invocations in the scope of a
67096         single configure.ac file.
67097         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
67098         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
67099         with the same contents as the _LIBADD variable.
67100         (func_emit_initmacro_start, func_emit_initmacro_end,
67101         func_emit_initmacro_done): New functions.
67102         (func_import, func_create_testdir): Invoke them. Allow the identifiers
67103         gl_LIBOBJS and gl_LTLIBOBJS.
67104
67105 2006-10-11  Bruno Haible  <bruno@clisp.org>
67106
67107         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
67108         (func_create_testdir): Don't create po/Makefile.am, don't invoke
67109         autoreconf. Instead, invoke autopoint explicitly but move back the
67110         *.m4 files from gnulib.
67111
67112 2006-10-11  Bruno Haible  <bruno@clisp.org>
67113
67114         * gnulib-tool (func_usage): Make module names after --create-testdir
67115         optional.
67116         (func_create_testdir): If no module was specified, use nearly all
67117         modules.
67118
67119 2006-10-12  Jim Meyering  <jim@meyering.net>
67120
67121         Big performance improvement for fts-based tools that use FTS_NOSTAT.
67122         Avoid spurious inode-mismatch problems on non-POSIX file systems.
67123         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
67124         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
67125         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
67126         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
67127         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
67128         (fts_set_stat_required): New function.
67129         (fts_open): Defer the calls to fts_stat, if possible or requested.
67130         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
67131         into fts_stat itself.
67132         (fts_read): Perform any required (deferred) fts_stat call.
67133         (fts_build): Likewise, for the directory we're about to open and read.
67134         In the readdir loop, carefully decide whether each entry will require
67135         an eventual call to fts_stat, using dirent.d_type info if available.
67136         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
67137         a command line argument into this function.  Update all callers.
67138         Map a return value of FTS_DOT to FTS_D for a command line argument.
67139         * modules/fts (Depends-on): Add d-type.  Alphabetize.
67140         Thanks to Miklos Szeredi for his tenacity and for the initial
67141         bug report about "find" failing on a FUSE-based file system.
67142
67143         * lib/fts.c (fts_open): Use consistent indentation.
67144
67145 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
67146
67147         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
67148         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
67149         reported by Jim Meyering.  All uses of cache variables renamed
67150         to match Autoconf's.
67151         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
67152         the other one.
67153
67154         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
67155         Fix misspelling in diagnostic.
67156
67157 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
67158
67159         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
67160         defined.  Problem reported by Matthew Woehlke.
67161
67162         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
67163         Add support for Tandem NonStop R series.
67164         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
67165         Use new macro.
67166
67167         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
67168         (has_trailing_slash): Omit size arg; all callers changed.
67169         Omit 'inline', since it doesn't help performance and we'd
67170         need to configure it.
67171         Don't count //, ///, etc. as having a trailing slash.
67172         As a side effect, this removes a C99ism reported by Matthew Woehlke.
67173         (rpl_rename_dest_slash): On failure, use rename's errno rather
67174         than (in some cases) an incorrect or junk errno.
67175         Simplify code by removing need to compute length; this does
67176         cause it to make two passes instead of one over the file name,
67177         but it's worth it.
67178
67179         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
67180         change, since Autoconf's version may no longer be appropriate now
67181         that we are using CVS Autoconf's version.  Add support for Tandem.
67182
67183 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
67184             Bruno Haible  <bruno@clisp.org>
67185
67186         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
67187         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
67188         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
67189         gl_AC_TYPE_LONG_LONG.
67190
67191         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
67192         instead of HAVE_LONG_LONG.
67193         * lib/printf-args.c (printf_fetchargs): Likewise.
67194         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
67195         * lib/vasnprintf.c (VASNPRINTF): Likewise.
67196         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
67197         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
67198         gl_AC_TYPE_LONG_LONG.
67199
67200 2006-10-11  Bruno Haible  <bruno@clisp.org>
67201
67202         * m4/longlong.m4: Add comments.
67203         * m4/ulonglong.m4: Likewise.
67204
67205 2006-10-10  Bruno Haible  <bruno@clisp.org>
67206
67207         Make it possible to #define stpcpy, strdup to aliases.
67208         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
67209         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
67210
67211 2006-10-10  Bruno Haible  <bruno@clisp.org>
67212
67213         Make it possible to #define gcd to an alias.
67214         * lib/gcd.c: Include config.h.
67215
67216 2006-10-10  Bruno Haible  <bruno@clisp.org>
67217
67218         Make it possible to #define c_isascii to an alias.
67219         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
67220         defined. Undefine the macros before defining them, to avoid gcc
67221         warnings.
67222         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
67223         define NO_C_CTYPE_MACROS early.
67224
67225 2006-10-10  Bruno Haible  <bruno@clisp.org>
67226
67227         Make it possible to #define set_program_name to an alias.
67228         * lib/progname.c: Don't undefine set_program_name; instead, undefine
67229         ENABLE_RELOCATABLE early.
67230
67231 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
67232
67233         Port to Tandem NSK OSS, which has 64-bit signed int but at most
67234         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
67235         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
67236         More generally, don't assume that 64-bit signed int is available
67237         if unsigned int is, and vice versa.
67238         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
67239         unsigned symbols, not on their signed counterparts.
67240         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
67241         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
67242         (UINT64_C, UINTMAX_C):
67243         Likewise.
67244         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
67245         unsigned counterparts.
67246         (Have_long_long, Unsigned): New macros.
67247         (Int): Renamed from INT.
67248         (strtoimax): Use the new macros.
67249         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
67250         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
67251         * modules/inttypes (inttypes.h): Substitute
67252         HAVE_UNSIGNED_LONG_LONG_INT.
67253         * modules/stdint (stdint.h): Likewise.
67254         (Files): Add m4/ulonglong.m4.
67255
67256 2006-10-10  Bruno Haible  <bruno@clisp.org>
67257
67258         Fix a gcc -Wshadow warning.
67259         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
67260         to 'bucket'.
67261         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
67262         gl_linked_indexof_from_to): Likewise.
67263         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
67264         Likewise.
67265         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
67266         Likewise.
67267         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
67268         Reported by Eric Blake.
67269
67270 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
67271
67272         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
67273         for NetBSD.  Problem reported by Bruno Haible.
67274
67275 2006-10-09  Jim Meyering  <jim@meyering.net>
67276
67277         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
67278         Patch from Bruno Haible.
67279
67280 2006-10-09  Jim Meyering  <jim@meyering.net>
67281
67282         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
67283         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
67284         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
67285
67286 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
67287
67288         Don't include <config.h> twice; this doesn't work in some cases,
67289         e.g., when config.h has "#define intmax_t long long int" and
67290         we include <config.h>, <inttypes.h>, <config.h> in that order.
67291         Problem reported by Matthew Woehlke in:
67292         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
67293         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
67294         * lib/fts-cycle.c: Don't include config.h.
67295         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
67296         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
67297         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
67298         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
67299         inttypes.h.
67300         * lib/xstrtoumax.c: Likewise.
67301         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
67302         __strtol and the like, so that this module is more like its siblings.
67303         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
67304         Remove; no longer needed now that we assume gnulib inttypes.h.
67305
67306 2006-10-08  Bruno Haible  <bruno@clisp.org>
67307
67308         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
67309         option.
67310
67311 2006-10-07  Jim Meyering  <jim@meyering.net>
67312
67313         * modules/inttypes (inttypes.h): Revert what seems to have been
67314         an inadvertent part of today's change: use "|", not "/" in the
67315         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
67316
67317 2006-10-07  Bruno Haible  <bruno@clisp.org>
67318
67319         * modules/sublist: New file.
67320
67321 2006-10-07  Bruno Haible  <bruno@clisp.org>
67322
67323         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
67324         * modules/argz (argz.h): Likewise.
67325         * modules/arpa_inet (arpa/inet.h): Likewise.
67326         * modules/byteswap (byteswap.h): Likewise.
67327         * modules/configmake (configmake.h): Likewise.
67328         * modules/fcntl (fcntl.h): Likewise.
67329         * modules/fnmatch (fnmatch.h): Likewise.
67330         * modules/getopt (getopt.h): Likewise.
67331         * modules/glob (glob.h): Likewise.
67332         * modules/inttypes (inttypes.h): Likewise.
67333         * modules/netinet_in (netinet/in.h): Likewise.
67334         * modules/poll (poll.h): Likewise.
67335         * modules/stdbool (stdbool.h): Likewise.
67336         * modules/stdint (stdint.h): Likewise.
67337         * modules/sys_select (sys/select.h): Likewise.
67338         * modules/sys_socket (sys/socket.h): Likewise.
67339         * modules/sys_stat (sys/stat.h): Likewise.
67340         * modules/sysexits (sysexits.h): Likewise.
67341         * modules/unistd (unistd.h): Likewise.
67342         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
67343         Add a "DO NOT EDIT" comment to the generated file.
67344         (func_import): Likewise for gnulib-comp.m4.
67345
67346 2006-10-07  Bruno Haible  <bruno@clisp.org>
67347
67348         * lib/gl_sublist.h: New file.
67349         * lib/gl_sublist.c: New file.
67350
67351 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
67352
67353         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
67354         name (relative to the original working directory) and the file
67355         name component (relative to the temporary working directory).  All
67356         callers changed.
67357         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
67358         * lib/mkdir-p.c (make_dir_parents): Likewise.
67359         * lib/mkdir-p.h (make_dir_parents): Likewise.
67360
67361 2006-10-06  Eric Blake  <ebb9@byu.net>
67362
67363         Define several macros for use by the clean-temp module.
67364         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
67365         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
67366         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
67367
67368         * lib/clean-temp.h (close_stream_temp): New declaration.
67369         * lib/clean-temp.c (includes): Pull in headers according to what
67370         other modules are in use.
67371         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
67372
67373 2006-10-06  Bruno Haible  <bruno@clisp.org>
67374
67375         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
67376         instead of fopen, fwriteerror.
67377
67378 2006-10-06  Bruno Haible  <bruno@clisp.org>
67379
67380         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
67381         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
67382         int.
67383         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
67384         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
67385         Return an error indicator.
67386         Suggested by Eric Blake.
67387
67388 2006-10-06  Bruno Haible  <bruno@clisp.org>
67389
67390         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
67391         Reported by Eric Blake.
67392
67393 2006-10-06  Bruno Haible  <bruno@clisp.org>
67394
67395         * modules/closeout (Description): Mention stderr too.
67396
67397 2006-10-06  Bruno Haible  <bruno@clisp.org>
67398         and Paul Eggert  <eggert@cs.ucla.edu>
67399
67400         * lib/closeout.c (close_stdout): Also close stderr.
67401         * lib/closeout.h: Update comment.
67402
67403 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
67404
67405         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
67406         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
67407         * lib/dirchownmod.c: Include lchown.h.
67408         * lib/lchown.c: Don't include files that lchown.h now includes.
67409         Don't declare chown, since lchown.h now does that.
67410         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
67411         (lchown): Define to rpl_chown if lchown is declared but
67412         does not exist.  Declare using a prototype if lchown is not
67413         declared.  Add a copyright notice.
67414         * lib/mkstemp.h: Include <unistd.h>.
67415         * lib/openat.c: Include lchown.h.
67416
67417         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
67418         we now test for that separately.
67419         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
67420         rather than O_NOFOLLOW, when testing whether it's possible to
67421         avoid a race condition reliably.
67422         * lib/savewd.c (savewd_chdir): Likewise.
67423
67424         Remove macros that are no longer needed now that stdint.h is
67425         reliable.
67426         * lib/fsusage.c (UINTMAX_MAX): Remove.
67427         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
67428         * lib/utimecmp.c (SIZE_MAX): Remove.
67429
67430         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
67431
67432         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
67433         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
67434         O_NOATIME works.
67435
67436 2006-10-05  Bruno Haible  <bruno@clisp.org>
67437
67438         * lib/gl_list.h (gl_sortedlist_search_from_to,
67439         gl_sortedlist_indexof_from_to): New declarations.
67440         (gl_list_implementation): New fields sortedlist_search_from_to,
67441         sortedlist_indexof_from_to.
67442         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
67443         inline functions.
67444         * lib/gl_list.c (gl_sortedlist_search_from_to,
67445         gl_sortedlist_indexof_from_to): New functions.
67446         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
67447         function.
67448         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
67449         (gl_array_sortedlist_search_from_to): New function.
67450         (gl_array_list_implementation): Update.
67451         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
67452         function.
67453         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
67454         (gl_carray_sortedlist_search_from_to): New function.
67455         (gl_carray_list_implementation): Update.
67456         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
67457         gl_linked_sortedlist_indexof_from_to): New functions.
67458         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
67459         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
67460         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
67461         gl_tree_sortedlist_indexof_from_to): New functions.
67462         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
67463         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
67464         Update.
67465         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
67466         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
67467         Update.
67468
67469 2006-10-05  Bruno Haible  <bruno@clisp.org>
67470
67471         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
67472         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
67473         (struct gl_list_implementation): Add fields search_from_to,
67474         indexof_from_to. Remove fields search, indexof.
67475         (gl_list_search): Use the search_from_to method.
67476         (gl_list_search_from, gl_list_search_from_to): New functions.
67477         (gl_list_indexof): Use the indexof_from_to method.
67478         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
67479         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
67480         (gl_list_search_from, gl_list_search_from_to): New functions.
67481         (gl_list_indexof): Use the indexof_from_to method.
67482         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
67483         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
67484         gl_array_indexof. Add start_index, end_index arguments.
67485         (gl_array_search_from_to): Renamed from gl_array_search. Add
67486         start_index, end_index arguments.
67487         (gl_array_remove, gl_array_list_implementation): Update.
67488         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
67489         gl_carray_indexof. Add start_index, end_index arguments.
67490         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
67491         start_index, end_index arguments.
67492         (gl_carray_remove, gl_carray_list_implementation): Update.
67493         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
67494         gl_linked_search. Add start_index, end_index arguments.
67495         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
67496         start_index, end_index arguments.
67497         (gl_linked_remove): Update.
67498         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
67499         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
67500         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
67501         field to 'size_t'.
67502         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
67503         gl_tree_search. Add start_index, end_index arguments.
67504         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
67505         start_index, end_index arguments.
67506         (gl_tree_remove): Update.
67507         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
67508         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
67509         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
67510         function.
67511         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
67512         gl_tree_search. Add start_index, end_index arguments.
67513         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
67514         start_index, end_index arguments.
67515         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
67516         Update.
67517         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
67518
67519 2006-10-05  Bruno Haible  <bruno@clisp.org>
67520
67521         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
67522
67523         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
67524         fwriteerror_temp): New declarations.
67525         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
67526         (descriptors): New variable.
67527         (cleanup): First, close the descriptors.
67528         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
67529         fclose_temp, fwriteerror_temp): New functions.
67530
67531 2006-10-04  Jim Meyering  <jim@meyering.net>
67532
67533         * lib/fts.c (fts_open): Tiny comment change.
67534
67535 2006-10-04  Bruno Haible  <bruno@clisp.org>
67536
67537         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
67538         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
67539         gl_LOCK_BODY.
67540         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
67541         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
67542         gl_LOCK_EARLY_BODY.
67543         (gl_LOCK): Require gl_LOCK_BODY.
67544
67545 2006-10-04  Bruno Haible  <bruno@clisp.org>
67546
67547         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
67548         (gl_oset_search_atleast): New declaration.
67549         (struct gl_oset_implementation): Add field 'search_atleast'.
67550         (gl_oset_search_atleast): New inline function.
67551         * lib/gl_oset.c (gl_oset_search_atleast): New function.
67552         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
67553         (gl_array_oset_implementation): Update.
67554         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
67555         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
67556         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
67557
67558 2006-10-04  Bruno Haible  <bruno@clisp.org>
67559
67560         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
67561
67562 2006-10-03  Bruno Haible  <bruno@clisp.org>
67563
67564         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
67565         from gl_avltreehash_list_implementation.
67566
67567 2006-10-03  Bruno Haible  <bruno@clisp.org>
67568
67569         * lib/gl_oset.c (gl_oset_add): Fix return type.
67570
67571 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
67572
67573         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
67574
67575 2006-10-02  Eric Blake  <ebb9@byu.net>
67576
67577         * modules/strnlen (Depends-on): Add extensions.
67578
67579 2006-10-02  Eric Blake  <ebb9@byu.net>
67580
67581         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
67582         definition in 2.60+.
67583
67584 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
67585
67586         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
67587         checks.
67588
67589 2006-10-02  Bruno Haible  <bruno@clisp.org>
67590
67591         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
67592         to the AUTOMAKE_OPTIONS.
67593         Reported by Jim Meyering.
67594
67595 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
67596
67597         Work around bug in Solaris 10 /proc file system:
67598         /proc/self/fd/NNN/.. isn't the parent directory of
67599         the directory whose file descriptor is NNN.  This needs to
67600         be worked around at run time, not compile time, since a
67601         program might be built on Solaris 8, where things work, and
67602         run on Solaris 10.
67603         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
67604         to use the following interface instead:
67605         (OPENAT_BUFFER_SIZE): New macro.
67606         (openat_proc_name): New function.
67607         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
67608         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
67609         Likewise.
67610         * lib/openat-proc.c: New file.
67611         * modules/openat (Files): Add lib/openat-proc.c.
67612         (Depends-on): Add same-inode, stdbool.
67613         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
67614
67615 2006-09-29  Bruno Haible  <bruno@clisp.org>
67616
67617         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
67618         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
67619         argument. Set stdout_closed before testing for ferror, not after.
67620         (fwriteerror, fwriteerror_no_ebadf): New functions.
67621
67622 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67623
67624         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
67625
67626 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
67627
67628         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
67629         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
67630
67631 2006-09-28  Jim Meyering  <jim@meyering.net>
67632
67633         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
67634         Include <unistd.h>.
67635
67636 2006-09-28  Bruno Haible  <bruno@clisp.org>
67637
67638         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
67639         * modules/linkedhash-list (Depends-on): Likewise.
67640         * modules/rbtreehash-list (Depends-on): Likewise.
67641
67642 2006-09-28  Bruno Haible  <bruno@clisp.org>
67643
67644         * lib/strndup.h: Simplify the redefinition of strndup.
67645         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
67646         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
67647
67648 2006-09-28  Bruno Haible  <bruno@clisp.org>
67649
67650         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
67651         * lib/gl_linkedhash_list.c: Likewise.
67652         * lib/gl_rbtreehash_list.c: Likewise.
67653
67654 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
67655
67656         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
67657         getaddrinfo.
67658
67659         * lib/__fpending.h: Don't include <stdio_ext.h> unless
67660         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
67661         it causes <stdio_ext.h> to cause a compile-time error.
67662         Problem reported by Nelson H. F. Beebe.
67663         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
67664         of HAVE_DECL___PENDING.
67665
67666         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
67667         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
67668         declaration.
67669
67670 2006-09-27  Jim Meyering  <jim@meyering.net>
67671
67672         This file could end up with a definition for a function
67673         named __strndup, rather than rpl_strndup on a system with
67674         incomplete weak_alias support.
67675         * lib/strndup.c (strndup): Rename from __strndup.
67676         Remove #defines that used to map __strndup to strndup.
67677         Don't use K&R prototypes.
67678         Remove LIBC-related code, since this file is not sync'd with glibc.
67679         * lib/strndup.h: Revamp, accordingly.
67680         * m4/strndup.m4: Modernize.
67681
67682 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
67683
67684         * modules/savewd (Depends-on): Add 'raise'.
67685         * lib/savewd.c: Include <signal.h>, for 'raise'.
67686
67687 2006-09-26  Jim Meyering  <jim@meyering.net>
67688
67689         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
67690         when we detect Darwin 8.7.0's acl_get_file bug.
67691         Rearrange to perform the new (below) run-test while $LIBS
67692         contains any acl-related library.  Set USE_ACL at the end.
67693         (gl_ACL_GET_FILE): New function.
67694
67695 2006-09-26  Eric Blake  <ebb9@byu.net>
67696
67697         * lib/verror.c: Include <config.h> unconditionally.
67698
67699 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
67700
67701         * modules/clock-time (Maintainer): Add self.
67702         * modules/getlogin_r (Depends-on): Add extensions.
67703
67704 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67705
67706         * modules/clock-time: New module.
67707         * modules/nanosleep (Depends-on): Add clock-time.
67708         * modules/gethrxtime (Depends-on): Likewise.
67709         * modules/gettime (Depends-on): Likewise.
67710         * modules/settime (Depends-on): Likewise.
67711
67712         * modules/fts-lgpl: Depend on openat.
67713         * modules/mkancesdirs: Depend on savewd.
67714         * modules/mkdir-p: Likewise.
67715
67716 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67717
67718         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
67719
67720         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
67721         `gl_have_arbitrary_file_name_length_limit' to
67722         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
67723         actually works between configure runs.
67724
67725 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67726             Bruno Haible  <bruno@clisp.org>
67727
67728         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
67729
67730 2006-09-25  Jim Meyering  <jim@meyering.net>
67731
67732         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
67733         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
67734
67735 2006-09-25  Eric Blake  <ebb9@byu.net>
67736
67737         * gnulib-tool (func_import, func_create_testdir): Fix typos in
67738         exec's in 2006-09-18 patch when shuffling fds.
67739
67740 2006-09-25  Bruno Haible  <bruno@clisp.org>
67741
67742         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
67743         Reported by Jim Meyering.
67744
67745 2006-09-24  Jim Meyering  <jim@meyering.net>
67746
67747         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
67748         compare a pointer against a literal "0".  That caused failures with
67749         at least HP-UX's hpcc.
67750
67751 2006-09-22  Simon Josefsson  <jas@extundo.com>
67752
67753         * modules/gc-sha1:
67754         * modules/gc-md4:
67755         * modules/gc-hmac-sha1:
67756         * modules/gc-hmac-md5:
67757         * modules/gc-des:
67758         * modules/gc-arcfour: Distribute more files.
67759
67760 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67761
67762         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
67763         (gl_linked_iterator_from_to): Initialize struct completely.
67764         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
67765         (gl_tree_iterator_from_to): Likewise
67766         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
67767         * lib/gl_array_list.c [lint] (gl_array_iterator)
67768         (gl_array_iterator_from_to): Likewise.
67769         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
67770         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
67771         (gl_carray_iterator_from_to): Likewise.
67772
67773         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
67774         * lib/md4.c (md4_process_block): Remove unused variable.
67775         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
67776         parentheses for clarity.
67777
67778 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67779
67780         * modules/bison-i18n (Depends-on): Add gettext.
67781
67782 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67783
67784         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
67785         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
67786         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
67787         also add missing comma that caused broken test.
67788         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
67789         stdlib.h, for `abort'.
67790         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
67791         variables.
67792         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
67793         include unistd.h if present, for `rmdir'.
67794         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
67795         variables.
67796         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
67797         in the process include standard headers for prototypes.
67798         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
67799         gets declared on GNU/Linux.
67800         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
67801         unistd.h, for `rmdir'.
67802         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
67803
67804         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
67805         always true.
67806         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
67807
67808         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
67809
67810 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67811
67812         * gnulib-tool (func_version): Create output all at once.  This
67813         may help avoid triggering unnecessary SIGPIPEs, and at any
67814         rate it doesn't hurt.
67815
67816 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67817             Bruno Haible  <bruno@clisp.org>
67818
67819         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
67820         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
67821         * m4/signed.m4 (bh_C_SIGNED): Likewise.
67822
67823         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
67824         (gl_FUNC_VASPRINTF): Invoke it.
67825
67826 2006-09-22  Bruno Haible  <bruno@clisp.org>
67827
67828         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
67829         getloadavg.c as first argument.
67830
67831 2006-09-22  Bruno Haible  <bruno@clisp.org>
67832
67833         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
67834         at the beginning of the gl_INIT macro.
67835         * modules/getloadavg (configure.ac): Pass $gl_source_base to
67836         gl_GETLOADAVG.
67837
67838 2006-09-22  Bruno Haible  <bruno@clisp.org>
67839
67840         * gnulib-tool (func_create_megatestdir): Don't include the config-h
67841         module.
67842         Suggested by Ralf Wildenhues.
67843
67844 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
67845
67846         Import this patch from libc:
67847
67848         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
67849
67850         * lib/regex_internal.c (re_string_reconstruct): Handle
67851         offset < pstr->valid_raw_len && pstr->offsets_needed case.
67852         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
67853         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
67854         re_string_context_at.
67855
67856         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
67857         now requires it.
67858         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
67859         gl_REGEX now does it for us.
67860         (gl_REGEX): Add test taken from
67861         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
67862
67863         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
67864         Check that large offsets work.  Modernize Autoconf usages.
67865         Prefer "yes" to mean a good thing rather than a bad.
67866         Don't put "#define mkstemp" in config.h, as this might interfere
67867         with standard system headers that "#define mkstemp mkstemp64".
67868
67869         * modules/mkstemp (Depends-on): Add extensions, so that
67870         mkstemp is visible on some platforms.
67871         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
67872         (Include): Change to "mkstemp.h" from <stdlib.h>.
67873         (Files): Add mkstemp.h.
67874
67875         * lib/mkstemp.h: New file, since some standard headers
67876         #define mkstemp.
67877         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
67878         Include "mkstemp.h".
67879         Make the _LIBC code resemble glibc original more,
67880         e.g., use K&R style.
67881         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
67882         (mkstemp): Remove, since mkstemp.h does this for us.
67883         * lib/stdlib--.h: Include mkstemp.h.
67884
67885         Import this patch from libc:
67886
67887         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
67888
67889         * lib/tempname.c (__gen_tempname): Change attempts_min
67890         into a macro.  Use preprocessor to decide how to initialize
67891         attempts [Coverity CID 67].
67892
67893 2006-09-20  Bruno Haible  <bruno@clisp.org>
67894
67895         * lib/mkdtemp.c: Import from libc.
67896         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
67897                 * sysdeps/posix/tempname.c (__gen_tempname): Change
67898                 attempts_min into a macro.  Use preprocessor to decide how to
67899                 initialize attempts [Coverity CID 67].
67900         2001-11-27  Paul Eggert  <eggert@twinsun.com>
67901                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
67902                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
67903
67904 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67905
67906         * gnulib-tool (func_exit): New function, to allow to pass the
67907         exit status portably through the trap.  Use everywhere.
67908         (--help, --version): Signal a write error.
67909         (trap): catch SIGPIPE, for write errors.
67910         Exit at the end of the trap, with the correct exit status.
67911
67912 2006-09-19  Karl Berry  <karl@gnu.org>
67913
67914         * doc/gnulib.texi: note about the license texinfo files.
67915
67916 2006-09-19  Eric Blake  <ebb9@byu.net>
67917
67918         * gnulib-tool: Avoid space-tab.
67919
67920 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
67921
67922         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
67923         that prevented coreutils 6.1 from building.  Problem reported
67924         by Petter Reinholdtsen.
67925
67926 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
67927
67928         * gnulib-tool (avoidlist): Fix typo that broke options like
67929         --avoid=lock that are used by coreutils bootstrap.
67930
67931 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
67932
67933         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
67934         more systematically.
67935
67936 2006-09-18  Jim Meyering  <jim@meyering.net>
67937
67938         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
67939
67940 2006-09-18  Bruno Haible  <bruno@clisp.org>
67941
67942         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
67943
67944 2006-09-18  Bruno Haible  <bruno@clisp.org>
67945
67946         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
67947         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
67948         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
67949         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
67950         * m4/gettext.m4: Require autoconf >= 2.52.
67951         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
67952         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
67953         of gl_cv_header_inttypes_h.
67954
67955 2006-09-18  Bruno Haible  <bruno@clisp.org>
67956
67957         * lib/javaversion.c: Include configmake.h.
67958
67959 2006-09-18  Bruno Haible  <bruno@clisp.org>
67960
67961         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
67962         avoid that the while loops be executed in a subshell.
67963
67964 2006-09-18  Bruno Haible  <bruno@clisp.org>
67965
67966         * MODULES.html.sh (func_module): Break long lines.
67967         Suggested by Bruce Korb <bkorb@gnu.org>.
67968
67969 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67970
67971         Speed up by a factor of 1.12.
67972         * gnulib-tool (nl): New variable.
67973         (func_import): Rewrite include directive extraction to only read each
67974         directive once.
67975
67976 2006-09-17  Bruno Haible  <bruno@clisp.org>
67977
67978         * modules/javaversion (Makefile.am): Remove DEFS setting.
67979         (Depends-on): Add configmake, for PKGDATADIR definition.
67980
67981 2006-09-17  Bruno Haible  <bruno@clisp.org>
67982
67983         * gnulib-tool (func_create_testdir): Rewrite all files at once.
67984
67985 2006-09-17  Bruno Haible  <bruno@clisp.org>
67986
67987         * gnulib-tool (func_append): New function, stolen from libtool.m4.
67988         (func_modules_transitive_closure, func_modules_add_dummy,
67989         func_modules_to_filelist, func_import, func_create_testdir,
67990         func_create_megatestdir, ...): Use it wherever possible.
67991         Suggested by Ralf Wildenhues.
67992
67993 2006-09-16  Karl Berry  <karl@gnu.org>
67994
67995         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
67996         to avoid sectioning errors.
67997         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
67998         [ifinfo]: blank line after @center-ed titles.
67999         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
68000         Spell FSF address consistently with others.
68001         (These changes approved by rms.)
68002
68003 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68004
68005         Speed up by a factor of 1.61.
68006         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
68007         already checked module names again.
68008
68009 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68010
68011         Speed up by a factor of 1.13.
68012         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
68013         for new_files, and the input to func_add_or_update.
68014
68015 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68016
68017         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
68018         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
68019
68020 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
68021
68022         * modules/mkancesdirs (Depends-on): Add fcntl.
68023         * modules/savewd: New file.
68024         * MODULES.html.sh (File system functions): Add savewd.
68025
68026         * modules/configmake (Makefile.am): Add support for the
68027         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
68028
68029 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
68030
68031         * m4/savewd.m4: New file.
68032
68033 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
68034
68035         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
68036         (dirchownmod): New arg FD.  All callers changed.
68037         Use FD rather than opening the directory ourself, as opening is
68038         now the caller's responsibility.
68039         * lib/dirchownmod.h: Likewise.
68040         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
68041         hosts that require <sys/types.h> before <sys/stat.h>.  Include
68042         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
68043         (test_dir): Remove.
68044         (mkancesdirs): Return length of prefix of FILE that has already
68045         been made, or -2 if there is a child doing the work.  Redo
68046         algorithm so that it is O(N) rather than O(N**2).  Optimize away
68047         ".", and treat ".." specially since it might stray back into
68048         already-created areas.  Use a subprocess if necessary.  New arg
68049         WD; all users changed.  MAKE_DIR function should now return 1
68050         if it creates a directory that is not readable.  Return -2 if
68051         a child process is spun off.
68052         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
68053         Adjust signature to match code.
68054         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
68055         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
68056         all users changed.
68057         * lib/savewd.c, lib/savewd.h: New files.
68058
68059 2006-09-15  Jim Meyering  <jim@meyering.net>
68060
68061         * modules/rename-dest-slash: New module.
68062         * MODULES.html.sh (posix_compat): Add it here.
68063
68064         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
68065
68066 2006-09-15  Jim Meyering  <jim@meyering.net>
68067
68068         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
68069         file.
68070
68071         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
68072
68073 2006-09-15  Jim Meyering  <jim@meyering.net>
68074
68075         * lib/rename-dest-slash.c (has_trailing_slash): Use
68076         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
68077         (rpl_rename_dest_slash): Perform the cheaper trailing slash
68078         test before testing whether SRC is a directory.
68079         Suggestions from Bruno Haible.
68080
68081         Avoid a warning about an unused variable.
68082         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
68083         into the #ifdef block where it's used.
68084
68085         * lib/rename-dest-slash.c: New file.
68086
68087 2006-09-14  Bruno Haible  <bruno@clisp.org>
68088
68089         * lib/allocsa.c: Include <config.h> unconditionally.
68090         * lib/asnprintf.c: Likewise.
68091         * lib/asprintf.c: Likewise.
68092         * lib/c-strcasecmp.c: Likewise.
68093         * lib/c-strcasestr.c: Likewise.
68094         * lib/c-strncasecmp.c: Likewise.
68095         * lib/c-strstr.c: Likewise.
68096         * lib/classpath.c: Likewise.
68097         * lib/clean-temp.c: Likewise.
68098         * lib/concatpath.c: Likewise.
68099         * lib/copy-file.c: Likewise.
68100         * lib/csharpcomp.c: Likewise.
68101         * lib/csharpexec.c: Likewise.
68102         * lib/execute.c: Likewise.
68103         * lib/fatal-signal.c: Likewise.
68104         * lib/findprog.c: Likewise.
68105         * lib/fwriteerror.c: Likewise.
68106         * lib/gl_array_list.c: Likewise.
68107         * lib/gl_array_oset.c: Likewise.
68108         * lib/gl_avltree_list.c: Likewise.
68109         * lib/gl_avltree_oset.c: Likewise.
68110         * lib/gl_avltreehash_list.c: Likewise.
68111         * lib/gl_carray_list.c: Likewise.
68112         * lib/gl_linked_list.c: Likewise.
68113         * lib/gl_linkedhash_list.c: Likewise.
68114         * lib/gl_list.c: Likewise.
68115         * lib/gl_oset.c: Likewise.
68116         * lib/gl_rbtree_list.c: Likewise.
68117         * lib/gl_rbtree_oset.c: Likewise.
68118         * lib/gl_rbtreehash_list.c: Likewise.
68119         * lib/imaxabs.c: Likewise.
68120         * lib/imaxdiv.c: Likewise.
68121         * lib/javacomp.c: Likewise.
68122         * lib/javaexec.c: Likewise.
68123         * lib/javaversion.c: Likewise.
68124         * lib/linebreak.c: Likewise.
68125         * lib/localcharset.c: Likewise.
68126         * lib/lock.c: Likewise.
68127         * lib/mbchar.c: Likewise.
68128         * lib/mbswidth.c: Likewise.
68129         * lib/mkdtemp.c: Likewise.
68130         * lib/pipe.c: Likewise.
68131         * lib/printf-args.c: Likewise.
68132         * lib/printf-parse.c: Likewise.
68133         * lib/progname.c: Likewise.
68134         * lib/progreloc.c: Likewise.
68135         * lib/readlink.c: Likewise.
68136         * lib/sh-quote.c: Likewise.
68137         * lib/stpcpy.c: Likewise.
68138         * lib/stpncpy.c: Likewise.
68139         * lib/strcasecmp.c: Likewise.
68140         * lib/strcasestr.c: Likewise.
68141         * lib/strcspn.c: Likewise.
68142         * lib/striconv.c: Likewise.
68143         * lib/strncasecmp.c: Likewise.
68144         * lib/strnlen1.c: Likewise.
68145         * lib/strstr.c: Likewise.
68146         * lib/strtok_r.c: Likewise.
68147         * lib/tls.c: Likewise.
68148         * lib/tmpdir.c: Likewise.
68149         * lib/unicodeio.c: Likewise.
68150         * lib/unsetenv.c: Likewise.
68151         * lib/vasnprintf.c: Likewise.
68152         * lib/vasprintf.c: Likewise.
68153         * lib/wait-process.c: Likewise.
68154         * lib/xallocsa.c: Likewise.
68155         * lib/xsetenv.c: Likewise.
68156         * lib/xstriconv.c: Likewise.
68157
68158 2006-09-13  Simon Josefsson  <jas@extundo.com>
68159
68160         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
68161         that internally, suggested by Ralf Wildenhues
68162         <Ralf.Wildenhues@gmx.de>.
68163
68164 2006-09-13  Simon Josefsson  <jas@extundo.com>
68165
68166         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
68167         @LIBOBJS@.
68168         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68169
68170 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
68171
68172         * lib/_fpending.c: Include <config.h> unconditionally, since we no
68173         longer worry about uses that don't define HAVE_CONFIG_H.
68174         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
68175         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
68176         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
68177         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
68178         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
68179         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
68180         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
68181         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
68182         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
68183         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
68184         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
68185         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
68186         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
68187         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
68188         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
68189         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
68190         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
68191         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
68192         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
68193         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
68194         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
68195         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
68196         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
68197         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
68198         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
68199         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
68200         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
68201         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
68202         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
68203         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
68204         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
68205         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
68206         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
68207         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
68208         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
68209         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
68210         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
68211         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
68212         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
68213         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
68214         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
68215         Likewise.
68216
68217 2006-09-13  Eric Blake  <ebb9@byu.net>
68218
68219         * lib/getopt.c: Fix typo in last commit.
68220
68221 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
68222
68223         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
68224         dgettext.
68225
68226 2006-09-12  Jim Meyering  <jim@meyering.net>
68227
68228         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
68229         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
68230         Reported by Nelson H. F. Beebe.
68231
68232 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
68233
68234         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
68235         program_invocation_name and program_invocation_short_name are
68236         initialized.
68237         * lib/argp-namefrob.h: Move declarations of program_invocation_name
68238         and program_invocation_short_name to argp.h, so they are visible
68239         to user programs.
68240         * lib/argp.h: Likewise
68241
68242 2006-09-10  Bruno Haible  <bruno@clisp.org>
68243
68244         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
68245         m4/inttypes_h.m4, m4/uintmax_t.m4.
68246
68247 2006-09-10  Bruno Haible  <bruno@clisp.org>
68248
68249         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
68250         gl_AC_TYPE_UINTMAX_T.
68251
68252 2006-09-10  Bruno Haible  <bruno@clisp.org>
68253
68254         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
68255
68256 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
68257
68258         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
68259         convention.  Text proposed by Bruno Haible.
68260         (struct argp_option): Document the use of N_() wrappers.
68261
68262         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
68263         '\v', and translate the two parts separately, instead of feeding
68264         the whole string to gettext.  This allows to exclude
68265         '\v' from the strings visible to the translator by writing doc
68266         strings as N_("..") "\v" N_("..").
68267
68268 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
68269
68270         * config/srclist.txt: Undo latest change; the bug was fixed.
68271
68272 2006-09-09  Bruno Haible  <bruno@clisp.org>
68273
68274         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
68275         assignments if building a library without libtool.
68276         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
68277         in func_emit_lib_Makefile_am.
68278         (func_import): When building a static library libfoo.a, arrange to
68279         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
68280         (func_create_testdir): Likewise.
68281         * modules/gc (configure.ac, Makefile.am): If building statically,
68282         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
68283         * modules/iconvme (configure.ac, Makefile.am): Likewise.
68284         * modules/striconv (configure.ac, Makefile.am): Likewise.
68285         Based on a suggestion by Ralf Wildenhues.
68286
68287 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68288
68289         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
68290         Check for unistd.h too, since Autoconf doesn't assume POSIX.
68291         Also:
68292
68293         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68294         Add year_2050_test to catch glibc bug 2821
68295         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
68296
68297         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
68298         Prefer #ifdef to #if.
68299
68300         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
68301         Return from 'main' instead of calling 'exit'.
68302
68303 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68304
68305         * lib/mktime.c (guess_time_tm): Fix bug where mktime
68306         returned the maximum time_t value rather than (time_t) -1.
68307         Problem originally reported by William Bardwell
68308         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
68309
68310         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
68311         Moved to here ...
68312         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
68313         ... from here.
68314
68315 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68316
68317         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
68318         2821 is fixed.
68319
68320 2006-09-08  Jim Meyering  <jim@meyering.net>
68321
68322         Don't make generated files read-only.  That would bother too many
68323         people.  However, do retain the ability to work when targets are
68324         read-only: remove the destination and temporary files before writing
68325         them (when generated via sed or echo), or by using the -f option for
68326         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
68327         * modules/alloca-opt, modules/argz, modules/arpa_inet:
68328         * modules/byteswap, modules/configmake, modules/fcntl:
68329         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
68330         * modules/localcharset, modules/netinet_in, modules/poll:
68331         * modules/stdbool, modules/stdint, modules/sys_select:
68332         * modules/sys_socket, modules/sys_stat, modules/sysexits:
68333
68334 2006-09-08  Jim Meyering  <jim@meyering.net>
68335
68336         Avoid new build failure on FreeBSD 6.0.
68337         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
68338         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
68339         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
68340
68341 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68342
68343         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
68344
68345 2006-09-07  Jim Meyering  <jim@meyering.net>
68346
68347         Fix global typo in last change: use chmod u-w, not chmod u-x.
68348         Spotted by Paul Eggert and Bruce Korb.
68349         * modules/alloca-opt, modules/argz, modules/arpa_inet:
68350         * modules/byteswap, modules/configmake, modules/fcntl:
68351         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
68352         * modules/localcharset, modules/netinet_in, modules/poll:
68353         * modules/stdbool, modules/stdint, modules/sys_select:
68354         * modules/sys_socket, modules/sys_stat, modules/sysexits:
68355
68356 2006-09-06  Jim Meyering  <jim@meyering.net>
68357
68358         Make generated files be read-only.
68359         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
68360         Ensure that each generated file is now read-only.
68361         * modules/argz: Likewise.
68362         * modules/arpa_inet: Likewise.
68363         * modules/byteswap: Likewise.
68364         * modules/configmake: Likewise.
68365         * modules/fcntl: Likewise.
68366         * modules/fnmatch: Likewise.
68367         * modules/getopt: Likewise.
68368         * modules/glob: Likewise.
68369         * modules/inttypes: Likewise.
68370         * modules/netinet_in: Likewise.
68371         * modules/poll: Likewise.
68372         * modules/stdbool: Likewise.
68373         * modules/stdint: Likewise.
68374         * modules/sys_select: Likewise.
68375         * modules/sys_socket: Likewise.
68376         * modules/sys_stat: Likewise.
68377         * modules/sysexits: Likewise.
68378         * modules/localcharset: Same as above, but continue using temporary
68379         file named "t-$@" (why different?) rather than the "$@-t" used
68380         everywhere else.
68381
68382         * modules/sysexits (Makefile.am): Replace literal occurrences
68383         of "sysexit.h" more readable, and more consistent, "$@".
68384
68385 2006-09-06  Bruno Haible  <bruno@clisp.org>
68386
68387         * modules/striconv: New file.
68388         * modules/xstriconv: New file.
68389         * MODULES.html.sh (Internationalization functions): Add striconv,
68390         xstriconv.
68391
68392 2006-09-06  Bruno Haible  <bruno@clisp.org>
68393
68394         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
68395         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
68396         not using libtool correctly.
68397
68398 2006-09-06  Bruno Haible  <bruno@clisp.org>
68399
68400         * lib/striconv.h: New file.
68401         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
68402         iconvstring.c.
68403         * lib/xstriconv.h: New file.
68404         * lib/xstriconv.c: New file.
68405
68406 2006-09-06  Bruno Haible  <bruno@clisp.org>
68407
68408         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
68409         lib_..._LDFLAGS.
68410
68411 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68412
68413         * lib/argz_.h: Sync from Libtool.
68414
68415         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
68416                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
68417
68418         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
68419
68420 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
68421
68422         * modules/trim: New file.
68423
68424 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
68425
68426         * lib/trim.h: New file.
68427         * lib/trim.c: New file.
68428
68429 2006-09-05  Bruno Haible  <bruno@clisp.org>
68430
68431         * MODULES.html.sh (String handling): Add trim.
68432
68433 2006-09-04  Karl Berry  <karl@gnu.org>
68434
68435         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
68436         until next release.
68437
68438 2006-09-03  Bruno Haible  <bruno@clisp.org>
68439
68440         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
68441         correctly.
68442
68443 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
68444
68445         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
68446         not gl_GETLOADAVG.  Omit unneeded semicolons.
68447         Problems reported by Ralf Wildenhues in
68448         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
68449         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
68450         at the end, which is the usual gnulib style.
68451
68452         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
68453         of doing all the work ourselves.
68454         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
68455         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
68456
68457 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
68458
68459         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
68460         Problem reported by Ralf Wildenhues in
68461         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
68462
68463         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
68464         HAVE_STRUCT_STATFS_F_FSTYPENAME.
68465
68466 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
68467
68468         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
68469         yesterday's patch by changing test -n to test -z.
68470
68471 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
68472
68473         * modules/getloadavg (Files): Add m4/getloadavg.m4.
68474         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
68475         the former is now obsolescent.
68476
68477         * modules/chdir-long (Depends-on): Add fcntl.
68478
68479 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
68480
68481         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
68482         obsolescent, and programs should use gnulib instead.
68483         * m4/getloadavg.m4: New file, with contents taken from Autoconf
68484         but with prefixes changed.
68485
68486 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
68487
68488         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
68489         or stdbool.h, because they might not exist while configuring.
68490
68491         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
68492         Don't include unistd.h or limits.h; not needed, since chdir-long.h
68493         does that for us.
68494         (O_DIRECTORY): Remove.
68495
68496 2006-08-31  Eric Blake  <ebb9@byu.net>
68497
68498         * gnulib-tool: Don't let emacs change spaces to TAB.
68499
68500 2006-08-31  Bruno Haible  <bruno@clisp.org>
68501
68502         * gnulib-tool: When calling func_import more than once, do it in a
68503         subshell.
68504         Reported by Eric Blake <ebb9@byu.net>.
68505
68506 2006-08-31  Bruno Haible  <bruno@clisp.org>
68507
68508         * gnulib-tool (nl): Remove variable.
68509         (sed_transform_lib_file): Use more robust test for config-h module.
68510         (func_import): Fix typo in 2006-08-25 patch.
68511
68512 2006-08-31  Bruno Haible  <bruno@clisp.org>
68513
68514         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
68515         specified, augment Makefile.am variables instead of assigning them.
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         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
68524         Check for nanosleep bug.
68525         (LIB_NANOSLEEP): Append clock_gettime library if needed.
68526
68527 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
68528
68529         Work around a bug in both the Linux and SunOS 64-bit kernels:
68530         nanosleep mishandles sleeps for longer than 2**31 seconds.
68531         Problem reported by Frank v Waveren in
68532         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
68533         * lib/nanosleep.c (BILLION): New constant.
68534         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
68535         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
68536         implementation.
68537
68538 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
68539
68540         * modules/nanosleep (Depends-on): Add gettime.
68541
68542 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
68543         and Simon Josefsson  <jas@extundo.com>
68544         and Oskar Liljeblad  <oskar@osk.mine.nu>
68545
68546         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
68547         * gnulib-tool (func_import): New license type 'unmodifiable license
68548         text'.
68549         * modules/fdl: Use it.  Longer description.
68550         * module/gpl, module/lgpl: New files.
68551
68552 2006-08-30  Jim Meyering  <jim@meyering.net>
68553
68554         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
68555         shadowing the parameter.
68556
68557 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68558
68559         Sync from Libtool:
68560
68561         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68562
68563         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
68564         sharing with gnulib.  Report by Eric Blake.
68565
68566 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
68567
68568         * modules/isapipe: New file.
68569         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
68570
68571 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
68572
68573         * modules/configmake (Makefile.am): Add a comment, and omit
68574         the CONFIGMAKE_ prefix from generated macro names.  Suggested
68575         by Bruno Haible.
68576
68577 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
68578
68579         * m4/isapipe.m4: New file.
68580
68581 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
68582
68583         * lib/isapipe.c, lib/isapipe.h: New files.
68584
68585 2006-08-29  Jim Meyering  <jim@meyering.net>
68586
68587         * modules/configmake (Makefile.am): Make configmake.h depend on
68588         Makefile.  Otherwise, a stale configmake.h could hang around.
68589
68590 2006-08-29  Eric Blake  <ebb9@byu.net>
68591
68592         * lib/error.c (error_at_line, print_errno_message): Match libc, after
68593         resolution of upstream bug 3044.
68594
68595 2006-08-29  Bruno Haible  <bruno@clisp.org>
68596
68597         * modules/localcharset (Depends-on): Add configmake.
68598         (Makefile.am): Remove setting of LIBDIR through DEFS.
68599
68600 2006-08-29  Bruno Haible  <bruno@clisp.org>
68601
68602         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
68603         defined.
68604
68605 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
68606
68607         * modules/fcntl: New file.
68608         * modules/chdir-safer (Depends-on): Add fcntl.
68609         * modules/fts: Likewise.
68610         * modules/mkdir-p: Likewise.
68611
68612         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
68613         This undoes the most recent change, since we're now addressing the
68614         problem in a different way.
68615
68616         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
68617         into output, since the output might be called Makefile.am even
68618         if $makefile_name is something different.
68619         (func_import): Use $makefile_am rather than
68620         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
68621         empty.
68622
68623         * modules/inttypes (Files): Add m4/inttypes-h.m4.
68624
68625 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
68626
68627         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
68628         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
68629         recent change to stdint.m4, since we're now addressing the problem in a
68630         different way.
68631
68632 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
68633
68634         * m4/fcntl_h.m4: New file.
68635
68636 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
68637
68638         * lib/fcntl_.h: New file.
68639         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
68640         the fcntl module.
68641         * lib/dirchownmod.c: Likewise.
68642         * lib/fts.c: Likewise.
68643
68644         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
68645         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
68646         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
68647         just before including <inttypes.h>, to avoid circular inclusion.
68648
68649 2006-08-28  Jim Meyering  <jim@meyering.net>
68650
68651         * doc/visibility.texi: Actually read and correct the grammar of the
68652         sentence affected by yesterday's change.
68653
68654 2006-08-28  Eric Blake  <ebb9@byu.net>
68655
68656         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
68657         needs wrapper.
68658
68659 2006-08-28  Eric Blake  <ebb9@byu.net>
68660
68661         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
68662
68663 2006-08-28  Eric Blake  <ebb9@byu.net>
68664
68665         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
68666
68667 2006-08-28  Bruno Haible  <bruno@clisp.org>
68668
68669         * modules/c-strstr: New file, from GNU gettext.
68670         * MODULES.html.sh (String handling): Add c-strstr.
68671
68672 2006-08-28  Bruno Haible  <bruno@clisp.org>
68673
68674         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
68675         macros.
68676         Reported by Eric Blake.
68677
68678 2006-08-28  Bruno Haible  <bruno@clisp.org>
68679
68680         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
68681         (VASNPRINTF): Return a string of length > INT_MAX without failing.
68682         * lib/vasprintf.c: Include errno.h, limits.h.
68683         (EOVERFLOW): New fallback definition.
68684         (vasprintf): Test here whether the string length is > INT_MAX.
68685         * lib/vsnprintf.c: Include errno.h, limits.h.
68686         (EOVERFLOW): New fallback definition.
68687         (vsnprintf): Fix bug when generated string was too long for the buffer.
68688         Test here whether the string length is > INT_MAX.
68689
68690 2006-08-28  Bruno Haible  <bruno@clisp.org>
68691
68692         * lib/inttypes_.h (SCNX*): Remove definitions.
68693         Reported by Eric Blake.
68694
68695 2006-08-28  Bruno Haible  <bruno@clisp.org>
68696
68697         * lib/c-strstr.h: New file, from GNU gettext.
68698         * lib/c-strstr.c: New file, from GNU gettext.
68699
68700 2006-08-28  Bruno Haible  <bruno@clisp.org>
68701
68702         * gnulib-tool: Reorder some statements.
68703
68704 2006-08-28  Bruno Haible  <bruno@clisp.org>
68705
68706         * gnulib-tool: New option --makefile-name.
68707         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
68708         $makefile_name.
68709         (func_import): Write $makefile_name to the cache file, and read it from
68710         there unless explicitly specified. Use $makefile_name as file name
68711         instead of Makefile.am. Adjust the recommendations accordingly.
68712
68713 2006-08-28  Bruno Haible  <bruno@clisp.org>
68714
68715         * gnulib-tool (func_verify_module): Check against misapplying patch.
68716
68717 2006-08-28  Bruno Haible  <bruno@clisp.org>
68718
68719         * gnulib-tool (func_relativize, func_relconcat): New functions.
68720         Give an error if --local-dir is given with --update.
68721         Remove trailing slashes from $local_gnulib_dir.
68722         (func_import): Store the relativized $local_gnulib_dir in
68723         gnulib-cache.m4, and read it from there if not specified explicitly.
68724
68725 2006-08-28  Bruno Haible  <bruno@clisp.org>
68726
68727         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
68728         is the current directory. Respect also $local_gnulib_dir.
68729
68730 2006-08-28  Bruno Haible  <bruno@clisp.org>
68731             Simon Josefsson  <jas@extundo.com>
68732
68733         BeOS portability.
68734         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
68735
68736 2006-08-27  Jim Meyering  <jim@meyering.net>
68737
68738         * doc/visibility.texi: Remove duplicate word: "pointer".
68739
68740 2006-08-26  Bruno Haible  <bruno@clisp.org>
68741
68742         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
68743         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
68744         (Makefile.am): Create inttypes.h from inttypes_.h.
68745         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
68746
68747         * modules/imaxabs: New file.
68748
68749         * modules/imaxdiv: New file.
68750
68751 2006-08-26  Bruno Haible  <bruno@clisp.org>
68752
68753         * m4/inttypes.m4: New file.
68754         * m4/_inttypes_h.m4: Remove file.
68755         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
68756         PRI_MACROS_BROKEN.
68757         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
68758
68759         * m4/imaxabs.m4: New file.
68760
68761         * m4/imaxdiv.m4: New file.
68762
68763 2006-08-26  Bruno Haible  <bruno@clisp.org>
68764
68765         * lib/inttypes_.h: New file.
68766         * lib/inttypes.h: Remove file.
68767         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
68768
68769         * lib/imaxabs.c: New file.
68770
68771         * lib/imaxdiv.c: New file.
68772
68773 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
68774
68775         New config-h module, so that "make" output needn't be cluttered
68776         by -DHAVE_CONFIG_H.
68777         * MODULES.html.sh (Support for building libraries and executables):
68778         Add config-h.
68779         * modules/config-h: New file.
68780         * gnulib-tool (nl, sed_transform_lib_file): New vars.
68781         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
68782         the config-h module is used.
68783
68784         New configmake module, so that "make" output needn't be cluttered
68785         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
68786         * MODULES.html.sh (Support for building libraries and executables):
68787         Add configmake.
68788         * modules/configmake: New file.
68789
68790 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
68791
68792         * m4/config-h.m4: New file.
68793
68794 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
68795
68796         * config/srclist.txt: Add elisp-comp.
68797
68798 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
68799
68800         * MODULES.html.sh (Support for building libraries and executables):
68801         Add elisp-comp.
68802         * build-aux/elisp-comp: New file.
68803         * modules/elisp-comp: New file.
68804
68805 2006-08-24  Bruno Haible  <bruno@clisp.org>
68806
68807         * gnulib-tool (func_create_testdir): Use non-default values of
68808         sourcebase and m4base.
68809
68810 2006-08-24  Bruno Haible  <bruno@clisp.org>
68811
68812         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
68813         HTML structure.
68814
68815 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
68816
68817         * modules/openat (Depends-on): Add lchown.
68818
68819 2006-08-23  Bruno Haible  <bruno@clisp.org>
68820
68821         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
68822         of gl_LOCK_EARLY instead of gl_LOCK.
68823
68824 2006-08-23  Bruno Haible  <bruno@clisp.org>
68825
68826         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
68827         on OSF/1 to no.
68828         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
68829
68830 2006-08-23  Bruno Haible  <bruno@clisp.org>
68831
68832         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
68833         as unusable.
68834
68835         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
68836         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
68837         (gl_LOCK): New macro.
68838
68839 2006-08-22  Simon Josefsson  <jas@extundo.com>
68840
68841         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
68842         to md5 module.
68843
68844 2006-08-22  Simon Josefsson  <jas@extundo.com>
68845
68846         * MODULES.html.sh: Add "Support for maintaining and release
68847         projects".
68848
68849         * build-aux/gnupload: New file, from coreutils.
68850
68851 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
68852
68853         Avoid the need for AC_LIBSOURCES in m4 macros.
68854         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
68855         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
68856         * modules/check-version (EXTRA_DIST): Add check-version.h.
68857         * modules/crc (EXTRA_DIST): Add crc.h.
68858         * modules/des (EXTRA_DIST): Add des.h.
68859         * modules/gc (EXTRA_DIST): Add gc.h.
68860         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
68861         * modules/getline (EXTRA_DIST): Add getline.h.
68862         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
68863         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
68864         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
68865         * modules/md2 (EXTRA_DIST): Add md2.h.
68866         * modules/md4 (EXTRA_DIST): Add md4.h.
68867         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
68868         * modules/read-file (EXTRA_DIST): Add read-file.h.
68869         * modules/readline (EXTRA_DIST): Add readline.h.
68870         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
68871         rijndael-api-fst.h.
68872
68873 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
68874
68875         * m4/rijndael.m4 (gl_ARCFOUR):
68876         * m4/arctwo.m4 (gl_ARCTWO):
68877         * m4/check-version.m4 (gl_CHECK_VERSION):
68878         * m4/crc.m4 (gl_CRC):
68879         * m4/des.m4 (gl_DES):
68880         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
68881         * m4/gc.m4 (gl_GC):
68882         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
68883         * m4/getline.m4 (gl_FUNC_GETLINE):
68884         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
68885         * m4/hmac-md5.m4 (gl_HMAC_MD5):
68886         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
68887         * m4/md2.m4 (gl_MD2):
68888         * m4/md4.m4 (gl_MD4):
68889         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
68890         * m4/read-file.m4 (gl_FUNC_READ_FILE):
68891         * m4/readline.m4 (gl_FUNC_READLINE):
68892         * m4/rijndael.m4 (gl_RIJNDAEL):
68893         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
68894         to get the necessary .h files and whatnot.
68895
68896 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
68897
68898         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
68899         gnulib rather than the other way around.
68900         * config/srclistvars.sh (COREUTILS): Remove.
68901
68902 2006-08-22  Jim Meyering  <jim@meyering.net>
68903
68904         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
68905
68906         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
68907
68908 2006-08-22  Eric Blake  <ebb9@byu.net>
68909
68910         * modules/regexprops-generic: New file.
68911         * MODULES.html.sh (Support for building documentation): List it.
68912
68913 2006-08-22  Eric Blake  <ebb9@byu.net>
68914
68915         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
68916         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
68917         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
68918         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
68919
68920 2006-08-22  Bruno Haible  <bruno@clisp.org>
68921
68922         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
68923         and lib_LTLIBRARIES like the other lib_* variables.
68924
68925 2006-08-22  Bruno Haible  <bruno@clisp.org>
68926
68927         * build-aux/x-to-1.in: New file, from GNU gettext.
68928
68929 2006-08-22  Bruno Haible  <bruno@clisp.org>
68930
68931         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
68932         <utmpx.h> exists.
68933
68934 2006-08-22  Bruno Haible  <bruno@clisp.org>
68935
68936         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
68937         <utmpx.h> exists.
68938
68939 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
68940
68941         BeOS portability.
68942         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
68943         exist.
68944         Problem reported by Bruno Haible.
68945
68946 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
68947
68948         Avoid the need for AC_LIBSOURCES in m4 macros.
68949         * modules/acl (EXTRA_DIST): Add acl.h.
68950         * modules/argmatch (Files): Add m4/argmatch.m4.
68951         (configure.ac): Add gl_ARGMATCH.
68952         (EXTRA_DIST): Renamed from lib_SOURCES, for
68953         consistency with the other modules.  Remove argmatch.c.
68954         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
68955         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
68956         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
68957         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
68958         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
68959         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
68960         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
68961         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
68962         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
68963         * modules/closeout (EXTRA_DIST): Add closeout.h.
68964         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
68965         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
68966         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
68967         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
68968         dirname.h; remove basename.c and stripslash.c.
68969         * modules/exclude (EXTRA_DIST): Add exclude.h.
68970         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
68971         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
68972         * modules/file-type (EXTRA_DIST): Add file-type.h.
68973         * modules/filemode (EXTRA_DIST): Add filemode.h.
68974         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
68975         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
68976         * modules/fpending (EXTRA_DIST): Add __fpending.h.
68977         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
68978         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
68979         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
68980         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
68981         * modules/getdate (EXTRA_DIST): Add getdate.c.
68982         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
68983         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
68984         * modules/getpass (EXTRA_DIST): Add getpass.h.
68985         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
68986         * modules/group-member (EXTRA_DIST): Add group-member.h.
68987         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
68988         * modules/hash (EXTRA_DIST): Add hash.h.
68989         * modules/human (EXTRA_DIST): Add human.h.
68990         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
68991         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
68992         * modules/lchown (EXTRA_DIST): Add lchown.h.
68993         * modules/long-options (EXTRA_DIST): Add long-options.h.
68994         * modules/lstat (EXTRA_DIST): Add lstat.h.
68995         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
68996         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
68997         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
68998         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
68999         * modules/memxor (EXTRA_DIST): Add memxor.h.
69000         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
69001         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
69002         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
69003         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
69004         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
69005         * modules/physmem (EXTRA_DIST): Add physmem.h.
69006         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
69007         * modules/posixver (EXTRA_DIST): Add posixver.h.
69008         * modules/quote (EXTRA_DIST): Add quote.h.
69009         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
69010         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
69011         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
69012         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
69013         regex_internal.h regexec.c.
69014         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
69015         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
69016         * modules/same (EXTRA_DIST): Add same.h.
69017         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
69018         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
69019         * modules/savedir (EXTRA_DIST): Add savedir.h.
69020         * modules/sha1 (EXTRA_DIST): Add sha1.h.
69021         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
69022         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
69023         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
69024         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
69025         * modules/strdup (EXTRA_DIST): Add strdup.h.
69026         * modules/strftime (EXTRA_DIST): Add strftime.h.
69027         * modules/strndup (EXTRA_DIST): Add strndup.h.
69028         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
69029         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
69030         * modules/time_r (EXTRA_DIST): Add time_r.h.
69031         * modules/timespec (EXTRA_DIST): Add timespec.h.
69032         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
69033         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
69034         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
69035         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
69036         * modules/userspec (EXTRA_DIST): Add userspec.h.
69037         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
69038         * modules/utimens (EXTRA_DIST): Add utimens.h.
69039         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
69040         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
69041         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
69042         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
69043         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
69044         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
69045         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
69046         * modules/yesno (EXTRA_DIST): Add yesno.h.
69047
69048 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
69049
69050         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
69051
69052         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
69053         * m4/dev-ino.m4, same-inode.m4: Remove.
69054
69055         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
69056         * m4/acl.m4 (AC_FUNC_ACL):
69057         * m4/backupfile.m4 (gl_BACKUPFILE):
69058         * m4/c-strtod.m4 (gl_C99_STRTOLD):
69059         * m4/canon-host.m4 (gl_CANON_HOST):
69060         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
69061         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
69062         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
69063         * m4/cloexec.m4 (gl_CLOEXEC):
69064         * m4/close-stream.m4 (gl_CLOSE_STREAM):
69065         * m4/closeout.m4 (gl_CLOSEOUT):
69066         * m4/dirfd.m4 (gl_FUNC_DIRFD):
69067         * m4/dirname.m4 (gl_DIRNAME):
69068         * m4/exclude.m4 (gl_EXCLUDE):
69069         * m4/exitfail.m4 (gl_EXITFAIL):
69070         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
69071         * m4/file-type.m4 (gl_FILE_TYPE):
69072         * m4/filemode.m4 (gl_FILEMODE):
69073         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
69074         * m4/fpending.m4 (gl_FUNC_FPENDING):
69075         * m4/fprintftime.m4 (gl_FPRINTFTIME):
69076         * m4/fts.m4 (gl_FUNC_FTS):
69077         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
69078         * m4/getdate.m4 (gl_GETDATE):
69079         * m4/gethrxtime.m4 (gl_GETHRXTIME):
69080         * m4/getpagesize.m4 (gl_GETPAGESIZE):
69081         * m4/getpass.m4 (gl_FUNC_GETPASS):
69082         * m4/gettime.m4 (gl_GETTIME):
69083         * m4/getugroups.m4 (gl_GETUGROUPS):
69084         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
69085         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
69086         * m4/hard-locale.m4 (gl_HARD_LOCALE):
69087         * m4/hash.m4 (gl_HASH):
69088         * m4/idcache.m4 (gl_IDCACHE):
69089         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
69090         * m4/lchown.m4 (gl_FUNC_LCHOWN):
69091         * m4/long-options.m4 (gl_LONG_OPTIONS):
69092         * m4/lstat.m4 (gl_FUNC_LSTAT):
69093         * m4/md5.m4 (gl_MD5):
69094         * m4/memcasecmp.m4 (gl_MEMCASECMP):
69095         * m4/memcoll.m4 (gl_MEMCOLL):
69096         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
69097         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
69098         * m4/memxor.m4 (gl_MEMXOR):
69099         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
69100         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
69101         * m4/modechange.m4 (gl_MODECHANGE):
69102         * m4/mountlist.m4 (gl_MOUNTLIST):
69103         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
69104         * m4/openat.m4 (gl_FUNC_OPENAT):
69105         * m4/pathmax.m4 (gl_PATHMAX):
69106         * m4/physmem.m4 (gl_PHYSMEM):
69107         * m4/posixtm.m4 (gl_POSIXTM):
69108         * m4/posixver.m4 (gl_POSIXVER):
69109         * m4/quote.m4 (gl_QUOTE):
69110         * m4/quotearg.m4 (gl_QUOTEARG):
69111         * m4/readtokens.m4 (gl_READTOKENS):
69112         * m4/readutmp.m4 (gl_READUTMP):
69113         * m4/regex.m4 (gl_REGEX):
69114         * m4/safe-read.m4 (gl_SAFE_READ):
69115         * m4/safe-write.m4 (gl_SAFE_WRITE):
69116         * m4/same.m4 (gl_SAME):
69117         * m4/save-cwd.m4 (gl_SAVE_CWD):
69118         * m4/savedir.m4 (gl_SAVEDIR):
69119         * m4/settime.m4 (gl_SETTIME):
69120         * m4/sha1.m4 (gl_SHA1):
69121         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
69122         * m4/stat-macros.m4 (gl_STAT_MACROS):
69123         * m4/stat-time.m4 (gl_STAT_TIME):
69124         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
69125         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
69126         * m4/strdup.m4 (gl_FUNC_STRDUP):
69127         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
69128         * m4/strndup.m4 (gl_FUNC_STRNDUP):
69129         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
69130         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
69131         * m4/time_r.m4 (gl_TIME_R):
69132         * m4/timespec.m4 (gl_TIMESPEC):
69133         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
69134         * m4/unlinkdir.m4 (gl_UNLINKDIR):
69135         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
69136         * m4/userspec.m4 (gl_USERSPEC):
69137         * m4/utimecmp.m4 (gl_UTIMECMP):
69138         * m4/utimens.m4 (gl_UTIMENS):
69139         * m4/xalloc.m4 (gl_XALLOC):
69140         * m4/xgetcwd.m4 (gl_XGETCWD):
69141         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
69142         * m4/xreadlink.m4 (gl_XREADLINK):
69143         * m4/xstrtod.m4 (gl_XSTRTOD):
69144         * m4/yesno.m4 (gl_YESNO):
69145         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
69146         to get the necessary .h files and whatnot.
69147
69148 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
69149             Bruno Haible  <bruno@clisp.org>
69150
69151         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
69152         /bin/sh understanding of '!' conditional negation.
69153
69154 2006-08-21  Jim Meyering  <jim@meyering.net>
69155
69156         * modules/openat (Depends-on): Really alphabetize.
69157
69158         * modules/acl (Depends-on): Add error and quote.
69159
69160         * check-module (find_included_lib_files): Add at-func.c to the
69161         ok-to-include-more-than-once white list.
69162
69163         * modules/openat (Depends-on): Add lstat.  Alphabetize.
69164
69165 2006-08-21  Bruno Haible  <bruno@clisp.org>
69166
69167         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69168         Emit a pkgdata_DATA variable only if some snippets add contents to it.
69169         Reported by Martin Lambers <marlam@marlam.de>.
69170
69171 2006-08-21  Bruno Haible  <bruno@clisp.org>
69172
69173         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
69174         specify an installation location, don't emit a noinst_LIBRARIES or
69175         noinst_LTLIBRARIES assignment.
69176
69177 2006-08-21  Bruno Haible  <bruno@clisp.org>
69178
69179         BeOS portability.
69180         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
69181         BeOS has mbrtowc() but no <wctype.h>.
69182
69183 2006-08-21  Bruno Haible  <bruno@clisp.org>
69184
69185         BeOS portability.
69186         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
69187         exist.
69188
69189 2006-08-21  Bruno Haible  <bruno@clisp.org>
69190
69191         BeOS portability.
69192         * lib/mbchar.h: Include <wctype.h> only if it exists.
69193
69194 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
69195
69196         Remove files that are no longer needed by their respective modules.
69197         * m4/obstack.m4: Remove.
69198         * m4/strerror_r.m4: Remove.
69199         * m4/uint32_t.m4: Remove.
69200         * m4/uintptr_t.m4: Remove.
69201         * m4/ullong_max.m4: Remove.
69202         * m4/xstrtoimax.m4: Remove.
69203         * m4/xstrtoumax.m4: Remove.
69204
69205         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
69206         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
69207         dependencies now capture this.
69208
69209         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
69210         Do not use AC_LIBSOURCES, since gnulib modules now do this.
69211         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
69212         * m4/human.m4 (gl_HUMAN): Likewise.
69213         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
69214         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
69215
69216         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
69217
69218         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
69219         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
69220         stdint.
69221         * m4/human.m4 (gl_HUMAN): Likewise.
69222         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
69223         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
69224         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
69225         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
69226         * m4/xstrtol (gl_XSTRTOL): Likewise.
69227
69228         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
69229         AC_TYPE_LONG_LONG_INT.
69230         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
69231         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
69232         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
69233         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
69234
69235         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
69236         on stdbool.
69237
69238         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
69239         (gl_PREREQ_XSTRTOUL): Remove.
69240
69241         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
69242
69243         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
69244         mode.
69245
69246 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
69247
69248         Add and change modules to make it easier for coreutils to use
69249         gnulib-tool.
69250         * modules/backupfile (Files): Remove m4/d-ino.m4.
69251         (Depends-on): Add d-ino.
69252         * modules/cycle-check (Depends-on): Add stdint.
69253         (lib_SOURCES): Add cycle-check.h.
69254         * modules/d-ino: New module.
69255         * modules/d-type: New module.
69256         * modules/error (Files): Remove m4/strerror_r.m4.
69257         * modules/filemode (Files): Add m4/st_dm_mode.m4.
69258         * modules/fsuage (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 fsusage.h.
69262         * modules/getcwd (Files): Remove d-ino.m4.
69263         (Depends-on): Add d-ino.
69264         * modules/getndelim2 (Depends-on): Add stdint.
69265         * modules/glob (Files): Remove m4/d-type.m4.
69266         (Depends-on): Add d-type.
69267         * modules/host-os: New module.
69268         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
69269         m4/inttypes_h.m4, m4/uintmax_t.m4.
69270         * Depends-on: Add stdint.
69271         (lib_SOURCES): Add human.h.
69272         * modules/inttostr (Files): Remove m4/intmax_t.m4,
69273         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
69274         m4/uintmax_t.m4, m4/ulonglong.m4.
69275         (Depends-on): Add stdint.
69276         (EXTRA_DIST): Add inttostr.h.
69277         * modules/lchmod: New module.
69278         * modules/link-follow: New module.
69279         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
69280         (Depends-on): Add lchmod.
69281         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
69282         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
69283         (Depends-on): Add stdint.
69284         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
69285         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
69286         (Depends-on): Add stdint.
69287         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
69288         * modules/perl: New module.
69289         * modules/regex (Depends-on): Add stdint.
69290         * modules/rmdir-errno: New module.
69291         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
69292         m4/intmax_t.m4.
69293         (Depends-on): Add stdint.
69294         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
69295         m4/uintmax_t.m4.
69296         (Depends-on): Add stdint.
69297         * modules/unlink-busy: New module.
69298         * modules/utimecmp (Depends-on): Add stdint.
69299         * modules/uptime: New module.
69300         * modules/winsz-ioctl: New module.
69301         * modules/winsz-termios: New module.
69302         * modules/xnanosleep (Depends-on): Add nanosleep.
69303         * modules/ullong_max: Remove.
69304         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
69305         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
69306         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
69307         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
69308         (Depends-on): Add inttypes.
69309         (lib_SOURCES): Add xstrtol.h.
69310         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
69311         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
69312         * MODULES.html.sh: Move 'assert' into the assert section.
69313         Move 'dummy' into the linking section.
69314         Remove ullong_max.
69315         Add section for compatibility checks for POSIX:2001 functions,
69316         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
69317         winsz-ioctl, and winsz-termios into it.
69318         Add lchmod.
69319         Add top-level Misc section and put host-os, perl, and uptime
69320         into it.
69321
69322 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
69323
69324         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
69325         now assume the stdint module.  Do not include inttypes.h.
69326         * lib/fsusage.h: Likewise.
69327         * lib/getndelim2.c: Likewise.
69328         * lib/human.h: Likewise.
69329         * lib/inttostr.h: Likewise.
69330         * lib/obstack.c: Likewise.
69331         * lib/regex_internal.h: Likewise.
69332         * lib/tempname.c: Likewise.
69333         * lib/utimecmp.c: Likewise.
69334         * lib/xstrtol.h: Likewise.
69335
69336         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
69337
69338         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
69339         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
69340         * lib/xtime.h: Likewise.
69341
69342 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
69343
69344         * modules/openat (Files): Add lib/fchmodat.c.
69345         Fixes problem reported by Jay Youngman.
69346
69347 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
69348
69349         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
69350         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
69351
69352 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
69353             Bruno Haible  <bruno@clisp.org>
69354
69355         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
69356         and is a script that invokes bison. Tighten the code. Add comments.
69357
69358 2006-08-18  Jim Meyering  <jim@meyering.net>
69359
69360         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
69361         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
69362         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
69363         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
69364
69365 2006-08-18  Bruno Haible  <bruno@clisp.org>
69366
69367         * modules/bison-i18n: New file.
69368         * MODULES.html.sh (Internationalization functions): Add it.
69369
69370 2006-08-18  Bruno Haible  <bruno@clisp.org>
69371
69372         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
69373         sys/statvfs.h. When getmntinfo was found, check its declaration and
69374         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
69375
69376 2006-08-18  Bruno Haible  <bruno@clisp.org>
69377
69378         * m4/bison-i18n.m4: New file, from bison.
69379
69380 2006-08-18  Bruno Haible  <bruno@clisp.org>
69381
69382         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
69383         (ME_DUMMY): Treat "kernfs" as a dummy.
69384         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
69385
69386 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
69387
69388         Update from coreutils.
69389
69390         2006-08-15  Jim Meyering  <jim@meyering.net>
69391
69392         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
69393
69394         2006-01-17  Jim Meyering  <jim@meyering.net>
69395
69396         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
69397
69398         2006-01-11  Jim Meyering  <jim@meyering.net>
69399
69400         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
69401         Check for the lchmod function.
69402
69403 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
69404
69405         Update from coreutils.
69406
69407         * lib/__fpending.h: Add copyright notice.
69408         * lib/fprintftime.h: Likewise.
69409         * lib/savedir.c: Use (C) in copyright notice.
69410         * lib/savedir.h: Likewise.
69411
69412         2006-08-15  Jim Meyering  <jim@meyering.net>
69413
69414         * lib/at-func.c: New file, with the logic of all emulated at-functions.
69415         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
69416         in support of the EXPECTED_ERRNO macro.
69417         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
69418         definitions.  Instead, define the appropriate symbols and include
69419         "at-func.c".
69420         * lib/mkdirat.c (mkdirat): Likewise.
69421         * lib/fchmodat.c (fchmodat): Likewise.
69422         (ENOSYS): Remove definition.
69423         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
69424         it.  Don't include "unistd--.h" -- it wasn't ever used.
69425
69426         2006-01-17  Jim Meyering  <jim@meyering.net>
69427
69428         Rewrite fts.c not to change the current working directory,
69429         by using openat, fstatat, fdopendir, etc..
69430
69431         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
69432         (HAVE_OPENAT_SUPPORT): Define.
69433         [_LIBC] (fchdir): Don't undef or define; no longer used.
69434         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
69435         Now, this `function' always succeeds, and consumes its file descriptor
69436         parameter -- so callers must not close such FDs.  Update callers.
69437         (diropen_fd, opendirat, cwd_advance_fd): New functions.
69438         (diropen): Add parameter, SP.  Adjust all callers.
69439         Implement using diropen_fd, rather than open.
69440         (fts_open): Initialize new member, fts_cwd_fd.
69441         Remove fts_rft-setting code.
69442         (fts_close): Close fts_cwd_fd, if necessary.
69443         (__opendir2): Define in terms of opendir or opendirat,
69444         depending on whether the FST_NOCHDIR flag is set.
69445         (fts_build): Since fts_safe_changedir consumes its FD, and since
69446         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
69447         and close the dup'd file descriptor upon failure.
69448         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
69449         (fts_safe_changedir): Tweak semantics to reflect that this function
69450         now calls cwd_advance_fd and hence consumes its FD argument.
69451         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
69452         [struct FTS] (fts_rft): Remove now-unused member.
69453         [struct FTS] (fts_cycle.state): Improve comment.
69454
69455         * lib/openat.c (openat_needs_fchdir): New function.
69456         * lib/openat.h (openat_needs_fchdir): Declare it.
69457
69458 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
69459
69460         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
69461         Problem and fix reported by Pádraig Brady in
69462         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
69463
69464 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
69465
69466         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
69467
69468 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
69469
69470         * lib/memcoll.c (memcoll): Optimize for the common case where the
69471         arguments are bytewise equal.
69472
69473 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
69474
69475         * doc/regexprops-generic.texi: Add a copyright notice.
69476
69477 2006-08-15  Bruno Haible  <bruno@clisp.org>
69478
69479         * modules/tmpdir (License): Change to LGPL.
69480
69481 2006-08-15  Bruno Haible  <bruno@clisp.org>
69482
69483         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
69484         module.
69485
69486 2006-08-14  Simon Josefsson  <jas@extundo.com>
69487
69488         * config/srclist.txt: Add gnupload.
69489
69490 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
69491
69492         Change copyright notice from LGPL 2 to GPL 2, since that's the
69493         standard form used in the gnulib repository.
69494         * tests/test-lock.c: Likewise.
69495         * tests/test-stdint.c: Likewise.
69496         * tests/test-tls.c: Likewise.
69497
69498         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
69499         prelude-manager.  User shorter URLs for GNU projects, without '?'.
69500         Add copyright notice.
69501
69502         * check-module: Add copyright notice.  Output a copyright
69503         notice if "--version" is specified.
69504         * modules/COPYING: New file.
69505         * tests/test-getaddrinfo.c: Add copyright notice.
69506         * tests/test-verify.c: Likewise.
69507
69508 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
69509
69510         Change copyright notice from LGPL 2 to GPL 2, since that's the
69511         standard form used in the gnulib repository.
69512         * lib/lock.c: LGPL -> GPL.
69513         * lib/lock.h: Likewise.
69514         * lib/strnlen1.c: Likewise.
69515         * lib/strnlen1.h: Likewise.
69516         * lib/tls.c: Likewise.
69517         * lib/tls.h: Likewise.
69518         * lib/tmpdir.c: Likewise.
69519
69520         * lib/TODO: Remove; this belongs only in coreutils.
69521
69522 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
69523
69524         Add copyright notices to long-enough files that lack them, since
69525         otherwise the files aren't clearly free.  Use the same notice that
69526         getdate.texi already uses.
69527         * doc/alloca-opt.texi: Add copyright notice.
69528         * doc/alloca.texi: Likewise.
69529         * doc/ctime.texi: Likewise.
69530         * doc/functions.texi: Likewise.
69531         * doc/gcd.texi: Likewise.
69532         * doc/gnulib-tool.texi: Likewise.
69533         * doc/inet_ntoa.texi: Likewise.
69534         * doc/visibility.texi: Likewise.
69535
69536         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
69537         * doc/quote.texi: Add copyright notice.
69538
69539         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
69540         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
69541         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
69542         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
69543         is now obsolete, and give a pointer to the Sun list.
69544         Add copyright notice.
69545
69546 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
69547
69548         * config/srclistvars.sh: Add copyright notice.
69549
69550 2006-08-14  Eric Blake  <ebb9@byu.net>
69551
69552         Import the following change from libc:
69553
69554         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
69555
69556         Upstream bug 2997.
69557         * lib/misc/error.c: Add space between program name and message if file
69558         name is missing.
69559
69560 2006-08-12  Karl Berry  <karl@gnu.org>
69561
69562         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
69563         remove, these originate in gnulib now.
69564
69565 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69566
69567         * doc/Makefile (standards.info standards.html standards.dvi):
69568         Also depend on make-stds.texi.
69569
69570 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
69571
69572         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
69573         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
69574
69575         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
69576         in wchar_t.  Problem reported by Eric Blake.
69577
69578         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
69579         LEN is smaller than SIZE.  Suggested by Bruno Haible.
69580         Also, help the compiler to keep LEN in a register.
69581
69582 2006-08-11  Eric Blake  <ebb9@byu.net>
69583
69584         * users.txt: Sort.  Add tar.
69585
69586 2006-08-11  Bruno Haible  <bruno@clisp.org>
69587
69588         * users.txt: New file.
69589
69590 2006-08-11  Bruno Haible  <bruno@clisp.org>
69591
69592         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
69593         before <wchar.h>. Needed for OSF/1 and BSD/OS.
69594
69595 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
69596
69597         * modules/snprintf (Depends-on): Remove minmax.
69598         (Maintainer): Add self and Bruno.
69599
69600 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
69601
69602         * lib/.cppi-disable: Add snprintf.h, socket_.h.
69603         * lib/snprintf.c: Include <errno.h> and <limits.h>.
69604         (EOVERFLOW): Define if the system does not.
69605         Do not include "minmax.h"; it wasn't used.
69606         (snprintf): Don't assume size_t promotes to an unsigned type.
69607         Fix bug when generated string was too long for the buffer: the
69608         buffer's contents are supposed to be the initial prefix of the
69609         output.  Don't assume vasnprintf returns EOVERFLOW if the size
69610         exceeds INT_MAX; do the check ourselves.
69611
69612         Import the following changes from libc:
69613
69614         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
69615
69616         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
69617         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
69618         set wc to the byte which couldn't be converted.
69619         (re_string_reconstruct): Don't clear valid_raw_len before calling
69620         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
69621         tip_context using re_string_context_at.
69622
69623         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
69624
69625         * lib/posix/regex.h: g++ still cannot handled [restrict].
69626
69627         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
69628
69629         * lib/posix/regex.h: Remove special handling for VMS.
69630
69631 2006-08-10  Jim Meyering  <jim@meyering.net>
69632
69633         * modules/same-inode: New module.
69634         * modules/dev-ino: New module.
69635         * modules/cycle-check: Depend on these modules, rather than simply
69636         including their .h files.
69637         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
69638         required via m4/cycle-check.m4.
69639         * modules/same: Depend on new same-inode module, rather than
69640         including same-inode.h.
69641         * modules/chdir-safer: New file.
69642
69643         * modules/chown (Depends-on): Add stat-macros.
69644
69645 2006-08-10  Jim Meyering  <jim@meyering.net>
69646
69647         * m4/cycle-check.m4: New file.
69648         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
69649         * m4/dev-ino.m4, m4/same-inode.m4: New files.
69650
69651 2006-08-10  Eric Blake  <ebb9@byu.net>
69652
69653         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
69654         in from original proposal.
69655
69656 2006-08-10  Eric Blake  <ebb9@byu.net>
69657         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
69658
69659         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
69660         namespace.
69661
69662 2006-08-10  Bruno Haible  <bruno@clisp.org>
69663
69664         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
69665         as well.
69666
69667 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
69668
69669         Sync from coreutils.
69670
69671         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
69672
69673         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
69674         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
69675
69676 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
69677
69678         * modules/restrict: Remove; no longer needed now that we assume
69679         Autoconf 2.59 or later.
69680         * MODULES.html.sh: Remove 'restrict'.
69681         * modules/argp (Depends-on): Remove 'restrict'.
69682         * modules/base64 (Depends-on): Likewise.
69683         * modules/gc (Depends-on): Likewise.
69684         * modules/getaddrinfo (Depends-on): Likewise.
69685         * modules/glob (Depends-on): Likewise.
69686         * modules/inet_ntop (Depends-on): Likewise.
69687         * modules/inet_pton (Depends-on): Likewise.
69688         * modules/memxor (Depends-on): Likewise.
69689         * modules/regex (Depends-on): Likewise.
69690         * modules/strtok_r (Depends-on): Likewise.
69691         * modules/time_r (Depends-on): Likewise.
69692
69693 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
69694
69695         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
69696         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
69697         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
69698         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
69699         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
69700         * m4/memxor.m4 (gl_MEMXOR): Likewise.
69701         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
69702         gl_C_RESTRICT replaced by AC_C_RESTRICT.
69703
69704         Merge from coreutils.
69705         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
69706         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
69707         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
69708         * m4/time_r.m4 (gl_TIME_R): Likewise.
69709
69710 2006-08-09  Karl Berry  <karl@gnu.org>
69711
69712         * config/srclist.txt: no more gettext-tools, per Bruno.
69713
69714 2006-08-08  Eric Blake  <ebb9@byu.net>
69715
69716         * modules/verror: New module.
69717         * MODULES.html.sh: Document it.
69718
69719 2006-08-08  Eric Blake  <ebb9@byu.net>
69720
69721         * lib/verror.h, lib/verror.c: New files.
69722
69723 2006-08-08  Eric Blake  <ebb9@byu.net>
69724
69725         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
69726         verror_at_line output complies with GNU Coding Standards even when
69727         file is NULL.
69728
69729 2006-08-07  Bruno Haible  <bruno@clisp.org>
69730
69731         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
69732         versions of AIX.
69733         Reported by Ralf Wildenhues.
69734
69735 2006-08-07  Bruno Haible  <bruno@clisp.org>
69736
69737         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
69738         in an AC_DEFUN. Needed so that the autoconf snippets can use
69739         AC_REQUIRE.
69740
69741 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69742
69743         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69744         Initialize pkgdata_DATA.
69745         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
69746         overriding it.
69747
69748 2006-08-06  Eric Blake  <ebb9@byu.net>
69749
69750         * lib/error.h: Fold in some upstream changes from glibc.
69751         * lib/error.c: Likewise.
69752
69753 2006-08-04  Bruno Haible  <bruno@clisp.org>
69754
69755         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69756         Make the mostlyclean-local rule depend on mostlyclean-generic.
69757         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
69758
69759 2006-07-31  Bruno Haible  <bruno@clisp.org>
69760
69761         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
69762         <stdlib.h>, <string.h>.
69763
69764 2006-07-30  Bruno Haible  <bruno@clisp.org>
69765
69766         * modules/readlink (License): Change to LGPL.
69767
69768 2006-07-30  Bruno Haible  <bruno@clisp.org>
69769
69770         * modules/javaversion (Makefile.am): Distribute javaversion.java and
69771         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
69772         set PKGDATADIR to point to it.
69773
69774 2006-07-30  Bruno Haible  <bruno@clisp.org>
69775
69776         * modules/csharpexec (configure.ac): Comment out macro invocation.
69777         * modules/javaexec (configure.ac): Likewise.
69778         * modules/javacomp-script (configure.ac): Likewise.
69779
69780         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
69781
69782 2006-07-30  Bruno Haible  <bruno@clisp.org>
69783
69784         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
69785         linked-list.
69786
69787 2006-07-30  Bruno Haible  <bruno@clisp.org>
69788
69789         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
69790
69791 2006-07-30  Bruno Haible  <bruno@clisp.org>
69792
69793         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69794         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
69795         get removed.
69796
69797 2006-07-29  Bruno Haible  <bruno@clisp.org>
69798
69799         Make it possible for gnulib-tool to work with locally modified or
69800         augmented gnulib repositories.
69801         * gnulib-tool (func_usage): Document --local-dir option.
69802         (local_gnulib_dir): New variable.
69803         Handle --local-dir option.
69804         (func_lookup_file): New function.
69805         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
69806         (func_get_description, func_get_filelist, func_get_description,
69807         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
69808         func_get_automake_snippet, func_get_include_directive,
69809         func_get_license, func_get_maintainer): Use func_lookup_file.
69810         (func_import, func_create_testdir): Use func_lookup_file.
69811
69812 2006-07-29  Bruno Haible  <bruno@clisp.org>
69813
69814         * modules/setenv (Depends-on): Add unistd.
69815
69816 2006-07-29  Bruno Haible  <bruno@clisp.org>
69817
69818         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
69819
69820 2006-07-29  Bruno Haible  <bruno@clisp.org>
69821
69822         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
69823
69824 2006-07-29  Bruno Haible  <bruno@clisp.org>
69825
69826         * gnulib-tool (import, update): If there is no Makefile.am, look at
69827         aclocal.m4, instead of bailing out.
69828
69829 2006-07-29  Bruno Haible  <bruno@clisp.org>
69830
69831         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
69832         Categorize the options by when they are useful.
69833
69834 2006-07-29  Bruno Haible  <bruno@clisp.org>
69835
69836         * gnulib-tool (func_usage): Document option --no-libtool.
69837         Handle option --no-libtool.
69838         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
69839         for changed semantics of $libtool variable.
69840         (func_import): Likewise. If libtool is not used, show this through
69841         an option --no-libtool.
69842         (func_create_testdir): Update.
69843
69844 2006-07-29  Bruno Haible  <bruno@clisp.org>
69845
69846         * gnulib-tool (func_import): Extend error message about missing
69847         --doc-base.
69848
69849 2006-07-29  Bruno Haible  <bruno@clisp.org>
69850
69851         * gnulib-tool (func_import): Don't create the $docbase directory if
69852         there is no file to store there.
69853
69854 2006-07-29  Bruno Haible  <bruno@clisp.org>
69855
69856         * gnulib-tool (autoconf_minversion): If a --dir option is given and
69857         relevant, look for configure.ac there, not in the current directory.
69858         Also use a simple search for AC_PREREQ, not "autoconf --trace".
69859
69860 2006-07-29  Bruno Haible  <bruno@clisp.org>
69861
69862         * gnulib-tool (SORT): New variable.
69863         (func_usage): Undocument --assume-autoconf option.
69864         Remove --assume-autoconf option handling.
69865         (autoconf_minversion): Determine from the contents of configure.ac.
69866         (func_import): Remove autoconf_minversion handling.
69867         Suggested by Eric Blake.
69868
69869 2006-07-29  Bruno Haible  <bruno@clisp.org>
69870
69871         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
69872
69873 2006-07-29  Bruno Haible  <bruno@clisp.org>
69874
69875         * config/srclist.txt (*setenv.[ch]): Remove rules.
69876
69877 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69878
69879         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
69880
69881 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69882
69883         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
69884         arpa/inet.h.
69885
69886 2006-07-28  Simon Josefsson  <jas@extundo.com>
69887
69888         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
69889         * modules/inet_pton (Depends-on): Likewise.
69890
69891 2006-07-28  Simon Josefsson  <jas@extundo.com>
69892
69893         * m4/netinet_in_h.m4: New file.
69894
69895 2006-07-28  Simon Josefsson  <jas@extundo.com>
69896
69897         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
69898         #include's.
69899
69900 2006-07-28  Simon Josefsson  <jas@extundo.com>
69901
69902         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
69903         #include's.
69904
69905 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
69906
69907         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
69908         setgid on directories only if they set these bits.
69909         * lib/modechange.h: Remove obsolete comment about masks.
69910
69911 2006-07-28  Eric Blake  <ebb9@byu.net>
69912
69913         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
69914         macro expansion.
69915
69916 2006-07-28  Bruno Haible  <bruno@clisp.org>
69917
69918         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
69919
69920 2006-07-28  Bruno Haible  <bruno@clisp.org>
69921
69922         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
69923
69924 2006-07-28  Bruno Haible  <bruno@clisp.org>
69925
69926         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
69927         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
69928         Define fallbacks.
69929         Avoids link error on FreeBSD 4.x.
69930         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
69931
69932         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
69933         encoding.
69934         * lib/mbswidth.c (iswcntrl): Likewise.
69935
69936 2006-07-27  Bruno Haible  <bruno@clisp.org>
69937
69938         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
69939         test.
69940
69941 2006-07-27  Bruno Haible  <bruno@clisp.org>
69942
69943         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
69944         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
69945         defined.
69946
69947 2006-07-26  Eric Blake  <ebb9@byu.net>
69948
69949         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
69950
69951 2006-07-26  Eric Blake  <ebb9@byu.net>
69952
69953         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
69954         like mingw that lack mkstemp.
69955         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
69956         avoid compilation warning on mingw.
69957
69958 2006-07-26  Bruno Haible  <bruno@clisp.org>
69959
69960         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
69961         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
69962         INT_FAST*_MIN, INTPTR_MIN.
69963
69964 2006-07-25  Bruno Haible  <bruno@clisp.org>
69965
69966         * modules/version-etc (Depends-on): Add stdarg.
69967
69968 2006-07-25  Bruno Haible  <bruno@clisp.org>
69969
69970         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
69971         complex commands.
69972
69973 2006-07-25  Bruno Haible  <bruno@clisp.org>
69974
69975         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
69976         defined in <stdarg.h> or config.h.
69977
69978 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
69979
69980         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
69981         (gl_STDIO_SAFER): Remove.
69982
69983 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
69984
69985         * MODULES.html.sh (File stream based Input/Output):
69986         Add fopen-safer, tmpfile-safer; remove stdio-safer.
69987         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
69988         * modules/fopen-safer, modules/tmpfile-safer: New files.
69989         * modules/stdio-safer: Remove.
69990
69991 2006-07-24  Bruno Haible  <bruno@clisp.org>
69992
69993         * modules/tmpdir: New file.
69994         * MODULES.html.sh (File system functions): Add it.
69995
69996 2006-07-24  Bruno Haible  <bruno@clisp.org>
69997
69998         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
69999         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
70000
70001 2006-07-24  Bruno Haible  <bruno@clisp.org>
70002
70003         * modules/clean-temp: New file.
70004
70005 2006-07-24  Bruno Haible  <bruno@clisp.org>
70006
70007         * m4/tmpdir.m4: New file, from GNU gettext.
70008
70009 2006-07-24  Bruno Haible  <bruno@clisp.org>
70010
70011         * lib/tmpdir.h: New file, from GNU gettext.
70012         * lib/tmpdir.c: New file, from GNU gettext.
70013
70014 2006-07-24  Bruno Haible  <bruno@clisp.org>
70015
70016         * lib/clean-temp.h: New file, from GNU gettext.
70017         * lib/clean-temp.c: New file, from GNU gettext.
70018
70019 2006-07-23  Eric Blake  <ebb9@byu.net>
70020
70021         * modules/stdio-safer (Files): Add tmpfile-safer.c.
70022         (Depends-on): Add binary-io.
70023
70024 2006-07-23  Eric Blake  <ebb9@byu.net>
70025
70026         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
70027
70028 2006-07-23  Eric Blake  <ebb9@byu.net>
70029
70030         * lib/tmpfile-safer.c: New file.
70031         * lib/stdio-safer.h (fopen_safer): Add prototype.
70032         * lib/stdio--.h (tmpfile): Make safer.
70033
70034 2006-07-23  Bruno Haible  <bruno@clisp.org>
70035
70036         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
70037         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
70038         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
70039         gl_linked_remove_at): Use it.
70040
70041 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70042         and Simon Josefsson <jas@extundo.com>
70043
70044         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
70045
70046         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
70047
70048 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
70049
70050         * modules/close-stream: New file.
70051         * modules/closeout (Description): Make it clear that it exits
70052         with a diagnostic on error.
70053         (Depends-on): Add close-stream.  Remove fpending, stdbool.
70054         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
70055
70056 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
70057
70058         * m4/close-stream.m4: New file.
70059
70060 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
70061
70062         * lib/close-stream.c, lib/close-stream.h: New files.
70063
70064 2006-07-22  Bruno Haible  <bruno@clisp.org>
70065
70066         Merge from GNU gettext 0.15.
70067
70068         2006-05-01  Bruno Haible  <bruno@clisp.org>
70069
70070                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
70071
70072         2006-07-22  Bruno Haible  <bruno@clisp.org>
70073
70074                 * modules/javaversion: New file.
70075                 * MODULES.html.sh (Java): Add javaversion.
70076
70077         2006-03-12  Bruno Haible  <bruno@clisp.org>
70078
70079                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
70080
70081         2005-12-04  Bruno Haible  <bruno@clisp.org>
70082
70083                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
70084                 (untested).
70085
70086         2006-06-21  Bruno Haible  <bruno@clisp.org>
70087
70088                 Avoid warnings from recent versions of mcs.
70089                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
70090                 -o, -L, -r any more. Use options documented since mcs-1.0
70091                 instead. Similarly for -g.
70092
70093         2005-12-04  Bruno Haible  <bruno@clisp.org>
70094
70095                 * build-aux/csharpcomp.sh.in: Suffix for resources is
70096                 .resources, not .resource.
70097
70098         2005-07-09  Bruno Haible  <bruno@clisp.org>
70099
70100                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
70101                 add a .dll suffix.
70102                 Reported by Mark Junker <mjscod@gmx.de>.
70103
70104         2006-07-22  Bruno Haible  <bruno@clisp.org>
70105
70106                 * modules/gettext: Upgrade to gettext-0.15.
70107                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
70108                 m4/visibility.m4.
70109                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
70110
70111 2006-07-22  Bruno Haible  <bruno@clisp.org>
70112
70113         Merge from GNU gettext 0.15.
70114
70115         2006-03-25  Bruno Haible  <bruno@clisp.org>
70116
70117                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
70118
70119         2006-07-21  Bruno Haible  <bruno@clisp.org>
70120
70121                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
70122                 "1.1".
70123
70124         2006-05-09  Bruno Haible  <bruno@clisp.org>
70125
70126                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
70127                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
70128                 for the conftestver execution.
70129
70130         2006-05-01  Bruno Haible  <bruno@clisp.org>
70131
70132                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
70133                 optional target-version argument. Verify that the compiler
70134                 groks source of the specified source-version, or add -source
70135                 option as necessary. Verify that the compiler produces
70136                 bytecode in the specified target-version, or add -target and
70137                 -source options as necessary. Make the result of the test
70138                 available as variable CONF_JAVAC. Also log error output in
70139                 config.log.
70140
70141         2006-03-11  Bruno Haible  <bruno@clisp.org>
70142
70143                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
70144
70145         2006-05-09  Bruno Haible  <bruno@clisp.org>
70146
70147                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
70148                 CLASSPATH_SEPARATOR to a semicolon.
70149
70150         2006-03-12  Bruno Haible  <bruno@clisp.org>
70151
70152                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
70153                 available as variable CONF_JAVA, for subsequent autoconf
70154                 tests. Also log error output in config.log.
70155
70156         2006-07-19  Bruno Haible  <bruno@clisp.org>
70157
70158                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
70159                 that getline works on glibc2 systems. Needed to avoid trouble
70160                 in relocatable.c.
70161                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
70162
70163         2005-12-04  Bruno Haible  <bruno@clisp.org>
70164
70165                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
70166                 launcher (untested).
70167
70168         2005-12-04  Bruno Haible  <bruno@clisp.org>
70169
70170                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
70171
70172         2006-07-22  Bruno Haible  <bruno@clisp.org>
70173
70174                 * gettext.m4: Update from GNU gettext-0.15.
70175                 * nls.m4: Likewise.
70176                 * po.m4: Likewise.
70177                 * inttypes-pri.m4: Likewise.
70178                 * inttypes-h.m4: Renamed from inttypes.m4.
70179                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
70180
70181 2006-07-22  Bruno Haible  <bruno@clisp.org>
70182
70183         Merge from GNU gettext 0.15.
70184
70185         2005-07-05  Bruno Haible  <bruno@clisp.org>
70186
70187                 * printf-args.c (printf_fetchargs): Work around broken
70188                 definition of wint_t on mingw.
70189
70190         2005-02-12  Bruno Haible  <bruno@clisp.org>
70191
70192                 * xallocsa.h: Add extern "C" for C++.
70193
70194         2006-05-17  Bruno Haible  <bruno@clisp.org>
70195
70196                 Cygwin portability.
70197                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
70198
70199         2006-04-30  Bruno Haible  <bruno@clisp.org>
70200
70201                 * progreloc.c: Include <mach-o/dyld.h> if available.
70202                 (find_executable): Use _NSGetExecutablePath when possible.
70203
70204         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
70205
70206                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
70207                 function.
70208
70209         2005-12-29  Bruno Haible  <bruno@clisp.org>
70210
70211                 * progreloc.c (set_program_name_and_installdir): Fix
70212                 compilation error.
70213
70214         2005-12-04  Bruno Haible  <bruno@clisp.org>
70215
70216                 Cygwin portability.
70217                 * progreloc.c: Include <windows.h> also on Cygwin.
70218                 (find_executable): Add support for Cygwin.
70219                 (set_program_name_and_installdir): Handle also platforms with
70220                 nonempty EXEEXT.
70221
70222         2006-07-11  Bruno Haible  <bruno@clisp.org>
70223
70224                 * javacomp.c: Fix a comment.
70225                 Reported by Jim Meyering.
70226
70227         2006-04-30  Bruno Haible  <bruno@clisp.org>
70228
70229                 * javacomp.h (compile_java_class): Add source_version,
70230                 target_version arguments.
70231                 * javacomp.c: Rewritten to choose only a compiler that
70232                 respects the specified source_version and target_version.
70233
70234         2006-06-27  Bruno Haible  <bruno@clisp.org>
70235
70236                 Assume correct S_ISDIR macro.
70237                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
70238
70239         2006-07-22  Bruno Haible  <bruno@clisp.org>
70240
70241                 * javaversion.h: New file, from GNU gettext.
70242                 * javaversion.c: New file, from GNU gettext.
70243                 * javaversion.java: New file, from GNU gettext.
70244                 * javaversion.class: New file, from GNU gettext.
70245
70246         2006-05-17  Bruno Haible  <bruno@clisp.org>
70247
70248                 Cygwin portability.
70249                 * javaexec.c (execute_java_class): Test for jview program
70250                 also on Cygwin.
70251
70252         2006-04-09  Bruno Haible  <bruno@clisp.org>
70253
70254                 * fatal-signal.c: Don't include string.h.
70255                 (at_fatal_signal): Use a copying loop instead of memcpy.
70256
70257         2005-12-04  Bruno Haible  <bruno@clisp.org>
70258
70259                 * csharpexec.c: Add support for 'clix' launcher (untested).
70260                 (execute_csharp_using_sscli): New function.
70261                 (execute_csharp_program): Call it.
70262
70263         2006-06-21  Bruno Haible  <bruno@clisp.org>
70264
70265                 Avoid warnings from recent versions of mcs.
70266                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
70267                 -o, -L, -r any more. Use options documented since mcs-1.0
70268                 instead. Similarly for -g.
70269
70270         2005-07-09  Bruno Haible  <bruno@clisp.org>
70271
70272                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
70273                 add a .dll suffix.
70274                 Reported by Mark Junker <mjscod@gmx.de>.
70275
70276         2006-06-17  Bruno Haible  <bruno@clisp.org>
70277
70278                 * config.charset: Update for NetBSD 3.0.
70279
70280         2006-05-17  Bruno Haible  <bruno@clisp.org>
70281
70282                 Cygwin portability.
70283                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
70284
70285         2006-05-16  Bruno Haible  <bruno@clisp.org>
70286
70287                 * localcharset.c [CYGWIN]: Include <windows.h>.
70288                 (get_charset_aliases): For Cygwin, return the same CPxxx
70289                 aliases list as under WIN32.
70290                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
70291                 the environment variables. Fall back to GetACP().
70292
70293         2006-04-05  Bruno Haible  <bruno@clisp.org>
70294
70295                 * config.charset: Update Juan Manuel Guerrero's address.
70296
70297         2005-02-12  Bruno Haible  <bruno@clisp.org>
70298
70299                 * allocsa.h: Add extern "C" for C++.
70300
70301         2005-02-10  Bruno Haible  <bruno@clisp.org>
70302
70303                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
70304                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
70305
70306         2006-07-22  Bruno Haible  <bruno@clisp.org>
70307
70308                 * gettext.h: Update to GNU gettext-0.15.
70309
70310 2006-07-22  Bruno Haible  <bruno@clisp.org>
70311
70312         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
70313         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
70314         lib-prefix.m4, longdouble.m4, ssize_t.m4.
70315
70316 2006-07-21  Eric Blake  <ebb9@byu.net>
70317
70318         * modules/stdlib-safer: New file.
70319         * MODULES.html.sh (File stream based Input/Output): Add
70320         stdlib-safer.
70321
70322 2006-07-21  Eric Blake  <ebb9@byu.net>
70323
70324         * lib/stdlib-safer.h: New file from coreutils, required by
70325         stdlib--.h.
70326
70327 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
70328
70329         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
70330
70331 2006-07-20  Bruno Haible  <bruno@clisp.org>
70332
70333         * gnulib-tool: Recognize new option --assume-autoconf.
70334         (autoconf_minversion): New variable.
70335         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
70336
70337 2006-07-20  Bruno Haible  <bruno@clisp.org>
70338
70339         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
70340
70341 2006-07-19  Derek R. Price  <derek@ximbiot.com>
70342
70343         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
70344         Reindent and repaginate.
70345
70346 2006-07-19  Derek Price  <derek@ximbiot.com>
70347
70348         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
70349         Correct grammar.
70350
70351 2006-07-17  Bruno Haible  <bruno@clisp.org>
70352
70353         * modules/list: New file.
70354         * modules/array-list: New file.
70355         * modules/carray-list, modules/carray-list-tests: New files.
70356         * modules/linked-list, modules/linked-list-tests: New files.
70357         * modules/avltree-list, modules/avltree-list-tests: New files.
70358         * modules/rbtree-list, modules/rbtree-list-tests: New files.
70359         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
70360         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
70361         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
70362         * modules/oset: New file.
70363         * modules/array-oset: New file.
70364         * modules/avltree-oset, modules/avltree-oset-tests: New files.
70365         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
70366         * tests/test-carray_list.c: New file.
70367         * tests/test-linked_list.c: New file.
70368         * tests/test-avltree_list.c: New file.
70369         * tests/test-rbtree_list.c: New file.
70370         * tests/test-linkedhash_list.c: New file.
70371         * tests/test-avltreehash_list.c: New file.
70372         * tests/test-rbtreehash_list.c: New file.
70373         * tests/test-avltree_oset.c: New file.
70374         * tests/test-rbtree_oset.c: New file.
70375         * MODULES.html.sh (Container data structures): New section.
70376
70377 2006-07-17  Bruno Haible  <bruno@clisp.org>
70378
70379         * m4/gl_list.m4: New file.
70380
70381 2006-07-17  Bruno Haible  <bruno@clisp.org>
70382
70383         * lib/gl_list.h: New file.
70384         * lib/gl_list.c: New file.
70385         * lib/gl_array_list.h: New file.
70386         * lib/gl_array_list.c: New file.
70387         * lib/gl_carray_list.h: New file.
70388         * lib/gl_carray_list.c: New file.
70389         * lib/gl_linked_list.h: New file.
70390         * lib/gl_linked_list.c: New file.
70391         * lib/gl_anylinked_list1.h: New file.
70392         * lib/gl_anylinked_list2.h: New file.
70393         * lib/gl_avltree_list.h: New file.
70394         * lib/gl_avltree_list.c: New file.
70395         * lib/gl_anyavltree_list1.h: New file.
70396         * lib/gl_anyavltree_list2.h: New file.
70397         * lib/gl_rbtree_list.h: New file.
70398         * lib/gl_rbtree_list.c: New file.
70399         * lib/gl_anyrbtree_list1.h: New file.
70400         * lib/gl_anyrbtree_list2.h: New file.
70401         * lib/gl_anytree_list1.h: New file.
70402         * lib/gl_anytree_list2.h: New file.
70403         * lib/gl_linkedhash_list.h: New file.
70404         * lib/gl_linkedhash_list.c: New file.
70405         * lib/gl_anyhash_list1.h: New file.
70406         * lib/gl_anyhash_list2.h: New file.
70407         * lib/gl_avltreehash_list.h: New file.
70408         * lib/gl_avltreehash_list.c: New file.
70409         * lib/gl_rbtreehash_list.h: New file.
70410         * lib/gl_rbtreehash_list.c: New file.
70411         * lib/gl_anytreehash_list1.h: New file.
70412         * lib/gl_anytreehash_list2.h: New file.
70413
70414         * lib/gl_oset.h: New file.
70415         * lib/gl_oset.c: New file.
70416         * lib/gl_array_oset.h: New file.
70417         * lib/gl_array_oset.c: New file.
70418         * lib/gl_avltree_oset.h: New file.
70419         * lib/gl_avltree_oset.c: New file.
70420         * lib/gl_rbtree_oset.h: New file.
70421         * lib/gl_rbtree_oset.c: New file.
70422         * lib/gl_anytree_oset.h: New file.
70423
70424 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
70425
70426         * m4/mkancesdirs.m4: New file.
70427         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
70428         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
70429         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
70430         it.
70431
70432 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
70433
70434         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
70435         * lib/mkancesdirs.h: New files.
70436         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
70437         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
70438         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
70439         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
70440         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
70441         callers changed.  Revamp internals significantly, by not
70442         attempting to create directories that are temporarily more
70443         permissive than the final results.  Do not attempt to use
70444         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
70445         This removes some race conditions, fixes some bugs, and simplifies
70446         things.  Use new dirchownmod function to do owner and mode changes.
70447         * lib/mkdir-p.h: Likewise.
70448         * lib/modechange.c (octal_to_mode): New function.
70449         (struct mode_change): New member mentioned.
70450         (make_node_op_equals): New arg mentioned.  All callers changed.
70451         (mode_compile): Keep track of which mode bits the user has explicitly
70452         mentioned.
70453         (mode_adjust): New arg DIR, so that we implement the X op correctly.
70454         New arg PMODE_BITS, to keep track of which mode bits the user
70455         mentioned; it treats S_ISUID and S_ISGID speciall.
70456         All callers changed.
70457         * lib/modechange.h: Likewise.
70458
70459 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
70460
70461         * MODULES.html.sh: Add mkancestors.
70462         * modules/mkancesdirs: New module.
70463         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
70464         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
70465         The chdir-safer and afs files are now orphans; I'll remove them
70466         unless someone speaks up.
70467         Add lib/dirchownmod.c, lib/dirchownmod.h.
70468         (Depends-on): Remove alloca, chown, save-cwd, dirname.
70469         Add lchown, mkancesdirs.
70470         (Maintainer): Add self.
70471
70472 2006-07-15  Karl Berry  <karl@gnu.org>
70473
70474         * gnulib-tool: help message wording/arrangement.
70475
70476 2006-07-14  Simon Josefsson  <jas@extundo.com>
70477
70478         * doc/gnulib.texi (Libtool and Windows): New section.
70479
70480 2006-07-12  Simon Josefsson  <jas@extundo.com>
70481
70482         * modules/gendocs (License): Fix license, approved by Karl.
70483
70484 2006-07-12  Eric Blake  <ebb9@byu.net>
70485
70486         * MODULES.html.sh: Add gendocs.
70487
70488 2006-07-11  Eric Blake  <ebb9@byu.net>
70489
70490         * modules/fdl: New module, to install doc/fdl.texi.
70491         * MODULES.html.sh: Add new section for documentation modules.
70492         * gnulib-tool: Avoid space-tab.
70493         (--doc-base): New option, to manage files from doc.
70494
70495 2006-07-11  Eric Blake  <ebb9@byu.net>
70496
70497         * m4/absolute-header.m4: Fix comments to match recent change.
70498
70499 2006-07-11  Eric Blake  <ebb9@byu.net>
70500
70501         * gnulib-tool: List --doc-base before --tests-base.
70502
70503 2006-07-11  Derek R. Price  <derek@ximbiot.com>
70504
70505         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
70506
70507 2006-07-11  Bruno Haible  <bruno@clisp.org>
70508
70509         * README: Mention where to put documentation.
70510
70511 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70512
70513         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
70514
70515 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
70516
70517         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
70518         to stdint.m4.
70519
70520 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
70521
70522         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
70523         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
70524         "no/such/file/stdint.h" when there is no such file, so that
70525         the resulting C code can be parsed by dodgy compilers.
70526         Problems reported by Bob Proulx.
70527
70528 2006-07-10  Derek R. Price  <derek@ximbiot.com>
70529
70530         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
70531         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
70532         macros into the GNU _D_EXACT_NAMLEN.
70533         * lib/savedir.c:  Likewise.
70534         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
70535
70536 2006-07-10  Derek R. Price  <derek@ximbiot.com>
70537         and Paul Eggert  <eggert@cs.ucla.edu>
70538
70539         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
70540         * m4/savedir.m4:
70541         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
70542         macros into the GNU _D_EXACT_NAMLEN.
70543
70544 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
70545
70546         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
70547         around the absolute name, to work around a problem with the HP-UX
70548         11.23 native C compiler, reported by Bob Proulx.
70549
70550 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
70551
70552         * doc/maintain.texi, make-stds.texi: Sync from
70553         <http://savannah.gnu.org/projects/gnustandards>.
70554
70555 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
70556
70557         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
70558
70559 2006-07-09  Jim Meyering  <jim@meyering.net>
70560
70561         * m4/glob.m4: Remove a doubled word in a comment.
70562
70563 2006-07-09  Jim Meyering  <jim@meyering.net>
70564
70565         * lib/argp-pv.c: Remove a doubled word in a comment.
70566         * lib/check-version.c (check_version): Likewise.
70567         * lib/javacomp.c (compile_java_class): Likewise.
70568
70569 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
70570
70571         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
70572         for the benefit of people using Autoconf 2.60.  If you want to
70573         support older Autoconf versions you can copy m4/onceonly_2_57.m4
70574         (or m4/onceonly.m4, if pre-2.57) manually.
70575
70576 2006-07-08  Jim Meyering  <jim@meyering.net>
70577
70578         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
70579         comment.
70580         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
70581         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
70582         comment.
70583
70584 2006-07-08  Jim Meyering  <jim@meyering.net>
70585
70586         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
70587
70588 2006-07-07  Simon Josefsson  <jas@extundo.com>
70589
70590         * tests/test-crc.c: Change expected crc value, the test vector
70591         were probably computed using the old broken crc.c?
70592
70593 2006-07-06  Simon Josefsson  <jas@extundo.com>
70594
70595         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
70596         now the canonical place for the M4 file).
70597
70598         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
70599         from the sys_socket dependency now.
70600
70601         * modules/inet_pton (Files): Ditto.
70602
70603         * modules/inet_ntop (Files): Ditto.
70604
70605 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
70606
70607         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
70608         not gl_PREREQ_GETUSERSHELL.
70609
70610 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70611
70612         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
70613         with only one argument, for Autoconf 2.60.
70614         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
70615         expand to nothing, so add a shell command to avoid syntax error.
70616         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
70617
70618 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70619
70620         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
70621
70622 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
70623
70624         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
70625         no longer needed.  Check for isblank decl.
70626         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
70627         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
70628         of existence.
70629
70630 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
70631
70632         * lib/getloadavg.c: Use __VMS, not VMS.
70633         * lib/getopt.c: Likewise.
70634         * lib/getpagesize.h: Likewise.
70635         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
70636         and probably does not work.
70637
70638 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
70639
70640         * lib/.cppi-disable: Add wcwidth.
70641         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
70642         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
70643         (ISGRAPH): Remove.  All uses changed to isgraph.
70644         (FOLD) [!defined _LIBC]: Remove special case.
70645         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
70646         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
70647         HAVE_ISBLANK.
70648         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
70649         case.
70650
70651 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
70652
70653         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
70654         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
70655         brackets.  Other minor changes to suppress some compiler
70656         warnings.
70657
70658 2006-07-06  Derek R. Price  <derek@ximbiot.com>
70659         and Paul Eggert  <eggert@cs.ucla.edu>
70660
70661         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
70662         of invoking obsolescent AC_HEADER_DIRENT macro.
70663         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
70664         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
70665         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
70666         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
70667         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
70668         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
70669         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
70670         * m4/readdir.m4: Remove; no longer needed.
70671
70672 2006-07-06  Derek R. Price  <derek@ximbiot.com>
70673         and Paul Eggert  <eggert@cs.ucla.edu>
70674
70675         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
70676         Don't worry about this obsolete case any more.
70677         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
70678         directories.
70679         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
70680         worry about this obsolete case any more.
70681         * lib/fts.c: Likewise.
70682         * lib/getcwd.c: Likewise.
70683         * lib/glob.h: Likewise.
70684         * lib/savedir.c: Likewise.
70685
70686 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
70687
70688         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
70689         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
70690         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
70691         needed.
70692         All uses removed.
70693         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
70694         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
70695         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
70696         needed.
70697         * m4/getdate.m4 (gl_GETDATE): Likewise.
70698         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
70699         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
70700         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
70701         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
70702         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
70703         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
70704         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
70705         needed.
70706
70707 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
70708
70709         * lib/memcasecmp.c: Include <limits.h>.
70710         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
70711         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
70712         Don't assume isdigit succeeds only on '0' through '9'.
70713
70714 2006-07-05  Eric Blake  <ebb9@byu.net>
70715
70716         * modules/getaddrinfo (Depends-on): Add snprintf.
70717
70718 2006-07-05  Eric Blake  <ebb9@byu.net>
70719
70720         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
70721         to avoid 'header present but could not be compiled' on cygwin.
70722
70723 2006-07-05  Eric Blake  <ebb9@byu.net>
70724
70725         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
70726         missing from netdb.h.
70727         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
70728
70729 2006-07-05  Derek R. Price  <derek@ximbiot.com>
70730
70731         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
70732         no longer needed.
70733         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
70734         * m4/getdate.m4 (gl_GETDATE): Likewise.
70735         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
70736         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
70737         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
70738         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
70739         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
70740
70741 2006-07-05  Derek R. Price  <derek@ximbiot.com>
70742
70743         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
70744         All uses of is_space replaced by isspace.
70745         * lib/exit.h: Don't talk about STDC_HEADERS.
70746         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
70747         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
70748         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
70749         replaced by isprint etc.
70750         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
70751         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
70752         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
70753         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
70754         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
70755         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
70756
70757 2006-07-05  Bruno Haible  <bruno@clisp.org>
70758
70759         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
70760         the function exists, before testing against AIX.
70761         Reported by Martin Lambers <marlam@marlam.de>.
70762
70763 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
70764
70765         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
70766         From Mark D. Baushke.
70767
70768 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
70769
70770         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
70771         to the absolute name, not just one, to bypass Sun C 5.8's
70772         "warning: #include of /usr/include/... may be non-portable".
70773
70774 2006-07-04  Eric Blake  <ebb9@byu.net>
70775
70776         * modules/dirname-tests: New test module.
70777         * tests/test-dirname.c: New file, replacing dirname.c
70778         TEST_DIRNAME section that was recently deleted.
70779
70780 2006-07-04  Bruno Haible  <bruno@clisp.org>
70781
70782         Assume ANSI C header files and <ctype.h> functions.
70783         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
70784         (mbsnwidth): Use isprint, iscntrl instead.
70785
70786 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
70787
70788         Merge from coreutils.
70789         * MODULES.html.sh: Add xstrtold.
70790         * modules/xstrtold: New file.
70791         * modules/cycle-check (Files): Add lib/same-inode.h.
70792         * modules/dirname (Files): Add m4/double-slash-root.m4.
70793         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
70794         * modules/mkdir-p (Files): Add lib/same-inode.h.
70795         * modules/same (Files): Add lib/same-inode.h.
70796
70797 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
70798
70799         * m4/absolute-header.m4: Renamed from full-header-path.m4.
70800         This is to keep the terminology clean; POSIX talks about
70801         "absolute pathnames", not "full pathnames", but the GNU
70802         Coding Standards say to use "path" for something else;
70803         so use "absolute" to keep both sides happy.
70804         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
70805         Set gl_absolute_header, not gl_full_header_path.
70806         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
70807         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
70808         All uses changed.
70809
70810         Merge from coreutils.
70811
70812         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
70813
70814         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
70815         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
70816         want to require the building of c-strtod.o.
70817         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
70818         needs -lm directly.
70819         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
70820
70821         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
70822
70823         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
70824         --as-needed option if available.  Problem reported by Albert Chin in
70825         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
70826         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
70827         cc merely issues a bunch of annoying warnings for --as-needed
70828         (this problem was reported by Bob Proulx).  Also, try linking with
70829         -lm to detect a bug in binutils 2.16 (this problem was reported
70830         by Ralf Wildenhues).
70831
70832         2006-06-18  Jim Meyering  <jim@meyering.net>
70833
70834         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
70835         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
70836         macro.
70837         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
70838         also check for glibc-2.4's abort-inducing bug.
70839
70840         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
70841         Low-probability clean-up should be to use rmdir to get rid of
70842         the just-created directory, not unlink.
70843
70844         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
70845         configure fail, and request a bug report to inform us about it.
70846         Add a comment that, barring reports to the contrary, in 2007 we'll
70847         assume ftruncate is universally available.
70848
70849         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
70850
70851         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
70852
70853         2006-03-12  Jim Meyering  <jim@meyering.net>
70854
70855         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
70856         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
70857         * m4/same.m4 (gl_SAME): Likewise.
70858         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
70859
70860         2006-03-11  Eric Blake  <ebb9@byu.net>
70861
70862         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
70863         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
70864         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
70865         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
70866
70867 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
70868
70869         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
70870         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
70871         reported by Mark D. Baushke, one in
70872         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
70873
70874         Merge from coreutils.
70875
70876         * lib/.cppi-disable: Add stdint_.h.
70877         * lib/.cvsignore: Add stdint.h.
70878
70879         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
70880
70881         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
70882         both double and long double versions.
70883         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
70884         * lib/xstrtold.c: New file.
70885         * lib/xstrtod.h (xstrtold): New decl.
70886
70887         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
70888
70889         * lib/filemode.c (setst): Remove.
70890         (strmode): Rewrite to avoid setst.  This makes the code shorter,
70891         (arguably) clearer, and the generated code is a bit smaller on my
70892         Debian GNU/Linux stable x86 host.
70893
70894         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
70895
70896         * lib/filemode.c: Include "filemode.h" first, to test the interface.
70897         Assume that filemode.h includes sys/types.h and sys/stat.h.
70898         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
70899         (ftypelet): Reorder to put common cases first, for efficiency.
70900         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
70901         to do 'M'.
70902         (strmode): Renamed from mode_string, and now stores 12 bytes instead
70903         of 10, for compatibility with FreeBSD.  All callers changed.
70904         (filemodestring): Now stores 12 bytes instead of 10, and sets file
70905         types that can't be deduced solely from st_mode.  First arg is now a
70906         const pointer.
70907         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
70908         (strmode): Renamed from mode_string.
70909         (filemodestring): New decl.
70910         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
70911         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
70912         needed.
70913         (S_ISPORT, S_ISWHT): New macros, if not already defined.
70914
70915         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
70916
70917         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
70918         fsusage.h now does that.  Include fsusage.h first, to test interface.
70919         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
70920         at most one method (the old code could have generated decls that
70921         didn't conform to C89, not that this was ever exercised).
70922         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
70923
70924         2006-03-19  Jim Meyering  <jim@meyering.net>
70925
70926         Work even in a chroot where d_ino values for entries in "/"
70927         don't match the stat.st_ino values for the same names.
70928         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
70929         number, iterate through all entries again, using lstat instead.
70930         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
70931         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
70932
70933         * lib/getcwd.c (__getcwd): Clarify a comment.
70934         Use memcpy in place of a call to strcpy.
70935
70936         2006-03-12  Jim Meyering  <jim@meyering.net>
70937
70938         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
70939         matches that of the current directory (which we're about to chdir ".."
70940         out of), then save the dev-ino of the parent, instead.
70941
70942         * lib/same-inode.h (SAME_INODE): New file/macro.
70943         * lib/chdir-safer.c (SAME_INODE): Remove definition.
70944         Include "same-inode.h", instead.
70945         * lib/same.c: Likewise.
70946         * lib/cycle-check.h: Include "same-inode.h".
70947         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
70948         * lib/cycle-check.c (SAME_INODE): Remove definition.
70949         * lib/root-dev-ino.h: Include "same-inode.h".
70950
70951         2006-03-11  Eric Blake  <ebb9@byu.net>
70952
70953         * lib/same.c (same_name): s/base_name/last_component/
70954         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
70955         * lib/filenamecat.c (file_name_concat): Likewise.
70956
70957         2006-03-11  Eric Blake  <ebb9@byu.net>,
70958                     Paul Eggert  <eggert@cs.ucla.edu>
70959
70960         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
70961         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
70962         drive prefix.
70963         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
70964         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
70965         (last_component): New method.
70966         * lib/dirname.c (dir_len): Determine when drive letters need a
70967         subsequent slash.  Preserve // when it is special.
70968         (dir_name): Don't append dot when drive letter is absolute.
70969         [TEST_DIRNAME]: Move into a full-blown gnulib test.
70970         * lib/basename.c (base_name): New semantics - malloc the result.
70971         Preserve // when it is special.  Preserve relative files that look
70972         like drive letters.
70973         (base_len): Preserve // when it is special.
70974         (last_component): New method, similar to old base_name semantics.
70975         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
70976         base_name.  Strip redundant slashes from ///.
70977
70978 2006-07-03  Jim Meyering  <jim@meyering.net>
70979
70980         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
70981         macro is used before the first cycle_check call.
70982
70983 2006-07-03  Eric Blake  <ebb9@byu.net>
70984
70985         * modules/dirname (Depends-on): Add xstrndup.
70986
70987 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
70988
70989         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
70990         test cases, so that config.log is a bit easier to follow.
70991
70992 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
70993
70994         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
70995         both are 64 bits, since this seems to be the tradition, and this
70996         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
70997         we ever run into a host that prefers long long to long in this
70998         case, we'll need another configure-time test.  Problem reported by
70999         Jim Meyering.
71000
71001 2006-07-02  Eric Blake  <ebb9@byu.net>
71002
71003         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
71004
71005 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
71006
71007         * modules/inttypes (Depends-on): No longer depends on stdint.
71008         * modules/stdint (Description): Say more about assumptions.
71009         Say that the fast types might differ.  Say macros are used.
71010         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
71011         (Makefile.am): Revise list of substituted symbols to match
71012         new stdint.m4.
71013         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
71014         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
71015         * tests/test-stdint.c (verify_same_types)
71016         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
71017         the code conforms to C99/C89.
71018         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
71019         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
71020
71021 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
71022
71023         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
71024         but fix a bug, by requiring at least 64 bits.
71025         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
71026         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
71027         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
71028         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
71029
71030         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
71031         changes.  Make 2.59 a prerequisite.  Check and substitute for
71032         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
71033         inttypes.h.  Do not use special include files; just use the
71034         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
71035         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
71036         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
71037         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
71038         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
71039         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
71040         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
71041         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
71042         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
71043         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
71044         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
71045         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
71046         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
71047         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
71048         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
71049         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
71050         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
71051         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
71052         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
71053         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
71054         WINT_MAX.  Check for C99 conformance more strictly, by detecting
71055         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
71056         not check for things that C99 does not require, e.g., int8_t.  If
71057         a test isn't needed unless <stdint.h> isn't working, and is
71058         unlikely to be needed for any other reason, then don't do it
71059         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
71060         size_t, since we assume C89 freestanding at least.  Do not check
71061         for sig_atomic_t, wchar_t, or wint_t, since the code now does
71062         the right thing even if the types are not defined.  Instead use:
71063         (gl_STDINT_TYPE_PROPERTIES): New macro.
71064         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
71065         testing whether <sys/types.h> clashes, as Autoconf does this for
71066         us now.  All uses removed.
71067         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
71068         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
71069         (gl_CHECK_TYPE_SAME):
71070         Remove; no longer needed.
71071         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
71072         exists, since we'll return 0 anyway in that case.
71073         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
71074
71075 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
71076
71077         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
71078         possible collision with system files.
71079         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
71080         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
71081         WCHAR_MIN and WCHAR_MAX in this case.
71082         (<stddef.h>): Do not include; no longer needed.
71083         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
71084         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
71085         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
71086         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
71087         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
71088         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
71089         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
71090         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
71091         !defined(__c99))]: Include in this case too, since it's harmless
71092         now.
71093         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
71094         dangerous to do so.
71095         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
71096         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
71097         (_STDINT_MIN, _STDINT_MAX): New macros.
71098         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
71099         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
71100         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
71101         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
71102         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
71103         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
71104         macros, not typedefs; this simplifies things quite a bit.
71105         Use long int for all types narrower than int64_t.
71106         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
71107         Define in terms of long long int or int64_t or long int,
71108         not int64_t or int32_t.  This saves some compile-time testing.
71109         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
71110         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
71111         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
71112         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
71113         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
71114         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
71115         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
71116         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
71117         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
71118         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
71119         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
71120         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
71121         undef any previous version and define our own version, for
71122         simplicity and consistency with the new macros for types.
71123         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
71124         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
71125         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
71126         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
71127         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
71128         @WINT_T_SUFFIX@ to keep things simple here.
71129         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
71130         Simplify by assuming typical 8/16/32/64 host, since we're
71131         already doing that elsewhere anyway.
71132         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
71133         and assume long long int is 64 bits if available.  This
71134         speeds up 'configure'.
71135
71136 2006-07-01  Eric Blake  <ebb9@byu.net>
71137
71138         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
71139         Reported by Andreas Buening.
71140
71141 2006-07-01  Eric Blake  <ebb9@byu.net>
71142
71143         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
71144
71145 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
71146
71147         * lib/getaddrinfo.c: fixed typo
71148
71149 2006-06-29  Jim Meyering  <jim@meyering.net>
71150
71151         * modules/strftime (Maintainer): Add my name, since with the
71152         FPRINTFTIME changes strftime.c has forked from glibc.
71153
71154 2006-06-29  Eric Blake  <ebb9@byu.net>
71155
71156         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
71157
71158 2006-06-29  Eric Blake  <ebb9@byu.net>
71159
71160         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
71161
71162 2006-06-29  Eric Blake  <ebb9@byu.net>
71163
71164         * lib/stat_.h: New file.
71165
71166 2006-06-29  Eric Blake  <ebb9@byu.net>
71167
71168         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
71169         unused static function.
71170
71171 2006-06-29  Eric Blake  <ebb9@byu.net>
71172
71173         * doc/functions.texi (Function Portability): Document missing lstat
71174         on mingw.
71175
71176 2006-06-29  Eric Blake  <ebb9@byu.net>
71177
71178         * MODULES.html.sh: Add sys_stat.
71179         * modules/sys_stat: New module.
71180         * modules/mkstemp (Depends-on): Add sys_stat.
71181
71182 2006-06-29  Derek R. Price  <derek@ximbiot.com>
71183
71184         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
71185
71186 2006-06-29  Derek R. Price  <derek@ximbiot.com>
71187
71188         * m4/c-bs-a.m4: Removed.
71189
71190 2006-06-29  Derek R. Price  <derek@ximbiot.com>
71191
71192         * lib/strftime.c: Assume strftime() exists.
71193
71194 2006-06-29  Derek Price  <derek@ximbiot.com>
71195
71196         * modules/c-bs-a: Removed - \a is C89.
71197         * MODULES.html.sh: Remove c-bs-a.
71198
71199 2006-06-29  Bruno Haible  <bruno@clisp.org>
71200
71201         * modules/wcwidth (License): Change to LGPL.
71202
71203 2006-06-28  Simon Josefsson  <jas@extundo.com>
71204
71205         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
71206         on _WIN32.
71207
71208         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
71209         getnameinfo.
71210
71211 2006-06-28  Simon Josefsson  <jas@extundo.com>
71212
71213         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
71214
71215 2006-06-28  Simon Josefsson  <jas@extundo.com>
71216
71217         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
71218         functions there.  It will succeed on Windows XP, but on Windows
71219         2000 and (presumably) earlier, it will fail, and use the internal
71220         re-implementation.
71221         (use_win32_p): New function.
71222         (getaddrinfo): Use strtoul on servname, to support numeric ports.
71223         Support AI_NUMERICSERV to disable getservbyname.
71224         (getnameinfo): New function, only supports
71225         NI_NUMERICHOST|NI_NUMERICSERV for now.
71226
71227         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
71228         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
71229         getnameinfo.
71230
71231 2006-06-28  Eric Blake  <ebb9@byu.net>
71232
71233         * modules/wcwidth: New file.
71234         * modules/mbchar (Depends-on): Add wcwidth.
71235         * modules/mbswidth (Depends-on): Add wcwidth.
71236         * MODULES.html.sh: Add wcwidth.
71237
71238 2006-06-28  Eric Blake  <ebb9@byu.net>
71239
71240         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
71241         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
71242
71243 2006-06-28  Eric Blake  <ebb9@byu.net>
71244
71245         * lib/xvasprintf.h: Fix comments.
71246
71247 2006-06-28  Eric Blake  <ebb9@byu.net>
71248
71249         * lib/mbchar.h (wcwidth): Include wcwidth.h.
71250         * lib/mbswidth.c (wcwidth): Move from here...
71251         * lib/wcwidth.h: ...to this new file.
71252
71253 2006-06-28  Derek R. Price  <derek@ximbiot.com>
71254
71255         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
71256
71257         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
71258         it's obsolete.
71259         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
71260
71261 2006-06-28  Derek R. Price  <derek@ximbiot.com>
71262
71263         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
71264         Autoconf 2.60 says this stuff was obsolete.
71265
71266 2006-06-28  Bruno Haible  <bruno@clisp.org>
71267
71268         * modules/wcwidth (Files): Add m4/wchar_t.m4.
71269
71270 2006-06-28  Bruno Haible  <bruno@clisp.org>
71271
71272         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
71273         gt_TYPE_WCHAR_T.
71274
71275 2006-06-28  Bruno Haible  <bruno@clisp.org>
71276
71277         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
71278         declaration for wcwidth.
71279         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
71280
71281 2006-06-28  Bruno Haible  <bruno@clisp.org>
71282
71283         * lib/mkdtemp.c [MINGW]: Include <io.h>.
71284         (mkdir): Define using _mkdir.
71285
71286 2006-06-28  Bruno Haible  <bruno@clisp.org>
71287
71288         * lib/getaddrinfo.h: Fix POSIX URL.
71289         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
71290         _WIN32.
71291         (use_win32_p): Make static.
71292         (getaddrinfo): Reject service name if it is empty or does not consist
71293         solely of decimal digits, or if its value is > 65535.
71294         (getnameinfo): Remove useless casts.
71295
71296 2006-06-27  Simon Josefsson  <jas@extundo.com>
71297
71298         * modules/sys_select: New file, suggested by Bruno Haible, Paul
71299         Eggert and Martin Lambers.
71300
71301 2006-06-27  Simon Josefsson  <jas@extundo.com>
71302
71303         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
71304         Eggert and Martin Lambers.
71305
71306 2006-06-27  Bruno Haible  <bruno@clisp.org>
71307
71308         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
71309         result to 0, not to empty.
71310         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
71311
71312 2006-06-27  Bruno Haible  <bruno@clisp.org>
71313
71314         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
71315
71316 2006-06-26  Simon Josefsson  <jas@extundo.com>
71317
71318         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
71319         present.
71320
71321 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
71322
71323         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
71324         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
71325         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
71326
71327 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
71328
71329         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
71330
71331 2006-06-26  Bruno Haible  <bruno@clisp.org>
71332
71333         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
71334
71335 2006-06-26  Bruno Haible  <bruno@clisp.org>
71336
71337         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
71338
71339 2006-06-26  Bruno Haible  <bruno@clisp.org>
71340
71341         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
71342         SGI C compiler in pre-C99 mode.
71343         Suggested by Mark D. Baushke and Larry Jones.
71344
71345 2006-06-26  Bruno Haible  <bruno@clisp.org>
71346
71347         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
71348         WCHAR_MAX.
71349         Reported by Mark D. Baushke and Larry Jones.
71350
71351 2006-06-26  Bruno Haible  <bruno@clisp.org>
71352
71353         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
71354         in pre-C99 mode.
71355         Suggested by Mark D. Baushke and Larry Jones.
71356
71357 2006-06-23  Simon Josefsson  <jas@extundo.com>
71358             Bruno Haible  <bruno@clisp.org>
71359
71360         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
71361         Emit mostlyclean-local rule.
71362         (func_emit_tests_Makefile_am): Likewise.
71363         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
71364
71365 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
71366
71367         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
71368
71369 2006-06-23  Bruno Haible  <bruno@clisp.org>
71370
71371         * tests/test-stdint.c: Update to match ISO C 99 Technical
71372         Corrigendum 1.
71373
71374 2006-06-23  Bruno Haible  <bruno@clisp.org>
71375
71376         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
71377
71378 2006-06-23  Bruno Haible  <bruno@clisp.org>
71379
71380         * lib/stdint_.h: Treat IRIX like OpenBSD.
71381
71382 2006-06-23  Bruno Haible  <bruno@clisp.org>
71383
71384         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
71385         ISO C 99 Technical Corrigendum 1.
71386
71387 2006-06-22  Simon Josefsson  <jas@extundo.com>
71388
71389         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
71390         MinGW.
71391
71392 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
71393
71394         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
71395         needed.  Some compiler complained about some of them.  Problem reported
71396         by Larry Jones in
71397         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
71398
71399 2006-06-21  Simon Josefsson  <jas@extundo.com>
71400
71401         * tests/test-getaddrinfo.c: New file.
71402
71403         * modules/getaddrinfo-tests: New file.
71404
71405         * MODULES.html.sh: Add inet_pton.
71406
71407         * modules/inet_pton: New file.
71408
71409 2006-06-21  Simon Josefsson  <jas@extundo.com>
71410
71411         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
71412         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
71413         of using the (limited) gnulib implementation on Windows XP.
71414
71415         * m4/inet_pton.m4: New file.
71416
71417 2006-06-21  Simon Josefsson  <jas@extundo.com>
71418
71419         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
71420         variable.
71421
71422         * lib/socket_.h: Don't define WINVER.
71423
71424         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
71425         slightly modified to work in gnulib.
71426
71427 2006-06-21  Simon Josefsson  <jas@extundo.com>
71428
71429         * doc/gnulib.texi (Windows sockets): Add.
71430
71431 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
71432
71433         * lib/read-file.c (fread_file): Start with buffer allocation of
71434         0 bytes rather than 1 byte; this simplifies the code.
71435         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
71436         code to free buffer and save/restore errno.
71437         (internal_read_file): Remove unused local.
71438
71439 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
71440
71441         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
71442         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
71443         Problem reported by Denis Excoffier in
71444         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
71445
71446 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71447
71448         * modules/sys_socket, modules/socklen: Include sys/types since
71449         FreeBSD 4.x's sys/socket.h needs it.
71450
71451 2006-06-19  Simon Josefsson  <jas@extundo.com>
71452
71453         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
71454
71455 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
71456
71457         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
71458
71459 2006-06-19  Bruno Haible  <bruno@clisp.org>
71460
71461         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
71462         and FULL_PATH_INTTYPES_H in angle brackets.
71463         Reported by Mark D. Baushke <mdb@gnu.org>.
71464
71465 2006-06-17  Eric Blake  <ebb9@byu.net>
71466
71467         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
71468         errno.
71469
71470 2006-06-17  Bruno Haible  <bruno@clisp.org>
71471
71472         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
71473         <sys/inttypes.h>.
71474
71475 2006-06-17  Bruno Haible  <bruno@clisp.org>
71476
71477         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
71478         whether errno is declared. Assume <errno.h> declares errno.
71479
71480 2006-06-17  Bruno Haible  <bruno@clisp.org>
71481
71482         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
71483
71484 2006-06-17  Bruno Haible  <bruno@clisp.org>
71485
71486         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
71487         problem on Solaris 2.5.1.
71488
71489 2006-06-16  Eric Blake  <ebb9@byu.net>
71490
71491         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
71492         * lib/unicodeio.c [!defined errno]: Likewise.
71493         * lib/strtol.c [!defined errno]: Likewise.
71494         * lib/strtod.c [!defined errno]: Likewise.
71495
71496 2006-06-15  Eric Blake  <ebb9@byu.net>
71497
71498         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
71499
71500 2006-06-15  Eric Blake  <ebb9@byu.net>
71501
71502         * config/srclist.txt (ssize_t.m4): Lose sync.
71503
71504 2006-06-15  Bruno Haible  <bruno@clisp.org>
71505
71506         * modules/stdint (Files): Include m4/full-header-path.m4,
71507         m4/size_max.m4, m4/wchar_t.m4.
71508         (Makefile.am): Many more substitutions.
71509         * modules/stdint-tests: New file.
71510         * tests/test-stdint.c: New file.
71511
71512 2006-06-15  Bruno Haible  <bruno@clisp.org>
71513
71514         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
71515         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
71516         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
71517         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
71518         gl_CHECK_TYPE_SAME): New macros.
71519
71520 2006-06-15  Bruno Haible  <bruno@clisp.org>
71521
71522         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
71523
71524 2006-06-15  Bruno Haible  <bruno@clisp.org>
71525
71526         * lib/stdint_.h: Rewritten to be fully auto-configured.
71527         Fixes bug on HP-UX/IA64.
71528
71529 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
71530
71531         * lib/getdate.y (__attribute__): Don't define if already defined.
71532         Problem reported by Larry Jones.
71533         * lib/utimens.c (__attribute__): Likewise.
71534
71535 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
71536
71537         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
71538         reported by Andreas Schwab.
71539
71540 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71541             Bruno Haible  <bruno@clisp.org>
71542
71543         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
71544         check for the declaration of strnlen and a run test that exposes the
71545         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
71546         rpl_strndup.
71547
71548 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71549             Bruno Haible  <bruno@clisp.org>
71550
71551         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
71552
71553 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71554
71555         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
71556         compile test, for Tru64 4.0D.
71557
71558 2006-05-28  Karl Berry  <karl@gnu.org>
71559
71560         * config/srclist.txt (printf-args.c): lose sync.
71561
71562 2006-05-26  Martin Lambers  <marlam@marlam.de>
71563
71564         * lib/getpass.c: Updates the test for the native W32 API, and adds
71565         missing includes, thus fixing compilation warnings.
71566
71567 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
71568
71569         * lib/exclude.c (exclude_fnmatch): New function.
71570         (excluded_file_name): Call exclude_fnmatch.
71571         * lib/exclude.h (excluded_file_name): New prototype
71572
71573 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
71574
71575         * lib/tempname.c (small_open, large_open): New macros.
71576         (__open, __open64) [!_LIBC]: Remove.
71577         (__gen_tempname): Use small_open and large_open instead of __open
71578         and __open64.  This fixes a portability bug on HP-UX 11.11i
71579         reported by Simon Wing-Tang in
71580         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
71581
71582 2006-05-24  Bruno Haible  <bruno@clisp.org>
71583
71584         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
71585         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
71586         Reported by Thorsten Maerz <torte@netztorte.de> via
71587         Aaron Stone <aaron@serendipity.cx>.
71588
71589 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
71590
71591         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
71592         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
71593         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
71594         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
71595         not really conditional on the cache.
71596         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
71597
71598 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
71599
71600         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
71601         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
71602         (my_usleep): Don't mishandle maximum value.
71603
71604 2006-05-19  Jim Meyering  <jim@meyering.net>
71605
71606         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
71607
71608 2006-05-17  Bruno Haible  <bruno@clisp.org>
71609
71610         Cygwin portability.
71611         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
71612
71613 2006-05-17  Bruno Haible  <bruno@clisp.org>
71614
71615         * lib/stdint_.h: Fix recognition of Cygwin.
71616
71617 2006-05-15  Bruno Haible  <bruno@clisp.org>
71618
71619         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
71620         on libtool patch by Ralf Wildenhues.
71621
71622 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
71623
71624         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
71625         test for C99 conformance; (bool) 0.5 is an integer constant
71626         expression, but (bool) -0.5 is not.  Problem reported by Fedor
71627         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
71628
71629 2006-05-11  Simon Josefsson  <jas@extundo.com>
71630
71631         * m4/xvasprintf.m4: Fix obvious typo.
71632
71633 2006-05-11  Jim Meyering  <jim@meyering.net>
71634
71635         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
71636         James Lemley.
71637
71638 2006-05-10  Simon Josefsson  <jas@extundo.com>
71639
71640         * lib/md4.c: Typo fix, update copyright years.
71641         (K1, K2): Don't use L because it turn computations into 64-bit on
71642         64-bit platforms.
71643
71644 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
71645
71646         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
71647         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
71648         unwanted sign propagation, e.g., on hosts with 64-bit int.
71649         There still are some problems with reeelly weird theoretical hosts
71650         (e.g., 33-bit int) but it's not worth worrying about now.
71651         * lib/sha1.c (rol): Likewise.
71652         (K1, K2, K3, K4): Remove unnecessary L suffix.
71653
71654 2006-05-10  Bruno Haible  <bruno@clisp.org>
71655
71656         * lib/des.c: Cast to avoid warnings.
71657
71658 2006-05-09  Bruno Haible  <bruno@clisp.org>
71659
71660         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
71661         (Depends-on): Depend also on xsize, stdarg.
71662         (configure.ac): Add gl_XVASPRINTF.
71663
71664 2006-05-09  Bruno Haible  <bruno@clisp.org>
71665
71666         * m4/xvasprintf.m4: New file.
71667
71668 2006-05-09  Bruno Haible  <bruno@clisp.org>
71669
71670         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
71671         (EOVERFLOW): Define fallback value.
71672         (xstrcat): New function.
71673         (xvasprintf): Recognize the special case of a string concatenation.
71674
71675 2006-05-08  Eric Blake  <ebb9@byu.net>
71676
71677         * gnulib-tool (func_version): Base copyright year on CVS date.
71678         (func_emit_copyright_notice): New function.
71679         (func_emit_lib_Makefile_am): Use it.
71680         (func_emit_tests_Makefile_am): Likewise.
71681         (func_import): Likewise.
71682
71683 2006-05-08  Bruno Haible  <bruno@clisp.org>
71684
71685         * modules/stdarg: New file.
71686         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
71687
71688 2006-05-08  Bruno Haible  <bruno@clisp.org>
71689
71690         * m4/stdarg.m4: New file, from GNU gettext.
71691
71692 2006-05-08  Bruno Haible  <bruno@clisp.org>
71693
71694         * config/srclist.txt (build-aux/config.rpath): different from latest
71695         release.
71696
71697 2006-05-08  Bruno Haible  <bruno@clisp.org>
71698
71699         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
71700
71701 2006-05-05  Jim Meyering  <jim@meyering.net>
71702
71703         * m4/warning.m4: New file, derived from bison's file by the same name.
71704
71705 2006-05-03  Bruno Haible  <bruno@clisp.org>
71706
71707         * lib/stdint_.h: Shorter URL.
71708         * lib/inttypes.h: Likewise.
71709
71710 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
71711
71712         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
71713
71714 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
71715
71716         * lib/verify.h: Document the internals better.  Most of this change
71717         was written by Bruno Haible.
71718
71719 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
71720
71721         * doc/verify.texi: New file, partly based on a proposal by
71722         Bruno Haible.
71723
71724 2006-05-02  Bruno Haible  <bruno@clisp.org>
71725
71726         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
71727         test from here...
71728         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
71729
71730 2006-04-29  Bruno Haible  <bruno@clisp.org>
71731
71732         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
71733         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
71734
71735 2006-04-29  Bruno Haible  <bruno@clisp.org>
71736
71737         * gnulib-tool: Make --update option actually work.
71738
71739 2006-04-29  Bruno Haible  <bruno@clisp.org>
71740
71741         * doc/gcd.texi: New file.
71742         * doc/gnulib.texi: Include it.
71743
71744 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
71745
71746         * lib/getdate.y (get_date): When adding relative date, start with the
71747         initial time, not with the result of the first mktime call.
71748
71749 2006-04-25  Bruno Haible  <bruno@clisp.org>
71750
71751         * gnulib-tool (func_import): Output the include directives in three
71752         blocks, sorted separately.
71753         Reported by Ben Pfaff <blp@cs.stanford.edu>.
71754
71755 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
71756
71757         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
71758         to define main with arguments, for C++.  Reported by Eric Blake.
71759         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
71760         Prefer 'int main ()' to 'int main (void)', for C++.
71761         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
71762         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
71763         for 'main', for C99 and C++.
71764
71765 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
71766
71767         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
71768         Don't assume that exit status -1 is valid.
71769         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
71770         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
71771         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
71772         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
71773         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
71774         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
71775         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
71776         functions can be used without declaring them, or that you can
71777         exit with status -1.
71778         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
71779
71780 2006-04-24  Karl Berry  <karl@gnu.org>
71781
71782         * config/srclist.txt (longdouble.m4): sync lost.
71783
71784 2006-04-24  Eric Blake  <ebb9@byu.net>
71785
71786         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
71787
71788 2006-04-24  Bruno Haible  <bruno@clisp.org>
71789
71790         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
71791         poll() implementation in AIX.
71792         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
71793
71794 2006-04-24  Bruno Haible  <bruno@clisp.org>
71795
71796         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
71797         assigned exactly once.
71798
71799 2006-04-23  Claudio Fontana  <claudio@gnu.org>
71800             Bruno Haible  <bruno@clisp.org>
71801
71802         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
71803         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
71804         for AM_CPPFLAGS.
71805
71806 2006-04-23  Bruno Haible  <bruno@clisp.org>
71807
71808         * modules/copy-file: Depend on unistd.
71809         * modules/execute: Likewise.
71810         * modules/fatal-signal: Likewise.
71811         * modules/findprog: Likewise.
71812         * modules/mkdtemp : Likewise.
71813         * modules/pipe: Likewise.
71814         * modules/wait-process: Likewise.
71815
71816 2006-04-23  Bruno Haible  <bruno@clisp.org>
71817
71818         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
71819         condition was already detected.
71820         Reported by Ben Pfaff <blp@cs.stanford.edu>.
71821
71822 2006-04-23  Bruno Haible  <bruno@clisp.org>
71823
71824         * lib/copy-file.c: Include <unistd.h> unconditionally.
71825         * lib/execute.c: Likewise.
71826         * lib/fatal-signal.c: Likewise.
71827         * lib/findprog.c: Likewise.
71828         * lib/mkdtemp.c: Likewise.
71829         * lib/pipe.h: Likewise.
71830         * lib/pipe.c: Likewise.
71831         * lib/wait-process.h: Likewise.
71832
71833 2006-04-23  Bruno Haible  <bruno@clisp.org>
71834
71835         * gnulib-tool (func_usage): Fix --import description. Document
71836         --update.
71837         (func_import): Create temporary file in a temporary directory, if
71838         --dry-run is specified. Silence errors from 'grep' when there are no
71839         m4 files in $m4dir.
71840         (func_create_testdir): Silence errors from 'grep' when there are no
71841         m4 files in $m4dir.
71842         Reported by Karl Berry <karl@freefriends.org>.
71843
71844 2006-04-20  Bruno Haible  <bruno@clisp.org>
71845
71846         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
71847         one argument, so that the code will be portable to Autoconf 2.60.
71848         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
71849         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
71850         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
71851
71852 2006-04-19  Derek Price  <derek@ximbiot.com>
71853             Eric Blake  <ebb9@byu.net>
71854
71855         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
71856         rather than "/full/path.h".  Update comment to match.  Shorten &
71857         generalize m4_translit call via AS_TR_CPP.
71858
71859 2006-04-19  Derek Price  <derek@ximbiot.com>
71860             Eric Blake  <ebb9@byu.net>
71861
71862         * lib/inttypes.h: Correct grammar in comment.
71863
71864 2006-04-18  Derek Price  <derek@ximbiot.com>
71865             Paul Eggert  <eggert@cs.ucla.edu>
71866
71867         * modules/inttypes: New file.
71868         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
71869
71870 2006-04-18  Derek Price  <derek@ximbiot.com>
71871             Paul Eggert  <eggert@cs.ucla.edu>
71872
71873         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
71874         New files.
71875
71876 2006-04-18  Derek Price  <derek@ximbiot.com>
71877             Paul Eggert  <eggert@cs.ucla.edu>
71878
71879         * lib/inttypes.h: New file.
71880         * lib/strtoimax.c: Assume <inttypes.h>.
71881
71882 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
71883
71884         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
71885         isn't mounted.  Problem reported by Kir Kolyshkin.
71886
71887 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
71888
71889         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
71890         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
71891         Derek R. Price.
71892         * lib/regex.h (RE_DUP_MAX): Update comment to match current
71893         implementation.
71894
71895 2006-04-12  Eric Blake  <ebb9@byu.net>
71896
71897         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
71898         is now done automatically by the corresponding Autoconf macro.
71899
71900 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
71901
71902         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
71903         time_r.h.
71904
71905 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
71906
71907         Merge regex changes from libc, removing some of our
71908         POSIX-conformance changes that were rejected and redoing them in a
71909         less-intrusive way.
71910
71911         * lib/regcomp.c (re_compile_internal, init_dfa):
71912         Length arg is now size_t, not Idx.  All uses changed.
71913         (peek_token): Forward decl now says internal_function.
71914         (__re_error_msgid, __re_error_msgid_idx):
71915         Now static rather than extern with attribute_hidden.
71916         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
71917         For some reason libc prefers K&R style defns for external functions.
71918         (regerror) [!defined _LIBC]: Likewise.
71919         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
71920         (seek_collating_symbol_entry, lookup_collation_sequence_value):
71921         (build_range_exp, build_collating_symbol):
71922         Use K&R-style defn.
71923         (re_compile_fastmap): Use '\0' to memset, not 0.
71924         (utf8_sb_map): Make the calculations more obvious.
71925         (init_dfa, parse_bracket_exp, build_charclass_op):
71926         Call calloc and cast result, as glibc does.
71927         (init_word_char, fetch_token, peek_token, peek_token_bracket):
71928         (build_range_exp, build_collating_symbol):
71929         Now internal functions.
71930
71931         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
71932
71933         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
71934         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
71935         Don't depend on VMS; depend on __VMS instead, for POSIX
71936         namespace cleanness.
71937         (regoff_t): Define to ssize_t, not long int.
71938
71939         Remove the REG_ macros named below.  Instead, make the old names
71940         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
71941         __USE_GNU_REGEX.
71942         (REG_BACKSLASH_ESCAPE_IN_LISTS):
71943         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
71944         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
71945         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
71946         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
71947         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
71948         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
71949         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
71950         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
71951         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
71952         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
71953         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
71954         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
71955         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
71956         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
71957         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
71958         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
71959         (REG_NREGS):
71960         Remove.  All uses replaced by the old RE_* names.
71961         (RE_BACKSLASH_ESCAPE_IN_LISTS):
71962         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
71963         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
71964         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
71965         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
71966         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
71967         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
71968         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
71969         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
71970         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
71971         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
71972         Don't bother having these macros be independent of each others'
71973         values, since they no longer exist in the POSIX name space.
71974
71975         Rename the following member names back to their old names,
71976         unless !__USE_GNU_REGEX.  All uses changed back.
71977         (buffer): Renamed from re_buffer.
71978         (allocated): Renamed from re_allocated.
71979         (used): Renamed from re_used.
71980         (syntax): Renamed from re_syntax.
71981         (fastmap): Renamed from re_fastmap.
71982         (translate): Renamed from re_translate.
71983         (can_be_null): Renamed from re_can_be_null.
71984         (regs_allocated): Renamed from re_regs_allocated.
71985         (fastmap_accurate): Renamed from re_fastmap_accurate.
71986         (no_sub): Renamed from re_no_sub.
71987         (not_bol): Renamed from re_not_bol.
71988         (not_eol): Renamed from re_not_eol.
71989         (newline_anchor): Renamed from re_newline_anchor.
71990         (num_regs): Renamed from rm_num_regs.
71991         (start): Renamed from rm_start.
71992         (end): Renamed from rm_end.
71993
71994         (free_state): Move up a bit.
71995
71996         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
71997         #define to be empty.
71998         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
71999         when that is what is intended.
72000         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
72001         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
72002         (MAX): New macro.
72003         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
72004         All uses changed back to re_malloc, etc.  It's now the caller's
72005         responsibility to check for overflow; all callers changed.
72006         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
72007         (re_x2nrealloc): Remove.
72008         (free_state): Remove decl.
72009
72010         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
72011         (re_set_registers, re_exec):
72012         Use K&R-style defn.
72013
72014         2006-01-31  Roland McGrath  <roland@redhat.com>
72015
72016         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
72017         Reported by Mike Frysinger <vapier@gentoo.org>.
72018
72019         2006-01-15  Andreas Jaeger  <aj@suse.de>
72020
72021         [BZ #1950]
72022         * lib/regex_internal.c (re_string_reconstruct): Adjust for
72023         build_wcs_upper_buffer change.
72024         (build_wcs_upper_buffer): Change return type.
72025
72026         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
72027
72028         * lib/regex_internal.h: Include <stdint.h> if available.
72029
72030         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
72031
72032         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
72033
72034         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
72035
72036         * lib/regcomp.c: Adjust for changed secondary hash function.
72037
72038         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
72039
72040         * lib/regex.h: Pretty printing.
72041         Clean up namespace a bit.
72042
72043         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
72044
72045         * lib/regexec.c (update_cur_sifted_state, check_arrival,
72046         check_arrival_add_next_nodes): Avoid using uninitialized variable.
72047
72048         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
72049                     Ulrich Drepper  <drepper@redhat.com>
72050
72051         [BZ #1302]
72052         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
72053         changed.
72054         (bitset_word_t): Renamed from bitset_word.  All uses changed.
72055
72056         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
72057
72058         [BZ #281]
72059         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
72060         * lib/regcomp.c: Remove unnecessary uses of
72061         unsigned RE_TRANSLATE_TYPE.
72062         * lib/regex_internal.h: Likewise.
72063         * lib/regex_internal.c: Likewise.
72064         * lib/regexec.c: Likewise.
72065         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
72066
72067         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
72068
72069         * lib/regexec.c (find_recover_state): Remove unnecessary
72070         initialization.
72071         (transit_state_bkref): Make DFA a const pointer.
72072         (get_subexp): Likewise.
72073         (check_arrival): Likewise.
72074         (update_cur_sifted_state): Likewise.
72075         (re_search_internal): Likewise.
72076         (prune_impossible_nodes): Likewise.
72077         (acquire_init_state_context): Likewise.
72078         (proceed_next_node): Likewise.
72079         (set_regs): Likewise.
72080         (free_fail_stack_return): Likewise.
72081         (check_arrival_expand_ecl): Mark DFA parameter as const.
72082         (check_arrival_expand_ecl_sub): Likewise.
72083         (check_subexp_limits): Likewise.
72084         (sub_epsilon_src_nodes):  Likewise.
72085         (add_epsilon_src_nodes):  Likewise.
72086         (merge_state_array): Likewise.
72087         (update_regs): Likewise.
72088         (build_trtable): Likewise.
72089         (sift_states_backward): Mark MCTX parameter as const.
72090         (build_sifted_states): Likewise.
72091         (update_cur_sifted_state): Likewise.
72092         (sift_states_mkref): Likewise.
72093         (check_arrival_expand_ecl): Mark eclosure as const.
72094         (check_dst_limits_calc_pos_1): Likewise.
72095         * lib/regex_internal.h (re_match_context_t): Make dfa a const
72096         pointer.
72097
72098         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
72099
72100         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
72101         (transit_state_sb): Likewise.
72102         (transit_state_mb): Likewise.
72103         (sift_states_iter_mb): Likewise.
72104         (check_arrival_add_next_nodes): Likewise.
72105         (check_node_accept_bytes): Change first parameter to pointer-to-const.
72106         [_LIBC] (re_search_2_stub): Use mempcpy.
72107
72108         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
72109         mbrtowc for very simple UTF-8 case.
72110
72111         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
72112         a pointer-to-const.
72113         (re_acquire_state_context): Likewise.
72114         * lib/regex_internal.h: Adjust prototypes.
72115
72116         * lib/regex.c: Prevent using C++ compilers.
72117
72118         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
72119         (re_acquire_state_context): Likewise.
72120
72121 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
72122
72123         * modules/regex (Depends-on): Add ssize_t.
72124
72125 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
72126
72127         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
72128         translation table.
72129
72130 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
72131
72132         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
72133
72134 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
72135             Bruno Haible  <bruno@clisp.org>
72136
72137         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
72138         <sys/types.h> and <inttypes.h>.
72139
72140 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72141
72142         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
72143         `__error_t_defined', so argp.h will not typedef the former.
72144
72145 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
72146
72147         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
72148         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
72149         glibc names.  Even if glibc is changed to conform to POSIX, the
72150         traditional names will be available anyway, since regex depends on
72151         the extensions module.  Also, fix a longstanding typo in the
72152         implementation of Spencer ERE test #75 from grep 2.3.  Problems
72153         reported by Emanuele Giaquinta.  Also, change sense of cached
72154         variable, so that the message makes sense.
72155
72156 2006-03-24  Simon Josefsson  <jas@extundo.com>
72157
72158         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
72159         including some doc fixes.
72160         (base64_encode_alloc): Fix +1 bug on allocation failures.
72161
72162 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72163
72164         * lib/base64.c (base64_encode): Do not read past end of array with
72165         unsanitized input on systems with CHAR_BIT > 8.
72166
72167 2006-03-24  Eric Blake  <ebb9@byu.net>
72168
72169         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
72170
72171 2006-03-22  Karl Berry  <karl@gnu.org>
72172
72173         * config/srclist.txt (*setenv.[ch]): get from coreutils.
72174         * config/srclistvars.sh (COREUTILS): new var.
72175
72176 2006-03-17  Jim Meyering  <jim@meyering.net>
72177
72178         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
72179         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
72180
72181 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
72182
72183         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
72184         no longer needs it.  Instead, check that regoff_t is as least
72185         as wide as ptrdiff_t.
72186
72187         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
72188         so that our regex.h stays compatible with the installed regex.
72189         This is helpful for installers who configure --without-included-regex.
72190         Problem reported by Emanuele Giaquinta.
72191
72192 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
72193
72194         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
72195         Typedef to long int, not to off_, as POSIX will likely change
72196         in that direction.
72197
72198 2006-03-15  Eric Blake  <ebb9@byu.net>
72199
72200         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
72201
72202 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
72203
72204         * lib/argp-help.c (validate_uparams): Fix typo
72205         * lib/argp-parse.c (argp_default_options): Consistently begin help
72206         messages with a lowercase letter.
72207
72208 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
72209
72210         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
72211         overrun buffers and shouldn't be used (much as gets shouldn't be
72212         used).
72213         * lib/time_r.c (asctime_r, ctime_r): Likewise.
72214
72215 2006-03-08  Simon Josefsson  <jas@extundo.com>
72216
72217         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
72218         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72219
72220 2006-03-08  Simon Josefsson  <jas@extundo.com>
72221
72222         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
72223         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72224
72225 2006-03-08  Simon Josefsson  <jas@extundo.com>
72226
72227         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
72228         signal that configure disabled the device.
72229
72230 2006-03-08  Simon Josefsson  <jas@extundo.com>
72231
72232         * build-aux/maint.mk: Fix refresh-po, to handle no translated
72233         languages.
72234
72235 2006-03-07  Simon Josefsson  <jas@extundo.com>
72236
72237         * modules/getopt (Depends-on): Add unistd.
72238
72239         * modules/unistd: New file.
72240
72241 2006-03-07  Simon Josefsson  <jas@extundo.com>
72242
72243         * modules/gc-random: New file.
72244
72245 2006-03-07  Simon Josefsson  <jas@extundo.com>
72246
72247         * m4/unistd_h.m4: New file.
72248
72249 2006-03-07  Simon Josefsson  <jas@extundo.com>
72250
72251         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
72252         test to be side-effect free by storing the result in the cache
72253         variable gl_cv_lib_readline, and moving the assignment of
72254         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
72255         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72256
72257 2006-03-07  Simon Josefsson  <jas@extundo.com>
72258
72259         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
72260         error on missing devices (the functions will return an error).
72261
72262         * m4/gc.m4: Move random stuff to gc-random.m4
72263
72264 2006-03-07  Simon Josefsson  <jas@extundo.com>
72265
72266         * lib/unistd_.h: New file.
72267
72268 2006-03-07  Simon Josefsson  <jas@extundo.com>
72269
72270         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
72271
72272 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
72273
72274         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
72275         Problem reported by Juan Manuel Guerrero.
72276
72277 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
72278
72279         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
72280         the unistd module.
72281         * lib/getlogin_r.c: Likewise.
72282         * lib/getlogin_r.h: Likewise.
72283         * lib/glob.c: Likewise.
72284         * lib/pagealign_alloc.c: Likewise.
72285         * lib/unistd_.h: Remove; no longer needed.
72286
72287 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
72288
72289         * MODULES.html.sh (Support for systems lacking POSIX:2001):
72290         Add unistd.
72291         * modules/c-stack (Depends-on): Add unistd.
72292         * modules/getlogin_r: Likewise.
72293         * modules/glob: Likewise.
72294         * modules/pagealign_alloc: Likewise.
72295         * modules/unistd (Files): Remove lib/unistd_.h.
72296         (EXTRA_DIST): Remove.
72297         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
72298         need unistd_.h.
72299         (MOSTLYCLEANFILES): Remove unistd.h-t.
72300
72301 2006-03-03  Simon Josefsson  <jas@extundo.com>
72302
72303         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
72304
72305 2006-03-03  Simon Josefsson  <jas@extundo.com>
72306
72307         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
72308         libidn and bison.
72309
72310 2006-03-03  Simon Josefsson  <jas@extundo.com>
72311
72312         * build-aux/maint.mk: Add indent target.
72313
72314 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
72315
72316         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
72317         our replacement poll.h in any case, to avoid a differing
72318         declaration from a system header.  Seen on AIX.
72319
72320 2006-03-01  Simon Josefsson  <jas@extundo.com>
72321
72322         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
72323         <kasal@ucw.cz>.
72324
72325 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
72326
72327         * modules/gettime (Depends-on): Add extensions module.
72328         * modules/nanosleep (Depends-on): Likewise.
72329         * modules/settime (Depends-on): Likewise.
72330
72331 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
72332
72333         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
72334         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
72335         pedantically.
72336         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
72337         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
72338
72339         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
72340         not "==".  Reported by Ralf Wildenhues.
72341
72342 2006-03-01  Karl Berry  <karl@gnu.org>
72343
72344         * doc/Copyright/request-*: new files, synced from gnuorg.
72345
72346 2006-03-01  Karl Berry  <karl@gnu.org>
72347
72348         * config/srclist.txt (Copyright/*): new entries.
72349
72350 2006-02-28  Simon Josefsson  <jas@extundo.com>
72351
72352         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
72353
72354 2006-02-27  Simon Josefsson  <jas@extundo.com>
72355
72356         * lib/base64.h: Indent #define's.  From Jim Meyering
72357         <jim@meyering.net>.
72358
72359 2006-02-27  Jim Meyering  <jim@meyering.net>
72360
72361         Revert the change of 2006-02-24, so these files can continue
72362         to be sync'd from gettext.
72363         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
72364         of `config.h'.
72365
72366 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
72367
72368         * modules/intprops: New file.
72369         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
72370         Add intprops.
72371         * modules/getloadavg (Files): Remove lib/intprops.h.
72372         (Depends-on): Add intprops.
72373         * modules/human: Likewise.
72374         * modules/inttostr: Likewise.
72375         * modules/openat: Likewise.
72376         * modules/sig2str: Likewise.
72377         * modules/userspec: Likewise.
72378         * modules/utimecmp: Likewise.
72379         * modules/xnanosleep: Likewise.
72380         * modules/xstrtol: Likewise.
72381
72382 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
72383
72384         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
72385         * modules/lock-tests (TESTS): Use $(EXEEXT).
72386         * modules/tls-tests: Likewise.
72387         * modules/argp-tests: Likewise.
72388         (check_PROGRAMS): New var, replacing...
72389         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
72390
72391 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72392
72393         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
72394         `config.h'.
72395
72396 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
72397
72398         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
72399
72400 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72401
72402         Sync from coreutils.
72403         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
72404         gl_CHDIR_SAFER.
72405
72406 2006-02-22  Jim Meyering  <jim@meyering.net>
72407
72408         Sync from coreutils.
72409         * m4/chdir-safer.m4: New file.
72410
72411 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
72412
72413         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
72414         AT_FDCWD exceeds INT_MAX.
72415         * lib/openat.h (AT_FDCWD): Likewise.
72416
72417 2006-02-17  Eric Blake  <address@hidden>
72418
72419         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
72420
72421 2006-02-16  Simon Josefsson  <jas@extundo.com>
72422
72423         * modules/getaddrinfo (Depends-on): Add sys_socket.
72424
72425 2006-02-15  Simon Josefsson  <jas@extundo.com>
72426
72427         * build-aux/maint.mk: Add dsyntax-check rule.
72428
72429 2006-02-15  Eric Blake  <ebb9@byu.net>
72430
72431         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
72432         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
72433         'present but cannot compile' warnings on cygwin.
72434         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
72435         use ws2tcpip.h if sys/socket.h works.
72436         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
72437         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
72438
72439 2006-02-14  Simon Josefsson  <jas@extundo.com>
72440
72441         * modules/maintainer-makefile (Files): Rename.
72442
72443         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
72444         and (the local) Makefile.cfg to maint-cfg.mk.
72445
72446         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
72447         to the latter.
72448
72449         * modules/maintainer-makefile: New module.
72450
72451         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
72452         severaly stripped to make it possible to build it up from scratch
72453         with reliable tests.
72454
72455         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
72456         fixes to permit overriding the default actions when configure and
72457         makefile are not available.
72458
72459 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
72460
72461         Sync from coreutils.
72462         * modules/lstat (Depends-on): Don't depend on xalloc.
72463         (License): Change from GPL to LGPL, since this is now simply a
72464         replacement for a libc function.
72465
72466 2006-02-14  Jim Meyering  <jim@meyering.net>
72467
72468         Sync from coreutils.
72469
72470         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
72471         failure on deficient systems, and simplify gnulib lgpl dependencies.
72472         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
72473         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
72474
72475         * lib/xalloc-die.c: Remove unused definition of N_.
72476
72477 2006-02-14  Jim Meyering  <jim@meyering.net>
72478
72479         Sync from coreutils.
72480         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
72481         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
72482         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
72483         double-quote uses of that variable, to accommodate the rare case in
72484         which getmntent is available in none of the libraries checked.  This
72485         happens at least on FreeBSD 5.0.
72486
72487 2006-02-13  Simon Josefsson  <jas@extundo.com>
72488
72489         * gnulib-tool (Usage): Fix --import, from
72490         karl@freefriends.org (Karl Berry).
72491
72492 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
72493
72494         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
72495
72496 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
72497
72498         * lib/argp-namefrob.h: Restore changes accidentally lost during the
72499         "autoupdate" on 2005-12-12.
72500
72501 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
72502
72503         * modules/closeout (Depends-on): Remove atexit.
72504
72505 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
72506
72507         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
72508         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
72509
72510 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
72511
72512         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
72513         __EXTENSIONS__ if this causes compilation to fail.  Problem
72514         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
72515         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
72516
72517 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
72518
72519         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
72520         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
72521         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
72522         All uses changed.
72523
72524 2006-01-26  Simon Josefsson  <jas@extundo.com>
72525
72526         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
72527         prototype is visible on mingw32.
72528
72529         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
72530         for mingw32.
72531
72532         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
72533         mingw32).
72534
72535 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
72536
72537         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
72538         attempt to open for write; this always fails, at least on POSIX
72539         hosts.  This reinstates the 2006-01-09 change, which was
72540         inadvertently removed.
72541
72542 2006-01-26  Bruno Haible  <bruno@clisp.org>
72543
72544         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
72545         Reported by Paul Eggert.
72546
72547 2006-01-26  Bruno Haible  <bruno@clisp.org>
72548             Paul Eggert  <eggert@cs.ucla.edu>
72549
72550         * lib/stdbool_.h (_Bool)
72551         [(! (defined __cplusplus || defined __BEOS__)
72552           && !defined __GNUC__
72553           && !(defined __HP_cc || defined __xlc__
72554                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
72555                || defined __sgi))]:
72556         #define to signed char in these cases too; this simplifies
72557         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
72558         etc., separately) and makes it more conservative.
72559
72560 2006-01-25  Simon Josefsson  <jas@extundo.com>
72561
72562         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
72563         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
72564         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
72565
72566 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
72567
72568         * lib/argp-namefrob.h: Bugfix. Remove stray #
72569
72570 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
72571
72572         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
72573         so that we test the test.
72574         Check for yet another HP-UX cc bug involving *bool |= bool.
72575
72576 2006-01-25  Karl Berry  <karl@gnu.org>
72577
72578         * config/srclist.txt (vasnprintf.c): sync lost.
72579
72580 2006-01-25  Jim Meyering  <jim@meyering.net>
72581
72582         Sync from the stable (b5) branch of coreutils:
72583
72584         * lib/fts.c (fts_children): Don't let close() clobber errno from
72585         failed fchdir().
72586
72587         * lib/fts.c (fts_stat): When following a symlink-to-directory,
72588         don't necessarily interpret stat-fails+lstat-succeeds as indicating
72589         a dangling symlink.  That can also happen at least for ELOOP.
72590         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
72591         FYI, this bug predates the inclusion of fts.c in coreutils.
72592
72593         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
72594         in their own block, so pre-c99 compilers don't object.
72595
72596         Avoid the double-free (first in fts_read, second in fts_close) that
72597         would occur when an `active' directory is made inaccessible (e.g.,
72598         via chmod a-x) during a traversal.
72599         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
72600         before returning.  Reproduce this failure by
72601         mkdir -p a/b; cd a; chmod a-x . b
72602         Reported by Stavros Passas.
72603
72604 2006-01-25  Jim Meyering  <jim@meyering.net>
72605
72606         * lib/fileblocks.c: Remove more useless parentheses.
72607         * lib/readutmp.h: Likewise.
72608
72609 2006-01-25  Bruno Haible  <bruno@clisp.org>
72610
72611         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
72612         warnings.
72613         Reported by Paul Eggert.
72614
72615 2006-01-25  Bruno Haible  <bruno@clisp.org>
72616
72617         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
72618         rid of a trap command. For Solaris sh.
72619         Reported by Mark D. Baushke <mdb@gnu.org>.
72620
72621 2006-01-24  Simon Josefsson  <jas@extundo.com>
72622
72623         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
72624         Bruno.
72625
72626 2006-01-24  Karl Berry  <karl@gnu.org>
72627
72628         * config/srclist.txt (argp-namefrob.h): sync lost.
72629
72630 2006-01-24  Jim Meyering  <jim@meyering.net>
72631
72632         * modules/openat (Files): Add lib/intprops.h.
72633         From Mark D. Baushke.
72634
72635 2006-01-24  Jim Meyering  <jim@meyering.net>
72636
72637         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
72638         Reported by Mark D. Baushke.
72639
72640 2006-01-24  Jim Meyering  <jim@meyering.net>
72641
72642         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
72643
72644 2006-01-24  Bruno Haible  <bruno@clisp.org>
72645
72646         * modules/strnlen (Maintainer): Change from glibc to all.
72647
72648 2006-01-24  Bruno Haible  <bruno@clisp.org>
72649
72650         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
72651         Patch by Paul Eggert.
72652
72653 2006-01-24  Bruno Haible  <bruno@clisp.org>
72654
72655         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
72656         already has it.
72657         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
72658         2005-11-26.
72659
72660         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
72661         'signed char' to avoid problems with the built-in _Bool type.
72662         Reported by Paul Eggert on 2005-11-26.
72663
72664 2006-01-24  Bruno Haible  <bruno@clisp.org>
72665
72666         * gnulib-tool (func_import): Avoid constructing complicated sed
72667         expressions inside backquote.
72668         Report and solution by Mark D. Baushke <mdb@gnu.org>.
72669
72670 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
72671
72672         These changes imported from libc.
72673         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
72674         test and two separate function calls.
72675         * lib/strndup.c (__strndup): Add libc_hidden_def.
72676
72677 2006-01-23  Simon Josefsson  <jas@extundo.com>
72678
72679         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
72680         Remove the test_*_SOURCES variable: automake infers it by default.
72681         * modules/tls-tests: Likewise.
72682
72683 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
72684
72685         Work around porting bugs reported by Dieter in
72686         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
72687         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
72688         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
72689         Include "getopt.h" first, to check interface.
72690         (getenv): Declare only if defined HAVE_DECL_GETENV &&
72691         !HAVE_DECL_GETENV.
72692         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
72693         (__strndup): Revert to K&R-style function dfns, the glibc style.
72694         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
72695         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
72696         Include strnlen.h first, to get prototype properly.
72697         (strnlen): Renamed from __strnlen.
72698         Remove weak alias.
72699
72700 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
72701
72702         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
72703
72704 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
72705
72706         * config/srclist.txt: Adjust to reflect glibc reorganization.
72707         This affects only comments.
72708
72709 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
72710
72711          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
72712          Reported by Bruce Korb <bkorb@gnu.org>.
72713
72714 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
72715
72716         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
72717         to pacify gcc -Wswitch-default.
72718
72719 2006-01-22  Bruno Haible  <bruno@clisp.org>
72720
72721         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
72722         temporary buffer for sprintf, take into account the precision also
72723         for 'd', 'i', 'u', 'o', 'x', 'X'.
72724
72725 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
72726
72727         * modules/argp-tests: New module
72728         * tests/test-argp.c: New file
72729         * tests/test-argp-2.sh: New file
72730
72731 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
72732
72733         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
72734         (__argp_base_name): Removed
72735         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
72736         typo.
72737         (__argp_base_name): Provide macro definition or extern declaration
72738         depending on the configuration
72739
72740 2006-01-20  Simon Josefsson  <jas@extundo.com>
72741
72742         * modules/inet_ntop (Depends-on): Depend on sys_socket.
72743
72744 2006-01-20  Simon Josefsson  <jas@extundo.com>
72745
72746         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
72747
72748 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
72749
72750         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
72751         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
72752         Suggested by Bruno Haible.
72753
72754 2006-01-20  Karl Berry  <karl@gnu.org>
72755
72756         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
72757         until changes propagate, I guess.
72758
72759 2006-01-19  Simon Josefsson  <jas@extundo.com>
72760
72761         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
72762
72763 2006-01-19  Simon Josefsson  <jas@extundo.com>
72764
72765         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
72766
72767 2006-01-19  Simon Josefsson  <jas@extundo.com>
72768
72769         * gnulib-tool: Set check_PROGRAMS.
72770
72771         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
72772         modules/des-tests, modules/gc-arcfour-tests,
72773         modules/gc-arctwo-tests, modules/gc-des-tests,
72774         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
72775         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
72776         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
72777         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
72778         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
72779         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
72780         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
72781         test_*_SOURCES.
72782
72783 2006-01-18  Simon Josefsson  <jas@extundo.com>
72784
72785         * modules/socklen (Depends-on): Depend on sys_socket.
72786
72787 2006-01-18  Simon Josefsson  <jas@extundo.com>
72788
72789         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
72790         modules/des-tests, modules/gc-arcfour-tests,
72791         modules/gc-arctwo-tests, modules/gc-des-tests,
72792         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
72793         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
72794         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
72795         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
72796         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
72797         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
72798         $(EXEEXT) to automake TESTS variable, for mingw32.
72799
72800 2006-01-17  Simon Josefsson  <jas@extundo.com>
72801
72802         * modules/socklen (Include): Need sys/socket.h.
72803
72804 2006-01-17  Bruno Haible  <bruno@clisp.org>
72805
72806         * modules/ssize_t (Include): Add <sys/types.h>.
72807
72808 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
72809
72810         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
72811         it's not portable and it doesn't work with cross-compiles.
72812         Problem reported by Bruno Haible.  Fix missing-$ typo in
72813         'test "gl_cv_ignore_unused_libraries" ...' that prevented
72814         -zignore from being used with Sun's C compiler.
72815
72816 2006-01-12  Simon Josefsson  <jas@extundo.com>
72817
72818         * lib/base64.c: Fix warning, reported by Bruno Haible
72819         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
72820
72821 2006-01-12  Bruno Haible  <bruno@clisp.org>
72822
72823         * modules/ldd: New file.
72824         * build-aux/ldd.sh.in: New file.
72825         * MODULES.html.sh (Support for building libraries and executables): Add
72826         ldd.
72827
72828 2006-01-12  Bruno Haible  <bruno@clisp.org>
72829
72830         * m4/ldd.m4: New file.
72831
72832 2006-01-12  Bruno Haible  <bruno@clisp.org>
72833
72834         * gnulib-tool (func_import, func_create_testdir): Don't go into an
72835         endless loop while replacing $auxdir with build-aux.
72836
72837 2006-01-11  Simon Josefsson  <jas@extundo.com>
72838
72839         * lib/stdint_.h (SIZE_MAX): Add missing (.
72840
72841 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
72842
72843         Sync from coreutils.
72844         * lib/md5.c: Fix commentary typos.
72845         (alignof, UNALIGNED_P): No need for a GCC-specific version.
72846         * lib/md5.h (__attribute__): Remove; unused.
72847         * lib/sha1.c: Fix commentary to match md5 better.
72848         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
72849         so that we don't need to worry about alignment.  All uses changed.
72850         This merges the 2005-10-28 md5 change into sha1.
72851
72852 2006-01-11  Jim Meyering  <jim@meyering.net>
72853
72854         Sync from coreutils.
72855         * lib/md5.c (OP): Fix spacing.
72856
72857 2006-01-11  Bruno Haible  <bruno@clisp.org>
72858
72859         Ensure automatic ordering between gl_LOCK and gl_ARGP.
72860         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
72861         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
72862
72863 2006-01-11  Bruno Haible  <bruno@clisp.org>
72864
72865         Ensure automatic ordering between gl_LOCK and gl_ARGP.
72866         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
72867         the "early" section as well.
72868
72869 2006-01-11  Bruno Haible  <bruno@clisp.org>
72870
72871         Avoid "ar: no archive members specified" error on MacOS X.
72872         * gnulib-tool (func_modules_add_dummy): New function.
72873         (func_import, func_create_testdir): Invoke it.
72874
72875 2006-01-11  Bruno Haible  <bruno@clisp.org>
72876
72877         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
72878         with $auxdir in AC_CONFIG_FILES statements.
72879
72880 2006-01-11  Bruno Haible  <bruno@clisp.org>
72881
72882         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
72883         Initialize also noinst_HEADERS to empty.
72884
72885 2006-01-11  Bruno Haible  <bruno@clisp.org>
72886
72887         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
72888         variables.
72889         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
72890         autoreconf.
72891
72892 2006-01-11  Bruno Haible  <bruno@clisp.org>
72893
72894         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
72895         overridable by the user.
72896         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72897
72898 2006-01-10  Simon Josefsson  <jas@extundo.com>
72899
72900         * modules/sys_socket: New file.
72901
72902 2006-01-10  Simon Josefsson  <jas@extundo.com>
72903
72904         * m4/sys_socket_h.m4: New file.
72905
72906 2006-01-10  Simon Josefsson  <jas@extundo.com>
72907
72908         * lib/socket_.h: New file.
72909
72910 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
72911
72912         * modules/readutmp (Maintainer): Add myself.
72913
72914 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
72915
72916         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
72917         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
72918         People who are still concerned with buggy memcmp implementations
72919         can invoke gl_FUNC_MEMCMP themselves.
72920
72921 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
72922
72923         * lib/regex_internal.h (BITSET_WORD_BITS):
72924         Work around a bug in 64-bit PGC (before version 6.1-2), where the
72925         preprocessor mishandles large unsigned values as if they were signed.
72926         Problem reported by Claudio Fontana in
72927         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
72928
72929 2006-01-10  Jim Meyering  <jim@meyering.net>
72930
72931         Avoid the double-free (first in fts_read, second in fts_close) that
72932         would occur when an `active' directory is made inaccessible (e.g.,
72933         via chmod a-x) during a traversal.
72934         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
72935         before returning.  Reproduce this failure by
72936         mkdir -p a/b; cd a; chmod a-x . b
72937         Reported by Stavros Passas.
72938
72939         Sync from coreutils.
72940         * lib/sha1.c: Tweak grammar in a comment.
72941
72942 2006-01-10  Jim Meyering  <jim@meyering.net>
72943
72944         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
72945         Patch by Joerg Sonnenberger.
72946
72947 2006-01-10  Bruno Haible  <bruno@clisp.org>
72948
72949         * modules/readutmp: Depend on module free.
72950         * modules/strtok_r: Depend on module restrict.
72951
72952 2006-01-10  Bruno Haible  <bruno@clisp.org>
72953
72954         * modules/gettext (configure.ac): Add an invocation of
72955         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
72956
72957 2006-01-10  Bruno Haible  <bruno@clisp.org>
72958
72959         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
72960         Reported by Werner Lemberg <wl@gnu.org>.
72961
72962 2006-01-10  Bruno Haible  <bruno@clisp.org>
72963
72964         * lib/localcharset.c: Update from GNU gettext.
72965
72966 2006-01-10  Bruno Haible  <bruno@clisp.org>
72967
72968         * lib/argp.h (__const): Remove macro. Use const instead.
72969         * lib/argp-fmtstream.h (__const): Likewise.
72970         * lib/glob_.h (__const): Remove macro.
72971         * lib/glob-libc.h: Use const instead of __const.
72972
72973 2006-01-10  Bruno Haible  <bruno@clisp.org>
72974
72975         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
72976         variable.
72977         Needed to avoid an automake error regarding the 'gettext' module.
72978
72979 2006-01-09  Simon Josefsson  <jas@extundo.com>
72980
72981         * modules/inet_ntop (Depends-on): Add restrict.
72982
72983 2006-01-09  Simon Josefsson  <jas@extundo.com>
72984
72985         * modules/gc-rijndael-tests (License): Put under LGPL.
72986
72987         * modules/gc-des-tests (License): Likewise.
72988
72989         * modules/gc-arcfour-tests (License): Likewise.
72990
72991         * modules/gc-arctwo-tests (License): Likewise.
72992
72993         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
72994
72995         * modules/gc-hmac-sha1-tests (Files): Likewise.
72996
72997         * modules/gc-hmac-md5-tests (License): Likewise.
72998
72999         * modules/gc-sha1-tests (License): Likewise.
73000
73001         * modules/gc-md5-tests (License): Likewise.
73002
73003         * modules/gc-md4-tests (License): Likewise.
73004
73005         * modules/gc-md2-tests (License): Likewise.
73006
73007         * modules/gc-tests (License): Likewise.
73008
73009         * modules/des-tests (License): Likewise.
73010
73011         * modules/md4-tests (License): Likewise.
73012
73013         * modules/md2-tests (License): Likewise.
73014
73015 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
73016
73017         Sync from coreutils:
73018
73019         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
73020         * modules/lib-ignore: New file.
73021         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
73022         chdir-safer.m4, lchmod.m4.
73023         * modules/openat: Add mkdirat.c, openat-priv.h.
73024
73025 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
73026
73027         Sync from coreutils.
73028         * m4/lib-ignore.m4: New file.
73029         * m4/lchmod.m4: New file.
73030
73031 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
73032
73033         Sync from coreutils.
73034         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
73035         for write access: POSIX says that must fail.
73036         * lib/fts.c (diropen): Likewise.
73037         * lib/save-cwd.c (save_cwd): Likewise.
73038         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
73039         well, for minor improvements on hosts that lack O_DIRECTORY.
73040         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
73041         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
73042         Fall back on chown if open failed with EACCES.
73043
73044         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
73045         Report an error at compile-time if only a 1-second nominal clock
73046         resolution is found.
73047
73048         * lib/lchmod.h: New file.
73049         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
73050         (make_dir_parents): Use lchown rather than chown, and
73051         lchmod rather than chmod.
73052
73053         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
73054         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
73055         "proc" reported by n0dalus.
73056
73057         * lib/mountlist.c: Include <limits.h>.
73058         (dev_from_mount_options)
73059         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
73060         New function.  It no longer assumes "dev=" has the System V meaning
73061         on Linux (since it doesn't).  It also parses "dev=" more carefully.
73062         (read_file_system_list)
73063         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
73064         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
73065         dev= in that case.
73066
73067         * lib/posixtm.h (PDS_PRE_2000): New macro.
73068         * lib/posixtm.c (year): Arg is now syntax_bits rather than
73069         allow_century.  All usages changed.  Reject dates outside the range
73070         1969-1999 if PDS_PRE_2000 is used.
73071
73072 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
73073
73074         Sync from coreutils.
73075         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
73076         (Time of day items): Mention the possibility of leap seconds.
73077         Problem reported by Dr. David Alan Gilbert.
73078
73079 2006-01-09  Jim Meyering  <jim@meyering.net>
73080
73081         Sync from coreutils.
73082
73083         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
73084
73085         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
73086
73087         * lib/modechange.c (mode_compile): Reject an invalid mode string
73088         that starts with an octal digit.  From Andreas Gruenbacher.
73089
73090         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
73091         and dup to open_safer and dup_safer, respectively.
73092         (openat_permissive): Fix typo in comment.
73093
73094         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
73095         "gettext.h"; either no longer needed or are guaranteed by openat.h.
73096         (_): Remove; no longer needed.
73097         (openat): Renamed from rpl_openat; no need for rpl_openat
73098         since openat.h renames openat for us.
73099         Replace most of the body with a call to openat_permissive,
73100         to avoid duplicate code.
73101         Port to (probably hypothetical) environments were mode_t is
73102         wider than int.
73103         (openat_permissive): Require mode arg, so that we can check
73104         types better.  Put it just after flags.  Change cwd failure
73105         indicator from pointer-to-bool to pointer-to-errno-value.
73106         All callers changed.
73107         Invoke openat_save_fail and/or openat_restore_fail if
73108         cwd_errno is null, so that openat can call us.
73109         (openat_permissive, fdopendir, fstatat, unlinkat):
73110         Simplify errno handling to avoid some duplicate code,
73111         as it's OK to set errno on success.
73112         * lib/openat.h: Revamp code so that function macros depend on
73113         __OPENAT_PREFIX only, not also on AT_FDCWD.
73114         (openat_ro): Remove.  Caller changed to use openat_permissive.
73115         (openat_permissive): Now a macro, if not a function.
73116         (openat_restore_fail, openat_save_fail): Now always functions,
73117         since mkdirat needs them even if __OPENAT_PREFIX is defined.
73118
73119         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
73120         and openat.c.
73121         * lib/mkdirat.c: Include openat-priv.h.
73122         Remove definitions of macros defined therein.
73123         * lib/openat.c: Likewise.
73124
73125         * lib/mkdirat.c (mkdirat): New file and function.
73126         * lib/openat.h (mkdirat): Declare.
73127
73128         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
73129
73130         * lib/openat.h (openat_permissive): Declare.
73131         (openat_ro): Define.
73132
73133         * lib/openat.c (EXPECTED_ERRNO): New macro.
73134         (openat_permissive): New function -- used in remove.c rewrite.
73135         (all functions): Set errno just before returning, only if there
73136         was an actual failure.
73137         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
73138
73139         Emulate openat-family functions using Linux's procfs, if possible.
73140         Idea and some code based on Ulrich Drepper's glibc changes.
73141
73142         * lib/openat.c: (BUILD_PROC_NAME): New macro.
73143         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
73144         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
73145         before falling back on save_cwd and restore_cwd.
73146         (fdopendir, fstatat, unlinkat): Likewise.
73147
73148         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
73149         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
73150
73151         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
73152         as second argument to va_arg.  Otherwise, some versions of gcc
73153         warn that `if this code is reached, the program will abort'.
73154
73155 2006-01-09  Jim Meyering  <jim@meyering.net>
73156
73157         Sync from coreutils.
73158         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
73159         Require openat-priv.h.
73160
73161 2006-01-09  Bruno Haible  <bruno@clisp.org>
73162
73163         * modules/strnlen (Include): Use strnlen.h.
73164
73165 2006-01-09  Bruno Haible  <bruno@clisp.org>
73166
73167         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
73168
73169 2006-01-09  Bruno Haible  <bruno@clisp.org>
73170
73171         * lib/sysexit_.h (EX_OK): New macro.
73172         Suggested by Martin Lambers <marlam@marlam.de>.
73173
73174 2006-01-09  Bruno Haible  <bruno@clisp.org>
73175
73176         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
73177         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
73178
73179 2006-01-09  Bruno Haible  <bruno@clisp.org>
73180
73181         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
73182         numbers.
73183
73184 2006-01-09  Bruno Haible  <bruno@clisp.org>
73185
73186         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
73187         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
73188         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
73189         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
73190
73191 2006-01-09  Bruno Haible  <bruno@clisp.org>
73192
73193         * build-aux/javacomp.sh.in: New file, moved from lib/.
73194         * modules/javacomp-script (Files): Update.
73195         (configure.ac): Add AC_CONFIG_FILES invocation.
73196         (EXTRA_DIST): Remove variable.
73197
73198         * build-aux/javaexec.sh.in: New file, moved from lib/.
73199         * modules/javaexec (Files): Update.
73200         (configure.ac): Add AC_CONFIG_FILES invocation.
73201         (EXTRA_DIST): Remove javaexec.sh.in.
73202
73203         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
73204         * modules/csharpcomp-script (Files): Update.
73205         (configure.ac): Add AC_CONFIG_FILES invocation.
73206         (EXTRA_DIST): Remove variable.
73207
73208         * build-aux/csharpexec.sh.in: New file, moved from lib/.
73209         * modules/csharpexec (Files): Update.
73210         (configure.ac): Add AC_CONFIG_FILES invocation.
73211         (EXTRA_DIST): Remove csharpexec.sh.in.
73212
73213 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
73214
73215         Sync from coreutils.
73216
73217         Add POSIX ACL support
73218         * lib/acl.h (copy_acl, set_acl): Add declarations.
73219         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
73220         systems other than Linux.
73221         (chmod_or_fchmod): New function: use fchmod when possible,
73222         and chmod otherwise.
73223         (file_has_acl): Add a POSIX ACL implementation, with a
73224         Linux-specific subcase.
73225         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
73226         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
73227         acls are unsupported.
73228         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
73229         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
73230         are unsupported.
73231
73232 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
73233
73234         Sync from coreutils.
73235         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
73236
73237 2006-01-07  Bruno Haible  <bruno@clisp.org>
73238
73239         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
73240         gl_EARLY.
73241
73242 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
73243
73244         * lib/strftime.c (tzname): Don't declare if it is already #defined.
73245         Problem reported for Mingw by Mark Junker.
73246
73247 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
73248
73249         * README: Gnulib normally doesn't generate a tarball.
73250
73251 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
73252
73253         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
73254         long int, not int, for nanosecond counts, so that people who are
73255         used to POSIX struct timespec won't be surprised.  Reported by Jim
73256         Meyering.
73257
73258 2005-12-28  Bruno Haible  <bruno@clisp.org>
73259
73260         * build-aux/config.rpath: Update from GNU gettext.
73261
73262 2005-12-16  Jim Meyering  <jim@meyering.net>
73263
73264         * modules/fprintftime: New module.
73265         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
73266
73267 2005-12-16  Jim Meyering  <jim@meyering.net>
73268
73269         * m4/fprintftime.m4: New file.
73270
73271 2005-12-16  Jim Meyering  <jim@meyering.net>
73272
73273         * lib/fprintftime.c, lib/fprintftime.h: New files.
73274
73275 2005-12-15  Simon Josefsson  <jas@extundo.com>
73276
73277         * modules/socklen (configure.ac): Fix M4 macro name, to align with
73278         new m4/socklen.m4.
73279
73280 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
73281
73282         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
73283         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
73284
73285 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
73286
73287         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
73288         * lib/argp-help.c (fill_in_uparams): Check if the constructed
73289         struct uparams is valid. Fall back to the default values if it is
73290         not.
73291
73292 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73293
73294         * modules/argp (Files): Add argp-pin.c
73295         (Depends-on): dirname
73296         (lib_SOURCES): Add argp-pin.c
73297
73298 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73299
73300         * m4/argp.m4:  Check if program_invocation_name and
73301         program_invocation_short_name are declared and define appropriate
73302         macros if they are not.
73303
73304 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73305
73306         * lib/argp-help.c (__argp_base_name): New function
73307         (__argp_short_program_name): Rewrite using __argp_base_name
73308         * lib/argp-namefrob.h: Define program_invocation_name and
73309         program_invocation_short_name if requested
73310         (__argp_base_name): Add prototype
73311         * lib/argp-parse.c (argp_def): Use gettext wrappers
73312         (argp_default_parser): Use __argp_base_name
73313         * lib/argp-pin.c: New file. Defines program_invocation_name and
73314         program_invocation_short_name on systems that lack them.
73315
73316 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
73317
73318         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
73319         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
73320         porting problem reported by Georg Schwarz in
73321         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
73322
73323 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
73324
73325         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
73326         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
73327         porting problem reported by Georg Schwarz in
73328         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
73329
73330 2005-12-05  Bruno Haible  <bruno@clisp.org>
73331
73332         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
73333         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
73334         Reported by Mark Junker <mjscod@gmx.de>.
73335
73336 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
73337
73338         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
73339         Use implementation from Albert Chin, with some
73340         comments/corrections by Stepan Kasal and myself.
73341
73342 2005-12-02  Bruno Haible  <bruno@clisp.org>
73343
73344         * gnulib-tool (func_import): Accept GPLed build tool modules when
73345         --lgpl is given.
73346         * modules/csharpcomp-script: New file.
73347         * modules/csharpcomp: Depend on it.
73348         * modules/javacomp-script: New file.
73349         * modules/javacomp: Depend on it.
73350         Suggested by Simon Josefsson.
73351
73352 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
73353
73354         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
73355         statement, to work around an HP-UX 10.20 compiler bug reported by
73356         Peter O'Gorman.
73357
73358 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
73359
73360         * modules/savedir (Depends-on): Add openat.
73361
73362 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
73363
73364         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
73365         (uintmax_t) [defined uintmax_t]: Do not declare.
73366         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
73367         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
73368         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
73369         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
73370         sake of portability to weird hosts that C allows (though we don't
73371         know of any practical examples).
73372
73373         * lib/savedir.h (fdsavedir): New decl.
73374         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
73375         contains most of the former guts of savedir.
73376         (savedir): Use savedirstream.
73377         Include "openat.h".
73378
73379 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
73380
73381         * modules/obstack (Files): Add m4/ulonglong.m4.
73382         Problem reported by Davide Angelocola.
73383
73384 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
73385
73386         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
73387         coreutils no longer futzes with rounding modes.
73388
73389 2005-11-14  Jim Meyering  <jim@meyering.net>
73390
73391         * lib/mkstemp-safer.c: Include <config.h>, required for possible
73392         replacement of mkstemp.
73393
73394 2005-11-10  Simon Josefsson  <jas@extundo.com>
73395
73396         * lib/readline.c: Remove EOL.
73397
73398 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
73399
73400         * modules/gethrxtime (Depends-on): Add gettime.
73401
73402 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
73403
73404         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
73405         or gettimeofday; no longer needed.
73406
73407 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
73408
73409         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
73410         time business.
73411         (gethrxtime) [! (HAVE_NANOUPTIME
73412         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
73413         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
73414         our own approximation.
73415
73416 2005-11-08  Eric Blake  <ebb9@byu.net>
73417
73418         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
73419
73420 2005-11-08  Eric Blake  <ebb9@byu.net>
73421
73422         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
73423
73424 2005-11-04  Bruno Haible  <bruno@clisp.org>
73425
73426         * gnulib-tool: Implement --update mode.
73427
73428 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
73429
73430         Fix porting problem reported by Theodoros V. Kalamatianos.
73431         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
73432         Don't assume that futimes failing means we must fail.
73433
73434 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
73435
73436         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
73437         variables to suggest the intended function of the PATH_MAX check.
73438
73439 2005-10-30  Kean Johnston  <jkj@sco.com>
73440
73441         Trivial changes to support SCO systems.
73442         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
73443         as PATH_MAX.
73444         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
73445         where __ptr is null when no I/O is pending.
73446
73447 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
73448
73449         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
73450         leave errno alone.  Problem reported by Dmitry V. Levin.
73451
73452 2005-10-28  Simon Josefsson  <jas@extundo.com>
73453
73454         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
73455         Test more.
73456
73457         * tests/test-gc-md2.c, tests/test-md2.c: New files.
73458
73459         * modules/md2, modules/md2-tests: New files.
73460
73461 2005-10-28  Simon Josefsson  <jas@extundo.com>
73462
73463         * m4/inet_ntop.m4: More tests.
73464
73465         * m4/gc-md2.m4, md2.m4: New file.
73466
73467 2005-10-28  Simon Josefsson  <jas@extundo.com>
73468
73469         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
73470         "restrict" keywords, as per POSIX.  Protect the function
73471         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
73472         Don't use K&R prototypes.  Check the sprintf return values.
73473         Re-define EAFNOSUPPORT if not present.  Indent.
73474
73475         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
73476         suggested by Bruno Haible <bruno@clisp.org>.
73477
73478         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
73479
73480         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
73481
73482         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
73483         libgcrypt).
73484
73485         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
73486
73487         * lib/md2.h, lib/md2.c: New files.
73488
73489 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
73490
73491         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
73492         errno alone.  Problem reported by Frederic Jolliton.
73493
73494 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
73495
73496         * modules/verify (License): Change from GPL to LGPL.  This is a
73497         tiny module and there are apparently near-equivalents that are
73498         under the BSD license.
73499
73500 2005-10-24  Simon Josefsson  <jas@extundo.com>
73501
73502         * modules/sha1: Relicense to LGPL.
73503
73504 2005-10-24  Simon Josefsson  <jas@extundo.com>
73505
73506         * lib/md4.h: Shrink buffer size, now that we changed the type.
73507
73508 2005-10-23  Simon Josefsson  <jas@extundo.com>
73509
73510         * gnulib-tool (func_import): Fix --tests-base.
73511
73512 2005-10-22  Simon Josefsson  <jas@extundo.com>
73513
73514         * modules/arcfour (Depends-on): Need stdint.
73515
73516 2005-10-22  Simon Josefsson  <jas@extundo.com>
73517
73518         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
73519         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
73520
73521 2005-10-22  Simon Josefsson  <jas@extundo.com>
73522
73523         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
73524         suggested by Bruno Haible <bruno@clisp.org>.
73525
73526 2005-10-22  Simon Josefsson  <jas@extundo.com>
73527
73528         * lib/crc.h: Include stddef.h, for size_t.
73529
73530 2005-10-22  Simon Josefsson  <jas@extundo.com>
73531
73532         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
73533         arcfour_context struct (simplify test vector testing in GNU
73534         Shishi).
73535
73536 2005-10-21  Simon Josefsson  <jas@extundo.com>
73537
73538         * modules/des, modules/des-tests: New files.
73539
73540         * modules/gc-des, modules/gc-des-tests: New files.
73541
73542         * tests/test-des.c, tests/test-gc-des.c: New file.
73543
73544 2005-10-21  Simon Josefsson  <jas@extundo.com>
73545
73546         * modules/arctwo, modules/arctwo-tests: New files.
73547
73548         * tests/test-arctwo.c: New file.
73549
73550         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
73551
73552         * tests/test-gc-arctwo.c: New file.
73553
73554 2005-10-21  Simon Josefsson  <jas@extundo.com>
73555
73556         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
73557         Bruno Haible <bruno@clisp.org>.
73558
73559         * m4/gc-des.m4: New file.
73560
73561 2005-10-21  Simon Josefsson  <jas@extundo.com>
73562
73563         * m4/arctwo.m4: New file.
73564
73565         * m4/gc-arctwo.m4: New file.
73566
73567 2005-10-21  Simon Josefsson  <jas@extundo.com>
73568
73569         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
73570         block.
73571
73572 2005-10-21  Simon Josefsson  <jas@extundo.com>
73573
73574         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
73575         <bruno@clisp.org>.
73576
73577         * lib/hmac-sha1.c (hmac_sha1): Likewise.
73578
73579         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
73580         Bruno Haible <bruno@clisp.org>.
73581
73582         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
73583         <bruno@clisp.org>.
73584
73585 2005-10-21  Simon Josefsson  <jas@extundo.com>
73586
73587         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
73588
73589 2005-10-21  Simon Josefsson  <jas@extundo.com>
73590
73591         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
73592
73593 2005-10-21  Simon Josefsson  <jas@extundo.com>
73594
73595         * lib/des.h, lib/des.c: New files.
73596
73597         * lib/gc-gnulib.c: Support DES.c
73598
73599 2005-10-21  Simon Josefsson  <jas@extundo.com>
73600
73601         * lib/arctwo.h, lib/arctwo.c: New files.
73602
73603         * lib/gc-gnulib.c: Support ARCTWO.
73604
73605 2005-10-21  Simon Josefsson  <jas@extundo.com>
73606
73607         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
73608         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73609
73610 2005-10-21  Simon Josefsson  <jas@extundo.com>
73611
73612         * gnulib-tool (func_import, func_create_testdir): Define automake
73613         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
73614         Makefile.am snippet),
73615         suggested by Bruno Haible <bruno@clisp.org>.
73616
73617         * modules/gc (Makefile.am): Use it.
73618
73619 2005-10-21  Bruno Haible  <bruno@clisp.org>
73620
73621         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
73622         patch.
73623
73624 2005-10-19  Simon Josefsson  <jas@extundo.com>
73625
73626         * tests/test-gc-rijndael.c: New file.
73627
73628         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
73629
73630 2005-10-19  Simon Josefsson  <jas@extundo.com>
73631
73632         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
73633         interface too.
73634
73635 2005-10-19  Simon Josefsson  <jas@extundo.com>
73636
73637         * tests/test-gc-arcfour.c: New file.
73638
73639         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
73640
73641 2005-10-19  Simon Josefsson  <jas@extundo.com>
73642
73643         * modules/gc-md4, modules/gc-md4-tests: New file.
73644
73645         * tests/test-gc-md4.c: New file.
73646
73647 2005-10-19  Simon Josefsson  <jas@extundo.com>
73648
73649         * m4/gc-md4.m4: New file.
73650
73651 2005-10-19  Simon Josefsson  <jas@extundo.com>
73652
73653         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
73654         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
73655         <kasal@ucw.cz>.
73656
73657 2005-10-19  Simon Josefsson  <jas@extundo.com>
73658
73659         * m4/gc-arcfour.m4: New file.
73660
73661         * m4/gc-rijndael.m4: New file.
73662
73663 2005-10-19  Simon Josefsson  <jas@extundo.com>
73664
73665         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
73666
73667 2005-10-19  Simon Josefsson  <jas@extundo.com>
73668
73669         * lib/gc-gnulib.c: Support ARCFOUR.
73670
73671 2005-10-19  Simon Josefsson  <jas@extundo.com>
73672
73673         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
73674         support.
73675
73676         * lib/gc.h: Add ECB enum type.
73677
73678         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
73679
73680 2005-10-18  Simon Josefsson  <jas@extundo.com>
73681
73682         * tests/test-md5.c: New file.
73683
73684         * modules/md5-tests: New file.
73685
73686 2005-10-18  Simon Josefsson  <jas@extundo.com>
73687
73688         * tests/test-md4.c: New file.
73689
73690         * modules/md4, modules/md4-tests: New files.
73691
73692 2005-10-18  Simon Josefsson  <jas@extundo.com>
73693
73694         * m4/md4.m4: New file.
73695
73696 2005-10-18  Simon Josefsson  <jas@extundo.com>
73697
73698         * lib/md4.h, lib/md4.c: New files, based on md5.?.
73699
73700 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
73701
73702         * gnulib-tool (func_create_testdir): Omit the second check whether
73703         BUILT_SOURCES in nonempty.
73704
73705 2005-10-17  Simon Josefsson  <jas@extundo.com>
73706
73707         * tests/test-rijndael.c: New file.
73708
73709 2005-10-17  Simon Josefsson  <jas@extundo.com>
73710
73711         * modules/sha1: Depend on stdint instead of md5.
73712
73713         * modules/md5: Depend on stdint, remove uint32_t.
73714
73715 2005-10-17  Simon Josefsson  <jas@extundo.com>
73716
73717         * modules/gc-sha1-tests: New file.
73718
73719         * tests/test-gc-sha1.c: New file.
73720
73721 2005-10-17  Simon Josefsson  <jas@extundo.com>
73722
73723         * m4/md5.m4: Remove call to uint32_t.m4.
73724
73725 2005-10-17  Simon Josefsson  <jas@extundo.com>
73726
73727         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
73728
73729         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
73730         md5.h.
73731
73732         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
73733
73734         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
73735
73736 2005-10-17  Simon Josefsson  <jas@extundo.com>
73737
73738         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
73739
73740 2005-10-17  Simon Josefsson  <jas@extundo.com>
73741
73742         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
73743
73744 2005-10-17  Simon Josefsson  <jas@extundo.com>
73745
73746         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
73747
73748         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
73749
73750 2005-10-17  Bruno Haible  <bruno@clisp.org>
73751
73752         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
73753         that it can also be used in a test.
73754
73755 2005-10-16  Bruno Haible  <bruno@clisp.org>
73756
73757         * gnulib-tool (func_emit_tests_Makefile_am): Also define
73758         TESTS_ENVIRONMENT, so that individual tests can augment it.
73759
73760         * gnulib-tool (func_create_testdir): Use an intermediate target for
73761         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
73762         macros, like $(ALLOCA_H), which cannot be passed through the command
73763         line.
73764
73765 2005-10-15  Simon Josefsson  <jas@extundo.com>
73766
73767         * modules/rijndael-tests: New file.
73768
73769         * modules/rijndael: New file.
73770
73771 2005-10-15  Simon Josefsson  <jas@extundo.com>
73772
73773         * m4/rijndael.m4: New file.
73774
73775 2005-10-15  Simon Josefsson  <jas@extundo.com>
73776
73777         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
73778
73779         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
73780
73781 2005-10-14  Simon Josefsson  <jas@extundo.com>
73782
73783         * tests/test-arcfour.c: New file.
73784
73785         * modules/arcfour, modules/arcfour-tests: New files.
73786
73787 2005-10-14  Simon Josefsson  <jas@extundo.com>
73788
73789         * m4/arcfour.m4: New file.
73790
73791 2005-10-14  Simon Josefsson  <jas@extundo.com>
73792
73793         * lib/arcfour.h, lib/arcfour.c: New files.
73794
73795 2005-10-14  Roland McGrath  <roland@redhat.com>
73796
73797         Import from libc.  [BZ #1331]
73798         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
73799         macro argument.
73800         Reported by Matej Vela <vela@debian.org>.
73801
73802 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
73803
73804         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
73805         include <wchar.h>; no longer needed.
73806
73807 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
73808
73809         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
73810
73811 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
73812         and  Ulrich Drepper  <drepper@redhat.com>
73813
73814         Import from libc.
73815         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
73816         instead of inline stream orientation test and two separate
73817         function calls.  Pay no attention to USE_IN_LIBIO.
73818
73819 2005-10-13  Simon Josefsson  <jas@extundo.com>
73820
73821         * modules/gc-hmac-md5-tests: New file.
73822
73823         * tests/test-gc-hmac-sha1.c: New file.
73824
73825         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
73826
73827         * modules/gc-hmac-md5-tests: New file.
73828
73829         * tests/test-gc-md5.c: New file.
73830
73831         * modules/gc-md5-tests: New file.
73832
73833 2005-10-13  Simon Josefsson  <jas@extundo.com>
73834
73835         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
73836         Move memory allocation outside of loop.
73837
73838 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
73839
73840         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
73841         intermediate directory is in a read-only file system.  Problem
73842         reported by Eric Blake.
73843
73844 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
73845
73846         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
73847
73848 2005-10-12  Simon Josefsson  <jas@extundo.com>
73849
73850         * tests/test-hmac-sha1.c: New file.
73851
73852         * modules/hmac-sha1-tests: New file.
73853
73854         * modules/hmac-sha1: New file.
73855
73856 2005-10-12  Simon Josefsson  <jas@extundo.com>
73857
73858         * modules/gc-sha1: New file.
73859
73860 2005-10-12  Simon Josefsson  <jas@extundo.com>
73861
73862         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
73863
73864         * tests/test-gc-pbkdf2-sha1.c: New file.
73865
73866 2005-10-12  Simon Josefsson  <jas@extundo.com>
73867
73868         * modules/gc-md5, modules/gc-hmac-md5: New files.
73869
73870         * modules/gc (Files): Remove md5, memxor and hmac files.
73871
73872 2005-10-12  Simon Josefsson  <jas@extundo.com>
73873
73874         * m4/gc-pbkdf2-sha1.m4: New file.
73875
73876         * m4/gc-hmac-sha1.m4: New file.
73877
73878         * m4/gc-sha1: New file.
73879
73880         * m4/hmac-sha1.m4: New file.
73881
73882 2005-10-12  Simon Josefsson  <jas@extundo.com>
73883
73884         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
73885
73886         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
73887
73888 2005-10-12  Simon Josefsson  <jas@extundo.com>
73889
73890         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
73891         suggested by Bruno Haible <bruno@clisp.org>.
73892
73893 2005-10-12  Simon Josefsson  <jas@extundo.com>
73894
73895         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
73896
73897 2005-10-12  Simon Josefsson  <jas@extundo.com>
73898
73899         * lib/gc-pbkdf2-sha1.c: New file.
73900
73901         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
73902
73903 2005-10-12  Simon Josefsson  <jas@extundo.com>
73904
73905         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
73906
73907         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
73908
73909 2005-10-12  Simon Josefsson  <jas@extundo.com>
73910
73911         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
73912         GC_USE_HMAC_MD5, respectively.
73913
73914         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
73915         (gc_md5): Fix typo.
73916
73917         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
73918
73919         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
73920
73921         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
73922
73923 2005-10-12  Bruno Haible  <bruno@clisp.org>
73924
73925         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
73926         Reported by Stepan Kasal <kasal@ucw.cz>.
73927
73928 2005-10-11  Simon Josefsson  <jas@extundo.com>
73929
73930         * tests/test-crc.c: New file.
73931
73932         * modules/crc, modules/crc-tests: New files.
73933
73934 2005-10-11  Simon Josefsson  <jas@extundo.com>
73935
73936         * m4/crc.m4: New file.
73937
73938 2005-10-11  Simon Josefsson  <jas@extundo.com>
73939
73940         * lib/gc.h: Add gc_hash and gc_hash_buffer.
73941
73942         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
73943
73944         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
73945
73946 2005-10-11  Simon Josefsson  <jas@extundo.com>
73947
73948         * lib/crc.h, lib/crc.c: New files.
73949
73950         * lib/gc.h (gc_hash_buffer): Add doc.
73951
73952 2005-10-11  Bruno Haible  <bruno@clisp.org>
73953
73954         * modules/c-strcasestr: New file.
73955         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
73956
73957 2005-10-11  Bruno Haible  <bruno@clisp.org>
73958
73959         * modules/c-strcase: New file.
73960         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
73961
73962 2005-10-11  Bruno Haible  <bruno@clisp.org>
73963
73964         * lib/strcasecmp.c: Include limits.h.
73965         (strcasecmp): Avoid integer overflow on exotic platforms.
73966         * lib/strncasecmp.c: Include limits.h.
73967         (strncasecmp): Avoid integer overflow on exotic platforms.
73968         Reported by Paul Eggert.
73969
73970 2005-10-11  Bruno Haible  <bruno@clisp.org>
73971
73972         * lib/c-strcasestr.h: New file, from GNU gettext.
73973         * lib/c-strcasestr.c: New file, from GNU gettext.
73974
73975 2005-10-11  Bruno Haible  <bruno@clisp.org>
73976
73977         * lib/c-strcase.h: New file, from GNU gettext.
73978         * lib/c-strcasecmp.c: New file, from GNU gettext.
73979         * lib/c-strncasecmp.c: New file, from GNU gettext.
73980
73981 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
73982
73983         * modules/mempcpy (License): GPL -> LGPL.
73984         * modules/strchrnul (License): Likewise.
73985         * modules/sysexits (License): Likewise.
73986
73987 2005-10-08  Simon Josefsson  <jas@extundo.com>
73988
73989         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
73990
73991 2005-10-07  Simon Josefsson  <jas@extundo.com>
73992
73993         * m4/memxor.m4: Remove gl_C_RESTRICT call.
73994
73995 2005-10-06  Simon Josefsson  <jas@extundo.com>
73996
73997         * tests/test-hmac-md5.c: New file.
73998
73999         * modules/hmac-md5-tests: New file.
74000
74001         * modules/hmac-md5: New file.
74002
74003 2005-10-06  Simon Josefsson  <jas@extundo.com>
74004
74005         * m4/hmac-md5.m4: New file.
74006
74007         * m4/memxor.m4: Require gl_C_RESTRICT.
74008
74009 2005-10-06  Simon Josefsson  <jas@extundo.com>
74010
74011         * lib/memxor.c (memxor): Avoid casts and warnings.
74012
74013 2005-10-06  Simon Josefsson  <jas@extundo.com>
74014
74015         * lib/hmac-md5.c: New file.
74016
74017         * lib/hmac.h: New file.
74018
74019 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
74020
74021         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
74022         promotes to int, not unsigned int, to catch the AIX 5.3
74023         compiler bug.
74024
74025 2005-10-05  Simon Josefsson  <jas@extundo.com>
74026
74027         * modules/memxor: New file.
74028
74029         * modules/iconv (Files): Move config.rpath to havelib, it is used
74030         there.
74031
74032         * modules/havelib (Files): Add config.rpath.
74033
74034 2005-10-05  Simon Josefsson  <jas@extundo.com>
74035
74036         * m4/memxor.m4: New file.
74037
74038 2005-10-05  Simon Josefsson  <jas@extundo.com>
74039
74040         * lib/memxor.c (memxor): Fix compiler error.
74041
74042         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
74043         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
74044
74045         * lib/memxor.h, lib/memxor.c: New files.
74046
74047         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
74048         we assume all systems have it, suggested by Jim Meyering
74049         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
74050         any systems lack sys/socket.h; mingw32 is known to lack it, but we
74051         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
74052         same reasons.
74053
74054 2005-10-05  Simon Josefsson  <jas@extundo.com>
74055
74056         * config/srclist.txt: Add glibc bug 1423 for md5.h.
74057
74058 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
74059
74060         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
74061         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
74062         needed, since the source code now assumes these .h files.
74063
74064 2005-10-05  Derek Price  <derek@ximbiot.com>
74065
74066         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
74067
74068 2005-10-05  Bruno Haible  <bruno@clisp.org>
74069
74070         * modules/stdint (License): Change to LGPL.
74071
74072 2005-10-04  Simon Josefsson  <jas@extundo.com>
74073
74074         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
74075         D. Baushke" <mdb@gnu.org>.
74076
74077 2005-10-04  Bruno Haible  <bruno@clisp.org>
74078
74079         * lib/verify.h (verify_true): Provide alternative definition for C++.
74080
74081 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
74082
74083         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
74084         (SSIZE_MAX): New macro, if not already defined.
74085         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
74086         than 2 GiB.
74087
74088 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
74089
74090         Sync from coreutils.
74091         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
74092         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
74093         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
74094         ULLONG_MAX doesn't work with 2.7.2.1.
74095
74096 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
74097
74098         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
74099         From Ben Pfaff.
74100
74101         * modules/exclude (Depends-on): Depend on verify.
74102         * modules/strtoimax (Depends-on): Likewise.
74103         * modules/utimecmp (Depends-on): Likewise.
74104
74105 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
74106
74107         * lib/exclude.c: Include verify.h.
74108         (verify): Remove.  All callers changed to use verify.h's version.
74109         * lib/strtoimax.c: Likewise.
74110         * lib/utimecmp.c: Likewis.e
74111
74112         Sync from coreutils.
74113         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
74114         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
74115         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
74116         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
74117         bother returning ENOSYS if settimeofday or stime fails; just let
74118         them return whatever errno they want to return.
74119         * lib/utimens.c: Include unistd.h, for dup2.
74120         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
74121         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
74122
74123 2005-10-02  Jim Meyering  <jim@meyering.net>
74124
74125         Sync from coreutils.
74126         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
74127         from glibc-2.2.5 that fails for read-only files.
74128
74129 2005-10-02  Jim Meyering  <jim@meyering.net>
74130
74131         Sync from coreutils.
74132         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
74133         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
74134         `#if HAVE_CONFIG_H'.
74135         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
74136         Remove AT_FDCWD test.
74137         Do not consume the fd unless successful.
74138         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
74139         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
74140         block, so that we don't even try to compile it if settimeofday is
74141         available.  This works around a compilation failure on OSF1 V5.1,
74142         due to stime requiring a `long int*' while tv_sec is `int'.
74143
74144 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
74145
74146         Sync from coreutils.
74147         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
74148         against `yes', rather than just testing for nonempty.
74149
74150 2005-10-01  Simon Josefsson  <jas@extundo.com>
74151
74152         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
74153         and Darwin.
74154
74155         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
74156         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
74157         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
74158         freeaddrinfo and gai_strerror are declared by the POSIX headers.
74159         Check if struct addrinfo is declared.
74160
74161 2005-10-01  Simon Josefsson  <jas@extundo.com>
74162
74163         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
74164         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
74165         AI_* and EAI_* definitions.  Protect function declarations.
74166
74167 2005-10-01  Jim Meyering  <jim@meyering.net>
74168
74169         Sync from coreutils.
74170
74171         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
74172         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
74173         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
74174         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
74175         in the inet and nsl libraries.  Required on Solaris 5.7.
74176
74177 2005-10-01  Jim Meyering  <jim@meyering.net>
74178
74179         Sync from coreutils.
74180         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
74181         in the inet and nsl libraries.  Required on Solaris 5.7.
74182
74183 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
74184
74185         * lib/getdelim.c (getdelim): Remove unused variables.
74186
74187 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
74188
74189         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
74190         so that the code works even with ancient cpp.  Portability problem
74191         with GCC 2.7.2.1 reported by Thomas M.Ott.
74192
74193 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
74194
74195         * modules/regex (Depends-on): Add strcase.
74196
74197         * modules/gethostname (Licence): Change from GPL to LGPL, since
74198         gethostname.c is a trivial implementation of a standard library
74199         function.
74200         * modules/poll (License): Change from GPL to LGPL, since it's
74201         derived from LGPL code.
74202
74203 2005-09-27  Jim Meyering  <jim@meyering.net>
74204
74205         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
74206         HAVE_CONFIG_H.
74207
74208         * lib/intprops.h (signed_type_or_expr__): Define.
74209         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
74210         for unsigned types.
74211
74212 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
74213
74214         * lib/verify.h (verify_expr): Remove, replacing with:
74215         (verify_true): New macro that returns true instead of void.
74216         (verify_type__): Remove.
74217         (verify): Use verify_true rather than verify_type__.
74218
74219 2005-09-26  Bruno Haible  <bruno@clisp.org>
74220
74221         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
74222         is necessary.
74223         (lib_SOURCES): Remove mbchar.c.
74224         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
74225         (Files): Add m4/mbrtowc.m4.
74226         * modules/mbiter: Likewise.
74227         * modules/mbuiter: Likewise.
74228
74229 2005-09-26  Bruno Haible  <bruno@clisp.org>
74230
74231         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
74232         compile mbchar.c if they are not both present.
74233         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
74234         * m4/mbiter.m4 (gl_MBITER): Likewise.
74235         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
74236         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
74237         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
74238
74239 2005-09-25  Jim Meyering  <jim@meyering.net>
74240
74241         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
74242         also uses socklen_t.
74243
74244 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
74245
74246         * lib/utimens.c (ENOSYS): Define if not already defined.
74247         (futimens): Support having a null PATH if the file descriptor
74248         is nonnegative.
74249
74250         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
74251         Remove.
74252         (__attribute): Define to empty unless GCC 3.1 or later.
74253         This works around a core dump on OpenBSD 3.4, which has GCC
74254         2.95.3, which dumps core when given __attribute__(()).  It also
74255         simplifies other tests, since we really don't want to bother with
74256         worrying about which ancient version of GCC supported what.
74257         Original problem reported by Yoann Vandoorselaere, with part of
74258         the fix suggested by Derek Price.
74259
74260 2005-09-24  Jim Meyering  <jim@meyering.net>
74261
74262         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
74263         so we can once again use a positive bitfield width of 1 -- now we
74264         don't have to explain why we were using a bitfield width of 2.
74265
74266 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
74267
74268         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
74269         and similarly for the other external symbols.  Problem reported
74270         by James Gallager.
74271
74272         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
74273         bug reported by Jim Meyering.
74274
74275         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
74276         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
74277         not needed, since socklen is a prerequisite module.
74278
74279 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
74280
74281         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
74282         Problem reported by Eric Blake.
74283         (getaddrinfo): Initialize se so that it's not garbage.
74284         Redo internal storage allocation so that it doesn't make unportable
74285         assumptions about alignment.
74286         Fix a memory leak.
74287
74288         * lib/utimens.c (futimens): Use futimesat if available.
74289         Prefer it to futimes since it doesn't have the futimes bug.
74290
74291         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
74292         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
74293         Instead, declare a function that returns a pointer to an array,
74294         and use verify_type__ to declare the size of the array.
74295         Problem and germ of a solution reported by Bruno Haible.
74296         (verify_type__): Use 2, not 1, for bitfield size, to avoid
74297         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
74298
74299 2005-09-23  Jim Meyering  <jim@meyering.net>
74300
74301         Sync from coreutils.
74302         Correct build failure (socklen_t not defined) on at least
74303         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
74304         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
74305
74306 2005-09-23  Jim Meyering  <jim@meyering.net>
74307
74308         * modules/getaddrinfo (Depends-on): Add socklen.
74309
74310 2005-09-23  Bruno Haible  <bruno@clisp.org>
74311
74312         * tests/test-verify.c: New file.
74313
74314 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
74315
74316         Sync from coreutils.
74317
74318         * modules/argmatch (Depends-on): Add verify.
74319         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
74320         unistd-safer.
74321         * modules/save-cwd (Depends-on): Likewise.
74322
74323         * modules/openat (Files): Add lib/openat-die.c.
74324         (Depends-on): Remove error, exitfail.
74325         Add dirname.
74326
74327         * modules/verify: New file.
74328         * MODULES.html.sh (Diagnostics <assert.h>): New section,
74329         with "verify" module.
74330
74331 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
74332
74333         Sync from coreutils.
74334
74335         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
74336         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
74337         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
74338         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
74339         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
74340         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
74341         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
74342         Don't bother checking for string.h, stdlib.h, unistd.h.
74343         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
74344         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
74345         module's job.
74346         * m4/jm-macros.m4 (gl_MACROS): Likewise.
74347         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
74348
74349         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
74350         (gl_GETDATE): Use it.
74351
74352         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
74353
74354 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
74355
74356         Sync from coreutils.
74357
74358         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
74359         stat-time.h.
74360         * lib/argmatch.h: Include verify.h
74361         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
74362         (ARGMATCH_ASSERT): Remove; unused.
74363         * lib/canonicalize.c: Assume STDC_HEADERS.
74364         * lib/exclude.c: Include "strcase.h".
74365         * lib/regex_internal.h [!defined _LIBC]: Likewise.
74366         * lib/getusershell.c: Include stdio--.h rather than stdio.h
74367         and stdio-safer.h.
74368         (getusershell): Call fopen, not fopen_safer.
74369         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
74370         Do not include unistd-safer.h.
74371         (save_cwd): Don't call fd_safer; no longer needed
74372         now that we include fcntl--.h.
74373
74374         * lib/getdate.y (relative_time): New type.
74375         (RELATIVE_TIME_0): New constant.
74376         (parser_control): Use relative_time instead of doing it ourselves.
74377         (%union): Add new relative_time rel member.
74378         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
74379         Now typeless.
74380         (relunit, relunit_snumber): Now of type rel.
74381         (zone, rel, relunit, get_date): Adjust to above changes.
74382
74383         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
74384         Do not include unistd-safer.h.
74385         (getloadavg): Don't call fd_safer; no longer needed
74386         now that we include fcntl--.h.
74387
74388         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
74389         (make_dir_parents): Treat ENOSYS like EEXIST.
74390
74391         Improve quality of diagnostics on restore_cwd failure.
74392         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
74393         (make_dir_parents): Last arg is now int * (for errno), not bool *.
74394         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
74395         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
74396         each time through the loop.  Do not diagnose restore_cwd failure;
74397         that is the caller's job (and perhaps the caller does not care).
74398
74399         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
74400         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
74401         If the file already exists but is not a directory, don't bother
74402         to try to make its parents.
74403         Close potential file descriptor leak if we can't chdir("/") (!).
74404         Don't always return true if chdir($PWD) fails; return true only
74405         if the requested action was done successfully (except for the
74406         chdir($PWD)).
74407         Don't log final directory unless we actually made it.
74408         Refactor to avoid duplicate code to fix up permissions.
74409         Don't attempt to fix up parent permissions if chdir($PWD) fails.
74410
74411         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
74412         to make it a bit faster and (I hope) clearer.
74413         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
74414         Fix bug in formats like %2N.
74415
74416         * lib/verify.h: New file.
74417
74418 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
74419
74420         Sync from coreutils.
74421         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
74422
74423 2005-09-22  Jim Meyering  <jim@meyering.net>
74424
74425         Sync from coreutils.
74426
74427         * m4/lstat.m4 (gl_FUNC_LSTAT):
74428         Use AC_LIBSOURCES to require lstat.c and lstat.h.
74429         Remove obsolete comment.
74430         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
74431         * m4/xstrtod.m4: Likewise.
74432
74433         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
74434
74435 2005-09-22  Jim Meyering  <jim@meyering.net>
74436
74437         Sync from coreutils.
74438
74439         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
74440
74441         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
74442         the .tm_year member, since otherwise gcc-4.0 would now warn about
74443         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
74444
74445         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
74446         order to avoid an unsuppressible warning from gcc on 64-bit systems.
74447
74448         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
74449         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
74450         when run in a time zone for which daylight savings time is in effect
74451         for the starting date.
74452
74453         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
74454         stop us from restricting permissions of just-created absolute-named
74455         directories.
74456         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
74457         to restore initial working directory.
74458         * lib/mkdir-p.c (make_dir_parents): New parameter:
74459         different_working_dir, to tell caller if/when we change the working
74460         directory and are unable to return to the initial one.
74461         * lib/mkdir-p.h (make_dir_parents): Update prototype.
74462         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
74463         `return false'.  This fixes a bug introduced on 2004-07-30.
74464
74465         * lib/openat.c (fdopendir): Be sure to close the supplied
74466         file descriptor before returning.  This makes our replacement
74467         implementation a little closer to Solaris's, where fdopendir
74468         ties the file descriptor to the returned DIR* pointer.
74469         * lib/openat.c (unlinkat): New function.
74470         * lib/openat.h (unlinkat): Add prototype.
74471         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
74472         (openat_restore_fail): Rename from openat_restore_die.
74473         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
74474
74475         Provide an alternative to exiting immediately upon save_cwd or
74476         restore_cwd failure.  Now, an application can arrange e.g.,
74477         to perform a longjump in that case.
74478         * lib/openat.c: Include dirname.h.
74479         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
74480         (rpl_openat, fdopendir, fstatat): Call openat_save_die
74481         and openat_restore_die rather than calling error directly.
74482         Don't include "error.h" or "exitfail.h"; they're no longer needed.
74483
74484         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
74485         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
74486         define.
74487
74488         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
74489         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
74490                             int utc, int nanoseconds);
74491         Background:
74492         date should not have to allocate a megabyte of virtual memory to
74493         handle a format argument like +%1048575T.  When implemented with
74494         strftime, it must allocate such a buffer, use strftime to fill it
74495         in, print it, then free it.
74496         With fprintftime, it simply prints everything and exits.
74497         With no need for memory allocation, that's one fewer way to fail.
74498         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
74499         optional field width, not before, so we accept %9:z, not %:9z.
74500         (my_strftime): Be sure to use L_('x') for literals.
74501
74502         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
74503         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
74504         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
74505         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
74506         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
74507         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
74508         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
74509         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
74510         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
74511         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
74512         * lib/xgethostname.c, lib/xreadlink.c:
74513         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
74514
74515         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
74516         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
74517         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
74518         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
74519         and don't include <sys/file.h>).
74520
74521 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
74522
74523         Sync from coreutils.
74524
74525         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
74526         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
74527         [!LDAV_DONE]: Avoid unused variable warning.
74528
74529 2005-09-21  Bruno Haible  <bruno@clisp.org>
74530
74531         * lib/unicodeio.h (unicode_to_mb): New declaration.
74532
74533 2005-09-20  Derek Price  <derek@ximbiot.com>
74534
74535         * lib/getaddrinfo.c: Don't include <netdb.h> included from
74536         getaddrinfo.h.
74537
74538 2005-09-20  Bruno Haible  <bruno@clisp.org>
74539
74540         * gnulib-tool: Remove trailing slashes from the values specified for
74541         --source-base, --m4-base, --tests-base, --aux-dir.
74542         Suggested by Simon Josefsson <jas@extundo.com>.
74543
74544 2005-09-20  Bruno Haible  <bruno@clisp.org>
74545
74546         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
74547         func_modules_to_filelist, func_import, func_create_testdir): Make all
74548         sorting results locale-independent, so that gnulib-cache.m4 doesn't
74549         change when gnulib-tool is invoked in a different locale.
74550
74551 2005-09-19  Simon Josefsson  <jas@extundo.com>
74552
74553         * m4/socklen.m4: Fix typo.
74554
74555 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74556
74557         Use a consistent style for including <config.h>.
74558         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
74559         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
74560         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
74561         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
74562         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
74563         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
74564         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
74565         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
74566         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
74567         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
74568         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
74569         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
74570         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
74571         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
74572         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
74573         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
74574         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
74575         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
74576         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
74577         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
74578         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
74579         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
74580         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
74581         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
74582         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
74583         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
74584         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
74585         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
74586         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
74587         lib/xstrtoumax.c, lib/yesno.c:
74588         Standardize inclusion of config.h.
74589         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
74590         lib/inttostr.h:  Removed inclusion of config.h from header files.
74591         * lib/inttostr.c:  Adjusted in-tree users.
74592         * lib/timespec.h: Remove superfluous warning to include config.h.
74593         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
74594         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
74595         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
74596         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
74597         config.h with HAVE_CONFIG_H.
74598
74599 2005-09-19  Jim Meyering  <jim@meyering.net>
74600
74601         * modules/pathmax (License): Change to LGPL.
74602
74603 2005-09-19  Derek Price  <derek@ximbiot.com>
74604
74605         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
74606
74607 2005-09-19  Bruno Haible  <bruno@clisp.org>
74608
74609         * gnulib-tool (import): Provide default for --tests-base.
74610
74611 2005-09-19  Bruno Haible  <bruno@clisp.org>
74612
74613         * doc/quote.texi: New file, extracted from gnulib.texi.
74614         * doc/ctime.texi: New file, extracted from gnulib.texi.
74615         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
74616         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
74617         * doc/gnulib.texi: Include them.
74618
74619 2005-09-18  Bruno Haible  <bruno@clisp.org>
74620
74621         Portability fix.
74622         * gnulib-tool (func_readlink): New function.
74623         (func_ln_if_changed): Use it.
74624
74625 2005-09-18  Bruno Haible  <bruno@clisp.org>
74626
74627         * gnulib-tool: Support --with-tests also with --import.
74628         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
74629         (func_import): Use variables $testsbase and $inctests. Emit a
74630         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
74631         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
74632         SUBDIRS += $testsdir.
74633         (func_create_testdir): Update.
74634
74635 2005-09-18  Bruno Haible  <bruno@clisp.org>
74636
74637         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
74638         instead of $dry_run.
74639         (func_cp_if_changed, func_mv_if_changed): Remove functions.
74640         (func_ln_if_changed): Don't handle dry-run here.
74641         (func_import): In dry-run mode, detect more precisely which actions
74642         would be performed, and don't use "...ing" verbs.
74643
74644 2005-09-18  Bruno Haible  <bruno@clisp.org>
74645
74646         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
74647         (func_import): Use join on two temporary files instead of three nested
74648         loops, in order to determine which files are new or old.
74649
74650 2005-09-18  Bruno Haible  <bruno@clisp.org>
74651
74652         * gnulib-tool (func_import): Comment out code that spits out the
74653         new files with --dry-run.
74654
74655 2005-09-18  Bruno Haible  <bruno@clisp.org>
74656
74657         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
74658
74659 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
74660
74661         * lib/stat-time.h: New file.
74662         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
74663         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
74664         in a different way.
74665         (timespec_cmp): New function.
74666         * lib/utimecmp.c: Include stat-time.h.
74667         (SYSCALL_RESOLUTION): Depend on whether various struct stat
74668         members exist, not on the obsolescent ST_MTIM_NSEC.
74669         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
74670
74671 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
74672
74673         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
74674
74675 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
74676
74677         * MODULES.html.sh (File system functions): Add stat-time.
74678         * modules/stat-time: New file.
74679         * modules/timespec (Files): Remove m4/st_mtim.m4; this
74680         is now done in a different way, by the stat-time module.
74681         * modules/utimecmp (Depends-on): Add stat-time.
74682
74683 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
74684
74685         * m4/st_mtim.m4: Remove.  Superseded by...
74686         * m4/stat-time.m4: New file.
74687         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
74688         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
74689
74690 2005-09-15  Derek Price  <derek@ximbiot.com>
74691
74692         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
74693
74694 2005-09-15  Derek Price  <derek@ximbiot.com>
74695
74696         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
74697         * lib/regex_internal.c: Ditto, using this...
74698         (__GNUC_PREREQ): ...new macro.
74699         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
74700         using...
74701         (__GNUC_PREREQ): ...this new macro.
74702
74703         * lib/strstr.h: Include string.h. Define strstr as a macro here.
74704
74705 2005-09-15  Derek Price  <derek@ximbiot.com>
74706             Paul Eggert  <eggert@cs.ucla.edu>
74707
74708         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
74709         changes, consolidating in...
74710         * lib/regex_internal.h: ...this file.
74711
74712 2005-09-13  Jim Meyering  <jim@meyering.net>
74713
74714         * lib/canon-host.c: Filter through gnu indent and reword comments
74715         slightly.
74716         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
74717
74718 2005-09-13  Derek Price  <derek@ximbiot.com>
74719
74720         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
74721         failure.
74722         Reported by Jim Meyering  <jim@meyering.net>.
74723
74724 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
74725
74726         * lib/base64.c: Typo.
74727         (base64_encode): Put b64str in initialized data section.
74728
74729 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
74730
74731         Merge glibc and coreutils changes into gnulib, plus a few
74732         extra fixes.
74733         * lib/md5.c: Use #error rather than a string.
74734         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
74735         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
74736         (__attribute__): Define to empty for non recent-GCC.
74737         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
74738         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
74739         Renamed from their non-__ counterparts, with new macros replacing
74740         them if not _LIBC.  Add __THROW attribute.
74741         (rol): Remove.
74742         (struct md5_ctx): Align buffer if using GCC.
74743         * lib/sha1.h (struct sha1_ctx): Likewise.
74744         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
74745         The old name was backwards.
74746         (NOTSWAP): Remove; not used.
74747         (rol): New macro, moved here from md5.h.
74748         (sha1_process_block): Remove a FIXME that doesn't make sense.
74749
74750 2005-09-12  Derek Price  <derek@ximbiot.com>
74751
74752         Return usable errors from canon-host.
74753         * lib/canon-host.h: New file.
74754         * lib/canon-host.c (canon_host): Wrap...
74755         (canon_host_r): ...this new function, which now relies exclusively on
74756         getaddrinfo.
74757         (ch_strerror): New function.
74758         (last_cherror): New global.
74759         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
74760         interface.
74761         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
74762         void *.
74763         (freeaddrinfo): Free ai->ai_canonname when set.
74764
74765 2005-09-12  Derek Price  <derek@ximbiot.com>
74766
74767         Make canon-host require getaddrinfo.
74768         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
74769         AC_LIBSOURCE canon-host.h.  Call...
74770         (gl_PREREQ_CANON_HOST): ...this new function, which requires
74771         gl_GETADDRINFO.
74772         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
74773
74774 2005-09-12  Derek Price  <derek@ximbiot.com>
74775
74776         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
74777         LGPL.
74778         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
74779
74780 2005-09-12  Derek Price  <derek@ximbiot.com>
74781
74782         * lib/gai_strerror.c: Include config.h when available.  Include
74783         getaddrinfo.h before other headers to test interface.
74784         Reported by Larry Jones <lawrence.jones@ugs.com>.
74785
74786 2005-09-12  Derek Price  <derek@ximbiot.com>
74787             Paul Eggert  <eggert@cs.ucla.edu>
74788
74789         * modules/glob (Files): Add glob-libc.h.
74790
74791 2005-09-12  Derek Price  <derek@ximbiot.com>
74792             Paul Eggert  <eggert@cs.ucla.edu>
74793
74794         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
74795         glob_.h, glob-libc.h.
74796         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
74797
74798 2005-09-12  Derek Price  <derek@ximbiot.com>
74799             Paul Eggert  <eggert@cs.ucla.edu>
74800
74801         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
74802         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
74803         protecting things that should be done only in gnulib contexts.
74804         * lib/glob_.h: New file, containing only the glob things needed for
74805         gnulib.
74806         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
74807         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
74808         (glob, globfree, glob_pattern_p): Now defined simply in terms of
74809         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
74810         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
74811         and to respect the namespace rules better.
74812
74813 2005-09-08  Simon Josefsson  <jas@extundo.com>
74814
74815         * modules/socklen: New file.
74816
74817 2005-09-08  Simon Josefsson  <jas@extundo.com>
74818
74819         * m4/socklen.m4: New file.
74820
74821 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74822
74823         * modules/utimens (Files): Add m4/utimbuf.m4, since
74824         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
74825         Reported by Sergey Poznyakoff.
74826
74827 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74828
74829         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
74830         definitions, since that's the preferred style in glibc.
74831         Fix a minor spacing issue, and update copyright notice to match
74832         glibc's.
74833
74834 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74835
74836         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
74837
74838 2005-09-06  Simon Josefsson  <jas@extundo.com>
74839
74840         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
74841         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
74842
74843 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
74844
74845         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
74846         warning.
74847
74848 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
74849
74850         * config/srclist.txt: Add glibc bug 1302.
74851
74852 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
74853
74854         Change bitset word type from unsigned int to unsigned long int,
74855         as this has better performance on typical 64-bit hosts.
74856         Port bitset code to hosts with unusual word sizes.
74857         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
74858         (build_collating_symbol):
74859         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
74860         argument is a bitset.  This is merely a style issue, but it makes
74861         it clearer that an entire array is expected.
74862         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
74863         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
74864         Port to the case where bitset_word is not the same as unsigned int.
74865         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
74866         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
74867         Likewise.
74868         * lib/regexec.c (check_dst_limits_calc_pos_1,
74869         check_subexp_matching_top):
74870         (build_trtable, group_nodes_into_DFAstates):
74871         Likewise.
74872         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
74873         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
74874         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
74875         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
74876         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
74877         * lib/regcomp.c (optimize_subexps, lower_subexp):
74878         Work even if bitset_word has holes in its bitwise representation.
74879         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
74880         * lib/regexec.c (check_dst_limits_calc_pos_1,
74881         check_subexp_matching_top):
74882         Likewise.
74883         * lib/regex_internal.c (re_string_reconstruct):
74884         Don't assume UCHAR_MAX == 255.
74885         * lib/regex_internal.h (bitset_set_all): Likewise.
74886         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
74887         All uses changed.
74888         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
74889         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
74890         All uses changed.
74891         (BITSET_WORD_MAX): New macro.
74892         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
74893         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
74894         (bitset_empty, bitset_copy):
74895         Prefer sizeof (bitset) to multiplying it out ourselves.
74896         (bitset_not_merge): Remove; unused.
74897         (bitset_contain): Return bool, not unsigned int with one bit on.
74898         All callers changed.
74899         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
74900         alignment than re_node_set; do this by defining a new internal
74901         type struct dests_alloc and using it to allocate memory.
74902
74903 2005-09-05  Bruno Haible  <bruno@clisp.org>
74904
74905         * gnulib-tool (func_import): Fix comparison in handling of symbolic
74906         links.
74907
74908 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
74909
74910         * modules/size_max (Makefile.am): Add size_max.h
74911
74912 2005-09-04  Derek Price  <derek@ximbiot.com>
74913
74914         * gnulib-tool (func_import): Fix reversed $symbolic logic.
74915
74916 2005-09-03  Simon Josefsson  <jas@extundo.com>
74917
74918         * gnulib-tool: Fix typo.
74919
74920 2005-09-03  Simon Josefsson  <jas@extundo.com>
74921
74922         * config/srclist.txt: Add glibc bug 1293.
74923
74924 2005-09-03  Derek Price  <derek@ximbiot.com>
74925
74926         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
74927         From Larry Jones <lawrence.jones@ugs.com>.
74928
74929 2005-09-02  Simon Josefsson  <jas@extundo.com>
74930
74931         * modules/socklen: New file.
74932
74933 2005-09-02  Simon Josefsson  <jas@extundo.com>
74934
74935         * modules/havelib: New module.
74936
74937         * modules/gettext, modules/iconv, modules/lock, modules/readline:
74938         Use havelib.
74939
74940 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
74941
74942         Check for arithmetic overflow when calculating sizes, to prevent
74943         some buffer-overflow issues.  These patches are conservative, in the
74944         sense that when I couldn't determine whether an overflow was possible,
74945         I inserted a run-time check.
74946         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
74947         macros.
74948         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
74949         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
74950         (re_xnrealloc, re_x2nrealloc): New inline functions.
74951         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
74952         parse_bracket_exp):
74953         (build_equiv_class, build_charclass): Check for arithmetic overflow
74954         in size expression calculations.
74955         * lib/regex_internal.c (re_string_realloc_buffers):
74956         (build_wcs_upper_buffer, re_node_set_add_intersect):
74957         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
74958         (re_dfa_add_node, register_state): Likewise.
74959         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
74960         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
74961         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
74962         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
74963
74964 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
74965
74966         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
74967         m4/ulonglong.m4.  Problem reported by Martin Lambers.
74968
74969 2005-09-02  Bruno Haible  <bruno@clisp.org>
74970
74971         Support for lib vs. lib64 distinction on biarch platforms.
74972         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
74973         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
74974         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
74975
74976 2005-09-02  Bruno Haible  <bruno@clisp.org>
74977
74978         * gnulib-tool (import): In the other first-use case, provide defaults
74979         as well.
74980
74981 2005-09-02  Bruno Haible  <bruno@clisp.org>
74982
74983         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
74984         patches not yet found in the latest gettext release.
74985
74986 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
74987
74988         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
74989         to avoid a collision with bits/local_lim.h in glibc.
74990         All uses changed.  Problem reported by Dmitry V. Levin in
74991         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
74992
74993         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
74994         bugs in int versus size_t comparisons.
74995         (re_string_context_at): Fix bug where the code assumed that
74996         Idx is signed.
74997
74998         Use bool where appropriate.
74999         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
75000         All callers changed.
75001         (calc_eclosure_iter): Likewise, for ROOT arg.
75002         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
75003         (build_charclass_op): Likewise, for NON_MATCH arg.
75004         * lib/regex_internal.c (re_string_allocate, re_string_construct):
75005         (re_string_construct_common): Likewise, for ICASE arg.
75006         * lib/regexec.c (re_search_2_stub, re_search_stub):
75007         Likewise, for RET_LEN arg.
75008         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
75009         (set_regs): Likewise, for FL_BACKTRACK arg.
75010         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
75011         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
75012         (calc_eclosure_iter, parse_bracket_exp):
75013         Use bool for internal variables that are booleans.
75014         * lib/regexec.c (re_search_internal, check_matching,
75015         proceed_next_node):
75016         (set_regs, build_sifted_states, sift_states_bkref):
75017         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
75018         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
75019         (find_collation_sequence_value):
75020         Likewise.
75021         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
75022         (re_node_set_compare):
75023         Return bool, not int. All callers changed.
75024         * lib/regexec.c (check_halt_node_context, check_dst_limits):
75025         (build_trtable, check_node_accept): Likewise.
75026         * lib/regex_internal.h: Include stdbool.h.
75027
75028         Fix bugs uncovered when converting to bool.
75029         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
75030         failure instead of charging ahead blindly.
75031         * lib/regex_internal.c (register_state): Likewise.
75032         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
75033         for freeing internal storage.
75034         (group_nodes_into_DFA_states): Use unsigned int, not int, for
75035         bitset pieces used as boolean, to avoid undefined behavior
75036         on hosts that do int overflow checking.
75037
75038 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
75039
75040         * config/srclist.txt: Add glibc bugs 1285-1287.
75041
75042 2005-09-01  Jim Meyering  <jim@meyering.net>
75043
75044         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
75045         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
75046         Require gl_STAT_MACROS, too.
75047
75048 2005-09-01  Bruno Haible  <bruno@clisp.org>
75049
75050         * gnulib-tool (import): In the first-use case, provide defaults.
75051
75052 2005-09-01  Bruno Haible  <bruno@clisp.org>
75053
75054         * gnulib-tool (func_import): Remove the .tmp files.
75055
75056 2005-09-01  Bruno Haible  <bruno@clisp.org>
75057
75058         * gnulib-tool (func_import): Fix handling of symbolic links.
75059
75060 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75061
75062         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
75063         old glibc regex code mishandles strings longer than 2**31 bytes.
75064         This patch fixes this when the regex code is used in gnulib
75065         (i.e., outside glibc).
75066
75067         This patch should not affect the use of the regex code inside
75068         glibc.  No doubt this problem also needs to be handled for glibc
75069         as well, but the result will be an incompatible change to the
75070         glibc ABI, and the old ABI will have to be supported too.  That
75071         can be the the subject for another patch.
75072
75073         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
75074         governing whether the rest of this patch is active.  By default,
75075         the macro is disabled and the patch has no effect.
75076         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
75077         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
75078         (struct re_pattern_buffer, re_search, re_search_2, re_match):
75079         (re_match_2, re_set_registers): Use the new types.
75080         * lib/regex_internal.h (Idx, re_hashval_t): New types.
75081         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
75082         New macros.
75083         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
75084         (re_string_context_at, bin_tree_t, re_dfastate_t):
75085         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
75086         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
75087         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
75088         (re_string_char_size_at, re_string_wchar_at):
75089         (re_string_elem_size_at):
75090         Use the new types and macros to port to 64-bit hosts.
75091         Use unsigned types for internal values, so that the code
75092         mostly works even for arrays larger than SSIZE_MAX.
75093         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
75094         (search_duplicated_node, calc_eclosure_iter, fetch_number):
75095         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
75096         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
75097         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
75098         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
75099         (calc_inveclosure, parse_dup_op, build_range_exp):
75100         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
75101         (fetch_number, create_token_tree, mark_opt_subexp):
75102         Likewise.
75103         * lib/regex_internal.c (re_string_construct_common,
75104         create_ci_newstate):
75105         (create_cd_newstate, re_string_allocate, re_string_construct):
75106         (re_string_realloc_buffers, build_wcs_upper_buffer):
75107         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
75108         (re_string_reconstruct, re_string_peek_byte_case):
75109         (re_string_fetch_byte_case, re_string_context_at):
75110         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
75111         (re_node_set_init_copy, re_node_set_add_intersect):
75112         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
75113         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
75114         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
75115         (re_acquire_state, re_acquire_state_context, register_state):
75116         Likewise.
75117         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
75118         search_cur_bkref_entry):
75119         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
75120         (re_search_internal, re_search_2_stub, re_search_stub)
75121         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
75122         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
75123         (update_cur_sifted_state, check_dst_limits):
75124         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
75125         (check_subexp_limits, sift_states_bkref, merge_state_array):
75126         (check_subexp_matching_top, get_subexp, get_subexp_sub):
75127         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
75128         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
75129         (expand_bkref_cache, check_node_accept_bytes):
75130         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
75131         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
75132         (acquire_init_state_context, check_halt_node_context):
75133         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
75134         (sift_states_backward, clean_state_log_if_needed):
75135         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
75136         (find_recover_state, transit_state_sb, transit_state_mb):
75137         (transit_state_bkref, build_trtable, match_ctx_clean):
75138         Likewise.
75139         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
75140         to work around an assumption that REG_MISSING is negative.
75141
75142         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
75143         (seek_collating_symbol_entry) [defined _LIBC]:
75144         (lookup_collation_sequence_value) [defined _LIBC]:
75145         (build_range_exp, build_collating_symbol) [defined _LIBC]:
75146         Use prototypes rather than old-style function definitions.
75147         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
75148         (transit_state_sb) [0]:
75149         (find_collation_sequence_value) [defined _LIBC]: Likewise.
75150
75151         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
75152         rm_eo.
75153
75154         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
75155         (optimize_subexps, lower_subexp):
75156         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
75157         since the signed shift might overflow.  Use 1u<<31 instead.
75158         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
75159         Likewise.
75160         * lib/regexec.c (check_dst_limits_calc_pos_1,
75161         check_subexp_matching_top): Likewise.
75162
75163         * lib/regcomp.c (optimize_subexps, lower_subexp):
75164         Use CHAR_BIT rather than 8, for clarity.
75165         * lib/regexec.c (check_dst_limits_calc_pos_1):
75166         (check_subexp_matching_top): Likewise.
75167         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
75168         have to worry about portability issues when shifting it left.
75169         Remove no-longer-needed test for table_size > 0.
75170         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
75171         in a word, as the resulting behavior is undefined.
75172         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
75173         in one case, a <= should have been an <, and in another case the
75174         whole test was missing.
75175         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
75176         the standard name CHAR_BIT.
75177         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
75178         this is not true on one's complement and signed-magnitude hosts.
75179
75180         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
75181         next_last_offset.
75182         (struct re_dfa_t): Remove unused member states_alloc.
75183         * lib/regcomp.c (init_dfa): Don't initialize unused members.
75184
75185 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75186
75187         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
75188         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
75189         and large-file glibc and in 32-bit large-file Solaris.
75190
75191 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75192
75193         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
75194         lengths fit in regoff_t; this isn't true if regoff_t is the same
75195         width as size_t.
75196         * lib/regex.c (re_search_internal): 5th arg is LAST_START
75197         (= START + RANGE) instead of RANGE.  This avoids overflow
75198         problems when regoff_t is the same width as size_t.
75199         All callers changed.
75200         (re_search_2_stub): Check for overflow when adding the
75201         sizes of the two strings.
75202         (re_search_stub): Check for overflow when adding START
75203         to RANGE; if it occurs, substitute the extreme value.
75204
75205 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75206
75207         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
75208
75209 2005-08-31  Jim Meyering  <jim@meyering.net>
75210
75211         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
75212         a pointer-to-const.
75213         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
75214         (register_state): Likewise.
75215         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
75216         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
75217         (group_nodes_into_DFAstates): Likewise.
75218
75219 2005-08-31  Jim Meyering  <jim@meyering.net>
75220
75221         * check-module: Add a FIXME comment.
75222
75223 2005-08-31  Eric Blake  <ebb9@byu.net>
75224
75225         * modules/unistd-safer (Files): Add unistd--.h.
75226         * modules/stdio-safer (Files): Add stdio--.h.
75227
75228 2005-08-31  Derek Price  <derek@ximbiot.com>
75229
75230         * lib/getdelim.c (getdelim): Return EOF on EOF.
75231         Reported by Larry Jones <lawrence.jones@ugs.com>.
75232
75233 2005-08-31  Bruno Haible  <bruno@clisp.org>
75234
75235         Avoid unnecessary diffs in the generated lib/Makefile.am.
75236         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
75237         the generated files.
75238         (func_import): Don't set cmd.
75239
75240 2005-08-31  Bruno Haible  <bruno@clisp.org>
75241
75242         * lib/strstr.c: Include <stddef.h>, for NULL.
75243         * lib/strcasestr.c: Likewise.
75244         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
75245
75246 2005-08-31  Bruno Haible  <bruno@clisp.org>
75247
75248         * gnulib-tool: New option --macro-prefix.
75249         (func_import): Use macro_prefix.
75250         (import): Handle option --macro-prefix.
75251
75252 2005-08-31  Bruno Haible  <bruno@clisp.org>
75253
75254         * gnulib-tool (import): Rename most ac_* variables to cached_*.
75255         Also use new variables cached_lgpl, cached_libtool.
75256
75257 2005-08-31  Bruno Haible  <bruno@clisp.org>
75258
75259         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
75260         always instantiating them.
75261
75262 2005-08-31  Bruno Haible  <bruno@clisp.org>
75263
75264         * gnulib-tool (func_import): Read the previous cached settings
75265         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
75266         earlier added by gnulib but are now dropped. Warn when a gnulib file
75267         overwrites a non-gnulib file.
75268
75269 2005-08-31  Bruno Haible  <bruno@clisp.org>
75270
75271         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
75272         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
75273         projects that don't keep autogenerated files in CVS. Put into
75274         actioncmd only the specified modules, not the transitive closure.
75275
75276 2005-08-31  Bruno Haible  <bruno@clisp.org>
75277
75278         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
75279         Create directories that shall be filled.
75280         (import): Don't look for gl_* macros in configure.ac. Recurse across
75281         all directories containing a gnulib-cache.m4 files, if meaningful.
75282
75283 2005-08-31  Bruno Haible  <bruno@clisp.org>
75284
75285         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
75286         (import): Set seen_libtool when we see gl_LIBTOOL.
75287
75288 2005-08-31  Bruno Haible  <bruno@clisp.org>
75289
75290         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
75291         declaration macro definitions from generated gnulib.m4.
75292
75293 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
75294
75295         * lib/iconvme.h: Add prototype for iconv_alloc.
75296
75297 2005-08-29  Simon Josefsson  <jas@extundo.com>
75298
75299         * lib/iconvme.c: Fix errno.
75300
75301 2005-08-29  Bruno Haible  <bruno@clisp.org>
75302
75303         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
75304         that it works when the directory contains spaces.
75305
75306 2005-08-29  Bruno Haible  <bruno@clisp.org>
75307
75308         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
75309
75310 2005-08-29  Bruno Haible  <bruno@clisp.org>
75311
75312         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
75313         Emit more advice.
75314
75315 2005-08-29  Bruno Haible  <bruno@clisp.org>
75316         and Stepan Kasal  <kasal@ucw.cz>
75317
75318         * check-module: If more parameters are given, check each of them
75319         separately; add more exceptions, as noted by Jim Meyering.
75320         (check_module): New procedure.
75321         (%exempt_header): Now contains all exceptions.
75322
75323 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
75324
75325         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
75326
75327 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
75328
75329         * lib/iconvme.c: Split iconv_string into iconv_alloc.
75330
75331 2005-08-28  Bruno Haible  <bruno@clisp.org>
75332
75333         * m4/gnulib-tool.m4: New file.
75334
75335 2005-08-27  Jim Meyering  <jim@meyering.net>
75336
75337         * modules/unistd-safer (Files): Add pipe-safer.c.
75338         * modules/fcntl-safer (Files): Add creat-safer.c.
75339
75340 2005-08-27  Jim Meyering  <jim@meyering.net>
75341
75342         * m4/stdlib-safer.m4: New file.  From coreutils.
75343         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
75344         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
75345         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
75346         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
75347         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
75348
75349 2005-08-27  Jim Meyering  <jim@meyering.net>
75350
75351         * lib/fopen-safer.c: Merge minor changes from coreutils.
75352         * lib/dup-safer.c: Likewise.
75353         * lib/fd-safer.c: Likewise.
75354
75355         Merge from coreutils.
75356         * lib/stdio--.h: New file.
75357         * lib/stdlib--.h: New file.
75358         * lib/mkstemp-safer.c: New file.
75359
75360         GNU tar needs these.
75361         * lib/pipe-safer.c: New file.
75362         * lib/creat-safer.c: New file.
75363         * lib/fcntl--.h (creat): Define to creat_safer.
75364         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
75365         * lib/unistd--.h (pipe): Define to pipe_safer.
75366         * lib/unistd-safer.h: Declare pipe_safer.
75367
75368 2005-08-26  Simon Josefsson  <jas@extundo.com>
75369
75370         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
75371         Haible <bruno@clisp.org>.
75372
75373 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
75374
75375         * lib/regex_internal.h: Remove all references to
75376         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
75377         or better.
75378         (bitset_not, bitset_merge, bitset_not_merge):
75379         (bitset_mask, re_string_allocate, re_string_construct):
75380         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
75381         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
75382         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
75383         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
75384         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
75385         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
75386         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
75387         (re_acquire_state_context):
75388         Remove unnecessary forward decls.
75389         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
75390         Put __attribute at function definition,
75391         now that the function decl has been removed.
75392         * lib/regex_internal.c (re_string_peek_byte_case):
75393         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
75394         Likewise.
75395
75396 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
75397
75398         * m4/regex.m4: Add AC_PREREQ(2.50).
75399         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
75400
75401 2005-08-25  Simon Josefsson  <jas@extundo.com>
75402
75403         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
75404         __fsetlocking.
75405
75406 2005-08-25  Simon Josefsson  <jas@extundo.com>
75407
75408         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
75409         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
75410         GLIBC specific code.
75411
75412 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75413
75414         Make regex safe for g++.  This fixes one real bug (an "err"
75415         that should have been "*err").  g++ problem reported by
75416         Sam Steingold.
75417         * lib/regex_internal.h (re_calloc): New macro, consistent with
75418         re_malloc etc.  All callers of calloc changed to use re_calloc.
75419         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
75420         not int.  All callers changed.
75421         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
75422         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
75423         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
75424         (find_recover_state): Change "err" to "*err"; this fixes what
75425         appears to be a real bug.
75426         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
75427         versus int.
75428
75429 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75430
75431         * modules/regex (Depends-on): Add malloc, since the code
75432         assumes that !malloc(0) means failure.
75433
75434 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75435
75436         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
75437
75438         alloca modernization/simplification for regex.
75439         * lib/regex.c: Remove portability cruft for alloca.  This no longer
75440         needs to be at the start of the file, and can be moved into
75441         regex_internal.h and simplified.
75442         * lib/regex_internal.h: Include <alloca.h>.
75443         (__libc_use_alloca) [!defined _LIBC]: New macro.
75444         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
75445         now works outside glibc.
75446
75447 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75448
75449         * config/srclist.txt: Add glibc bugs 1241, 1245.
75450
75451 2005-08-25  Jim Meyering  <jim@meyering.net>
75452
75453         * lib/open-safer.c: Include <config.h>.
75454         Otherwise, we'd lose LARGEFILE support in any file using
75455         e.g. "fcntl--.h"
75456
75457 2005-08-25  Bruno Haible  <bruno@clisp.org>
75458
75459         * m4/minmax.m4: Require autoconf 2.52.
75460         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
75461         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
75462         alternatives of translit over the alphabet.
75463         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
75464
75465 2005-08-24  Simon Josefsson  <jas@extundo.com>
75466
75467         * tests/test-getpass.c: New file.
75468
75469 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
75470
75471         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
75472         for GNU regex features.
75473
75474 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
75475
75476         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
75477         * lib/regex.h (regerror): Likewise.
75478
75479         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
75480         requires this.  (The code never needed it.)
75481
75482         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
75483         All uses of recently-renamed identifiers changed to use the new,
75484         POSIX-compliant names.  The code will build and run just fine
75485         without these changes, but it's better to eat our own dog food
75486         and use the standard-conforming names.
75487
75488         * lib/regex.h: Fix a multitude of POSIX name space violations.
75489         These changes have an effect only for programs that define
75490         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
75491         do not change anything for programs compiled in the normal way.
75492         Also, there is no effect on the ABI.
75493
75494         (_REGEX_SOURCE): New macro.
75495         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
75496         defined and _GNU_SOURCE is not; this fixes a name space violation.
75497
75498         Rename the following macros to obey POSIX requirements.
75499         The old names are still visible as macros if _REGEX_SOURCE is defined.
75500         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
75501         RE_BACKSLASH_ESCAPE_IN_LISTS.
75502         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
75503         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
75504         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
75505         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
75506         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
75507         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
75508         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
75509         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
75510         (REG_INTERVALS): renamed from RE_INTERVALS.
75511         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
75512         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
75513         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
75514         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
75515         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
75516         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
75517         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
75518         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
75519         RE_UNMATCHED_RIGHT_PAREN_ORD.
75520         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
75521         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
75522         (REG_DEBUG): renamed from RE_DEBUG.
75523         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
75524         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
75525         unusual, since we can't clash with the POSIX REG_ICASE.
75526         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
75527         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
75528         (REG_NO_SUB): renamed from RE_NO_SUB.
75529         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
75530         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
75531         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
75532         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
75533         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
75534         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
75535         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
75536         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
75537         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
75538         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
75539         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
75540         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
75541         RE_SYNTAX_POSIX_MINIMAL_BASIC.
75542         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
75543         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
75544         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
75545         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
75546         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
75547         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
75548         (REG_FIXED): Renamed from REGS_FIXED.
75549         (REG_NREGS): Renamed from RE_NREGS.
75550
75551         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
75552         of other REG_* macros, since POSIX says the user is allowed to
75553         #undef these macros selectively.
75554
75555         (reg_errcode_t): Update comment stating what other tables need
75556         to be consistent.
75557
75558         Rename the following enum values to obey POSIX requirements.
75559         The old names are still visible as macros.
75560         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
75561         is not defined, since GNU is supposed to be a superset of POSIX as
75562         much as possible, and since we want reg_errcode_t to be a signed
75563         type for implementation consistency.
75564         (_REG_NOERROR): Renamed from REG_NOERROR.
75565         (_REG_NOMATCH): Renamed from REG_NOMATCH.
75566         (_REG_BADPAT): Renamed from REG_BADPAT.
75567         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
75568         (_REG_ECTYPE): Renamed from REG_ECTYPE.
75569         (_REG_EESCAPE): Renamed from REG_EESCAPE.
75570         (_REG_ESUBREG): Renamed from REG_ESUBREG.
75571         (_REG_EBRACK): Renamed from REG_EBRACK.
75572         (_REG_EPAREN): Renamed from REG_EPAREN.
75573         (_REG_EBRACE): Renamed from REG_EBRACE.
75574         (_REG_BADBR): Renamed from REG_BADBR.
75575         (_REG_ERANGE): Renamed from REG_ERANGE.
75576         (_REG_ESPACE): Renamed from REG_ESPACE.
75577         (_REG_BADRPT): Renamed from REG_BADRPT.
75578         (_REG_EEND): Renamed from REG_EEND.
75579         (_REG_ESIZE): Renamed from REG_ESIZE.
75580         (_REG_ERPAREN): Renamed from REG_ERPAREN.
75581         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
75582         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
75583         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
75584         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
75585
75586         (_REG_RE_NAME, _REG_RM_NAME): New macros.
75587         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
75588         changed.  But support the old name if the new one is not defined
75589         and if _REGEX_SOURCE.
75590
75591         Change the following member names in struct re_pattern_buffer.
75592         The old names are still supported if !_REGEX_SOURCE.
75593         The new names are always supported, regardless of _REGEX_SOURCE.
75594         (re_buffer): Renamed from buffer.
75595         (re_allocated): Renamed from allocated.
75596         (re_used): Renamed from used.
75597         (re_syntax): Renamed from syntax.
75598         (re_fastmap): Renamed from fastmap.
75599         (re_translate): Renamed from translate.
75600         (re_can_be_null): Renamed from can_be_null.
75601         (re_regs_allocated): Renamed from regs_allocated.
75602         (re_fastmap_accurate): Renamed from fastmap_accurate.
75603         (re_no_sub): Renamed from no_sub.
75604         (re_not_bol): Renamed from not_bol.
75605         (re_not_eol): Renamed from not_eol.
75606         (re_newline_anchor): Renamed from newline_anchor.
75607
75608         Change the following member names in struct re_registers.
75609         The old names are still supported if !_REGEX_SOURCE.
75610         The new names are always supported, regardless of _REGEX_SOURCE.
75611         (rm_num_regs): Renamed from num_regs.
75612         (rm_start): Renamed from start.
75613         (rm_end): Renamed from end.
75614
75615         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
75616         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
75617         Prepend __ to parameter names.
75618
75619         Undo yesterday's changes.
75620
75621 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
75622
75623         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
75624         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
75625         lib/regex.c.
75626
75627 2005-08-24  Jim Meyering  <jim@meyering.net>
75628
75629         Sync from coreutils.
75630         * m4/fcntl-safer.m4: New file.
75631
75632         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
75633         and object files for this module.
75634
75635 2005-08-24  Jim Meyering  <jim@meyering.net>
75636
75637         Sync from coreutils.
75638         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
75639
75640 2005-08-24  Jim Meyering  <jim@meyering.net>
75641
75642         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
75643         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
75644
75645 2005-08-24  Jim Meyering  <jim@meyering.net>
75646
75647         * modules/fcntl-safer: New module.
75648         * modules/fts (Depends-on): Add fcntl-safer.
75649         * MODULES.html.sh (File descriptor based Input/Output):
75650         Add fcntl-safer.
75651
75652 2005-08-24  Bruno Haible  <bruno@clisp.org>
75653
75654         Support for unit test modules.
75655         * modules/README: Mention tests modules.
75656         * modules/TEMPLATE-TESTS: New file.
75657         * gnulib-tool: New options --extract-tests-module, --with-tests and
75658         --tests-base (unused for the moment).
75659         (testsbase, inctests): New variables.
75660         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
75661         (func_verify_module): Exclude TEMPLATE-TESTS.
75662         (func_verify_nontests_module, func_verify_tests_module): New functions.
75663         (func_get_dependencies): Add implicit dependency for tests modules.
75664         (func_get_tests_module): New function.
75665         (func_modules_transitive_closure): When --with-tests was specified,
75666         include the unit tests as well, unless explicitly avoided.
75667         (func_emit_lib_Makefile_am): Ignore the tests modules here.
75668         (func_emit_tests_Makefile_am): New function.
75669         (func_create_testdir): When --with-tests was specified, emit a
75670         tests/ directory.
75671         * MODULES.html.sh (Future developments): Update.
75672
75673 2005-08-24  Bruno Haible  <bruno@clisp.org>
75674
75675         * modules/tls-tests: New file.
75676         * tests/test-tls.c: New file, from GNU gettext.
75677
75678 2005-08-24  Bruno Haible  <bruno@clisp.org>
75679
75680         * modules/lock-tests: New file.
75681         * tests/test-lock.c: New file, from GNU gettext.
75682
75683 2005-08-24  Bruno Haible  <bruno@clisp.org>
75684
75685         * lib/lock.h: Add multiple inclusion guard.
75686         * lib/tls.h: Add multiple inclusion guard.
75687
75688 2005-08-24  Bruno Haible  <bruno@clisp.org>
75689
75690         * gnulib-tool: Add support for the --aux-dir option to
75691         --create-testdir, --create-megatestdir, --test, --megatest.
75692         (func_create_testdir, func_create_megatestdir): Optionally emit a
75693         AC_CONFIG_AUX_DIR directive.
75694         (create-testdir, create-megatestdir, test, megatest): Provide a
75695         default value for $auxdir.
75696
75697 2005-08-24  Bruno Haible  <bruno@clisp.org>
75698
75699         * gnulib-tool (import): Use compound statement instead of subshell
75700         where possible.
75701
75702 2005-08-24  Bruno Haible  <bruno@clisp.org>
75703
75704         * gnulib-tool (import): Change --aux-dir default to "build-aux".
75705
75706 2005-08-24  Bruno Haible  <bruno@clisp.org>
75707
75708         * gnulib-tool (func_version): Update.
75709
75710 2005-08-24  Bruno Haible  <bruno@clisp.org>
75711
75712         * gnulib-tool (func_import, func_create_testdir,
75713         func_create_megatestdir): Quote all autoconf macro arguments.
75714
75715 2005-08-24  Bruno Haible  <bruno@clisp.org>
75716
75717         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
75718         option --force, because --force causes the aclocal.m4 of each
75719         subdirectory to be newer than the corresponding config.h.in.
75720
75721 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
75722
75723         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
75724         All contents moved to gl_REGEX.
75725         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
75726         assume that it does.
75727
75728 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
75729
75730         * lib/regex.h (REG_NOSYS)
75731         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
75732         Define, since POSIX requires it as of 2001.
75733         (_REG_ENOSYS)
75734         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
75735         New private symbol, used to keep the enum signed in all cases.
75736         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
75737         Youngman in
75738         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
75739
75740         * lib/regex_internal.c (re_string_skip_chars, register_state):
75741         (calc_state_hash):
75742         Remove forward decls; no longer needed now that we use prototypes.
75743         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
75744         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
75745         (clean_state_log_if_needed): Likewise.
75746
75747 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
75748
75749         * config/srclist.txt: Add glibc bugs 1231-1233.
75750
75751 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75752
75753         Fix problems reported by Sam Steingold in
75754         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
75755         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
75756         assumed that reg_errcode_t is a signed type, which is not
75757         necessarily true if _XOPEN_SOURCE is not defined.
75758         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
75759         since some compilers warn about it otherwise.
75760
75761 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75762
75763         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
75764         (init_word_char, create_initial_state, duplicate_node_closure):
75765         (fetch_token, peek_token_bracket, build_range_exp):
75766         (build_collating_symbol): Remove forward decls; no longer needed
75767         now that we use prototypes.
75768
75769         * lib/regcomp.c:
75770         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
75771         (re_compile_fastmap_iter, regcomp, regerror, regfree):
75772         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
75773         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
75774         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
75775         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
75776         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
75777         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
75778         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
75779         (build_range_exp, build_collating_symbol, parse_bracket_exp):
75780         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
75781         (build_charclass, build_charclass_op, fetch_number, create_tree):
75782         (create_token_tree, mark_opt_subexp, duplicate_tree):
75783         Use prototypes rather than old-style definitions.
75784
75785         * lib/regex_internal.c:
75786         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
75787         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
75788         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
75789         (re_string_reconstruct, re_string_peek_byte_case):
75790         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
75791         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
75792         (re_node_set_init_copy, re_node_set_add_intersect):
75793         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
75794         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
75795         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
75796         (re_acquire_state, re_acquire_state_context, register_state):
75797         (create_ci_newstate, create_cd_newstate, free_state):
75798         Likewise.
75799         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
75800         re_search_2):
75801         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
75802         (re_search_internal, prune_impossible_nodes):
75803         (acquire_init_state_context, check_matching, static):
75804         (check_halt_node_context, check_halt_state_context, proceed_next_node):
75805         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
75806         (update_regs, sift_states_backward, build_sifted_states):
75807         (clean_state_log_if_needed, merge_state_array):
75808         (update_cur_sifted_state, add_epsilon_src_nodes):
75809         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
75810         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
75811         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
75812         (find_recover_state, check_subexp_matching_top, transit_state_mb):
75813         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
75814         (check_arrival, check_arrival_add_next_nodes):
75815         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
75816         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
75817         (check_node_accept_bytes, check_node_accept, extend_buffers):
75818         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
75819         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
75820         (sift_ctx_init):
75821         Likewise.
75822
75823         * lib/regex_internal.h:
75824         (re_string_allocate, re_string_construct, re_string_reconstruct):
75825         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
75826         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
75827         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
75828         (re_string_context_at, re_string_peek_byte_case):
75829         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
75830         is defined, since we now use prototypes always.
75831
75832         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
75833         C89 or better.  All uses removed.
75834
75835 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75836
75837         * config/srclist.txt: Add glibc bugs 1220-1227.
75838
75839 2005-08-20  Jim Meyering  <jim@meyering.net>
75840
75841         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
75842         of unused local, dfa.
75843
75844 2005-08-20  Bruno Haible  <bruno@clisp.org>
75845
75846         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
75847
75848 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75849
75850         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
75851         (re_node_set_insert_last, re_dfa_add_node):
75852         Rename local variables to avoid GCC shadowing warnings.
75853
75854 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75855
75856         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
75857         [defined lint]: Suppress bogus uninitialized-variable warnings.
75858
75859         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
75860         and let the caller return REG_ESPACE if out of space.  This
75861         removes an uninitialied-variable warning with GCC 4.0.1, and also
75862         avoids taking the address of a local variable.  All callers
75863         changed.
75864
75865 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75866
75867         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
75868         $LIBCSRC/posix/regexec.c.
75869         Add glibc bug 1217 for regcomp.c.
75870
75871 2005-08-19  Jim Meyering  <jim@meyering.net>
75872
75873         * lib/regexec.c (proceed_next_node): Redo local variables to
75874         avoid GCC shadowing warnings.
75875
75876 2005-08-18  Bruno Haible  <bruno@clisp.org>
75877
75878         * lib/strstr.c (strstr): Fix return value in multibyte case.
75879         * lib/strcasestr.c (strcasestr): Likewise.
75880
75881 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
75882
75883         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
75884
75885 2005-08-17  Jim Meyering  <jim@meyering.net>
75886
75887         Make the %s format (seconds since the epoch) work for a negative
75888         number and when used with a zero-padded field width, e.g. %015s.
75889
75890         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
75891         label so that it precedes the code to set `digits'.  Otherwise,
75892         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
75893         print `00-22'.  Now, it prints `-0022', as it should.
75894
75895 2005-08-17  Bruno Haible  <bruno@clisp.org>
75896
75897         * modules/strstr (Files): Add m4/mbrtowc.m4.
75898         (Depends-on): Add mbuiter.
75899
75900 2005-08-17  Bruno Haible  <bruno@clisp.org>
75901
75902         * modules/strcasestr: New file.
75903         * MODULES.html.sh (String handling, based on ANSI C 89): Add
75904         strcasestr.
75905
75906 2005-08-17  Bruno Haible  <bruno@clisp.org>
75907
75908         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
75909
75910 2005-08-17  Bruno Haible  <bruno@clisp.org>
75911
75912         * modules/mbuiter: New file.
75913         * MODULES.html.sh (Extended multibyte and wide character utilities):
75914         Add mbuiter.
75915
75916 2005-08-17  Bruno Haible  <bruno@clisp.org>
75917
75918         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
75919         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
75920
75921 2005-08-17  Bruno Haible  <bruno@clisp.org>
75922
75923         * m4/strcasestr.m4: New file.
75924
75925 2005-08-17  Bruno Haible  <bruno@clisp.org>
75926
75927         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
75928         * lib/strstr.c: Completely rewritten, with multibyte locale support.
75929
75930 2005-08-17  Bruno Haible  <bruno@clisp.org>
75931
75932         * lib/strcasestr.h: New file.
75933         * lib/strcasestr.c: New file.
75934
75935 2005-08-17  Bruno Haible  <bruno@clisp.org>
75936
75937         * lib/strcasecmp.c: Use mbuiter.h.
75938
75939 2005-08-17  Bruno Haible  <bruno@clisp.org>
75940
75941         * lib/mbuiter.h: New file.
75942
75943 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
75944
75945         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
75946         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
75947         and gl_GETOPT are both invoked via different paths (as happens
75948         with GNU tar CVS because it uses both argp and getopt), the former
75949         wins.
75950
75951 2005-08-16  Bruno Haible  <bruno@clisp.org>
75952
75953         * modules/tls: New file.
75954         * MODULES.html.sh (Multithreading): Add tls.
75955
75956 2005-08-16  Bruno Haible  <bruno@clisp.org>
75957
75958         * modules/strnlen1: New file.
75959         * MODULES.html.sh (String handling): Add strnlen1.
75960
75961 2005-08-16  Bruno Haible  <bruno@clisp.org>
75962
75963         * modules/strcase (Files): Add m4/mbrtowc.m4.
75964         (Depends-on): Add strnlen1, mbchar.
75965
75966 2005-08-16  Bruno Haible  <bruno@clisp.org>
75967
75968         * modules/mbiter: New file.
75969         * MODULES.html.sh (Extended multibyte and wide character utilities):
75970         Add mbiter.
75971
75972 2005-08-16  Bruno Haible  <bruno@clisp.org>
75973
75974         * modules/mbfile: New file.
75975         * MODULES.html.sh (Extended multibyte and wide character utilities):
75976         Add mbfile.
75977
75978 2005-08-16  Bruno Haible  <bruno@clisp.org>
75979
75980         * modules/mbchar: New file.
75981         * MODULES.html.sh (Extended multibyte and wide character utilities):
75982         New section.
75983
75984 2005-08-16  Bruno Haible  <bruno@clisp.org>
75985
75986         * m4/tls.m4: New file, from GNU gettext.
75987
75988 2005-08-16  Bruno Haible  <bruno@clisp.org>
75989
75990         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
75991         always.
75992         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
75993
75994 2005-08-16  Bruno Haible  <bruno@clisp.org>
75995
75996         * m4/mbiter.m4: New file.
75997
75998 2005-08-16  Bruno Haible  <bruno@clisp.org>
75999
76000         * m4/mbfile.m4: New file.
76001
76002 2005-08-16  Bruno Haible  <bruno@clisp.org>
76003
76004         * m4/mbchar.m4: New file.
76005
76006 2005-08-16  Bruno Haible  <bruno@clisp.org>
76007
76008         * lib/tls.h: New file, from GNU gettext.
76009         * lib/tls.c: New file, from GNU gettext.
76010
76011 2005-08-16  Bruno Haible  <bruno@clisp.org>
76012
76013         * lib/strnlen1.h: New file.
76014         * lib/strnlen1.c: New file.
76015
76016 2005-08-16  Bruno Haible  <bruno@clisp.org>
76017
76018         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
76019         (mbi_init): Update.
76020         (mbi_avail, mbi_advance): Let the iteration end before the terminating
76021         NUL byte, not after it.
76022
76023 2005-08-16  Bruno Haible  <bruno@clisp.org>
76024
76025         * lib/strcase.h (strcasecmp): Add note in comments.
76026         * lib/strncasecmp.c: Use code from strcasecmp.c.
76027         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
76028         (strcasecmp): Work correctly in multibyte locales.
76029
76030 2005-08-16  Bruno Haible  <bruno@clisp.org>
76031
76032         * lib/mbiter.h: New file.
76033
76034 2005-08-16  Bruno Haible  <bruno@clisp.org>
76035
76036         * lib/mbfile.h: New file.
76037
76038 2005-08-16  Bruno Haible  <bruno@clisp.org>
76039
76040         * lib/mbchar.h: New file.
76041         * lib/mbchar.c: New file.
76042
76043 2005-08-16  Bruno Haible  <bruno@clisp.org>
76044
76045         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
76046         the valid ones. Makes the comparison operations transitive:
76047         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
76048         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
76049
76050 2005-08-15  Simon Josefsson  <jas@extundo.com>
76051
76052         * modules/ssize_t (License): Change to 'unlimited'.
76053
76054         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
76055
76056 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
76057
76058         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
76059         Add comments for each pending glibc patch.
76060
76061 2005-08-15  Bruno Haible  <bruno@clisp.org>
76062
76063         * lib/regex.h (__restrict_arr): Don't define to __restrict if
76064         __cplusplus is defined.
76065
76066 2005-08-14  Jim Meyering  <jim@meyering.net>
76067
76068         Sync from coreutils.
76069
76070         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
76071         Use the hash-table-based cycle-detection code not just when
76072         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
76073         Reported by James Youngman in
76074         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
76075         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
76076         FTS_TIGHT_CYCLE_CHECK.
76077         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
76078         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
76079         once again.
76080         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
76081         * lib/fts.c (fd_safer): Remove decl.
76082         Include fcntl--.h rather than unistd-safer.h
76083         (fts_safe_changedir): Don't call fd_safer; no longer needed
76084         now that we include fcntl--.h.
76085
76086 2005-08-12  Simon Josefsson  <jas@extundo.com>
76087
76088         * modules/getndelim2: Use ssize_t module.
76089         * modules/getnline: Likewise.
76090         * modules/safe-read: Likewise.
76091         * modules/xreadlink: Likewise.
76092
76093         * modules/ssize_t: New file.
76094
76095 2005-08-12  Simon Josefsson  <jas@extundo.com>
76096
76097         * m4/readline.m4: Look for termcap, curses or ncurses if required.
76098
76099 2005-08-12  Simon Josefsson  <jas@extundo.com>
76100
76101         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
76102         ssize_t.
76103
76104 2005-08-12  Simon Josefsson  <jas@extundo.com>
76105
76106         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
76107         readline, getdelim and check_version.
76108         (Support for systems lacking ISO C 99: Sizes of integer types):
76109         Add size_max.
76110
76111 2005-08-12  Bruno Haible  <bruno@clisp.org>
76112
76113         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
76114
76115 2005-08-11  Simon Josefsson  <jas@extundo.com>
76116
76117         * modules/readline: New file.
76118
76119         * modules/strnlen (Files): Add strnlen.h.
76120
76121 2005-08-11  Simon Josefsson  <jas@extundo.com>
76122
76123         * m4/readline.m4: New file.
76124
76125 2005-08-11  Simon Josefsson  <jas@extundo.com>
76126
76127         * lib/readline.h, readline.c: New file.
76128
76129 2005-08-11  Simon Josefsson  <jas@extundo.com>
76130
76131         * doc/gnulib.texi (Initial import, Finishing touches): Mention
76132         gl_AVOID.
76133
76134 2005-08-11  Bruno Haible  <bruno@clisp.org>
76135
76136         * lib/strnlen.h (strnlen): Change parameter name to match comment.
76137
76138 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
76139
76140         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
76141
76142 2005-08-10  Simon Josefsson  <jas@extundo.com>
76143
76144         * tests/test-iconvme.c: New file.
76145
76146 2005-08-10  Simon Josefsson  <jas@extundo.com>
76147
76148         * m4/strnlen.m4: New file.
76149
76150         * m4/strndup.m4: Don't check for strnlen declaration, done in
76151         strnlen.m4.
76152
76153 2005-08-10  Simon Josefsson  <jas@extundo.com>
76154
76155         * lib/strndup.c: Use strnlen.h.
76156
76157         * lib/strnlen.h: New file.
76158
76159 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
76160
76161         * README: Typos.
76162
76163 2005-08-02  Simon Josefsson  <jas@extundo.com>
76164
76165         * modules/readline: New file.
76166
76167 2005-08-02  Simon Josefsson  <jas@extundo.com>
76168
76169         * modules/getdelim: New file.
76170
76171         * modules/getline: Rewrite, don't use getndelim2.
76172
76173 2005-08-02  Simon Josefsson  <jas@extundo.com>
76174
76175         * m4/getline.m4: Separate out getdelim stuff into separate module.
76176
76177         * m4/getdelim.m4: New file.
76178
76179 2005-08-02  Simon Josefsson  <jas@extundo.com>
76180
76181         * lib/getline.h, getline.c: Rewrite.
76182
76183         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
76184
76185 2005-07-31  Bruno Haible  <bruno@clisp.org>
76186
76187         * lib/lock.h (gl_lock_initializer): New macro.
76188         (gl_lock_define_initialized): Use it.
76189         (gl_rwlock_initializer): New macro.
76190         (gl_rwlock_define_initialized): Use it.
76191         (gl_recursive_lock_initializer): New macro.
76192         (gl_recursive_lock_define_initialized): Use it.
76193
76194 2005-07-30  Karl Berry  <karl@gnu.org>
76195
76196         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
76197         Report from Ben Pfaff, regarding getopt.
76198
76199 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
76200
76201         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
76202         normal way.
76203         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
76204         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
76205         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
76206         (gl_GETOPT): Use the new macros.  Most of the implementation
76207         is moved to the new macros.  This is for programs like Emacs
76208         that don't want all the functionality of gl_GETOPT.
76209
76210 2005-07-26  Bruno Haible  <bruno@clisp.org>
76211
76212         * m4/lock.m4: Update from GNU gettext.
76213
76214 2005-07-26  Bruno Haible  <bruno@clisp.org>
76215
76216         * lib/lock.h: Update from GNU gettext.
76217         * lib/lock.c: Update from GNU gettext.
76218
76219 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
76220
76221         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
76222         obsolescent AC_TRY_RUN.  Include the default includes files, for
76223         'exit'.
76224
76225 2005-07-24  Bruno Haible  <bruno@clisp.org>
76226
76227         * modules/visibility: New file.
76228         * MODULES.html.sh (Misc): Add visibility.
76229
76230 2005-07-24  Bruno Haible  <bruno@clisp.org>
76231
76232         * m4/visibility.m4: New file.
76233
76234 2005-07-24  Bruno Haible  <bruno@clisp.org>
76235
76236         * doc/visibility.texi: New file.
76237
76238 2005-07-22  Bruno Haible  <bruno@clisp.org>
76239
76240         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
76241         $(ALLOCA_H), redundant through BUILT_SOURCES.
76242         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
76243         redundant through BUILT_SOURCES.
76244         * modules/byteswap (Makefile.am): Remove explicit dependency on
76245         $(BYTESWAP_H), redundant through BUILT_SOURCES.
76246         * modules/fnmatch (Makefile.am): Remove explicit dependency on
76247         $(FNMATCH_H), redundant through BUILT_SOURCES.
76248         * modules/getopt (Makefile.am): Remove explicit dependency on
76249         $(GETOPT_H), redundant through BUILT_SOURCES.
76250         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
76251         redundant through BUILT_SOURCES.
76252         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
76253         redundant through BUILT_SOURCES.
76254         * modules/stdbool (Makefile.am): Remove explicit dependency on
76255         $(STDBOOL_H), redundant through BUILT_SOURCES.
76256         * modules/stdint (Makefile.am): Remove explicit dependency on
76257         $(STDINT_H), redundant through BUILT_SOURCES.
76258         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
76259         Remove explicit dependency on $(SYSEXITS_H).
76260         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
76261
76262 2005-07-18  Simon Josefsson  <jas@extundo.com>
76263
76264         * lib/check-version.c (check_version): Accept identical versions too.
76265
76266 2005-07-18  Bruno Haible  <bruno@clisp.org>
76267
76268         * modules/lock: New file.
76269         * MODULES.html.sh (Multithreading): New section.
76270
76271 2005-07-18  Bruno Haible  <bruno@clisp.org>
76272
76273         * m4/lock.m4: New file, from GNU gettext.
76274
76275 2005-07-18  Bruno Haible  <bruno@clisp.org>
76276
76277         * lib/lock.h: New file, from GNU gettext.
76278         * lib/lock.c: New file, from GNU gettext.
76279
76280 2005-07-18  Bruno Haible  <bruno@clisp.org>
76281
76282         * lib/lock.h (gl_once_t): New type.
76283         (gl_once_define, gl_once): New macros.
76284         * lib/lock.c (fresh_once): New variable.
76285         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
76286         functions.
76287
76288 2005-07-16  Simon Josefsson  <jas@extundo.com>
76289
76290         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
76291         workaround, suggested by Bruno.
76292
76293 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
76294
76295         * modules/xalloc (Depends-on): Add xalloc-die.
76296         * modules/xvasprintf (Depends-on): Add xalloc-die.
76297
76298 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
76299
76300         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
76301         with a minor change.
76302
76303 2005-07-15  Bruno Haible  <bruno@clisp.org>
76304
76305         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
76306         When using lib/poll.c, define poll as rpl_poll.
76307
76308 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
76309
76310         * modules/argp (Depends-on): Remove unlocked-io.
76311
76312 2005-07-14  Derek Price  <derek@ximbiot.com>
76313
76314         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
76315         for glob symlink bug.
76316
76317 2005-07-14  Bruno Haible  <bruno@clisp.org>
76318
76319         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
76320         Instead, test for *_unlocked function declarations directly.
76321
76322 2005-07-11  Simon Josefsson  <jas@extundo.com>
76323
76324         * modules/size_max: New file.
76325
76326         * modules/xsize: Depend on size_max module for size_max.m4.
76327
76328 2005-07-11  Simon Josefsson  <jas@extundo.com>
76329
76330         * lib/size_max.h: New file.
76331
76332 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
76333
76334         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
76335         copyright symbol and the year.
76336         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
76337         (version_etc_va): Use parameterized copyright notice.
76338         Reword to conform to the current GNU coding standards.
76339
76340 2005-07-11  Karl Berry  <karl@gnu.org>
76341
76342         * doc/gnulib.texi (Quoting): new node.
76343         (Initial import): more info, from Patrice.
76344
76345 2005-07-11  Bruno Haible  <bruno@clisp.org>
76346
76347         * gnulib-tool (func_usage): Document option --avoid.
76348         (Command line options): Handle --avoid.
76349         (func_acceptable): New function.
76350         (func_modules_transitive_closure): Use it.
76351
76352 2005-07-11  Bruno Haible  <bruno@clisp.org>
76353
76354         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
76355         Reported by Jim Meyering.
76356
76357 2005-07-10  Bruno Haible  <bruno@clisp.org>
76358
76359         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
76360         Needed when size_t is smaller than 'unsigned int'.
76361         Reported by Paul Eggert.
76362
76363 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
76364
76365         * modules/argp (Depends-on): Add unlocked-io
76366
76367 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
76368
76369         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
76370         block of defines.
76371
76372 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
76373
76374         * config/srclist.txt: Comment out regcomp.c, since we have a porting
76375         fix now.
76376
76377 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
76378         and Paul Eggert  <eggert@cs.ucla.edu>
76379
76380         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
76381         in wint_t, not wchar_t.  Remove now-unnecessary cast.
76382
76383 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
76384
76385         * modules/regex (Files): Add lib/regex_internal.c,
76386         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
76387         (Depends-on): Add extensions.
76388         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
76389
76390 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
76391
76392         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
76393         pathconf.
76394         * m4/same.m4 (gl_SAME): Likewise.
76395         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
76396
76397         * m4/regex.m4: Adjust to new libc regex implementation.
76398         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
76399         all the .c and .h parts of (the new) regex.
76400         Quote the m4 stuff better.
76401         Check for RE_ICASE bug of old gnulib.
76402         Check for REG_STARTEND of recent libc.
76403         Rename local variables from jm_* to gl_*.
76404         Quote operand of "test -f".
76405         Say "recent enough" version of libc, not "version 2".
76406         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
76407         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
76408         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
76409         Remove check for btowc, isascii.
76410         Require AM_LANGINFO_CODESET.
76411
76412 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
76413
76414         * lib/regex.c, regex.h: Sync from libc.
76415         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
76416         * lib/regexec.c:
76417         New files, synced from libc, except that regex_internal.h
76418         currently has a small porting fix.
76419
76420 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
76421
76422         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
76423         regex_internal.c, regexec.c.
76424         Add regex_internal.h too, but as a comment, since the libc version
76425         is currently broken in gnulib mode.
76426
76427 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
76428
76429         Support programs like Emacs that use gnulib but not gettext.
76430         * MODULES.html.sh (Internationalization functions): Add gettext-h.
76431         * modules/gettext-h: New file.
76432         * modules/gettext (Files): Remove lib/gettext.h.
76433         (Depends-on): Add gettext-h.
76434         (Makefile.am): Remove lib_SOURCES.
76435         * modules/argmatch, modules/c-stack, modules/closeout:
76436         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
76437         * modules/execute, modules/file-type, modules/getaddrinfo:
76438         * modules/getopt, modules/human, modules/javacomp:
76439         * modules/javaexec, modules/mkdir-p, modules/obstack:
76440         * modules/openat, modules/pagealign_alloc, modules/pipe:
76441         * modules/quotearg, modules/regex, modules/rpmatch:
76442         * modules/unicodeio, modules/userspec, modules/version-etc:
76443         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
76444         * modules/xsetenv:
76445         Depend on gettext-h, not gettext.
76446
76447 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
76448
76449         * gnulib-tool (func_import): Add support for 'public domain' license.
76450         * modules/alloca, modules/atexit, modules/memmove:
76451         Now public domain, not GPL.
76452         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
76453         * modules/realloc, modules/strerror, modules/strtod:
76454         Now LGPL, not GPL.
76455
76456 2005-07-05  Bruno Haible  <bruno@clisp.org>
76457
76458         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
76459         autoconf CVS. Needed for mingw.
76460
76461 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76462
76463         Remove the dependency of the strftime module on the tzset module.
76464         * modules/strftime (Depends-on): Remove dependency on tzset.
76465
76466 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76467
76468         Remove the dependency of the strftime module on the tzset module.
76469         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
76470         gl_FUNC_TZSET_CLOBBER.
76471
76472 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76473
76474         Remove the dependency of the strftime module on the tzset module.
76475         * lib/strftime.c (my_strftime)
76476         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
76477         Copy the input structure, to work around some of the bug with
76478         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
76479         Solaris releases, you should also use the tzset module, but we won't
76480         require it as a dependency any more since we don't want LGPLed code
76481         to depend on GPLed code.
76482
76483 2005-07-02  Jim Meyering  <jim@meyering.net>
76484
76485         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
76486         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
76487         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
76488         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
76489
76490 2005-07-02  Jim Meyering  <jim@meyering.net>
76491
76492         * lib/backupfile.c (backup_args): Change a `0' to NULL.
76493
76494 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
76495
76496         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
76497         declares only 'struct timespec;' (!).
76498
76499 2005-07-01  Jim Meyering  <jim@meyering.net>
76500
76501         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
76502         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
76503         * lib/save-cwd.c, tempname.c:
76504         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
76505         and don't include <sys/file.h>).
76506
76507 2005-06-29  Jim Meyering  <jim@meyering.net>
76508
76509         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
76510         type name.  Use the variable name instead.
76511         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
76512         Likewise.
76513
76514 2005-06-28  Simon Josefsson  <jas@extundo.com>
76515
76516         * modules/check-version (Files): Add check-version.m4.
76517
76518 2005-06-28  Simon Josefsson  <jas@extundo.com>
76519
76520         * m4/check-version.m4: New file, suggested by Jim Meyering
76521         <jim@meyering.net>.
76522
76523 2005-06-28  Simon Josefsson  <jas@extundo.com>
76524
76525         * lib/check-version.h, lib/check-version.c: New files.
76526
76527 2005-06-28  Simon Josefsson  <jas@extundo.com>
76528
76529         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
76530         collision with global variable.  Better indentation.  Don't
76531         increment buffer pointer beyond buffer end.  Based on comments
76532         from Paul Eggert <eggert@cs.ucla.edu>.
76533
76534         * lib/base64.h: Indent.
76535
76536 2005-06-28  Simon Josefsson  <jas@extundo.com>
76537
76538         * doc/gnulib.texi (Library version handling): New section.
76539
76540 2005-06-28  Jim Meyering  <jim@meyering.net>
76541
76542         * check-module (find_included_lib_files): Hard-code another
76543         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
76544         but modules/fts-lgpl (correctly) does not list those files.
76545
76546         * modules/canonicalize (Files): Add lib/pathmax.h.
76547
76548 2005-06-25  Simon Josefsson  <jas@extundo.com>
76549
76550         * modules/check-version: New file.
76551
76552 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
76553
76554         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
76555         initializer of struct addrinfo, as an indication that we don't
76556         care how many members the structure has.
76557
76558 2005-06-24  Derek Price  <derek@ximbiot.com>
76559         and Bruno Haible  <bruno@clisp.org>
76560
76561         Remove stat module & update lstat.
76562         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
76563         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
76564         * m4/stat.m4: Remove this file.
76565
76566 2005-06-24  Derek Price  <derek@ximbiot.com>
76567         and Bruno Haible  <bruno@clisp.org>
76568
76569         Remove stat module & update lstat.
76570         * lib/stat.c: Remove this file...
76571         (slash_aware_lstat): ...moving this content and its support...
76572         * lib/lstat.c (rpl_lstat): ...into here.
76573         * lib/lstat.h: New file.
76574
76575 2005-06-24  Derek Price  <derek@ximbiot.com>
76576         and Bruno Haible  <bruno@clisp.org>
76577
76578         Remove stat module & update lstat.
76579         * config/srclist.txt (libc sources): Remove stat.
76580
76581 2005-06-24  Derek Price  <derek@ximbiot.com>
76582         and Bruno Haible  <bruno@clisp.org>
76583
76584         Remove stat module & update lstat.
76585         * MODULES.html.sh (stat): Remove.
76586         * MODULES.html: Regenerated.
76587         * modules/lstat (Description): Correct function name.
76588         (Files): Add "lstat.h".
76589         (Depends-on): Remove stat, add xalloc, stat-macros.
76590         * modules/stat: Remove this file.
76591         (Include): Add "lstat.h", remove <sys/stat.h>.
76592
76593 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
76594
76595         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
76596         (ranged_convert): Don't save conversion in a temporary struct.
76597         This causes a warning with GCC 4.0.0, and anyway in the typical
76598         case it's not worth the extra 100 bytes or so of code.
76599         (ranged_convert, __mktime_internal): When calling a function via a
76600         pointer P, use P () rather than (*P) (), as we now assume C89 or
76601         better.
76602
76603 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
76604
76605         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
76606         "who -r" failed to give output.  Problem reported by Tim Waugh.
76607
76608         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
76609         (xcalloc): Use it to avoid needless tests.
76610         Problem reported by Jim Meyering.
76611
76612 2005-06-20  Derek Price  <derek@ximbiot.com>
76613
76614         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
76615         unnecessary for Autoconfs > 2.59c.
76616
76617 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
76618
76619         * lib/argp.h (__option_is_short): Check upper limit of
76620         __key. Isprint() requires its argument to have the value
76621         of an unsigned char or EOF.
76622
76623 2005-06-16  Jim Meyering  <jim@meyering.net>
76624
76625         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
76626         when either N or S is zero.
76627
76628 2005-06-16  Derek Price  <derek@ximbiot.com>
76629
76630         * m4/bison.m4: Declare YACC & YFLAGS precious.
76631
76632 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
76633
76634         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
76635         multibyte string or pattern, fall back on unibyte matching.
76636         Problem reported by James Youngman.
76637
76638 2005-06-08  Bruno Haible  <bruno@clisp.org>
76639
76640         * modules/csharpcomp: New file.
76641         * MODULES.html.sh (C#): Add csharpcomp.
76642
76643 2005-06-08  Bruno Haible  <bruno@clisp.org>
76644
76645         * m4/csharpcomp.m4: New file, from GNU gettext.
76646
76647 2005-06-08  Bruno Haible  <bruno@clisp.org>
76648
76649         * lib/csharpcomp.h: New file, from GNU gettext.
76650         * lib/csharpcomp.c: New file, from GNU gettext.
76651         * lib/csharpcomp.sh.in: New file, from GNU gettext.
76652
76653 2005-06-08  Bruno Haible  <bruno@clisp.org>
76654
76655         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
76656         warning on mingw.
76657
76658 2005-06-07  Derek Price  <derek@ximbiot.com>
76659
76660         Sync from CVS.
76661         * lib/glob_.h: Indent nested #ifdef.
76662
76663 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
76664
76665         Sync from coreutils.
76666         Use "file name" when talking about file names, instead of "filename"
76667         or "path", as per the GNU coding standards.
76668         * lib/mkdir-p.c: Renamed from makepath.c.
76669         (make_dir_parents): Renamed from make_path.  All callers changed.
76670         * lib/mkdir-p.h: Likewise.  All includers changed.
76671         * lib/filenamecat.c: Renamed from path-concat.c.
76672         (file_name_concat): Renamed from path_concat.  All callers changed.
76673         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
76674         * lib/filenamecat.h: Likewise.  All includers changed.
76675         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
76676         in comments or local variable names.
76677         * lib/basename.c: Likewise.
76678         * lib/canonicalize.c, canonicalize.h: Likewise.
76679         * lib/dirname.c, dirname.h: Likewise.
76680         * lib/euidaccess.c: Likewise.
76681         * lib/exclude.c: Likewise
76682         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
76683         * lib/fsusage.c, fsuage.h: Likewise.
76684         * lib/fts.c, fts_.h: Likewise.
76685         * lib/getcwd.c: Likewise.
76686         * lib/getloadavg.c: Likewise.
76687         * lib/mkstemp.c: Likewise.
76688         * lib/mountlist.c, mountlist.h: Likewise.
76689         * lib/openat.c, openat.h: Likewise.
76690         * lib/readlink-stub.c: Likewise.
76691         * lib/readutmp.c, readutmp.h: Likewise.
76692         * lib/rename.c: Likewise.
76693         * lib/rmdir.c: Likewise.
76694         * lib/same.c: Likewise.
76695         * lib/savedir.c: Likewise.
76696         * lib/stripslash.c: Likewise.
76697         * lib/tempname.c: Likewise.
76698         * lib/xreadlink.c: Likewise.
76699         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
76700         All uses changed.
76701         * lib/exclude.h: Likewise.
76702
76703         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
76704         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
76705         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
76706         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
76707         * lib/pathmax.h: Include <limits.h> unconditionally, since other
76708         files have been getting away with it for years (MORE/BSD 4.3
76709         is extinct now).
76710         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
76711         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
76712
76713         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
76714         Define to 256, not 255, as per modern POSIX.
76715
76716 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
76717
76718         Sync from coreutils.
76719         Use "file name" when talking about file names, instead of "filename"
76720         or "path", as per the GNU coding standards.
76721         * MODULES.html.sh: mkdir-p renamed from makepath.
76722         filenamecat renamed from path-concat.
76723         * modules/filenamecat: Renamed from modules/path-concat.
76724         (Files): filenamecat.h and filenamecat.c renamed from
76725         path-concat.h and path-concat.c.
76726         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
76727         (Include): filenamecat.h, not path-concat.h.
76728         * modules/mkdir-p: Renamed from modules/makepath.
76729         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
76730         makepath.c.
76731         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
76732         (Include): mkdir-p.h, not makepath.h.
76733
76734 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
76735
76736         Sync from coreutils.
76737         * m4/mkdir-p.m4: Renamed from makepath.m4.
76738         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
76739         Rename files from makepath.c to mkdir-p.c, and from
76740         makepath.h to mkdir-p.h.
76741         * m4/filenamecat.m4: Renamed from path-concat.m4.
76742         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
76743         Rename files from path-concat.c to filenamecat.c,
76744         and from path-concat.h to filenamecat.h.
76745         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
76746         "file name" in local variables or comments.
76747         * m4/rename.m4: Likewise.
76748
76749 2005-06-01  Bruno Haible  <bruno@clisp.org>
76750
76751         * modules/csharpexec: New file.
76752         * MODULES.html.sh (C#): New section.
76753
76754 2005-06-01  Bruno Haible  <bruno@clisp.org>
76755
76756         * m4/csharp.m4: New file, from GNU gettext.
76757         * m4/csharpexec.m4: New file, from GNU gettext.
76758
76759 2005-06-01  Bruno Haible  <bruno@clisp.org>
76760
76761         * lib/csharpexec.h: New file, from GNU gettext.
76762         * lib/csharpexec.c: New file, from GNU gettext.
76763         * lib/csharpexec.sh.in: New file, from GNU gettext.
76764
76765 2005-05-31  Derek Price  <derek@ximbiot.com>
76766             Paul Eggert  <eggert@cs.ucla.edu>
76767
76768         Sync from cvs.
76769         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
76770
76771 2005-05-31  Derek Price  <derek@ximbiot.com>
76772             Paul Eggert  <eggert@cs.ucla.edu>
76773
76774         Sync from cvs.
76775         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
76776
76777 2005-05-29  Derek Price  <derek@ximbiot.com>
76778
76779         * config/srclist.txt (glob_.h, glob.c): Add these files.
76780
76781 2005-05-29  Derek Price  <derek@ximbiot.com>
76782
76783         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
76784         * modules/glob: New file.
76785         * modules/getlogin_r: Add link to POSIX spec in description.
76786
76787 2005-05-29  Derek Price  <derek@ximbiot.com>
76788             Paul Eggert  <eggert@cs.ucla.edu>
76789
76790         * m4/glob.m4: New file.
76791
76792 2005-05-29  Derek Price  <derek@ximbiot.com>
76793             Paul Eggert  <eggert@cs.ucla.edu>
76794
76795         * lib/glob_.h, lib/glob.c: New files.
76796
76797 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
76798
76799         * modules/fts (Files): Remove m4/inttypes-pri.m4.
76800         * modules/fts-lgpl (Depends-on): Remove gettext.
76801
76802 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
76803
76804         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
76805         and don't require gt_INTTYPES_PRI.
76806
76807 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
76808
76809         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
76810
76811         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
76812         the configuration hassle isn't worth it.
76813         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
76814         (LONGEST_MODIFIER, PRIuMAX): Remove.
76815
76816 2005-05-27  Bruno Haible  <bruno@clisp.org>
76817
76818         * lib/getlogin_r.h: Remove second include of <stddef.h>.
76819
76820 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
76821
76822         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
76823         _POSIX_PTHREAD_SEMANTICS for Solaris.
76824
76825 2005-05-25  Derek Price  <derek@ximbiot.com>
76826
76827         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
76828
76829 2005-05-25  Derek Price  <derek@ximbiot.com>
76830             Paul Eggert  <eggert@cs.ucla.edu>
76831
76832         * modules/getlogin_r, m4/getlogin_r.m4: New files.
76833         * lib/getlogin_r.c, getlogin_r.h: New files.
76834
76835 2005-05-25  Bruno Haible  <bruno@clisp.org>
76836             Derek Price  <derek@ximbiot.com>
76837
76838         * lib/getlogin_r.h: Simplify API documentation.
76839
76840 2005-05-23  Derek Price  <derek@ximbiot.com>
76841
76842         * modules/minmax (Files): Add m4/minmax.m4.
76843         (configure.ac): Add gl_MINMAX.
76844
76845 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
76846
76847         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
76848         so that unistd-safer.h (GPL'ed code) need not be included.
76849
76850 2005-05-22  Bruno Haible  <bruno@clisp.org>
76851
76852         * m4/minmax.m4: New file.
76853         Based on a patch by Derek Price <derek@ximbiot.com>.
76854
76855 2005-05-22  Bruno Haible  <bruno@clisp.org>
76856
76857         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
76858         (INT64_MIN): Fix definition.
76859         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
76860
76861         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
76862         NEED_SIGNED_INT_TYPES.
76863
76864         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
76865         HAVE_SYSTEM_INTTYPES.
76866
76867 2005-05-22  Bruno Haible  <bruno@clisp.org>
76868
76869         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
76870         Also include <sys/param.h> if it defines MIN, MAX.
76871         Based on a patch by Derek Price <derek@ximbiot.com>.
76872
76873 2005-05-21  Jim Meyering  <jim@meyering.net>
76874
76875         * modules/fts (Files): Add m4/inttypes-pri.m4.
76876         (Depends-on): Add lstat and remove gettext.  Alphabetize.
76877
76878 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
76879
76880         New fts module.
76881         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
76882         (setup_dir, free_dir): New functions.
76883         (enter_dir, leave_dir): Define trivial
76884         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
76885         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
76886         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
76887         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
76888         Move to fts-cycle.c.
76889         (fts_open): Use setup_dir.
76890         (fts_close): Use free_dir.
76891         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
76892         This adds a label and some gotos, but the alternatives were messier.
76893         Check for memory allocation failure when entering a dir.
76894         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
76895         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
76896         (FTS): New member fts_cycle, that is a union that contains the
76897         old active_dir_ht and cycle_state.  All uses changed to mention
76898         fts_cycle.ht and fts_cycle.state.
76899         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
76900         fts.c, with the following changes:
76901         (setup_dir, free_dir): New functions.
76902         (enter_dir): Now returns bool.  Return true if successful, false
76903         if memory exhausted.  All callers changed.
76904         Do not bother partly cleaning up on
76905         memory allocation failure; that is free_dir's job.
76906         However, free ad if hash_insert fails, to avoid memory leak.
76907         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
76908         fts->fts_options to see which union member to use.
76909
76910 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
76911
76912         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
76913         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
76914
76915 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
76916
76917         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
76918
76919 2005-05-20  Jim Meyering  <jim@meyering.net>
76920
76921         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
76922         Now a macro, to pacify GCC.
76923
76924 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
76925
76926         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
76927         of -1.
76928
76929 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
76930
76931         * lib/chown.c (rpl_chown): Return -1 on failure.
76932
76933 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
76934
76935         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
76936         Don't check for stddef.h.
76937         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
76938         don't use its results.
76939         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
76940         since we include them unconditionally.  Don't require
76941         AM_STDBOOL_H, since stdbool is a prerequisite.
76942         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
76943         since we assume C89 or better.
76944         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
76945         as we don't use their results.
76946         Don't check for fchdir, memmove, memset, strrchr, as we use
76947         them unconditionally.
76948         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
76949         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
76950
76951 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
76952
76953         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
76954         Include <stddef.h> unconditionally, since we assume C89 now.
76955         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
76956         * lib/fts.c: Include fts_.h first, to check interface.
76957         Do not include intprops.h; no longer needed.
76958         Include cycle-check.h and hash.h, since fts_.h no longer does.
76959         Remove unnecessary casts of closedir to void.
76960         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
76961         decide whether to decrement nlinks.
76962         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
76963         (FTS): Use struct hash_table * instead of Hash_table, so that
76964         we no longer need to include hash.h here.
76965
76966 2005-05-18  Jim Meyering  <jim@meyering.net>
76967
76968         * modules/dirfd (License): Change to LGPL.  Most of the code
76969         is already in the public domain.
76970
76971 2005-05-18  Jim Meyering  <jim@meyering.net>
76972
76973         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
76974         Reported by Yoann Vandoorselaere.
76975
76976 2005-05-17  Jim Meyering  <jim@meyering.net>
76977
76978         * m4/fts.m4: New file, from coreutils.
76979
76980 2005-05-17  Jim Meyering  <jim@meyering.net>
76981
76982         * lib/fts.c, lib/fts_.h: New files, from coreutils.
76983
76984 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
76985
76986         Sync from coreutils.
76987         * m4/unlinkdir.m4: New file.
76988
76989 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
76990
76991         Sync from coreutils.
76992         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
76993         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
76994         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
76995         White space changes only.
76996         * lib/makepath.c (make_path): Port to hosts where leading "//" is
76997         special.
76998         * lib/yesno.c: Include getline.h, not ctype.h.
76999         (yesno): Don't remove leading white space; POSIX doesn't allow it.
77000         Use getline to remove arbitrary restriction on response length.
77001
77002 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
77003
77004         * config/srclist-update: Spell out "Street" in FSF postal
77005         mail address; this is the style the FSF seems to prefer.
77006
77007         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
77008         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
77009         this updates FSF postal mail address.
77010
77011         Sync from coreutils.
77012         * modules/unlinkdir: New file.
77013         * modules/yesno (Depends-on): Add getline.
77014         * MODULES.html.sh (File system functions): Add unlinkdir.
77015
77016 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
77017
77018         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
77019         lib/strsep.h:
77020         Change the initial comment to refer to GPL, not LGPL.
77021         gnulib-tool will change it to LGPL as needed.
77022
77023         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
77024         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
77025         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
77026         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
77027         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
77028         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
77029         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
77030         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
77031         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
77032         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
77033         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
77034         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
77035         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
77036         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
77037         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
77038         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
77039         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
77040         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
77041         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
77042         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
77043         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
77044         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
77045         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
77046         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
77047         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
77048         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
77049         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
77050         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
77051         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
77052         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
77053         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
77054         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
77055         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
77056         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
77057         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
77058         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
77059         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
77060         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
77061         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
77062         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
77063         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
77064         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
77065         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
77066         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
77067         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
77068         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
77069         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
77070         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
77071         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
77072         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
77073         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
77074         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
77075         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
77076         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
77077         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
77078         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
77079         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
77080         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
77081         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
77082         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
77083         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
77084         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
77085         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
77086         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
77087         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
77088         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
77089         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
77090         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
77091         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
77092         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
77093         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
77094         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
77095         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
77096         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
77097         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
77098         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
77099         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
77100         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
77101         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
77102         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
77103         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
77104         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
77105         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
77106         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
77107         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
77108         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
77109         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
77110         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
77111         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
77112         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
77113         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
77114         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
77115         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
77116         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
77117         lib/yesno.c, lib/yesno.h:
77118         Update FSF postal mail address.
77119
77120 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
77121
77122         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
77123         tests/test-memmem.c, tests/test-stpncpy.c:
77124         Update FSF postal mail address.
77125
77126 2005-05-13  Bruno Haible  <bruno@clisp.org>
77127
77128         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
77129         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
77130         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
77131         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
77132         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
77133         Add support for 64-bit integers in the MSVC compiler.
77134
77135 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77136
77137         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
77138
77139 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
77140
77141         * gnulib-tool (func_import): Sort and uniquify recommended includes.
77142
77143 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
77144
77145         * doc/getdate.texi (General date syntax): Don't say that date
77146         date --iso-8601=ns generates acceptable dates; it doesn't yet.
77147         Problem reported by Nic Ferrier.
77148
77149 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77150
77151         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
77152         specified in ai_socktype. Fix invalid ai_protocol
77153         check. ai_protocol is usually set to 0 or depending on
77154         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
77155         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
77156         ai_socktype / ai_protocol in the returned addrinfo structure.
77157
77158 2005-05-10  Simon Josefsson  <jas@extundo.com>
77159
77160         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
77161         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
77162
77163 2005-05-10  Karl Berry  <karl@gnu.org>
77164
77165         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
77166         (from http://www.gnu.org/licenses).
77167         * doc/COPYING.LIB: also rename to COPYING.LESSER.
77168         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
77169         fdl.texi suffices.
77170
77171 2005-05-10  Karl Berry  <karl@gnu.org>
77172
77173         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
77174         (COPYING.DOC): remove.
77175
77176         * config/srclist-update: new FSF address.
77177
77178 2005-05-10  Derek Price  <derek@ximbiot.com>
77179
77180         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
77181         possible.
77182
77183 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77184             Bruno Haible  <bruno@clisp.org>
77185
77186         * modules/inet_ntop: New file.
77187         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
77188         inet_ntop.
77189
77190 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77191             Bruno Haible  <bruno@clisp.org>
77192
77193         * m4/inet_ntop.m4: New file.
77194
77195 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77196             Bruno Haible  <bruno@clisp.org>
77197
77198         * lib/inet_ntop.h: New file.
77199         * lib/inet_ntop.c: New file, from glibc with modifications.
77200
77201 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
77202
77203         * modules/time_r (License): Change to LGPL.
77204         * modules/extensions (License): Change to LGPL.  Actually,
77205         the license is more permissive than that, but currently gnulib-tool
77206         doesn't know how to handle more-permissive licenses.
77207
77208         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
77209         Problem reported by Dave Love.
77210
77211 2005-05-08  Jim Meyering  <jim@meyering.net>
77212
77213         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
77214         blank.
77215
77216 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
77217
77218         * modules/argmatch (Depends-on): Add stdbool.
77219         * modules/backupfile (Depends-on): Likewise.
77220         * modules/chdir-long (Depends-on): Likewise.
77221         * modules/closeout (Depends-on): Likewise.
77222         * modules/cycle-check (Depends-on): Likewise.
77223         * modules/dirname (Depends-on): Likewise.
77224         * modules/fnmatch (Depends-on): Likewise.
77225         * modules/fsusage (Depends-on): Likewise.
77226         * modules/fwriteerror (Depends-on): Likewise.
77227         * modules/getcwd (Depends-on): Likewise.
77228         * modules/getloadavg (Depends-on): Likewise.
77229         * modules/hard-locale (Depends-on): Likewise.
77230         * modules/makepath (Depends-on): Likewise.
77231         * modules/mountlist (Depends-on): Likewise.
77232         * modules/nanosleep (Depends-on): Likewise.
77233         * modules/posixtm (Depends-on): Likewise.
77234         * modules/quotearg (Depends-on): Likewise.
77235         * modules/readtokens (Depends-on): Likewise.
77236         * modules/readtokens0 (Depends-on): Likewise.
77237         * modules/readutmp (Depends-on): Likewise.
77238         * modules/save-cwd (Depends-on): Likewise.
77239         * modules/strftime (Depends-on): Likewise.
77240         * modules/userspec (Depends-on): Likewise.
77241         * modules/utimecmp (Depends-on): Likewise.
77242         * modules/xgetcwd (Depends-on): Likewise.
77243         * modules/xnanosleep (Depends-on): Likewise.
77244         * modules/xstrtod (Depends-on): Likewise.
77245         * modules/yesno (Depends-on): Likewise.
77246
77247 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
77248
77249         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
77250         needless checks.
77251
77252 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
77253
77254         Merge from coreutils.  Among other things,
77255         add bulletproofing for cases where stdin, stdout, or stderr are closed.
77256         * lib/fd-safer.c: New file.
77257         * lib/fcntl-safer.h, open-safer.c: Remove.
77258         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
77259         * lib/dup-safer.c: Include unistd-safer.h first.
77260         Don't include errno.h.
77261         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
77262         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
77263         * lib/file-type.c: Rely on file-type.h change.
77264         * lib/getloadavg.c: Include unistd-safer.h.
77265         (getloadavg): Use safer open.
77266         * lib/getusershell.c: Include "stdio-safer.h".
77267         (getusershell): Use safer fopen.
77268         * lib/long-options.c (long_options): Use NULL rather than 0.
77269         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
77270         'free'.
77271         * lib/modechange.c: Likewise.
77272         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
77273         (MODE_DONE): New constant.
77274         (struct mode_change): Remove 'next' member.
77275         (make_node_op_equals): New function; like the old one of the
77276         same name, except it allocates an array.
77277         (mode_compile, mode_create_from_ref): Use it.
77278         (mode_compile): Allocate result as an array, not a linked list.
77279         Parse octal string ourself, so that we catch mistakes like "+0".
77280         (mode_adjust): Arg is an array, not a linked list.
77281         * lib/modechange.c: Include stat-macros.h, xalloc.h.
77282         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
77283         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
77284         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
77285         Remove.  This is now stat-macros.h's job.
77286         (talloc): Remove.  All callers replaced by xalloc, so that
77287         our invokers don't have to worry about reporting memory failures.
77288         (make_node_op_equals): Remove.
77289         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
77290         New constants.
77291         (struct mode_change): Moved here from modechange.h.
77292         (mode_append_entry): Remove.
77293         (mode_compile): Remove MASKED_OPS arg, since it encouraged
77294         apps to have incorrect behavior.  Use simpler algorithm for head
77295         and tail.  Don't futz with umask; that's now the job of mode_adjust.
77296         Detect more invalid usages rather than having somewhat-random behavior.
77297         Don't insert an "a=" action, as that leads to incorrect behavior.
77298         (mode_compile, mode_create_from_ref): Return NULL on error instead
77299         of an enum, since now there's only one way to have an error.  All
77300         callers changed.
77301         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
77302         at the correct time.  Simplify calculation of "+u" and its ilk.
77303         Don't mishandle "+X".
77304         (mode_free): Remove "register" and localize decls.
77305         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
77306         (struct mode_change): Move to modechange.c; callers don't
77307         need to see this stuff.
77308         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
77309         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
77310         (mode_change, mode_adjust): Reflect the new signatures noted above.
77311         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
77312         that might redefine system include files.
77313         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
77314         (my_usleep): Use NULL rather than (void *) 0.
77315         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
77316         Use siginterrupt to specify that system calls should be interrupted.
77317         (rpl_nanosleep): Move initialization of suspended closer to call of
77318         my_usleep.
77319         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
77320         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
77321         (desirable_utmp_entry): New function.
77322         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
77323         using x2nrealloc, to simplify logic.
77324         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
77325         size calculation.  Do not assume utmp file is a regular file.
77326         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
77327         (READ_UTMP_CHECK_PIDS): New constant.
77328         * lib/save-cwd.c: Include unistd-safer.h.
77329         (save_cwd): Use fd_safer.
77330         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
77331         [!_LIBC] Include "stat-macros.h" instead.
77332         * lib/unistd-safer.h (fd_safer): New decl.
77333
77334 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
77335
77336         * modules/getloadavg (Depends-on): Add unistd-safer.
77337         * modules/getusershell (Depends-on): Add stdio-safer.
77338         * modules/lstat (Depends-on): Remove xalloc.
77339         * modules/mkstemp (Depends-on): Add stat-macros.
77340         * modules/modechange (Depends-on): Remove xstrtol.
77341         Add stat-macros, xalloc.
77342         * modules/save-cwd (Depends-on): Add unistd-safer.
77343         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
77344         * modules/unistd-safer (Files): Add lib/fd-safer.c
77345         (Makefile.am): Remove lib_SOURCES.
77346
77347         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
77348         Remove fcntl-safer; unistd-safer supersedes it.
77349
77350 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
77351
77352         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
77353         AC_HEADER_STAT.
77354         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
77355         (gl_PREREQ_CHOWN): Remove.
77356         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
77357         it.  Don't require AC_HEADER_STAT.
77358         (gl_PREREQ_LSTAT): Remove.
77359         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
77360         Don't require AC_HEADER_STAT.
77361         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
77362         (gl_PREREQ_RMDIR): Remove.
77363         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
77364         mention stat-macros.h or AC_HEADER_STAT, since we'll make
77365         the stat-macros module a prerequisite.
77366         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
77367         * m4/filemode.m4 (gl_FILEMODE): Likewise.
77368         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
77369         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
77370         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
77371         variable names.
77372         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
77373         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
77374         variable prefixes.
77375         * m4/fcntl-safer.m4: Remove.
77376         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
77377         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
77378         Invoke gl_PREREQ_FD_SAFER.
77379         (gl_PREREQ_FD_SAFER): New macro.
77380         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
77381         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
77382         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
77383         Remove duplicate call to AC_LIBOBJ(readutmp).
77384         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
77385
77386         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
77387         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
77388
77389 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
77390
77391         * MODULES.html.sh (Misc): Add byteswap.
77392
77393 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
77394
77395         * modules/getcwd (Depends-on): Add extensions.
77396         * modules/openat (Depends-on): Likewise.
77397
77398 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
77399
77400         * modules/byteswap: New file.
77401
77402 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
77403
77404         * m4/byteswap.m4: New file.
77405
77406 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
77407
77408         * lib/byteswap_.h: New file.
77409
77410 2005-04-25  Karl Berry  <karl@gnu.org>
77411
77412         * m4/gettext.m4: Update from GNU gettext 0.14.4.
77413
77414 2005-04-25  Albert Chin  <china@thewrittenword.com>
77415
77416         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
77417         Toolkit C bug.
77418
77419 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
77420
77421         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
77422         (func_ln_if_changed): Remove forcibly for no error message
77423         in case file does not exist.
77424
77425 2005-04-19  Simon Josefsson  <jas@extundo.com>
77426
77427         * gnulib-tool (Options): Make --symlink mean --symbolic.
77428
77429 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
77430
77431         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
77432
77433 2005-04-16  Simon Josefsson  <jas@extundo.com>
77434
77435         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
77436
77437 2005-04-15  Simon Josefsson  <jas@extundo.com>
77438
77439         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
77440
77441 2005-04-15  Simon Josefsson  <jas@extundo.com>
77442
77443         * gnulib-tool: Rename --symlink to --symbolic.
77444
77445 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
77446
77447         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
77448         symbolic links to files instead of copying/moving.  Add --aux-dir,
77449         specifying directory relative --dir where auxiliary build tools
77450         are placed.
77451
77452 2005-04-14  Bruno Haible  <bruno@clisp.org>
77453
77454         * modules/allocsa (License): Change to LGPL.
77455         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
77456
77457 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
77458
77459         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
77460         that "UTC +1 second" continues to work.  Problem reported
77461         by Dmitry V. Levin.
77462         (relunit_snumber): New rule.
77463         (relunit): Use it.
77464
77465 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
77466
77467         * lib/getdate.y (universal_time_zone_table): New constant.
77468         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
77469         universal_time_zone_table.
77470         (lookup_zone): Prefer universal_time_zone_table to
77471         local_time_zone_table, so that "GMT" time stamps are allowed in
77472         London during the summer.  Problem reported by Ian Abbott.
77473
77474 2005-04-12  Jim Meyering  <jim@meyering.net>
77475
77476         * lib/human.c (humblock): Set *options even when returning due to
77477         xstrtoumax conversion failure.  Thanks to a used-uninitialized
77478         warning from gcc-4.
77479
77480 2005-04-09  Jim Meyering  <jim@meyering.net>
77481
77482         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
77483         -Wuninitialized: initialize tm0.tm_year.
77484
77485 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
77486
77487         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
77488         count, since there's no maximum.  All uses changed.
77489         Add member dsts_seen.
77490         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
77491         not being INT_MAX.
77492         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
77493         Use pc_rels_seen to decide whther a date is absolute.
77494
77495         * lib/getdate.y (number): Don't overwrite year.
77496         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
77497         check.
77498
77499 2005-04-02  Simon Josefsson  <jas@extundo.com>
77500
77501         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
77502         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
77503
77504 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
77505
77506         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
77507         where no absolute path name can be longer than PATH_MAX.
77508
77509 2005-03-27  Jim Meyering  <jim@meyering.net>
77510
77511         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
77512
77513 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
77514
77515         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
77516         "one's complement" -> "ones' complement" in comment, as per Knuth.
77517         "value of type" -> "type or expression" in comment.
77518         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
77519
77520 2005-03-26  Jim Meyering  <jim@meyering.net>
77521
77522         Comment nits.
77523         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
77524         Correct typos: s/or/of/.
77525
77526 2005-03-26  Jim Meyering  <jim@meyering.net>
77527
77528         * modules/check-include-files: Move to ../ and rename to...
77529         * check-module: ...this.
77530
77531 2005-03-25  Jim Meyering  <jim@meyering.net>
77532
77533         * modules/xvasprintf (Files): Add xalloc.h.
77534
77535 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
77536
77537         * modules/gettext (Files): config/config.rpath ->
77538         build-aux/config.rpath
77539         * modules/iconv (Files): Likewise.
77540         Problem reported by Oskar Liljeblad.
77541
77542 2005-03-23  Jim Meyering  <jim@meyering.net>
77543
77544         * modules/check-include-files: New script to check for
77545         missing dependencies, multiple includes, etc.
77546
77547         * modules/c-strtold (Depends-on): Add xalloc.
77548         * modules/c-strtod (Depends-on): Add xalloc.
77549         * modules/hash (Depends-on): Add xalloc.
77550         (Files): Remove lib/xalloc.h.
77551
77552         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
77553         * modules/userspec (Files): Add lib/inttostr.h.
77554
77555 2005-03-23  Jim Meyering  <jim@meyering.net>
77556
77557         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
77558
77559 2005-03-22  Jim Meyering  <jim@meyering.net>
77560
77561         * modules/stat-macros: New module.
77562         * modules/canonicalize, modules/euidaccess, modules/file-type,
77563         * modules/filemode, modules/lchown, modules/makepath,
77564         * modules/rmdir, modules/stat: Depend on new stat-macros module
77565         rather than listing lib/stat-macros.h manually.
77566         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
77567
77568 2005-03-22  Jim Meyering  <jim@meyering.net>
77569
77570         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
77571
77572 2005-03-22  Bruno Haible  <bruno@clisp.org>
77573
77574         * config/srclist.txt: Replace target directory 'config' with
77575         'build-aux'.
77576         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
77577         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
77578         ../build-aux/.
77579
77580 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
77581
77582         * modules/chdir-long (Depends-on): Add mempcpy.
77583
77584         * modules/acl, modules/backupfile, modules/c-strtod,
77585         modules/c-strtold, modules/canon-host, modules/canonicalize,
77586         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
77587         modules/exclude, modules/exitfail, modules/file-type,
77588         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
77589         modules/getdate, modules/getline, modules/getpagesize,
77590         modules/getpass, modules/getugroups, modules/group-member,
77591         modules/hard-locale, modules/hash, modules/human, modules/idcache,
77592         modules/inttostr, modules/long-options, modules/makepath,
77593         modules/md5, modules/memcasecmp, modules/memcoll,
77594         modules/modechange, modules/mountlist, modules/path-concat,
77595         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
77596         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
77597         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
77598         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
77599         modules/strftime, modules/strndup, modules/strverscmp,
77600         modules/timespec, modules/unlocked-io, modules/userspec,
77601         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
77602         modules/yesno:
77603         Remove lib_SOURCES line from Makefile.am section, as this is now
77604         done automatically by the corresponding Autoconf macro.
77605
77606 2005-03-21  Jim Meyering  <jim@meyering.net>
77607
77608         Changes imported from coreutils.
77609
77610         * lib/cycle-check.c: Don't include xalloc.h.
77611
77612         * lib/path-concat.c: Don't include assert.h.
77613         (path_concat): Remove assertion that would have triggered
77614         for ABASE starting with more than one slash.
77615         Reported by Andreas Schwab.
77616
77617         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
77618         properly when ABASE is an absolute file name.
77619         Correct the description of this function.
77620         Include <assert.h>.
77621         Add an assertion and a test driver.
77622         This fixes a bug introduced on 2004-07-02.
77623         Andreas Schwab reported the resulting failure of cp --parents:
77624         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
77625
77626 2005-03-21  Jim Meyering  <jim@meyering.net>
77627
77628         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
77629         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
77630
77631 2005-03-21  Jim Meyering  <jim@meyering.net>
77632         and  Paul Eggert  <eggert@cs.ucla.edu>
77633
77634         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
77635         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
77636         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
77637         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
77638         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
77639         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
77640         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
77641         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
77642         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
77643         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
77644         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
77645         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
77646         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
77647         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
77648         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
77649         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
77650         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
77651         for these modules.
77652
77653 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
77654
77655         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
77656         (which shouldn't happen), generate nothing instead of returning 0
77657         immediately, so that nstrftime (NULL, ...) doesn't return 0.
77658
77659 2005-03-16  Bruno Haible  <bruno@clisp.org>
77660
77661         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
77662         HAVE_LONGLONG_64BIT.
77663
77664 2005-03-16  Bruno Haible  <bruno@clisp.org>
77665
77666         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
77667         HAVE_LONGLONG_64BIT.
77668
77669 2005-03-16  Bruno Haible  <bruno@clisp.org>
77670
77671         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
77672         HAVE_LONGLONG_64BIT.
77673
77674 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
77675
77676         * lib/strftime.c (my_strftime): Prepend space to format so that we can
77677         reliably distinguish strftime failure from empty output on POSIX
77678         hosts.
77679
77680 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
77681
77682         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
77683         (iconv_string): Don't guess a size-zero buffer, as that might cause
77684         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
77685         result would be 'too large', where 'too large' is (heuristically)
77686         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
77687         overflow concerns.  This will prevent some unwanted malloc failures
77688         when the inputs are very large.
77689
77690 2005-03-15  Karl Berry  <karl@gnu.org>
77691
77692         * config/srclist.txt (config.rpath): from gettext.
77693         * config/config.rpath: update.
77694
77695 2005-03-15  Bruno Haible  <bruno@clisp.org>
77696
77697         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
77698         to 'negate'.
77699
77700         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
77701         variable.
77702
77703         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
77704         results.
77705
77706 2005-03-14  Simon Josefsson  <jas@extundo.com>
77707
77708         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
77709         <fx@gnu.org>.
77710
77711 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
77712
77713         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
77714         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
77715         intprops.h.
77716         * lib/strtol.c: Likewise.
77717
77718 2005-03-14  Jim Meyering  <jim@meyering.net>
77719
77720         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
77721         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
77722         to be nonzero so that we (and caller) can detect the difference
77723         between a valid zero-length expansion and an error return, even
77724         when the underlying strftime fails before writing anything into
77725         that location.
77726
77727 2005-03-14  Bruno Haible  <bruno@clisp.org>
77728
77729         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
77730         Update from GNU gettext 0.14.3.
77731
77732 2005-03-10  Jim Meyering  <jim@meyering.net>
77733
77734         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
77735
77736 2005-03-10  Jim Meyering  <jim@meyering.net>
77737
77738         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
77739         so that this module works on systems without fchdir.
77740
77741 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
77742
77743         Factor int-properties macros into a single file, except for
77744         glibc-related files.
77745         * lib/intprops.h: New file.
77746         * lib/getloadavg.c: Include it instead of limits.h.
77747         (INT_STRLEN_BOUND): Remove.
77748         * lib/human.c: Include intprops.h.
77749         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
77750         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
77751         302/1000.
77752         * lib/inttostr.h: Include intprops.h instead of limits.h.
77753         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
77754         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
77755         for consistency with intprops.h.
77756         (time_t_is_integer, twos_complement_arithmetic): Use them.
77757         * lib/sig2str.h: Include <signal.h>, intprops.h.
77758         (INT_STRLEN_BOUND): Remove.
77759         * lib/strftime.c (TYPE_SIGNED): Remove.
77760         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
77761         * lib/strtol.c: Adjust comments to match intprops.h.
77762         * lib/userspec.c: Include intprops.h.
77763         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
77764         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
77765         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
77766         instead of rolling our own expressions.
77767         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
77768
77769         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
77770         instead of int.
77771         (my_strftime): Do not mishandle years close to INT_MAX, by doing
77772         the right thing even if adding 1900 would overflow.  Similarly
77773         for tm_mon + 1 and tm_yday + 1.
77774         Make %Y always equivalent to %C%y, and similarly for %G and %g.
77775         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
77776         (DO_SIGNED_NUMBER): New macro.
77777         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
77778
77779 2005-03-07  Bruno Haible  <bruno@clisp.org>
77780
77781         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
77782
77783 2005-03-07  Bruno Haible  <bruno@clisp.org>
77784
77785         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
77786
77787 2005-03-04  Derek R. Price  <derek@ximbiot.com>
77788
77789         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
77790         (func_import): Only replace files via --import when they have actually
77791         changed.
77792
77793 2005-03-03  Derek R. Price  <derek@ximbiot.com>
77794
77795         * m4/mmap-anon.m4: New file.
77796         * m4/pagealign_alloc.m4: New file.
77797
77798 2005-03-03  Derek R. Price  <derek@ximbiot.com>
77799             Bruno Haible  <bruno@clisp.org>
77800
77801         * modules/pagealign_alloc: New file.
77802         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
77803
77804 2005-03-03  Derek R. Price  <derek@ximbiot.com>
77805             Bruno Haible  <bruno@clisp.org>
77806
77807         * lib/pagealign_alloc.h: New file.
77808         * lib/pagealign_alloc.c: New file.
77809
77810 2005-03-03  Bruno Haible  <bruno@clisp.org>
77811
77812         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
77813         Use an all-permissive copyright notice, recommended by RMS.
77814
77815 2005-03-02  Bruno Haible  <bruno@clisp.org>
77816
77817         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
77818         of AIX, the replacement has to be done only after <string.h> is
77819         included, therefore not in config.h. stpncpy.h does the replacement,
77820         and stpncpy.c uses it.
77821
77822 2005-03-02  Bruno Haible  <bruno@clisp.org>
77823
77824         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
77825         stpncpy.c uses it.
77826
77827 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
77828
77829         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
77830         The workaround isn't strictly needed for POSIX conformance, and
77831         it's too much of a pain to configure and maintain.  We'll ask
77832         people to fix their kernels instead.
77833         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
77834         (NANOSLEEP_BUG_WORKAROUND): Remove.
77835         (xnanosleep): Remove the workaround.
77836
77837 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
77838
77839         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
77840         Reported by Derek Price.
77841         (Include): Add "timespec.h".
77842
77843         * modules/xnanosleep (Depends-on): Remove gethrxtime.
77844
77845 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
77846
77847         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
77848         to detect nanosleep bug.
77849
77850 2005-03-01  Bruno Haible  <bruno@clisp.org>
77851
77852         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
77853
77854 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
77855
77856         * modules/gethrxtime: New file.
77857         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
77858         (Depends-on): Add gethrxtime.
77859         (configure.ac): Add gl_XNANOSLEEP.
77860         (Makefile.am): Remove lib_SOURCES line.
77861
77862 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
77863
77864         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
77865         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
77866
77867 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
77868
77869         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
77870         * lib/timespec.h (gettime): Return void, since it always
77871         succeeds now.  All uses changed.
77872         * lib/gettime.c (gettime): Likewise.
77873         [HAVE_NANOTIME]: Prefer nanotime.
77874         Assume gettimeofday succeeds, as POSIX requires.
77875         Assime time () succeeds, since other code already does.
77876         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
77877         (timespec_subtract): Remove.
77878         (NANOSLEEP_BUG_WORKAROUND): New constant.
77879         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
77880         things considerably.  Use it only on GNU/Linux hosts, since the
77881         workaround shouldn't be needed elsewhere.
77882
77883 2005-02-24  Bruno Haible  <bruno@clisp.org>
77884
77885         * modules/gettext (Files): Add m4/glibc2.m4.
77886
77887 2005-02-24  Bruno Haible  <bruno@clisp.org>
77888
77889         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
77890         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
77891         * m4/progtest.m4:
77892         Update from GNU gettext 0.14.2.
77893         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
77894
77895 2005-02-24  Bruno Haible  <bruno@clisp.org>
77896
77897         * lib/localcharset.c: Update from GNU gettext 0.14.2.
77898         * lib/config.charset: Update from GNU gettext 0.14.2.
77899
77900 2005-02-24  Bruno Haible  <bruno@clisp.org>
77901
77902         * lib/gettext.h: Update from GNU gettext 0.14.2.
77903
77904 2005-02-23  Simon Josefsson  <jas@extundo.com>
77905
77906         * m4/iconvme.m4: New file.
77907
77908 2005-02-23  Jim Meyering  <jim@meyering.net>
77909
77910         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
77911         change.
77912         Thanks to Bruno Haible for catching it.
77913
77914 2005-02-22  Simon Josefsson  <jas@extundo.com>
77915
77916         * modules/iconvme: New file.
77917
77918         * MODULES.html.sh: Add iconvme.
77919
77920 2005-02-22  Simon Josefsson  <jas@extundo.com>
77921
77922         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
77923
77924 2005-02-22  Simon Josefsson  <jas@extundo.com>
77925
77926         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
77927
77928 2005-02-22  Jim Meyering  <jim@meyering.net>
77929
77930         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
77931         s/ifndef/ifdef/.
77932
77933 2005-02-20  Neil Conway  <neilc@samurai.com>
77934
77935         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
77936         returned by OSX/Darwin if the specified buffer is not large
77937         enough for the hostname.
77938
77939 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77940
77941         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
77942         pass it to _help, otherwise the latter coredumps trying to
77943         dereference state.root_argp.
77944
77945 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
77946
77947         * modules/chdir-long (Depends-on): Add memrchr.
77948         * modules/memrchr (Files): Add lib/memrchr.h.
77949         (Include): "memrchr.h".
77950
77951 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
77952
77953         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
77954
77955 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
77956
77957         * lib/memrchr.h: New file.
77958         * lib/chdir-long.c: Include it.
77959         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
77960         Don't bother including stddef.h.
77961
77962 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
77963
77964         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
77965         inclusion.
77966         Include <sys/types.h>, for dev_t.
77967         (ME_DUMMY, ME_REMOTE): Move from here....
77968         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
77969         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
77970         Dmitry V. Levin.
77971         Include mountlist.h first, to test the interface.
77972
77973 2005-01-29  Bruno Haible  <bruno@clisp.org>
77974
77975         * lib/progname.c (program_name): Initialize.
77976         Needed when linking statically on MacOS X.
77977
77978 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
77979
77980         Sync from coreutils.
77981         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
77982         (Depends-on): Add c-strtod.
77983         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
77984
77985 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
77986
77987         Sync from coreutils.
77988         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
77989
77990         Remove files that are specific to coreutils.
77991         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
77992
77993 2005-01-28  Bruno Haible  <bruno@clisp.org>
77994
77995         * modules/javacomp: New file.
77996         * MODULES.html.sh (Java): Add javacomp.
77997
77998 2005-01-28  Bruno Haible  <bruno@clisp.org>
77999
78000         * m4/javacomp.m4: New file, from GNU gettext.
78001
78002 2005-01-28  Bruno Haible  <bruno@clisp.org>
78003
78004         * lib/javacomp.sh.in: New file, from GNU gettext.
78005         * lib/javacomp.h: New file, from GNU gettext.
78006         * lib/javacomp.c: New file, from GNU gettext.
78007
78008 2005-01-26  Simon Josefsson  <jas@extundo.com>
78009
78010         * lib/gai_strerror.c: Use GPL in header.
78011
78012 2005-01-26  Bruno Haible  <bruno@clisp.org>
78013
78014         * modules/javaexec: New file.
78015         * MODULES.html.sh (Java): Add javaexec.
78016
78017 2005-01-26  Bruno Haible  <bruno@clisp.org>
78018
78019         * m4/javaexec.m4: New file, from GNU gettext.
78020
78021 2005-01-26  Bruno Haible  <bruno@clisp.org>
78022
78023         * lib/javaexec.sh.in: New file, from GNU gettext.
78024         * lib/javaexec.h: New file, from GNU gettext.
78025         * lib/javaexec.c: New file, from GNU gettext.
78026
78027 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78028
78029         * modules/lchown (Depends-on): Remove lchown.h
78030
78031 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78032
78033         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
78034         must be defined if the header file was not found, in order
78035         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
78036
78037 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78038
78039         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
78040         initializers for struct pentry_state.
78041         (__argp_error): Check return value of __asprintf
78042         (__argp_failure): Translate error message
78043
78044         * lib/argp-parse.c: Removed braces around the expansion of N_()
78045
78046 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
78047
78048         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
78049         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
78050         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
78051         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
78052         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
78053         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
78054         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
78055         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
78056         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
78057         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
78058         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
78059         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
78060         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
78061         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
78062         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
78063         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
78064         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
78065         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
78066         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
78067         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
78068         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
78069         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
78070         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
78071         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
78072         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
78073         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
78074         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
78075         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
78076         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
78077         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
78078         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
78079         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
78080         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
78081         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
78082         xstrtol.m4, xstrtoumax.m4, yesno.m4:
78083         Use an all-permissive copyright notice, recommended by RMS.
78084
78085 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
78086
78087         * modules/chdir-long (Depends-on): Remove mempcpy.
78088
78089 2005-01-21  Jim Meyering  <jim@meyering.net>
78090
78091         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
78092         same value as for Solaris 9.
78093
78094         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
78095         component length.  This included changing the parameter to be
78096         of type `char *' rather than `char const *'.
78097         * lib/chdir-long.h (chdir_long): Update prototype.
78098
78099         * lib/openat.c (fdopendir, fstatat): New functions.
78100         * lib/openat.h: Include headers required for use of DIR and struct
78101         stat.
78102         [AT_SYMLINK_NOFOLLOW]: Define.
78103         (fdopendir, fstatat): Add prototypes.
78104
78105 2005-01-21  Bruno Haible  <bruno@clisp.org>
78106
78107         * modules/classpath: New file.
78108         * MODULES.html.sh (Java): Add classpath.
78109
78110 2005-01-21  Bruno Haible  <bruno@clisp.org>
78111
78112         * lib/classpath.h: New file, from GNU gettext.
78113         * lib/classpath.c: New file, from GNU gettext.
78114
78115 2005-01-20  Simon Josefsson  <jas@extundo.com>
78116
78117         * modules/version-etc-fsf: New file.
78118
78119 2005-01-20  Simon Josefsson  <jas@extundo.com>
78120
78121         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
78122         * lib/version-etc.c: Remove version_etc_copyright.
78123         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
78124         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
78125
78126 2005-01-20  Simon Josefsson  <jas@extundo.com>
78127
78128         * lib/base64.h (isbase64): Add.
78129
78130         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
78131         using a unsigned prototype, don't inline.
78132         (base64_decode): Use it.
78133
78134 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
78135
78136         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
78137         it.
78138
78139 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
78140
78141         * lib/save-cwd.c (save_cwd): Remove code to support the case
78142         where fchdir is missing or flaky.
78143
78144 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
78145
78146         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
78147
78148 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
78149
78150         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
78151         AC_LIBSOURCES now does this.
78152         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
78153         with new ullong_max module.
78154
78155 2005-01-19  Bruno Haible  <bruno@clisp.org>
78156
78157         * modules/sh-quote: New file.
78158         * MODULES.html.sh (Executing programs): Add sh-quote.
78159
78160 2005-01-19  Bruno Haible  <bruno@clisp.org>
78161
78162         * lib/sh-quote.h: New file, from GNU gettext.
78163         * lib/sh-quote.c: New file, from GNU gettext.
78164
78165 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
78166
78167         Merge from coreutils.
78168         * m4/ullong_max.m4: New file.
78169         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
78170         (gl_MACROS): Assume localeconv exists.
78171
78172 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
78173
78174         Merge changes from coreutils, as described below in several
78175         changelogs dated today.
78176
78177         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
78178         (O_DIRECTORY): Remove; not needed here, since "." must be
78179         a directory.  All uses removed.
78180         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
78181         universal on Suns, and we also need to test for IRIX.
78182         Revamp code to use 'if' rather than '#if'.
78183         Avoid unnecessary comparison of cwd->desc to 0.
78184
78185         * lib/utimens.c (futimens): Robustify the previous patch, by checking
78186         for known valid error numbers rather than observed invalid ones.
78187
78188 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
78189
78190         * modules/ullong_max: New file.
78191
78192         * modules/chdir-long, modules/openat: New files.
78193         * modules/save-cwd (Depends-on): Depend on chdir-long.
78194         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
78195
78196 2005-01-18  Jim Meyering  <jim@meyering.net>
78197
78198         Merge from coreutils.
78199         * m4/chdir-long.m4, m4/openat.m4: New files.
78200         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
78201         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
78202         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
78203         is sane and DOES follow symlinks.  Besides, testing 20 different
78204         systems found no broken chown implementations.
78205         Prompted by a change in rsync's copy of this macro.
78206         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
78207
78208         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
78209
78210         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
78211         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
78212         NULL-means-set-to-current-time semantics.
78213         Remove temporary file immediately, rather than waiting
78214         for configure's at-exit trap code to do it.
78215
78216 2005-01-18  Jim Meyering  <jim@meyering.net>
78217
78218         * lib/version-etc.c (version_etc_copyright): Update copyright date.
78219
78220         * lib/utimens.c (futimens): Account for the fact that futimes
78221         can also fail with errno == ENOSYS or errno == ENOENT.
78222         Patch from Dmitry V. Levin.
78223
78224         Change the name of the robust chdir function from chdir to chdir_long.
78225         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
78226         (restore_cwd): Use chdir_long, not chdir.
78227         * lib/chdir-long.c: Renamed from chdir.c.
78228         * lib/chdir-long.h: Renamed from chdir.h.
78229         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
78230         Hurd.
78231
78232 2005-01-18  Bruno Haible  <bruno@clisp.org>
78233
78234         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
78235         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
78236         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
78237         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
78238         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
78239         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
78240         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
78241         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
78242         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
78243         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
78244         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
78245         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
78246         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
78247         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
78248         Use an all-permissive copyright notice, recommended by RMS.
78249
78250 2005-01-18  Bob Proulx  <bob@proulx.com>
78251
78252         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
78253         simplify offsetof() macro construct to avoid compile failure with
78254         native HP-UX 11.0 ANSI C compiler.
78255
78256 2005-01-17  Bruno Haible  <bruno@clisp.org>
78257
78258         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
78259         redundant because stpncpy.m4 takes care of it.
78260
78261 2005-01-17  Bruno Haible  <bruno@clisp.org>
78262
78263         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
78264
78265 2005-01-17  Bruno Haible  <bruno@clisp.org>
78266
78267         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
78268         used.
78269
78270 2005-01-17  Bruno Haible  <bruno@clisp.org>
78271
78272         * lib/fwriteerror.h (fwriteerror): Change specification to include
78273         fclose.
78274         * lib/fwriteerror.c: Include <stdbool.h>.
78275         (fwriteerror): At the end, close the file stream. Record whether
78276         stdout was already closed.
78277
78278 2005-01-17  Bruno Haible  <bruno@clisp.org>
78279
78280         * lib/execute.c (environ): Declare if needed.
78281         * lib/pipe.c (environ): Likewise.
78282         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
78283
78284 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78285
78286         * modules/argp: Depend on vsnprintf
78287
78288 2005-01-10  Jim Meyering  <jim@meyering.net>
78289
78290         * modules/closeout (Depends-on): Add atexit.
78291
78292 2005-01-06  Bruno Haible  <bruno@clisp.org>
78293
78294         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
78295
78296 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
78297
78298         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
78299         definitions to be after all include files, to avoid collisions.
78300         Problem reported by Bob Proulx.
78301
78302 2005-01-04  Jim Meyering  <jim@meyering.net>
78303
78304         Changes imported from coreutils.
78305         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
78306         as the mkstemp template, use a temporary directory and an
78307         8.3-friendly template to avoid trouble on systems like DJGPP.
78308         Reported by Juan M. Guerrero via Stepan Kasal.
78309         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
78310         close. Remove the temporary directory right away, rather than waiting
78311         for configure's at-exit trap code to do it.
78312         Suggestion from Stepan Kasal.
78313
78314 2005-01-01  Simon Josefsson  <jas@extundo.com>
78315
78316         * gnulib-tool: Print #include directives when --import'ing.
78317
78318 2004-12-28  Simon Josefsson  <jas@extundo.com>
78319
78320         * tests/test-base64.c: Include required header files.  Remove
78321         unused variables.
78322
78323 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
78324
78325         * modules/error (Depends-on): Remove gettext.
78326
78327 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
78328
78329         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
78330         not needed.  This removes a dependency on the gettext module.
78331         [defined _LIBC]: Do not include <libintl.h>; not needed.
78332
78333 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
78334
78335         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
78336         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
78337
78338 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
78339
78340         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
78341         HAVE_DECL_STRTOLD.
78342
78343 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
78344
78345         * modules/getdate (Depends-on): Remove alloca-opt.
78346
78347 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
78348
78349         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
78350
78351 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
78352
78353         * lib/argp-parse.c: Include <stddef.h>.
78354         (alignof, alignto): New macros.
78355         (parser_init): Don't assume that void * is aligned sufficiently
78356         for struct option.
78357
78358         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
78359         need to extend the stack.
78360         (YYINITDEPTH): New macro, so that the initial stack isn't overly
78361         large.
78362
78363 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78364
78365         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
78366
78367 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
78368
78369         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
78370         (2004-10-24) change.  Apparently this was a false alarm.
78371
78372         * modules/getdate: Depend on alloca-opt, not alloca.
78373
78374 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
78375
78376         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
78377         Remove now-obsolete comment about AIX.
78378         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
78379         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
78380         (YYMAXDEPTH): New macro.
78381
78382 2004-12-18  Simon Josefsson  <jas@extundo.com>
78383
78384         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
78385
78386 2004-12-18  Bruno Haible  <bruno@clisp.org>
78387
78388         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
78389
78390 2004-12-18  Bruno Haible  <bruno@clisp.org>
78391
78392         * lib/fatal-signal.c (fatal_signals): Make non-const.
78393         (init_fatal_signals): New function.
78394         (uninstall_handlers, install_handlers): Ignore signals that were set to
78395         SIG_IGN.
78396         (at_fatal_signal): Call init_fatal_signals.
78397         (init_fatal_signal_set): Likewise. Ignore signals that were set to
78398         SIG_IGN.
78399         Reported by Paul Eggert.
78400
78401 2004-12-18  Bruno Haible  <bruno@clisp.org>
78402
78403         * doc/alloca.texi: New file.
78404         * doc/alloca-opt.texi: New file.
78405
78406 2004-12-17  Jim Meyering  <jim@meyering.net>
78407
78408         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
78409         Otherwise, install-sh could exit with improper exit status when
78410         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
78411
78412 2004-12-16  Simon Josefsson  <jas@extundo.com>
78413
78414         * tests/test-base64.c: Add license.
78415
78416 2004-12-15  Stepan Kasal  <address@hidden>
78417
78418         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
78419
78420 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
78421
78422         * modules/getcwd (Files): Add m4/d-ino.m4.
78423         Suggested by Mark D. Baushke.
78424
78425 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
78426
78427         * lib/getdate.y (textint): New member "negative".
78428         (time_zone_hhmm): New function.
78429         Expect 14 shift-reduce conflicts, not 13.
78430         (o_colon_minutes): New rule.
78431         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
78432         (yylex): Set the "negative" member of signed numbers.
78433
78434 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
78435
78436         * doc/getdate.texi (Time of day items, Time zone items):
78437         Describe new formats +00:00, UTC+00:00.
78438
78439 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
78440
78441         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
78442         spurious "-l"s.  Problem reported by Stepan Kasal.
78443
78444 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
78445
78446         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
78447         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
78448
78449 2004-12-04  Simon Josefsson  <jas@extundo.com>
78450
78451         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
78452         Vandoorselaere <yoann@prelude-ids.org>.
78453
78454 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
78455
78456         Changes imported from coreutils.
78457         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
78458         exist.
78459         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
78460
78461 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
78462
78463         Changes imported from coreutils.
78464         * lib/hard-locale.c: Assume <locale.h> exists.
78465         Include "strdup.h".
78466         (GLIBC_VERSION): New macro.
78467         (hard_locale): Assume setlocale exists.
78468         Rewrite to avoid #ifdef.
78469         Use strdup rather than malloc + strcpy.
78470         * lib/human.c: Assume <locale.h> exists.
78471         (human_readable): Assume localeconv exists.
78472
78473 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
78474
78475         * modules/hard-locale (Depends-on): Add strdup.
78476
78477 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
78478
78479         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
78480         convert T2, not T.  (Imported from libc.)
78481
78482 2004-11-30  Simon Josefsson  <jas@extundo.com>
78483
78484         * modules/restrict (License): Change to LGPL.
78485
78486 2004-11-30  Simon Josefsson  <jas@extundo.com>
78487
78488         * m4/restrict.m4: Add copyright and copying conditions.
78489
78490 2004-11-30  Simon Josefsson  <jas@extundo.com>
78491
78492         * m4/base64.m4: New file.
78493
78494 2004-11-30  Simon Josefsson  <jas@extundo.com>
78495
78496         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
78497         base64.
78498
78499         * tests/test-base64.c: New file.
78500
78501         * modules/base64: New file.
78502
78503 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
78504
78505         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
78506         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
78507
78508         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
78509
78510 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
78511
78512         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
78513         (__getcwd.c): Don't restore errno; glibc doesn't.
78514         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
78515         first, falling back to our code only if its results look suspicious.
78516         Ensure that the resulting buffer is only as large as necessary.
78517
78518         * lib/readutmp.c: Include readutmp.h first.
78519         Include <errno.h>, since readutmp.h no longer does that.
78520         * lib/readutmp.h: Don't include <errno.h>,
78521         <sys/param.h>, <time.h>; not needed to establish interface.
78522         (errno): Remove decl.
78523         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
78524         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
78525         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
78526
78527 2004-11-28  Simon Josefsson  <jas@extundo.com>
78528
78529         * lib/base64.h, base64.c: New file.
78530
78531 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
78532
78533         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
78534
78535 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
78536
78537         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
78538         (Depends-on): Remove pathmax, same.  Add mempcpy.
78539         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
78540         (Makefile.am): Append getcwd.h to lib_SOURCES.
78541         (Include): Add getcwd.h.
78542         (Maintainer): Change from Jim Meyering to "all, glibc",
78543         since getdate now uses intended-for-glibc code.
78544         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
78545         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
78546
78547 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
78548
78549         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
78550         HP's ANSI C compiler.
78551         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
78552         Declaring int functions causes warnings on some modern systems and
78553         shouldn't be needed to compile on ancient ones.
78554         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
78555         defined.
78556
78557         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
78558         with the following changes.
78559         (__set_errno): Parenthesize properly.
78560         Include <stdbool.h>.
78561         (MIN, MAX, MATCHING_INO): New macros.
78562         (__getcwd): Define with prototype, not K&R form.
78563         Use heuristics to allocate default buffer on stack if possible.
78564         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
78565         behavior, and to avoid the PATH_MAX limit when computing
78566         ../../../../...
78567         Use MATCHING_INO to compare inode number to file.
78568         Check for arithmetic overflow in size calculations.
78569         Fix bug in reallocation of dot array that caused getcwd to fail
78570         on directories nested deeper than 75.
78571         Be more careful about saving errno on error.
78572         Do not use realloc; use only free+malloc, as this is a bit
78573         more flexible and avoids a needless copy operation.
78574         Do not inspect st_dev and st_ino for symbolic links; POSIX
78575         doesn't specify the latter.
78576         Check for closedir errors.
78577         Avoid needless casts.
78578         Use "#ifdef weak_alias" around weak_alias, to be like other
78579         glibc code.
78580         The following changes to getcwd.c have effect only when used in
78581         gnulib; they have no effect inside glibc proper.
78582         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
78583         as alloca isn't used.
78584         (alloca, __alloca): Likewise.
78585         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
78586         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
78587         unconditionally, as gnulib assumes C89 or better.
78588         Do not include <sys/param.h>.
78589         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
78590         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
78591         better.
78592         (NULL) [!defined NULL]: Remove; we assume C89 or better.
78593         Include <dirent.h> in a way that is compatible with modern Autoconf.
78594         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
78595         New macros, if not already defined.
78596         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
78597         Use "_LIBC", not "defined _LIBC", for consistency.
78598         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
78599         a mempcpy module.
78600         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
78601         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
78602         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
78603         credit only to Jim Meyering and adjust the copyright dates.
78604         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
78605         <stdlib.h>, <unistd.h>, "pathmax.h".
78606         Instead, include "xgetcwd.h" (first) and "getcwd.h".
78607         (INITIAL_BUFFER_SIZE): Remove.
78608         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
78609
78610 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
78611
78612         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
78613         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
78614         Use the _ONCE methods, for efficiency.
78615         Check for fcntl.h.  In test program, include <errno.h>
78616         and <fcntl.h> if available.  Remove old K&R cruft from
78617         test program.  Check for common errors in GNU/Linux,
78618         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
78619         don't do AC_LIBOBJ, as that's getcwd.m4's job.
78620         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
78621         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
78622         name accordingly.
78623         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
78624         accommodate new getcwd.c.
78625         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
78626         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
78627         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
78628         that's all we need now.
78629
78630 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78631
78632         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
78633         argp-parse.c depends on getopt internals, that means we should
78634         always use our getopt, to be on the safe side.
78635         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
78636         order not to spoil the result of an eventual previous invocation
78637         of gl_GETOPT_SUBSTITUTE.
78638
78639 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78640
78641         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
78642         redefinition warnings. To avoid them, include the defines
78643         in `#if !defined __need_getopt ... #endif'. The only place
78644         where __getopt_argv_const is used is in definitions
78645         of getopt_long and getopt_long_only below, which are as well
78646         protected by `#ifndef __need_getopt'.
78647         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
78648         __need_getopt after including <stdio.h> and <unistd.h> These
78649         headers might have defined it.
78650
78651 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
78652
78653         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
78654
78655 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
78656
78657         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
78658         (futimens): New function, which uses futimes if available.
78659         (futimens, utimens): Support timespec==NULL, with same semantics
78660         as utime and utimens.
78661         * lib/utimens.h (futimens): New decl.
78662
78663 2004-11-23  Jim Meyering  <jim@meyering.net>
78664
78665         * lib/getopt_.h: Remove trailing blanks.
78666
78667 2004-11-23  Jim Meyering  <jim@meyering.net>
78668
78669         * lib/__fpending.c: Add comment.
78670
78671 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
78672
78673         * modules/canonicalize (Depends-on): Add xreadlink.
78674         Problem reported by James Youngman.
78675
78676 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
78677
78678         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
78679         New macros.
78680         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
78681         optopt): Use them instead of invoking ## directly; otherwise, the
78682         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
78683
78684 2004-11-19  Bruno Haible  <bruno@clisp.org>
78685
78686         * lib/strtok_r.c: Move comments from here...
78687         * lib/strtok_r.h: ... to here.
78688
78689 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
78690
78691         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
78692         implementations that mishandle size_t overflow.
78693
78694 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
78695
78696         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
78697         might fail.  Problem reported by Yoann Vandoorselaere.
78698         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
78699         implementations that mishandle size_t overflow.
78700
78701 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
78702
78703         * modules/canon-host (Depends-on): Add strdup.
78704
78705 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
78706
78707         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
78708
78709 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
78710
78711         * lib/canon-host.c: Include "strdup.h".
78712         (canon_host): Use getaddrinfo if available, so that IPv6 works.
78713         Use strdup instead of malloc/strcpy to duplicate strings.
78714
78715         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
78716         (human_space_before_unit): New constant.
78717         * lib/human.c (human_readable): Support it.
78718
78719         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
78720         (xgetcwd): Set errno correctly when failing.
78721         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
78722         the failure is actually due to a PATH_MAX problem.
78723
78724         Further getopt changes to make it more likely that glibc will
78725         buy the changes back.
78726         * lib/getopt.c (POSIXLY_CORRECT): New constant.
78727         (getopt): Use it, so to preserve glibc semantic
78728         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
78729         when compiling for libc.
78730         * lib/getopt_.h (__getopt_argv_const): Bring it back.
78731         (getopt_long, getopt_long_only): Use it.
78732
78733         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
78734         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
78735         (getopt): Argv is now char * const *, as per standard.
78736         (_getopt_internal_r, _getopt_internal): Argv is now char **,
78737         not char *__getopt_argv_const *.
78738         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
78739         _getopt_long_only_r): Likewise.
78740         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
78741         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
78742         _getopt_long_r, _getopt_long_only_r): Likewise.
78743         * lib/getopt_.h (__getopt_argv_const): Remove.
78744         (getopt): Argv is now char * const *, as per standard.
78745
78746         * lib/getdate.y (tORDINAL): New token.
78747         (day, relunit): Allow it for relative times.
78748         (relative_time_table): Use tORDINAL for ordinals.
78749
78750 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
78751
78752         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
78753         Document that "second" isn't allowed as an ordinal number.
78754
78755 2004-11-16  Jim Meyering  <jim@meyering.net>
78756
78757         * modules/closeout (Depends-on): Add fpending.
78758
78759 2004-11-15  Jim Meyering  <jim@meyering.net>
78760
78761         * lib/closeout.c: Include "__fpending.h" once again.
78762         Include <stdbool.h>.
78763         (close_stdout): Don't fail just because stdout was closed initially,
78764         since some programs don't write to stdout in the normal course of
78765         operation (other than --version and --help), and we don't want this
78766         function to make e.g. `touch file >&-' fail.
78767         But do fail if it was closed and someone has tried to write to it.
78768         E.g., `printf foo >&-' must fail.
78769
78770 2004-11-13  Jim Meyering  <jim@meyering.net>
78771
78772         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
78773
78774 2004-11-12  Simon Josefsson  <jas@extundo.com>
78775
78776         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
78777         small doc fix is still pending.
78778
78779 2004-11-11  Simon Josefsson  <jas@extundo.com>
78780
78781         * modules/strtok_r: New file.
78782
78783         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
78784         strtok_r.
78785
78786 2004-11-11  Simon Josefsson  <jas@extundo.com>
78787
78788         * m4/strtok_r.m4: New file.
78789
78790         * m4/getopt.m4: Replace opterr.
78791
78792 2004-11-11  Simon Josefsson  <jas@extundo.com>
78793
78794         * lib/strtok_r.h, strtok_r.c: New file.
78795
78796 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
78797
78798         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
78799         of replacing opterr, getopt, etc.  This should handle the
78800         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
78801
78802 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
78803
78804         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
78805         we can stop lying to compilers about the constness of argv when we
78806         are compiled outside glibc.
78807         (getopt, getopt_long, getopt_long_only): Use it.
78808         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
78809         _getopt_internal, getopt): Likewise.
78810         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
78811         _getopt_long_only_r): Likewise.
78812         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
78813         _getopt_long_r, _getopt_long_only_r): Likewise.
78814
78815         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
78816         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
78817         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
78818         the other external symbols.
78819         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
78820         declaration, since the above renaming now works around collisions.
78821
78822 2004-11-11  Jim Meyering  <jim@meyering.net>
78823
78824         * lib/linebreak.c: Remove trailing blanks.
78825         * lib/alloca_.h: Likewise.
78826         * lib/acosl.c: Likewise.
78827         * lib/euidaccess.c: Likewise.
78828         * lib/allocsa.h: Likewise.
78829
78830 2004-11-10  Simon Josefsson  <jas@extundo.com>
78831
78832         * m4/getaddrinfo.m4: New file.
78833
78834 2004-11-10  Simon Josefsson  <jas@extundo.com>
78835
78836         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
78837
78838 2004-11-10  Simon Josefsson  <jas@extundo.com>
78839
78840         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
78841         getaddrinfo.
78842
78843         * modules/getaddrinfo: New file.
78844
78845 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
78846
78847         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
78848
78849 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
78850
78851         * lib/mktime.c (SHR): New macro, which is a portable
78852         substitute for >> that should work even on Crays.
78853         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
78854         Problem reported by Mark D. Baushke in
78855         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
78856         * lib/getdate.y (SHR): Likewise.
78857         (tm_diff): Use it.
78858         * lib/strftime.c (SHR): Likewise.
78859         (tm_diff): Use it.
78860         * lib/quotearg.c (struct quoting_options): Use unsigned int for
78861         quote_these_too, so that right shifts are well defined.  All uses
78862         changed.
78863
78864 2004-11-10  Jim Meyering  <jim@meyering.net>
78865
78866         Ensure that no close failure goes unreported.
78867         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
78868         return early when it seems there's nothing to flush.
78869         Don't include __fpending.h.
78870
78871 2004-11-10  Jim Meyering  <jim@meyering.net>
78872
78873         * modules/closeout (Depends-on): Remove fpending.
78874
78875 2004-11-10  Jim Meyering  <jim@meyering.net>
78876
78877         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
78878
78879 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
78880
78881         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
78882         gl_FUNC_STRFTIME.
78883         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
78884         and AC_REQUIRE when possible, to avoid duplicate checks.
78885         Check for <wchar.h>.
78886
78887 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
78888
78889         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
78890
78891 2004-11-09  Bruno Haible  <bruno@clisp.org>
78892
78893         * m4/sockpfaf.m4: New file.
78894
78895 2004-11-05  Bruno Haible  <bruno@clisp.org>
78896
78897         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
78898         Reported by Mark D. Baushke <mdb@cvshome.org>.
78899
78900 2004-11-04  Bruno Haible  <bruno@clisp.org>
78901
78902         2004-09-11  Bruno Haible  <bruno@clisp.org>
78903                 * allocsa.valgrind: New file.
78904         2004-02-06  Bruno Haible  <bruno@clisp.org>
78905                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
78906                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
78907                 Reported by Christopher Seip <chris.seip@hp.com>.
78908
78909 2004-11-04  Bruno Haible  <bruno@clisp.org>
78910
78911         * modules/allocsa (Files): Add lib/allocsa.valgrind.
78912         (Makefile.am): Distribute it.
78913
78914 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
78915
78916         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
78917         with errno == ERANGE if the buffer is too small.
78918         Problem reported by Mark D. Baushke.
78919
78920 2004-11-03  Albert Chin  <china@thewrittenword.com>
78921             Paul Eggert  <eggert@cs.ucla.edu>
78922
78923         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
78924         equivalent, substitute $ac_type for equivalent type rather than
78925         blindly using uint32_t *always* which won't work if uint32_t is not
78926         available.  Define _UINT32_T to work around typedef of uint32_t if
78927         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
78928         2.5.1.
78929
78930 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
78931
78932         * m4/jm-macros.m4: Sync from coreutils.
78933         (gl_MACROS): Check for mbrlen, for pathchk.
78934         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
78935
78936 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
78937
78938         * lib/xreadlink.c (MAXSIZE): New macro.
78939         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
78940         size does not exceed MAXSIZE.  Avoid cast.
78941         As suggested by Mark D. Baushke in
78942         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
78943         if readlink fails with buffer size just under MAXSIZE, try again
78944         with MAXSIZE.
78945
78946 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
78947
78948         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
78949
78950 2004-11-02  Derek R. Price  <derek@ximbiot.com>
78951         and  Paul Eggert  <eggert@cs.ucla.edu>
78952
78953         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
78954         (get_date): Overparenthesize to avoid GCC warning.
78955
78956 2004-11-02  Bruno Haible  <bruno@clisp.org>
78957
78958         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
78959         returns void.
78960
78961 2004-11-02  Bruno Haible  <bruno@clisp.org>
78962
78963         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
78964         function returns void.
78965
78966 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
78967
78968         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
78969         fflush_unlocked, flockfile, funlockfile, funlockfile,
78970         fputs_unlocked, putc_unlocked.
78971
78972 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
78973
78974         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
78975         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
78976         already declared.
78977
78978 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
78979
78980         * modules/getdate (Files): Add doc/getdate.texi.
78981         (Depends-on): Add setenv, xalloc.
78982
78983 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
78984
78985         * lib/getdate.y: Add support for TZ="foo" within a date string.
78986         Fix some bugs near time_t boundaries.  Reject dates with
78987         out-of-range components, e.g., "Sept 31".
78988         Include <stdlib.h>, "setenv.h", "xalloc.h".
78989         (ISDIGIT_LOCALE): Remove; unused.
78990         Note that the TZ and time functions used here are not reentrant.
78991         (mktime_ok, get_tz): New functions.
78992         (TZBUFSIZE): New constant.
78993         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
78994         This requires that we sometimes generate our own TZ="XXX..." setting.
78995
78996 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
78997
78998         * doc/getdate.texi: New file, from coreutils with modifications for
78999         the new TZ parsing.
79000
79001 2004-10-27  Derek R. Price  <derek@ximbiot.com>
79002
79003         * lib/mktime.c (not_equal_tm): Remove redundant check.
79004
79005 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
79006
79007         * modules/regex (lib_SOURCES): Add regex.c.
79008         Reported by James Youngman in
79009         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
79010
79011 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
79012
79013         * lib/getdate.y: Use Bison 1.875 features, and some minor
79014         code cleanups.  This change does not affect semantics.
79015         Don't include <stdlib.h>; no longer needed.
79016         Don't include unlocked-io.h; only the "#if TEST" code uses
79017         stdio, and performance isn't crucial there.
79018         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
79019         Bison 1.875 features as described below.
79020         All uses of "PC." replaced by "pc->".
79021         (YYSTYPE): Add a forward declaration.
79022         (yylex, yyerror): Use full prototypes in forward decls.
79023         Use "%pure-parser" rather than obsolescent "%pure_parser".
79024         Use %parse-param and %lex-param instead of obsolescent
79025         YYPARSE_PARAM and YYLEX_PARAM.
79026         (meridian_table, month_and_day_table, time_units_table,
79027         relative_time_table, time_zone_table, military_table,
79028         lookup_zone, lookup_word, get_date):
79029         Use NULL instead of 0 where appropriate.
79030         (to_hour): Avoid abort (), to avoid a dependency on
79031         stdlib.h.
79032         (yyerror, yylex): Now accepts parser_control * arg.
79033         (main) [TEST]: Use '\0' rather than 0 for char.
79034
79035 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
79036
79037         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
79038
79039 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
79040
79041         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
79042         It's now the caller's responsibility to handle the case where
79043         !HAVE_GETPAGESIZE && !defined getpagesize.
79044
79045         * lib/mktime.c (leapyear): Arg is long int, not int.
79046
79047 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
79048
79049         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
79050
79051 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
79052
79053         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
79054         missing.  Problem reported by James Youngman.
79055
79056 2004-10-16  Simon Josefsson  <jas@extundo.com>
79057
79058         * gnulib-tool: Fix comments.  Fix parse problem.
79059         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
79060
79061 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
79062
79063         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
79064         implementation of getopt_long.  Problem reported by Alexander Taler in:
79065         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
79066
79067 2004-10-15  Bruno Haible  <bruno@clisp.org>
79068
79069         * gnulib-tool: Untabify. Initialize supplied_libname.
79070         (func_usage): More homogenous output.
79071         (func_modules_transitive_closure, func_modules_to_filelist,
79072         func_emit_lib_Makefile_am): New functions.
79073         (func_import): New function, extracted from big case statement. Use
79074         func_get_license, func_modules_transitive_closure,
79075         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
79076         opt_lgpl. Don't use test -a, as it's not portable.
79077         (func_create_testdir): Use func_modules_transitive_closure,
79078         func_modules_to_filelist, func_emit_lib_Makefile_am.
79079
79080 2004-10-15  Bruno Haible  <bruno@clisp.org>
79081
79082         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
79083
79084 2004-10-15  Bruno Haible  <bruno@clisp.org>
79085
79086         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
79087         the portions belonging to each module.
79088         Suggested by Derek Robert Price <derek@ximbiot.com>.
79089
79090 2004-10-12  Simon Josefsson  <jas@extundo.com>
79091
79092         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
79093         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
79094         to real functions.
79095
79096 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79097
79098         * modules/vsnprintf: New file.
79099
79100 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79101
79102         * m4/vsnprintf.m4: New file.
79103
79104 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79105
79106         * lib/vsnprintf.h: New file.
79107         * lib/vsnprintf.c: New file.
79108
79109 2004-10-11  Bruno Haible  <bruno@clisp.org>
79110
79111         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
79112         vsnprintf.
79113
79114 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
79115
79116         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
79117
79118 2004-10-07  Bruno Haible  <bruno@clisp.org>
79119
79120         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
79121         fits into the provided buffer.
79122
79123 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
79124
79125         * lib/diacrit.c, diacrit.h: Add GPL notice.
79126
79127         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
79128         notice.
79129         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
79130         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
79131         This avoids a potential constant-folding bug.
79132
79133 2004-10-05  Bruno Haible  <bruno@clisp.org>
79134
79135         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
79136         for the declaration of strsep.
79137
79138 2004-10-05  Bruno Haible  <bruno@clisp.org>
79139
79140         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
79141
79142 2004-10-04  Simon Josefsson  <jas@extundo.com>
79143
79144         * modules/memmem: New file.
79145         * tests/test-memmem.c: New file.
79146         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
79147
79148 2004-10-04  Simon Josefsson  <jas@extundo.com>
79149
79150         * m4/memmem.m4: New file.
79151
79152 2004-10-04  Simon Josefsson  <jas@extundo.com>
79153
79154         * lib/memmem.h: New file.
79155         * lib/memmem.c: New file, taken from glibc.
79156
79157 2004-10-04  Simon Josefsson  <jas@extundo.com>
79158
79159         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
79160         '#ifdef USE_UNLOCKED_IO'.
79161
79162 2004-10-04  Simon Josefsson  <jas@extundo.com>
79163
79164         * config/srclist.txt: Add memmem from glibc.
79165
79166 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
79167
79168         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
79169
79170         * modules/argmatch, modules/argp, modules/closeout, modules/error,
79171         modules/exclude, modules/getdate, modules/getline,
79172         modules/getndelim2, modules/getpass, modules/getpass-gnu,
79173         modules/getusershell, modules/linebuffer, modules/md5,
79174         modules/mountlist, modules/posixtm, modules/readtokens,
79175         modules/readutmp, modules/regex, modules/sha1,
79176         modules/version-etc, modules/yesno:
79177         Remove dependency on unlocked-io.
79178
79179 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
79180
79181         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
79182
79183         * m4/unlocked-io.m4: Add copyright notice.
79184         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
79185
79186 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
79187
79188         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
79189         * lib/xmalloc.c (xmemdup): Likewise.
79190         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
79191         XFREE): Remove these long-obsolescent macros.
79192         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
79193         * lib/xstrdup.c: Remove.
79194
79195         * lib/regex.c (re_comp): Cast gettext return value to char *,
79196         Problem reported by Martin Neitzel via Mark D. Baushke.
79197
79198 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
79199
79200         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
79201         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
79202         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
79203         regex.c, sha1.c, version-etc.c, yesno.c:
79204         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
79205         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
79206         the includer's responsibility.
79207
79208         Sync from coreutils.
79209
79210         * lib/modechange.c (mode_compile): Don't decrement a pointer that
79211         points to the start of a string, as the C Standard says the
79212         resulting behavior is undefined.
79213
79214         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
79215         simple -> simple_backups, numbered_existing ->
79216         numbered_existing_backups, numbered -> numbered_backups
79217         to avoid shadowing problems.  All uses changed.
79218         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
79219         * lib/backupfile.c (check_extension, numbered_backup):
79220         Rename locals to avoid shadowing 'basename'.
79221         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
79222         once.
79223
79224         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
79225         * lib/.cvsignore: Add getopt.h.
79226
79227 2004-10-04  Bruno Haible  <bruno@clisp.org>
79228
79229         * modules/README: New file.
79230         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
79231         not a module.
79232
79233 2004-10-02  Jim Meyering  <jim@meyering.net>
79234
79235         * lib/dirfd.h, getpagesize.h: Add copyright notice.
79236
79237 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79238
79239         * modules/strsep: New file.
79240
79241 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79242
79243         * m4/strsep.m4: New file.
79244
79245 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79246
79247         * lib/strsep.h: New file.
79248         * lib/strsep.c: New file.
79249
79250 2004-10-01  Simon Josefsson  <jas@extundo.com>
79251
79252         * lib/snprintf.c (snprintf): Handle size==0.
79253
79254 2004-10-01  Simon Josefsson  <jas@extundo.com>
79255             Bruno Haible  <bruno@clisp.org>
79256
79257         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
79258         (snprintf): Declare 'args'.
79259
79260 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
79261
79262         * lib/snprintf.c: Remove comments as to why each header is needed.
79263
79264 2004-10-01  Bruno Haible  <bruno@clisp.org>
79265
79266         * MODULES.html.sh: Add strsep.
79267
79268 2004-09-30  Simon Josefsson  <jas@extundo.com>
79269
79270         * modules/snprintf: New file.
79271
79272 2004-09-30  Simon Josefsson  <jas@extundo.com>
79273
79274         * m4/snprintf.m4: New file.
79275
79276 2004-09-30  Simon Josefsson  <jas@extundo.com>
79277
79278         * lib/snprintf.h, lib/snprintf.c: New files.
79279
79280 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79281
79282         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
79283         (hol_entry_help): Never translate an empty string.
79284         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
79285         * lib/argp.h (OPTION_NO_TRANS): New option.
79286
79287 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
79288
79289         * modules/argp (Maintainer): Replace Simon Josefsson
79290         by Sergey Poznyakoff.
79291
79292 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
79293
79294         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
79295         changes merged back into glibc.
79296
79297 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
79298
79299         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
79300
79301 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
79302
79303         * lib/xvasprintf.c: Include xalloc.h.
79304         (xvasprintf): Use xalloc_die, not xmalloc_die.
79305
79306 2004-09-29  Bruno Haible  <bruno@clisp.org>
79307
79308         * modules/alloca-opt: New file, derived from modules/alloca.
79309         * modules/allocsa: Depend on alloca-opt instead of alloca.
79310         * modules/setenv: Likewise.
79311         * modules/vasnprintf: Likewise.
79312         * MODULES.html.sh: Add alloca-opt.
79313
79314 2004-09-28  Simon Josefsson  <jas@extundo.com>
79315
79316         * gnulib-tool: New parameter --lgpl, to asseert that modules are
79317         LGPL, and to replace license template from GPL to LGPL.
79318
79319 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
79320
79321         * modules/dummy: Change license to LGPL.
79322
79323 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
79324
79325         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
79326
79327 2004-09-24  Simon Josefsson  <jas@extundo.com>
79328
79329         * modules/minmax (License): Change from GPL to LGPL.
79330
79331 2004-09-23  Simon Josefsson  <jas@extundo.com>
79332
79333         * gnulib-tool (--import): Typo.
79334
79335 2004-09-23  Simon Josefsson  <jas@extundo.com>
79336
79337         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
79338
79339 2004-09-22  Bruno Haible  <bruno@clisp.org>
79340
79341         * modules/*: Add 'License' field.
79342         * gnulib-tool: Accept --extract-license option.
79343         (func_get_license): New function.
79344
79345 2004-09-21  Bruno Haible  <bruno@clisp.org>
79346
79347         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
79348         Reported by Simon Josefsson.
79349
79350 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
79351
79352         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
79353         gl_AC_TYPE_LONG_LONG.
79354
79355 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
79356
79357         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
79358
79359 2004-09-18  Simon Josefsson  <jas@extundo.com>
79360         and  Paul Eggert  <eggert@cs.ucla.edu>
79361
79362         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
79363         calls with autoreconf.  Define GL_LIB.
79364
79365 2004-09-14  Karl Berry  <karl@gnu.org>
79366
79367         * config/srclist.txt: unsync setenv.c, sigh.
79368
79369 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
79370
79371         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
79372         Problem reported by Bruno Haible in:
79373         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
79374
79375 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
79376
79377         * config/srclist.txt: Comment out argp-pvh.c.
79378
79379 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
79380
79381         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
79382         in case some system header has #define'd it.  Problem reported by
79383         Soeren D. Schulze in
79384         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
79385
79386 2004-09-09  Karl Berry  <karl@gnu.org>
79387
79388         * regex.[ch]: delete from the root.  These were supposed to be
79389                 synced with emacs cvs, but this has not happened for about
79390                 a year, and anyway nothing else uses emacs regex.[ch].
79391                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
79392                 lib/regex[.ch] is untouched.
79393
79394 2004-09-09  Bruno Haible  <bruno@clisp.org>
79395
79396         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
79397
79398 2004-09-09  Bruno Haible  <bruno@clisp.org>
79399
79400         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
79401         modifications.
79402         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
79403
79404 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
79405
79406         * modules/xvasprintf: New file.
79407         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
79408
79409 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
79410
79411         * lib/xvasprintf.h: New file.
79412         * lib/xvasprintf.c: New file.
79413         * lib/xasprintf.c: New file.
79414
79415 2004-09-08  Bruno Haible  <bruno@clisp.org>
79416
79417         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
79418
79419 2004-09-08  Bruno Haible  <bruno@clisp.org>
79420
79421         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
79422         length is > INT_MAX.
79423         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
79424         more.
79425
79426 2004-09-08  Bruno Haible  <bruno@clisp.org>
79427
79428         * lib/stdint_.h: New file, taken from GNU clisp.
79429
79430 2004-09-08  Bruno Haible  <bruno@clisp.org>
79431             Oskar Liljeblad  <oskar@osk.mine.nu>
79432
79433         * modules/stdint: New file.
79434         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
79435
79436 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
79437
79438         Import from coreutils.
79439         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
79440         strings on unbounded length.  alloca's performance benefits aren't
79441         that important here.
79442         (V_STRDUP): Remove.
79443         (parse_with_separator): New function, with most of the internals
79444         of the old parse_user_spec.  Allow user to omit both user and group,
79445         for compatibility with FreeBSD.
79446         Clone only the user name, not the entire spec.
79447         Do not set *uid, *gid unless entirely successful.
79448         Avoid memory leak in some failing cases.
79449         Fix regression for USER.GROUP reported by Dmitry V. Levin in
79450         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
79451         (parse_user_spec): Rewrite to use parse_with_separator.
79452
79453 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
79454
79455         * modules/userspec: Don't depend on alloca.
79456
79457 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
79458
79459         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
79460
79461 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
79462
79463         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
79464         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
79465         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
79466
79467 2004-08-16  Simon Josefsson  <jas@extundo.com>
79468
79469         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
79470         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
79471         Add --dry-run for --import.
79472         Let user provided command line parameters override configure.ac
79473         settings.
79474
79475 2004-08-12  Simon Josefsson  <jas@extundo.com>
79476
79477         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
79478         as discussed with Paul Eggert in threads rooted at
79479         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
79480         and
79481         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
79482         Before, the test was empty, and relied on ELIDE_CODE in source
79483         code.)
79484         (gl_PREREQ_GETOPT): New macro.
79485         (gl_GETOPT): Use them.
79486
79487 2004-08-12  Simon Josefsson  <jas@extundo.com>
79488
79489         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
79490         * lib/getopt_.h: Renamed from getopt.h.
79491
79492 2004-08-12  Simon Josefsson  <jas@extundo.com>
79493
79494         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
79495         Change default library name from libfoo to libgnu.
79496         Now, if you have a configure.ac that says:
79497                 gl_SOURCE_BASE(gl)
79498                 gl_M4_BASE(gl/m4)
79499                 gl_MODULES(error getopt etcetera)
79500                 gl_INIT
79501         you can import all you need by running:
79502                 ../gnulib/gnulib-tool --import
79503
79504         * modules/getopt (Files): Rename getopt.h to getopt_.h.
79505         (Makefile.am): Rewrite, use logic from argz.
79506         (Include): Use <getopt.h> instead of "getopt.h".
79507
79508 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
79509
79510         * modules/argp (Files): Add m4/unlocked-io.m4.
79511         (Depends-on): Add extensions.
79512
79513 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
79514
79515         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
79516         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
79517         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
79518         Check for program_invocation_name, program_invocation_short_name,
79519         flockfile, funlockfile, features.h, _getopt_long_only_r.
79520
79521 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
79522
79523         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
79524         its complicated substitute.
79525         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
79526         and program_invocation_name.
79527         (__argp_basename) [!_LIBC]: Remove; the only use was
79528         replaced by its body.
79529         (__argp_short_program_name): Change condition from
79530         !defined __argp_short_program_name to
79531         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
79532         to match argp-namefrob.h.
79533         (__argp_failure): Don't assume strerror_r returns char *.
79534         * lib/argp-parse.c (N_): Define unconditionally.
79535         (argp_default_options): Fill out initializers with 0 to avoid
79536         gcc warnings.
79537
79538 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
79539
79540         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
79541         getopt1.c.
79542
79543 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
79544
79545         Merge from coreutils.
79546
79547         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
79548
79549         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
79550         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
79551
79552 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
79553
79554         Merge from coreutils.
79555
79556         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
79557         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
79558         for Reliant Unix 5.43.
79559
79560         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
79561         (union fooround): Use uintmax_t, not long int.
79562         The rest is a merge from libc:
79563         [defined _LIBC]: Include <shlib-compat.h>.
79564         (_obstack) [defined _LIBC]: Remove after 2.3.4.
79565
79566         * lib/settime.c (settime): Recode to avoid warning with
79567         Sun Forte C 6U2.
79568
79569         * lib/strverscmp.c: Convert to UTF-8.
79570
79571 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
79572
79573         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
79574         m4/uintmax_t.m4.
79575
79576 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
79577
79578         * modules/xalloc-die: New file.
79579         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
79580
79581         * modules/md5 (Files): Add m4/uint32_t.m4.
79582         * modules/sha1: Renamed from modules/sha.
79583         (Files):
79584         Rename lib/sha.h to lib/sha1.h.
79585         Rename lib/sha.c to lib/sha1.c.
79586         Rename m4/sha.m4 to m4/sha1.m4.
79587         (lib_SOURCES): Likewise.
79588         (configure.ac): Rename gl_SHA to gl_SHA1.
79589         (Include): sha.h -> sha1.h.
79590
79591 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
79592
79593         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
79594         * m4/sha1.m4: Renamed from sha.m4.
79595         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
79596
79597 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
79598
79599         * lib/obstack.h (obstack_empty_p):
79600         Don't assume that chunk->contents is suitably aligned.
79601         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
79602         Likewise. Problem reported by Benno in
79603         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
79604
79605         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
79606         readable.  This could be improved further but it'd take some work.
79607
79608 2004-08-08  Simon Josefsson  <jas@extundo.com>
79609
79610         * modules/xgethostname (Depends-on): Remove exit and error (not
79611         used).
79612
79613         * modules/getpass-gnu: Add getpass.h.
79614         (Depends-on): Add stdbool.
79615         * modules/getpass: Add getpass.h.
79616
79617 2004-08-08  Simon Josefsson  <jas@extundo.com>
79618
79619         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
79620         Check getpass declaration.
79621
79622 2004-08-08  Simon Josefsson  <jas@extundo.com>
79623
79624         * lib/xgethostname.c: Don't include error.h (not used).
79625
79626         * lib/getpass.h: Add.
79627         * lib/getpass.c: Include getpass.h first.
79628
79629 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
79630
79631         * lib/xalloc-die.c: New file.
79632         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
79633         All uses removed.
79634         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
79635         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
79636         xalloc-die.c.
79637         (_, N_, xalloc_die): Move to xalloc-die.c.
79638         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
79639         so that we needn't mess with xalloc_msg_memory_exhausted.
79640
79641         * lib/sha1.h: Renamed from sha.h.
79642         (SHA1_H): Renamed from _SHA_H.
79643         (sha1_ctx): Renamed from sha_ctx.
79644         (sha1_init_ctx): Renamed from sha_init_ctx.
79645         (sha1_process_block): Renamed from sha_process_block.
79646         (sha1_process_bytes): Renamed from sha_process_bytes.
79647         (sha1_finish_ctx): Renamed from sha_finish_ctx.
79648         (sha1_read_ctx): Renamed from sha_read_ctx.
79649         (sha1_stream): Renamed from sha_stream.
79650         (sha1_buffer): Renamed from sha_buffer.
79651         * lib/sha1.c: Likewise; renamed from sha.c.
79652         Do not include <sys/types.h>.
79653         Include <stddef.h> rather than <stdlib.h>.
79654
79655 2004-08-08  Bruno Haible  <bruno@clisp.org>
79656
79657         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
79658         FILESYSTEM_PREFIX_LEN.
79659         * lib/progreloc.c: Likewise.
79660         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
79661
79662 2004-08-06  Simon Josefsson  <jas@extundo.com>
79663
79664         * modules/progname (Depends-on): Don't depend on stdbool.
79665
79666 2004-08-06  Simon Josefsson  <jas@extundo.com>
79667
79668         * modules/getsubopt: New file.
79669         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
79670         getsubopt.
79671
79672 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
79673
79674         More merge from coreutils.
79675
79676         * m4/utimens.m4, m4/utimecmp.m4: New files.
79677         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
79678         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
79679         prereq.m4, sha.m4: Import changes from coreutils.
79680
79681 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
79682
79683         More merge from coreutils.
79684         * modules/raise, modules/readtokens0, modules/utimens:
79685         * modules/utimecmp, module/xnanosleep: New files.
79686         * modules/strftime: Add lib/strftime.h.
79687         Change include from <time.h> to "strftime.h".
79688         * modules/yesno: Add lib/yesno.h.
79689         * modules/backupfile: Remove lib/addext.c.
79690         * modules/euidaccess: Add stat-macros.h.
79691         * modules/canonicalize, modules/euidaccess,
79692         modules/filemode, modules/lchown, modules/makepath,
79693         modules/rmdir, modules/stat: Likewise.
79694
79695 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
79696
79697         Merge from tar.
79698         * lib/argp-help.c (make_hol, hol_append): Don't assume that
79699         SIZE_MAX is a valid preprocessor constant.
79700         (__argp_basename): Change from "#ifndef _LIBC"
79701         to "#ifndef __argp_short_program_name", so that
79702         we don't compile these functions for tar.
79703
79704         More merges from coreutils.
79705         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
79706         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
79707         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
79708         * lib/addext.c: Remove; no longer needed.
79709         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
79710         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
79711         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
79712         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
79713         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
79714         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
79715         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
79716         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
79717         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
79718         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
79719         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
79720         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
79721         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
79722         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
79723         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
79724         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
79725         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
79726         Import changes from coreutils.
79727
79728 2004-08-05  Simon Josefsson  <jas@extundo.com>
79729
79730         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
79731
79732 2004-08-05  Simon Josefsson  <jas@extundo.com>
79733
79734         * m4/getsubopt.m4: New file.
79735
79736 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
79737
79738         Merge from coreutils.
79739
79740         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
79741         * m4/getcwd-path-max.m4: New files.
79742
79743         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
79744         FILESYSTEM_PREFIX_LEN ->
79745         FILE_SYSTEM_PREFIX_LEN.
79746         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
79747         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
79748         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
79749         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
79750
79751         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
79752         prerequisite modules now handle the DOS stuff.
79753         Don't check for unistd.h.
79754
79755 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
79756
79757         Merge from coreutils.
79758
79759         * lib/.gdb-history: Remove; this doesn't belong here.
79760
79761         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
79762         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
79763         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
79764         * lib/getcwd.c: New files.
79765
79766         * lib/dirname.h: Include <stdbool.h>.
79767         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
79768         for consistency with POSIX terminology.  All uses changed.
79769         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
79770         (strip_trailing_slashes): Use bool for booleans.
79771         * lib/stripslash.c (strip_trailing_slashes): Likewise.
79772
79773         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
79774         sometimes returns a positive errno value even when it succeeds.
79775         (print_errno_message) [!LIBC]: Fall back on strerror if
79776         __strerror_r fails.
79777
79778         * lib/path-concat.c (mempcpy): Don't define if a system header defines
79779         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
79780         (longest_relative_suffix): New function.
79781         (path_concat): Use it.  Assume first argument is not NULL.
79782         Port to DOS.  Omit redundant separators.
79783         Report an error instead of returning NULL.
79784         Use mempcpy instead of memcpy.
79785         (xpath_concat): Remove: not declared or used.
79786
79787         * lib/same.h: Include <stdbool.h>
79788         (same_name): Return bool, not int.
79789         * lib/same.c (same_name): Likewise.
79790         (errno): Don't declare; we assume C89 or better now.
79791
79792         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
79793         if not already defined.
79794
79795         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
79796         * lib/dup-safer.c (errno): Likewise.
79797
79798 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
79799
79800         Merge from coreutils.
79801         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
79802         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
79803         * modules/path-concat: Don't depend on strdup.
79804
79805 2004-08-03  Simon Josefsson  <jas@extundo.com>
79806
79807         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
79808         * lib/progname.h: Don't include stdbool.h.
79809
79810 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
79811
79812         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
79813         * MODULES.html.sh (func_all_modules): Remove fatal.
79814
79815 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
79816
79817         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
79818
79819 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
79820
79821         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
79822         working.
79823
79824 2004-08-02  Simon Josefsson  <jas@extundo.com>
79825
79826         * lib/getsubopt.h: New file, with comments from Bruno Haible.
79827         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
79828         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
79829
79830 2004-08-01  Simon Josefsson  <jas@extundo.com>
79831
79832         * lib/xgetdomainname.c: Include stdlib.h, for free().
79833
79834 2004-07-19  Bruno Haible  <bruno@clisp.org>
79835
79836         * MODULES.html.sh (func_all_modules): Add dummy.
79837
79838 2004-07-16  Simon Josefsson  <jas@extundo.com>
79839
79840         * modules/dummy: New file.
79841
79842 2004-07-16  Simon Josefsson  <jas@extundo.com>
79843
79844         * lib/dummy.c: New file.
79845
79846 2004-07-16  Bruno Haible  <bruno@clisp.org>
79847
79848         * lib/backupfile.h: Add extern "C" for C++.
79849         * lib/closeout.h: Likewise.
79850         * lib/copy-file.h: Likewise.
79851         * lib/findprog.h: Likewise.
79852         * lib/full-write.h: Likewise.
79853         * lib/pathname.h: Likewise.
79854         * lib/progname.h: Likewise.
79855         * lib/stpcpy.h: Likewise.
79856         * lib/stpncpy.h: Likewise.
79857         * lib/strcase.h: Likewise.
79858         * lib/strstr.h: Likewise.
79859         * lib/xalloc.h: Likewise.
79860
79861         * lib/mbswidth.h: Add extern "C" for C++.
79862         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
79863
79864 2004-07-13  Robert Millan  <robertmh@gnu.org>
79865
79866         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
79867
79868 2004-07-09  Simon Josefsson  <jas@extundo.com>
79869
79870         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
79871         failed without this.)
79872
79873 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
79874
79875         * modules/chown (Files): Add lib/fchown-stub.c, since
79876         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
79877
79878 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
79879
79880         * lib/fchown-stub.c: New file.
79881
79882 2004-06-24  Jim Meyering  <jim@meyering.net>
79883
79884         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
79885
79886 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
79887
79888         * modules/argz: Omit "#include".
79889
79890         * MODULES.html.sh (func_all_modules): Add calloc, to match
79891         2004-06-01 addition of calloc module.
79892
79893 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
79894
79895         * m4/argz.m4: New file, which is autoupdated from libtool.
79896
79897 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
79898
79899         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
79900         libtool.
79901
79902 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
79903
79904         * config/srclist-update: Don't insist on "USA." before the
79905         close-comment, as libtool omits the period and puts the */ on a
79906         separate line.
79907         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
79908         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
79909
79910 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
79911
79912         * modules/argz: New file.
79913         * MODULES.html.sh (func_all_modules): Add argz.
79914
79915 2004-06-12  Jim Meyering  <jim@meyering.net>
79916         and  Paul Eggert  <eggert@cs.ucla.edu>
79917
79918         * modules/hash (Files): Add lib/xalloc.h.
79919         * modules/pipe (Depends-on): Add wait-process.
79920         * modules/stat (Depends-on): Add xalloc.
79921         * modules/userspec (Files): Add lib/userspec.h.
79922         * modules/xstrto
79923
79924         Upgrade from gettext-0.13.
79925         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
79926         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
79927         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
79928
79929 2004-06-10  Jim Meyering  <jim@meyering.net>
79930
79931         * lib/calloc.c: New file.
79932
79933 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
79934
79935         * lib/getdate.y (yylex): Allow space between sign and number.
79936         Problem reported by Dan Jacobson.
79937
79938 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
79939
79940         Merge from coreutils CVS.
79941
79942         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
79943         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
79944         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
79945         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
79946         xstrtol.m4: Fix copyright date and/or serial number.
79947
79948         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
79949         See if we need an fchown replacement.
79950         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
79951         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
79952         and use the replacement function if we detect either defect.
79953
79954         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
79955         gl_UTIMECMP.
79956
79957 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
79958         and  Jim Meyering  <jim@meyering.net>
79959
79960         Merge from coreutils CVS.
79961
79962         * lib/stat-macros.h: New file, with contents from file-type.h
79963         and coreutils' system.h.
79964         * lib/file-type.c: Include "stat-macros.h".
79965         * lib/file-type.h (file_type): Move all macro definitions to new file,
79966         stat-macros.h.
79967
79968         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
79969         Wrap old code with this conditional.
79970         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
79971         function that does not dereference symlinks.
79972         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
79973
79974         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
79975         dependency problems.
79976         (xreadlink): Accept new arg SIZE, for efficiency.
79977         All decls and uses changed.
79978         * lib/xreadlink.h: Include <stddef.h>, for size_t.
79979
79980         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
79981         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
79982
79983         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
79984         sysexits.h.
79985
79986 2004-06-01  Jim Meyering  <jim@meyering.net>
79987
79988         * m4/calloc.m4: New file.
79989
79990 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
79991
79992         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
79993         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
79994         Also, fix a typo in a diagnostic.
79995
79996 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
79997
79998         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
79999         or AC_FUNC_REALLOC.
80000
80001 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
80002
80003         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
80004         macros to be defined.
80005         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
80006         the allocator returns NULL because the requested size is zero.
80007
80008 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
80009
80010         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
80011         var.  Add comment explaining why libc still defines it.  This
80012         merges the following patch from glibc:
80013         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
80014
80015 2004-05-20  Andreas Schwab  <schwab@suse.de>
80016
80017         * m4/free.m4: Replace free if it not known to work, not the other
80018         way round.
80019
80020 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
80021
80022         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
80023         present in glibc since revision 1.1 of this file.
80024         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
80025         obstack_alignment_mask, obstack_alloc, obstack_base,
80026         obstack_blank, obstack_blank_fast, obstack_chunk_size,
80027         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
80028         obstack_grow0, obstack_init, obstack_int_grow,
80029         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
80030         obstack_next_free, obstack_object_size, obstack_ptr_grow,
80031         obstack_ptr_grow_fast, obstack_room): Remove declarations of
80032         nonexistent functions.
80033
80034 2004-05-18  Karl Berry  <karl@gnu.org>
80035
80036         * config/srclist.txt: break link for vasnprintf.c.
80037
80038 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
80039
80040         Port obstack to the AS/400, where pointers are 16 bytes wide and
80041         you cannot cast an integer to a valid pointer.  This patch is
80042         currently waiting to be integrated into glibc; see
80043         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
80044
80045         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
80046         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
80047         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
80048         (struct obstack): temp member is now a union of a pointer and
80049         an integer, instead of an integer.  All integer uses changed.
80050         This does not affect the physical layout of struct obstack,
80051         except on hosts (like the AS/400) where the size or alignment of
80052         void * is greater than that of ptrdiff_t.
80053         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
80054         __STDC__)]: Store temporary in pointer member of union, not
80055         integer member.
80056         * lib/obstack.c: Include <stddef.h>, for offsetof.
80057         (struct fooalign): Remove; it doesn't need a name.
80058         (union fooround): Change double to long double, and add void *.
80059         (DEFAULT_ALIGNMENT): Use offsetof to compute.
80060         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
80061         not a macro.  Hence the values are always int; so remove all
80062         casts-to-int in uses.
80063
80064 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
80065
80066         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
80067         we can get this patch merged into glibc.
80068
80069 2004-05-17  Derek R. Price  <derek@ximbiot.com>
80070             Paul Eggert  <eggert@cs.ucla.edu>
80071
80072         * m4/argp: Depend on alloca.
80073
80074 2004-05-17  Derek R. Price  <derek@ximbiot.com>
80075             Paul Eggert  <eggert@cs.ucla.edu>
80076
80077         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
80078         freecoding.
80079
80080 2004-05-17  Bruno Haible  <bruno@clisp.org>
80081
80082         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
80083         precision that consists of a '.' followed by an empty digit string.
80084         Patch by Tor Lillqvist <tml@iki.fi>.
80085
80086 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
80087
80088         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
80089         for backward compatibility with older code.  We need our own
80090         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
80091         it under some other name, and our alloca.h will define it.
80092
80093 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
80094             Derek Price  <derek@ximbiot.com>
80095
80096         * lib/alloca.c: Include <alloca.h>, to get our interface.
80097         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
80098         include <alloca.h> first.  Use C89 prototype for alloca; this
80099         requires including <stddef.h> for size_t.  Use extern "C" if C++.
80100         Use #elif for simplicity, since we can assume C89 now.
80101         Don't try to source the system alloca.h since it will not be found
80102         and to prevent recursively including its replacement.
80103         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
80104         * lib/regex.c: Likewise.
80105
80106 2004-05-16  Derek Price  <derek@ximbiot.com>
80107             Paul Eggert  <eggert@cs.ucla.edu>
80108
80109         getline cleanup.  This changes the getndelim2 API: both order of
80110         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
80111         no delimiter).
80112
80113         * lib/getline.c: Don't include stddef.h or stdio.h, since our
80114         interface does that.
80115         (getline): Always use getdelim, so that we don't have two
80116         copies of this code.
80117         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
80118         if available.
80119         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
80120         (GETNDELIM2_MAXIMUM): New macro.
80121         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
80122         instead of the old practice of delim2==0.  All callers changed.
80123         Return -1 on overflow, instead of returning junk.
80124         Do not set *linesize unless allocation succeeds.
80125         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
80126         that we include sys/types.h.
80127         * lib/getnline.h: Likewise.
80128         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
80129         (getndelim2): Reorder arguments.
80130         * lib/getnline.c (getnline, getndelim):
80131         Don't discard the NMAX argument.
80132         (getnline): Invoke getndelim, to avoid code duplication.
80133         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
80134         of (size_t) -1 by callers of the getnline family.
80135
80136 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
80137
80138         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
80139         Check for gettimeofday.
80140         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
80141         Check for settimeofday, stime.
80142
80143 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
80144
80145         * lib/nanosleep.c (suspended): Change its type from int to
80146         sig_atomic_t volatile.
80147         (first_call): Make it private to rpl_nanosleep, and have it
80148         be zero initially as that's a bit faster.
80149         (my_usleep): Round up fractional times instead of truncating them,
80150         as this is the usual meaning for 'sleep'.
80151
80152         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
80153         doesn't work.
80154         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
80155         (ENOSYS): Define if not defined.
80156         (settime): Fall back on stime if it exists and settimeofday fails.
80157         But don't bother with fallbacks if a method fails with errno == EPERM.
80158
80159 2004-05-11  Jim Meyering  <jim@meyering.net>
80160
80161         Prior to this change, the save_cwd caller required read access to the
80162         current directory on most systems (ones with the fchdir function).
80163
80164         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
80165         fails, try write-only, and finally, resort to using xgetcwd.
80166
80167 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
80168
80169         * lib/obstack.c, obstack.h: Import changes from libc.
80170
80171 2004-04-28  Bruno Haible  <bruno@clisp.org>
80172
80173         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
80174         also implicitly appends .exe to executables.
80175         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
80176         accepts Windows pathnames.
80177         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
80178         Treat Cygwin like Windows, since it now accepts Windows pathnames.
80179         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
80180         Treat Cygwin like Windows, since it now accepts Windows pathnames.
80181         Reported by Derek Robert Price <derek@ximbiot.com>.
80182
80183 2004-04-21  Karl Berry  <karl@gnu.org>
80184
80185         * config/srclist.txt (localcharset.c): break sync.
80186
80187 2004-04-20  Paul Eggert  <eggert@twinsun.com>
80188
80189         * m4/host-os.m4: Add a copyright notice.
80190
80191 2004-04-20  Jim Meyering  <jim@meyering.net>
80192
80193         Change UTILS_ to gl_ in AC_DEFINE'd names.
80194         Change utils_- and jm_-prefixed variables, too.
80195         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
80196         UTILS_FUNC_MKDIR_TRAILING_SLASH.
80197         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
80198
80199         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
80200         Don't emit trailing blanks.
80201         Also rename jm_-prefixed variables to have gl_ prefix.
80202
80203         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
80204         Also rename jm_-prefixed variables to have gl_ prefix.
80205
80206         * m4/jm-macros.m4: Reflect the renamings.
80207         * m4/prereq.m4: Likewise.
80208
80209 2004-04-20  Jim Meyering  <jim@meyering.net>
80210
80211         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
80212         memory.
80213
80214 2004-04-20  Jim Meyering  <jim@meyering.net>
80215             Bruno Haible  <bruno@clisp.org>
80216
80217         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
80218         memory when realloc fails.
80219
80220 2004-04-19  Jim Meyering  <jim@meyering.net>
80221
80222         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
80223         now that readutmp.c may call `free (0)'.
80224
80225 2004-04-19  Bruno Haible  <bruno@clisp.org>
80226
80227         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
80228         * m4/inttypes_h.m4: Likewise.
80229         * m4/stdint_h.m4: Likewise.
80230         * m4/intmax_t.m4: Likewise.
80231         * m4/uintmax_t.m4: Likewise.
80232
80233 2004-04-18  Jim Meyering  <jim@meyering.net>
80234
80235         * m4/prereq.m4: Don't forbid jm_ prefix.
80236
80237         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
80238         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
80239         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
80240         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
80241         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
80242         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
80243         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
80244         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
80245         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
80246         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
80247         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
80248         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
80249         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
80250         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
80251         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
80252         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
80253         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
80254         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
80255         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
80256
80257 2004-04-18  Jim Meyering  <jim@meyering.net>
80258
80259         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
80260         failure, don't leak memory and do call END_UTMP_ENT.
80261
80262 2004-04-16  Jim Meyering  <jim@meyering.net>
80263
80264         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
80265         coreutils' stat program.
80266         (gl_PREREQ): Don't require jm_PREREQ_STAT.
80267
80268 2004-04-11  Paul Eggert  <eggert@twinsun.com>
80269
80270         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
80271         C89.
80272         (CHAR_BIT): Remove, since we assume C89.
80273         Include <stdint.h> if available, as per current Autoconf CVS advice.
80274
80275 2004-03-31  Jim Meyering  <jim@meyering.net>
80276
80277         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
80278         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
80279         * m4/xalloc.m4: Likewise.
80280
80281 2004-03-30  Paul Eggert  <eggert@twinsun.com>
80282
80283         Merge from coreutils.
80284
80285         * m4/inttostr.m4: New file.
80286         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
80287         Require AM_STDBOOL_H and gl_TIMESPEC instead.
80288         Require gl_CLOCK_TIME.
80289         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
80290
80291 2004-03-30  Paul Eggert  <eggert@twinsun.com>
80292
80293         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
80294         not bool, to be more consistent with Unix conventions.
80295         Suggested by Bruno Haible.
80296
80297         Merge from coreutils.
80298
80299         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
80300         * lib/umaxtostr.c: New files.
80301
80302         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
80303         the usual <time.h> dance.
80304         (get_date): Change signature to support fractional time stamps.
80305         All callers changed.
80306         * lib/getdate.y: Include "getdate.h" first, as we can now
80307         assume C89 and don't need to worry about 'const'.
80308         Similarly, include "unlocked-io.h" near start, not in middle.
80309         Include <limits.h>.
80310         (textint.value): Use long int rather than int.
80311         (textint.digits): Use size_t rather than int.
80312         (BILLION, LOG10_BILLION): New constants.
80313         (parser_control): New member rel_ns.  Members day_ordinal,
80314         time_zone, month, day, hour, minutes, rel_year, rel_month,
80315         rel_day, rel_hour, rel_minutes, rel_seconds
80316         are now long int, not int.  Member seconds is now struct timespec,
80317         not int.  New member timespec_seen.  Members dates_seen, days_seen,
80318         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
80319         not int.
80320         (%union.intval): Now long int, not int.
80321         New member timespec.
80322         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
80323         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
80324         (spec): Now is a timespec or an item list.
80325         (timespec, items): New nonterminals.
80326         (time, rel, relunit, number, get_date):
80327         Add support for fractional seconds.
80328         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
80329         (gmtime, localtime, mktime): Remove decls; not needed with C89.
80330         (to_hour): First arg is now long int, not int.
80331         (to_year): Returns long int, not int.
80332         Don't treat year -70 like 70.
80333         (tm_diff): Returns long int, not int.
80334         (lookup_word): Use bool instead of int when appropriate.
80335         (yylex): Use size_t for count, not int.
80336         Detect overflow when parsing large integer constants.
80337         Add support for fractions.
80338         (get_date): Make pointers 'const' if possible.
80339         Use more-portable code to detect integer overflow.
80340         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
80341         Don't use ctime; it's not reliable if the year has >4 digits.
80342
80343         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
80344         This is for compatibility with BSD.
80345
80346         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
80347         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
80348         From coreutils' system.h.
80349
80350         * lib/userspec.c: Don't include "posixver.h".
80351         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
80352         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
80353         compatible extension.  Simplify code by removing a boolean int
80354         that was always nonzero if a string was nonnull.
80355
80356 2004-03-30  Jim Meyering  <jim@meyering.net>
80357
80358         Merge from coreutils.
80359
80360         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
80361         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
80362         on some systems one must include <grp.h> before it.
80363         Reported by Christian Krackowizer.
80364
80365 2004-03-30  Jim Meyering  <jim@meyering.net>
80366
80367         Merge from coreutils.
80368
80369         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
80370
80371         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
80372         an empty input stream.
80373
80374         * lib/readtokens.c: Include <stdbool.h>.
80375         (readtoken): Use `size_t' rather than int/long.
80376         All callers adjusted.
80377         Use `bool' rather than `int' where appropriate.
80378         Use memset rather than an explicit loop.
80379         Use x2nrealloc rather than xrealloc.
80380         Allow the use of `\0' as a delimiter.
80381         (readtokens): Likewise.
80382         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
80383
80384 2004-03-30  Jim Meyering  <jim@meyering.net>
80385
80386         * m4/realloc.m4: Remove file, since now it does no more than
80387         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
80388         the `configure.ac' section of module/realloc.
80389         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
80390
80391 2004-03-30  Bruno Haible  <bruno@clisp.org>
80392
80393         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
80394         nonnull.
80395
80396 2004-03-29  Paul Eggert  <eggert@twinsun.com>
80397
80398         Merge changes to getloadavg.c from coreutils and Emacs.
80399
80400         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
80401         Define to an expression, not to the empty string.
80402         Include cloexec.h and xalloc.h.
80403         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
80404         Use set_cloexec_flag rather than rolling our own.
80405         * lib/cloexec.c, lib/cloexec.h: New files.
80406
80407 2004-03-29  Paul Eggert  <eggert@twinsun.com>
80408
80409         * m4/cloexec.m4: New file.
80410
80411 2004-03-18  Paul Eggert  <eggert@twinsun.com>
80412
80413         * lib/getopt.h: Sync with libc CVS.
80414
80415 2004-03-18  Paul Eggert  <eggert@twinsun.com>
80416             Bruno Haible  <bruno@clisp.org>
80417
80418         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
80419         mbswidth.
80420
80421 2004-03-18  Paul Eggert  <eggert@twinsun.com>
80422             Bruno Haible  <bruno@clisp.org>
80423
80424         * lib/mbswidth.h: Include <wchar.h> only if
80425         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
80426         <wchar.h>.
80427         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
80428
80429 2004-03-09  Paul Eggert  <eggert@twinsun.com>
80430
80431         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
80432         Sync with libc CVS.
80433         * lib/getopt_int.h: New file, also synced from libc.
80434
80435 2004-03-09  Paul Eggert  <eggert@twinsun.com>
80436
80437         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
80438         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
80439         Bring back getopt.c, getopt.h, getopt1.c.
80440
80441 2004-03-07  Paul Eggert  <eggert@twinsun.com>
80442
80443         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
80444         All uses changed.  Check for sa_sigaction member; this fixes
80445         a bug first reported by Jason Andrade in
80446         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
80447
80448 2004-03-07  Paul Eggert  <eggert@twinsun.com>
80449
80450         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
80451         '#if' expressions.  Unlike the code it replaces, it does not
80452         depend on (defined _SC_PAGESIZE).  However, it does depend on
80453         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
80454         first reported by Jason Andrade in
80455         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
80456
80457 2004-02-25  Simon Josefsson  <jas@extundo.com>
80458
80459         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
80460
80461 2004-02-25  Simon Josefsson  <jas@extundo.com>
80462
80463         * lib/strdup.h: New file.
80464         * lib/strdup.c: Include it.
80465         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
80466         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
80467
80468 2004-02-23  Karl Berry  <karl@gnu.org>
80469
80470         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
80471         (from fencepost.gnu.org:/gd/gnuorg).
80472
80473 2004-02-23  Karl Berry  <karl@gnu.org>
80474
80475         * config/srclistvars.sh (GNUORG) [karl]: redefine.
80476         * config/srclist.txt: add maintain/standards documents.
80477
80478 2004-02-18  Bruno Haible  <bruno@clisp.org>
80479
80480         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
80481         Reported by Derek Robert Price <derek@ximbiot.com>.
80482
80483 2004-02-16  Karl Berry  <karl@gnu.org>
80484
80485         * config/mkinstalldirs, install-sh: update from automake.
80486
80487 2004-02-06  Karl Berry  <karl@gnu.org>
80488
80489         * m4/po.m4: update from gettext 0.14.1.
80490
80491 2004-02-06  Karl Berry  <karl@gnu.org>
80492
80493         * lib/config.charset: update from gettext 0.14.1.
80494
80495 2004-02-05  Paul Eggert  <eggert@twinsun.com>
80496
80497         Add comments and code, prompted by suggestions from Bruno Haible
80498         for sh-quote.
80499         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
80500         describing the enum quoting_style values.
80501         * lib/quotearg.c (quotearg_alloc): New function.
80502         (quotearg_buffer_restyled): Treat lone { and } as special.
80503         Treat = as special.  Work around bug with older shells
80504         that "see" a '\' that is really the 2nd byte of a multibyte char.
80505         Quote empty string with shell_quoting_style.
80506
80507 2004-02-03  Bruno Haible  <bruno@clisp.org>
80508
80509         * m4/pipe.m4: New file, from GNU gettext.
80510
80511 2004-02-03  Bruno Haible  <bruno@clisp.org>
80512
80513         * lib/pipe.h: New file, from GNU gettext.
80514         * lib/pipe.c: New file, from GNU gettext.
80515
80516 2004-01-27  Bruno Haible  <bruno@clisp.org>
80517
80518         * m4/execute.m4: New file, from GNU gettext.
80519
80520 2004-01-27  Bruno Haible  <bruno@clisp.org>
80521
80522         * lib/execute.h: New file, from GNU gettext.
80523         * lib/execute.c: New file, from GNU gettext.
80524         * lib/w32spawn.h: New file, from GNU gettext.
80525
80526 2004-01-24  Paul Eggert  <eggert@twinsun.com>
80527
80528         Merge from diffutils.
80529
80530         * lib/file-type.c (file_type): Add typed memory objects.
80531         * lib/file-type.h (S_TYPEISTMO): New macro.
80532
80533         * lib/c-stack.h (c_stack_action): Remove argv argument.
80534         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
80535         (die): Don't calculate message unless segv_action returns.
80536         (get_stack_location, min_address_from_argv, max_address_from_argv,
80537         volatile stack_base, volatile_stack_size): Remove.
80538         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
80539         that every segmentation violation is a stack overflow.  (Ouch!)
80540         See Debian bug 136249 (still outstanding) for more info about why
80541         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
80542
80543 2004-01-24  Paul Eggert  <eggert@twinsun.com>
80544
80545         Exit-status fix from coreutils.
80546
80547         Use exit_failure consistently in place of EXIT_FAILURE,
80548         so that program exit statuses are consistent on failure.
80549
80550         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
80551         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
80552         * lib/argmatch.h: Comment fix to match the above.
80553         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
80554         Now a macro referring to exit_failure, instead of a separate
80555         variable.  Include "exitfail.h" to get it.
80556         * lib/xstrtol.h: Include "exitfail.h".
80557         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
80558
80559         * lib/long-options.c (parse_long_options): Use prototype
80560         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
80561         for clarity.
80562
80563 2004-01-21  Jim Meyering  <jim@meyering.net>
80564
80565         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
80566         so as not to conflict with a different-sized __mktime_internal
80567         function in GNU libc.
80568         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
80569         Problem building statically-linked `ls' reported by Michael Brunnbauer.
80570
80571 2004-01-20  Karl Berry  <karl@gnu.org>
80572
80573         * config/config.guess: update from config.
80574
80575         * config/srclistvars.sh: GNUWWWLICENSES for karl.
80576
80577 2004-01-20  Bruno Haible  <bruno@clisp.org>
80578
80579         Safer stack allocation.
80580         * lib/setenv.c: Include allocsa.h.
80581         (alloca): Remove fallback definition.
80582         (freea): Remove macro.
80583         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
80584         instead of freea.
80585
80586 2004-01-20  Bruno Haible  <bruno@clisp.org>
80587
80588         * m4/eealloc.m4: New file, from GNU gettext.
80589
80590 2004-01-20  Bruno Haible  <bruno@clisp.org>
80591
80592         * m4/allocsa.m4: New file, from GNU gettext.
80593
80594 2004-01-20  Bruno Haible  <bruno@clisp.org>
80595
80596         * lib/xallocsa.h: New file, from GNU gettext.
80597         * lib/xallocsa.c: New file, from GNU gettext.
80598
80599 2004-01-20  Bruno Haible  <bruno@clisp.org>
80600
80601         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
80602
80603 2004-01-20  Bruno Haible  <bruno@clisp.org>
80604
80605         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
80606         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
80607         specially.
80608
80609 2004-01-20  Bruno Haible  <bruno@clisp.org>
80610
80611         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
80612         patch.
80613
80614 2004-01-20  Bruno Haible  <bruno@clisp.org>
80615
80616         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
80617
80618 2004-01-20  Bruno Haible  <bruno@clisp.org>
80619
80620         * lib/eealloc.h: New file.
80621
80622 2004-01-20  Bruno Haible  <bruno@clisp.org>
80623
80624         * lib/binary-io.h: Avoid warnings on Cygwin.
80625
80626 2004-01-20  Bruno Haible  <bruno@clisp.org>
80627
80628         * lib/allocsa.h: New file, from GNU gettext.
80629         * lib/allocsa.c: New file, from GNU gettext.
80630
80631 2004-01-18  Karl Berry  <karl@gnu.org>
80632
80633         * doc/gpl.texi, doc/lgpl.texi: new files.
80634
80635 2004-01-18  Karl Berry  <karl@gnu.org>
80636
80637         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
80638         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
80639
80640 2004-01-15  Paul Eggert  <eggert@twinsun.com>
80641
80642         Merge from coreutils.
80643
80644         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
80645         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
80646         (gl_DEFAULT_POSIX2_VERSION): Move
80647         the documentation from 'configure' into 'config.hin',
80648         so that 'configure --help' isn't burdened by it and
80649         we don't have to worry about its formatting there.
80650         Reword the documentation so that it's more succinct
80651         and can be run together into a single paragraph.
80652         * m4/same.m4 (gl_SAME): Check for pathconf.
80653
80654 2004-01-15  Paul Eggert  <eggert@twinsun.com>
80655
80656         Merge from coreutils.
80657
80658         * lib/posixver.c: Include posixver.h.
80659
80660         * lib/same.c: Include <stdbool.h>, <limits.h>.
80661         (_POSIX_NAME_MAX): Define if not defined.
80662         (MIN): New macro.
80663         (same_name): If file names are silently truncated, report
80664         that the file names are the same if they are the same after
80665         the silent truncation.
80666
80667         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
80668         conversion function.
80669         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
80670         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
80671         longer needed.
80672
80673 2004-01-15  Jim Meyering  <jim@meyering.net>
80674
80675         Merge from coreutils.
80676
80677         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
80678         if no library is required.
80679         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
80680         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
80681         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
80682         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
80683         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
80684         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
80685         value, $ac_cv_search_crypt, if it's "none required".
80686         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
80687         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
80688         not gl_FUNC_GETLOADAVG.
80689         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
80690         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
80691
80692 2004-01-15  Jim Meyering  <jim@meyering.net>
80693
80694         Merge from coreutils.
80695
80696         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
80697         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
80698         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
80699
80700         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
80701         optional configure-time default.
80702
80703         * lib/version-etc.c (version_etc_copyright): Update copyright date.
80704
80705         * lib/xreadlink.c (xreadlink): Correct outdated comment.
80706
80707 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
80708
80709         Merge from coreutils.
80710
80711         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
80712         value, $ac_cv_search_nanosleep, if it's "none required".
80713
80714 2004-01-14  Paul Eggert  <eggert@twinsun.com>
80715
80716         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
80717         with like-named macro in fnmatch.c.
80718         (EXT): Use an internal constant instead.
80719
80720         Merge fnmatch patches from glibc.
80721         * lib/fnmatch.c (mbsinit): Remove define.
80722         Add libc_hidden_ver (__fnmatch, fnmatch).
80723         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
80724         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
80725
80726 2004-01-14  Karl Berry  <karl@gnu.org>
80727
80728         * config/install-sh: update from automake.
80729
80730 2004-01-13  Karl Berry  <karl@gnu.org>
80731
80732         * config/install-sh: update from automake.
80733
80734 2004-01-09  Karl Berry  <karl@gnu.org>
80735
80736         * config/install-sh: update from automake.
80737
80738 2004-01-05  Karl Berry  <karl@gnu.org>
80739
80740         * config/config.{sub,guess}: update from config.
80741
80742 2003-12-31  Karl Berry  <karl@gnu.org>
80743
80744         * config/depcomp: update from automake.
80745
80746 2003-12-14  Karl Berry  <karl@gnu.org>
80747
80748         * lib/config.charset: update from gettext-runtime.
80749
80750 2003-12-03  Paul Eggert  <eggert@twinsun.com>
80751
80752         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
80753         Bug reported by Alfred M. Szmidt.
80754
80755 2003-12-03  Bruno Haible  <bruno@clisp.org>
80756
80757         * m4/gettext.m4: Upgrade from gettext-0.13.
80758         * m4/po.m4: Upgrade from gettext-0.13.
80759         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
80760         * m4/intmax.m4: New file, from gettext-0.13.
80761         * m4/printf-posix.m4: New file, from gettext-0.13.
80762
80763 2003-11-29  Karl Berry  <karl@gnu.org>
80764
80765         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
80766
80767 2003-11-25  Paul Eggert  <eggert@twinsun.com>
80768             Bruno Haible  <bruno@clisp.org>
80769
80770         * lib/printf-parse.h: Don't include sys/types.h.
80771         (ARG_NONE): New macro.
80772         (char_directive): Change type of *arg_index fields to size_t.
80773         * lib/printf-parse.c: Don't include sys/types.h.
80774         (SSIZE_MAX): Remove macro.
80775         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
80776         Remove unnecessary overflow check.
80777         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
80778         fields.
80779
80780 2003-11-25  Bruno Haible  <bruno@clisp.org>
80781
80782         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
80783
80784 2003-11-25  Bruno Haible  <bruno@clisp.org>
80785
80786         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
80787         gt_TYPE_SSIZE_T.
80788
80789 2003-11-24  Paul Eggert  <eggert@twinsun.com>
80790
80791         * modules/alloca: Remove dependency on xalloc.
80792
80793 2003-11-24  Paul Eggert  <eggert@twinsun.com>
80794
80795         * lib/alloca.c: Remove dependency on xalloc module.
80796         (xalloc_die): Remove.
80797         (memory_full) [!defined emacs]: New macro.
80798         [!defined emacs]: Don't include xalloc.h.
80799         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
80800         address arithmetic overflows.  Change datatypes a bit to avoid
80801         unnecessary casts.
80802
80803 2003-11-22  Jim Meyering  <jim@meyering.net>
80804
80805         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
80806         s/size/size_t/.
80807
80808 2003-11-21  Karl Berry  <karl@gnu.org>
80809
80810         * config/config.{sub,guess}: update from config.
80811
80812 2003-11-18  Karl Berry  <karl@gnu.org>
80813
80814         * config/config.{sub,guess}: update from config.
80815
80816         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
80817
80818 2003-11-17  Paul Eggert  <eggert@twinsun.com>
80819
80820         * README: Mention that S+T cannot overflow if S is the size of
80821         an existing object and T is sufficiently small.
80822
80823 2003-11-17  Jim Meyering  <jim@meyering.net>
80824
80825         On systems without utime and without a utimes function capable of
80826         dealing with a NULL struct utimbuf* argument, this utime replacement
80827         could -- in unusual circumstances -- leak a file descriptor.
80828         * lib/utime.c: Include <unistd.h> and <errno.h>.
80829         (utime_null): Be sure to close `fd' and to preserve errno.
80830         Reported by Geoff Collyer via Arnold Robbins.
80831
80832 2003-11-17  Bruno Haible  <bruno@clisp.org>
80833
80834         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
80835         (Depends-on): Add xsize.
80836
80837 2003-11-17  Bruno Haible  <bruno@clisp.org>
80838
80839         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
80840
80841 2003-11-17  Bruno Haible  <bruno@clisp.org>
80842
80843         * lib/vasnprintf.c (alloca): Remove fallback definition.
80844         (freea): Remove definition.
80845         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
80846         Reported by Paul Eggert.
80847
80848 2003-11-16  Paul Eggert  <eggert@twinsun.com>
80849             Bruno Haible  <bruno@clisp.org>
80850
80851         Protect against address arithmetic overflow.
80852         * lib/printf-args.h: Include stddef.h.
80853         (arguments): Change type of field 'count' to size_t.
80854         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
80855         'unsigned int' where appropriate.
80856         * lib/printf-parse.h: Include sys/types.h.
80857         (char_directive): Change type of *arg_index fields to ssize_t.
80858         (char_directives): Change type of fields 'count', max_*_length to
80859         size_t.
80860         * lib/printf-parse.c: Include sys/types.h and xsize.h.
80861         (SSIZE_MAX): Define fallback value.
80862         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
80863         instead of 'int' where appropriate. Check a_allocated, d_allocated
80864         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
80865         * lib/vasnprintf.c: Include xsize.h.
80866         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
80867         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
80868         overflow. Avoid wraparound when converting a width or precision from
80869         decimal to binary.
80870
80871 2003-11-16  Bruno Haible  <bruno@clisp.org>
80872
80873         Update from GNU gettext.
80874         * lib/printf-parse.c: Generalize to it can be compiled for wide
80875         strings.
80876         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
80877         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
80878         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
80879         SNPRINTF): New macros.
80880         Don't include <alloca.h> if the file is used inside libintl.
80881         (local_wcslen): New function, for Solaris 2.5.1.
80882         (VASNPRINTF): Use it instead of wcslen.
80883
80884 2003-11-16  Bruno Haible  <bruno@clisp.org>
80885
80886         * lib/xsize.h (xmax): New function.
80887         (xsum, xsum3, xsum4): Declare as "pure" functions.
80888
80889 2003-11-12  Paul Eggert  <eggert@twinsun.com>
80890
80891         * modules/xalloc (Files): Undo latest change, since xalloc.h
80892         no longer needs SIZE_MAX or PTRDIFF_MAX.
80893
80894 2003-11-12  Paul Eggert  <eggert@twinsun.com>
80895
80896         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
80897         gl_PTRDIFF_MAX.
80898
80899 2003-11-12  Paul Eggert  <eggert@twinsun.com>
80900
80901         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
80902         "return", to pacify some unknown compiler.  Problem reported
80903         by Joerg Schilling.
80904
80905 2003-11-12  Paul Eggert  <eggert@twinsun.com>
80906
80907         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
80908         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
80909         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
80910         heuristic is just as accurate as far as we know, and it removes a
80911         dependency on size_max.m4 and ptrdiff_max.m4.
80912
80913 2003-11-11  Bruno Haible  <bruno@clisp.org>
80914
80915         * modules/xsize (Files): Add m4/size_max.m4.
80916         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
80917
80918 2003-11-11  Bruno Haible  <bruno@clisp.org>
80919
80920         * m4/size_max.m4: New file.
80921         * m4/ptrdiff_max.m4: New file.
80922         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
80923         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
80924         (gl_XALLOC): Invoke it.
80925
80926 2003-11-11  Bruno Haible  <bruno@clisp.org>
80927
80928         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
80929         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
80930         defined.
80931
80932 2003-11-10  Paul Eggert  <eggert@twinsun.com>
80933
80934         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
80935         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
80936         rejected some allocations of exactly SIZE_MAX - 2 bytes.
80937         From Bruno Haible.
80938         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
80939         not (size_t) -1, since it's defined here.
80940
80941 2003-11-09  Karl Berry  <karl@gnu.org>
80942
80943         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
80944
80945 2003-11-06  Paul Eggert  <eggert@twinsun.com>
80946
80947         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
80948         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
80949         Reject sizes of exactly SIZE_MAX bytes.
80950         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
80951         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
80952
80953 2003-11-05  Bruno Haible  <bruno@clisp.org>
80954
80955         * lib/xsize.h: Include limits.h, to avoid a possible collision with
80956         SIZE_MAX defined in <limits.h> on Solaris.
80957
80958 2003-11-04  Jim Meyering  <jim@meyering.net>
80959
80960         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
80961         variable names, rather than @VAR@.
80962         * modules/poll: Likewise.
80963
80964 2003-11-04  Bruno Haible  <bruno@clisp.org>
80965
80966         * modules/xsize: New file.
80967         * modules/linebreak: Depend on xsize.
80968         * MODULES.html.sh (func_all_modules): Add xsize.
80969
80970 2003-11-04  Bruno Haible  <bruno@clisp.org>
80971
80972         * m4/xsize.m4: New file.
80973
80974 2003-11-04  Bruno Haible  <bruno@clisp.org>
80975
80976         * lib/xsize.h: New file.
80977         * lib/linebreak.c: Include xsize.h.
80978         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
80979         argument for overflow.
80980         Suggested by Paul Eggert.
80981
80982 2003-11-03  Karl Berry  <karl@gnu.org>
80983
80984         * config/config.{guess,sub}: update from config.
80985
80986 2003-11-03  Jim Meyering  <jim@meyering.net>
80987
80988         * modules/userspec (lib_SOURCES): Add userspec.h.
80989         (Include): Add "userspec.h".
80990         Improve description.
80991
80992 2003-11-03  Jim Meyering  <jim@meyering.net>
80993
80994         * lib/userspec.c: Include "userspec.h".
80995         * lib/userspec.h: New file.
80996
80997 2003-11-03  Bruno Haible  <bruno@clisp.org>
80998
80999         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
81000
81001 2003-11-03  Bruno Haible  <bruno@clisp.org>
81002
81003         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
81004         available, to avoid (extremely rare) race condition.
81005         Suggested by Paul Eggert.
81006
81007 2003-11-02  Karl Berry  <karl@gnu.org>
81008
81009         * config/srclist.txt (vasprintf.c): sync broken, sigh.
81010
81011 2003-10-31  Paul Eggert  <eggert@twinsun.com>
81012
81013         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
81014         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
81015         (read_filesystem_list): Set and use me_type_malloced.
81016         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
81017         whatever the type happens to be), for brevity and consistency.
81018         Check for size calculation overflow on Alphas running OSF/1.
81019
81020 2003-10-31  Jim Meyering  <jim@meyering.net>
81021
81022         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
81023
81024         * lib/linebuffer.c: Include <string.h> for declaration of memset.
81025
81026 2003-10-30  Paul Eggert  <eggert@twinsun.com>
81027             Bruno Haible  <bruno@clisp.org>
81028
81029         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
81030         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
81031
81032 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
81033
81034         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
81035         netbsd*-gnu*.  Suggested by Robert Millan.
81036
81037 2003-10-29  Paul Eggert  <eggert@twinsun.com>
81038
81039         * modules/group-member: Depend on stdbool.
81040
81041 2003-10-29  Paul Eggert  <eggert@twinsun.com>
81042
81043         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
81044
81045 2003-10-29  Paul Eggert  <eggert@twinsun.com>
81046
81047         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
81048         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
81049         after the 'gnu' in these cases.  This fixes some bugs in the
81050         previous change, and is based on suggestions by Robert Millan.
81051
81052 2003-10-29  Paul Eggert  <eggert@twinsun.com>
81053
81054         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
81055         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
81056         no longer needed.
81057         * lib/quotearg.c (quotearg_n_options): Use it.
81058         * lib/group-member.c: Include <stdbool.h>.
81059         (free_group_info): Arg is now const *; don't free arg.
81060         (get_group_info): Now returns bool and accepts struct group_info *,
81061         rather than returning a malloc'ed struct group_info *.
81062         All uses changed.  Check for overflow in internal size calculation.
81063
81064         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
81065         rather than xmalloc/xrealloc.
81066         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
81067         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
81068         conformance bug: the old code used a pointer after freeing the
81069         storage that it addressed.
81070         * lib/hash.c (hash_initialize): Simplify the code by using
81071         xalloc_oversized rather than doing it by hand.
81072         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
81073         the buffer preserved.  Use free and xmalloc instead.
81074         * lib/quotearg.c (quotearg_n_options): Likewise.
81075         Use a simpler test for size overflow.  Don't use xalloc_oversized
81076         because unsigned int might be wider than size_t (!); this suggests
81077         that we should switch from unsigned int to size_t for slot numbers.
81078
81079 2003-10-28  Paul Eggert  <eggert@twinsun.com>
81080
81081         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
81082         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
81083         NetBSD kernels.  Requested by Richard Stallman.
81084
81085 2003-10-27  Paul Eggert  <eggert@twinsun.com>
81086
81087         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
81088         to allocate the returned structure.  Do not allocate a subarray,
81089         as x2nrealloc will do that.
81090         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
81091         instead of xnrealloc.
81092         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
81093
81094 2003-10-27  Bruno Haible  <bruno@clisp.org>
81095
81096         * lib/stdbool_.h: Better support for BeOS.
81097
81098 2003-10-26  Paul Eggert  <eggert@twinsun.com>
81099
81100         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
81101         now uses inline.
81102
81103 2003-10-26  Paul Eggert  <eggert@twinsun.com>
81104
81105         * lib/xalloc.h (xalloc_oversized): New static inline function, for
81106         callers that want to do their own size-overflow checking.  Include
81107         <stdbool.h>, since xalloc_oversized returns bool.
81108         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
81109         to use xalloc_oversized.
81110
81111         Add two functions x2realloc, x2nrealloc, for programs that grow
81112         arrays dynamically by doubling their sizes.
81113         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
81114         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
81115         New functions.
81116
81117         Port to C99 semantics for 'inline' of external functions.
81118         Bug reported by Bruno Haible.
81119         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
81120         with the old contents of xnmalloc.
81121         (xnmalloc, xmalloc): Use it.
81122         (xnrealloc_inline): New static inline function,
81123         with the old contents of xnrealloc.
81124         (xnrealloc, xrealloc): Use it.
81125
81126         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
81127         that.
81128
81129 2003-10-26  Karl Berry  <karl@gnu.org>
81130
81131         * config/srclist.txt (COPYING.DOC): no longer available from
81132         /gd/gnuorg; don't know where the ultimate source is.
81133
81134 2003-10-25  Paul Eggert  <eggert@twinsun.com>
81135
81136         Fix several address-calculation bugs in the hash modules,
81137         plus some minor code cleanup.
81138
81139         * lib/hash.h: Include <stdbool.h>, for bool.
81140         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
81141         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
81142         hash_get_n_entries, hash_get_max_bucket_length,
81143         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
81144         hash_rehash): Use size_t rather than unsigned.
81145         * lib/hash.c (struct hash_table, hash_get_n_buckets,
81146         hash_get_n_buckets_used, hash_get_n_entries,
81147         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
81148         hash_get_entries, hash_do_for_each, hash_string, is_prime,
81149         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
81150         Likewise.
81151         (SIZE_MAX): Define if not defined.
81152         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
81153         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
81154         hash_print):
81155         Use const * when possible.
81156         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
81157         (check_tuning): Fix bug: if tuning parameters were very close to
81158         0 or 1, rounding errors could have caused subscript violations.
81159         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
81160         (hash_initialize): Add 'fail:' label
81161         to free table and return NULL, and use it to simplify code.
81162         Use calloc rather than clearing the storage ourself.
81163         (hash_initialize, hash_rehash): Check for arithmetic overflow in
81164         buffer size calculations.
81165         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
81166         Include <stddef.h>, for size_t.
81167         * lib/hash-pjw.c (hash_pjw): Likewise.
81168         Switch to method described by Bruno Haible.
81169         Include <limits.h>, for CHAR_BIT.
81170         (SIZE_BITS): New macro.
81171
81172 2003-10-23  Paul Eggert  <eggert@twinsun.com>
81173
81174         * m4/getline.m4 (AM_FUNC_GETLINE):
81175         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
81176         hosts.  Problem reported by Derek Robert Price in
81177         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
81178         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
81179         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
81180
81181 2003-10-21  Paul Eggert  <eggert@twinsun.com>
81182
81183         * lib/getndelim2.c (getndelim2): When size calculation overflows,
81184         ceiling the allocation at NMAX bytes rather than silently
81185         discarding input bytes before NMAX is reached.  This makes
81186         a difference only if NMAX exceeds SIZE_MAX / 2.
81187
81188         * lib/obstack.c: Merge from glibc.
81189         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
81190         Add libc_hidden_def (_obstack_newchunk).
81191         (_obstack_free) [! defined _LIBC]: Remove.
81192         [defined _LIBC]: Make a strong alias from obstack_free, rather than
81193         a clone of the function body.
81194         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
81195         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
81196
81197         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
81198         glibc.
81199         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
81200         arg to memcpy.
81201
81202         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
81203         (obstack_ptr_grow_fast, obstack_int_grow_fast):
81204         Don't use lvalue casts, as GCC plans to remove support for them
81205         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
81206         was also present in the non-GCC version, indicating that this
81207         code had always been buggy and had never been widely used.
81208         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
81209         Use the fast variant of each macro, rather than copying the
81210         definiens of the fast variant; that way, we'll be more likely to
81211         catch future bugs in the fast variants.
81212
81213 2003-10-20  Bruno Haible  <bruno@clisp.org>
81214
81215         * modules/wait-process: New file.
81216         * MODULES.html.sh (func_all_modules): Add wait-process.
81217
81218 2003-10-20  Bruno Haible  <bruno@clisp.org>
81219
81220         * m4/wait-process.m4: New file.
81221
81222 2003-10-20  Bruno Haible  <bruno@clisp.org>
81223
81224         * lib/wait-process.h: New file, from GNU gettext.
81225         * lib/wait-process.c: New file, from GNU gettext.
81226
81227 2003-10-19  Jim Meyering  <jim@meyering.net>
81228
81229         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
81230         HPUX 10.20.
81231
81232 2003-10-18  Karl Berry  <karl@gnu.org>
81233
81234         * config/config.guess: update from config.
81235
81236 2003-10-16  Paul Eggert  <eggert@twinsun.com>
81237
81238         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
81239         (getgroups): First arg is int, not size_t.
81240         Don't let 'free' mangle errno.
81241
81242 2003-10-16  Paul Eggert  <eggert@twinsun.com>
81243
81244         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
81245
81246 2003-10-16  Karl Berry  <karl@gnu.org>
81247
81248         * config/config.{guess,sub}: update from config.
81249
81250 2003-10-16  Jim Meyering  <jim@meyering.net>
81251
81252         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
81253         memcpy.
81254
81255 2003-10-15  Paul Eggert  <eggert@twinsun.com>
81256
81257         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
81258         (SIZE_MAX): Remove.
81259         (new_exclude, add_exclude_file): Initial size no longer needs to
81260         be a power of 2.
81261         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
81262         our own address arithmetic overflow checking.
81263
81264         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
81265         (fnmatch): Do not alloca more than 2000 wide characters;
81266         instead, use malloc for large buffers.
81267         Check for address arithmetic overflow, and return -1
81268         with errno set to ENOMEM in that case.
81269         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
81270         (NEW_PATTERN): Do not alloca more than 8000 bytes;
81271         instead, return -1.  Check for address arithmetic overflow.
81272
81273 2003-10-14  Paul Eggert  <eggert@twinsun.com>
81274
81275         Handle invalid suffixes and overflow independently, so that
81276         callers can treat them independently as needed.  Fix some bugs in
81277         suffix handling, e.g., "100k@" was not diagnosed as an invalid
81278         suffix for a human-readable blocksize.  The major caller-visible
81279         change is the addition of a new
81280         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
81281         that both overflow and suffix chars were found.
81282
81283         * lib/human.c (humblock): Don't check separately for invalid suffix
81284         char; that is xstrtoumax's job (now that its bug is fixed).
81285         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
81286         INTMAX_MAX]: New macros.
81287         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
81288         TYPE_MAXIMUM): New macros.
81289         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
81290         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
81291         if overflow occurs, as it's what __strtol does and it's more useful
81292         in practice.
81293         (__xstrtol): If __strtol reports some error other than ERANGE,
81294         reflect it to the caller as LONGINT_INVALID.  If it reports
81295         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
81296         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
81297         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
81298         value.
81299         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
81300         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
81301         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
81302         [defined UINTMAX_MAX]: New macros.
81303
81304 2003-10-14  Bruno Haible  <bruno@clisp.org>
81305
81306         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
81307
81308 2003-10-14  Bruno Haible  <bruno@clisp.org>
81309
81310         * m4/sig_atomic_t: New file, from GNU gettext.
81311         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
81312
81313 2003-10-14  Bruno Haible  <bruno@clisp.org>
81314
81315         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
81316         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
81317         Also use volatile where needed.
81318
81319 2003-10-12  Paul Eggert  <eggert@twinsun.com>
81320
81321         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
81322         Change maintainer from Bruno Haible to 'all'.
81323
81324 2003-10-12  Paul Eggert  <eggert@twinsun.com>
81325
81326         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
81327
81328 2003-10-12  Paul Eggert  <eggert@twinsun.com>
81329
81330         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
81331         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
81332         and define in terms of the other primitives.
81333         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
81334         (SIZE_MAX): Define if not already defined.
81335         (array_size_overflow): New function.
81336         (xalloc_die): Abort instead of exiting if 'error' returns.
81337         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
81338         (xmalloc, xrealloc): Use them.
81339         (xcalloc): Check for address arithmetic overflow.
81340         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
81341         a bit faster than strcpy.
81342
81343 2003-10-10  Simon Josefsson  <jas@extundo.com>
81344
81345         * modules/argp (Depends-on): Add restrict and strcase.
81346
81347 2003-10-10  Simon Josefsson  <jas@extundo.com>
81348
81349         * m4/argp.m4: Add AC_C_INLINE.
81350
81351 2003-10-08  Paul Eggert  <eggert@twinsun.com>
81352
81353         Merge getpass from libc, plus a few fixes.
81354
81355         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
81356         Include <stdbool.h>.
81357         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
81358         __fsetlocking to empty.
81359         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
81360         do include <bits/libc-lock.h>.
81361         Do not include <fcntl.h>; not needed.
81362         [_LIBC]: Include <wchar.h>.
81363         (NOTCANCEL_MODE): New macro.
81364         (flockfile, funlockfile) [_LIBC]: New macros.
81365         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
81366         [!_LIBC]: New macros.
81367         (call_fclose): New function.
81368         (getpass): Use it.  Save tty stream separately; this simplifies the
81369         code and makes it more reliable if stdin happens to equal stdout.
81370         Invoke __fsetlocking on tty.
81371         Handle thread cancellation if needed.
81372         Namespace cleanup (use __tcgetattr, __getline).
81373         Use bool for Booleans.
81374         [USE_IN_LIBIO]: Handle wide streams.
81375         [!_LIBC]: Unconditionally do the fseek, since we don't know what
81376         stream might go where.
81377
81378         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
81379         doesn't have to include <stdio.h> before us.
81380         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
81381         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
81382         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
81383         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
81384         if not declared, so that we can use getpass.c code from libc without
81385         rewriting it.
81386         (flockfile, ftrylockfile, funlockfile): New macros.
81387
81388 2003-10-08  Paul Eggert  <eggert@twinsun.com>
81389
81390         * modules/getpass: Depend on stdbool.
81391
81392 2003-10-08  Paul Eggert  <eggert@twinsun.com>
81393
81394         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
81395
81396 2003-10-07  Karl Berry  <karl@gnu.org>
81397
81398         * config/config.{guess,sub}: update from config.
81399
81400 2003-10-06  Jim Meyering  <jim@meyering.net>
81401             Bruno Haible  <bruno@clisp.org>
81402
81403         This lets translators provide better translations for the
81404         "Written by ..." part of --version output.
81405         * lib/version-etc.h: Include stdarg.h.
81406         (version_etc_copyright): Declare as readonly.
81407         (version_etc): Make this function variadic with a NULL-terminated list
81408         of author name strings.
81409         (version_etc_va): New declaration.
81410         * lib/version-etc.c: Include stdarg.h, stdlib.h.
81411         (version_etc_copyright): Declare as readonly.
81412         (version_etc_va): New function. Provide a different translatable string
81413         for each possible number of authors < 10. Abbreviate when there are 10
81414         authors or more.
81415         (version_etc): Make this function variadic. Call version_etc_va.
81416         Suggestion from Gary V. Vaughan.
81417
81418         * lib/long-options.h (parse_long_options): Change prototype: the
81419         authors string is moved to the end and becomes variadic.
81420         * lib/long-options.c: Include stdarg.h.
81421         (parse_long_options): Make this function variadic, too.
81422         Call version_etc_va, not version_etc.
81423
81424 2003-10-06  Bruno Haible  <bruno@clisp.org>
81425
81426         * modules/version-etc-2: Remove file.
81427         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
81428
81429 2003-10-06  Bruno Haible  <bruno@clisp.org>
81430
81431         * modules/fatal-signal: New file.
81432         * MODULES.html.sh (func_all_modules): Add fatal-signal.
81433
81434 2003-10-06  Bruno Haible  <bruno@clisp.org>
81435
81436         * m4/fatal-signal.m4: New file.
81437         * m4/signalblocking.m4: New file, from GNU gettext.
81438
81439 2003-10-06  Bruno Haible  <bruno@clisp.org>
81440
81441         * lib/version-etc-2.h: Remove file.
81442         * lib/version-etc-2.c: Remove file.
81443
81444 2003-10-06  Bruno Haible  <bruno@clisp.org>
81445
81446         * lib/fatal-signal.h: New file, from GNU gettext.
81447         * lib/fatal-signal.c: New file, from GNU gettext.
81448
81449 2003-10-05  Paul Eggert  <eggert@twinsun.com>
81450
81451         * README: Rework advice for preventing empty .o files.
81452         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
81453         not <sys/types.h>.
81454
81455 2003-10-04  Karl Berry  <karl@gnu.org>
81456
81457         * lib/argp*: update from libc.
81458
81459 2003-10-04  Karl Berry  <karl@gnu.org>
81460
81461         * config/config.{guess,sub}: update from config.
81462
81463 2003-10-02  Bruno Haible  <bruno@clisp.org>
81464
81465         * modules/lchown (Include): Add lchown.h.
81466         * modules/time_r (Include): Use "..." syntax.
81467         * modules/xgetdomainname (Include): Add xgetdomainname.h.
81468
81469 2003-10-01  Simon Josefsson  <jas@extundo.com>
81470
81471         * MODULES.html.sh (func_all_modules): Move gethostname from section
81472         'based on' to section 'lacking' POSIX:2001.
81473
81474 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
81475
81476         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
81477         to output mode on the same stream.
81478
81479 2003-09-29  Paul Eggert  <eggert@twinsun.com>
81480
81481         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
81482         Fix arg typo in previous patch.
81483
81484 2003-09-28  Jim Meyering  <jim@meyering.net>
81485
81486         * lib/error.c: Correct cpp indentation.
81487
81488 2003-09-27  Paul Eggert  <eggert@twinsun.com>
81489
81490         * modules/free: New file.
81491
81492 2003-09-27  Paul Eggert  <eggert@twinsun.com>
81493
81494         * m4/free.m4: New file.
81495
81496 2003-09-27  Paul Eggert  <eggert@twinsun.com>
81497
81498         * lib/minmax.h (MIN, MAX)
81499         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
81500         Omit the special code that used __typeof__, since we worry that
81501         it could be more trouble than it's worth.  See:
81502         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
81503         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
81504
81505         * lib/free.c: New file.
81506
81507 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
81508
81509         Trivial fixes to Makefile.am parts of module listings.
81510         * modules/strstr: Append strstr.h to lib_SOURCES.
81511         * modules/strcase: Likewise, for strcase.h.
81512
81513 2003-09-27  Karl Berry  <karl@gnu.org>
81514
81515         * config/mkinstalldirs: update from automake.
81516
81517 2003-09-26  Paul Eggert  <eggert@twinsun.com>
81518
81519         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
81520         (error_tail): Do not loop, reallocating temporary buffer, since
81521         the output cannot contain more wide characters than the input
81522         contains bytes, the size must be big enough already.  This avoids
81523         one potential size overflow calculation.  Check for size overflow
81524         when calculating temporary buffer size.  Free temporary buffer
81525         when done, if it was allocated with malloc; this plugs a memory
81526         leak.  Remove casts from void * to pointers, that are no longer
81527         needed now that we're assuming C89 or better.
81528
81529         Merge error changes from glibc.
81530
81531         * lib/error.c, error.h: Update copyright notice header to match glibc.
81532         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
81533         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
81534         Disable cancellation while printing error.
81535         * lib/error.h: Prepend __ to parameter names.
81536
81537 2003-09-26  Jim Meyering  <jim@meyering.net>
81538
81539         * lib/error.c (error_tail): Move some declarations
81540         into inner scope where the local variables are used.
81541
81542 2003-09-26  Bruno Haible  <bruno@clisp.org>
81543
81544         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
81545         stpncpy().
81546         Don't define stpncpy through config.h; it's now done through stpncpy.h.
81547
81548 2003-09-26  Bruno Haible  <bruno@clisp.org>
81549
81550         * lib/stpncpy.h (gnu_stpncpy): New declaration.
81551         (stpncpy): Define as alias for gnu_stpncpy.
81552         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
81553
81554 2003-09-25  Simon Josefsson  <jas@extundo.com>
81555
81556         * lib/xgetdomainname.h: New file.
81557         * lib/xgetdomainname.c: New file.
81558
81559 2003-09-25  Simon Josefsson  <jas@extundo.com>
81560             Bruno Haible  <bruno@clisp.org>
81561
81562         * modules/getdomainname: New file.
81563         * modules/xgetdomainname: New file.
81564         * MODULES.html.sh (func_all_modules): Add getdomainname,
81565         xgetdomainname.
81566
81567 2003-09-25  Simon Josefsson  <jas@extundo.com>
81568             Bruno Haible  <bruno@clisp.org>
81569
81570         * m4/getdomainname.m4: New file.
81571
81572 2003-09-25  Simon Josefsson  <jas@extundo.com>
81573             Bruno Haible  <bruno@clisp.org>
81574
81575         * lib/getdomainname.h: New file.
81576         * lib/getdomainname.c: New file.
81577
81578 2003-09-25  Karl Berry  <karl@gnu.org>
81579
81580         * lib/argp-fmtstream.c, argp-help.c: update from libc.
81581
81582 2003-09-25  Karl Berry  <karl@gnu.org>
81583
81584         * config/install-sh: update from automake.
81585
81586 2003-09-25  Bruno Haible  <bruno@clisp.org>
81587
81588         * modules/version-etc-2: New file, from modules/version-etc with
81589         modifications.
81590         * MODULES.html.sh (func_all_modules): Add version-etc-2.
81591
81592 2003-09-25  Bruno Haible  <bruno@clisp.org>
81593
81594         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
81595         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
81596
81597 2003-09-24  Simon Josefsson  <jas@extundo.com>
81598
81599         * modules/xgethostname: Add xgethostname.h.
81600
81601 2003-09-24  Paul Eggert  <eggert@twinsun.com>
81602
81603         * lib/linebuffer.c (freebuffer): Don't free the argument, just
81604         the buffer associated with the argument.  Bug reported by
81605         Simon Josefsson.
81606
81607 2003-09-24  Paul Eggert  <eggert@twinsun.com>
81608
81609         * README: Document assumptions that 'int' is at least 32 bits
81610         wide, that integer arithmetic is 2's complement without overflow,
81611         that there are no holes in integer values, that adding sizes of
81612         two nonoverlapping objects can't overflow, and that all-bits-zero
81613         yields scalar zero.  Fix spelling and capitalization typos.
81614
81615 2003-09-19  Karl Berry  <karl@gnu.org>
81616
81617         * lib/argp.h: update from libc.
81618
81619 2003-09-17  Paul Eggert  <eggert@twinsun.com>
81620
81621         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
81622         to avoid spurious warnings like "AC_RUN_IFELSE was called before
81623         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
81624
81625 2003-09-17  Paul Eggert  <eggert@twinsun.com>
81626
81627         * gnulib-tool: Use "test -h", not "test -L", for portability
81628         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
81629         (tags_regexp): Remove, since \| doesn't conform to POSIX.
81630         (sed_extract_prog): Issue s commands one-by-one, rather than
81631         using \| in one s command.
81632
81633 2003-09-16  Paul Eggert  <eggert@twinsun.com>
81634
81635         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
81636         input error, instead of returning NULL the next time we are called
81637         (and therefore losing track of errno).
81638
81639 2003-09-16  Bruno Haible  <bruno@clisp.org>
81640
81641         * gnulib-tool (func_create_testdir): Warn about duplicated
81642         dependencies.
81643
81644 2003-09-15  Paul Eggert  <eggert@twinsun.com>
81645
81646         * modules/argmatch, modules/fatal, modules/obstack,
81647         modules/xalloc, modules/xgethostname: Sort dependencies by
81648         importance, not alphabetically.
81649
81650 2003-09-15  Paul Eggert  <eggert@twinsun.com>
81651
81652         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
81653         fails, so that the caller gets the proper errno.
81654
81655         * lib/readutmp.c (read_utmp): Likewise.
81656         Check for fstat error.  Close stream and free storage
81657         when failing.
81658
81659 2003-09-14  Karl Berry  <karl@gnu.org>
81660
81661         * config/srclist.txt (strdup.c): disable for c89 changes.
81662
81663 2003-09-14  Jim Meyering  <jim@meyering.net>
81664
81665         * lib/getloadavg.c: Correct cpp indentation.
81666         * lib/strdup.c: Likewise.
81667         * lib/vasnprintf.c: Likewise.
81668
81669 2003-09-14  Bruno Haible  <bruno@clisp.org>
81670
81671         * modules/fwriteerror: New file.
81672         * MODULES.html.sh (func_all_modules): Add fwriteerror.
81673
81674 2003-09-14  Bruno Haible  <bruno@clisp.org>
81675
81676         * lib/fwriteerror.h: New file.
81677         * lib/fwriteerror.c: New file.
81678
81679 2003-09-12  Paul Eggert  <eggert@twinsun.com>
81680
81681         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
81682         modules/xgethostname, modules/xalloc: Depend on exit.
81683
81684 2003-09-12  Paul Eggert  <eggert@twinsun.com>
81685
81686         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
81687
81688         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
81689         and AC_MINIX, too, so that their extensions are available.
81690
81691         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
81692         This macro has been superseded by gl_BACKUPFILE.
81693
81694         More patches to assume C89 or better.
81695
81696         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
81697
81698         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
81699         unconditionally.
81700         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
81701         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
81702         Include <string.h>, <stdlib.h> unconditionally.
81703         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
81704         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
81705         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
81706         headers or for string.h.
81707         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
81708         or strtoul.
81709
81710         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
81711         headers.
81712         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
81713         * m4/userspec.m4 (gl_USERSPEC): Likewise.
81714         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
81715         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
81716         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
81717         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
81718         memcpy, memset.
81719         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
81720         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
81721         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
81722         strtol.
81723         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
81724         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
81725         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
81726         strtoul.
81727
81728 2003-09-12  Paul Eggert  <eggert@twinsun.com>
81729
81730         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
81731         * lib/obstack.c [!defined _LIBC]: Likewise.
81732         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
81733         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
81734         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
81735
81736         More changes to assume C89 or better.
81737
81738         * lib/error.c (error_tail): Assume vprintf.
81739
81740         * lib/argmatch.c (getenv): Remove decl.
81741         * lib/progreloc.c (get_full_program_name): Define via prototype.
81742         * lib/setenv.c (clearenv): Likewise.
81743         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
81744         needed.
81745         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
81746         (malloc, memcpy): Remove decls.
81747         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
81748         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
81749         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
81750         (memcpy): Remove macro.
81751         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
81752         (__P): Remove.  All uses removed.
81753         (PTR): Remove.  All uses changed to void *.
81754         (CHAR_BIT, NULL): Remove.
81755         (spaces, zeros, memset_space, memset_zero)
81756         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
81757         Remove.
81758         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
81759         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
81760         Define with prototype.
81761         Remove now-unnecessary prototype decl.
81762         (extra_args_spec): Assume ANSI C.  All uses changed.
81763         (extra_args_spec_iso): Remove.
81764         (my_strftime, emacs_strftimeu): Define via prototype.
81765         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
81766         unconditionally.
81767         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
81768         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
81769         (strtoul, strtol): Remove decls.
81770         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
81771         LONG_MAX): Remove.
81772         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
81773         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
81774         (LOCALE_PARAM_PROTO): New macro.
81775         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
81776         (INTERNAL (strtol), strtol): Define with a prototype.
81777         (PARAMS): Remove.  All uses removed.
81778         * lib/tempname.c: Include <string.h> unconditionally.
81779         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
81780         * lib/xgethostname.c (main): Define with a prototype.
81781         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
81782         Include <stdlib.h> unconditionally.
81783         (calloc, malloc, realloc, free): Remove decls.
81784         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
81785         Include <stdlib.h> unconditionally.  Sort include file names.
81786         (strtod): Remove.
81787         (xstrtod): Define with a prototype.
81788         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
81789         (strtol, strtoul): Remove decls.
81790
81791 2003-09-11  Paul Eggert  <eggert@twinsun.com>
81792
81793         More patches to assume C89 or better.
81794         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
81795         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
81796         string.h, memchr, STDC_HEADERS.
81797
81798 2003-09-11  Paul Eggert  <eggert@twinsun.com>
81799
81800         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
81801         Include <stdlib.h>, <string.h> unconditionally.
81802         Remove now-unnecessary cast to char *.
81803         * lib/strnlen.c: Include <string.h> unconditionally.
81804         * lib/yesno.c (yesno): Define with a prototype.
81805
81806 2003-09-11  Bruno Haible  <bruno@clisp.org>
81807
81808         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
81809
81810 2003-09-10  Jim Meyering  <jim@meyering.net>
81811
81812         * lib/error.c: Correct indentation of cpp directives.
81813
81814 2003-09-10  Bruno Haible  <bruno@clisp.org>
81815
81816         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
81817         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
81818         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
81819         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
81820         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
81821         <stdlib.h> and <string.h> checks.
81822         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
81823         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
81824
81825 2003-09-10  Bruno Haible  <bruno@clisp.org>
81826
81827         * lib/strcspn.c: Include <string.h> unconditionally.
81828         * lib/strpbrk.c: Include <string.h> unconditionally.
81829         * lib/strstr.c: Include <string.h> unconditionally.
81830         * lib/unicodeio.c: Include <string.h> unconditionally.
81831         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
81832         * lib/unsetenv.c: Likewise.
81833         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
81834         * lib/yesno.c: Include <stdlib.h> unconditionally.
81835         (rpmatch): Add prototype.
81836
81837 2003-09-09  Paul Eggert  <eggert@twinsun.com>
81838
81839         More patches to assume C89 or better.
81840         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
81841         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
81842         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
81843         or for string.h.
81844         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
81845         stdlib.h.
81846         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
81847         C headers.
81848         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
81849         string.h.
81850         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
81851         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
81852         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
81853         or for string.h.
81854         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
81855         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
81856         C headers.
81857         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
81858         memcpy.
81859         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
81860         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
81861         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
81862         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
81863         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
81864         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
81865         string.h, free.
81866         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
81867         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
81868         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
81869         C headers, or for string.h.
81870         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
81871         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
81872         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
81873         headers, memory.h, stdlib.h, string.h, strings.h.
81874         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
81875         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
81876         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
81877         strchr.
81878         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
81879         headers, memory.h, string.h.
81880         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
81881         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
81882         free.
81883         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
81884         headers.
81885         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
81886         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
81887         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
81888         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
81889         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
81890
81891 2003-09-09  Paul Eggert  <eggert@twinsun.com>
81892
81893         More K&R removal.
81894
81895         * lib/acosl.c (main): Use a prototype.
81896         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
81897         tanl.c: Likewise.
81898
81899         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
81900
81901         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
81902         (getopt, etopt_long, getopt_long_only, _getopt_internal)
81903         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
81904         with a prototype.
81905         * lib/getopt.c (const): Remove macro.
81906         Include <string.h> unconditionally.
81907         (my_index): Remove; all uses changed to strchr.
81908         (strlen): Remove decl.
81909         (exchange): Remove forward decl; no longer needed.
81910         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
81911         Define with prototype.
81912         * lib/getopt1.c (const): Remove macro.
81913         (getopt_long, getopt_long_only, main): Define with prototype.
81914
81915         * lib/getugroups.c: Include <string.h> unconditionally.
81916
81917         * lib/getusershell.c: Include <stdlib.h> unconditionally.
81918         (getusershell, setusershell, endusershell, readname, main):
81919         Define with prototypes.
81920
81921         * lib/group-member.c: Include group-member.h first.
81922         Include <stdlib.h> unconditionally.
81923
81924         * lib/hard-locale.c: Include hard-locale.h first.
81925         Include <stdlib.h>, <string.h> unconditionally.
81926
81927         * lib/hash.c (free, malloc): Remove decls.
81928         Include <stdlib.h> unconditionally.
81929
81930         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
81931         (getenv): Do not declare.
81932
81933         * lib/idcache.c: Include <string.h> unconditionally.
81934
81935         * lib/long-options.c: Include long-options.h first, to test interface.
81936         Include <stdlib.h> unconditionally.
81937
81938         * lib/makepath.c: Include makepath.h first, to test interface.
81939         Include <stdlib.h> and <string.h> unconditionally.
81940
81941         * lib/linebuffer.c: Include <stdlib.h>.
81942         (free): Remove decl.
81943
81944         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
81945         stddef.h. rpl_malloc returns void *, not char *.
81946         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
81947         prototype.
81948
81949         * lib/md5.h: Include <limits.h> unconditionally.
81950         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
81951         (__P): Remove; all uses removed.
81952         * lib/md5.c: Include "md5.h" first.
81953         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
81954         md5_buffer, md5_process_bytes, md5_process_block):
81955         Define with prototypes.
81956         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
81957         * lib/sha.c: Include "sha.h" first.
81958         Include <stdlib.h>, <string.h> unconditionally.
81959
81960         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
81961         * lib/memcmp.c (__ptr_t): Likewise.
81962         * lib/memrchr.c (__ptr_t): Likewise.
81963         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
81964         Include <string.h> unconditionally.
81965         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
81966         * lib/memchr.c: Include <stdlib.h> unconditionally.
81967         * lib/memchr.c (LONG_MAX): Remove.
81968         * lib/memrchr.c (LONG_MAX): Likewise.
81969         * lib/memchr.c (__memchr): Define via a prototype.
81970         * lib/memrchr.c (__memrchr): Likewise.
81971         * lib/memcmp.c (__P): Remove, and remove all uses.
81972         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
81973         Remove forward decls; no longer needed.
81974         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
81975         Use types required by C89 in prototype.
81976
81977         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
81978         * lib/savedir.c: Likewise.
81979         * lib/mkdir.c (free): Remove decl.
81980         * lib/rmdir.c (rmdir): Define with a prototype.
81981         * lib/savedir.c: Include savedir.h first, to test interface.
81982
81983         * lib/mktime.c (STDC_HEADERS): Remove.
81984         Include <stdlib.h>, <string.h> unconditionally.
81985
81986         * lib/modechange.c: Include <stdlib.h> unconditionally.
81987         (malloc): Remove decl.
81988
81989         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
81990         (free): Remove decl.
81991
81992         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
81993         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
81994         (This type really should be intptr_t, but that's a C99ism.)
81995         (_obstack_memcpy): Remove: all uses changed to memcpy.
81996         Include <string.h> unconditionally.
81997         (struct obstack): Assume __STDC__ for types of members
81998         chunkfun, freefun, extra_arg.
81999         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
82000         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
82001         obstack_begin, obstack_specify_allocation,
82002         obstack_specify_allocation_with_arg, obstack_chunkfun,
82003         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
82004         Remove unprototyped decls and the macros that use them.
82005         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
82006         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
82007         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
82008         (defined __STDC__ && __STDC__)]:
82009         Remove nonprototyped code.
82010         Include <stdlib.h> unconditionally.
82011         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
82012         _obstack_allocated_p, _obstack_free, obstack_free,
82013         _obstack_memory_used, print_and_abort):
82014         Define using prototypes.
82015         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
82016         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
82017         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
82018         obstack_next_free, obstack_object_size, obstack_room) [0]:
82019         Remove unused, unprototyped code.
82020
82021         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
82022
82023         * lib/physmem.c (physmem_total, physmem_available, main): Define
82024         with prototypes.
82025
82026         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
82027         (main): Define with a prototype.
82028
82029         * lib/posixver.c (getenv): Remove decl.
82030
82031         * lib/putenv.c (malloc): Returns void *, not char *.
82032         Include <string.h> unconditionally.
82033         (strchr, memcpy, NULL): Do not define.
82034
82035         * lib/readtokens.c: Include readtokens.h first, to test interface.
82036         Include <stdlib.h>, <string.h> unconditionally.
82037         (init_tokenbuffer): Define with a prototype.
82038
82039         * lib/regex.c (PARAMS): Remove.  All uses removed.
82040         All uses of _RE_ARGS removed, too.
82041         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
82042         unconditionally.
82043         (bzero): Assume memset exists.
82044         (memcmp, memcpy, NULL): Remove.
82045         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
82046         char, or assignments to local vars of type signed char.
82047         (init_syntax_once, PREFIX(extract_number_and_incr),
82048         PREFIX(print_partial_compiled_pattern),
82049         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
82050         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
82051         PREFIX(regex_grow_registers), PREFIX(regex_compile),
82052         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
82053         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
82054         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
82055         wcs_compile_range, byte_compile_range, truncate_wchar,
82056         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
82057         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
82058         count_mbs_length, wcs_re_match_2_internal,
82059         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
82060         PREFIX(alt_match_null_string_p),
82061         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
82062         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
82063         regfree, PREFIX(extract_number)): Define with prototype.  Remove
82064         now-unnecessary declaration, if any.
82065         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
82066         regcomp, regexec):
82067         Remove now-unnecessary casts among pointer types.
82068         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
82069
82070         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
82071         (free): Remove decl.
82072
82073         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
82074
82075         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
82076         (free): Remove decl.
82077
82078         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
82079         * lib/xgetcwd.c: Likewise.
82080
82081         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
82082         (free): Remove decl.
82083
82084         * lib/strchrnul.c (strchrnul): Define with a prototype.
82085         Fix bug: c_in was not converted to char before searching.
82086
82087         The following changes are not K&R related:
82088
82089         * lib/group-member.h: Include <sys/types.h>, so that this file is
82090         self-contained.
82091         * lib/makepath.h: Likewise.
82092
82093         * lib/getusershell.c (readname, default_index, line_size, readname):
82094         Use size_t, not int, for sizes.
82095         (readname): If the size overflows, report an error instead of
82096         looping forever.
82097
82098 2003-09-09  Paul Eggert  <eggert@twinsun.com>
82099
82100         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
82101         libc.
82102
82103 2003-09-09  Paul Eggert  <eggert@twinsun.com>
82104
82105         * README: New section: portability guidelines.
82106
82107 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
82108
82109         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
82110         C89 spec.
82111
82112 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
82113
82114         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
82115
82116 2003-09-08  Paul Eggert  <eggert@twinsun.com>
82117
82118         Assume C89 or better; remove K&R cruft.
82119         A few of these changes were first proposed by Derek Robert Price
82120         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
82121
82122         * lib/addext.c: Include <string.h> unconditionally.
82123         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
82124         Don't declare getenv or malloc.
82125
82126         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
82127         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
82128         (NULL): Remove.
82129         (find_stack_direction, alloca): Use prototypes.
82130
82131         * lib/atexit.c (atexit): Define using a prototype.
82132
82133         * lib/basename.c, dirname.c, stripslash.c:
82134         Include <string.h> unconditionally.
82135
82136         * lib/bcopy.c: Include <stddef.h>.
82137         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
82138
82139         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
82140
82141         * lib/error.h (error, error_at_line, error_print_progname)
82142         [! (defined (__STDC__) && __STDC__)]: Remove decls.
82143         * lib/error.c: Include error.h first, to check interface.
82144         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
82145         (VA_START): Remove; all uses changeed to va_start.
82146         (exit, strerror): Remove decls.
82147         (error_print_progname): Prototype uncondionally.
82148         Don't include <errno.h>; no longer needed.
82149         (private_strerror): Remove.
82150         (error_tail): Always define.
82151         (error, error_at_line): Assume C89 or better; always use prototypes.
82152         * lib/fatal.c: Include "fatal.h" first, to test interface.
82153         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
82154         (VA_START): Remove; all uses changed to va_start.
82155         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
82156         this case.
82157         (exit): Remove decl.
82158         (fatal): Prototype unconditionally.  Assume va_start works.
82159         Abort at end, to pacify gcc.
82160
82161         * lib/euidaccess.c (main): Define with a prototype.
82162
82163         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
82164
82165         * lib/exitfail.c: Include <stdlib.h> unconditionally.
82166
82167         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
82168         prototypes.
82169         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
82170         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
82171         (getenv): Remove decl.
82172         (fnmatch): Define using a prototype.
82173         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
82174         (FCT): Define using a prototype.
82175
82176         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
82177
82178         * lib/gethostname.c: Include <stddef.h>.
82179         (gethostname): Define with prototype.  Length is size_t, not int.
82180
82181 2003-09-08  Paul Eggert  <eggert@twinsun.com>
82182
82183         Assume C89 or better; remove K&R cruft.
82184         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
82185         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
82186         string.h, getenv, malloc.
82187         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
82188         headers.
82189         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
82190         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
82191         do not check for strerror.
82192         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
82193         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
82194         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
82195         do not check for doprnt or vprintf.
82196         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
82197         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
82198
82199 2003-09-08  Paul Eggert  <eggert@twinsun.com>
82200
82201         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
82202         getversion.c should have been removed then, but was accidentally
82203         preserved.
82204
82205         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
82206         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
82207
82208 2003-09-08  Karl Berry  <karl@gnu.org>
82209
82210         * config/config.sub, config.guess, srclistvars.sh: update from savannah
82211                 config, forget about prep.
82212
82213         * config/depcomp, missing: update from automake.
82214
82215 2003-09-07  Paul Eggert  <eggert@twinsun.com>
82216
82217         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
82218         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
82219
82220 2003-09-07  Paul Eggert  <eggert@twinsun.com>
82221
82222         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
82223         copy_tm_result.  Bug reported by Simon Josefsson in
82224         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
82225
82226 2003-09-06  Paul Eggert  <eggert@twinsun.com>
82227
82228         * m4/time_r.m4: New file.
82229         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
82230         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
82231         is. Check for timegm declaration.
82232         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
82233         Do not check for gmtime_r.
82234         Replace mktime if __mktime_internal does not exist and if mktime
82235         hasn't been replaced already.
82236
82237 2003-09-06  Paul Eggert  <eggert@twinsun.com>
82238
82239         * lib/time_r.c, lib/time_r.h: New files.
82240
82241         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
82242         __localtime_r.
82243         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
82244         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
82245
82246         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
82247         __gmtime_r.
82248         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
82249         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
82250         Include <time_r.h>.
82251
82252         * lib/timegm.c: Switch to glibc implementation, with the following
82253         changes:
82254         [defined HAVE_CONFIG_H]: Include <config.h>.
82255         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
82256         (__mktime_internal) [!defined _LIBC]: New decl.
82257         (__gmtime_r) [!defined _LIBC]: New macro and function.
82258         (timegm): Use a prototype, since gnulib assumes C89.
82259         Do not bother declaring tmp to be const, as it's not really usefu.
82260         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
82261         (timegm): Declare only if HAVE_DECL_TIMEGM.
82262
82263 2003-09-06  Paul Eggert  <eggert@twinsun.com>
82264
82265         * MODULES.html.sh (func_all_modules): Add time_r.
82266         * modules/time_r: New file.
82267         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
82268         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
82269
82270 2003-09-03  Paul Eggert  <eggert@twinsun.com>
82271
82272         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
82273         Bug reported by Lute Kamstra in
82274         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
82275
82276         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
82277         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
82278         course with correspondingly smaller numbers for tomorrow and
82279         yesterday.  From Tadayoshi Funaba.  Originally installed into
82280         sh-utils on 1999-08-07, but the patch got lost (I guess during the
82281         coreutils merge?).
82282
82283 2003-08-31  Simon Josefsson  <jas@extundo.com>
82284
82285         * modules/timegm: New file.
82286         * MODULES.html.sh (func_all_modules): Add timegm.
82287
82288 2003-08-31  Simon Josefsson  <jas@extundo.com>
82289
82290         * m4/timegm.m4: New file.
82291
82292 2003-08-31  Simon Josefsson  <jas@extundo.com>
82293
82294         * lib/timegm.h: New file.
82295         * lib/timegm.c: New file.  Based on
82296         wget-1.8.2/src/http.c:mktime_from_utc.
82297
82298 2003-08-31  Karl Berry  <karl@gnu.org>
82299
82300         * lib/argp.h: update from libc.
82301
82302 2003-08-28  Bruno Haible  <bruno@clisp.org>
82303
82304         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
82305         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
82306         followed by '#define fnmatch fnmatch_posix' gives an error.
82307
82308 2003-08-28  Bruno Haible  <bruno@clisp.org>
82309
82310         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
82311         warning on QNX, which defines O_BINARY to 000000.
82312
82313 2003-08-27  Jim Meyering  <jim@meyering.net>
82314
82315         * m4/mkstemp.m4: Require that the system mkstemp be able to create
82316         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
82317         would fail after 32.  Reported by Danny Levinson.  Details here:
82318         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
82319
82320 2003-08-24  Bruno Haible  <bruno@clisp.org>
82321
82322         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
82323         MSVC7 <stdio.h> is included later.
82324
82325 2003-08-22  Simon Josefsson  <jas@extundo.com>
82326
82327         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
82328
82329 2003-08-20  Karl Berry  <karl@gnu.org>
82330
82331         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
82332
82333 2003-08-20  Bruno Haible  <bruno@clisp.org>
82334
82335         * modules/progname: New file.
82336         * MODULES.html.sh (func_all_modules): Add progname.
82337
82338 2003-08-20  Bruno Haible  <bruno@clisp.org>
82339
82340         * lib/progname.h: New file, from GNU gettext.
82341         * lib/progname.c: New file, from GNU gettext.
82342         * lib/progreloc.c: New file, from GNU gettext.
82343
82344 2003-08-19  Jim Meyering  <jim@meyering.net>
82345
82346         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
82347         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
82348
82349 2003-08-19  Bruno Haible  <bruno@clisp.org>
82350
82351         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
82352         more.
82353
82354 2003-08-19  Bruno Haible  <bruno@clisp.org>
82355
82356         * lib/xstrdup.c: Assume <string.h> exists.
82357
82358 2003-08-18  Paul Eggert  <eggert@twinsun.com>
82359
82360         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
82361         in makefile rules.
82362
82363 2003-08-18  Jim Meyering  <jim@meyering.net>
82364
82365         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
82366         * m4/lib-ld.m4: Likewise.
82367
82368 2003-08-18  Jim Meyering  <jim@meyering.net>
82369
82370         * lib/setenv.h: Indent nested cpp directive.
82371         * lib/vasnprintf.c: Remove trailing blanks.
82372
82373 2003-08-17  Simon Josefsson  <jas@extundo.com>
82374
82375         * modules/xstrndup: New file.
82376         * MODULES.html.sh (func_all_modules): Add xstrndup.
82377
82378 2003-08-17  Simon Josefsson  <jas@extundo.com>
82379
82380         * modules/argp: Fix autoconf macro name. Add more dependencies.
82381
82382 2003-08-17  Simon Josefsson  <jas@extundo.com>
82383
82384         * m4/xstrndup.m4: New file.
82385
82386 2003-08-17  Simon Josefsson  <jas@extundo.com>
82387
82388         * m4/argp.m4: New file.
82389
82390 2003-08-17  Simon Josefsson  <jas@extundo.com>
82391             Bruno Haible  <bruno@clisp.org>
82392
82393         * lib/xstrndup.h: New file.
82394         * lib/xstrndup.c: New file.
82395
82396 2003-08-17  Bruno Haible  <bruno@clisp.org>
82397
82398         * modules/strndup (Files, Include): Add lib/strndup.h.
82399
82400 2003-08-17  Bruno Haible  <bruno@clisp.org>
82401
82402         * modules/euidaccess (Files): Add lib/euidaccess.h.
82403
82404 2003-08-17  Bruno Haible  <bruno@clisp.org>
82405
82406         * lib/strndup.h: New file.
82407
82408 2003-08-17  Bruno Haible  <bruno@clisp.org>
82409
82410         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
82411         like AC_GNU_SOURCE.
82412         * modules/extensions (configure.ac): Comment out the invocation of
82413         gl_USE_SYSTEM_EXTENSIONS.
82414
82415 2003-08-16  Paul Eggert  <eggert@twinsun.com>
82416
82417         Merges from coreutils, etc.
82418         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
82419         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
82420         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
82421         fixing a typo.
82422         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
82423         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
82424
82425 2003-08-16  Paul Eggert  <eggert@twinsun.com>
82426
82427         Document merge from coreutils.
82428         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
82429         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
82430         * modules/utime: Add m4/utimes-null.m4.
82431
82432 2003-08-16  Paul Eggert  <eggert@twinsun.com>
82433
82434         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
82435         space, undoing this 2003-08-12 change:
82436         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
82437
82438 2003-08-16  Paul Eggert  <eggert@twinsun.com>
82439
82440         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
82441         strtoul.c from libc, undoing this 2003-08-12 change:
82442         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
82443
82444 2003-08-16  Jim Meyering  <jim@meyering.net>
82445
82446         Merges from coreutils.
82447         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
82448         prefix.  Adjust cache variables similarly.  Create 500 rather than
82449         just 300 files, to exercise bug on Darwin6.5, too.
82450         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
82451         $missing_dir.
82452         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
82453         AM_SYS_POSIX_TERMIOS.
82454         Reported by mkc@mathdogs.com.
82455         Also change use of $am_cv_sys_posix_termios
82456         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
82457         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
82458         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
82459         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
82460         in /proc/mounts until it finds one with matching device number.  This
82461         is unnecessary when the FILE argument *is* a mount point.  No stat call
82462         is necessary in that case.  So, disable the statvfs-testing code on
82463         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
82464         as RedHat bug# 84846.
82465         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
82466         to 1MB, so as not to render systems with no stack size limit (e.g.,
82467         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
82468         Include <unistd.h>.  On some systems,
82469         it is required for the definition of _SC_PAGESIZE.
82470
82471 2003-08-16  Jim Meyering  <jim@meyering.net>
82472
82473         Merge from coreutils.
82474         * lib/xstrtoimax.c: #else #if -> #elif.
82475         * lib/xstrtoumax.c: Likewise.
82476
82477 2003-08-16  Jim Meyering  <jim@meyering.net>
82478
82479         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
82480         * m4/utimes.m4: Removed.
82481         * m4/utimes-null.m4: Renamed from utimes.m4.
82482
82483         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
82484         to 1MB, so as not to render systems with no stack size limit (e.g.,
82485         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
82486         Include <unistd.h>.  On some systems,
82487         it is required for the definition of _SC_PAGESIZE.
82488
82489 2003-08-16  Jim Meyering  <jim@meyering.net>
82490         and Paul Eggert  <eggert@cs.ucla.edu>
82491
82492         Merges from coreutils, etc.
82493
82494         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
82495         using the latest version from cvs.  This avoids problems with #line
82496         directives using a vendor (Sun) compiler.
82497         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
82498         Don't set GETGROUPS_LIB here; now it's
82499         done via getgroups.m4's wrapper function.
82500         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
82501         rather than just in sh-util/configure.in, so that the
82502         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
82503         same.
82504         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
82505         AC_FUNC_GETLOADAVG where to find getloadavg.c.
82506         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
82507         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
82508         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
82509         Remove code that is now done by the newly-required macros.
82510         Append $(EXEEXT) to DF_PROG.
82511         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
82512         Do not invoke or require the following here,
82513         since prereq.m4 or some gnulib .m4 now does this for us:
82514         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
82515         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
82516         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
82517         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
82518         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
82519         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
82520         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
82521         AC_FUNC_OBSTACK.
82522         Do not replace the following functions, as this is now the job
82523         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
82524         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
82525         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
82526         atexit getpass, strdup, getpagesize.
82527         Replace 'raise'.
82528         Do not check for the following functions, as this is now the job
82529         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
82530         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
82531         setregid.
82532         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
82533         Check for sys/sysctl.h.
82534         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
82535         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
82536         of checking for ssize_t ourselves.
82537
82538         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
82539         Require every macro that gnulib/modules/* suggests for us.
82540         (jm_PREREQ_ADDEXT): New macro.
82541         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
82542         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
82543
82544         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
82545         (gl_PHYSMEM): Use it.
82546         Also check for `table' function.
82547         Check for new headers and functions.
82548         Add check for sys/sysmp.h.
82549         With suggestions from Kaveh Ghazi.
82550         Ignore headers that are present but cannot be compiled.  This
82551         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
82552         C 5.4.
82553
82554 2003-08-15  Paul Eggert  <eggert@twinsun.com>
82555
82556         Document merge from coreutils.
82557         * modules/userspec: Depend on posixver.
82558         * modules/strftime: Depend on tzset.
82559
82560 2003-08-15  Paul Eggert  <eggert@twinsun.com>
82561
82562         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
82563         rather than tab, after '#' in shell-script copyright notices.
82564         Suggested by Bruno Haible.
82565
82566 2003-08-15  Paul Eggert  <eggert@twinsun.com>
82567
82568         * config/srclist-update: Use three spaces, rather than tab, after '#'
82569         in shell-script copyright notices.  Suggested by Bruno Haible.
82570         Remove unnecessary parenthesization in regular expression.
82571
82572 2003-08-15  Jim Meyering  <jim@meyering.net>
82573
82574         Merge from coreutils.
82575         * lib/xgethostname.c: Include <stdlib.h>.
82576         (xghostname): Don't exit for anything other than memory-related
82577         failure; just return NULL.
82578         * lib/userspec.c: Include "posixver.h".
82579         (parse_user_spec): Accept `.' as a separator only
82580         in pre-POSIX-200112 mode.
82581         * lib/strtoimax.c: Use #elif rather than #else #if.
82582         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
82583         Remove function, now that we can rely on a working tzset function.
82584         [!_LIBC]: Ensure that the required autoconf test has been run.
82585         [!defined _NL_CURRENT && HAVE_STRFTIME]:
82586         Use underlying_strftime for %r.
82587         * lib/sha.c: Merge in some clean-up and optimization changes from
82588         glibc.
82589         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
82590         Ensure that it is a multiple of 64.
82591         Rearrange loop exit tests so as to avoid performing an
82592         additional fread after encountering an error or EOF.
82593         * lib/realloc.c: Update copyright date.
82594
82595 2003-08-15  Jim Meyering  <jim@meyering.net>
82596         and Paul Eggert  <eggert@twinsun.com>
82597
82598         Merge from coreutils.
82599         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
82600         member but strut utmpx does not.  Needed for AIX 4.3.3.
82601         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
82602
82603 2003-08-15  Jim Meyering  <jim@meyering.net>
82604         and Paul Eggert  <eggert@cs.ucla.edu>
82605
82606         Merges from coreutils, etc.
82607         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
82608         Require gl_FUNC_TZSET_CLOBBER.
82609         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
82610         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
82611         members.
82612
82613 2003-08-14  Paul Eggert  <eggert@twinsun.com>
82614
82615         Help the merge from coreutils.
82616         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
82617         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
82618         * m4/tzset.m4: Use it too.
82619
82620 2003-08-14  Paul Eggert  <eggert@twinsun.com>
82621
82622         * modules/tzset: New file.
82623
82624 2003-08-14  Jim Meyering  <jim@meyering.net>
82625
82626         Merges from coreutils.
82627         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
82628         variable names, rather than @FNMATCH_H@.
82629         * modules/alloca: Likewise for $(ALLOCA_H).
82630
82631         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
82632         the three copies of the literal target, `fnmatch.h'.
82633         * modules/alloca (alloca.h): Likewise.
82634
82635 2003-08-14  Jim Meyering  <jim@meyering.net>
82636
82637         Merge from coreutils.
82638         * m4/tzset.m4: New file.
82639         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
82640         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
82641         otherwise, AIX 5.1 systems would end up using the latter.
82642         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
82643         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
82644         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
82645         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
82646
82647 2003-08-14  Jim Meyering  <jim@meyering.net>
82648
82649         Merge from coreutils.
82650         * lib/obstack.h: Whitespace changes.
82651         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
82652         and xcalloc return values.
82653         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
82654         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
82655         hang on OSF/1 5.1 for DIR on both local and remote file systems.
82656         Reported by (and fix confirmed by) Nelson H. F. Beebe.
82657         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
82658         error from mntctl.
82659         Use mntctl's return value to drive the entry-processing loop, since
82660         we can't rely on the value of the vmt_length member in the last
82661         entry.  On some systems doing so could result in exhausting
82662         virtual memory.  Based in part on a patch from Mike Jetzer.
82663
82664 2003-08-14  Jim Meyering  <jim@meyering.net>
82665         and Paul Eggert  <eggert@twinsun.com>
82666
82667         Merges from coreutils, plus other fixes.
82668         * lib/physmem.c: Merge in portability changes from gcc/libiberty
82669         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
82670         for credits and details.  Thanks to Kaveh Ghazi for helping
82671         to keep these files in sync.
82672         (ARRAY_SIZE): Define it.
82673         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
82674         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
82675         (memcasecmp): Don't assume size_t fits in unsigned int.
82676         Remove casts and duplicate code.
82677         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
82678         (memcpy): Remove definition.
82679         Merge in some clean-up and optimization changes from glibc.
82680         [BLOCKSIZE]: Move definition to top of file.
82681         Ensure that it is a multiple of 64.
82682         Rearrange loop exit tests so as to avoid performing an
82683         additional fread after encountering an error or EOF.
82684         * lib/md5.h (md5_uintptr): Define.
82685         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
82686         return to the initial working directory.  Preserve errno
82687         for caller.
82688         * lib/idcache.c: Include "xalloc.h".
82689         (xmalloc, xrealloc): Remove decls.
82690         (getuser): Remove casts no longer required in C89.
82691         * lib/human.c: Include stdio.h, for sprintf.
82692         * lib/group-member.c: Include "xalloc.h".
82693         (xmalloc, xrealloc): Remove decls.
82694         (get_group_info): Remove casts no longer required in C89.
82695         * lib/getusershell.c (readname): Remove casts no longer required in
82696         C89.
82697         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
82698         * lib/getline.c: Whitespace fix, from coreutils.
82699
82700 2003-08-13  Paul Eggert  <eggert@twinsun.com>
82701
82702         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
82703         Check for isascii.
82704
82705         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
82706         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
82707         Undo previous (whitespace-only) change.
82708
82709 2003-08-13  Paul Eggert  <eggert@twinsun.com>
82710
82711         * lib/exclude.c: Include <ctype.h>
82712         (IN_CTYPE_DOMAIN): New macro.
82713         (is_space): New fn.
82714         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
82715         and empty lines.
82716
82717         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
82718         Undo previous (whitespace-only) change.
82719
82720 2003-08-13  Paul Eggert  <eggert@twinsun.com>
82721
82722         * config/srclist-update: Change update back to the old behavior,
82723         leaving whitespace alone.  Use one 'sed' command rather than a
82724         pipeline.
82725         (fixlicense): Now a variable, not a function.
82726         (remove_trailing_blanks): Remove.
82727         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
82728         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
82729         Undo previous (whitespace-only) change.
82730
82731 2003-08-12  Paul Eggert  <eggert@twinsun.com>
82732
82733         Merge from coreutils.
82734         * modules/euidaccess: Add lib_SOURCES, include for new
82735         file euidaccess.h
82736
82737 2003-08-12  Paul Eggert  <eggert@twinsun.com>
82738
82739         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
82740         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
82741         Normalize leading white space and remove trailing white space.
82742
82743         Merge from coreutils
82744         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
82745
82746         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
82747         0.12.1.  These files are now being upgraded automatically by
82748         ../config/srclist-update.
82749
82750 2003-08-12  Paul Eggert  <eggert@twinsun.com>
82751
82752         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
82753         Normalize leading white space and remove trailing white space.
82754         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
82755         notice, as per ../config/srclist-update.
82756
82757         Merge from coreutils.
82758         * lib/euidaccess.h: New file.
82759         * lib/euidaccess.c: Include it.
82760         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
82761         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
82762         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
82763
82764 2003-08-12  Paul Eggert  <eggert@twinsun.com>
82765
82766         * config/srclist-update: Add copyright notice.
82767         (remove_id_lines, remove_trailing_blanks): New constants.
82768         (fixfile): Use them to normalize spacing a bit in copied files.
82769         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
82770         Normalize leading white space and remove trailing white space.
82771
82772         * config/texinfo.tex: Sync with texinfo.
82773
82774         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
82775         strtoul.c from libc, to merge coreutils whitespace changes.
82776
82777         * config/srclist.txt: Get the following m4 files from gettext:
82778         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
82779         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
82780         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
82781         wint_t.m4.
82782
82783 2003-08-12  Karl Berry  <karl@gnu.org>
82784
82785         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
82786         been made.
82787
82788 2003-08-11  Paul Eggert  <eggert@twinsun.com>
82789
82790         * modules/gnu-source, m4/gnu-source.m4:
82791         Remove; we're assuming Autoconf 2.54 or later now.
82792         Suggested by Bruno Haible.
82793         * MODULES.html.sh (func_all_modules): Remove gnu-source.
82794
82795 2003-08-11  Bruno Haible  <bruno@clisp.org>
82796
82797         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
82798
82799 2003-08-11  Bruno Haible  <bruno@clisp.org>
82800
82801         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
82802         (vasnprintf): Use it instead of wcslen.
82803
82804 2003-08-11  Bruno Haible  <bruno@clisp.org>
82805
82806         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
82807         value to ensure that _Bool promotes to int. Use #define for _Bool when
82808         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
82809
82810 2003-08-10  Karl Berry  <karl@gnu.org>
82811
82812         * lib/regex.h: update from libc (whitespace fix).
82813
82814 2003-08-09  Paul Eggert  <eggert@twinsun.com>
82815
82816         Merge some files from coreutils.  These changes were
82817         originally made by Jim Meyering.
82818         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
82819         many older Unixes require this.
82820         * lib/alloca.c (alloca): Remove cast to argument of free;
82821         no longer needed in C89.
82822         * lib/alloca_.h, regex.h: Fix white space to match
82823         what GNU indent does.
82824
82825 2003-08-09  Paul Eggert  <eggert@twinsun.com>
82826
82827         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
82828         apparently Emacs's Unicode mode got confused before my 2003-08-05
82829         checkin.
82830
82831 2003-08-08  Paul Eggert  <eggert@twinsun.com>
82832
82833         * m4/extensions.m4: New file.
82834         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
82835         Require gl_USE_SYSTEM_EXTENSIONS.
82836         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
82837         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
82838
82839 2003-08-08  Paul Eggert  <eggert@twinsun.com>
82840
82841         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
82842         * modules/extensions, modules/gnu-source: New files.
82843         * modules/timespec, modules/unlocked-io: Depend on extensions.
82844
82845 2003-08-07  Paul Eggert  <eggert@twinsun.com>
82846
82847         * modules/restrict: New file.
82848         * MODULES.html.sh (func_all_modules): Add restrict.
82849         * modules/regex: Depend on restrict.
82850
82851 2003-08-07  Paul Eggert  <eggert@twinsun.com>
82852
82853         * m4/restrict.m4: New file.
82854         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
82855
82856 2003-08-07  Bruno Haible  <bruno@clisp.org>
82857
82858         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
82859         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
82860
82861 2003-08-07  Bruno Haible  <bruno@clisp.org>
82862
82863         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
82864         makes the module 'getndelim2' compatible with the module 'getline'.
82865
82866 2003-08-05  Paul Eggert  <eggert@twinsun.com>
82867
82868         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
82869         byte with "\201" to avoid glitches when editing that source file
82870         with multi-gnome-terminal.
82871
82872 2003-08-05  Paul Eggert  <eggert@twinsun.com>
82873
82874         * lib/bumpalloc.h: Remove.
82875
82876 2003-08-05  Paul Eggert  <eggert@twinsun.com>
82877
82878         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
82879         * modules/bumpalloc: Remove.
82880
82881 2003-08-04  Paul Eggert  <eggert@twinsun.com>
82882
82883         * lib/getloadavg.c: Change copyright notice and spacing to conform to
82884         GNU coding style.
82885
82886         Merge from coreutils.
82887         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
82888         1. From glibc.
82889         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
82890         from Karl Berry, implemented by Jim Meyering.
82891         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
82892         from Dmitry V. Levin.
82893         Remove anachronistic cast of xrealloc.
82894         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
82895         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
82896         type. Otherwise, it wouldn't compile with at least /bin/cc on
82897         ymp-cray-unicos9.0.2.X.
82898         Combine two mostly-identical uses of alloca into one.
82899         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
82900
82901 2003-08-04  Dave Love  <d.love@dl.ac.uk>
82902
82903         [From Emacs.]
82904
82905         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
82906         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
82907         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
82908         obsolete NLIST_NAME_UNION.
82909         [__GNU__]: Undef BSD and FSCALE.
82910         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
82911
82912 2003-08-03  Paul Eggert  <eggert@twinsun.com>
82913
82914         * lib/stdbool_.h (_Bool): Make it signed char, instead of
82915         an enum type, so that it's guaranteed to promote to int.  See:
82916         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
82917
82918 2003-08-03  Karl Berry  <karl@gnu.org>
82919
82920         * config/depcomp: update from automake.
82921
82922 2003-07-31  Paul Eggert  <eggert@twinsun.com>
82923
82924         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
82925         (strerror): Don't assume that a printable int fits in 14 bytes.
82926
82927 2003-07-31  Bruno Haible  <bruno@clisp.org>
82928
82929         * modules/getpass-gnu: New file.
82930         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
82931
82932 2003-07-31  Bruno Haible  <bruno@clisp.org>
82933
82934         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
82935
82936 2003-07-24  Karl Berry  <karl@gnu.org>
82937
82938         * config/missing: update from automake.
82939
82940 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
82941             Bruno Haible  <bruno@clisp.org>
82942
82943         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
82944         * lib/getline.c (getline, getdelim): Likewise.
82945         Remove _GNU_SOURCE define; now it's defined in config.h through
82946         m4/getline.m4.
82947
82948 2003-07-23  Karl Berry  <karl@gnu.org>
82949
82950         * config/config.sub: update from prep.
82951
82952 2003-07-22  Paul Eggert  <eggert@twinsun.com>
82953
82954         * modules/xalloc (Depends-on): Add exitfail.
82955         * modules/xmemcoll: Likewise.
82956
82957 2003-07-22  Paul Eggert  <eggert@twinsun.com>
82958
82959         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
82960         over-parenthesization in macros.
82961
82962         Sync with coreutils.
82963
82964         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
82965         required by C99.
82966
82967         Use `exit_failure' for xalloc and xmemcoll instead of their own
82968         private exit-failure variables.
82969         * lib/xalloc.h (xalloc_exit_failure): Remove.
82970         * lib/xmalloc.c: Likewise.  Include exitfail.h.
82971         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
82972         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
82973         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
82974         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
82975
82976 2003-07-20  Jim Meyering  <jim@meyering.net>
82977
82978         * modules/closeout (Depends-on): Add exitfail.
82979         Suggestion from Bruno Haible.
82980
82981 2003-07-19  Karl Berry  <karl@gnu.org>
82982
82983         * config/config.sub: update from prep.
82984
82985 2003-07-18  Paul Eggert  <eggert@twinsun.com>
82986
82987         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
82988         Remove.
82989         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
82990         to test that it can stand by itself.  Include "exitfail.h".
82991         Clients should set exit_failure instead.
82992         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
82993
82994 2003-07-18  Bruno Haible  <bruno@clisp.org>
82995
82996         * modules/getndelim2: New file.
82997         * modules/getline: Share files with module getndelim2.
82998         * modules/getnline: Depend on getndelim2 instead of sharing files with
82999         it. Add getnline.c to lib_SOURCES.
83000         * MODULES.html.sh (func_all_modules): Add getndelim2.
83001
83002 2003-07-18  Bruno Haible  <bruno@clisp.org>
83003
83004         * m4/getndelim2.m4: New file.
83005         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
83006         invoke gl_PREREQ_GETNDELIM2.
83007         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
83008         gl_PREREQ_GETNDELIM2.
83009         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
83010         gl_GETNDELIM2.
83011
83012 2003-07-18  Bruno Haible  <bruno@clisp.org>
83013
83014         * lib/getndelim2.h: New file.
83015         * lib/getndelim2.c: Make into a module of its own. Include config.h,
83016         getndelim2.h.
83017         (getndelim2): Make non-static. Change return type to ssize_t.
83018         * lib/getline.h: Change argument names.
83019         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
83020         * lib/getnline.c: Include getndelim2.h.
83021
83022 2003-07-18  Andreas Schwab  <schwab@suse.de>
83023
83024         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
83025
83026 2003-07-17  Karl Berry  <karl@gnu.org>
83027
83028         * config/config.sub: update from prep.
83029
83030 2003-07-17  Bruno Haible  <bruno@clisp.org>
83031
83032         * modules/getnline: New file.
83033         * modules/getline: Add lib/getndelim2.c to source file list.
83034         * MODULES.html.sh (func_all_modules): Add getnline.
83035
83036 2003-07-17  Bruno Haible  <bruno@clisp.org>
83037
83038         * m4/getnline.m4: New file.
83039
83040 2003-07-17  Bruno Haible  <bruno@clisp.org>
83041
83042         * m4/Makefile.am.in: Remove file.
83043         * m4/Makefile.am: Remove file.
83044         * m4/Makefile.in: Remove file.
83045
83046 2003-07-17  Bruno Haible  <bruno@clisp.org>
83047
83048         * lib/getnline.h: New file.
83049         * lib/getnline.c: New file.
83050         * lib/getndelim2.c: New file, extracted from getline.c.
83051         (getndelim2): Renamed from getdelim2, with added nmax argument.
83052         * lib/getline.c: Include getndelim2.c.
83053         (getdelim2): Moved out to getndelim2.c.
83054         (getline, getdelim): Update.
83055
83056 2003-07-17  Bruno Haible  <bruno@clisp.org>
83057
83058         * lib/Makefile.am: Remove file.
83059         * lib/Makefile.in: Remove file.
83060
83061 2003-07-17  Bruno Haible  <bruno@clisp.org>
83062
83063         * configure.in: Remove file.
83064         * Makefile.in: Remove file.
83065
83066 2003-07-17  Bruno Haible  <bruno@clisp.org>
83067
83068         * MODULES.html.sh: Put the </BODY> right before </HTML>.
83069
83070 2003-07-16  Karl Berry  <karl@gnu.org>
83071
83072         * config/srclist-update: was running fixlicense twice, which caused
83073                 texinfo.tex to be nullified for some reason.  Simplify,
83074                 $gplsrc is no longer needed as far as I can see?
83075
83076 2003-07-16  Jim Meyering  <jim@meyering.net>
83077
83078         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
83079
83080 2003-07-15  Paul Eggert  <eggert@twinsun.com>
83081
83082         * config/srclist.txt: Get the following files from gettext-runtime/intl
83083         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
83084         ref-del.sin.  From Bruno Haible.
83085         * config/srclist-update (fixfile): Change grep pattern again, since the
83086         previous fix didn't work (there was another trailing $).  Use
83087         '[$]' to escape the $s.
83088
83089 2003-07-15  Karl Berry  <karl@gnu.org>
83090
83091         * lib/vasnprintf.c: update from gettext.
83092
83093 2003-07-15  Karl Berry  <karl@gnu.org>
83094
83095         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
83096         gets expanded when surrounded by '$'.
83097
83098 2003-07-15  Jim Meyering  <jim@meyering.net>
83099
83100         * modules/save-cwd: Don't depend on error.  From Derek Price.
83101
83102 2003-07-15  Jim Meyering  <jim@meyering.net>
83103
83104         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
83105
83106 2003-07-14  Simon Josefsson  <jas@extundo.com>
83107
83108         * modules/mempcpy: New file.
83109         * MODULES.html.sh (func_all_modules): Add mempcpy.
83110
83111 2003-07-14  Simon Josefsson  <jas@extundo.com>
83112
83113         * m4/mempcpy.m4: New file.
83114
83115 2003-07-14  Simon Josefsson  <jas@extundo.com>
83116
83117         * lib/mempcpy.h: New file.
83118         * lib/mempcpy.c: New file.
83119
83120 2003-07-14  Paul Eggert  <eggert@twinsun.com>
83121
83122         * modules/getdate, modules/posixtm: Depend on mktime.
83123
83124 2003-07-14  Paul Eggert  <eggert@twinsun.com>
83125
83126         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
83127         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
83128         unicodeio.c, unicodeio.h, unlocked-io.h:
83129         Switch from LGPL to GPL.
83130
83131 2003-07-14  Paul Eggert  <eggert@twinsun.com>
83132
83133         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
83134         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
83135         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
83136         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
83137         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
83138         updated automatically by ../config/srclist-update.  This changes
83139         their license from LPGL to GPL.
83140
83141 2003-07-14  Paul Eggert  <eggert@twinsun.com>
83142
83143         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
83144         assumed to refer to the root of the most recent stable gettext version.
83145         * config/srclistvars.sh: Add defaults for eggert.
83146         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
83147         Match "This program" as well as "The program".  This is needed
83148         for gettext.
83149
83150 2003-07-14  Jim Meyering  <jim@meyering.net>
83151
83152         Don't emit diagnostics.  Let callers do that.
83153         * lib/save-cwd.c: Don't include "error.h".
83154         (save_cwd): Don't call error.  Ensure that errno is valid
83155         when returning nonzero.
83156
83157         * lib/save-cwd.h (restore_cwd): Update prototype.
83158         * lib/save-cwd.c (restore_cwd): Remove two parameters.
83159         Simplify.  Don't call error upon failure.  Let callers do that.
83160         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
83161         when auditing is enabled.  But don't bother updating the #if.
83162
83163 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
83164
83165         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
83166         it breaks C++ compilation.
83167         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
83168
83169 2003-07-10  Simon Josefsson  <jas@extundo.com>
83170
83171         * modules/strchrnul (Makefile.am): Add strchrnul.h.
83172
83173 2003-07-10  Jim Meyering  <jim@meyering.net>
83174
83175         * m4/clock_time.m4: Remove trailing blank.
83176         * m4/intmax_t.m4: Likewise.
83177
83178 2003-07-10  Jim Meyering  <jim@meyering.net>
83179
83180         * lib/vasnprintf.c: Remove trailing blanks.
83181         Make cpp indentation consistent.
83182
83183 2003-07-09  Paul Eggert  <eggert@twinsun.com>
83184
83185         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
83186         posixver.c, strftime.c, strnlen.c, strverscmp.c:
83187         Switch from LGPL to GPL.
83188
83189 2003-07-09  Paul Eggert  <eggert@twinsun.com>
83190
83191         * config/srclist.txt: Sort sublists.  Add
83192         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
83193         that differ from gnulib for one reason or another; we'd like this list
83194         to be smaller but for now let's document what we have.
83195
83196 2003-07-08  Paul Eggert  <eggert@twinsun.com>
83197
83198         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
83199         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
83200         and sweeter "eval x=$x".
83201         * config/srclist.txt: Get lib/argp* from glibc.
83202
83203 2003-07-07  Paul Eggert  <eggert@twinsun.com>
83204
83205         * lib/mktime.c: Fix some boundary cases and remove need for floating
83206         point.
83207
83208         Issue a compile-time diagnostic if time_t is floating point, or if
83209         two's complement arithmetic is not in effect, or if arithmetic
83210         right shift does not propagate the sign.  These assumptions were
83211         all in the original code but they weren't checked.
83212
83213         (TIME_T_MIDPOINT, verify): New macros.
83214         (__isleap): Remove; it has integer overflow problems.
83215         (leapyear): New function, without those problems.
83216         (ydhms_tm_diff): Remove; splitting into two parts.
83217         (ydhms_diff): New function, containing the arithmetic part of
83218         the old ydhms_tm_diff function.  Issue a compile-time
83219         diagnostic if we are not using C99 integer division.
83220         Avoid casts when possible.
83221         (guess_time_tm): New function, containing the checking part of
83222         the old ydhms_tm_diff function.  Return the new value, rather than
83223         the difference between it and the old.  Accept a new argument T
83224         so that *T specifies the old value.  Check for overflow in the result.
83225
83226         (__mktime_internal): Use a time_t offset, not a long int offset.
83227         This undoes the 2003-06-04 change, which is no longer needed now
83228         that we have better overflow checking.
83229         (localtime_offset): Likewise.
83230
83231         (__mktime_internal): Avoid harmful overflow on hosts where time_t
83232         and long are 64-bit but int is only 32-bit.
83233         (ydhms_diff): Use long int to store year1 and yday1.
83234         Issue a compile-time diagnostic if long int is not wide enough.
83235
83236         (__mktime_internal): Use long int to store adjusted year and yday.
83237         Use plain C rather than preprocessor commands, if that doesn't
83238         affect efficiency.
83239         Check for overflow (and try to repair) after each probe
83240         rather than checking only at the very end.  This avoids some bugs
83241         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
83242         does not equal GMT offset at maximum time).
83243         Use integer to check for overflow rather than floating point; this
83244         is more portable to non-IEEE hosts, and is a tad faster.
83245         When we detect that we are oscillating between two values,
83246         don't check whether tm_isdst has the requested value, since
83247         we already know the answer.  When tm_isdst has the wrong value,
83248         use a different heuristic to find the right one, based on the
83249         extreme values actually observed in practice in tz2003a,
83250         rather than the (overly optimistic) "previous 3 calendar quarters".
83251
83252         (not_equal_tm, print_tm, check_result): Use "const T" rather than
83253         "T const" to accommodate glibc style.
83254         (check_result): Use less-confusing report format.  "long" -> "long int.
83255         (main): Likewise.
83256         Don't loop if the iteration overflows time_t.
83257         Allow a negative step in the iteration.
83258
83259 2003-07-06  Karl Berry  <karl@gnu.org>
83260
83261         * config/depcomp: update from automake.
83262         * config/config.sub: update from prep.
83263
83264 2003-07-03  Karl Berry  <karl@gnu.org>
83265
83266         * config/config.guess: update from prep.
83267
83268 2003-07-01  Paul Eggert  <eggert@twinsun.com>
83269
83270         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
83271         xreadlink.c now includes it unconditionally.
83272
83273 2003-07-01  Paul Eggert  <eggert@twinsun.com>
83274
83275         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
83276         having it depend on HAVE_SYS_TYPES_H.
83277
83278 2003-07-01  Bruno Haible  <bruno@clisp.org>
83279
83280         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
83281         <sys/types.h> should be sufficient.
83282         Reported by Paul Eggert.
83283
83284 2003-06-26  Karl Berry  <karl@gnu.org>
83285
83286         * config/depcomp: update from automake.
83287
83288 2003-06-26  Bruno Haible  <bruno@clisp.org>
83289
83290         * modules/human: Depend on module stdbool.
83291
83292 2003-06-25  Bruno Haible  <bruno@clisp.org>
83293
83294         * modules/readlink: New file.
83295         * modules/xreadlink: Depend on it.
83296         * MODULES.html.sh (func_all_modules): Add readlink.
83297
83298 2003-06-25  Bruno Haible  <bruno@clisp.org>
83299
83300         * m4/readlink.m4: New file.
83301
83302 2003-06-25  Bruno Haible  <bruno@clisp.org>
83303
83304         * lib/readlink.c: New file.
83305
83306 2003-06-22  Karl Berry  <karl@gnu.org>
83307
83308         * config/srclist.txt: update mkinstalldirs from automake.
83309         * config/mkinstalldirs: update.
83310
83311 2003-06-22  Bruno Haible  <bruno@clisp.org>
83312
83313         Portability to mingw32.
83314         * m4/ssize_t.m4: New file, from GNU gettext.
83315         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
83316         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
83317
83318 2003-06-22  Bruno Haible  <bruno@clisp.org>
83319
83320         * modules/safe-read: Add m4/ssize_t.m4.
83321         * modules/xreadlink: Add m4/ssize_t.m4.
83322
83323 2003-06-20  Bruno Haible  <bruno@clisp.org>
83324
83325         Assume C89, so PARAMS isn't needed.
83326         * lib/unicodeio.h (PARAMS): Remove.
83327         * lib/unicodeio.c: Don't use PARAMS.
83328
83329 2003-06-18  Karl Berry  <karl@gnu.org>
83330
83331         * config/config.{guess,sub}: update from prep.
83332
83333 2003-06-18  Jim Meyering  <jim@meyering.net>
83334
83335         Merge changes from coreutils.
83336         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
83337         Remove explicit declarations of xmalloc and realloc.
83338         Include xalloc.h.
83339         (read_utmp): Remove anachronistic cast of xmalloc.
83340
83341 2003-06-17  Paul Eggert  <eggert@twinsun.com>
83342
83343         Assume C89, so PARAMS isn't needed.
83344         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
83345         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
83346         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
83347         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
83348         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
83349         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
83350         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
83351         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
83352         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
83353         lib/xstrtod.h, lib/xstrtol.h: Likewise.
83354         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
83355         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
83356         no longer needed. Anyway, config.h should always be included before any
83357         other file.
83358
83359 2003-06-11  Simon Josefsson  <jas@extundo.com>
83360
83361         * modules/sysexits: New file.
83362         * MODULES.html.sh (func_all_modules): Add sysexits.
83363
83364 2003-06-11  Simon Josefsson  <jas@extundo.com>
83365
83366         * lib/sysexit_.h: New file.
83367
83368 2003-06-11  Derek Price  <derek@ximbiot.com>
83369
83370         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
83371         necessary.
83372
83373 2003-06-11  Bruno Haible  <bruno@clisp.org>
83374
83375         * m4/sysexits.m4: New file.
83376
83377 2003-06-10  Simon Josefsson  <jas@extundo.com>
83378
83379         * lib/argp.h: New file, from glibc.
83380         * lib/argp-ba.c: New file, from glibc.
83381         * lib/argp-eexst.c: New file, from glibc.
83382         * lib/argp-fmtstream.c: New file, from glibc.
83383         * lib/argp-fmtstream.h: New file, from glibc.
83384         * lib/argp-fs-xinl.c: New file, from glibc.
83385         * lib/argp-help.c: New file, from glibc.
83386         * lib/argp-namefrob.h: New file, from glibc.
83387         * lib/argp-parse.c: New file, from glibc.
83388         * lib/argp-pv.c: New file, from glibc.
83389         * lib/argp-pvh.c: New file, from glibc.
83390         * lib/argp-xinl.c: New file, from glibc.
83391
83392 2003-06-10  Simon Josefsson  <jas@extundo.com>
83393
83394         * modules/strchrnul: New file.
83395
83396 2003-06-10  Simon Josefsson  <jas@extundo.com>
83397
83398         * modules/argp: New file.
83399
83400 2003-06-10  Simon Josefsson  <jas@extundo.com>
83401
83402         * m4/strchrnul.m4: New file.
83403
83404 2003-06-10  Simon Josefsson  <jas@extundo.com>
83405
83406         * lib/strchrnul.h: New file.
83407         * lib/strchrnul.c: New file.
83408
83409 2003-06-10  Bruno Haible  <bruno@clisp.org>
83410
83411         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
83412
83413 2003-06-07  Karl Berry  <karl@gnu.org>
83414
83415         * config/config.{guess,sub}: update from prep.
83416
83417 2003-06-07  Jim Meyering  <jim@meyering.net>
83418
83419         * modules/strtod: Use $(...) notation, not @...@ for
83420         AC_REPLACE'd variables.
83421         * modules/localcharset: Likewise.
83422
83423 2003-06-07  Jim Meyering  <jim@meyering.net>
83424
83425         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
83426         in place of my name in the copyright comment.
83427         Remove definition and uses of __P.
83428
83429         From coreutils.
83430         * lib/stat.c: Don't declare xmalloc explicitly.
83431         Instead, include "xalloc.h".
83432         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
83433         xrealloc, and xcalloc return values.
83434         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
83435         Improve comment.
83436         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
83437
83438 2003-06-07  Bruno Haible  <bruno@clisp.org>
83439
83440         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
83441         avoid AC_CONFIG_LINKS.
83442         * modules/fnmatch (Makefile.am): Use explicit creation rule for
83443         fnmatch.h, to avoid AC_CONFIG_LINKS.
83444         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
83445
83446 2003-06-07  Bruno Haible  <bruno@clisp.org>
83447
83448         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
83449         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
83450         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
83451         directory.
83452         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
83453         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
83454         directory.
83455
83456 2003-06-06  Jim Meyering  <jim@meyering.net>
83457
83458         Merge from coreutils.
83459         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
83460         Consolidate declarations and initializations of *_base* locals.
83461
83462         Merge from coreutils.
83463         This avoids a core dump on systems without GNU putenv,
83464         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
83465         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
83466         (unsetenv): New static function, from GNU libc.
83467         (rpl_putenv): Use it.
83468
83469         * lib/modechange.c: Remove trailing blanks.
83470
83471         Merge from coreutils.
83472         * lib/fsusage.c: Remove declaration of statfs.
83473         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
83474
83475         * lib/posixtm.c: Include <stdbool.h> unconditionally.
83476
83477 2003-06-06  Jim Meyering  <jim@meyering.net>
83478
83479         * lib/stdbool_.h: Renamed from stdbool.h.in.
83480
83481 2003-06-06  Jim Meyering  <jim@meyering.net>
83482             Bruno Haible  <bruno@clisp.org>
83483
83484         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
83485         Adjust Makefile.am snippet not to redirect directly to target.
83486         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
83487
83488 2003-06-05  Paul Eggert  <eggert@twinsun.com>
83489
83490         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
83491         mismatch, look in future quarters as well as past.  This fixes a
83492         bug when processing fall-backwards gaps immediately after a long
83493         period of daylight-saving time.
83494
83495         * lib/mktime.c: Assume freestanding C89 or better.
83496         (HAVE_LIMITS_H): Remove.  Assume it's 1.
83497         (__P): Remove; not used.
83498         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
83499         (mktime, not_equal_tm, print_tm, check_result,
83500         main): Use prototypes.  Use const * where appropriate.
83501         (main): Fix typo in testing code that uncovered by above changes.
83502         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
83503
83504 2003-06-04  Paul Eggert  <eggert@twinsun.com>
83505
83506         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
83507         locale.h, localeconv.  This merges changes from coreutils.
83508
83509         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
83510         It can be removed after the next Autoconf is released.
83511         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
83512         needed.
83513
83514 2003-06-04  Paul Eggert  <eggert@twinsun.com>
83515
83516         * lib/mktime.c: Fix Debian bug 177940
83517         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
83518         (localtime_offset): Now long int, not time_t, because we want it
83519         to be guaranteed to be signed.  All uses changed.
83520         (__mktime_internal): If overflow would occur when adding offset,
83521         don't add it.
83522
83523         Merge 'human' changes from coreutils.  Rewrite to support
83524         locale-specific notations like thousands separators.
83525         * lib/human.c: Simplify authorship notice.
83526         Include human.h immediately after config.h.
83527         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
83528         <limits.h>: Do not include, since human.h does.
83529         (SIZE_MAX, UINTMAX_MAX): New macros.
83530         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
83531         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
83532         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
83533         (power_letter): Renamed from suffixes.
83534         (generate_suffix_backwards): Remove.
83535         (adjust_value): Now takes int style (because of human.h changes)
83536         and long double value (for greater precision on some platforms).
83537         (group_number): New function.
83538         (human_readable): Use it.  Use integer options, not enum.
83539         Put the options before the sizes in the arg list.
83540         Support all the new options.
83541         The old human_readable function has been removed;
83542         use inttostr.h instead.
83543         (human_readable, default_block_size, humblock):
83544         Use uintmax_t, not int, for block sizes.
83545         (human_readable_inexact, block_size_types): Remove.
83546         (block_size_opts): New constant.
83547         (human_options): Renamed from human_block_size, with new signature
83548         that allows block sizes up to UINTMAX_MAX.  All callers changed.
83549         * lib/human.h: Add copyright and authorship notice.
83550         Include <limits.h> and <stdbool.h> unconditionally.
83551         (PARAMS): Remove.  All uses removed.
83552         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
83553         (enum human_inexact_style): Remove tag; now a nameless enum.
83554         (human_floor, human_ceiling, human_round_to_even): Now have
83555         values 2, 0, 1 rather than -1, 1, 0.
83556         (human_group_digits, human_suppress_point_zero, human_autoscale,
83557         human_base_1024, human_SI, human_B): New constants.
83558         (human_readable_inexact, human_block_size): Remove.
83559         (human_readable): Size args are now uintmax_t, not int.
83560         (human_options): New decl.
83561
83562         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
83563         unnecessary now that we assume C89 or better.  This change
83564         imported from coreutils.
83565
83566         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
83567         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
83568         in the 2003-05-30 sync from glibc.
83569
83570         .h files should stand alone, but we shouldn't include <sys/types.h>
83571         if we can get away with just <stddef.h>.
83572
83573         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
83574         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
83575         rather than <sys/types.h>, as we merely need size_t.
83576         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
83577         to get size_t.
83578         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
83579         Include <stdio.h>, to get FILE.
83580         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
83581         memcasecmp.h has included <stddef.h> and all we need is size_t.
83582         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
83583         our interface, instead of including <sys/types.h>
83584
83585 2003-06-04  Paul Eggert  <eggert@twinsun.com>
83586
83587         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
83588         now, as glibc mktime is buggy on non-glibc systems.
83589
83590 2003-06-03  Karl Berry  <karl@gnu.org>
83591
83592         * config/config.sub: update from prep.
83593
83594 2003-06-02  Paul Eggert  <eggert@twinsun.com>
83595
83596         [from coreutils]
83597         Fix some minor time-related bugs with POSIX time arguments.
83598         Some valid time stamps were being rejected (notably -1, and
83599         time stamps before 1900 on 64-bit hosts).  And some invalid
83600         time stamps were being accepted, e.g. September 31.
83601
83602         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
83603         that we can return (time_t) -1 successfully.
83604         * lib/posixtm.c: Likewise.
83605         [HAVE_STDBOOL_H]: Include <stdbool.h>.
83606         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
83607         (t): Remove static var.
83608         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
83609         of static var.  All uses changed.
83610         (year): Do not reject years before 1900; they can occur with
83611         64-bit time_t.
83612         (posix_time_parse): Do not check for out-of-range components;
83613         that is now the caller's responsibility, since our checks were
83614         only approximations.
83615         (posixtime): Use mktime to check for out-of-range components,
83616         since it knows them exactly.
83617         If mktime returns (time_t) -1, check whether an error actually occurred
83618         by invoking localtime on -1.
83619         (main) [TEST_POSIXTIME]: Check for input data errors, and report
83620         posixtime failures better.
83621         Improve the test data (in comments only).
83622
83623 2003-06-02  Karl Berry  <karl@gnu.org>
83624
83625         * config/mkinstalldirs (version): new variable.
83626         (--version): new option.
83627         (usage): improve message.
83628
83629 2003-05-30  Karl Berry  <karl@gnu.org>
83630
83631         * lib/mktime.c: update from libc.
83632
83633 2003-05-30  Bruno Haible  <bruno@clisp.org>
83634
83635         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
83636         * config/config.rpath: Upgrade to gettext-0.12.1.
83637
83638 2003-05-30  Bruno Haible  <bruno@clisp.org>
83639
83640         * m4/gettext.m4: Upgrade to gettext-0.12.1.
83641         * m4/nls.m4: New file, from gettext-0.12.1.
83642         * m4/po.m4: New file, from gettext-0.12.1.
83643         * m4/progtest.m4: Upgrade to gettext-0.12.1.
83644
83645 2003-05-30  Bruno Haible  <bruno@clisp.org>
83646
83647         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
83648         * lib/localcharset.h: Likewise.
83649         * lib/localcharset.c: Likewise.
83650
83651 2003-05-29  Karl Berry  <karl@gnu.org>
83652
83653         * config/config.rpath: update from gettext.
83654
83655 2003-05-28  Paul Eggert  <eggert@twinsun.com>
83656
83657         Assume the headers required for C89 freestanding compilers.
83658         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
83659         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
83660         * m4/human.m4 (gl_HUMAN): Likewise.
83661         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
83662         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
83663         * m4/userspec.m4 (gl_USERSPEC): Likewise.
83664         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
83665         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
83666         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
83667
83668 2003-05-28  Paul Eggert  <eggert@twinsun.com>
83669
83670         Assume the headers required for C89 freestanding compilers.
83671         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
83672         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
83673         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
83674         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
83675         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
83676         define, since <limits.h> is guaranteed to do that.
83677         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
83678         * lib/exclude.c: Include <stdbool.h> unconditionally.
83679         * lib/tempname.c: Include <stddef.h> unconditionally.
83680         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
83681         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
83682         <stddef.h> does that.
83683         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
83684         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
83685         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
83686         needed.
83687         * lib/xstrtol.c: Likewise.
83688         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
83689         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
83690
83691         * lib/addext.c (addext): Use assignment rather than cast, to avoid
83692         warnings on some platforms.
83693
83694         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
83695         arbitrarily.
83696
83697 2003-05-26  Jim Meyering  <jim@meyering.net>
83698
83699         Merge in a change from coreutils:
83700         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
83701         that is guaranteed to be `no'.  Use `no_such_member' to indicate
83702         that condition, rather than `-1' which is slightly misleading.
83703         Change the name of the cache variable to have the gl_ prefix.
83704         Prompted by a patch from Richard Dawe for DJGPP.
83705
83706 2003-05-24  Karl Berry  <karl@gnu.org>
83707
83708         * config/config.guess: update from prep.
83709
83710 2003-05-22  Karl Berry  <karl@gnu.org>
83711
83712         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
83713
83714 2003-05-20  Karl Berry  <karl@gnu.org>
83715
83716         * config/config.guess: update from prep.
83717
83718 2003-05-18  Karl Berry  <karl@gnu.org>
83719
83720         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
83721         might actually be set by the user.
83722
83723         * config/depcomp, install-sh, mdate-sh: update from automake.
83724
83725 2003-05-17  Bruno Haible  <bruno@clisp.org>
83726
83727         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
83728         invalid expansion for AC_EGREP_CPP.
83729         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
83730         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
83731         Suggested by Akim Demaille <akim@epita.fr> in
83732         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
83733
83734 2003-05-12  Jim Meyering  <jim@meyering.net>
83735
83736         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
83737         the space-padded-by-default conversion specifiers, %e, %k, %l.
83738
83739 2003-05-12  Bruno Haible  <bruno@clisp.org>
83740
83741         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
83742         the string is longer than 4 KB.
83743
83744 2003-05-11  Karl Berry  <karl@gnu.org>
83745
83746         * config/config.{guess,sub}: update from prep.
83747
83748 2003-05-09  Bruno Haible  <bruno@clisp.org>
83749
83750         * modules/error: Add m4/strerror_r.m4 to file list.
83751
83752 2003-05-03  Bruno Haible  <bruno@clisp.org>
83753
83754         Upgrade to Unicode-4.0.
83755         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
83756         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
83757         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
83758         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
83759         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
83760         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
83761         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
83762         Change width of U+E0100..U+E01EF from 1 to 0.
83763
83764 2003-04-25  Jim Meyering  <jim@meyering.net>
83765
83766         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
83767         of type size_t, not int.
83768
83769 2003-04-25  Bruno Haible  <bruno@clisp.org>
83770
83771         * lib/copy-file.c: Include <stddef.h>, for size_t.
83772
83773 2003-04-21  Paul Eggert  <eggert@twinsun.com>
83774
83775         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
83776         code which expansion is under static control.  Patch imported from
83777         Akim Demaille's patch to Bison; see
83778         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
83779
83780 2003-04-14  Bruno Haible  <bruno@clisp.org>
83781
83782         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
83783
83784 2003-04-11  Jim Meyering  <jim@meyering.net>
83785
83786         Merge changes from Coreutils.
83787
83788         2003-03-22  Jim Meyering  <jim@meyering.net>
83789
83790         * lib/strftime.c (widen): Cast alloca return value to proper type.
83791
83792         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
83793
83794         From GNU libc.
83795         * lib/strftime.c (my_strftime): Handle very large width
83796         specifications for numeric values correctly.  Improve checks for
83797         overflow.
83798
83799         2003-01-19  Jim Meyering  <jim@meyering.net>
83800
83801         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
83802         definitions.
83803         (nl_get_alt_digit) [! defined my_strftime]: Define.
83804         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
83805         _nl_get_alt_digit and _nl_get_walt_digit.
83806
83807         * lib/strftime.c (my_strftime): Merge in locale-related changes from
83808         libc. These changes have no effect outside of _LIBC.
83809
83810 2003-04-10  Bruno Haible  <bruno@clisp.org>
83811
83812         * modules/findprog: New file.
83813         * MODULES.html.sh (func_all_modules): Add it.
83814
83815 2003-04-10  Bruno Haible  <bruno@clisp.org>
83816
83817         * m4/findprog.m4: New file.
83818         * m4/eaccess.m4: New file.
83819
83820 2003-04-10  Bruno Haible  <bruno@clisp.org>
83821
83822         * lib/findprog.h: New file, from GNU gettext.
83823         * lib/findprog.c: New file, from GNU gettext.
83824
83825 2003-04-05  Jim Meyering  <jim@meyering.net>
83826
83827         Merge changes from Coreutils.
83828
83829         * lib/exclude.h (PARAMS): Remove definition and uses.
83830         * lib/exclude.c: Remove uses of `PARAMS'.
83831
83832         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
83833         Add test-cases for DOS filenames. Declare program_name.
83834         (main): Set up program_name.  Patch by Rich Dawe.
83835
83836         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
83837         error from mntctl.
83838         Use mntctl's return value to drive the entry-processing loop, since
83839         we can't rely on the value of the vmt_length member in the last
83840         entry.  On some systems doing so could result in exhausting
83841         virtual memory.  Based in part on a patch from Mike Jetzer.
83842
83843 2003-04-04  Bruno Haible  <bruno@clisp.org>
83844
83845         * modules/linebreak: New file.
83846         * MODULES.html.sh (func_all_modules): Add it.
83847
83848 2003-04-04  Bruno Haible  <bruno@clisp.org>
83849
83850         * m4/linebreak.m4: New file.
83851
83852 2003-04-04  Bruno Haible  <bruno@clisp.org>
83853
83854         * lib/linebreak.h: New file, from GNU gettext.
83855         * lib/linebreak.c: New file, from GNU gettext with slight
83856         modifications.
83857         * lib/lbrkprop.h: New file, from GNU gettext.
83858
83859 2003-04-03  Bruno Haible  <bruno@clisp.org>
83860
83861         * modules/utf8-ucs4: New file.
83862         * modules/utf16-ucs4: New file.
83863         * modules/ucs4-utf8: New file.
83864         * modules/ucs4-utf16: New file.
83865         * MODULES.html.sh (func_all_modules): Add them.
83866
83867 2003-04-03  Bruno Haible  <bruno@clisp.org>
83868
83869         * m4/utf-ucs4.m4: New file.
83870         * m4/ucs4-utf.m4: New file.
83871
83872 2003-04-03  Bruno Haible  <bruno@clisp.org>
83873
83874         * lib/utf8-ucs4.h: New file, from GNU gettext.
83875         * lib/utf16-ucs4.h: New file, from GNU gettext.
83876         * lib/ucs4-utf8.h: New file, from GNU gettext.
83877         * lib/ucs4-utf16.h: New file, from GNU gettext.
83878
83879 2003-04-02  Bruno Haible  <bruno@clisp.org>
83880
83881         * modules/binary-io: New file.
83882         * MODULES.html.sh (func_all_modules): Add it.
83883
83884 2003-04-02  Bruno Haible  <bruno@clisp.org>
83885
83886         * lib/binary-io.h: New file, from GNU gettext.
83887
83888 2003-04-01  Bruno Haible  <bruno@clisp.org>
83889
83890         * modules/pathname: New file.
83891         * MODULES.html.sh (func_all_modules): Add it.
83892
83893 2003-04-01  Bruno Haible  <bruno@clisp.org>
83894
83895         * lib/pathname.h: New file, from GNU gettext.
83896         * lib/concatpath.c: New file, from GNU gettext.
83897
83898 2003-03-30  Bruno Haible  <bruno@clisp.org>
83899
83900         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
83901
83902 2003-03-30  Bruno Haible  <bruno@clisp.org>
83903
83904         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
83905         function chown() doesn't exist.
83906
83907 2003-03-28  Bruno Haible  <bruno@clisp.org>
83908
83909         * modules/copy-file: New file.
83910         * MODULES.html.sh (func_all_modules): Add it.
83911
83912 2003-03-28  Bruno Haible  <bruno@clisp.org>
83913
83914         * m4/copy-file.m4: New file.
83915
83916 2003-03-28  Bruno Haible  <bruno@clisp.org>
83917
83918         * lib/copy-file.h: New file, from GNU gettext.
83919         * lib/copy-file.c: New file, from GNU gettext.
83920
83921 2003-03-18  Jim Meyering  <jim@meyering.net>
83922
83923         * lib/quote.c (quote_n): Fix typo in comment.
83924
83925 2003-03-18  Bruno Haible  <bruno@clisp.org>
83926
83927         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
83928         checking.
83929         * m4/onceonly_2_57.m4: Likewise.
83930
83931 2003-03-17  Bruno Haible  <bruno@clisp.org>
83932
83933         * m4/onceonly.m4: Require autoconf 2.54 or newer.
83934         (m4_quote): Remove macro.
83935         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
83936
83937 2003-03-14  Jim Meyering  <jim@meyering.net>
83938
83939         Merge changes from Coreutils.
83940         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
83941         to be const, in order to avoid warnings.
83942         (obstack_room): Likewise.
83943         (obstack_empty_p): Likewise.
83944
83945 2003-03-14  Bruno Haible  <bruno@clisp.org>
83946
83947         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
83948         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
83949
83950 2003-03-13  Paul Eggert  <eggert@twinsun.com>
83951
83952         Merge changes from Bison.
83953         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
83954         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
83955         when compiling Bison 1.875's `bitset bset = obstack_alloc
83956         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
83957         * lib/hash.c: Include <stdbool.h> unconditionally.
83958
83959 2003-03-13  Paul Eggert  <eggert@twinsun.com>
83960
83961         * m4/onceonly.m4 (m4_quote): New macro.
83962         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
83963         Quote AC_FOREACH variable-expansions properly.
83964
83965 2003-03-13  Paul Eggert  <eggert@twinsun.com>
83966
83967         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
83968
83969 2003-03-09  Paul Eggert  <eggert@twinsun.com>
83970
83971         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
83972         Reported by Bruce Becker; see:
83973         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
83974
83975 2003-03-03  Paul Eggert  <eggert@twinsun.com>
83976             Bruno Haible  <bruno@clisp.org>
83977
83978         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
83979         Reported by John Hughes, see
83980         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
83981
83982 2003-02-20  Bruno Haible  <bruno@clisp.org>
83983
83984         * MODULES.html.sh (func_all_modules): Add poll.
83985
83986 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
83987
83988         * modules/poll: New file.
83989
83990 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
83991
83992         * lib/poll_.h: New file.
83993         * lib/poll.c: New file.
83994
83995 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
83996
83997         * m4/poll.m4: New file.
83998
83999 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
84000
84001         * modules/mathl: New file.
84002
84003 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
84004
84005         * lib/mathl.h: New file.
84006         * lib/acosl.c: New file.
84007         * lib/asinl.c: New file.
84008         * lib/atanl.c: New file.
84009         * lib/ceill.c: New file.
84010         * lib/cosl.c: New file.
84011         * lib/expl.c: New file.
84012         * lib/floorl.c: New file.
84013         * lib/frexpl.c: New file.
84014         * lib/ldexpl.c: New file.
84015         * lib/logl.c: New file.
84016         * lib/sincosl.c: New file.
84017         * lib/sinl.c: New file.
84018         * lib/sqrtl.c: New file.
84019         * lib/tanl.c: New file.
84020         * lib/trigl.c: New file.
84021         * lib/trigl.h: New file.
84022
84023 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
84024
84025         * m4/mathl.m4: New file.
84026
84027 2003-02-18  Bruno Haible  <bruno@clisp.org>
84028
84029         * MODULES.html.sh (func_all_modules): Add mathl.
84030
84031 2003-02-17  Bruno Haible  <bruno@clisp.org>
84032
84033         * modules/mkdtemp: New module.
84034         * MODULES.html.sh (func_all_modules): Add it.
84035
84036 2003-02-17  Bruno Haible  <bruno@clisp.org>
84037
84038         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
84039
84040 2003-02-17  Bruno Haible  <bruno@clisp.org>
84041
84042         * lib/mkdtemp.h: New file, from GNU gettext.
84043         * lib/mkdtemp.c: New file, from GNU gettext.
84044
84045 2003-02-02  Jim Meyering  <jim@meyering.net>
84046
84047         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
84048         e.g. glibc-2.2.93.
84049
84050 2003-01-31  Bruno Haible  <bruno@clisp.org>
84051
84052         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
84053         'rpl_rename'.
84054         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
84055         'rpl_strnlen'.
84056         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
84057         'rpl_strtod'.
84058         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
84059         'rpl_utime'.
84060
84061 2003-01-31  Bruno Haible  <bruno@clisp.org>
84062
84063         * lib/rename.c: #undef rename before defining rpl_rename.
84064         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
84065
84066 2003-01-30  Bruno Haible  <bruno@clisp.org>
84067
84068         * modules/vasnprintf, modules/vasprintf: New modules.
84069         * MODULES.html.sh (func_all_modules): Add them.
84070
84071 2003-01-30  Bruno Haible  <bruno@clisp.org>
84072
84073         * m4/signed.m4: New file, from GNU gettext.
84074         * m4/longdouble.m4: New file, from GNU gettext.
84075         * m4/wchar_t.m4: New file, from GNU gettext.
84076         * m4/wint_t.m4: New file, from GNU gettext.
84077         * m4/vasnprintf.m4: New file.
84078         * m4/vasprintf.m4: New file.
84079
84080 2003-01-30  Bruno Haible  <bruno@clisp.org>
84081
84082         * lib/printf-args.h: New file, from GNU gettext.
84083         * lib/printf-args.c: New file, from GNU gettext.
84084         * lib/printf-parse.h: New file, from GNU gettext.
84085         * lib/printf-parse.c: New file, from GNU gettext.
84086         * lib/vasnprintf.h: New file, from GNU gettext.
84087         * lib/vasnprintf.c: New file, from GNU gettext.
84088         * lib/asnprintf.c: New file, from GNU gettext.
84089         * lib/vasprintf.h: New file, from GNU gettext with modifications.
84090         * lib/vasprintf.c: New file, from GNU gettext.
84091         * lib/asprintf.c: New file, from GNU gettext.
84092
84093 2003-01-29  Bruno Haible  <bruno@clisp.org>
84094
84095         * modules/stpncpy: New module.
84096         * MODULES.html.sh (func_all_modules): Add it.
84097
84098 2003-01-29  Bruno Haible  <bruno@clisp.org>
84099
84100         * m4/stpncpy.m4: New file.
84101
84102 2003-01-29  Bruno Haible  <bruno@clisp.org>
84103
84104         * lib/stpncpy.h: New file, from GNU gettext with modifications.
84105         * lib/stpncpy.c: New file, from GNU gettext with modifications.
84106
84107 2003-01-28  Bruno Haible  <bruno@clisp.org>
84108
84109         * modules/c-ctype: New module.
84110         * MODULES.html.sh (func_all_modules): Add it.
84111
84112 2003-01-28  Bruno Haible  <bruno@clisp.org>
84113
84114         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
84115         Paul Eggert.
84116         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
84117         Paul Eggert.
84118
84119 2003-01-27  Bruno Haible  <bruno@clisp.org>
84120
84121         * modules/xsetenv: New module.
84122         * MODULES.html.sh (func_all_modules): Add it.
84123
84124 2003-01-27  Bruno Haible  <bruno@clisp.org>
84125
84126         * lib/xsetenv.h: New file, from GNU gettext.
84127         * lib/xsetenv.c: New file, from GNU gettext.
84128
84129 2003-01-23  Jim Meyering  <jim@meyering.net>
84130
84131         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
84132         from working on systems without dirfd (at least Irix and OSF1/Tru64).
84133
84134 2003-01-23  Bruno Haible  <bruno@clisp.org>
84135
84136         * modules/minmax: New module.
84137         * MODULES.html.sh (func_all_modules): Add it.
84138
84139 2003-01-23  Bruno Haible  <bruno@clisp.org>
84140
84141         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
84142         Eggert.
84143
84144 2003-01-22  Bruno Haible  <bruno@clisp.org>
84145
84146         * modules/exit: New module.
84147         * MODULES.html.sh (func_all_modules): Add it.
84148
84149 2003-01-22  Bruno Haible  <bruno@clisp.org>
84150
84151         * lib/exit.h: New file, from GNU gettext.
84152
84153 2003-01-19  Bruno Haible  <bruno@clisp.org>
84154
84155         * gnulib-tool: Recognize option --extract-maintainer.
84156         (func_get_maintainer): New function.
84157         * modules/*: Add Maintainer entry.
84158
84159 2003-01-16  Jim Meyering  <jim@meyering.net>
84160
84161         * m4/regex.m4: The `regex' struct is both input and output.
84162         Initialize it before each use.  Patch by Tim Waugh.
84163
84164 2003-01-16  Bruno Haible  <bruno@clisp.org>
84165
84166         * MODULES.html.sh: Add a table of contents. Add the module name as
84167         leftmost column. Add hyperlinks.
84168
84169 2003-01-15  Bruno Haible  <bruno@clisp.org>
84170
84171         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
84172
84173 2003-01-15  Bruno Haible  <bruno@clisp.org>
84174
84175         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
84176         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
84177         suffix.
84178
84179 2003-01-15  Bruno Haible  <bruno@clisp.org>
84180
84181         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
84182
84183 2003-01-15  Bruno Haible  <bruno@clisp.org>
84184
84185         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
84186         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
84187
84188 2003-01-14  Jim Meyering  <jim@meyering.net>
84189
84190         * lib/same.c (same_name): Tweak a comment.
84191
84192 2003-01-14  Bruno Haible  <bruno@clisp.org>
84193
84194         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
84195         when a string comparison is sufficient.
84196
84197 2003-01-14  Bruno Haible  <bruno@clisp.org>
84198
84199         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
84200         'unsigned int'.
84201
84202 2003-01-14  Bruno Haible  <bruno@clisp.org>
84203
84204         * lib/hash-pjw.c: Add comment about low quality of this function.
84205
84206 2003-01-13  Bruno Haible  <bruno@clisp.org>
84207
84208         * modules/stpcpy: Distribute lib/stpcpy.h.
84209         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
84210
84211 2003-01-13  Bruno Haible  <bruno@clisp.org>
84212
84213         * modules/*: Add a description.
84214         * modules/strpbrk: Fix Makefile.am snippet.
84215         * modules/strtoimax: Fix dependencies.
84216         * modules/strtoumax: Likewise.
84217
84218 2003-01-13  Bruno Haible  <bruno@clisp.org>
84219
84220         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
84221         * modules/alloca (Makefile.am): All object files depend on alloca.h.
84222         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
84223
84224 2003-01-13  Bruno Haible  <bruno@clisp.org>
84225
84226         * gnulib-tool (func_create_testdir): Store config/* files in the main
84227         directory.
84228         * config.rpath: Move to ...
84229         * config/config.rpath: ... here.
84230         * modules/gettext: Contains config/config.rpath, not config.rpath.
84231         * modules/iconv: Likewise.
84232
84233 2003-01-12  Paul Eggert  <eggert@twinsun.com>
84234
84235         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
84236         to avoid collisions with libcurses and libreadline.
84237
84238         * m4/getstr.m4: Remove.
84239         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
84240
84241 2003-01-12  Paul Eggert  <eggert@twinsun.com>
84242
84243         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
84244         to avoid collisions with libcurses and libreadline.
84245
84246         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
84247         * lib/getstr.h, getstr.c: Remove.
84248         * lib/getline.c: Include "getline.h", to check interface.
84249         Move body of old getstr.c here: this defines MIN_CHUNK and
84250         declares getdelim2, which is renamed from getstr.
84251         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
84252
84253         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
84254         All uses changed.
84255         * lib/linebuffer.h: Likewise.
84256         (readline): Remove backward-compatibility macro.
84257
84258 2003-01-12  Paul Eggert  <eggert@twinsun.com>
84259
84260         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
84261         to avoid collisions with libcurses and libreadline.
84262         * getstr: Remove.
84263         * MODULES.html.sh: Remove getstr.
84264         * modules/getline: Depend on unlocked-io, not getstr.
84265
84266 2003-01-12  Jim Meyering  <jim@meyering.net>
84267
84268         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
84269
84270 2003-01-10  Bruno Haible  <bruno@clisp.org>
84271
84272         * modules/alloca: Change Makefile.am requirements. Simplify Include
84273         requirements. Add lib/alloca_.h to file list.
84274
84275 2003-01-10  Bruno Haible  <bruno@clisp.org>
84276
84277         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
84278
84279 2003-01-10  Bruno Haible  <bruno@clisp.org>
84280
84281         * lib/alloca_.h: New file.
84282         * lib/getdate.y: Unconditionally include alloca.h.
84283         * lib/makepath.c: Likewise.
84284         * lib/setenv.c: Likewise.
84285         * lib/userspec.c: Likewise.
84286
84287 2003-01-09  Karl Berry  <karl@gnu.org>
84288
84289         * MODULES.html.sh: include `dirname $0` in PATH, to find
84290         gnulib-tool.
84291
84292 2003-01-09  Bruno Haible  <bruno@clisp.org>
84293
84294         * modules/stdbool: Change configure.ac, Makefile.am requirements.
84295         Simplify Include requirements. Add lib/stdbool.h.in to file list.
84296
84297 2003-01-09  Bruno Haible  <bruno@clisp.org>
84298
84299         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
84300
84301 2003-01-09  Bruno Haible  <bruno@clisp.org>
84302
84303         * lib/stdbool.h.in: New file.
84304
84305 2003-01-09  Bruno Haible  <bruno@clisp.org>
84306
84307         * gnulib-tool (func_all_modules): Ignore files ending in ~.
84308         * MODULES.html.sh: Likewise.
84309
84310 2003-01-08  Jim Meyering  <jim@meyering.net>
84311
84312         * lib/full-write.c: Undefine and define-away `const' after inclusion
84313         of errno.h, not before.  Suggestion from Bruno Haible.
84314
84315 2003-01-08  Bruno Haible  <bruno@clisp.org>
84316
84317         * modules/full-read: Depend on full-write.
84318
84319 2003-01-08  Bruno Haible  <bruno@clisp.org>
84320
84321         * lib/safe-read.c: Include specification header first, to ensure its
84322         selfcontainedness.
84323         * lib/full-write.c: Likewise.
84324
84325 2003-01-07  Jim Meyering  <jim@meyering.net>
84326
84327         * lib/full-write.c: Rework so that it may serve to define full_read,
84328         too.
84329         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
84330
84331 2003-01-07  Bruno Haible  <bruno@clisp.org>
84332
84333         * lib/strtoimax.c: Include <stdint.h> as an alternative to
84334         <inttypes.h>.
84335         * lib/xstrtol.h: Likewise.
84336         * lib/xstrtoimax.c: Likewise.
84337         * lib/xstrtoumax.c: Likewise.
84338         * lib/human.h: Likewise.
84339
84340         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
84341         on systems that have <inttypes.h> but not <stdint.h>.
84342
84343 2003-01-07  Bruno Haible  <bruno@clisp.org>
84344
84345         * MODULES.html.sh: Add copyright notice.
84346         (missed_files): Omit CVS directory entries.
84347         (func_module): Make it work with sed-3.02.
84348         * MODULES.txt: Remove file.
84349
84350 2003-01-06  Jim Meyering  <jim@meyering.net>
84351
84352         * lib/version-etc.c: Update year in translatable copyright string.
84353
84354 2003-01-03  Karl Berry  <karl@gnu.org>
84355
84356         * config/config.{guess,sub}: update from prep.
84357
84358 2003-01-02  Karl Berry  <karl@gnu.org>
84359
84360         * doc/COPYING.DOC: belatedly updated to 1.2.
84361
84362 2003-01-01  Karl Berry  <karl@gnu.org>
84363
84364         * gnulib-tool (func_verify_module): report module name $module in
84365         error message, not $1.
84366         * gnulib-tool (create-testdir): don't complain if destdir couldn't
84367         be created, only if it doesn't exist.
84368         * gnulib-tool (last_checkin_date): don't expand the $Date here.
84369
84370 2002-12-31  Paul Eggert  <eggert@twinsun.com>
84371
84372         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
84373
84374 2002-12-31  Paul Eggert  <eggert@twinsun.com>
84375
84376         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
84377         memcmp if strcoll doesn't work.
84378
84379 2002-12-31  Bruno Haible  <bruno@clisp.org>
84380
84381         * lib/utime.c (utime_null): No need to call ftruncate if the file was
84382         nonempty.
84383
84384 2002-12-31  Bruno Haible  <bruno@clisp.org>
84385
84386         * lib/memcoll.c (STRCOLL): New macro.
84387         (memcoll): Use it.
84388
84389 2002-12-31  Bruno Haible  <bruno@clisp.org>
84390
84391         * lib/localcharset.h: New file.
84392         * lib/localcharset.c: Include it.
84393         * lib/unicodeio.c: Likewise.
84394
84395 2002-12-31  Bruno Haible  <bruno@clisp.org>
84396
84397         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
84398         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
84399
84400 2002-12-31  Bruno Haible  <bruno@clisp.org>
84401
84402         * lib/getline.h: Include <stddef.h>, for size_t.
84403
84404         * lib/unicodeio.h: Include <stddef.h>, for size_t.
84405         * lib/unicodeio.c: Don't include <stddef.h>.
84406
84407 2002-12-31  Bruno Haible  <bruno@clisp.org>
84408
84409         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
84410         HAVE_TM_ZONE.
84411
84412 2002-12-24  Karl Berry  <karl@gnu.org>
84413
84414         * config/config.guess: update from prep.
84415
84416 2002-12-24  Bruno Haible  <bruno@clisp.org>
84417
84418         General infrasructure.
84419         * m4/README: Rewritten.
84420         * m4/onceonly.m4: New file.
84421         * m4/onceonly_2_57.m4: New file.
84422
84423         Module atexit.
84424         * m4/atexit.m4: New file.
84425
84426         Module strtod.
84427         * m4/strtod.m4: New file.
84428
84429         Module strtol.
84430         * m4/strtol.m4: New file.
84431
84432         Module strtoul.
84433         * m4/strtoul.m4: New file.
84434
84435         Module memchr.
84436         * m4/memchr.m4: New file.
84437
84438         Module memcmp.
84439         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
84440         (jm_FUNC_MEMCMP): Invoke it.
84441
84442         Module memcpy.
84443         * m4/memcpy.m4: New file.
84444
84445         Module memmove.
84446         * m4/memmove.m4: New file.
84447
84448         Module memset.
84449         * m4/memset.m4: New file.
84450
84451         Module strcspn.
84452         * m4/strcspn.m4: New file.
84453
84454         Module strpbrk.
84455         * m4/strpbrk.m4: New file.
84456
84457         Module strstr.
84458         * m4/strstr.m4: New file.
84459
84460         Module strerror.
84461         * m4/strerror.m4: New file.
84462
84463         Module mktime.
84464         * m4/mktime.m4: Renamed from jm-mktime.m4.
84465         (gl_PREREQ_MKTIME): New macro.
84466         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
84467
84468         Module malloc.
84469         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
84470         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
84471         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
84472
84473         Module realloc.
84474         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
84475         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
84476         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
84477
84478         Module strftime.
84479         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
84480         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
84481         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
84482         gl_TM_GMTOFF.
84483         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
84484
84485         Module xalloc.
84486         * m4/xalloc.m4: New file.
84487
84488         Module alloca.
84489         * m4/alloca.m4: New file.
84490
84491         Module putenv.
84492         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
84493         (jm_FUNC_PUTENV): Invoke it.
84494
84495         Module setenv.
84496         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
84497         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
84498         when invoked twice.
84499         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
84500         gt_FUNC_SETENV.
84501
84502         Module memrchr.
84503         * m4/memrchr.m4: New file.
84504
84505         Module stpcpy.
84506         * m4/stpcpy.m4: New file.
84507
84508         Module strcase.
84509         * m4/strcase.m4: New file.
84510
84511         Module strdup.
84512         * m4/strdup.m4: New file.
84513
84514         Module strnlen.
84515         * m4/strnlen.m4: New file.
84516
84517         Module strndup.
84518         * m4/strndup.m4: New file.
84519
84520         Module xstrtod.
84521         * m4/xstrtod.m4: New file.
84522
84523         Module xstrtol.
84524         * m4/xstrtol.m4: New file.
84525
84526         Module getdate.
84527         * m4/getdate.m4: New file.
84528
84529         Module unlocked-io.
84530         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
84531         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
84532         * m4/jm-glibc-io.m4n: Remove file.
84533
84534         Module long-options.
84535         * m4/long-options.m4: New file.
84536
84537         Module md5.
84538         * m4/md5.m4: New file.
84539
84540         Module sha.
84541         * m4/sha.m4: New file.
84542
84543         Module getstr.
84544         * m4/getstr.m4: New file.
84545
84546         Module getline.
84547         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
84548         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
84549         <sys/types.h>, for size_t. Use the function name gnu_getline, not
84550         simply getline. Infoke gl_PREREQ_GETLINE.
84551
84552         Module obstack.
84553         * m4/obstack.m4: New file.
84554
84555         Module hash.
84556         * m4/hash.m4: New file.
84557
84558         Module readtokens.
84559         * m4/readtokens.m4: New file.
84560
84561         Module strverscmp.
84562         * m4/strverscmp.m4: New file.
84563
84564         Module stdbool.
84565         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
84566         OSF/1.
84567
84568         Module strtoll.
84569         * m4/strtoll.m4: New file.
84570
84571         Module strtoull.
84572         * m4/strtoull.m4: New file.
84573
84574         Module strtoimax.
84575         * m4/strtoimax.m4: New file.
84576
84577         Module strtoumax.
84578         * m4/strtoumax.m4: New file.
84579
84580         Module xstrtoimax.
84581         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
84582         jm_AC_PREREQ_XSTRTOIMAX.
84583         Moved the strtol prerequisites to strtol.m4.
84584         Moved the strtoll prerequisites to strtoll.m4.
84585         Moved the strtoimax prerequisites to strtoimax.m4.
84586
84587         Module xstrtoumax.
84588         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
84589         jm_AC_PREREQ_XSTRTOUMAX.
84590         Moved the strtoul prerequisites to strtoul.m4.
84591         Moved the strtoull prerequisites to strtoull.m4.
84592         Moved the strtoumax prerequisites to strtoumax.m4.
84593
84594         Module chown.
84595         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
84596         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
84597
84598         Module dup2.
84599         * m4/dup2.m4: New file.
84600
84601         Module ftruncate.
84602         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
84603         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
84604
84605         Module getgroups.
84606         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
84607         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
84608
84609         Module gettimeofday.
84610         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
84611         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
84612         gl_PREREQ_GETTIMEOFDAY.
84613
84614         Module mkdir.
84615         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
84616         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
84617
84618         Module mkstemp.
84619         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
84620         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
84621         jm_AC_TYPE_UINTMAX_T.
84622         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
84623
84624         Module stat.
84625         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
84626         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
84627
84628         Module lstat.
84629         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
84630         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
84631
84632         Module timespec.
84633         * m4/timespec.m4 (gl_TIMESPEC): New macro.
84634         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
84635         * m4/st_mtim.m4: Indentation.
84636
84637         Module nanosleep.
84638         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
84639         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
84640         gl_PREREQ_NANOSLEEP.
84641
84642         Module regex.
84643         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
84644         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
84645         (gl_REGEX): New macro.
84646
84647         Module rename.
84648         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
84649         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
84650
84651         Module rmdir.
84652         * m4/rmdir.m4: New file.
84653
84654         Module utime.
84655         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
84656         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
84657         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
84658
84659         Module dirname.
84660         * m4/dirname.m4: New file.
84661
84662         Module getopt.
84663         * m4/getopt.m4: New file.
84664
84665         Module unistd-safer.
84666         * m4/unistd-safer.m4: New file.
84667
84668         Module fnmatch.
84669         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
84670         declaration.
84671         (gl_PREREQ_FNMATCH_EXTRA): New macro.
84672         (gl_FUNC_FNMATCH_POSIX): New macro.
84673         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
84674         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
84675         simply fnmatch.
84676
84677         Module exclude.
84678         * m4/exclude.m4: New file.
84679
84680         Module human.
84681         * m4/human.m4: New file.
84682
84683         Module acl.
84684         * m4/acl.m4: Nop.
84685
84686         Module backupfile.
84687         * m4/backupfile.m4: New file.
84688         * m4/d-ino.m4: Indentation.
84689
84690         Module fsusage.
84691         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
84692         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
84693         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
84694
84695         Module dirfd.
84696         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
84697         requirements.
84698
84699         Module euidaccess.
84700         * m4/euidaccess.m4: New file.
84701
84702         Module file-type.
84703         * m4/file-type.m4: New file.
84704
84705         Module fileblocks.
84706         * m4/fileblocks.m4: New file.
84707
84708         Module filemode.
84709         * m4/filemode.m4: New file.
84710
84711         Module isdir.
84712         * m4/isdir.m4: New file.
84713
84714         Module lchown.
84715         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
84716         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
84717
84718         Module makepath.
84719         * m4/makepath.m4: New file.
84720
84721         Module modechange.
84722         * m4/modechange.m4: New file.
84723
84724         Module mountlist.
84725         * m4/mountlist.m4: New file.
84726         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
84727         Indentation.
84728
84729         Module path-concat.
84730         * m4/path-concat.m4: New file.
84731
84732         Module pathmax.
84733         * m4/pathmax.m4: New file.
84734
84735         Module same.
84736         * m4/same.m4: New file.
84737
84738         Module save-cwd.
84739         * m4/save-cwd.m4: New file.
84740
84741         Module savedir.
84742         * m4/savedir.m4: New file.
84743
84744         Module xgetcwd.
84745         * m4/xgetcwd.m4: New file.
84746         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
84747
84748         Module xreadlink.
84749         * m4/xreadlink.m4: New file.
84750
84751         Module safe-read.
84752         * m4/safe-read.m4: New file.
84753
84754         Module safe-write.
84755         * m4/safe-write.m4: New file.
84756
84757         Module closeout.
84758         * m4/closeout.m4: New file.
84759
84760         Module stdio-safer.
84761         * m4/stdio-safer.m4: New file.
84762
84763         Module getpass.
84764         * m4/getpass.m4: New file.
84765
84766         Module getugroups.
84767         * m4/getugroups.m4: New file.
84768
84769         Module group-member.
84770         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
84771         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
84772
84773         Module idcache.
84774         * m4/idcache.m4: New file.
84775
84776         Module userspec.
84777         * m4/userspec.m4: New file.
84778
84779         Module gettime.
84780         * m4/clock_time.m4: New file.
84781         * m4/gettime.m4: New file.
84782
84783         Module settime.
84784         * m4/settime.m4: New file.
84785
84786         Module posixtm.
84787         * m4/posixtm.m4: New file.
84788
84789         Module gethostname.
84790         * m4/gethostname.m4: New file.
84791
84792         Module canon-host.
84793         * m4/canon-host.m4: New file.
84794
84795         Module gettext.
84796         * m4/codeset.m4: New file, from gettext-0.11.5.
84797         * m4/gettext.m4: New file, from gettext-0.11.5.
84798         * m4/glibc21.m4: New file, from gettext-0.11.5.
84799         * m4/iconv.m4: New file, from gettext-0.11.5.
84800         * m4/intdiv0.m4: New file, from gettext-0.11.5.
84801         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
84802         * m4/inttypes.m4: New file, from gettext-0.11.5.
84803         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
84804         * m4/isc-posix.m4: New file, from gettext-0.11.5.
84805         * m4/lcmessage.m4: New file, from gettext-0.11.5.
84806         * m4/lib-ld.m4: New file, from gettext-0.11.5.
84807         * m4/lib-link.m4: New file, from gettext-0.11.5.
84808         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
84809         * m4/progtest.m4: New file, from gettext-0.11.5.
84810         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
84811         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
84812         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
84813
84814         Module localcharset.
84815         * m4/localcharset.m4: New file.
84816
84817         Module hard-locale.
84818         * m4/hard-locale.m4: New file.
84819
84820         Module mbswidth.
84821         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
84822         onceonly macros.
84823         * m4/mbrtowc.m4: Add comment.
84824
84825         Module memcasecmp.
84826         * m4/memcasecmp.m4: New file.
84827
84828         Module memcoll.
84829         * m4/memcoll.m4: New file.
84830
84831         Module unicodeio.
84832         * m4/unicodeio.m4: New file.
84833
84834         Module rpmatch.
84835         * m4/rpmatch.m4: New file.
84836
84837         Module yesno.
84838         * m4/yesno.m4: New file.
84839
84840         Module exitfail.
84841         * m4/exitfail.m4: New file.
84842
84843         Module c-stack.
84844         * m4/c-stack.m4 (gl_C_STACK): New macro.
84845         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
84846
84847         Module error.
84848         * m4/error.m4 (gl_ERROR): New macro.
84849         (jm_PREREQ_ERROR): Use onceonly macros.
84850
84851         Module fatal.
84852         * m4/fatal.m4: New file.
84853
84854         Module getloadavg.
84855         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
84856         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
84857
84858         Module getpagesize.
84859         * m4/getpagesize.m4: New file.
84860
84861         Module getusershell.
84862         * m4/getusershell.m4: New file.
84863
84864         Module physmem.
84865         * m4/physmem.m4: New file.
84866
84867         Module posixver.
84868         * m4/posixver.m4: New file.
84869
84870         Module quotearg.
84871         * m4/quotearg.m4: New file.
84872
84873         Module quote.
84874         * m4/quote.m4: New file.
84875
84876         Module readutmp.
84877         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
84878
84879         Module sig2str.
84880         * m4/sig2str.m4: New file.
84881
84882         Other.
84883         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
84884         ulonglong.m4.
84885         * m4/intmax_t.m4: New file.
84886         * m4/d-type.m4: Indentation.
84887         * m4/jm-macros.m4: Update.
84888         * m4/prereq.m4 (jm_PREREQ): Update.
84889         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
84890         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
84891         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
84892         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
84893         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
84894         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
84895         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
84896         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
84897         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
84898         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
84899         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
84900         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
84901         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
84902         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
84903         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
84904         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
84905         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
84906         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
84907         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
84908
84909 2002-12-24  Bruno Haible  <bruno@clisp.org>
84910
84911         * MODULES.txt: Update according to m4/ changes.
84912
84913         Module gettext.
84914         * config.rpath: New file, from gettext-0.11.5.
84915
84916         * modules/*: New module descriptions.
84917         * gnulib-tool: New file.
84918         * MODULES.html.sh: New file.
84919
84920 2002-12-21  Karl Berry  <karl@gnu.org>
84921
84922         * doc/fdl.texi: update to version 1.2.
84923
84924 2002-12-19  Karl Berry  <karl@gnu.org>
84925
84926         * config/config.guess: update from prep.
84927
84928 2002-12-18  Bruno Haible  <bruno@clisp.org>
84929
84930         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
84931         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
84932
84933 2002-12-17  Bruno Haible  <bruno@clisp.org>
84934
84935         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
84936         stdlib.h, string.h.
84937
84938 2002-12-17  Bruno Haible  <bruno@clisp.org>
84939
84940         * lib/canon-host.c (strdup): Remove unused declaration.
84941
84942         * lib/fsusage.c: Include full_read.h.
84943         (get_fs_usage): Use full_read instead of safe_read.
84944
84945         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
84946
84947 2002-12-12  Karl Berry  <karl@gnu.org>
84948
84949         * config/config.guess: update from prep.
84950
84951 2002-12-11  Bruno Haible  <bruno@clisp.org>
84952
84953         * m4/setenv.m4: New file, from gettext-0.11.5.
84954
84955 2002-12-11  Bruno Haible  <bruno@clisp.org>
84956
84957         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
84958         not unsetenv().
84959         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
84960         modifications:
84961
84962         2002-12-11  Bruno Haible  <bruno@clisp.org>
84963
84964                 * setenv.c (alloca): Fall back to malloc.
84965                 (freea): New macro.
84966                 (setenv): Use freea() to free memory allocated with alloca().
84967
84968         2002-11-13  Bruno Haible  <bruno@clisp.org>
84969
84970                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
84971                 function declarations.
84972                 * unsetenv.c (unsetenv): Likewise.
84973
84974         2002-03-04  Bruno Haible  <bruno@clisp.org>
84975
84976                 Portability to AIX 4.3.3.
84977                 * unsetenv.c: New file, extracted from setenv.c.
84978                 * setenv.c: Move the unsetenv() function to unsetenv.c.
84979
84980         2001-12-20  Bruno Haible  <bruno@clisp.org>
84981
84982                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
84983                 use malloc instead. For SunOS 4.
84984
84985         2001-12-11  Bruno Haible  <bruno@clisp.org>
84986
84987                 * setenv.c: Declare alloca.
84988                 (compar_fn_t): New typedef.
84989                 (KNOWN_VALUE, STORE_VALUE): Use it.
84990
84991         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
84992         setenv.h.
84993
84994 2002-12-10  Paul Eggert  <eggert@twinsun.com>
84995
84996         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
84997         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
84998         Choose values that are less likely to collide with system fnmatch
84999         options.
85000         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
85001         defined (e.g., a pure POSIX system).
85002         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
85003         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
85004
85005 2002-12-06  Paul Eggert  <eggert@twinsun.com>
85006
85007         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
85008         a pain in practice to deal with generated m4 files.  This change
85009         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
85010
85011         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
85012         and jm-glibc-io.m4, as they are no longer a special case.
85013         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
85014         kludge and the auto-generation stuff.  Check only whether the
85015         functions are declared, not whether they exist, since older hosts
85016         that don't declare the functions can't use the optimization anyway.
85017
85018 2002-12-06  Jim Meyering  <jim@meyering.net>
85019
85020         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
85021
85022         Merge in changes from libc's misc/error.c, in preparation
85023         for the merge of gnulib's changes back into libc.
85024
85025         * lib/error.c (_): Define only if not already defined.
85026         Move definition to follow all #include directives.
85027         Include unlocked-io.h only if !_LIBC.
85028         [_LIBC]: Include <libio/libioP.h>.
85029         [USE_IN_LIBIO]: Include <libio/iolibio.h>
85030         (fflush): Tweak definition to use INTUSE.
85031         (putc): Define.
85032
85033 2002-12-05  Paul Eggert  <eggert@twinsun.com>
85034
85035         * lib/alloca.c [defined emacs]: Include "lisp.h".
85036         (xalloc_die) [defined emacs]: New macro.
85037         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
85038         [! defined emacs]: Include <xalloc.h>.
85039         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
85040         (pointer): Typedef to POINTER_TYPE *.
85041         (malloc): Remove decl; we now always use xmalloc.
85042         (alloca): Use old-style definition, since Emacs needs this.
85043         Check for arithmetic overflow when computing combined size.
85044
85045 2002-12-04  Paul Eggert  <eggert@twinsun.com>
85046
85047         Do not generate unlocked-io.h automatically, since it's easier to
85048         maintain it by hand.
85049
85050         * lib/unlocked-io.h: New file, from GNU diffutils,
85051         but with proper copyright notice and attribution.
85052         * lib/gen-uio: Remove.
85053         * lib/Makefile.am: Add copyright notice.
85054         (libfetish_a_SOURCES): Add unlocked-io.h.
85055         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
85056         (DISTCLEANFILES, io_functions): Remove macros.
85057         (EXTRA_DIST): Remove gen_uio.
85058         (unlocked-io.h): Remove rule.
85059
85060 2002-12-04  Jim Meyering  <jim@meyering.net>
85061
85062         Reflect the fact that stat.c and lstat.c are no longer generated.
85063         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
85064         (DISTCLEANFILES): Likewise.
85065         (EXTRA_DIST): Likewise.
85066         (all_local): Don't depend on stat.c or lstat.c.
85067         (stat.c, lstat.c): Remove rules.
85068         (EXTRA_DIST): Remove xstat.in.
85069
85070         * lib/xstat.in: Remove file.  Contents moved into stat.c.
85071         * lib/stat.c: New file.  Contents mostly from xstat.in.
85072         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
85073         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
85074
85075         * lib/safe-read.c: Rework so that it may serve to define safe_write,
85076         too.
85077         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
85078
85079 2002-12-03  Jim Meyering  <jim@meyering.net>
85080
85081         * lib/safe-read.c, safe-write.c: Change variable names and comments,
85082         but not semantics, to minimize the differences between these two files.
85083         (safe_read): Change comment to mention SAFE_READ_ERROR.
85084
85085         * lib/safe-read.c (IS_EINTR): Define.
85086         (safe_read): Use IS_EINTR in place of in-function cpp directives.
85087
85088 2002-12-02  Jim Meyering  <jim@meyering.net>
85089
85090         * lib/safe-read.c (EINTR): Define.
85091         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
85092         (INT_MAX): Provide fallback.
85093         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
85094
85095         * lib/safe-read.h (SAFE_READ_ERROR): Define.
85096
85097 2002-12-02  Bruno Haible  <bruno@clisp.org>
85098
85099         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
85100         Define, taken from safe-read.c.
85101         (INT_MAX): Provide fallback.
85102         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
85103         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
85104
85105         * lib/safe-read.c (EINTR): Remove definition.
85106         (safe_read): Don't use EINTR if it is absent.
85107
85108 2002-12-01  Jim Meyering  <jim@meyering.net>
85109
85110         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
85111         zero.
85112         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
85113
85114 2002-11-27  Paul Eggert  <eggert@twinsun.com>
85115
85116         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
85117         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
85118         with `if (! (value < limit)) abort ();', for readability.
85119
85120 2002-11-26  Karl Berry  <karl@gnu.org>
85121
85122         * lib/strdup.c: copy from libc again, with jim's ok.
85123         * lib/.cppi-disable: re-add strdup.c
85124
85125 2002-11-25  Karl Berry  <karl@gnu.org>
85126
85127         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
85128         instead of "strtol.c".
85129
85130 2002-11-25  Karl Berry  <karl@gnu.org>
85131
85132         * config/install-sh: update from automake for variable quoting, $0 in
85133         error msgs, etc.
85134
85135         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
85136         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
85137         entry.
85138
85139 2002-11-25  Jim Meyering  <jim@meyering.net>
85140
85141         * lib/mktime.c: Sync from libc, now that it has the latest fix.
85142
85143 2002-11-24  Karl Berry  <karl@gnu.org>
85144
85145         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
85146         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
85147
85148 2002-11-24  Jim Meyering  <jim@meyering.net>
85149
85150         Update from coreutils:
85151
85152         * lib/mktime.c: Merge in changes from libc.
85153
85154         Avoid a link-time failure on some Linux systems.
85155         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
85156         (otherwise).
85157         (__mon_yday): Declare with the STATIC attribute.
85158         (__mktime_internal): Likewise.
85159         Based on a report from Greg Schafer.
85160
85161 2002-11-23  Jim Meyering  <jim@meyering.net>
85162
85163         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
85164         Use `unsigned', not `int', as type of index.
85165
85166         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
85167
85168         * lib/fsusage.c: Remove unneeded parentheses around operands of
85169         `defined'.
85170
85171 2002-11-22  Paul Eggert  <eggert@twinsun.com>
85172
85173         * lib/quotearg.h: Allow multiple inclusion by surrounding with
85174         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
85175         so that we can be included first.
85176         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
85177         * lib/quotearg.c: Include quotearg.h immediately after config.h.
85178         No need to include stddef.h or sys/types.h any more.
85179         Surround local include files with "", not "<>".
85180         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
85181         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
85182         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
85183         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
85184         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
85185         (ISPRINT): Remove; no longer needed now that we assume C89.
85186
85187         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
85188         Preserve errno.
85189
85190         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
85191         quotearg_char): Use SIZE_MAX rather than
85192         (size_t) -1 when we are talking about "infinity".
85193
85194         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
85195
85196 2002-11-22  Paul Eggert  <eggert@twinsun.com>
85197
85198         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
85199         hint that one should use `if (! x) abort ();' rather than `assert
85200         (x);', and anyway it's one less thing to worry about configuring.
85201         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
85202         hash_rehash, hash_insert): Use abort rather than assert.
85203
85204 2002-11-22  Bruno Haible  <bruno@clisp.org>
85205
85206         * lib/safe-read.h: Assume C89. Add comments.
85207         (safe_read): Change return type to size_t.
85208         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
85209         byte counts > SSIZE_MAX correctly.
85210         * lib/safe-write.h: New file.
85211         * lib/safe-write.c: New file.
85212         * lib/full-read.h: New file.
85213         * lib/full-read.c: New file.
85214         * lib/full-write.h: Assume C89. Add comments.
85215         * lib/full-write.c: Include safe-write.h.
85216         (full_write): Rewritten to use safe_write.
85217         Suggested by Jim Meyering and Paul Eggert.
85218
85219 2002-11-21  Jim Meyering  <jim@meyering.net>
85220
85221         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
85222
85223         Merge in changes from the coreutils.
85224
85225         2002-09-25  Paul Eggert  <eggert@twinsun.com>
85226         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
85227         <stdint.h>.
85228         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
85229         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
85230         int.  Work more efficiently if X is the same width as uintmax_t.
85231         Do not compare X to -1, to avoid bogus compiler warning.
85232         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
85233         Don't assume that f_frsize and f_bsize are the same type.
85234
85235         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
85236         warning on FreeBSD.
85237
85238         * lib/makepath.c (make_path): Restore umask *before* creating the final
85239         component.
85240         (make_path): Minor reformatting.
85241
85242         * lib/xmalloc.c: Adjust to work with new autoconf macros,
85243         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
85244         HAVE_MALLOC/HAVE_REALLOC.
85245
85246         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
85247         dummy ones.  At least on GNU/Linux systems, `auto' means something
85248         else.
85249         From Michael Stone.
85250
85251 2002-11-21  Bruno Haible  <bruno@clisp.org>
85252
85253         Remove case insensitive option matching.
85254         * lib/argmatch.h (argcasematch): Remove declaration.
85255         (ARGCASEMATCH): Remove macro.
85256         (__xargmatch_internal): Remove case_sensitive argument.
85257         (XARGMATCH): Update.
85258         (XARGCASEMATCH): Remove macro.
85259         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
85260         case_sensitive argument.
85261         (argcasematch): Remove function.
85262         (__xargmatch_internal): Remove case_sensitive argument.
85263         (main): Use XARGMATCH instead of XARGCASEMATCH.
85264
85265         * lib/xmalloc.c: Change compile-time error message. Add comment about
85266         required autoconf version.
85267
85268 2002-11-20  Paul Eggert  <eggert@twinsun.com>
85269
85270         Merge argmatch cleanups from Bison.  Assume C89.
85271
85272         * lib/argmatch.c: Include config.h here, not in argmatch.h.
85273         Include stdlib.h, for EXIT_FAILURE.
85274         Always include <string.h>, since we assume C89.
85275         (EXIT_FAILURE): Remove pre-C89 bug workaround.
85276         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
85277         Include <stddef.h> instead, since it's all we need for size_t.
85278         (PARAMS): Remove.  All uses removed.
85279         (ARRAY_CARDINALITY): Do not bother to #undef.
85280         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
85281         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
85282         Remove unnecessary parentheses.
85283         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
85284         Insert necessary parentheses.
85285         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
85286         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
85287
85288 2002-11-19  Bruno Haible  <bruno@clisp.org>
85289
85290         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
85291         * lib/mbswidth.h: Include <stddef.h>, for size_t.
85292
85293         * lib/mbswidth.h (PARAMS): Remove macro.
85294         (mbswidth, mbsnwidth): Use ANSI C function declarations.
85295         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
85296
85297         * lib/gcd.h (PARAMS): Remove macro.
85298         (gcd): Use ANSI C function declarations.
85299         * lib/gcd.c (gcd): Likewise.
85300
85301 2002-11-15  Bruno Haible  <bruno@clisp.org>
85302
85303         * lib/strcspn.c: Include <stddef.h>.
85304         (strcspn): Use ANSI C function declaration. Change return type to
85305         size_t. Use NULL.
85306         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
85307         (strpbrk): Use NULL.
85308         * lib/strpbrk.h (PARAMS): Remove macro.
85309         (strpbrk): Use ANSI C function declaration.
85310         * lib/strstr.c: Don't include <sys/types.h>.
85311         * lib/strstr.h (PARAMS): Remove macro.
85312         (strstr): Use ANSI C function declarations.
85313
85314 2002-11-14  Karl Berry  <karl@gnu.org>
85315
85316         * config/mkinstalldirs: `do' on separate line, instead of
85317         `for var; do'.
85318
85319 2002-11-06  Bruno Haible  <bruno@clisp.org>
85320
85321         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
85322         * lib/gcd.c (gcd): Likewise.
85323
85324 2002-11-05  Bruno Haible  <bruno@clisp.org>
85325
85326         * lib/gcd.h: New file, from gettext-0.11.5.
85327         * lib/gcd.c: New file, from gettext-0.11.5.
85328
85329 2002-11-05  Bruno Haible  <bruno@clisp.org>
85330
85331         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
85332         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
85333         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
85334         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
85335
85336         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
85337         <libintl.h>.
85338         * lib/makepath.c: Include gettext.h instead of <locale.h> and
85339         <libintl.h>.
85340
85341         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
85342         * lib/human.c: Include gettext.h instead of <libintl.h>.
85343         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
85344         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
85345         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
85346         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
85347         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
85348         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
85349         (textdomain): Remove definition.
85350         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
85351
85352         * lib/long-options.c: Remove include of <libintl.h> and definition of
85353         _.
85354         * lib/same.c: Remove include of <libintl.h> and definition of _.
85355
85356 2002-11-04  Owen Taylor  <otaylor@redhat.com>
85357
85358         * lib/config.charset: A few additions for Solaris.
85359
85360 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
85361
85362         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
85363         * lib/localcharset.c (locale_charset): Declare as extern "C".
85364
85365 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
85366
85367         * lib/config.charset: msdos in uk_UA uses CP1125.
85368
85369 2002-11-04  Bruno Haible  <bruno@clisp.org>
85370
85371         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
85372         * lib/strcase.h: New file, from GNU gettext-0.11.5.
85373         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
85374         * lib/strstr.h: New file, from GNU gettext-0.11.5.
85375         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
85376
85377 2002-11-04  Bruno Haible  <bruno@clisp.org>
85378
85379         * lib/localcharset.c (locale_charset): Don't return an empty string.
85380
85381 2002-11-04  Bruno Haible  <bruno@clisp.org>
85382
85383         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
85384         aliases.
85385
85386 2002-11-04  Bruno Haible  <bruno@clisp.org>
85387
85388         * lib/config.charset: Update for newest glibc. Add canonical names
85389         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
85390
85391 2002-11-04  Bruno Haible  <bruno@clisp.org>
85392
85393         * lib/config.charset: Add support for NetBSD.
85394
85395 2002-11-04  Bruno Haible  <bruno@clisp.org>
85396
85397         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
85398
85399 2002-11-01  Bruno Haible  <bruno@clisp.org>
85400
85401         * configure.in: Add AC_CONFIG_AUX_DIR call.
85402         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
85403         test/Makefile.
85404         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
85405
85406 2002-09-28  Karl Berry  <karl@gnu.org>
85407
85408         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
85409         installed automake until the next release, since changes have been
85410         made.
85411
85412 2002-09-25  Karl Berry  <karl@gnu.org>
85413
85414         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
85415         * lib/getopt*: copy from libc/posix.
85416         * lib/gettext.h: copy from gettext.
85417         * lib/.cppi-disable: add strdup.c, gettext.h.
85418
85419 2002-09-25  Karl Berry  <karl@gnu.org>
85420
85421         * config/srclist.txt: enable gettext.h check.
85422         * config/config.{guess,sub}: update from prep.
85423         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
85424                 from automake 1.6.3.
85425         See srclist*.
85426
85427 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
85428
85429         * regex.c (PATFETCH): Remove the translating fetch.
85430         (PATFETCH_RAW): Rename to PATFETCH.
85431         (set_image_of_range): New fun.
85432         (SET_RANGE_TABLE_WORK_AREA): Use it.
85433         (regex_compile): Don't translate the pattern chars so eagerly.
85434         Only do it when inserting an `exactn' bytecode or when handling
85435         a char-range.
85436         (mutually_exclusive_p): Avoid empty statement.
85437
85438 2002-07-06  Jim Meyering  <meyering@lucent.com>
85439
85440         * m4/README: Don't mention Makefile.am.in.
85441         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
85442
85443 2002-07-01  Jim Meyering  <meyering@lucent.com>
85444
85445         * lib/c-stack.c: Include sys/time.h.
85446         From Volker Borchert.
85447
85448 2002-06-26  Paul Eggert  <eggert@twinsun.com>
85449
85450         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
85451
85452 2002-06-26  Paul Eggert  <eggert@twinsun.com>
85453
85454         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
85455         New macro.  Use it uniformly instead of
85456         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
85457         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
85458         reported by Vin Shelton.
85459
85460 2002-06-22  Paul Eggert  <eggert@twinsun.com>
85461
85462         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
85463         Do not assume SA_SIGINFO behavior.
85464         Bug reported by Jim Meyering on NetBSD 1.5.2.
85465
85466 2002-06-22  Jim Meyering  <meyering@lucent.com>
85467
85468         * m4/c-stack.m4: New file, from diffutils-2.8.2.
85469         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
85470
85471         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
85472         now that configure.ac uses AC_GNU_SOURCE.
85473         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
85474         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
85475
85476         Update to latest tools.  Suggestions from Paul Eggert.
85477         * m4/stdbool.m4: New file, from diffutils-2.8.2.
85478         * m4/gnu-source.m4: Update from diffutils-2.8.2.
85479         * m4/fnmatch.m4: Likewise.
85480         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
85481         to AC_HEADER_STDBOOL
85482
85483 2002-06-22  Jim Meyering  <meyering@lucent.com>
85484
85485         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
85486         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
85487
85488 2002-06-22  Jim Meyering  <meyering@lucent.com>
85489
85490         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
85491
85492         * lib/exitfail.c, exitfail.h: Likewise.
85493         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
85494
85495         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
85496         of fnmatch.h.
85497         (EXTRA_DIST): Add fnmatch_loop.c.
85498         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
85499
85500         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
85501         * lib/fnmatch.c: Update from diffutils-2.8.2.
85502         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
85503         * lib/fnmatch.h: Remove file.
85504
85505 2002-06-21  Jim Meyering  <meyering@lucent.com>
85506
85507         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
85508         * m4/mbrtowc.m4: Likewise.
85509
85510         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
85511         * m4/mbswidth.m4: Reflect name change:
85512         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
85513         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
85514
85515         * m4/lib-link.m4: Update from gettext-0.11.2.
85516         * m4/gettext.m4: Likewise.
85517
85518         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
85519         From Alfred M. Szmidt.
85520
85521 2002-06-18  Paul Eggert  <eggert@twinsun.com>
85522
85523         * lib/file-type.h: Report an error if neither S_ISREG nor
85524         S_IFREG is defined, instead of using a test specific to glibc
85525         2.2.  This should be safe, since POSIX requires S_ISREG and
85526         Unix Version 7 had S_IFREG.  We don't need to check for
85527         <sys/types.h> since we don't use any symbols that it defines.
85528
85529 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
85530
85531         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
85532         $@-t, so that each temporary file name is unique and valid in the first
85533         8 characters, for operation under DOS.
85534
85535 2002-06-15  Paul Eggert  <eggert@twinsun.com>
85536
85537         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
85538
85539 2002-06-15  Jim Meyering  <meyering@lucent.com>
85540
85541         Work even with DJGPP 2.03, which lacks support for symlinks.
85542         From Richard Dawe.
85543         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
85544         is defined.
85545         * lib/lchown.c (S_ISLNK): Likewise.
85546
85547 2002-06-15  Jim Meyering  <meyering@lucent.com>
85548
85549         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
85550         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
85551         have been included before this file.
85552
85553 2002-06-14  Jim Meyering  <meyering@lucent.com>
85554
85555         * lib/file-type.h: Use the version from diffutils-2.8.2.
85556         * lib/file-type.c: Likewise.
85557
85558 2002-06-07  Jim Meyering  <meyering@lucent.com>
85559
85560         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
85561         They're needed at least for NetBSD 1.5.2.
85562         ($statxfs_includes): Include those same headers.
85563         ($statxfs_includes): Include sys/vfs.h if available.
85564         ($statxfs_includes): Likewise for sys/statvfs.h.
85565         Check for the following members in both structs statfs and statvfs:
85566         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
85567
85568 2002-06-01  Jim Meyering  <meyering@lucent.com>
85569
85570         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
85571         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
85572
85573 2002-05-28  Jim Meyering  <meyering@lucent.com>
85574
85575         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
85576         Reported by Volker Borchert.
85577
85578 2002-05-27  Jim Meyering  <meyering@lucent.com>
85579
85580         Fix a problem seen only on nonconforming systems whereby ls.c's
85581         use of localtime, and then of gettimeofday would cause trouble:
85582         the localtime call used to initialize rpl_gettimeofday's save
85583         mechanism would clobber ls's current local time information so
85584         that in any long listing the first file would always be listed
85585         with date 1970-01-01.  Analysis by Volker Borchert.
85586
85587         * lib/gettimeofday.c (localtime): Undefine.
85588         (rpl_localtime): New function.
85589
85590 2002-05-27  Jim Meyering  <meyering@lucent.com>
85591
85592         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
85593         localtime.
85594
85595         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
85596         use the replacement function; it wouldn't resolve at link time.
85597         Reported by Volker Borchert.
85598
85599 2002-05-22  Jim Meyering  <meyering@lucent.com>
85600
85601         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
85602         file-type.h.
85603         * lib/file-type.h: New file.
85604         * lib/file-type.c (file_type): New file/function.  Extracted from
85605         diffutils.
85606
85607 2002-04-30  Jim Meyering  <meyering@lucent.com>
85608
85609         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
85610
85611 2002-04-29  Paul Eggert  <eggert@twinsun.com>
85612
85613         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
85614
85615 2002-04-29  Paul Eggert  <eggert@twinsun.com>
85616
85617         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
85618         Do not check for alloca.h (no longer used) or stdbool.h (was never
85619         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
85620
85621 2002-04-29  Paul Eggert  <eggert@twinsun.com>
85622
85623         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
85624
85625 2002-04-29  Jim Meyering  <meyering@lucent.com>
85626
85627         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
85628         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
85629         Use AC_FUNC_STRNLEN here instead.
85630
85631         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
85632         With autoconf-2.53a, it's part of AC_PROG_CC.
85633
85634 2002-04-28  Paul Eggert  <eggert@twinsun.com>
85635
85636         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
85637         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
85638
85639 2002-04-28  Paul Eggert  <eggert@twinsun.com>
85640
85641         * lib/sig2str.h, lib/sig2str.c: New files.
85642         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
85643
85644 2002-04-28  Paul Eggert  <eggert@twinsun.com>
85645
85646         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
85647         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
85648         of 127, since 64 is the largest conceivable number for ancient
85649         nonstandard hosts.
85650         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
85651
85652 2002-04-28  Jim Meyering  <meyering@lucent.com>
85653
85654         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
85655
85656 2002-04-24  Jim Meyering  <meyering@lucent.com>
85657
85658         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
85659         (jm_PREREQ): Use it.
85660
85661         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
85662         mach/mach.h fcntl.h.
85663         Check for this function: setlocale.
85664
85665 2002-04-24  Jim Meyering  <meyering@lucent.com>
85666
85667         * lib/gettext.h: New file, from Gettext.
85668         * lib/Makefile.am (INCLUDES): Remove -I../intl.
85669         (libfetish_a_SOURCES): Add gettext.h.
85670
85671 2002-04-16  Jim Meyering  <meyering@lucent.com>
85672
85673         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
85674         ut_pid, ut_id, ut_exit.
85675
85676 2002-04-16  Jim Meyering  <meyering@lucent.com>
85677
85678         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
85679         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
85680         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
85681
85682 2002-04-12  Jim Meyering  <meyering@lucent.com>
85683
85684         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
85685         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
85686         existence of the getmntinfo function.  Needed for Darwin 5.3.
85687
85688         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
85689         This is necessary at least on Darwin 5.3.
85690
85691         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
85692         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
85693         strnlen.o in the library, and that makes some versions of ranlib
85694         object.
85695
85696 2002-04-12  Jim Meyering  <meyering@lucent.com>
85697
85698         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
85699
85700 2002-04-09  Jim Meyering  <meyering@lucent.com>
85701
85702         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
85703         to be more precise.  Rather than saying we're checking whether the
85704         function `works', say what we're testing.
85705         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
85706         Reported by Bruno Haible.
85707
85708 2002-03-10  Jim Meyering  <meyering@lucent.com>
85709
85710         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
85711         Suggestion from Santiago Vila.
85712
85713 2002-03-08  Jim Meyering  <meyering@lucent.com>
85714
85715         * lib/rename.c: Mention that this wrapper is needed also on
85716         mips-dec-ultrix4.4 systems.
85717
85718 2002-03-02  Jim Meyering  <meyering@lucent.com>
85719
85720         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
85721         not HAVE_CLOCK_SETTIME.
85722
85723 2002-02-27  Paul Eggert  <eggert@twinsun.com>
85724
85725         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
85726         Check for clock_settime.
85727
85728 2002-02-27  Paul Eggert  <eggert@twinsun.com>
85729
85730         * lib/nanosleep.h: Rename to....
85731         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
85732
85733         * lib/gettime.c: New file.
85734         * lib/settime.c: New file.
85735         * lib/stime.c: Remove.
85736
85737         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
85738         timespec.h.  Remove nanosleep.h.
85739
85740 2002-02-25  Paul Eggert  <eggert@twinsun.com>
85741
85742         * m4/acl.m4: New file.
85743         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
85744         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
85745
85746 2002-02-25  Paul Eggert  <eggert@twinsun.com>
85747
85748         * lib/acl.c, lib/acl.h: New files.
85749         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
85750
85751 2002-02-24  Jim Meyering  <meyering@lucent.com>
85752
85753         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
85754         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
85755         cause trouble.  Reported by Nelson Beebe.
85756
85757 2002-02-23  Paul Eggert  <eggert@twinsun.com>
85758
85759         * lib/path-concat.c (xpath_concat): Reorder code to pacify
85760         compilers that don't know that xalloc_die never returns.
85761
85762 2002-02-20  Jim Meyering  <meyering@lucent.com>
85763
85764         * lib/getdate.c: Regenerate using bison-1.33.
85765
85766 2002-02-17  Jim Meyering  <meyering@lucent.com>
85767
85768         * config/config.guess (main): Don't use `head -1'; it's no longer
85769         portable. Use `sed 1q' instead.
85770
85771 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
85772
85773         * m4/codeset.m4: Upgrade to gettext-0.11.
85774         * m4/gettext.m4: Upgrade to gettext-0.11.
85775         * m4/glibc21.m4: Upgrade to gettext-0.11.
85776         * m4/iconv.m4: Upgrade to gettext-0.11.
85777         * m4/isc-posix.m4: Upgrade to gettext-0.11.
85778         * m4/lcmessage.m4: Upgrade to gettext-0.11.
85779         * m4/lib-ld.m4: New file, from gettext-0.11.
85780         * m4/lib-link.m4: New file, from gettext-0.11.
85781         * m4/lib-prefix.m4: New file, from gettext-0.11.
85782         * m4/progtest.m4: Upgrade to gettext-0.11.
85783
85784 2002-02-15  Paul Eggert  <eggert@twinsun.com>
85785
85786         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
85787         (jm_PREREQ): Use it.
85788
85789 2002-02-15  Paul Eggert  <eggert@twinsun.com>
85790
85791         * lib/posixver.c, lib/posixver.h: New files.
85792         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
85793
85794 2002-02-02  Paul Eggert  <eggert@twinsun.com>
85795             Bruno Haible  <bruno@clisp.org>
85796
85797         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
85798         (fwrite_success_callback): New declaration.
85799         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
85800         print_unicode_char. Call failure callback instead of error.
85801         (fwrite_success_callback): New function.
85802         (exit_failure_callback): New function.
85803         (fallback_failure_callback): New function.
85804         (print_unicode_char): Call unicode_to_mb.
85805
85806 2002-01-26  Jim Meyering  <meyering@lucent.com>
85807
85808         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
85809         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
85810
85811 2002-01-26  Jim Meyering  <meyering@lucent.com>
85812
85813         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
85814
85815 2002-01-22  Paul Eggert  <eggert@twinsun.com>
85816
85817         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
85818
85819 2002-01-22  Jim Meyering  <meyering@lucent.com>
85820
85821         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
85822         Otherwise, some versions of automake would omit the rule that makes
85823         Makefile from Makefile.in.
85824
85825 2002-01-21  Paul Eggert  <eggert@twinsun.com>
85826
85827         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
85828         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
85829         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
85830         (memcoll): Set errno to zero if there is no error.
85831
85832         * lib/quotearg.c (quotearg_buffer_restyled):
85833         Fix bug with quoting buffers containing NUL when backslashing escapes.
85834         This bug was exposed by the other changes in this patch.
85835         (quotearg_n_options): New arg ARGSIZE.
85836         All callers changed.
85837         (quoting_options_from_style): New function.
85838         (quotearg_n_style): Use it.
85839         (quotearg_n_style_mem): New function.
85840
85841         * lib/quotearg.h (quotearg_n_style_mem): New function.
85842
85843 2002-01-19  Jim Meyering  <meyering@lucent.com>
85844
85845         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
85846         Remove useless quotes: DF_PROG="df".
85847         * m4/strnlen.m4: New file.
85848
85849 2002-01-16  Paul Eggert  <eggert@twinsun.com>
85850
85851         * lib/backupfile.c (ISDIGIT): Comment fix.
85852         * lib/getdate.y (ISDIGIT): Likewise.
85853         * lib/posixtm.c (ISDIGIT, year): Likewise.
85854         * lib/strverscmp.c (ISDIGIT): Likewise.
85855         * lib/userspec.c (ISDIGIT): Likewise.
85856
85857 2002-01-16  Jim Meyering  <meyering@lucent.com>
85858
85859         * lib/getdate.y: Add three semicolons, each just before a closing
85860         brace. Bison (as of version 1.31) no longer papers over that mistake.
85861
85862 2002-01-05  Jim Meyering  <meyering@lucent.com>
85863
85864         * lib/version-etc.c (version_etc_copyright): Update copyright year.
85865
85866 2001-12-19  Paul Eggert  <eggert@twinsun.com>
85867
85868         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
85869         not silently exit merely because the output buffer happens to
85870         have nothing pending.
85871
85872 2001-12-18  Paul Eggert  <eggert@twinsun.com>
85873
85874         See the big note in ../ChangeLog.
85875         * lib/human.c (suffixes): Prefer K to k for 1024.
85876         (generate_suffix_backwards): New function.
85877         (human_readable_inexact): Use it.
85878         * lib/xstrtol.c (__xstrtol): If there is no number but there
85879         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
85880         Accept 'K' as well as 'k'.
85881
85882 2001-12-15  Jim Meyering  <meyering@lucent.com>
85883
85884         * lib/regex.h (__restrict_arr): Update from libc.
85885
85886         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
85887         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
85888         (STREQ): Define.
85889
85890 2001-12-14  Jim Meyering  <meyering@lucent.com>
85891
85892         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
85893         Suggestion from Bruno Haible.
85894
85895 2001-12-10  Jim Meyering  <meyering@lucent.com>
85896
85897         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
85898         xrealloc, Instead, include "xalloc.h".
85899         (initbuffer): Don't cast xmalloc return value to char*.
85900         (readline): Reword comment.
85901         Don't cast xrealloc return value to char*
85902         Return NULL, not 0.
85903
85904 2001-12-09  Jim Meyering  <meyering@lucent.com>
85905
85906         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
85907         about `signed and unsigned type in conditional expression'.
85908         * lib/posixtm.c (posix_time_parse): Likewise.
85909
85910         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
85911
85912         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
85913         to avoid a pedantic warning.
85914
85915         * lib/getstr.c: Don't include assert.h.
85916         (getstr): Remove warning-evoking assertions.
85917         Return -1 if offset parameter is out of bounds.
85918         Change the type of a local from int to size_t.
85919
85920         * lib/strftime.c (my_strftime_localtime_r): Include this function
85921         definition in the `#if ! HAVE_TM_GMTOFF' block.
85922
85923         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
85924         Include xalloc.h instead.
85925
85926 2001-12-02  Jim Meyering  <meyering@lucent.com>
85927
85928         * lib/tempname.c: Don't declare getenv, thus reverting the change of
85929         2001-11-18.  It's no longer necessary, now that stdlib.h is always
85930         included.
85931
85932         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
85933         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
85934
85935 2001-11-30  Akim Demaille  <akim@epita.fr>
85936
85937         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
85938         before being defined.
85939
85940 2001-11-27  Paul Eggert  <eggert@twinsun.com>
85941
85942         * lib/quotearg.h (quotearg_n, quotearg_n_style):
85943         First arg is int, not unsigned.
85944         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
85945         (SIZE_MAX, UINT_MAX): New macros.
85946         (quotearg_n_options): Abort if N is negative.
85947         Avoid overflow check on hosts where size_t is 64 bits and int
85948         is 32 bits, as overflow is impossible there.
85949         Fix off-by-one typo that caused unnecessary reallocation.
85950
85951 2001-11-27  Jim Meyering  <meyering@lucent.com>
85952
85953         * lib/tempname.c: Merge with version from libc.
85954         * lib/regex.c: Likewise.
85955
85956         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
85957         systems for which STDC_HEADERS is 0, it was not included, resulting in
85958         a warning about an integer-to-pointer conversion problem with getenv.
85959         Reported by Volker Borchert.
85960
85961 2001-11-26  Jim Meyering  <meyering@lucent.com>
85962
85963         * lib/gtod.h: Remove file.
85964         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
85965         * lib/gettimeofday.c: Don't include gtod.h.
85966         (GTOD_init): Remove function.
85967         (rpl_gettimeofday): Do its job here instead, rather than aborting.
85968         Suggestion from Volker Borchert.
85969
85970 2001-11-23  Jim Meyering  <meyering@lucent.com>
85971
85972         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
85973         it.
85974         * lib/hash.c (struct hash_table): Define it here instead.
85975
85976 2001-11-22  Jim Meyering  <meyering@lucent.com>
85977
85978         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
85979
85980 2001-11-20  Jim Meyering  <meyering@lucent.com>
85981
85982         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
85983         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
85984
85985 2001-11-19  Jim Meyering  <meyering@lucent.com>
85986
85987         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
85988         directory.  Use "conftestXXXXXX" as the template.
85989         Suggestion from Paul Eggert.
85990
85991         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
85992         immediately, so the test doesn't mistakenly hit the max-open-files
85993         limit.
85994
85995 2001-11-18  Paul Eggert  <eggert@twinsun.com>
85996
85997         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
85998         (TEMPORARIES): New macro.
85999         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
86000         removes an artificial limitation (e.g. HP-UX 10.20, where
86001         TMP_MAX is 17576).
86002
86003 2001-11-18  Jim Meyering  <meyering@lucent.com>
86004
86005         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
86006
86007 2001-11-18  Jim Meyering  <meyering@lucent.com>
86008
86009         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
86010         on SunOS 4.
86011
86012         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
86013         files will be created before anything else.
86014
86015 2001-11-17  Paul Eggert  <eggert@twinsun.com>
86016
86017         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
86018         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
86019
86020 2001-11-17  Jim Meyering  <meyering@lucent.com>
86021
86022         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
86023         Prompted by a report from Bob Proulx.
86024
86025         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
86026         Instead, require UTILS_FUNC_MKSTEMP.
86027
86028 2001-11-17  Jim Meyering  <meyering@lucent.com>
86029
86030         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
86031         Now, that's done as part of AC_FUNC_STRTOD.
86032
86033 2001-11-17  Jim Meyering  <meyering@lucent.com>
86034
86035         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
86036         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
86037         rather than group writable.  Patch by Juan F. Codagnone.
86038
86039         * lib/readtokens.c: Remove explicit declarations of xmalloc and
86040         xrealloc, Instead, include "xalloc.h".
86041
86042         * lib/mountlist.c: Include unlocked-io.h after all system headers.
86043         Remove explicit declarations of xmalloc, xrealloc,
86044         and xstrdup.  Instead, include "xalloc.h".
86045
86046         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
86047         unlocked-io.h.
86048         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
86049         Likewise.
86050         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
86051
86052         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
86053         Reported by Padraig Brady.
86054
86055         * lib/mkstemp.c: #undef mkstemp.
86056         Include config.h.
86057         (rpl_mkstemp): Rename from mkstemp.
86058         Protoize.
86059
86060 2001-11-16  Jim Meyering  <meyering@lucent.com>
86061
86062         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
86063         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
86064         determine the amount of total physical memory, use pstat_getstatic.
86065         HPUX-11 doesn't define _SC_PHYS_PAGES.
86066         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
86067         If sysconf couldn't be used to determine the amount of available
86068         physical memory, use both pstat_getstatic and pstat_getdynamic.
86069         Based on a patch from Bob Proulx.
86070
86071 2001-11-10  Jim Meyering  <meyering@lucent.com>
86072
86073         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
86074         (jm_PREREQ): Use it.
86075
86076 2001-11-09  Jim Meyering  <meyering@lucent.com>
86077
86078         * m4/jm-macros.m4: Require autoconf-2.52f.
86079         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
86080         Use these AC_-prefixed names, not the AM_-prefixed ones.
86081
86082         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
86083
86084 2001-11-05  Jim Meyering  <meyering@lucent.com>
86085
86086         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
86087
86088 2001-11-04  Jim Meyering  <meyering@lucent.com>
86089
86090         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
86091         $DEFS.
86092
86093 2001-11-03  Jim Meyering  <meyering@lucent.com>
86094
86095         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
86096         of AC_DEFUN.
86097
86098         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
86099         know the name of the variable in the macro definition.
86100
86101 2001-11-03  Jim Meyering  <meyering@lucent.com>
86102
86103         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
86104         in argmatch_to_argument call.
86105
86106         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
86107         argument.
86108
86109         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
86110         e.g., a fault due to an attempt to free a NULL pointer.
86111
86112 2001-11-01  Jim Meyering  <meyering@lucent.com>
86113
86114         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
86115         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
86116
86117 2001-11-01  Jim Meyering  <meyering@lucent.com>
86118
86119         * lib/dirfd.c, lib/dirfd.h: New files.
86120         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
86121
86122         * lib/hash.c (hash_print) [TESTING]: Clean up.
86123
86124 2001-10-22  Paul Eggert  <eggert@twinsun.com>
86125
86126         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
86127         to avoid a warning if -Wall.
86128
86129 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
86130
86131         * README: New file
86132         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
86133         (per RMS's instructions, this is now the canonical source)
86134         * lgpl/, gpl/: New directories.
86135
86136 2001-10-21  Paul Eggert  <eggert@twinsun.com>
86137
86138         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
86139
86140 2001-10-21  Jim Meyering  <meyering@lucent.com>
86141
86142         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
86143         this code would end up calling gettext even in packages built
86144         with --disable-nls.
86145         * lib/getopt.c (_): Likewise.
86146         * lib/regex.c (_): Likewise.
86147
86148 2001-10-20  Paul Eggert  <eggert@twinsun.com>
86149
86150         * m4/error.m4 (jm_PREREQ_ERROR):
86151         Do not invoke AC_CHECK_FUNCS with strerror_r, as
86152         AC_FUNC_STRERROR_R does that.
86153         Check for strerror declaration.
86154
86155         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
86156         are supposed to have them these days.
86157         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
86158         Merge changes from latest Autoconf CVS.
86159         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
86160         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
86161         POSIX decided to standardize on the int flavor of strerror_r.
86162
86163 2001-10-20  Paul Eggert  <eggert@twinsun.com>
86164
86165         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
86166         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
86167         Use strerror_r that is only a macro, even if it is not a function.
86168         (strerror): Check for HAVE_DECL_STRERROR before declaring.
86169         (private_strerror): Use prototypes, not old-style function definition.
86170         (print_errno_message): New function.
86171         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
86172         char*-flavored one.
86173         (error_tail, error, error_at_line): Use it.
86174
86175 2001-10-11  Jim Meyering  <meyering@lucent.com>
86176
86177         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
86178         and quote_n (1, ... to avoid clobbering a buffer.
86179
86180 2001-10-05  Jim Meyering  <meyering@lucent.com>
86181
86182         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
86183         hash-pjw.h.
86184         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
86185         * lib/hash-pjw.h: New file.
86186
86187 2001-09-30  Jim Meyering  <meyering@lucent.com>
86188
86189         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
86190         `struct fsstat' has the `f_fstypename' member.
86191         Use that to define FS_TYPE, which is now used to make
86192         the getfsstat link test tighter.
86193
86194 2001-09-30  Jim Meyering  <meyering@lucent.com>
86195
86196         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
86197         Include <sys/ucred.h>, for Apple Darwin.
86198         Include sys/mount.h and sys/fs_types.h only if available.
86199         (FS_TYPE): Define.
86200         (read_filesystem_list): Use FS_TYPE.
86201
86202 2001-09-29  Paul Eggert  <eggert@twinsun.com>
86203
86204         * lib/exclude.c (excluded_filename): 0 -> false, since it's
86205         a boolean context.
86206
86207 2001-09-29  Jim Meyering  <meyering@lucent.com>
86208
86209         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
86210         [one-argument getmntent function]): Include stdio.h before mntent.h.
86211         SunOS 4.1.x needs it for the declaration of `FILE'.
86212         Patch by Volker Borchert.
86213
86214         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
86215         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
86216         sys/fs_types.h, and make the link-test for getfsstat guard #include
86217         directives with appropriate #if HAVE_*_H tests so that we can
86218         detect getfsstat on Apple Darwin1.3.7 systems.
86219         Reported by Nelson Beebe.
86220         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
86221
86222 2001-09-28  Paul Eggert  <eggert@twinsun.com>
86223
86224         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
86225         #defines strtoimax.  Also treat the other strto* functions
86226         like strtoimax.
86227
86228         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
86229         Check for strtoul and strtoumax,
86230         as those declarations are made even in the signed case.
86231         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
86232         Likewise, for strtol and strtoimax.
86233
86234 2001-09-28  Paul Eggert  <eggert@twinsun.com>
86235
86236         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
86237         #defines strtoimax.  Also treat the other strto* functions
86238         like strtoimax.
86239
86240         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
86241         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
86242         (strtoimax, strtoumax): Do not declare if already defined as a macro.
86243
86244 2001-09-26  Jim Meyering  <meyering@lucent.com>
86245
86246         Most macros in unlocked-io.h had the wrong number of arguments.
86247         * lib/gen-uio: New script.
86248         (USE_UNLOCKED_IO): Define to 1 if not already defined.
86249         * lib/unlocked-io.hin: Remove file.
86250         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
86251         rather than trying to embed it here.
86252         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
86253         Reported by Padraig Brady.
86254
86255 2001-09-25  Volker Borchert  <bt@teknon.de>
86256
86257         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
86258         `result'.
86259
86260 2001-09-24  Jim Meyering  <meyering@lucent.com>
86261
86262         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
86263
86264 2001-09-23  Jim Meyering  <meyering@lucent.com>
86265
86266         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
86267         instead of the mere test for existence of mntent.h.  The latter
86268         would get a false-positive on AIX 3.4 systems.
86269         In the outer getmntent if-block, don't die if neither of the getmntent
86270         tests succeeds.  Instead, just fall through and continue with the
86271         remaining tests.
86272
86273 2001-09-23  Jim Meyering  <meyering@lucent.com>
86274
86275         * lib/mountlist.c: Remove useless parentheses in #if directives.
86276         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
86277         the deprecated MOUNTED symbol is no longer defined in mntent.h.
86278
86279 2001-09-22  Jim Meyering  <meyering@lucent.com>
86280
86281         * m4/gettext.m4: New file.  From gettext.
86282         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
86283         * m4/progtest.m4: Likewise
86284         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
86285         * m4/glibc21.m4: Likewise.
86286
86287         * m4/libintl.m4: Remove.  No longer used.
86288
86289 2001-09-22  Jim Meyering  <meyering@lucent.com>
86290
86291         * lib/localcharset.c: Update from latest gettext.
86292         * lib/config.charset: Likewise.
86293
86294 2001-09-20  Jim Meyering  <meyering@lucent.com>
86295
86296         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
86297         strtoimax.
86298         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
86299         strtoumax.
86300
86301 2001-09-20  Jim Meyering  <meyering@lucent.com>
86302
86303         * lib/xstrtol.c (strtoimax): Guard declaration with
86304         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
86305         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
86306         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
86307         (strtoumax): Likewise, for completeness (it wasn't necessary).
86308
86309 2001-09-17  Paul Eggert  <eggert@twinsun.com>
86310
86311         * lib/strtoimax.c (HAVE_LONG_LONG):
86312         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
86313         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
86314         to work around bug in IBM C compiler.
86315
86316 2001-09-17  Jim Meyering  <meyering@lucent.com>
86317
86318         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
86319         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
86320         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
86321         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
86322         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
86323         whenever the right hand side need not be expanded by the shell.
86324
86325 2001-09-16  Paul Eggert  <eggert@twinsun.com>
86326
86327         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
86328         library.  It's not correct, as some older glibcs are buggy.
86329         fnmatch wasn't fixed until glibc 2.2.
86330
86331         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
86332         special shell magic here.
86333
86334 2001-09-16  Jim Meyering  <meyering@lucent.com>
86335
86336         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
86337         * m4/jm-macros.m4: Require it.
86338
86339 2001-09-16  Jim Meyering  <meyering@lucent.com>
86340
86341         * lib/mkdir.c: New file.
86342
86343 2001-09-15  Jim Meyering  <meyering@lucent.com>
86344
86345         * m4/jm-macros.m4: Check for help2man.
86346
86347 2001-09-11  Jim Meyering  <meyering@lucent.com>
86348
86349         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
86350         The body, by Paul Eggert, was moved here from configure.in.
86351         * m4/jm-macros.m4: Require UTILS_HOST_OS.
86352
86353 2001-09-04  Paul Eggert  <eggert@twinsun.com>
86354
86355         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
86356         (jm_PREREQ): Use it.
86357
86358 2001-09-04  Paul Eggert  <eggert@twinsun.com>
86359
86360         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
86361         Use ssize_t, not int, to store result of readlink.
86362         Check for ssize_t overflow as well as size_t overflow,
86363         as POSIX says the result of readlink is implementation-defined
86364         when ssize_t overflows.
86365         Remove unnecessary cast to char*.
86366         Use free+malloc instead of realloc, as the storage doesn't need
86367         to be preserved and it's clearer and can be more efficient that way.
86368         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
86369         * lib/xreadlink.h (xreadlink): Update prototype.
86370
86371 2001-09-04  Paul Eggert  <eggert@twinsun.com>
86372
86373         * lib/xgetcwd.c: Revert some of the previous change; intead,
86374         fix the HAVE_GETCWD_NULL code to behave more like the
86375         !HAVE_GETCWD_NULL code used to.
86376
86377         Include "xalloc.h".
86378         (xgetcwd): Do not return NULL when memory is exhausted; instead,
86379         invoke xalloc_die.
86380
86381 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86382
86383         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
86384         sys/param.h, as pathmax.h includes them.
86385
86386 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86387
86388         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
86389         (jm_PREREQ_XGETCWD): New macro.
86390
86391         * m4/getcwd.m4: New file.
86392
86393 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86394
86395         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
86396         like the HAVE_GETCWD_NULL code.
86397         Include pathmax.h if not HAVE_GETCWD.
86398         Do not include xalloc.h.
86399         (INITIAL_BUFFER_SIZE): New symbol.
86400         Do not use xmalloc / xrealloc, since the caller is responsible for
86401         handling errors.  Preserve errno around `free' during failure.
86402         Do not overrun buffer when using getwd.
86403
86404 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86405
86406         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
86407         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
86408         getcwd (NULL, 0).
86409
86410 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86411
86412         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
86413         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
86414         spotted by Jim Meyering.
86415
86416 2001-09-03  Jim Meyering  <meyering@lucent.com>
86417
86418         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
86419         failure.
86420
86421 2001-09-02  Jim Meyering  <meyering@lucent.com>
86422
86423         * lib/error.c: Update from GNU libc.
86424
86425 2001-09-01  Jim Meyering  <meyering@lucent.com>
86426
86427         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
86428         Used by df.
86429
86430 2001-09-01  Jim Meyering  <meyering@lucent.com>
86431
86432         * lib/xreadlink.c: New file.
86433         * lib/xreadlink.h: New file.
86434         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
86435         xreadlink.h.
86436
86437         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
86438         doesn't conflict with sparc Solaris 7's definition in
86439         /usr/include/sys/int_types.h.
86440
86441         * lib/exclude.c: Use `""', not `<>' to #include non-system header
86442         files.
86443         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
86444         and strncasecmp as r-values.  Unixware didn't have declarations.
86445
86446 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86447
86448         * lib/xstrtol.h: Add copyright notice.
86449         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
86450         LONGINT_INVALID_SUFFIX_CHAR.
86451
86452 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86453
86454         * lib/xstrtol.c (strtoimax): New decl.
86455
86456 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86457
86458         * lib/xgetcwd.c: Don't include pathmax.h.
86459         Include stdlib.h and unistd.h if available.
86460         Include xalloc.h.
86461         (xmalloc, xstrdup, free): Remove decls.
86462         (xgetcwd): Don't assume sizes fit in unsigned.
86463         Check for overflow when computing sizes.
86464         Simplify reallocation code.
86465
86466 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86467
86468         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
86469         a directory's st_size can have an arbitrary value, so the old
86470         usage could waste an arbitrary amount of memory.  All uses
86471         changed.
86472         * lib/savedir.h: Update prototype.
86473
86474 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86475
86476         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
86477
86478         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
86479         old strtoimax.c.
86480
86481         Also, make the following further changes to make this file's
86482         configuration more similar to that of strtol.c:
86483         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
86484         (strtoumax, uintmax_t, strtoull, strtol): Remove.
86485         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
86486         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
86487         changed to signed values.
86488
86489         And make the following changes as well:
86490         Fix copyright notice, as 1999 was missing.
86491         (verify): New macro.
86492         (strtoimax): Check sizes at compile-time, not run-time.
86493         Prefer strtol to strtoll if both work.
86494         (main): Remove; it was not that useful and was a pain to maintain.
86495
86496         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
86497
86498 2001-08-31  Jim Meyering  <meyering@lucent.com>
86499
86500         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
86501         Use an initial, malloc'd, buffer of length 128 rather than
86502         a statically allocated one of length 1024.
86503
86504 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86505
86506         Simplify code, partly by assuming autoconf 2.52 semantics.
86507
86508         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
86509
86510         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
86511         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
86512         All uses removed.
86513         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
86514         Move AC_REQUIRE to next-to-top level, to avoid confusion.
86515         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
86516         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
86517         jm_AC_HEADER_INTTYPES_H.
86518         * m4/jm-macros.m4 (jm_MACROS): Likewise.
86519
86520         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
86521
86522         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
86523         Quote first arg of AC_DEFUN.
86524         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
86525         since they are needed to parse the include file even if we need
86526         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
86527         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
86528         but with opposite signedness.
86529
86530 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86531
86532         Merge 'exclude' changes from tar 1.13.22.
86533         This fixes one or two unlikely storage allocation overflow bugs,
86534         but doesn't change user-visible behavior otherwise.
86535
86536 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86537
86538         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
86539         (jm_PREREQ_EXCLUDE): New macro.
86540
86541 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86542
86543         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
86544         tm to be declared.
86545
86546 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86547
86548         * lib/hash.c: Remove '2001' from copyright notice.
86549
86550 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86551
86552         * lib/full-write.h: New file.
86553         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
86554         * lib/full-write.c: Correct credits, as cccp.c no longer
86555         exists and anyway it was so heavily changed from the old cccp
86556         code as to be unrecognizable.  Include full-write.h.
86557         (full_write): Return size_t, with short writes meaning failure.
86558         All callers changed.  This fixes a bug with large buffers
86559         on 64-bit hosts.
86560         * lib/utime.c: Include full-write.h.
86561
86562 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86563
86564         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
86565         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
86566         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
86567         Include if available.
86568         (<xalloc.h>): Include
86569         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
86570         (verify): New macro.  Use it to verify that EXCLUDE macros do not
86571         collide with FNM macros.
86572         (struct patopts): New struct.
86573         (struct exclude): Use it, as exclude patterns now come with options.
86574         (new_exclude): Support above changes.
86575         (new_exclude, add_exclude_file):
86576         Initial size must now be a power of two to simplify overflow checking.
86577         (free_exclude, fnmatch_no_wildcards): New function.
86578         (excluded_filename): No longer requires options arg, as the options
86579         are determined by add_exclude.  Now returns bool, not int.
86580         (excluded_filename, add_exclude):
86581         Add support for the fancy new exclusion options.
86582         (add_exclude, add_exclude_file): Now takes int options arg.
86583         Check for arithmetic overflow when computing sizes.
86584         (add_exclude_file): xrealloc might modify errno, so don't
86585         realloc until after errno might be used.
86586
86587         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
86588         New macros.
86589         (free_exclude): New decl.
86590         (add_exclude, add_exclude_file): Now takes int options arg.
86591         (excluded_filename): No longer requires options arg, as the options
86592         are determined by add_exclude.  Now returns bool, not int.
86593
86594 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86595
86596         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
86597
86598 2001-08-27  Jim Meyering  <meyering@lucent.com>
86599
86600         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
86601
86602         * lib/version-etc.c (N_): Remove definition.
86603         Revert most of last change.
86604         Instead, simply don't mark the `Copyright...' string for translation.
86605         Based on advice from Paul Eggert.
86606
86607         * lib/strtoxmax.c: Tweak comment.
86608
86609 2001-08-26  Jim Meyering  <meyering@lucent.com>
86610
86611         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
86612
86613         * m4/xstrtoimax.m4: New file.
86614         * m4/xstrtoumax.m4: Add comments explaining why we
86615         AC_REPLACE_FUNCS(strtol).
86616
86617 2001-08-26  Jim Meyering  <meyering@lucent.com>
86618
86619         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
86620         of copyright with `%s' so translators don't get an untranslated
86621         message in 2002.
86622         (COPYRIGHT_YEAR): Define.
86623         (version_etc): Use fprintf rather than fputs.
86624         Suggestion from Ulrich Drepper.
86625
86626         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
86627
86628         * lib/strtoll.c: New file, from GNU libc.
86629         * lib/xstrtoimax.c: New file.
86630
86631         * lib/xstrtol.h: Add xstrtoimax.
86632         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
86633         * lib/strtoimax.c: New file.  Likewise, but first define
86634         STRTOUXMAX_SIGNED.
86635
86636         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
86637         ...
86638         * lib/strtoxmax.c: ... then renamed to this.
86639
86640 2001-08-18  Paul Eggert  <eggert@twinsun.com>
86641
86642         * m4/inttypes.m4: Add AC_PREREQ(2.13).
86643         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
86644         (jm_AC_TYPE_INTMAX_T): New macro.
86645         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
86646
86647         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
86648
86649         * m4/longlong.m4: Renamed from ulonglong.m4.
86650         * m4/inttypes.m4: Renamed from inttypes_h.m4.
86651         * m4/uintmax_t.m4: Removed.
86652
86653 2001-08-13  Paul Eggert  <eggert@twinsun.com>
86654
86655         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
86656         Port to Solaris 8, where 'sed' requires a space after the 'r'
86657         command, and where sh dislikes "$/".  Clean up the spacing a bit.
86658         Redirect output to $tmp just once.
86659
86660 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
86661
86662         * lib/addext.c (<errno.h>): Include.
86663         (errno): Declare if not defined.
86664         (addext): Work correctly when pathconf returns -1 and leaves
86665         errno alone because there is no limit.  Also, work even if
86666         pathconf returns a value greater than SIZE_MAX.
86667
86668 2001-08-12  Jim Meyering  <meyering@lucent.com>
86669
86670         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
86671         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
86672         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
86673         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
86674         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
86675         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
86676         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
86677         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
86678         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
86679         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
86680         utime.m4, utimes.m4, xstrtoumax.m4:
86681         Quote the first argument in each use of AC_DEFUN.
86682
86683 2001-08-12  Jim Meyering  <meyering@lucent.com>
86684
86685         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
86686         Simply `return getcwd (NULL, 0);'.
86687         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
86688         Use 1300 as initial value for length, not PATH_MAX.
86689
86690         * lib/pathmax.h: Clean up cpp syntax.
86691
86692 2001-08-12  Jim Meyering  <meyering@lucent.com>
86693
86694         * lib/gettimeofday.c: New file.
86695         * lib/gtod.h: New file.
86696         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
86697
86698 2001-08-05  Jim Meyering  <meyering@lucent.com>
86699
86700         * m4/jm-macros.m4: Require autoconf-2.52.
86701
86702 2001-08-04  Jim Meyering  <meyering@lucent.com>
86703
86704         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
86705         stmt, to get in sync with glibc.
86706
86707 2001-08-03  Paul Eggert  <eggert@twinsun.com>
86708
86709         The following changes are from gettext 0.10.39 as maintained by
86710         Bruno Haible.
86711
86712         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
86713         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
86714         with inverted sense.  All uses changed.
86715
86716         * lib/mbswidth.c: Don't include <limits.h>.
86717         Include <stdlib.h> and <string.h> unconditionally.
86718         (iswcntrl, mbsinit, ISCNTRL): New macros.
86719         (mbsnwidth): Use K&R style function declarations.
86720         Don't bother checking for MB_LEN_MAX == 1, since the compiler
86721         can optimize it when MB_CUR_MAX == 1.
86722         The width of control characters is zero, not 1.
86723
86724 2001-08-03  Paul Eggert  <eggert@twinsun.com>
86725
86726         The following changes are from gettext 0.10.39 as maintained by
86727         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
86728
86729         * m4/codeset.m4: Upgrade to serial AM1.
86730         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
86731         all uses changed.  Quote first arg of AC_DEFUN.
86732         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
86733
86734         * m4/iconv.m4: Upgrade to serial AM2.
86735         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
86736         Add --with-libconv-prefix.
86737         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
86738         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
86739         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
86740         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
86741         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
86742
86743         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
86744         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
86745         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
86746         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
86747         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
86748         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
86749         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
86750         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
86751         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
86752
86753         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
86754         string.h any more.
86755
86756         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
86757         not the default value.
86758
86759         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
86760         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
86761         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
86762         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
86763         Also check for iswcntrl, used for wcwidth fallback.
86764         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
86765         to Autoconf 2.13.
86766
86767 2001-08-03  Jim Meyering  <meyering@lucent.com>
86768
86769         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
86770         as it was in the original.  Reported by Paul Eggert.
86771
86772 2001-07-16  Jim Meyering  <meyering@lucent.com>
86773
86774         * m4/gettimeofday.m4: New file.
86775         Prompted by a report from Bernhard Baehr.
86776
86777 2001-07-15  Jim Meyering  <meyering@lucent.com>
86778
86779         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
86780         stuff. Now it's in ../Makefile.cfg.
86781
86782 2001-07-15  Jim Meyering  <meyering@lucent.com>
86783
86784         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
86785         (BUILT_SOURCES): Add unlocked-io.h.
86786         (io_functions): Define.
86787         (unlocked-io.h): New rule.
86788         (DISTCLEANFILES): Add unlocked-io.h.
86789         (all-local): Depend on unlocked-io.h, to ensure it is created.
86790
86791         * lib/unlocked-io.hin: New file
86792
86793         * lib/regex.c: Update from glibc.
86794
86795 2001-07-05  Jim Meyering  <meyering@lucent.com>
86796
86797         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
86798         recommendation.
86799         (libfetish_a_SOURCES): Put all .h files here instead.
86800         Remove a thus-exposed (better checks in automake) duplicate and
86801         two unnecessary .h files.
86802
86803 2001-07-04  Jim Meyering  <meyering@lucent.com>
86804
86805         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
86806         that generates jm-glibc-io.m4 so that it doesn't trigger any make
86807         distcheck failure.
86808
86809 2001-07-02  Jim Meyering  <meyering@lucent.com>
86810
86811         The following changes were prompted by suggestions from Bruno Haible.
86812
86813         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
86814         is now generated.
86815         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
86816         definition of EXTRA_DIST.
86817         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
86818         ensure that the generated file is created/updated whenever the list
86819         of $(unlocked_functions) is changed.
86820         (jm-glibc-io.m4): New rule.
86821         (unlocked-io.h): New rule -- currently unused.
86822
86823 2001-06-24  Jim Meyering  <meyering@lucent.com>
86824
86825         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
86826         unmatched right bracket, rather than kludging it with an extra,
86827         falsely-matching quote in a comment.  Patch by Akim Demaille.
86828
86829 2001-06-11  Jim Meyering  <meyering@lucent.com>
86830
86831         * lib/regex.c: Update from GNU libc.
86832
86833 2001-05-27  Jim Meyering  <meyering@lucent.com>
86834
86835         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
86836         Check for ut_type in struct utmp.
86837
86838 2001-05-27  Jim Meyering  <meyering@lucent.com>
86839
86840         * lib/readutmp.h (UT_TYPE): Define.
86841
86842 2001-05-24  Jim Meyering  <meyering@lucent.com>
86843
86844         * lib/argmatch.c: Include "quote.h".
86845         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
86846         quote function.  Reported by Göran Uddeborg.
86847
86848 2001-05-22  Jim Meyering  <meyering@lucent.com>
86849
86850         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
86851         now that we use the package-supplied version unconditionally.
86852         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
86853
86854 2001-05-21  Jim Meyering  <meyering@lucent.com>
86855
86856         * m4/regex.m4: Change a couple backticks to single quotes to avoid
86857         shell syntax errors.
86858
86859 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
86860
86861         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
86862
86863 2001-05-20  Paul Eggert  <eggert@twinsun.com>
86864
86865         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
86866         Don't bother to check library strftime, since
86867         we'll be using our own my_strftime function anyway.
86868         Define my_strftime instead of strftime.
86869
86870 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
86871
86872         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
86873         which is not yet declared.
86874
86875 2001-05-15  Jim Meyering  <meyering@lucent.com>
86876
86877         * m4/regex.m4: Use proper quoting so brackets appear in the test
86878         program.
86879         Reported by, and with help from, Bruno Haible.
86880
86881 2001-05-13  Jim Meyering  <meyering@lucent.com>
86882
86883         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
86884         undefined.
86885
86886 2001-05-11  Paul Eggert  <eggert@twinsun.com>
86887
86888         dirname code cleanup.  base_name now behaves more compatibly
86889         with POSIX basename when given file names that have trailing
86890         slashes, and similarly for dir_name.  Add new primitives
86891         base_len and dir_len.  Put the directory-name-related decls
86892         into dirname.h.
86893
86894         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
86895         * lib/backupfile.c (base_name): Likewise.
86896         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
86897         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
86898         * lib/makepath.c (strip_trailing_slashes): Likewise.
86899         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
86900         ISSLASH): Likewise.
86901         * lib/rename.c (strip_trailing_slashes): Likewise.
86902         * lib/same.c (base_name): Likewise.
86903         * lib/stripslash.c (ISSLASH): Likewise.
86904
86905         * lib/addext.c: Include <dirname.h> after size_t is defined.
86906         * lib/backupfile.c: Likewise.
86907
86908         * lib/addext.c (addext): Use base_len to trim redundant
86909         trailing slashes instead of doing it ourselves.
86910         But do not trim the last slash if it is not redundant.
86911
86912         * lib/backupfile.c (find_backup_file_name,
86913         max_backup_version): Use base_len instead of rolling it ourselves.
86914         Handle the case of "" and (on DOS) "C:" correctly.
86915
86916         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
86917         needed. Include <string.h>, <dirname.h>.
86918         (base_name): Allow file names ending in slashes, other than names
86919         that are all slashes.  In this case, return the basename followed
86920         by the slashes.  This is more general, and can be used in places
86921         where the original base_name purposely had an assertion failure.
86922         (base_len): New function.
86923
86924         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
86925         Do not include <assert.h>; no longer needed.
86926         Include xalloc.h.
86927         (memrchr): Remove decl.
86928         (dir_name_r): Remove.
86929         (dir_len): Renamed from dirlen.  All callers changed.
86930         Rewrite in terms of base_name, for simplicity and consistency.
86931         (dir_name): Never return NULL.  All callers changed.
86932         Do not include <stdlib.h> in test program; no longer needed.
86933         return 0; is fine for test program.
86934
86935         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
86936         New macros.
86937         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
86938
86939         * lib/path-concat.c (path_concat): Use base_len to compute
86940         base length, not strlen; this means we cannot rely on memcpy
86941         to null-terminate.
86942
86943         * lib/same.c (STREQ): Remove.
86944         (same_name): Handle the case where the basename ends in trailing '/'.
86945
86946         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
86947         a slash was stripped.  Do not strip the last slash after a
86948         file system prefix.
86949
86950 2001-05-11  Paul Eggert  <eggert@twinsun.com>
86951
86952         * lib/Makefile.am (libfetish_a_SOURCES):
86953         Add strftime.c, since we now compile it on all hosts.
86954
86955         * lib/strftime.c (my_strftime):
86956         Define to nstrftime if emacs, but only if my_strftime is not defined.
86957         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
86958         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
86959         Add one more extra argument: a nanoseconds value.
86960         All uses changed.
86961         (ns): New macro.
86962         (my_strftime function): Add %N format.
86963         (emacs_strftimeu): Renamed from emacs_strftime,
86964         with extra ut argument.
86965
86966 2001-05-09  Paul Eggert  <eggert@twinsun.com>
86967
86968         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
86969
86970 2001-04-21  Jim Meyering  <meyering@lucent.com>
86971
86972         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
86973         doesn't interfere.
86974
86975 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
86976
86977         * m4/ftruncate.m4: Check for chsize.
86978         Link with ftruncate.o unconditionally if ftruncate is missing.
86979         This was required when cross-compiling to i586-mingw32msvc.
86980
86981 2001-04-08  Jim Meyering  <meyering@lucent.com>
86982
86983         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
86984         recomputed; that's necessary when the offset spans a DST transition.
86985         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
86986
86987 2001-04-02  Jim Meyering  <meyering@lucent.com>
86988
86989         * lib/regex.h, regex.c: Update from GNU libc.
86990
86991 2001-03-24  Jim Meyering  <meyering@lucent.com>
86992
86993         * m4/jm-macros.m4: Require autoconf-2.49d.
86994
86995 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
86996
86997         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
86998
86999 2001-03-19  Paul Eggert  <eggert@twinsun.com>
87000
87001         * lib/version-etc.c (version_etc_copyright): Update to 2001.
87002
87003 2001-03-17  Jim Meyering  <meyering@lucent.com>
87004
87005         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
87006         now that the version in autoconf is equivalent.
87007         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
87008
87009         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
87010         Suggestion from Akim Demaille.
87011
87012         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
87013         (jm_PREREQ_TEMPNAME): New function.
87014
87015 2001-03-16  Paul Eggert  <eggert@twinsun.com>
87016
87017         * lib/tempname.c (uint64_t): Define to uintmax_t if
87018         not defined, and if UINT64_MAX is not defined.
87019         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
87020         Reported by John David Anglin.
87021
87022 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
87023
87024         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
87025         resolve alias if codeset is empty.
87026         * lib/config.charset (BeOS): Use wildcard syntax.
87027
87028 2001-03-13  Jim Meyering  <meyering@lucent.com>
87029
87030         * lib/path-concat.c (path_concat)
87031         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
87032         concatenating e.g., `C:' and `foo'.
87033         From Bruno Haible.
87034
87035 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
87036
87037         * lib/localcharset.c (locale_charset): Don't use
87038         setlocale(LC_CTYPE,NULL). Don't return NULL.
87039         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
87040
87041 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
87042
87043         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
87044         support for DOS/DJGPP.
87045
87046 2001-03-01  Paul Eggert  <eggert@twinsun.com>
87047
87048         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
87049         lacks mkstemp.  Compile our own tempname.c if we compile our own
87050         mkstemp.c, as mkstemp relies on tempname.
87051
87052 2001-03-01  Jim Meyering  <meyering@lucent.com>
87053
87054         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
87055         AH_VERBATIM really does output its argument verbatim.
87056
87057 2001-02-28  Paul Eggert  <eggert@twinsun.com>
87058
87059         * lib/Makefile.am (libfetish_a_SOURCES):
87060         Add dup-safer.c, fopen-safer.c.
87061         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
87062
87063         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
87064         * lib/unistd-safer.h: New files.
87065
87066 2001-02-25  Paul Eggert  <eggert@twinsun.com>
87067
87068         The mkstemp replacement is taken from glibc 2.2.2, with some
87069         portability fixes for use outside glibc, as follows:
87070
87071         * lib/tempname.c (struct_stat64): New macro.
87072         (direxists, __gen_tempname): Use it.
87073         This avoids a portability problem with Solaris 8.
87074
87075         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
87076         (<stddef.h>, <stdint.h>, <string.h>):
87077         Include only if STDC_HEADERS || _LIBC.
87078         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
87079         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
87080         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
87081         (__set_errno): Define this macro if <errno.h> doesn't.
87082         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
87083         Define these macros if <stdio.h> doesn't.
87084         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
87085         Define these macros if <sys/stat.h>
87086         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
87087         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
87088         __xstat64): Define if not _LIBC.
87089         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
87090         (__gen_tempname): Invoke gettimeofday only if
87091         HAVE_GETTIMEOFDAY || _LIBC;
87092         otherwise, fall back on plain "time".
87093         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
87094
87095         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
87096
87097         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
87098
87099 2001-02-18  Paul Eggert  <eggert@twinsun.com>
87100
87101         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
87102
87103 2001-02-17  Paul Eggert  <eggert@twinsun.com>
87104
87105         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
87106         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
87107         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
87108         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
87109
87110 2001-02-17  Paul Eggert  <eggert@twinsun.com>
87111
87112         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
87113         Remove workaround macros for hosts that have mbrtowc but not
87114         mbstate_t, as we now insist on proper declarations for both
87115         before using mbrtowc.
87116
87117 2001-02-17  Jim Meyering  <meyering@lucent.com>
87118
87119         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
87120         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
87121         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
87122         UnixWare 7.1.1.
87123
87124         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
87125         rather than AC_CACHE_VAL.
87126
87127 2001-02-17  Jim Meyering  <meyering@lucent.com>
87128
87129         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
87130         around included file name.
87131
87132         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
87133
87134         * lib/strftime.c: Update from GNU libc (the only changes were to
87135         comments).
87136
87137 2001-02-17  Jim Meyering  <meyering@lucent.com>
87138
87139         * lib/regex.c: Update from libc.
87140
87141 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
87142
87143         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
87144         clash.
87145
87146 2001-02-16  Paul Eggert  <eggert@twinsun.com>
87147
87148         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
87149         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
87150         Reported by Mark Hounschell via Paul Eggert.
87151
87152 2001-02-07  Jim Meyering  <meyering@lucent.com>
87153
87154         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
87155
87156 2001-02-05  Jim Meyering  <meyering@lucent.com>
87157
87158         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
87159         it includes the patch required for `large file' support with at least
87160         HP-UX's 10.20 /bin/cc.
87161
87162 2001-02-03  Jim Meyering  <meyering@lucent.com>
87163
87164         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
87165         AS_IF, now that it works once again (mysteriously).
87166         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
87167
87168 2001-01-30  Jim Meyering  <meyering@lucent.com>
87169
87170         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
87171         * m4/chown.m4: Rename conftestchown to conftest.chown.
87172         * m4/rename.m4: s/conftestdir/conftest.d1/ and
87173         s/conftestdir2/conftest.d2/.
87174         * m4/utimes.m4: s/conftestdata/conftest.data/
87175         Inspired by Pavel Roskin's change in autoconf.
87176
87177 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
87178
87179         * lib/config.charset: Update for FreeBSD 4.2.
87180
87181 2001-01-27  Jim Meyering  <meyering@lucent.com>
87182
87183         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
87184         a use of AS_IF.
87185         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
87186
87187 2001-01-26  Jim Meyering  <meyering@lucent.com>
87188
87189         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
87190         quotearg.c includes it.
87191
87192 2001-01-26  Jim Meyering  <meyering@lucent.com>
87193
87194         * lib/quotearg.c: Include stddef.h.
87195         * lib/quote.c: Include stddef.h.
87196         Reported by Axel Kittenberger.
87197
87198         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
87199         line in double quotes so that it evokes a better diagnostic.
87200         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
87201         Reported by Axel Kittenberger.
87202
87203 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
87204
87205         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
87206         as if it was a `charset'.
87207
87208 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
87209
87210         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
87211         has const.
87212
87213 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
87214
87215         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
87216         to avoid a warning.  Add back 'const' to inptr.
87217
87218 2001-01-20  Jim Meyering  <meyering@lucent.com>
87219
87220         Be sure that headers are checked before used in code compiled
87221         for the type checks.
87222         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
87223         In place of that, invoke jm_CHECK_ALL_TYPES.
87224         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
87225         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
87226         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
87227         The check for ssize_t was mistakenly run before the test for unistd.h.
87228
87229         The configure-time check for stdbool.h was missing.
87230         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
87231         (jm_PREREQ_HASH): New function.
87232
87233 2001-01-17  Jim Meyering  <meyering@lucent.com>
87234
87235         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
87236         for autoconf-2.49c.
87237         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
87238
87239 2001-01-16  Jim Meyering  <meyering@lucent.com>
87240
87241         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
87242         From Bruno Haible.
87243
87244 2001-01-14  Jim Meyering  <meyering@lucent.com>
87245
87246         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
87247         foo and bar.  Create conftestdir/ in the script, not in the C code.
87248         Remove directories in the script, not in the C code.
87249         Remove conftestdir{,2} before trying to create the directory.
87250         Make the entire configure script fail if the mkdir fails.
87251
87252 2001-01-14  Jim Meyering  <meyering@lucent.com>
87253
87254         * lib/rename.c: New file.  From Volker Borchert.
87255         Include stdlib.h, string.h or strings.h, and xalloc.h.
87256         Use strip_trailing_slashes rather than open-coding it.
87257
87258 2001-01-03  Paul Eggert  <eggert@twinsun.com>
87259
87260         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
87261
87262 2001-01-03  Jim Meyering  <meyering@lucent.com>
87263
87264         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
87265         of local `inptr' to avoid warning with some system declarations of
87266         iconv.
87267
87268 2001-01-02  Volker Borchert  <bt@teknon.de>
87269
87270         * m4/rename.m4: New file.
87271         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
87272
87273 2001-01-01  Jim Meyering  <meyering@lucent.com>
87274
87275         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
87276         even on systems with utmpx.h.  It's necessary for the declaration of
87277         utmp's ut_user member.  Reported by Andreas Jaeger.
87278
87279         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
87280         available. They are required for the declarations of getgrgid and
87281         getpwuid resp.
87282         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
87283         Reported by Andreas Jaeger.
87284
87285 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
87286
87287         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
87288         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
87289         so `make install' also works in VPATH builds.
87290
87291 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
87292
87293         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
87294         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
87295         can be used in subdirectories.
87296
87297 2000-12-29  Paul Eggert  <eggert@twinsun.com>
87298
87299         * lib/modechange.c: Do not assume that mode_t uses the
87300         traditional octal encoding.  E.g. "chmod 1 FOO" should set
87301         the other-execute bit of FOO even if S_IXOTH != 1.
87302
87303         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
87304         WOTH, XOTH, ALLM): New macros.
87305         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
87306          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
87307         Use them.
87308         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
87309         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
87310         (mode_compile):
87311         No need to use uintmax_t; unsigned long is long enough.
87312         Don't bother to get suffix since we don't use it.
87313
87314 2000-12-26  Jim Meyering  <meyering@lucent.com>
87315
87316         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
87317         better with autoheader.
87318
87319 2000-12-24  Jim Meyering  <meyering@lucent.com>
87320
87321         * lib/hash.c (is_prime): Return explicit boolean values.
87322         (hash_get_first): Return NULL to appease Irix5.6's 89.
87323         Reported by Nelson Beebe.
87324
87325 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
87326
87327         * lib/localcharset.c (locale_charset): Add support for Win32.
87328
87329 2000-12-18  Paul Eggert  <eggert@twinsun.com>
87330
87331         * lib/physmem.h, lib/physmem.c: New files.
87332
87333         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
87334         (noinst_HEADERS): Add physmem.h.
87335
87336         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
87337         't' for compatibility with Solaris 8 sort.
87338
87339 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
87340
87341         * lib/config.charset: Add support for BeOS.
87342
87343 2000-12-17  Jim Meyering  <meyering@lucent.com>
87344
87345         * m4/dos.m4 (jm_AC_DOS): New file and macro.
87346         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
87347
87348 2000-12-16  Jim Meyering  <meyering@lucent.com>
87349
87350         This bug had a serious impact on chown: `chown N:M FILE' (for integer
87351         N and M) would have treated it like `chown N:N FILE'.
87352
87353         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
87354
87355 2000-12-16  Jim Meyering  <meyering@lucent.com>
87356
87357         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
87358         SHELLS_FILE to a file name that's useful on djgpp systems.
87359         Include stdlib.h.
87360         (ADDITIONAL_DEFAULT_SHELLS): Define.
87361         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
87362         Based mostly on a patch from Prashant TR.
87363
87364 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
87365
87366         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
87367         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
87368         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
87369
87370 2000-12-08  Andreas Schwab  <schwab@suse.de>
87371
87372         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
87373         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
87374
87375 2000-12-07  Jim Meyering  <meyering@lucent.com>
87376
87377         * lib/stripslash.c (ISSLASH): Define.
87378         (strip_trailing_slashes): Use ISSLASH rather than comparing against
87379         `/'.
87380         From Prashant TR.
87381
87382         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
87383         (dir_name_r): Declare this function as static.
87384         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
87385         manifest itself on a name containing a mix of slashes and
87386         backslashes.
87387         Make this function work with names starting with a DOS-style
87388         drive letter and colon prefix.
87389         (dir_name): Append `.' if necessary.
87390         Based mostly on patches from Prashant TR and Eli Zaretskii.
87391
87392         * lib/dirname.h (dir_name_r): Remove prototype.
87393
87394 2000-12-06  Paul Eggert  <eggert@twinsun.com>
87395
87396         * m4/off_t-format.m4: Remove this file.
87397         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
87398
87399 2000-12-06  Jim Meyering  <meyering@lucent.com>
87400
87401         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
87402         replacement strtoull, we may well need the replacement strtoul, too.
87403         Check for declarations of strtoul and strtoull.
87404         Check for strtol.  Mainly as a cue to cause automake to include
87405         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
87406         Check for limits.h -- strtol.c needs it.
87407
87408 2000-12-05  Jim Meyering  <meyering@lucent.com>
87409
87410         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
87411
87412 2000-12-04  Jim Meyering  <meyering@lucent.com>
87413
87414         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
87415         Also include memory.h, stdlib.h, unistd.h if appropriate.
87416         Reported by Andreas Jaeger (conflicting declaration of malloc).
87417
87418 2000-12-02  Jim Meyering  <meyering@lucent.com>
87419
87420         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
87421         * m4/jm-macros.m4 (jm_MACROS): require it.
87422
87423 2000-12-02  Jim Meyering  <meyering@lucent.com>
87424
87425         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
87426
87427 2000-12-01  Paul Eggert  <eggert@twinsun.com>
87428
87429         * lib/memrchr.c: Include <config.h> before any system include file.
87430
87431 2000-11-30  Jim Meyering  <meyering@lucent.com>
87432
87433         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
87434
87435 2000-11-30  Jim Meyering  <meyering@lucent.com>
87436
87437         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
87438
87439 2000-11-29  Paul Eggert  <eggert@twinsun.com>
87440
87441         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
87442
87443 2000-11-26  Jim Meyering  <meyering@lucent.com>
87444
87445         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
87446
87447 2000-11-22  Paul Eggert  <eggert@twinsun.com>
87448
87449         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
87450         size of (size_t) -1; it's not portable.
87451
87452 2000-11-17  Jim Meyering  <meyering@lucent.com>
87453
87454         * lib/strstr.c: Update from GNU libc.
87455
87456 2000-11-17  Akim Demaille  <akim@epita.fr>
87457
87458         * lib/obstack.h: Formatting changes.
87459         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
87460         prevent type checking.
87461         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
87462         cast the value to (void *): assigning a `foo *' to a `void *'
87463         variable is valid.
87464         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
87465
87466 2000-11-16  Jim Meyering  <meyering@lucent.com>
87467
87468         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
87469
87470 2000-11-11  Jim Meyering  <meyering@lucent.com>
87471
87472         * lib/error.c: Add a couple #includes, merging from GNU libc version.
87473
87474 2000-11-10  Jim Meyering  <meyering@lucent.com>
87475
87476         * lib/obstack.h: Update from GNU libc.
87477         * lib/obstack.c: Likewise.
87478
87479 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
87480
87481         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
87482
87483 2000-11-06  Paul Eggert  <eggert@twinsun.com>
87484
87485         * lib/getusershell.c (setusershell): Use rewind rather than
87486         fseek/fseeko, to avoid configuration hassles with fseeko.
87487         Don't bother opening SHELLS_FILE if shellstream is NULL;
87488         it's not necessary.
87489
87490 2000-11-05  Jim Meyering  <meyering@lucent.com>
87491
87492         * lib/makepath.h (make_dir): Declare.
87493         * lib/makepath.c (make_dir): Remove `static' attribute.
87494         Tweak a comment.
87495
87496 2000-11-04  Jim Meyering  <meyering@lucent.com>
87497
87498         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
87499
87500 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
87501
87502         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
87503         last one in a bucket, advance to the next bucket.
87504
87505 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
87506
87507         * lib/fnmatch.c: Do not comment out all the code if we are using
87508         the GNU C library, because in some cases we are replacing buggy
87509         code in the GNU C library itself.
87510
87511 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
87512
87513         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
87514         (regex_compile): Catch bogus \(\1\).
87515
87516 2000-10-30  Paul Eggert  <eggert@twinsun.com>
87517
87518         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
87519         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
87520         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
87521
87522 2000-10-30  Paul Eggert  <eggert@twinsun.com>
87523
87524         * lib/error.h, getline.h, modechange.h:
87525         Remove "2000" from Copyright line, as the file hasn't been
87526         changed this year other than in the copyright notice.
87527
87528         * lib/xalloc.h: Add "2000" to Copyright line, as this file
87529         was changed this year.
87530
87531 2000-10-29  Jim Meyering  <meyering@lucent.com>
87532
87533         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
87534         renaming.
87535         * m4/ls-mntd-fs.m4: Likewise
87536
87537 2000-10-29  Jim Meyering  <meyering@lucent.com>
87538
87539         * lib/xstat.in: Fix grammar in comment.
87540
87541 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
87542
87543         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
87544         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
87545         doesn't define __restrict_arr.
87546
87547 2000-10-28  Jim Meyering  <meyering@lucent.com>
87548
87549         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
87550         (jm_PREREQ_MEMCHR): New function.
87551
87552 2000-10-28  Jim Meyering  <meyering@lucent.com>
87553
87554         * lib/memchr.c: Update from libc.
87555         Adjust for portability:
87556         [HAVE_STDLIB_H]: Include stdlib.h.
87557         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
87558         Undef __memchr, too.
87559         [!weak_alias]: Define __memchr to memchr.
87560
87561         * lib/regex.c: Update from libc.
87562         * lib/regex.h: Likewise.
87563         * lib/getopt1.c: Likewise.
87564         * lib/memcmp.c: Likewise.
87565
87566         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
87567         Avoid using fseek, when possible -- it's broken by design.
87568         Patch by Ulrich Drepper.
87569
87570 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
87571
87572         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
87573         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
87574         Giving in to popular pressure to shut up the compiler with casts.
87575
87576 2000-10-26  Jim Meyering  <meyering@lucent.com>
87577
87578         * lib/strftime.c: Update from libc.
87579
87580 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
87581
87582         * regex.c: More `unsigned char' -> `re_char' changes.
87583         Also change several `int' into `re_wchar_t'.
87584         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
87585         (PUSH_FAILURE_POINTER): Don't cast any more.
87586         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
87587         We want GCC to complain, since this piece of code makes
87588         re_match non-reentrant, which *should* be fixed.
87589         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
87590         (EXTEND_BUFFER): Use RETALLOC.
87591         (SET_LIST_BIT): Don't cast.
87592         (re_wchar_t): New type.
87593         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
87594         that those two functions will always properly return.
87595         (IMMEDIATE_QUIT_CHECK): Cast to void.
87596         (analyse_first): Use recursion rather than an explicit stack.
87597         (re_compile_fastmap): Can't fail anymore.
87598         (re_search_2): Don't check re_compile_fastmap for failure.
87599         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
87600         Now also sets the new value (passed in a new argument).
87601         (re_match_2_internal): Use it.
87602         Also, use a new var `reg' of type size_t when looping through regs
87603         rather than reuse the inappropriate `mcnt'.
87604
87605 2000-10-25  Jim Meyering  <meyering@lucent.com>
87606
87607         * lib/obstack.c: Update from libc.
87608
87609 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
87610
87611         * regex.c (regex_compile): Change the way of handling a range from
87612         a char less than 256 to a char not less than 256.
87613
87614 2000-10-24  Andrew Innes  <andrewi@gnu.org>
87615
87616         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
87617         NT-Emacs only.
87618         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
87619         so that re_search functions only quit when callers expect them to.
87620
87621 2000-10-23  Jim Meyering  <meyering@lucent.com>
87622
87623         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
87624         wrong.  That set_locale call must not have any side effects.
87625         From Paul Eggert.
87626
87627 2000-10-22  Jim Meyering  <meyering@lucent.com>
87628
87629         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
87630         [CYCLIC]: Remove now-unused definition.
87631
87632         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
87633         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
87634         Suggestion from Ulrich Drepper.
87635
87636 2000-10-21  Jim Meyering  <meyering@lucent.com>
87637
87638         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
87639         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
87640         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
87641
87642 2000-10-21  Jim Meyering  <meyering@lucent.com>
87643
87644         * lib/dirname.c (memrchr): Declare if necessary.
87645         (dir_name): Remove the restriction that there be no
87646         trailing slashes.  Now, this code skips past them, effectively
87647         ignoring them.
87648         [TEST_DIRNAME] (main): New unit tests.
87649
87650         * lib/memrchr.c: New file from GNU libc.
87651         Undef __memrchr, too.
87652         [!weak_alias]: Define __memrchr to memrchr.
87653         Guard weak_alias use with `#ifdef weak_alias'.
87654
87655 2000-10-21  Jim Meyering  <meyering@lucent.com>
87656
87657         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
87658         (dir_name): Use dir_name_r.
87659         * lib/dirname.h (dir_name_r): Declare it.
87660
87661 2000-10-17  Jim Meyering  <meyering@lucent.com>
87662
87663         * lib/quote.h (PARAMS): Define and use.
87664         Reported by Akim Demaille.
87665
87666         * lib/getopt.c: Update from libc.
87667
87668 2000-10-16  Jim Meyering  <meyering@lucent.com>
87669
87670         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
87671         setlocale.
87672         From Jan Fedak.
87673
87674 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
87675
87676         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
87677
87678 2000-09-25  Jim Meyering  <meyering@lucent.com>
87679
87680         * lib/md5.h (rol): Define (from GnuPG).
87681
87682         * lib/sha.c: Give credit (GnuPG) where due.
87683         (M): Use rol rather than open-coding it.
87684         Add a FIXME comment.
87685
87686 2000-09-21  Jim Meyering  <meyering@lucent.com>
87687
87688         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
87689         Reported by Michael Stone.
87690
87691 2000-09-20  Jim Meyering  <meyering@lucent.com>
87692
87693         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
87694         (noinst_HEADERS): Add sha.h.
87695         Based on code from Scott G. Miller and from GnuPG.
87696
87697 2000-09-18  Jim Meyering  <meyering@lucent.com>
87698
87699         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
87700         LIBS. Otherwise, everyone ends up linking with -lelf for some
87701         configurations.
87702         Reported by Mike Stone.
87703
87704 2000-09-15  Jim Meyering  <meyering@lucent.com>
87705
87706         * lib/regex.c: Update from libc.
87707
87708 2000-09-10  Jim Meyering  <meyering@lucent.com>
87709
87710         * lib/getopt.c (_getopt_internal): Update from glibc.
87711
87712 2000-09-09  Jim Meyering  <meyering@lucent.com>
87713
87714         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
87715         think it should be used as a general replacement for isascii.
87716         * lib/fnmatch.c: Likewise.
87717         * lib/mbswidth.c: Likewise
87718         * lib/regex.c: Likewise.
87719
87720         Don't use atoi.
87721         * lib/userspec.c: Include sys/param.h and limits.h.
87722         Include xstrtol.h.
87723         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
87724         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
87725         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
87726         UID, GID.  Check range.
87727
87728 2000-09-06  Jim Meyering  <meyering@lucent.com>
87729
87730         * lib/getopt.c (_getopt_internal): Update from glibc.
87731
87732 2000-08-30  Jim Meyering  <meyering@lucent.com>
87733
87734         * lib/strftime.c: Merge in changes from GNU libc.
87735
87736 2000-08-26  Jim Meyering  <meyering@lucent.com>
87737
87738         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
87739         * m4/fpending.m4: New file.
87740
87741 2000-08-26  Jim Meyering  <meyering@lucent.com>
87742
87743         * lib/closeout.c: Include "__fpending.h".
87744         (close_stdout_status): Return right away if there's nothing to flush.
87745
87746         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
87747         * lib/__fpending.c: New file.
87748         * lib/__fpending.h: New file.
87749
87750 2000-08-20  Jim Meyering  <meyering@lucent.com>
87751
87752         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
87753         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
87754         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
87755
87756 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
87757
87758         Improve fileutils installation on systems where running
87759         programs (like install) can't be unlinked.
87760         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
87761         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
87762
87763 2000-08-07  Paul Eggert  <eggert@twinsun.com>
87764
87765         Standardize on "memory exhausted" instead of "Memory exhausted"
87766         or "virtual memory exhausted".
87767         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
87768         "virtual memory exhausted".
87769         * lib/same.c (same_name): Invoke xalloc_die instead of printing
87770         our own message.
87771         * lib/userspec.c (parse_user_spec): Likewise.
87772         * lib/bumpalloc.h: comment fix
87773         * lib/same.c, userspec.c: Include xalloc.h.
87774
87775         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
87776         not char *const and pointing to a constant array.
87777         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
87778         (xrealloc): Comment fix.
87779
87780         * lib/userspec.c (parse_user_spec):
87781         Don't translate a message until just before returning,
87782         to avoid unnecessary translation.
87783
87784 2000-08-07  Jim Meyering  <meyering@lucent.com>
87785
87786         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
87787         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
87788         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
87789         getgroups.c, gethostname.c, getopt.h, group-member.c,
87790         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
87791         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
87792         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
87793         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
87794         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
87795         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
87796         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
87797         yesno.c: Back out Copyright date changes for each file with no change
87798         this year.  This eases coordination with other programs using the same
87799         source code modules.  From Paul Eggert.
87800
87801 2000-08-06  Paul Eggert  <eggert@twinsun.com>
87802
87803         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
87804         not char, for compatibility with glibc 2.1.3 strftime.c.
87805
87806 2000-08-03  Greg McGary  <greg@mcgary.org>
87807
87808         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
87809         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
87810         (EXTEND_BUFFER): Use them.
87811
87812 2000-08-01  Jim Meyering  <meyering@lucent.com>
87813
87814         * lib/dirname.c (ISSLASH): Define.
87815         (BACKSLASH_IS_PATH_SEPARATOR): Define.
87816         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
87817         both `\' and `/' may be use as path separators.
87818         Based on a patch from Prashant TR.
87819
87820 2000-07-31  Paul Eggert  <eggert@twinsun.com>
87821
87822         * lib/quotearg.c (quotearg_n_options): Don't make the initial
87823         slot vector a constant, since it might get modified.
87824
87825 2000-07-31  Jim Meyering  <meyering@lucent.com>
87826
87827         * lib/xmalloc.c: Use `virtual memory exhausted', not
87828         `Memory exhausted'.
87829         * lib/obstack.c (print_and_abort): Likewise.
87830
87831 2000-07-30  Paul Eggert  <eggert@twinsun.com>
87832
87833         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
87834         buffer, so that the caller can always quote one small
87835         component of a "memory exhausted" message in slot 0.
87836         From a suggestion by Jim Meyering.
87837
87838 2000-07-30  Jim Meyering  <meyering@lucent.com>
87839
87840         * lib/makepath.c (make_path): Quote the other instance, too.
87841
87842         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
87843         (STATIC_BUF_SIZE): Define.
87844         (quotearg_n_options): Use only statically allocated storage when
87845         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
87846         than STATIC_BUF_SIZE.
87847
87848 2000-07-29  Jim Meyering  <meyering@lucent.com>
87849
87850         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
87851         * lib/dirname.c (dir_name): Likewise.
87852
87853         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
87854         `/'.
87855
87856         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
87857         (dir_name): Assert that there are no trailing slashes.
87858
87859 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
87860
87861         * lib/mbswidth.h (mbswidth): Add a flags argument.
87862         (mbswidth): New declaration.
87863         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
87864         * lib/mbswidth.c (mbswidth): Add a flags argument.
87865         (mbsnwidth): New function.
87866
87867 2000-07-24  Jim Meyering  <meyering@lucent.com>
87868
87869         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
87870
87871 2000-07-23  Paul Eggert  <eggert@twinsun.com>
87872
87873         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
87874
87875 2000-07-23  Paul Eggert  <eggert@twinsun.com>
87876
87877         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
87878         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
87879         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
87880         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
87881         invoke multibyte primitives.
87882
87883 2000-07-23  Paul Eggert  <eggert@twinsun.com>
87884
87885         * lib/quotearg.c:
87886         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
87887         so that mbstate_t is always defined.
87888
87889         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
87890         be 1 in at least one GCC installation, and this configuration
87891         error is likely to be common.  Ignoring MB_LEN_MAX hurts
87892         performance on hosts that have mbrtowc but have only unibyte
87893         locales, but I assume these hosts are rare.
87894
87895 2000-07-23  Paul Eggert  <eggert@twinsun.com>
87896
87897         * lib/mbswidth.c (_XOPEN_SOURCE):
87898         Don't define; this causes problems on Solaris 7.
87899         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
87900
87901 2000-07-23  Jim Meyering  <meyering@lucent.com>
87902
87903         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
87904         too: getgrgid, getpwuid, getuid.
87905
87906 2000-07-23  Jim Meyering  <meyering@lucent.com>
87907
87908         * lib/basename.c (base_name): Add an assertion.
87909
87910 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
87911
87912         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
87913         shadow its mbsinit function.
87914
87915 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
87916
87917         * lib/mbswidth.h: New file.
87918         * lib/mbswidth.c: New file.
87919         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
87920         (noinst_HEADERS): Add mbswidth.h.
87921
87922 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
87923
87924         * lib/config.charset: Add support for FreeBSD. Improve support for
87925         HP-UX and IRIX 6.
87926
87927 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
87928
87929         * m4/mbswidth.m4: New file.
87930         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
87931
87932 2000-07-15  Jim Meyering  <meyering@lucent.com>
87933
87934         * lib/makepath.c: Include quote.h.
87935         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
87936         corresponding argument in a `quote (...)' call.
87937         Give better diagnostics.
87938
87939         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
87940         (noinst_HEADERS): Add quote.h.
87941
87942         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
87943         from tar's src/misc.c.
87944         * lib/quote.h: New file.  Prototypes for same.
87945
87946 2000-07-14  Paul Eggert  <eggert@twinsun.com>
87947
87948         From a suggestion by Bruno Haible.
87949         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
87950         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
87951         to decide whether to define the BeOS workaround macro;
87952         this adjusts to the change to AC_MBSTATE_T.
87953
87954 2000-07-14  Jim Meyering  <meyering@lucent.com>
87955
87956         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
87957         jm_AC_TYPE_UINTMAX_T.
87958
87959 2000-07-13  Paul Eggert  <eggert@twinsun.com>
87960
87961         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
87962
87963         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
87964         quotearg_buffer_restyled): Add support for
87965         clocale_quoting_style.  Undo previous change to
87966         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
87967         and "{RIGHT QUOTATION MARK}" msgids.
87968
87969 2000-07-10  Paul Eggert  <eggert@twinsun.com>
87970
87971         From a suggestion by Bruno Haible.
87972         * m4/mbstate_t.m4 (AC_MBSTATE_T):
87973         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
87974         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
87975         and mbstate_t, to a single-part test that simply defines mbstate_t.
87976         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
87977         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
87978
87979 2000-07-10  Jim Meyering  <meyering@lucent.com>
87980
87981         * m4/strerror_r.m4: Mirror the correction made in autoconf.
87982
87983         * m4/gnu-source.m4: Output to confdefs.h directly.
87984         Suggestion from Akim Demaille.
87985
87986 2000-07-09  Paul Eggert  <eggert@twinsun.com>
87987
87988         The old behavior of quoting `like this' doesn't look good with
87989         newer, ISO-style fonts.  See:
87990         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
87991
87992         Instead, quote "like this" by default.  Let the translator
87993         tailor the locale-specific quoting behavior by providing
87994         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
87995
87996         * lib/quotearg.c (N_): New macro.
87997         (gettext_default): New function.
87998         (quotearg_buffer_restyled): Use
87999         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
88000         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
88001
88002 2000-07-09  Jim Meyering  <meyering@lucent.com>
88003
88004         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
88005         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
88006
88007         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
88008         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
88009
88010 2000-07-09  Jim Meyering  <meyering@lucent.com>
88011
88012         * lib/Most files: Update copyright dates to include 2000.
88013
88014 2000-07-08  Jim Meyering  <meyering@lucent.com>
88015
88016         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
88017         if not defined.
88018         (xgethostname): Remove now-unnecessary #ifdef.
88019         Move declaration of `err' into loop where it's used.
88020
88021 2000-07-05  Paul Eggert  <eggert@twinsun.com>
88022         and Bruno Haible  <haible@clisp.cons.org>
88023
88024         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
88025         only if the test for an object-type mbstate_t fails.  This
88026         prevents us from mistakenly reporting that mbstate_t is a
88027         system object type after we "#define mbstate_t int" to work
88028         around its lack.
88029
88030 2000-07-05  Paul Eggert  <eggert@twinsun.com>
88031         and Bruno Haible  <haible@clisp.cons.org>
88032
88033         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
88034
88035 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
88036
88037         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
88038         to strerror_r.
88039         Include <ctype.h> for use of isalpha.
88040
88041 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
88042
88043         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
88044         by allocating a larger buffer. Test the gethostname return value for
88045         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
88046         returns an error and ENAMETOOLONG isn't defined.
88047
88048 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
88049
88050         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
88051         dimension.
88052
88053 2000-07-04  Jim Meyering  <meyering@lucent.com>
88054
88055         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
88056         of the deprecated AC_CHECKING.
88057
88058 2000-07-04  Jim Meyering  <meyering@lucent.com>
88059
88060         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
88061         Reported by Bruno Haible.
88062
88063 2000-07-04  Jim Meyering  <meyering@lucent.com>
88064
88065         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
88066         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
88067         lacks mbrtowc.
88068
88069 2000-07-03  Paul Eggert  <eggert@twinsun.com>
88070
88071         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
88072         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
88073
88074 2000-07-03  Paul Eggert  <eggert@twinsun.com>
88075         and Bruno Haible  <haible@clisp.cons.org>
88076
88077         * lib/quotearg.c (mbrtowc):
88078         Assign to *pwc, and return 1 only if result is nonzero.
88079         (iswprint): Use ISPRINT when substituting our own mbrtowc.
88080
88081 2000-07-03  Jim Meyering  <meyering@lucent.com>
88082
88083         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
88084
88085 2000-07-03  Jim Meyering  <meyering@lucent.com>
88086
88087         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
88088         This is necessary to get a definition of e.g., UTMP_FILE on
88089         HP-UX 10.20.
88090         From Bob Proulx.
88091
88092 2000-07-02  Jim Meyering  <meyering@lucent.com>
88093
88094         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
88095
88096         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
88097         AC_LIBOBJ(function_name).
88098         * m4/chown.m4: Likewise.
88099         * m4/fnmatch.m4: Likewise.
88100         * m4/ftruncate.m4: Likewise.
88101         * m4/getgroups.m4: Likewise.
88102         * m4/getline.m4: Likewise.
88103         * m4/group-member.m4: Likewise.
88104         * m4/jm-macros.m4: Likewise.
88105         * m4/lstat.m4: Likewise.
88106         * m4/malloc.m4: Likewise.
88107         * m4/memcmp.m4: Likewise.
88108         * m4/nanosleep.m4: Likewise.
88109         * m4/putenv.m4: Likewise.
88110         * m4/realloc.m4: Likewise.
88111         * m4/regex.m4: Likewise.
88112         * m4/stat.m4: Likewise.
88113         * m4/strftime.m4: Likewise.
88114
88115 2000-07-02  Jim Meyering  <meyering@lucent.com>
88116
88117         * lib/quotearg.c (mbstate_t): Don't define here.
88118
88119 2000-07-02  Jim Meyering  <meyering@lucent.com>
88120
88121         * lib/nanosleep.c (SIGCONT): Define if not already defined.
88122
88123 2000-07-01  Jim Meyering  <meyering@lucent.com>
88124
88125         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
88126
88127 2000-07-01  Jim Meyering  <meyering@lucent.com>
88128
88129         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
88130         problem.
88131
88132 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
88133
88134         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
88135         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
88136
88137 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
88138
88139         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
88140         per change in ../m4/ls-mntd-fs.m4.
88141         (read_filesystem_list): Ignore symbolic links.
88142
88143 2000-06-29  Jim Meyering  <meyering@lucent.com>
88144
88145         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
88146         for declaration of strcmp.
88147
88148         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
88149
88150         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
88151         Avoid warning by casting result to `char *' to remove `const'.
88152
88153 2000-06-28  Jim Meyering  <meyering@lucent.com>
88154
88155         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
88156         included by quotearg.c, for which we perform this test.  From
88157         Bruno Haible.
88158
88159 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
88160
88161         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
88162         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
88163         <utmpx.h> exists, put readutmp.o into LIBOBJS.
88164
88165 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
88166
88167         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
88168
88169 2000-06-26  Paul Eggert  <eggert@twinsun.com>
88170
88171         savedir now sets errno on failure and invokes xmalloc to get memory.
88172         Fix a couple of other minor bugs while we're at it.
88173
88174         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
88175         (NAMLEN): Remove macro.
88176         (malloc, realloc): Remove decls.
88177         (stpcpy): Likewise.
88178         ("xalloc.h"): Include.
88179         (NAME_SIZE_DEFAULT): New macro.
88180         (savedir): Use xmalloc / xrealloc to allocate memory.
88181         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
88182         Skip "" directory entries.
88183         Use strlen to calculate directory entry length, since the old method
88184         is rarely used these days and isn't worth supporting.
88185         Don't use a pointer after freeing it.
88186         Check for integer overflow when calculating allocation size.
88187         Use memcpy to copy entries, instead of stpcpy.
88188         Set errno properly when returning NULL.
88189         Check for readdir error.
88190
88191 2000-06-26  Jim Meyering  <meyering@lucent.com>
88192
88193         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
88194
88195 2000-06-25  Jim Meyering  <meyering@lucent.com>
88196
88197         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
88198         Linux header bug when _XOPEN_SOURCE is defined to 500.
88199
88200 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
88201
88202         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
88203         deficiency.
88204
88205 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
88206
88207         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
88208         Include xalloc.h.
88209         Don't include <stdlib.h>.  Don't declare malloc, realloc.
88210
88211 2000-06-24  Jim Meyering  <meyering@lucent.com>
88212
88213         * m4/strerror_r.m4: Revive this file -- to try out an experimental
88214         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
88215         for which strerror does return char*, but which lacks a conveniently
88216         accessible declaration of the function.  If the compile-test says
88217         strerror_r doesn't work, then resort to a `run'-test that works on
88218         BeOS and segfaults on DEC Unix.
88219
88220 2000-06-24  Jim Meyering  <meyering@lucent.com>
88221
88222         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
88223
88224 2000-06-23  Paul Eggert  <eggert@twinsun.com>
88225
88226         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
88227         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
88228
88229 2000-06-23  Paul Eggert  <eggert@twinsun.com>
88230
88231         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
88232         (mbrtowc, mbstate_t): Define substitutes if
88233         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
88234         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
88235         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
88236
88237 2000-06-23  Jim Meyering  <meyering@lucent.com>
88238
88239         * m4/afs.m4: Add missing AC_MSG_RESULT.
88240         Reported by Bruno Haible.
88241
88242         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
88243         Suggestion from Bruno Haible.
88244
88245 2000-06-23  Jim Meyering  <meyering@lucent.com>
88246
88247         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
88248
88249 2000-06-21  Jim Meyering  <meyering@lucent.com>
88250
88251         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
88252
88253 2000-06-21  Jim Meyering  <meyering@lucent.com>
88254
88255         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
88256         (noinst_HEADERS): Add getstr.h.
88257
88258         * lib/getline.c (getstr): Move into a separate file.
88259         * lib/getstr.c (getstr): New file, extracted from getline.c, with
88260         the following changes: new parameter, delim2; both delim[12]
88261         parameters have type `int', not `char'.  The latter would lose
88262         with 8-bit delimiters.
88263         * lib/getstr.h: New file.
88264
88265 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
88266
88267         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
88268         than 1024, return a memory chunk of least possible size, instead
88269         of size PATH_MAX + 2. In the loop, increment the size proportionally.
88270         Use free/xmalloc instead of xrealloc to avoid copying for very long
88271         paths.
88272
88273 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
88274
88275         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
88276         the empty string.
88277
88278 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
88279
88280         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
88281         address, not strdup.  Include <stdlib.h> and don't declare free().
88282
88283 2000-06-19  Jim Meyering  <meyering@lucent.com>
88284
88285         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
88286
88287 2000-06-18  Jim Meyering  <meyering@lucent.com>
88288
88289         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
88290
88291         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
88292         `checking whether...' message to be consistent with that of the
88293         lstat test.
88294
88295 2000-06-18  Jim Meyering  <meyering@lucent.com>
88296
88297         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
88298         Besides, these days every porting target provides a mkdir function.
88299
88300         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
88301         needed. (this snippet comes from src/system.h).
88302
88303 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
88304
88305         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
88306
88307 2000-06-15  Paul Eggert  <eggert@twinsun.com>
88308
88309         * lib/human.c (adjust_value): New function.
88310         (human_readable_inexact): Apply rounding style even when
88311         printing approximate values.
88312
88313 2000-06-14  Paul Eggert  <eggert@twinsun.com>
88314
88315         * lib/human.c (human_readable_inexact): Allow an input block
88316         size that is not a multiple of the output block size, and vice versa.
88317         Reported by Piergiorgio Sartor.
88318
88319 2000-06-14  Paul Eggert  <eggert@twinsun.com>
88320
88321         * lib/getdate.y (get_date): Apply relative times after time
88322         zone indicator, not before.  Reported by Todd A. Jacobs.
88323
88324 2000-06-13  Jim Meyering  <meyering@lucent.com>
88325
88326         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
88327
88328         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
88329
88330 2000-06-12  Paul Eggert  <eggert@twinsun.com>
88331
88332         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
88333
88334 2000-06-12  Jim Meyering  <meyering@lucent.com>
88335
88336         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
88337         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
88338         optional argument.
88339         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
88340         the optional argument, `lib'.
88341
88342 2000-06-08  Jim Meyering  <meyering@lucent.com>
88343
88344         * m4/largefile.m4: Remove file (now that it's part of autoconf).
88345
88346 2000-06-04  Paul Eggert  <eggert@twinsun.com>
88347
88348         Rewrite largefile configuration so that we don't need to run
88349         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
88350         AC_CANONICAL_HOST in configure.in -- jmm]
88351
88352         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
88353         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
88354         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
88355         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
88356         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
88357         All uses changed.
88358         Instead of inspecting the output of getconf, try to compile the
88359         test program without and with the macro definition.
88360         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
88361         for getconf.  Instead, check for the needed flags by compiling
88362         test programs.
88363
88364 2000-06-04  Paul Eggert  <eggert@twinsun.com>
88365
88366         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
88367
88368 2000-06-04  Jim Meyering  <meyering@lucent.com>
88369
88370         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
88371         SunOS 4.1.4 for which gid_t is an unsigned type.
88372
88373 2000-06-03  Jim Meyering  <meyering@lucent.com>
88374
88375         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
88376         now that autoconf requires that.
88377
88378         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
88379         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
88380         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
88381
88382 2000-06-03  Jim Meyering  <meyering@lucent.com>
88383
88384         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
88385
88386 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
88387
88388         * m4/glibc21.m4: New file.
88389         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
88390
88391 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
88392
88393         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
88394         newer, don't install charset.alias.
88395         * lib/config.charset: Change the Linux/glibc rules so they become empty
88396         on glibc-2.1 or newer.
88397
88398 2000-06-02  Jim Meyering  <meyering@lucent.com>
88399
88400         * lib/mountlist.c: Back out last change.  Instead, do this...
88401         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
88402         me_dummy member using the same `ignore'-testing code.
88403         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
88404         fs_type strings.
88405         From Mark D. Roth.
88406
88407 2000-05-29  Jim Meyering  <meyering@lucent.com>
88408
88409         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
88410         mounts with the `ignore' attribute.  Based on a patch from
88411         Mark D. Roth.
88412
88413 2000-05-28  Jim Meyering  <meyering@lucent.com>
88414
88415         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
88416         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
88417         * m4/stat.m4: Likewise.
88418         * m4/lstat.m4: Likewise.
88419         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
88420
88421         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
88422         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
88423
88424 2000-05-26  Jim Meyering  <meyering@lucent.com>
88425
88426         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
88427
88428 2000-05-24  Jim Meyering  <meyering@lucent.com>
88429
88430         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
88431         autoconf requires that.
88432         * m4/lib-check.m4: Likewise.
88433         * m4/jm-macros.m4: Likewise.
88434         * m4/strftime.m4: Likewise.
88435
88436         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
88437         AC_CHECK_DECLS, now that autoconf requires that.
88438
88439 2000-05-22  Jim Meyering  <meyering@lucent.com>
88440
88441         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
88442         * m4/lstat.m4: Likewise.
88443
88444 2000-05-22  Jim Meyering  <meyering@lucent.com>
88445
88446         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
88447
88448 2000-05-20  Jim Meyering  <meyering@lucent.com>
88449
88450         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
88451         (jm_PREREQ): Use it.
88452
88453 2000-05-18  Jim Meyering  <meyering@lucent.com>
88454
88455         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
88456         back, too, since it may have been modified by allocate_entry.
88457         (hash_delete): Rewrite to use neither the assignment operator
88458         nor the comma operator in an if-expression.
88459
88460 2000-05-15  Paul Eggert  <eggert@twinsun.com>
88461
88462         * lib/closeout.c:
88463         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
88464         Remove; no longer needed.
88465         "quotearg.h": Add include.
88466         (file_name): Do not bother to explicitly initialize to NULL; it's less
88467         efficient on some hosts.
88468         (close_stdout_status): Remove test as to whether stdout was already
88469         closed; it breaks for the case "echo x | sort >&-".
88470         Quote file name colons.
88471         Do not assume that _("write error") lacks format strings.
88472
88473 2000-05-15  Jim Meyering  <meyering@lucent.com>
88474
88475         * lib/version-etc.c (version_etc_copyright): Update the copyright
88476         string used in all --version output.
88477
88478 2000-05-14  Jim Meyering  <meyering@lucent.com>
88479
88480         * lib/closeout.c (close_stdout_set_file_name): New function.
88481         (close_stdout_status): Use new file-scoped global.
88482         Return right away if fstat says the stdout file descriptor is invalid.
88483         * lib/closeout.h (close_stdout_set_file_name): Declare.
88484
88485 2000-05-10  Jim Meyering  <meyering@lucent.com>
88486
88487         * lib/closeout.c [default_exit_status]: New file-scoped variable.
88488         (close_stdout_set_status): New function.
88489         * lib/closeout.h (close_stdout_set_status): Declare.
88490
88491 2000-05-09  Jim Meyering  <meyering@lucent.com>
88492
88493         * m4/gettext.m4: Rename this...
88494         * m4/libintl.m4: ...to this.
88495
88496 2000-05-08  Jim Meyering  <meyering@lucent.com>
88497
88498         * lib/long-options.c: Don't include closeout.h.
88499         (parse_long_options): Don't call close_stdout for --version.
88500
88501 2000-05-06  Paul Eggert  <eggert@twinsun.com>
88502
88503         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
88504         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
88505         2.1.3 bug.  This avoids a clash when files like regex.c define
88506         _GNU_SOURCE.
88507
88508 2000-05-06  Jim Meyering  <meyering@lucent.com>
88509
88510         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
88511         (AC_REPLACE_FUNCS): Add strnlen.
88512
88513         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
88514         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
88515
88516         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
88517         AC_SEARCH_LIBS call for nanosleep.
88518         (LIB_NANOSLEEP): Set and AC_SUBST.
88519
88520 2000-05-06  Jim Meyering  <meyering@lucent.com>
88521
88522         * lib/strnlen.c: Undefine __strnlen and strnlen.
88523         [!weak_alias]: Define __strnlen to strnlen.
88524
88525         * lib/atexit.c: New file, from libiberty.
88526
88527 2000-05-06  Jim Meyering  <meyering@lucent.com>
88528
88529         * lib/closeout.c (close_stdout_status): Also check for errors on the
88530         stderr stream.
88531
88532 2000-05-05  Jim Meyering  <meyering@lucent.com>
88533
88534         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
88535         AC_SEARCH_LIBS call for clock_gettime.
88536         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
88537
88538         * m4/search-libs.m4: Update from autoconf.
88539
88540         su doesn't work on Solaris 2.6.
88541         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
88542         <shadow.h>.  Reported by Dragos Harabor.
88543
88544 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
88545
88546         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
88547         memcpy instead of xmalloc, xrealloc, path_concat.
88548         (locale_charset): Treat empty environment variables as absent.
88549         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
88550
88551 2000-05-04  Jim Meyering  <meyering@lucent.com>
88552
88553         * lib/getopt.c: Update from glibc.
88554         * lib/obstack.c: Likewise.
88555         * lib/obstack.h: Likewise.
88556         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
88557         file
88558
88559         * lib/regex.h: Likewise.
88560         * lib/strndup.c: Likewise.
88561         * lib/strnlen.c: New file, from glibc.
88562
88563 2000-05-03  Jim Meyering  <meyering@lucent.com>
88564
88565         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
88566
88567 2000-05-02  Paul Eggert  <eggert@twinsun.com>
88568
88569         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
88570         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
88571         compile-time test, rather than inspecting host and OS, to
88572         decide whether to define _LARGEFILE_SOURCE.
88573
88574 2000-05-01  Jim Meyering  <meyering@lucent.com>
88575
88576         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
88577
88578         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
88579         Based on a patch from Bruno Haible.
88580
88581 2000-05-01  Jim Meyering  <meyering@lucent.com>
88582
88583         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
88584
88585 2000-04-29  Jim Meyering  <meyering@lucent.com>
88586
88587         * lib/path-concat.c: Declare strdup only if it's not defined.
88588         * lib/canon-host.c: Likewise.
88589
88590 2000-04-28  Jim Meyering  <meyering@lucent.com>
88591
88592         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
88593         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
88594         is included first, then limits.h is included by locale.h by libintl.h.
88595         From John David Anglin.
88596
88597 2000-04-25  Jim Meyering  <meyering@lucent.com>
88598
88599         * lib/makepath.c (S_IRWXUGO): Define.
88600         (make_path): Always perform explicit chmod if MODE specifies any
88601         of the `special' permission bits.  Prompted by a bug report against
88602         install from Mate Wierdl and Joost van Baal.
88603
88604 2000-04-18  Jim Meyering  <meyering@lucent.com>
88605
88606         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
88607         (jm_PREREQ): Use it.
88608
88609 2000-04-18  Jim Meyering  <meyering@lucent.com>
88610
88611         * lib/README: New file.
88612
88613         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
88614         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
88615
88616 2000-04-17  Jim Meyering  <meyering@lucent.com>
88617
88618         Get it right :-)
88619         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
88620         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
88621         Suggestion from Akim Demaille.
88622
88623 2000-04-17  Jim Meyering  <meyering@lucent.com>
88624
88625         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
88626         the definition of it to rpl_strftime also defined-away the system's
88627         declaration.
88628
88629 2000-04-15  Jim Meyering  <meyering@lucent.com>
88630
88631         Use `C' to denote so-called `contiguous' files, the same way
88632         that tar does.
88633         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
88634         (ftypelet): Use S_ISCTG.
88635         From Michael Deutschmann.
88636
88637 2000-04-14  Jim Meyering  <meyering@lucent.com>
88638
88639         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
88640         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
88641         clobbered.
88642
88643 2000-04-14  Jim Meyering  <meyering@lucent.com>
88644
88645         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
88646
88647 2000-04-13  Jim Meyering  <meyering@lucent.com>
88648
88649         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
88650         AH_VERBATIM to insert required #ifndef into config.h.in.
88651         Suggestion from Akim Demaille.
88652
88653 2000-04-12  Jim Meyering  <meyering@lucent.com>
88654
88655         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
88656         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
88657         Christian Krackowizer.
88658
88659         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
88660         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
88661         (AC_SYS_LARGEFILE): Require.
88662         (AM_C_PROTOTYPES): Require.
88663
88664 2000-04-08  Jim Meyering  <meyering@lucent.com>
88665
88666         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
88667         names don't conflict.  Reported by Eli Zaretskii.
88668
88669 2000-04-07  Jim Meyering  <meyering@lucent.com>
88670
88671         * lib/putenv.c: Move inclusion of errno.h so it follows that of
88672         sys/types.h, to work around system header problems on AIX 3.2.5.
88673         From Bruno Haible.
88674
88675 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
88676
88677         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
88678         bug.  Deal with the different error behavior of Irix iconv.
88679
88680 2000-04-05  Paul Eggert  <eggert@twinsun.com>
88681
88682         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
88683         IRIX if the installer said otherwise.
88684
88685 2000-04-05  Jim Meyering  <meyering@lucent.com>
88686
88687         Portability tweaks required for ultrix4.3.
88688         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
88689         (jm_CHECK_DECLS): Add getutent to the list of functions.
88690         (_jm_DECL_HEADERS): Add utmpx.h.
88691         From John David Anglin.
88692
88693         * m4/strftime.m4: Back out the 2000-04-02 change.
88694         Instead of that change, simply undefine putenv in the test program.
88695
88696 2000-04-05  Jim Meyering  <meyering@lucent.com>
88697
88698         Portability tweaks required for ultrix4.3.
88699         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
88700         getutent.
88701         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
88702         * lib/canon-host.c: Declare strdup.
88703         * lib/path-concat.c: Likewise.
88704         From John David Anglin.
88705
88706 2000-04-04  Jim Meyering  <meyering@lucent.com>
88707
88708         Be more DOS 8.3-friendly.
88709         * lib/ref-add.sin: Renamed from ref-add.sed.in.
88710         * lib/ref-del.sin: Renamed from ref-del.sed.in.
88711         * lib/Makefile.am: Reflect renaming.
88712         Reported by Eli Zaretskii.
88713
88714         Use a temporary file name that won't clash with `charset.alias'
88715         in the DOS 8.3 name space.
88716         * lib/Makefile.am (charset_tmp): Define.
88717         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
88718         (uninstall-local): Likewise.
88719         Reported by Eli Zaretskii.
88720
88721 2000-04-03  Jim Meyering  <meyering@lucent.com>
88722
88723         * m4/gettext.m4: Fix typo in comment.
88724
88725         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
88726         textutils/configure.in).  Suggestion from Paul Eggert.
88727         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
88728
88729 2000-04-02  Paul Eggert  <eggert@twinsun.com>
88730
88731         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
88732         variable in the shell rather than using putenv, which isn't
88733         portable.  This avoids the configure-time inter-test dependency
88734         on the potentially-renamed putenv function.
88735
88736 2000-03-30  Paul Eggert  <eggert@twinsun.com>
88737
88738         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
88739         before checking struct stat.st_blksize, so that
88740         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
88741
88742 2000-03-29  Paul Eggert  <eggert@twinsun.com>
88743
88744         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
88745         since strftime.c uses HAVE_STRFTIME to decide whether to use
88746         the underlying strftime.
88747
88748 2000-03-29  Paul Eggert  <eggert@twinsun.com>
88749
88750         * lib/time/strftime.c (my_strftime): Make sure we call the system
88751         strftime, not ourselves, when invoking the underlying strftime.
88752
88753 2000-03-24  Jim Meyering  <meyering@lucent.com>
88754
88755         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
88756         (charset_alias): Define.
88757         (install-exec-local): Factor out common code.
88758         (uninstall-local): Split lines longer than 80.
88759         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
88760         (SUFFIXES): Define.
88761         (.sed.in.sed): New rule.  Don't redirect directly to $@.
88762         (CLEANFILES): Add ref-add.sed and ref-del.sed.
88763
88764 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
88765
88766         * lib/config.charset: Output a line containing "Packages using this
88767         file".
88768         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
88769         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
88770         ref-del.sed): New rules.
88771
88772 2000-03-17  Jim Meyering  <meyering@lucent.com>
88773
88774         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
88775         Otherwise, include <strings.h>
88776
88777 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
88778
88779         * lib/unicodeio.c (utf8_wctomb): New function.
88780         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
88781         format instead of in UCS-4 with platform dependent endianness.
88782
88783 2000-03-10  Jim Meyering  <meyering@lucent.com>
88784
88785         * m4/lib-check.m4: Look for getspnam in -lgen, too.
88786         From Marco Franzen.
88787
88788 2000-03-07  Paul Eggert  <eggert@twinsun.com>
88789
88790         * lib/savedir.c (savedir): Work even if directory size is
88791         negative; this can happen with some screwy NFS configurations.
88792
88793 2000-03-06  Jim Meyering  <meyering@lucent.com>
88794
88795         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
88796         if it's NULL (because we ran out of memory).  From Bruno Haible.
88797
88798 2000-03-05  Jim Meyering  <meyering@lucent.com>
88799
88800         * lib/localcharset.c ("path-concat.h"): Include.
88801         (get_charset_aliases): Use path_concat instead of ANSI string
88802         concatenation.
88803
88804         * lib/unicodeio.h (PARAMS): Define.
88805         Use it to guard prototype.
88806
88807 2000-03-04  Jim Meyering  <meyering@lucent.com>
88808
88809         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
88810         for lib/localcharset.c.
88811
88812 2000-03-04  Jim Meyering  <meyering@lucent.com>
88813
88814         * lib/Makefile.am (install-exec-local): Create $(libdir) before
88815         installing into it.
88816         (uninstall-local): Uncomment this rule so `make distcheck' works
88817         once again.
88818
88819         * lib/unicodeio.c (<errno.h>): Include it.
88820         (errno): Declare if not defined.
88821
88822         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
88823
88824         * lib/config.charset: New version, incorporating remarks from a linux
88825         i18n mailing list.  From Bruno Haible.
88826
88827 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
88828
88829         * m4/codeset.m4: New file.
88830         * m4/iconv.m4: New file.
88831         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
88832
88833 2000-03-03  Jim Meyering  <meyering@lucent.com>
88834
88835         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
88836
88837 2000-03-02  Jim Meyering  <meyering@lucent.com>
88838
88839         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
88840         the messages come out on separate lines.
88841
88842         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
88843         rather than jm_CHECK_DECLARATIONS.
88844         * m4/decl.m4: Remove now-unused file.
88845
88846         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
88847         geteuid.
88848
88849 2000-03-02  Jim Meyering  <meyering@lucent.com>
88850
88851         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
88852
88853 2000-03-01  Jim Meyering  <meyering@lucent.com>
88854
88855         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
88856         * lib/unicodeio.c: Likewise.
88857
88858 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
88859
88860         * lib/config.charset: New file.
88861         * lib/localcharset.c: New file.
88862         * lib/unicodeio.h, lib/unicodeio.c: New files.
88863         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
88864         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
88865         (noinst_HEADERS): Add unicodeio.h.
88866         (all-local, install-exec-local, charset.alias): New targets.
88867
88868 2000-02-28  Paul Eggert  <eggert@twinsun.com>
88869
88870         * lib/quotearg.c (ALERT_CHAR): New macro.
88871         (quotearg_buffer_restyled): Use it.
88872
88873 2000-02-27  Jim Meyering  <meyering@lucent.com>
88874
88875         * m4/check-decl.m4: Add getenv to the list.
88876
88877 2000-02-27  Jim Meyering  <meyering@lucent.com>
88878
88879         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
88880         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
88881
88882         * lib/backupfile.c: Guard inclusion of stdlib.h with
88883         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
88884         Declare malloc if needed.
88885
88886         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
88887         `#ifndef HAVE_DECL..'
88888         now that autoconf always defines the HAVE_DECL_ symbols.
88889         * lib/human.c: Likewise.
88890         * lib/same.c: Likewise.
88891         * lib/strtoumax.c: Likewise.
88892
88893         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
88894         declaration check was not run.
88895         * lib/hash.c: Likewise.
88896         * lib/human.c: Likewise.
88897         * lib/same.c: Likewise.
88898         * lib/strtoumax.c: Likewise.
88899
88900         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
88901         `.', then first look up the entire `.'-containing string as a login
88902         name.
88903
88904 2000-02-23  Jim Meyering  <meyering@lucent.com>
88905
88906         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
88907         in place of my hack.
88908
88909 2000-02-18  Paul Eggert  <eggert@twinsun.com>
88910
88911         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
88912         (textint): New typedef.
88913         (parser_control): Member year changed from int to textint.
88914         All uses changed.
88915         (YYSTYPE): Removed; replaced by %union with int and textint members.
88916         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
88917         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
88918         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
88919         (tSNUMBER, tUNUMBER): Now of type <textintval>.
88920         (date, number, to_year): Use width of number in digits, not its value,
88921         to determine whether it's a 2-digit year, or a 2-digit time.
88922         (yylex): Store number of digits of numeric tokens.
88923         Reported by John Kendall.
88924
88925         (parser_control): Changed from struct parser_control to typedef (for
88926         consistency).  All uses changed.
88927
88928         (tID): Removed; not used.
88929         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
88930
88931 2000-02-14  Paul Eggert  <eggert@twinsun.com>
88932
88933         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
88934         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
88935
88936 2000-02-12  Jim Meyering  <meyering@lucent.com>
88937
88938         * lib/userspec.c (ISDIGIT): Define it.
88939         (isdigit): Remove definition.
88940         (is_number): Use ISDIGIT, not isdigit.
88941         <libintl.h>: Include.
88942         (_ and N_): Define.
88943         (parse_user_spec): Mark translatable strings.
88944
88945 2000-02-10  Jim Meyering  <meyering@lucent.com>
88946
88947         With these changes, nanosleep.[ch] are finally enough like the other
88948         lib/* replacement files to compile on a few more losing systems.
88949
88950         * lib/nanosleep.h: Don't include config.h.
88951         Remove prototype from declaration of nanosleep.
88952         (PARAMS): Remove now-unneeded definition.
88953         * lib/nanosleep.c: #undef nanosleep.
88954         (rpl_nanosleep): Rename from nanosleep.
88955
88956 2000-02-10  Jim Meyering  <meyering@lucent.com>
88957
88958         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
88959         gnu_nanosleep to rpl_nanosleep.
88960
88961 2000-02-09  Jim Meyering  <meyering@lucent.com>
88962
88963         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
88964         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
88965
88966 2000-02-08  Akim Demaille  <akim@epita.fr>
88967
88968         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
88969         `[' and `]' and remove uses of `changequote'.
88970         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
88971         (AC_SYS_LARGEFILE): Likewise.
88972         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
88973         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
88974         of changequote.
88975         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
88976         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
88977         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
88978         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
88979
88980 2000-02-05  Jim Meyering  <meyering@lucent.com>
88981
88982         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
88983         Remove explicit use of AC_HEADER_TIME.  It is required by
88984         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
88985         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
88986         in autoconf whereby the expansion of the latter ended up preceding
88987         the expansion of its prerequisite, AC_HEADER_TIME.
88988         Reported by Volker Borchert.
88989
88990 2000-02-03  Jim Meyering  <meyering@lucent.com>
88991
88992         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
88993
88994 2000-02-03  Jim Meyering  <meyering@lucent.com>
88995
88996         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
88997         rather than with `#if HAVE_UTMPNAME'.
88998
88999 2000-02-02  Jim Meyering  <meyering@lucent.com>
89000
89001         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
89002         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
89003         Reported by Eli Zaretskii.
89004
89005 2000-02-01  Jim Meyering  <meyering@lucent.com>
89006
89007         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
89008
89009 2000-01-31  Jim Meyering  <meyering@lucent.com>
89010
89011         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
89012         functions.  Add the time.h and sys/time.h headers along with the
89013         AC_REQUIRE'ment of AC_HEADER_TIME.
89014
89015 2000-01-31  Jim Meyering  <meyering@lucent.com>
89016
89017         * lib/nanosleep.h (nanosleep): Guard declaration with
89018         `#if ! HAVE_DECL_NANOSLEEP'.
89019         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
89020         the declaration in that vendor's sys/timers.h.
89021         Reported by Christian Krackowizer.
89022
89023         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
89024         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
89025         (ISPRINT): Likewise.
89026         Reported by Tom Tromey.
89027
89028 2000-01-30  Jim Meyering  <meyering@lucent.com>
89029
89030         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
89031
89032         * m4/prereq.m4 (utmp_includes): Define.
89033         Check for ut_user and ut_name members in both struct utmpx
89034         and struct utmp.
89035
89036 2000-01-30  Jim Meyering  <meyering@lucent.com>
89037
89038         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
89039         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
89040         header files where only utmpx.ut_user is declared.
89041
89042         * lib/readutmp.h (UT_USER): Define.
89043
89044 2000-01-29  Jim Meyering  <meyering@lucent.com>
89045
89046         * m4/lib-check.m4: New file containing library-related checks from
89047         fileutils and sh-utils (textutils had none).
89048
89049 2000-01-28  Jim Meyering  <meyering@lucent.com>
89050
89051         * m4/perl.m4: Change format of warning message to look more like that
89052         from the missing script.  Suggestion from François Pinard.
89053
89054 2000-01-25  Jim Meyering  <meyering@lucent.com>
89055
89056         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
89057         well as time.h in the compile check.
89058         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
89059         Fix typo in cross-compiling case: s/yes/no/.
89060
89061 2000-01-23  Jim Meyering  <meyering@lucent.com>
89062
89063         * m4/jm-macros.m4: Move df-related tests here from
89064         fileutils/configure.in
89065
89066         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
89067         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
89068
89069         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
89070         s/space/ac_fsusage_space/.
89071         (jm_FILE_SYSTEM_USAGE): Take two parameters.
89072
89073         * m4/ftruncate.m4: New file (derived from part of
89074         fileutils/configure.in).
89075         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
89076         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
89077
89078         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
89079         AC_SUBST these here, rather than just in sh-util/configure.in, so
89080         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
89081         all the same.
89082         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
89083         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
89084         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
89085         (AC_SUBST(POW_LIBM)): Likewise.
89086         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
89087
89088 2000-01-23  Jim Meyering  <meyering@lucent.com>
89089
89090         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
89091         obstack.c.
89092
89093 2000-01-22  Jim Meyering  <meyering@lucent.com>
89094
89095         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
89096
89097         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
89098
89099         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
89100         configure.in
89101         (AC_CHECK_HEADERS): Likewise for sh-utils.
89102         (AC_CHECK_HEADERS): Likewise for textutils.
89103         Merge the three lists of headers.
89104
89105         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
89106         from fileutils' configure.in.
89107
89108         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
89109         code. Moved tests into their own function (_jm_DECL_HEADERS) in
89110         check-decl.m4.
89111
89112         * m4/check-decl.m4: Use #if rather than #ifdef.
89113         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
89114         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
89115         (_jm_DECL_HEADERS): Define new function.
89116         (jm_CHECK_DECLARATIONS): Require it.
89117
89118 2000-01-22  Jim Meyering  <meyering@lucent.com>
89119
89120         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
89121         [! HAVE_DECL_STRTOULL]: Declare strtoull.
89122         Required for some AIX systems.  Reported by Christian Krackowizer.
89123         [TESTING] (main): New function.
89124
89125         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
89126         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
89127         letters.
89128
89129         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
89130         iswprint.
89131
89132         * lib/strverscmp.c (ISDIGIT): Define.
89133         (strverscmp): Use ISDIGIT, not isdigit.
89134
89135 2000-01-19  Jim Meyering  <meyering@lucent.com>
89136
89137         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
89138         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
89139         defines `struct timespec' in <sys/time.h>
89140
89141         * m4/c-bs-a.m4: Remove uses of changequote altogether.
89142         Thanks to Akim for explaining.
89143
89144 2000-01-17  Paul Eggert  <eggert@twinsun.com>
89145
89146         * lib/nanosleep.c (nanosleep):
89147         Don't use SA_INTERRUPT to decide whether to call sigaction, as
89148         POSIX.1 doesn't require SA_INTERRUPT and some systems
89149         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
89150         it's been part of POSIX.1 since day 1 (in 1988).
89151
89152 2000-01-17  Jim Meyering  <meyering@lucent.com>
89153
89154         * lib/interlock: Remove unused file.  Reported by François Pinard.
89155
89156 2000-01-16  Paul Eggert  <eggert@twinsun.com>
89157
89158         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
89159         alert, backslash, formfeed, and vertical tab unnecessarily in
89160         shell quoting style.
89161
89162 2000-01-16  Jim Meyering  <meyering@lucent.com>
89163
89164         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
89165         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
89166         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
89167         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
89168
89169 2000-01-16  Jim Meyering  <meyering@lucent.com>
89170
89171         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
89172         because the latter didn't work.
89173
89174 2000-01-15  Jim Meyering  <meyering@lucent.com>
89175
89176         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
89177         (AC_REPLACE_FUNCS): Add memcpy and memset.
89178         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
89179         Add strpbrk.
89180         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
89181
89182 2000-01-12  Jim Meyering  <meyering@lucent.com>
89183
89184         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
89185         (jm_PREREQ): Use it.
89186         (jm_PREREQ_READUTMP): New macro.
89187         (jm_PREREQ): Use it.
89188
89189 2000-01-11  Paul Eggert  <eggert@twinsun.com>
89190
89191         Quote multibyte characters correctly.
89192         * m4/c-bs-a.m4: New file.
89193         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
89194         (jm_PREREQ): Use it.
89195
89196 2000-01-11  Paul Eggert  <eggert@twinsun.com>
89197
89198         * m4/uintmax_t.m4: Port to autoconf 2.13.
89199
89200 2000-01-08  Jim Meyering  <meyering@ascend.com>
89201
89202         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
89203         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
89204
89205 2000-01-04  Jim Meyering  <meyering@ascend.com>
89206
89207         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
89208         jm_STRUCT_DIRENT_D_TYPE.
89209         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
89210         jm_STRUCT_DIRENT_D_INO.
89211         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
89212         jm_STRUCT_UTIMBUF.
89213         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
89214         renamings.
89215         * m4/utime.m4: Likewise.
89216
89217         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
89218         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
89219
89220 2000-01-03  Paul Eggert  <eggert@twinsun.com>
89221
89222         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
89223         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
89224
89225 2000-01-02  Jim Meyering  <meyering@ascend.com>
89226
89227         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
89228         remember if this is necessary.
89229
89230 1999-12-26  Jim Meyering  <meyering@ascend.com>
89231
89232         * m4/jm-macros.m4: Use it here.
89233         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
89234
89235 1999-12-23  Jim Meyering  <meyering@ascend.com>
89236
89237         * m4/jm-macros.m4: Check for clock_gettime (moved from
89238         fileutils/configure.in)
89239         Check for gettimeofday.
89240
89241 1999-12-20  Jim Meyering  <meyering@ascend.com>
89242
89243         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
89244         autoconf-2.14a-1999-12-20.
89245
89246 1999-12-19  Jim Meyering  <meyering@ascend.com>
89247
89248         * m4/lstat-slash.m4: New file.
89249         * m4/jm-macros.m4: Use the new macro:
89250         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
89251
89252 1999-12-07  Jim Meyering  <meyering@ascend.com>
89253
89254         * m4/perl.m4: Require that File::Compare be available, too.
89255         Too many systems seem to lack it.
89256
89257         * m4/strftime.m4: Add checks for most of the cpp macros tested in
89258         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
89259
89260 1999-11-18  Paul Eggert  <eggert@twinsun.com>
89261
89262         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
89263         problem with the QNX 4.25 shell, which doesn't propagate exit
89264         status of failed commands inside shell assignments.
89265
89266 1999-11-17  Jim Meyering  <meyering@ascend.com>
89267
89268         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
89269
89270 1999-11-07  Jim Meyering  <meyering@ascend.com>
89271
89272         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
89273
89274 1999-11-06  Jim Meyering  <meyering@ascend.com>
89275
89276         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
89277         * m4/jm-macros.m4 (jm_MACROS): Use it here.
89278
89279 1999-11-05  Jim Meyering  <meyering@ascend.com>
89280
89281         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
89282         configure.in of textutils, fileutils, and sh-utils into this one
89283         (shared between those packages) file.
89284         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
89285         AC_STRUCT_ST_BLKSIZE.
89286
89287 1999-11-03  Jim Meyering  <meyering@ascend.com>
89288
89289         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
89290         of AC_CHECK_TYPE checks includes unistd.h.
89291         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
89292         Suggestion from Akim Demaille.
89293
89294 1999-10-30  Jim Meyering  <meyering@ascend.com>
89295
89296         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
89297         m4-quoted string.
89298         * m4/ls-mntd-fs.m4: Likewise.
89299         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
89300         * m4/jm-winsz1.m4: Likewise.
89301
89302         * m4/const.m4: Remove file, since the fix made it into the experimental
89303         version of autoconf.
89304         * m4/mktime.m4: Likewise.
89305
89306         * m4/check-type.m4: Remove file, now that the latest version of
89307         AC_CHECK_TYPE takes a third arg to specify additional #includes.
89308
89309         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
89310         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
89311         AC_CHECK_TYPE.
89312
89313 1999-10-04  Jim Meyering  <meyering@ascend.com>
89314
89315         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
89316
89317 1999-09-22  Paul Eggert  <eggert@twinsun.com>
89318
89319         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
89320         2.95.1 bug with HP-UX 10.20.
89321
89322 1999-09-17  Jim Meyering  <meyering@ascend.com>
89323
89324         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
89325         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
89326         due to missing strdup (against sh-utils-2.0).
89327
89328 1999-08-29  Jim Meyering  <meyering@ascend.com>
89329
89330         * m4/jm-macros.m4: Require jm_BISON.
89331         * m4/bison.m4: New file.
89332
89333 1999-08-17  Paul Eggert  <eggert@twinsun.com>
89334
89335         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
89336         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
89337
89338 1999-08-05  Jim Meyering  <meyering@ascend.com>
89339
89340         * m4/getline.m4: Rename test file from conftestdata to conftest.data
89341         to avoid conflicts with `conftest' on 8+3 filesystems.
89342         Suggestion from Eli Zaretskii.
89343
89344 1999-08-04  Jim Meyering  <meyering@ascend.com>
89345
89346         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
89347         fileutils and sh-utils (textutils's getline test was inadequate).
89348         (AM_FUNC_GETLINE): Run this test.
89349         (AC_CHECK_FUNCS): Check for getdelim.
89350         Reported by Bob Proulx.
89351
89352 1999-08-02  Jim Meyering  <meyering@ascend.com>
89353
89354         * m4/jm-macros.m4: Add a comment.
89355
89356 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89357
89358         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
89359         <inttypes.h> defines strtoumax as a macro (and not as a
89360         function).
89361
89362 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89363
89364         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
89365         that we can shift, multiply and divide unsigned long long
89366         values; Ultrix cc can't do it.
89367
89368 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89369
89370         * m4/mktime.m4: New file, which is a preview of what should appear
89371         in the next public autoconf release.
89372
89373 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89374
89375         * m4/lfs.m4: Remove this file.
89376         * m4/largefile.m4: New file.  It contains the old contents of
89377         lfs.m4, except that all names with prefix AC_LFS have been
89378         changed to use the prefix AC_SYS_LARGEFILE instead, to be
89379         compatible with future autoconf versions.  Also, some minor m4
89380         quoting problems have been fixed.
89381
89382 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89383
89384         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
89385         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
89386         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
89387         and simplify the shell code.
89388
89389 1999-08-01  Jim Meyering  <meyering@ascend.com>
89390
89391         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
89392         m4.
89393
89394 1999-07-20  Jim Meyering  <meyering@ascend.com>
89395
89396         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
89397
89398 1999-07-15  Jim Meyering  <meyering@ascend.com>
89399
89400         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
89401
89402 1999-05-22  Jim Meyering  <meyering@ascend.com>
89403
89404         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
89405
89406 1999-05-20  Jim Meyering  <meyering@ascend.com>
89407
89408         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
89409         Add a colon after each `then' in case $4 is empty.
89410
89411 1999-05-16  Jim Meyering  <meyering@ascend.com>
89412
89413         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
89414
89415 1999-05-10  Jim Meyering  <meyering@ascend.com>
89416
89417         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
89418
89419         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
89420         AC_FUNC_MKTIME.
89421
89422 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
89423
89424         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
89425
89426 1999-05-04  Paul Eggert  <eggert@twinsun.com>
89427
89428         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
89429         not CPPFLAGS, so that linking works correctly in IRIX.
89430
89431 1999-04-30  Paul Eggert  <eggert@twinsun.com>
89432
89433         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
89434
89435 1999-04-20  Paul Eggert  <eggert@twinsun.com>
89436
89437         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
89438         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
89439         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
89440         jm_AC_TYPE_UNSIGNED_LONG_LONG.
89441         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
89442
89443         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
89444
89445 1999-04-20  Jim Meyering  <meyering@ascend.com>
89446
89447         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
89448         AC_REPLACE xstroull if necessary.  From Paul Eggert.
89449         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
89450
89451 1999-04-18  Jim Meyering  <meyering@ascend.com>
89452
89453         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
89454         * m4/jm-macros.m4: Use it.
89455
89456 1999-04-06  Jim Meyering  <meyering@ascend.com>
89457
89458         * m4/strftime.m4: Remove test for %f.
89459
89460 1999-03-29  Jim Meyering  <meyering@ascend.com>
89461
89462         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
89463         superset of the AC_TYPE_* checks in the textutils, fileutils,
89464         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
89465         AC_TYPE_PID_T.
89466
89467 1999-03-28  Jim Meyering  <meyering@ascend.com>
89468
89469         * m4/jm-macros.m4: Define GNU_PACKAGE here.
89470         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
89471         replaced e.g., in the *.sh files of the sh-utils.
89472
89473 1999-03-20  Jim Meyering  <meyering@ascend.com>
89474
89475         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
89476         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
89477         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
89478
89479 1999-03-19  Jim Meyering  <meyering@ascend.com>
89480
89481         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
89482
89483 1999-03-12  Jim Meyering  <meyering@ascend.com>
89484
89485         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
89486
89487 1999-03-07  Jim Meyering  <meyering@ascend.com>
89488
89489         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
89490         declared.
89491
89492 1999-02-17  Jim Meyering  <meyering@ascend.com>
89493
89494         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
89495         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
89496
89497 1999-02-07  Jim Meyering  <meyering@ascend.com>
89498
89499         * m4/group-member.m4: New file -- extracted from sh-utils'
89500         configure.in.
89501
89502         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
89503         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
89504
89505 1999-02-06  Jim Meyering  <meyering@ascend.com>
89506
89507         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
89508         * m4/fnmatch.m4: Likewise.
89509         * m4/getgroups.m4: Likewise.
89510         * m4/lstat.m4: Likewise.
89511         * m4/malloc.m4: Likewise.
89512         * m4/putenv.m4: Likewise.
89513         * m4/realloc.m4: Likewise.
89514         * m4/regex.m4: Likewise.
89515         * m4/stat.m4: Likewise.
89516         * m4/strftime.m4: Likewise.
89517         Suggestion from Alain Magloire.
89518
89519         * m4/chown.m4: Use `.$ac_objext', not `.o'.
89520         * m4/fnmatch.m4: Likewise.
89521         * m4/getgroups.m4: Likewise.
89522         * m4/getline.m4: Likewise.
89523         * m4/lstat.m4: Likewise.
89524         * m4/malloc.m4: Likewise.
89525         * m4/memcmp.m4: Likewise.
89526         * m4/putenv.m4: Likewise.
89527         * m4/realloc.m4: Likewise.
89528         * m4/regex.m4: Likewise.
89529         * m4/stat.m4: Likewise.
89530         * m4/strftime.m4: Likewise.
89531         Suggestion from Alain Magloire.
89532
89533         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
89534         an argument.
89535
89536         * m4/regex.m4: Add a run-time Test for proper operation of
89537         re_compile_pattern.
89538
89539 1999-01-31  Jim Meyering  <meyering@ascend.com>
89540
89541         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
89542
89543 1999-01-30  Jim Meyering  <meyering@ascend.com>
89544
89545         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
89546
89547         * m4/jm-mktime.m4: Make this a wrapper around the official
89548         AM_FUNC_MKTIME rather than my private copy, now that the official one
89549         is up to date.
89550         * m4/mktime.m4: Remove file.
89551
89552         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
89553         * m4/uptime.m4: Likewise.
89554         * m4/uintmax_t.m4: Likewise.
89555
89556 1999-01-28  Jim Meyering  <meyering@ascend.com>
89557
89558         * m4/jm-macros.m4: Use jm_AFS.
89559         * m4/afs.m4: New file (from fileutils' configure.in).
89560
89561         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
89562         * m4/chown.m4: Likewise.
89563         * m4/d-ino.m4: Likewise.
89564         * m4/d-type.m4: Likewise.
89565         * m4/fnmatch.m4: Likewise.
89566         * m4/getgroups.m4: Likewise.
89567         * m4/gettext.m4: Likewise.
89568         * m4/jm-mktime.m4: Likewise.
89569         * m4/jm-winsz2.m4: Likewise.
89570         * m4/lcmessage.m4: Likewise.
89571         * m4/ls-mntd-fs.m4: Likewise.
89572         * m4/malloc.m4: Likewise.
89573         * m4/memcmp.m4: Likewise.
89574         * m4/putenv.m4: Likewise.
89575         * m4/realloc.m4: Likewise.
89576         * m4/st_mtim.m4: Likewise.
89577         * m4/strftime.m4: Likewise.
89578
89579 1999-01-16  Jim Meyering  <meyering@ascend.com>
89580
89581         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
89582         (ARGMATCH_DIE_DECL): Define.
89583
89584 1999-01-12  Jim Meyering  <meyering@ascend.com>
89585
89586         * m4/Makefile.am.in: Rewrite to avoid using fmt.
89587         Reported by Lars Hecking.
89588
89589 1999-01-10  Jim Meyering  <meyering@ascend.com>
89590
89591         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
89592         gross kludge.
89593         * m4/inttypes_h.m4: Likewise.
89594         * m4/lstat.m4: Likewise.
89595         * m4/malloc.m4: Likewise.
89596         * m4/readdir.m4: Likewise.
89597         * m4/realloc.m4: Likewise.
89598         * m4/st_dm_mode.m4: Likewise.
89599         * m4/stat.m4: Likewise.
89600         * m4/utimbuf.m4: Likewise.
89601         * m4/utimes.m4: Likewise.
89602
89603         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
89604         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
89605         comments in config.h.in are meaningful.
89606
89607         * m4/jm-macros.m4: Require autoconf-2.13 here.
89608
89609         * m4/regex.m4: By default, don't use the included regex.c on systems
89610         with glibc 2.  Suggestion from Uli Drepper.
89611
89612 1999-01-02  Jim Meyering  <meyering@ascend.com>
89613
89614         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
89615
89616 1998-12-18  Jim Meyering  <meyering@ascend.com>
89617
89618         * m4/Makefile.am.in (Makefile.am): Simplify rule.
89619         Based on a suggestion from Lars Hecking.
89620
89621 1998-11-16  Paul Eggert  <eggert@twinsun.com>
89622
89623         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
89624
89625 1998-11-16  Jim Meyering  <meyering@ascend.com>
89626
89627         * m4/lfs.m4: Double-quote the `uname...` expression.
89628
89629 1998-11-14  Jim Meyering  <meyering@ascend.com>
89630
89631         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
89632         * m4/stat.m4: Likewise.
89633
89634 1998-11-03  Jim Meyering  <meyering@ascend.com>
89635
89636         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
89637         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
89638
89639 1998-10-18  Jim Meyering  <meyering@ascend.com>
89640
89641         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
89642
89643 1998-10-17  Jim Meyering  <meyering@ascend.com>
89644
89645         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
89646         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
89647         calls for those previously hard-coded headers.  Instead, take a new
89648         parameter.
89649         (jm_CHECK_DECLARATIONS): Reflect interface change.
89650         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
89651         (jm_CHECK_DECL_LOCALTIME_R): New macro.
89652
89653         * m4/mktime.m4: Test for spring-forward gap before long-running test.
89654
89655 1998-10-14  Jim Meyering  <meyering@ascend.com>
89656
89657         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
89658         instead of "TZ=America/Vancouver".  From Paul Eggert.
89659
89660 1998-10-11  Jim Meyering  <meyering@ascend.com>
89661
89662         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
89663         This adds a test for a recently added compatibility fix for mktime.c.
89664         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
89665
89666 1998-09-27  Jim Meyering  <meyering@ascend.com>
89667
89668         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
89669
89670         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
89671         ../configure.in, including a change from Gordon Matzigkeit to allow
89672         cross-compiling for the Hurd.
89673
89674         * m4/glibc.m4: New file/macro to test for the GNU C Library
89675         versions 1 and 2.  From Gordon Matzigkeit.
89676         Indent.
89677
89678 1998-09-21  Jim Meyering  <meyering@ascend.com>
89679
89680         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
89681
89682 1998-08-18  Paul Eggert  <eggert@twinsun.com>
89683
89684         Port nanosecond-resolution times to UnixWare 2.1.2 and
89685         pedantic Solaris 2.6.
89686
89687         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
89688         AC_STRUCT_ST_MTIM.
89689         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
89690         Generate name of ns member, instead of just 1 or undef.
89691         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
89692
89693 1998-08-15  Jim Meyering  <meyering@ascend.com>
89694
89695         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
89696         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
89697         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
89698         instead of jm_TYPE_SSIZE_T.
89699
89700 1998-08-12  Jim Meyering  <meyering@ascend.com>
89701
89702         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
89703
89704 1998-08-02  Jim Meyering  <meyering@ascend.com>
89705
89706         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
89707         in acconfig.h manually.
89708
89709 1998-07-31  Paul Eggert  <eggert@twinsun.com>
89710
89711         * m4/st_mtim.m4: New file.
89712
89713 1998-07-28  Jim Meyering  <meyering@ascend.com>
89714
89715         * m4/utimes.m4: Undef stat.
89716
89717 1998-07-25  Jim Meyering  <meyering@ascend.com>
89718
89719         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
89720         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
89721
89722 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
89723
89724         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
89725         uid and gid actually remain unchanged.
89726
89727 1998-07-07  Jim Meyering  <meyering@ascend.com>
89728
89729         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
89730
89731 1998-07-04  Jim Meyering  <meyering@ascend.com>
89732
89733         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
89734         to prove that this macro can be used in packages without regex.c.
89735
89736 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
89737
89738         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
89739         is to be used.
89740
89741 1998-07-03  Jim Meyering  <meyering@ascend.com>
89742
89743         * m4/gettext.m4: Add -lintl if it's found to be necessary.
89744
89745         * m4/gettext.m4: New file -- from gettext-0.10.35.
89746         * m4/lcmessage.m4: Likewise.
89747         * m4/progtest.m4: Likewise.
89748
89749         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
89750         * m4/jm-macros.m4: Require the new macro.
89751
89752 1998-06-29  Jim Meyering  <meyering@ascend.com>
89753
89754         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
89755         for the definition of NGROUPS (used in a system header included
89756         by sys/mount.h).
89757
89758 1998-06-28  Jim Meyering  <meyering@ascend.com>
89759
89760         * m4/ls-mntd-fs.m4: New file.
89761         * m4/fstypename.m4: New file.
89762
89763         * m4/jm-macros.m4: Require the new macro.
89764         * m4/jm-glibc-io.m4: New file.
89765
89766 1998-05-19  Jim Meyering  <meyering@ascend.com>
89767
89768         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
89769         * m4/lchown.m4: New file.
89770
89771         * m4/Makefile.am.in: New file.
89772         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
89773
89774 1998-05-14  Jim Meyering  <meyering@ascend.com>
89775
89776         * m4/Makefile.am (EXTRA_DIST): Add them.
89777         * m4/jm-macros.m4: New file.
89778         * m4/utimbuf.m4: New file.
89779
89780 1998-05-12  Jim Meyering  <meyering@ascend.com>
89781
89782         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
89783
89784 1998-05-11  Jim Meyering  <meyering@ascend.com>
89785
89786         * m4/isc-posix.m4: New file.
89787
89788 1998-05-10  Jim Meyering  <meyering@ascend.com>
89789
89790         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
89791
89792 1998-05-09  Jim Meyering  <meyering@ascend.com>
89793
89794         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
89795         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
89796         with automake.
89797
89798         * m4/ssize_t.m4: New file.
89799         * m4/mktime.m4: Remove file -- the new automake has this now.
89800
89801 1998-04-26  Jim Meyering  <meyering@ascend.com>
89802
89803         * m4/assert.m4: New file.
89804         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
89805
89806 1998-04-05  Jim Meyering  <meyering@ascend.com>
89807
89808         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
89809         (jm_PREREQ): Use it here.
89810
89811 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
89812
89813         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
89814         in acconfig.h.
89815
89816 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
89817
89818         * m4/prereq.m4: New file.
89819         * m4/error.m4: New file.
89820         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
89821
89822 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
89823
89824         * m4/getline.m4: Don't set am_cv_func_working_getline before the
89825         cache-check for the same variable -- that defeated the purpose of
89826         the test; the test program was never run.  This was a problem only
89827         on systems with losing getline functions -- HP-UX 10.20 is one.
89828         Reported by Bjorn Helgaas.
89829
89830 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
89831
89832         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
89833
89834 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
89835
89836         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
89837
89838         * m4/const.m4: New file.  Use an initializer in this declaration
89839         typedef int charset[2]; const charset x;
89840         Reported by Bob Glickstein.
89841
89842 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
89843
89844         * m4/chown.m4: Fix reversed types on -1 args to chown.
89845         From Kaveh Ghazi.
89846
89847 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
89848
89849         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
89850         Add lseek and memchr.
89851
89852         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
89853         T.E.Dickey <dickey@clark.net> said that some older preprocessors
89854         have a 20-character limit on names.
89855
89856 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
89857
89858         * m4/inttypes_h.m4: New file.
89859         * m4/uintmax_t.m4: New file.
89860         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
89861
89862
89863         -----
89864
89865         Local Variables:
89866         coding: utf-8
89867         End:
89868
89869         Copyright (C) 1997-2011 Free Software Foundation, Inc.
89870
89871         Copying and distribution of this file, with or without
89872         modification, are permitted provided the copyright notice
89873         and this notice are preserved.