d421257268545c9430600f6e2a02596ae422dfe6
[gnulib.git] / ChangeLog
1 2011-11-20  Bruno Haible  <bruno@clisp.org>
2
3         getcwd: Work around getcwd bug on AIX 5..7.
4         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
5         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
6         Use a different value for gl_cv_func_getcwd_path_max. Move the
7         definition of HAVE_PARTLY_WORKING_GETCWD from here...
8         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
9         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
10         Define HAVE_MINIMALLY_WORKING_GETCWD.
11         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
12         where it is not even minimally working, that is, on AIX.
13         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
14         m4/getcwd-path-max.m4.
15         (main): Update exit code computation.
16         * doc/posix-functions/getcwd.texi: Mention list of platforms where
17         getcwd does not handle long file names.
18
19 2011-11-20  Bruno Haible  <bruno@clisp.org>
20
21         getcwd: Fix bug from 2009-09-10.
22         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
23         like "no".
24
25 2011-11-20  Simon Josefsson  <simon@josefsson.org>
26
27         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
28
29 2011-11-20  Bruno Haible  <bruno@clisp.org>
30
31         fma tests: Avoid shadowing local variables.
32         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
33         expected.
34
35 2011-11-20  Bruno Haible  <bruno@clisp.org>
36
37         copysignf tests: Fix.
38         * tests/test-copysignf.c: Fix signature check.
39
40 2011-11-20  Bruno Haible  <bruno@clisp.org>
41
42         fma: Remove unused code.
43         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
44         unused macros.
45
46 2011-11-20  Bruno Haible  <bruno@clisp.org>
47
48         sethostname: Fix doc about AIX.
49         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
50         sethostname; it has it.
51
52         sethostname: Mention more portability problems.
53         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
54         problem.
55         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
56
57 2011-11-19  Bruno Haible  <bruno@clisp.org>
58
59         Depend on module fcntl-h when AT_FDCWD is used.
60         * modules/utimens (Depends-on): Add fcntl-h.
61         * modules/areadlinkat (Depends-on): Likewise.
62         * modules/areadlinkat-with-size (Depends-on): Likewise.
63         * modules/faccessat (Depends-on): Likewise.
64         * modules/fchmodat (Depends-on): Likewise.
65         * modules/fchownat (Depends-on): Likewise.
66         * modules/getcwd (Depends-on): Likewise.
67         * modules/mkdirat (Depends-on): Likewise.
68         * modules/mkfifoat (Depends-on): Likewise.
69         * modules/readlinkat (Depends-on): Likewise.
70         * modules/symlinkat (Depends-on): Likewise.
71         * modules/dup2-tests (Depends-on): Likewise.
72         * modules/fdutimensat-tests (Depends-on): Likewise.
73         * modules/futimens-tests (Depends-on): Likewise.
74
75 2011-11-19  Bruno Haible  <bruno@clisp.org>
76
77         euidaccess: Update a comment.
78         * lib/euidaccess.c: Update comment about platforms with faccessat.
79
80 2011-11-19  Bruno Haible  <bruno@clisp.org>
81
82         openat: Fix file list.
83         * modules/openat (Files): Remove lib/at-func.c.
84
85 2011-11-19  Bruno Haible  <bruno@clisp.org>
86
87         fstatat: Simplify.
88         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
89         gnulib should define rpl_fstatat, there is a
90         "#define fstatat rpl_fstatat" in <sys/stat.h>.
91
92 2011-11-19  Bruno Haible  <bruno@clisp.org>
93
94         Ensure 'inline' can be used in tests/test-utimens-common.h.
95         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
96         * modules/futimens-tests (configure.ac): Likewise.
97         * modules/utimens-tests (configure.ac): Likewise.
98         * modules/utimensat-tests (configure.ac): Likewise.
99
100 2011-11-19  Simon Josefsson  <simon@josefsson.org>
101
102         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
103         not hash_insert0.
104         (hash_insert_if_absent): Doc fix.
105
106 2011-11-19  Simon Josefsson  <simon@josefsson.org>
107
108         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
109
110 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
111
112         test-getcwd: disambiguate exit status
113         * tests/test-getcwd.c (test_long_name): Return 0..7.
114         (main): Exit with an unambiguous exit status.  The old
115         code yielded a mysterious mixture of two failure codes.
116
117         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
118         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
119         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
120         rpl_fstatat or fstatat.  This should fix the other problem
121         reported by Kai Habel in
122         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
123         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
124         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
125         and I reproduced it on a Solaris 8 host we still have in production.
126
127 2011-11-18  Jim Meyering  <meyering@redhat.com>
128
129         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
130         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
131         Add a sentence to the comment.
132         (hash_insert0): New function that simply calls hash_insert_if_absent.
133         * lib/hash.h (hash_insert_if_absent): Declare it.
134         (hash_insert0): Add deprecation attribute.
135         (_GL_ATTRIBUTE_DEPRECATED): Define.
136         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
137         not hash_insert0.
138         * NEWS: Mention it, even though it's not really an incompatible change.
139
140 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
141
142         openat: avoid compilation failure due to lack of <errno.h> inclusion
143         * lib/openat.c: Include <errno.h>.
144
145 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
146
147         * modules/getcwd (Depends-on): Add fdopendir.
148         This fixes one of the two problems reported by Kai Habel in
149         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
150
151         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
152         stdalign problem reported by Ian Beckwith in
153         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
154         * modules/crypto/gc-arcfour (Depends-on):
155         Depend conditionally on crypto/arcfour.
156         * modules/crypto/gc-arctwo (Depends-on):
157         Depend conditionally on crypto/arctwo.
158         * modules/crypto/gc-des (Depends-on):
159         Depend conditionally on crypto/des.
160         * modules/crypto/gc-hmac-md5 (Depends-on):
161         Depend conditionally on crypto/hmac-md5.
162         * modules/crypto/gc-hmac-sha1 (Depends-on):
163         Depend conditionally on crypto/hmac-sha1.
164         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
165         * modules/crypto/gc-md4 (Depends-on):
166         Depend conditionally on crypto/md4.
167         * modules/crypto/gc-md5 (Depends-on):
168         Depend conditionally on crypto/md5.
169         * modules/crypto/gc-rijndael (Depends-on):
170         Depend conditionally on crypto/rijndael.
171         * modules/crypto/gc-sha1 (Depends-on):
172         Depend conditionally on crypto/sha1.
173         * modules/crypto/gc-arcfour:
174         * modules/crypto/gc-arctwo:
175         * modules/crypto/gc-des:
176         * modules/crypto/gc-hmac-md5:
177         * modules/crypto/gc-hmac-sha1:
178         * modules/crypto/gc-md2:
179         * modules/crypto/gc-md4:
180         * modules/crypto/gc-md5:
181         * modules/crypto/gc-rijndael:
182         * modules/crypto/gc-sha1:
183         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
184         now that the conditional dependencies do the work for us.
185
186 2011-11-17  Jim Meyering  <meyering@redhat.com>
187
188         tests: factor st_ctime-comparison out of two headers
189         * tests/test-utimens-common.h (ctime_compare): Define.
190         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
191         * tests/test-lutimens.h (test_lutimens): Likewise.
192         * tests/test-utimens.h (test_utimens): Likewise.
193
194         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
195         Invoke the test program via an init.sh-using wrapper.
196         * tests/test-getcwd.sh: New file.
197         * modules/getcwd-tests (Files): Add it.
198         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
199
200 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
201
202         gitlog-to-changelog: support multi-author commits.
203         The FSF cares about keeping track of all authors of patches to its
204         projects, but Git doesn't provide obvious support for multi-author
205         changesets. Consensus seems to be forming around the use of extra
206         Signed-off-by inspired lines in the log message formatted as
207         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
208         multi-author commits between version control systems.
209         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
210         log message and output in standard ChangeLog multi-author format.
211         Reported by Peter Rosin <peda@lysator.liu.se>
212
213 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
214             Bruno Haible  <bruno@clisp.org>
215
216         Fix some modules' file list.
217         * modules/fstatat (Files): Add m4/lstat.m4.
218         * modules/openat (Files): Likewise.
219         * modules/unlinkat (Files): Likewise.
220
221 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
222
223         maint.mk: fix tight-scope.mk generation in VPATH builds.
224         * top/maint.mk (tight-scope.mk): Make sure to prefix file
225         reference with $(srcdir) so that the file is found correctly even
226         when running `make syntax-check' in a VPATH build.
227
228 2011-11-13  Bruno Haible  <bruno@clisp.org>
229             Jim Meyering  <meyering@redhat.com>
230
231         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
232         * tests/init.sh (compare): Remove "No differences encountered" or
233         synonymous output from the 'diff' program.
234
235 2011-11-13  Bruno Haible  <bruno@clisp.org>
236
237         Makefile: Tweak indentation.
238         * Makefile: Use tab as first character in every line that contains rule
239         commands.
240
241 2011-11-13  Bruno Haible  <bruno@clisp.org>
242
243         Syntax check for copyright statements.
244         * check-copyright: New file.
245         * Makefile (sc_check_copyright): New rule.
246
247 2011-11-13  Simon Josefsson  <simon@josefsson.org>
248
249         * build-aux/git-version-gen: Add --prefix to configure the tag
250         match string.
251
252 2011-11-13  Simon Josefsson  <simon@josefsson.org>
253
254         * build-aux/git-version-gen: Add --help and --version.
255
256 2011-11-12  Jim Meyering  <meyering@redhat.com>
257
258         revamp the other test-exclude?.sh scripts to use init.sh, too
259         * tests/test-exclude1.sh: Use init.sh.
260         * tests/test-exclude2.sh: Likewise.
261         * tests/test-exclude3.sh: Likewise.
262         * tests/test-exclude4.sh: Likewise.
263         * tests/test-exclude5.sh: Likewise.
264         * tests/test-exclude6.sh: Likewise.
265         * tests/test-exclude7.sh: Likewise.
266         * tests/test-exclude8.sh: Likewise.
267         * modules/exclude-tests (Files): List init.sh.
268
269         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
270         These shell scripts ignored failure of the binary test-exclude,
271         so making the latter return 77 didn't cause them to be skipped.
272         * tests/test-exclude5.sh: Exit with test-exclude's error status
273         when that program fails.  Revamp to use init.sh.
274         * tests/test-exclude2.sh: Likewise.
275
276         test-exclude: fix a typo
277         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
278
279 2011-11-11  Bruno Haible  <bruno@clisp.org>
280
281         obstack: Fix compilation error on MSVC 9.
282         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
283
284 2011-11-11  Jim Meyering  <meyering@redhat.com>
285
286         test-exclude: skip tests rather than failing on deficient systems
287         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
288         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
289         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
290         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
291
292 2011-11-10  Bruno Haible  <bruno@clisp.org>
293
294         ptsname_r test: Avoid gcc warning on glibc systems.
295         * tests/test-ptsname_r.c (null_ptr): New function.
296         (test_errors): Use it.
297
298 2011-11-10  Bruno Haible  <bruno@clisp.org>
299
300         ptsname_r: Avoid compilation error on OSF/1 5.1.
301         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
302         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
303         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
304         function is not declared or incompatibly declared.
305         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
306         * modules/ptsname_r (Depends-on, configure.ac): Update.
307         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
308
309 2011-11-10  Bruno Haible  <bruno@clisp.org>
310
311         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
312         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
313         When cross-compiling, guess yes on all platforms except AIX.
314         Reported by Ludovic Courtès <ludo@gnu.org>.
315
316 2011-11-09  Bruno Haible  <bruno@clisp.org>
317
318         ptsname_r tests: Fix bugs.
319         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
320         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
321
322 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
323
324         fstatat: work with cross-compilation
325         Problem reported by Ludovic Courtès in
326         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
327         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
328         "cross-compiling" and assume the bug is present.  Replace
329         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
330         an inverted sense, to be more conservative about our assumptions.
331         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
332
333 2011-11-09  Bruno Haible  <bruno@clisp.org>
334
335         Improve MODULES.html output.
336         * modules/mkfifoat (Description): Use the word "function".
337         * modules/readlinkat (Description): Likewise.
338         * modules/symlinkat (Description): Likewise.
339
340 2011-11-09  Eric Blake  <eblake@redhat.com>
341
342         ptsname_r-tests: new test module
343         * modules/ptsname_r-tests: New module.
344         * tests/test-ptsname_r.c: New file.
345
346         ptsname_r: new module
347         * modules/ptsname_r: New module.
348         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
349         * lib/ptsname.c (__ptsname_r): Split...
350         * lib/ptsname_r.c: ...into new file.
351         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
352         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
353         * modules/stdlib (Makefile.am): Substitute witnesses.
354         * lib/stdlib.in.h (ptsname_r): Declare it.
355         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
356         * MODULES.html.sh (Misc): Likewise.
357         * modules/ptsname (Depends-on): Alter dependency.
358         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
359
360 2011-11-09  Jim Meyering  <meyering@redhat.com>
361
362         announce-gen: be more concise when there's only one URL+tarball
363         * build-aux/announce-gen (get_tool_versions): When you distribute
364         only one type of tarball, combine the first two "Here are..."
365         sections and make the key-checking grammar independent of
366         how many tarballs there are.
367
368 2011-11-09  Eric Blake  <eblake@redhat.com>
369
370         openpty: provide a stub on mingw
371         * lib/pty.in.h (includes): Provide forward declarations.
372         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
373
374         raise: fix mingw handling of SIGPIPE
375         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
376
377 2011-11-08  Bruno Haible  <bruno@clisp.org>
378
379         More conditional dependencies.
380         * modules/faccessat (Depends-on): Add conditions.
381         * modules/fchmodat (Depends-on): Likewise.
382         * modules/fchownat (Depends-on): Likewise.
383         * modules/fstatat (Depends-on): Likewise.
384         * modules/mkfifoat (Depends-on): Likewise.
385         * modules/readlinkat (Depends-on): Likewise.
386         * modules/symlinkat (Depends-on): Likewise.
387         * modules/unlinkat (Depends-on): Likewise.
388         * modules/utimensat (Depends-on): Likewise.
389         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
390         * modules/linkat (Depends-on): Refine the conditions.
391         * modules/renameat (Depends-on): Likewise.
392
393 2011-11-08  Bruno Haible  <bruno@clisp.org>
394
395         faccessat: Move AC_LIBOBJ invocation to module description.
396         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
397         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
398         invocation from here...
399         * modules/faccessat (configure.ac): ... to here. Invoke
400         gl_PREREQ_FACCESSAT.
401
402 2011-11-08  Bruno Haible  <bruno@clisp.org>
403
404         faccessat: Simplify autoconf macro.
405         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
406         gl_FUNC_EUIDACCESS.
407
408 2011-11-08  Bruno Haible  <bruno@clisp.org>
409
410         renameat: Fix dependencies.
411         * modules/renameat (Depends-on): Add stdbool.
412
413 2011-11-08  Bruno Haible  <bruno@clisp.org>
414
415         mkfifoat: Fix module description.
416         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
417         not gl_UNISTD_MODULE_INDICATOR.
418
419 2011-11-08  Bruno Haible  <bruno@clisp.org>
420
421         fstatat: Remove unused dependency.
422         * modules/fstatat (Depends-on): Remove fstat.
423
424 2011-11-08  Simon Josefsson  <simon@josefsson.org>
425
426         GNUmakefile: behave when Makefile is missing.
427         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
428
429 2011-11-08  Bruno Haible  <bruno@clisp.org>
430
431         openat: Conditionalize dependencies.
432         * lib/openat.c: Reduce the scope of some #includes.
433         * modules/openat (Depends-on): Add conditions.
434
435 2011-11-07  Jim Meyering  <meyering@redhat.com>
436
437         maint.mk: extract GPG key ID without using a temporary file
438         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
439         without using a temporary file.  Based on a suggestion from Werner Koch
440         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
441
442 2011-11-07  Eric Blake  <eblake@redhat.com>
443
444         grantpt: fix typo
445         * lib/stdlib.in.h (grantpt): Check correct function.
446
447         maint.mk: silence new syntax check
448         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
449
450 2011-11-06  Bruno Haible  <bruno@clisp.org>
451
452         Doc about floating-point and math API.
453         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
454         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
455
456 2011-11-06  Bruno Haible  <bruno@clisp.org>
457
458         stdalign tests: Skip the test when compiled by Sun C.
459         * tests/test-stdalign.c (main): Skip the test on Sun C.
460
461 2011-11-06  Bruno Haible  <bruno@clisp.org>
462
463         ansi-c++-opt: Complete the 2011-06-05 change.
464         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
465         does not support namespaces, set the variable to "no", not to ":".
466
467 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
468
469         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
470
471 2011-11-06  Bruno Haible  <bruno@clisp.org>
472
473         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
474         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
475         (minus_zerol) [HP-UX]: New macro.
476         (unary_minus) [HP-UX]: New function.
477         (copysignl) [HP-UX]: Use unary_minus function.
478
479 2011-11-06  Bruno Haible  <bruno@clisp.org>
480
481         ldexp, ldexpf, ldexpl: Enhance tests.
482         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
483         and tests/test-ldexpl.c.
484         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
485         LDEXP, MIN_EXP, MAX_EXP): New macros.
486         Include test-ldexp.h.
487         (main): Just call test_function.
488         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
489         infinity.h, nan.h.
490         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
491         MAX_EXP): New macros.
492         Include test-ldexp.h.
493         (x, y): Remove variables.
494         (main): Just call test_function.
495         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
496         infinity.h, nan.h.
497         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
498         MAX_EXP): New macros.
499         Include test-ldexp.h.
500         (x, y): Remove variables.
501         (main): Just call test_function.
502         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
503         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
504         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
505         (Depends-on): Add isnand-nolibm, signbit, float.
506         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
507         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
508         (Depends-on): Add isnanf-nolibm, signbit, float.
509
510 2011-11-06  Bruno Haible  <bruno@clisp.org>
511
512         math tests: Cosmetics.
513         * tests/test-math-c++.cc: Reorder declarations.
514
515 2011-11-05  Bruno Haible  <bruno@clisp.org>
516
517         fma*: Simplify test.
518         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
519         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
520
521         Tests for module 'fmal'.
522         * modules/fmal-tests: New file.
523         * tests/test-fmal1.c: New file.
524         * tests/test-fmal2.c: New file.
525
526         New module 'fmal'.
527         * lib/math.in.h (fmal): New declaration.
528         * lib/fmal.c: New file.
529         * m4/fmal.m4: New file.
530         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
531         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
532         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
533         REPLACE_FMAL.
534         * modules/fmal: New file.
535         * doc/posix-functions/fmal.texi: Mention the new module and the various
536         bugs.
537
538         Tests for module 'fmaf'.
539         * modules/fmaf-tests: New file.
540         * tests/test-fmaf1.c: New file.
541         * tests/test-fmaf2.c: New file.
542
543         New module 'fmaf'.
544         * lib/math.in.h (fmaf): New declaration.
545         * lib/fmaf.c: New file.
546         * m4/fmaf.m4: New file.
547         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
548         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
549         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
550         REPLACE_FMAF.
551         * modules/fmaf: New file.
552         * doc/posix-functions/fmaf.texi: Mention the new module and the various
553         bugs.
554
555         Tests for module 'fma'.
556         * modules/fma-tests: New file.
557         * tests/test-fma1.c: New file.
558         * tests/test-fma1.h: New file.
559         * tests/test-fma2.c: New file.
560         * tests/test-fma2.h: New file.
561
562         New module 'fma'.
563         * lib/math.in.h (fma): New declaration.
564         * lib/fma.c: New file.
565         * m4/fma.m4: New file.
566         * m4/fegetround.m4: New file.
567         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
568         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
569         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
570         REPLACE_FMA.
571         * modules/fma: New file.
572         * doc/posix-functions/fma.texi: Mention the new module and the various
573         bugs.
574
575         Extend gl_MATHFUNC.
576         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
577         Support 'void' as argument type.
578         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
579
580 2011-11-05  Jim Meyering  <meyering@redhat.com>
581
582         maint.mk: also prohibit inclusion of dirent.h without use
583         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
584
585 2011-11-05  Bruno Haible  <bruno@clisp.org>
586
587         ldexpl tests: Avoid test failure on MSVC 9.
588         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
589         value. Needed in order to enforce the conversion from a value greater
590         than LDBL_MAX to Infinity.
591
592 2011-11-05  Bruno Haible  <bruno@clisp.org>
593
594         New modules 'at-internal', 'openat-h', split off from module 'openat'.
595         * modules/at-internal: New file, extracted from modules/openat.
596         * modules/openat-h: New file.
597         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
598         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
599         * modules/openat (Description): Add reference to POSIX function.
600         (Files): Remove lib/openat.h, lib/openat-proc.c.
601         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
602         intprops, unistd.
603         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
604         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
605         gl_FCNTL_MODULE_INDICATOR.
606         (Include): Remove unistd.h, openat.h.
607         * modules/areadlinkat (Files): Add lib/at-func.c.
608         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
609         openat-die, openat-h, save-cwd.
610         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
611         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
612         openat-die, openat-h, save-cwd, unistd.
613         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
614         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
615         openat-h, save-cwd. Remove fcntl-h, openat.
616         * modules/fchmodat (Files): Remove lib/openat.h.
617         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
618         openat, stdbool, unistd.
619         * modules/fchownat (Files): Remove lib/openat.h.
620         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
621         openat, stdbool, sys_stat.
622         * modules/fdopendir (Files): Remove lib/openat-priv.h,
623         lib/openat-proc.c.
624         (Depends-on): Add at-internal.
625         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
626         * modules/fstatat (Files): Remove lib/openat.h.
627         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
628         stdbool, unistd.
629         * modules/fts (Depends-on): Add openat-h.
630         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
631         openat.
632         * modules/mkdirat (Files): Remove lib/openat.h.
633         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
634         openat, stdbool, sys_stat.
635         * modules/mkfifoat (Files): Add lib/at-func.c.
636         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
637         openat-h, save-cwd. Remove fcntl-h, openat.
638         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
639         * modules/readlinkat (Files): Add lib/at-func.c.
640         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
641         openat-h, save-cwd. Remove fcntl-h, openat.
642         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
643         openat.
644         * modules/selinux-at (Files): Add lib/at-func.c.
645         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
646         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
647         * modules/symlinkat (Files): Add lib/at-func.c.
648         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
649         openat-h, save-cwd. Remove fcntl-h, openat.
650         * modules/unlinkat (Files): Remove lib/openat.h.
651         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
652         stdbool.
653         * modules/utimensat (Files): Add lib/at-func.c.
654         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
655         openat-die, openat-h, save-cwd.
656         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
657         * modules/fdutimensat-tests (Depends-on): Add openat.
658         * modules/fstatat-tests (Depends-on): Add openat-h.
659         * modules/readlinkat-tests (Depends-on): Add openat.
660         * modules/symlinkat-tests (Depends-on): Add openat.
661
662 2011-11-05  Bruno Haible  <bruno@clisp.org>
663
664         openat: Include <stdbool.h>.
665         * lib/openat.c: Include <stdbool.h>.
666
667 2011-11-04  Bruno Haible  <bruno@clisp.org>
668
669         fchownat, renameat, unlinkat: Fix dependencies.
670         * modules/fchownat (Depends-on): Add fstatat.
671         * modules/renameat (Depends-on): Likewise.
672         * modules/unlinkat (Depends-on): Likewise.
673
674 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
675
676         openat: remove direct dependency on dirent
677         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
678         and hasn't been needed ever since fdopendir was split into its own
679         module on 2009-08-31.
680         * modules/openat (Depends-on): Remove dirent.
681
682 2011-11-04  Bruno Haible  <bruno@clisp.org>
683
684         renameat: Optimize code size.
685         * modules/renameat (configure.ac): Don't compile at-func2.c if
686         REPLACE_RENAMEAT is 1.
687
688 2011-11-04  Bruno Haible  <bruno@clisp.org>
689
690         openat tests: Fix file list.
691         * modules/openat-tests (Files): Add tests/test-open.h.
692
693 2011-11-04  Bruno Haible  <bruno@clisp.org>
694
695         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
696         * modules/fchmodat (Depends-on): Add openat-die.
697         * modules/fchownat (Depends-on): Likewise.
698         * modules/linkat (Depends-on): Likewise.
699         * modules/renameat (Depends-on): Likewise.
700         * modules/openat (Depends-on): Add dirent.
701
702 2011-11-04  Jim Meyering  <meyering@redhat.com>
703
704         at-func*.c: fix comments
705         * lib/at-func2.c: Correct/improve first-line comment.
706         * lib/at-func.c: Correct grammar in first-line comment.
707
708 2011-11-04  Bruno Haible  <bruno@clisp.org>
709
710         New module 'mkdirat', split off from module 'openat'.
711         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
712         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
713         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
714         * modules/mkdirat: New file, extracted from modules/openat.
715         * modules/openat (Files): Remove lib/mkdirat.c.
716         (Depends-on): Remove mkdir.
717         (configure.ac): Remove AC_LIBOBJ of mkdirat.
718         (Include): Remove <sys/stat.h>.
719         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
720         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
721         tests/test-mkdir.h.
722         (Depends-on): Remove ignore-value.
723         (Makefile.am): Remove rules for test-mkdirat.
724         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
725         of module 'openat'.
726         * NEWS: Mention the change.
727
728 2011-11-04  Bruno Haible  <bruno@clisp.org>
729
730         closedir: Avoid warning on mingw.
731         * lib/closedir.c: Include <unistd.h>.
732
733 2011-11-04  Bruno Haible  <bruno@clisp.org>
734
735         New module 'fstatat', split off from module 'openat'.
736         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
737         defined.
738         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
739         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
740         gl_FUNC_FSTATAT.
741         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
742         * modules/fstatat: New file, extracted from modules/openat.
743         * modules/openat (Files): Remove lib/fstatat.c.
744         (Depends-on): Remove lstat.
745         (configure.ac): Remove AC_LIBOBJ of fstatat.
746         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
747         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
748         tests/test-lstat.h, tests/test-stat.h.
749         (Depends-on): Remove getcwd-lgpl.
750         (Makefile.am): Remove rules for test-fstatat.
751         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
752         of module 'openat'.
753         * NEWS: Mention the change.
754         * modules/getcwd (Depends-on): Add fstatat.
755         * modules/linkat (Depends-on): Likewise.
756         * modules/mkfifoat-tests (Depends-on): Likewise.
757         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
758
759 2011-11-03  Bruno Haible  <bruno@clisp.org>
760
761         New module 'unlinkat', split off from module 'openat'.
762         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
763         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
764         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
765         * modules/unlinkat: New file, extracted from modules/openat. Correct
766         the dependency conditions.
767         * modules/openat (Files): Remove lib/unlinkat.c.
768         (Depends-on): Remove rmdir, unlink.
769         (configure.ac): Remove AC_LIBOBJ of unlinkat.
770         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
771         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
772         tests/test-rmdir.h, tests/test-unlink.h.
773         (Depends-on): Remove unlinkdir.
774         (Makefile.am): Remove rules for test-unlinkat.
775         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
776         of module 'openat'.
777         * NEWS: Mention the change.
778         * modules/linkat-tests (Depends-on): Add unlinkat.
779         * modules/mkfifoat-tests (Depends-on): Likewise.
780         * modules/readlinkat-tests (Depends-on): Likewise.
781
782 2011-11-02  Bruno Haible  <bruno@clisp.org>
783
784         New module 'fchmodat', split off from module 'openat'.
785         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
786         defined.
787         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
788         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
789         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
790         * modules/fchmodat: New file, extracted from modules/openat.
791         * modules/openat (Files): Remove lib/fchmodat.c.
792         (configure.ac): Remove AC_LIBOBJ of fchmodat.
793         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
794         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
795         (Makefile.am): Remove rules for test-fchmodat.
796         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
797         of module 'openat'.
798         * NEWS: Mention the change.
799
800 2011-11-02  Jim Meyering  <meyering@redhat.com>
801
802         putenv: indent #definition of "environ" to placate cppi
803         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
804
805         gitlog-to-changelog: provide a ChangeLog-repair mechanism
806         Git logs are often treated as immutable, because editing them
807         changes the SHA1 checksums of all descendants.  Thus, errors in
808         git logs tend to stay there forever.  However, when we generate
809         a ChangeLog file -- typically for distribution -- from that git log,
810         we can actually make corrections in the generated file.  The key
811         lies in recording in machine-readable/applicable form the desired
812         corrections.  See --help for description and an example.
813         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
814         (usage): Describe it; alphabetize option descriptions.
815         (main): Honor the new option, carefully.
816
817 2011-11-01  Jim Meyering  <meyering@redhat.com>
818
819         gitlog-to-changelog: avoid an infloop
820         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
821         that ends up being empty.
822
823 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
824
825         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
826         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
827         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
828         contains (possibly-quoted) backslashes.  This should avoid
829         all-too-common shell bugs if COMPLICATED contains backslashes in
830         the "wrong" places.  Reported by David Evans in
831         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
832         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
833         because we want ASCII ranges.  Is there some reason we don't use
834         the C locale everywhere in this script?
835         (func_module, top level): Avoid unwanted pathname expansion when
836         $repo_url_prefix or $repo_url_suffix_repl contain shell
837         metacharacters like '?' and '*'.
838
839 2011-11-01  Bruno Haible  <bruno@clisp.org>
840
841         fchownat: Improve description.
842         * modules/fchownat (Description): Add link to function.
843
844 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
845
846         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
847         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
848         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
849         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
850
851 2011-11-01  Bruno Haible  <bruno@clisp.org>
852
853         alignof: Avoid collision with stdalign module.
854         * lib/alignof.h (alignof): Remove macro.
855         * NEWS: Mention the change.
856         Reported by Paul Eggert.
857
858 2011-11-01  Bruno Haible  <bruno@clisp.org>
859
860         New module 'fchownat', split off from module 'openat'.
861         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
862         defined.
863         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
864         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
865         invoke gl_FUNC_FCHOWNAT.
866         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
867         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
868         * modules/fchownat: New file, extracted from modules/openat.
869         * modules/openat (Files): Remove lib/fchownat.c.
870         (Depends-on): Remove lchown.
871         (configure.ac): Remove AC_LIBOBJ of fchownat.
872         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
873         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
874         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
875         (Depends-on): Remove mgetgroups, usleep, stat-time.
876         (configure.ac): Remove test for getegid.
877         (Makefile.am): Remove rules for test-fchownat.
878         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
879         of module 'openat'.
880         * NEWS: Mention the change.
881
882 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
883
884         stdalign: port better to MSVC and to Sun C 5.11
885         This fixes some of the problems reported by Bruno Haible in
886         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
887         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
888         shortcomings of MSVC and of Sun C 5.11.
889         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
890         around __declspec arg.
891         * modules/stdalign-tests (Files): Add tests/macros.h.
892         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
893         Include macros.h, for ASSERT.
894         (DECLARE_ALIGNED): Remove.
895         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
896         to catch bug), and to 1 if not (simplifies the rest of the code).
897         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
898         (CHECK_AUTO): Remove.
899         (CHECK_ALIGNED): Check only the alignment of the static vars,
900         since auto var alignment isn't supported by Sun C 5.11.
901         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
902         ASSERT failures are easier to diagnose.
903
904 2011-10-31  Bruno Haible  <bruno@clisp.org>
905
906         doc about some IRIX 5.3 problems.
907         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
908         on IRIX 5.3.
909         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
910         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
911         5.3.
912         * doc/posix-functions/grantpt.texi: Likewise.
913         * doc/posix-functions/unlockpt.texi: Likewise.
914         * doc/posix-functions/lgamma.texi: Likewise.
915         * doc/posix-functions/nextafter.texi: Likewise.
916         * doc/posix-functions/remainder.texi: Likewise.
917         * doc/posix-functions/select.texi: Mention misplaced declaration on
918         IRIX 5.3.
919         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
920
921 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
922
923         gitlog-to-changelog: fix git-log invocation.
924         git-log mishandles date strings before 1970-01-01 UTC, and there is
925         no use to specify --since=1970-01-01 by default anyway.
926         * build-aux/gitlog-to-changelog: By default, when no --since option
927         was given, do not specify explicit --since option to git-log.
928
929 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
930
931         gitlog-to-changelog: new option --append-dot.
932         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
933         first non-blank line of each commit message terminated with a dot.
934
935 2011-10-30  Bruno Haible  <bruno@clisp.org>
936
937         ffsl, ffsll: Avoid compilation error due to 'restrict'.
938         * lib/ffsl.h: Include <config.h>.
939         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
940
941 2011-10-30  Jim Meyering  <meyering@redhat.com>
942
943         GNUmakefile: reenable "make syntax-check" for most projects
944         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
945         build-aux variable", "syntax-check" would do nothing but succeed with
946         the "No version control files detected..." diagnostic (unless you
947         happened to override _build-aux via cfg.mk).
948         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
949         to precede inclusion of maint.mk.  Otherwise, these variables would
950         be used undefined in any project that does not override the default.
951
952 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
953
954         gitlog-to-changelog: treat a message with only blank lines as empty.
955         * build-aux/gitlog-to-changelog: Move the code that removes leading and
956         trailing blank lines before the code that issues a warning about an
957         empty commit message.
958
959 2011-10-30  Jim Meyering  <meyering@redhat.com>
960
961         test-parse-datetime.c: avoid new DST-related false positive test failure
962         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
963         based on the time/date we'll convert, not the current time.
964         Otherwise, the moment we cross a DST boundary like today's in
965         Europe, (CEST to CET), that offset ends up being one hour off.
966
967 2011-10-27  Bruno Haible  <bruno@clisp.org>
968
969         fstat: Tweak documentation.
970         * modules/fstat (Description): More precise description.
971
972 2011-10-27  Bruno Haible  <bruno@clisp.org>
973
974         Update documentation regarding 'largefile' module.
975         * doc/posix-functions/fstat.texi: Tweak wording.
976         * doc/posix-functions/opendir.texi: Mention that the module fixes the
977         problems with huge directories and/or small ino_t types.
978         * doc/posix-functions/readdir.texi: Likewise.
979         * doc/posix-functions/rewinddir.texi: Likewise.
980
981 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
982
983         maint.mk: don't maintain a second build-aux variable.
984         * maint.mk (build_aux): Removed.  The maintainer-makefile module
985         depends on GNUmakefile, which already maintains a cfg.mk
986         overridable $(_build-aux) for projects with a non-standard
987         build-aux directory location, although without the $(srcdir)
988         prefix.  Use that variable consistently instead of introducing a
989         second one.  Adjust all call sites.
990
991 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
992
993         Add stdalign module and use it in other modules.
994         This is based on a previous proposal by Bruno Haible
995         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
996
997         stdalign: new module
998         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
999         * modules/stdalign: New files.
1000         * MODULES.html.sh (c1x_core_properties): Add stdalign.
1001         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
1002
1003         stdalign-tests: new module
1004         * modules/stdalign-tests, tests/test-stdalign.c: New files.
1005
1006         argp: use stdalign
1007         * lib/argp-parse.c: Include <stdalign.h>.
1008         (alignof): Remove.
1009         * modules/argp (Depends-on): Add stdalign.
1010
1011         crypto libraries: use stdalign
1012         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
1013         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
1014         Do not include <stdlib.h> twice, in md4.c.
1015         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
1016         because we are accessing a pointer's bit-pattern, not a size.
1017         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
1018         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
1019         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
1020         * modules/crypto/sha512: Likewise.
1021
1022         sys_socket: use stdalign, not alignof
1023         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
1024         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
1025
1026 2011-10-27  Bruno Haible  <bruno@clisp.org>
1027
1028         raise test: Avoid a test failure on Linux/MIPS.
1029         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
1030         because 99 is a valid signal on Linux/MIPS.
1031
1032 2011-10-27  Bruno Haible  <bruno@clisp.org>
1033
1034         nonblocking tests: Fix test failure on Linux/MIPS.
1035         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
1036         Set to 270000.
1037
1038 2011-10-27  Bruno Haible  <bruno@clisp.org>
1039
1040         utimensat: Work around problem on Linux/hppa.
1041         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
1042         values.
1043         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
1044
1045 2011-10-25  Jim Meyering  <meyering@redhat.com>
1046
1047         maint.mk: fix a bug in sc_prohibit_stddef_without_use
1048         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
1049         after symbols like NULL, size_t, etc.
1050         Reported by Alfred M. Szmidt.
1051
1052         maint.mk: exempt ENODATA from a syntax-check rule
1053         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
1054         from the sc_prohibit_always-defined_macros syntax-check rule.
1055         Add a comment.  See this for more details:
1056         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
1057
1058 2011-10-23  Jim Meyering  <meyering@redhat.com>
1059
1060         fts: close parent dir FD before returning from post-traversal fts_read
1061         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
1062         unlink A, even though an FD open on A remained.  This is suboptimal
1063         (holding a file descriptor open longer than needed), but otherwise not
1064         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
1065         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
1066         that represents a real problem: it causes the removal of A to fail
1067         with e.g., "rm: cannot remove `A': Device or resource busy"
1068
1069         fts visits each directory twice and keeps a cache (fts_fd_ring) of
1070         directory file descriptors.  After completing the final, FTS_DP,
1071         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
1072         cache, but then proceeded to add a new FD to it via the subsequent
1073         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
1074         final file descriptor would be closed only via fts_close's call to
1075         fd_ring_clear.  Now, it is usually closed earlier, via the final
1076         FTS_DP-returning fts_read call.
1077         * lib/fts.c (restore_initial_cwd): New function, converted from
1078         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
1079         Update callers.
1080         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
1081         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
1082
1083 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
1084             Bruno Haible  <bruno@clisp.org>
1085             Jim Meyering  <jim@meyering.net>
1086
1087         readme-release: improve safety of release prep instructions.
1088         * README-release: Don't git pull all branches when only master
1089         is needed for the release process.
1090         Run make maintainer-clean before changing trees and merging.
1091         Don't try to run ./configure right after git pull in case files
1092         that influence the bootstrap process have changed, move the
1093         ./configure step to after running ./bootstrap.
1094         Don't bootstrap "one last time"... it's the first time!
1095
1096 2011-10-22  Bruno Haible  <bruno@clisp.org>
1097
1098         errno, strerror-override: Support for MSVC 10.
1099         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
1100         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
1101         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
1102         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
1103         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
1104         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
1105         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
1106         Assign values compatible with MSVC 10.
1107         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
1108         New macros.
1109         (GNULIB_defined_EWINSOCK): New macro.
1110         * lib/strerror-override.c (strerror_override): Update accordingly.
1111         * lib/strerror-override.h: Likewise.
1112         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
1113         longer equal to the corresponding errno value.
1114         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
1115
1116 2011-10-22  Bruno Haible  <bruno@clisp.org>
1117
1118         perror: Recognize when test program crashes.
1119         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
1120         strerror, set gl_cv_func_perror_works to no.
1121         Reported by Daniel Richard G. <skunk@iskunk.org>.
1122
1123         perror: Fix indentation.
1124         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
1125
1126 2011-10-22  Bruno Haible  <bruno@clisp.org>
1127
1128         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
1129         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
1130         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
1131         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
1132         functions, not as a macro.
1133         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
1134         macros.
1135         (isfinite, isinf, isnan, signbit): Check overloaded functions and
1136         absence of macro.
1137         Suggested by Eric Blake.
1138         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
1139
1140 2011-10-21  Bruno Haible  <bruno@clisp.org>
1141
1142         relocatable-prog-wrapper: Don't leave object files behind.
1143         * build-aux/install-reloc: Re-synchronize list of .o files to be
1144         removed with list of compilation units.
1145
1146 2011-10-20  Bruno Haible  <bruno@clisp.org>
1147
1148         openpty, posix_openpt: Remove code duplication.
1149         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
1150         * lib/openpty.c: Include <stdlib.h>.
1151         (openpty): Use posix_openpt on all platforms except IRIX.
1152         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
1153
1154 2011-10-20  Bruno Haible  <bruno@clisp.org>
1155
1156         unlockpt: Detect invalid argument.
1157         * lib/unlockpt.c: Include <fcntl.h>.
1158         (unlockpt): Check whether fd is valid, using fcntl().
1159         * modules/unlockpt (Depends-on): Add fcntl-h.
1160
1161 2011-10-20  Bruno Haible  <bruno@clisp.org>
1162
1163         openpty: Avoid compilation error on AIX 6.1.
1164         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
1165
1166 2011-10-20  Bruno Haible  <bruno@clisp.org>
1167
1168         posix_openpt: Support for OpenBSD.
1169         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
1170         (posix_openpt) [OpenBSD]: New code.
1171         * lib/grantpt.c: Include <fcntl.h>.
1172         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
1173         * modules/grantpt (Depends-on): Add fcntl-h.
1174
1175 2011-10-20  Bruno Haible  <bruno@clisp.org>
1176
1177         posix_openpt test: Coding style.
1178         * tests/test-posix_openpt.c: Use GNU coding style.
1179
1180 2011-10-20  Bruno Haible  <bruno@clisp.org>
1181
1182         grantpt: Support --avoid=pt_chown.
1183         * modules/grantpt (Files): Add lib/pty-private.h.
1184
1185 2011-10-20  Bruno Haible  <bruno@clisp.org>
1186
1187         posix_openpt: Fix autoconf macro.
1188         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
1189         unneeded check for _getpty.
1190
1191 2011-10-20  Bruno Haible  <bruno@clisp.org>
1192
1193         openpty: Update comments.
1194         * lib/openpty.c: Add comments about Minix.
1195
1196 2011-10-19  Eric Blake  <eblake@redhat.com>
1197
1198         openpty: relax license
1199         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
1200
1201         pt_chown: use configmake to simplify build
1202         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
1203
1204         ptsname and others: relax license
1205         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
1206         * modules/unlockpt (License): Likewise.
1207         * modules/pt_chown (License): Likewise.
1208         * modules/ptsname (License): Likewise.
1209         * modules/ttyname_r (License): Likewise.
1210
1211 2011-10-19  Jim Meyering  <meyering@redhat.com>
1212
1213         posix_openpt: remove spurious #endif
1214         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
1215
1216 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
1217
1218         maint.mk: Respect $(build_aux) in web-manual rule.
1219         * top/maint.mk (web-manual): Find gen-announce script in user's
1220         $(build_aux) directory instead of hard-coding 'build-aux'.
1221
1222 2011-10-19  Bruno Haible  <bruno@clisp.org>
1223
1224         posix_openpt: Fix compilation error.
1225         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
1226         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
1227         Mention the openpty module as an alternative.
1228
1229 2011-10-19  Bruno Haible  <bruno@clisp.org>
1230
1231         Support for old NeXTstep 3.3 frexp().
1232         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
1233         execution time of the test to 5 seconds.
1234         Reported by Daniel Richard G. <skunk@iskunk.org>.
1235
1236 2011-10-19  Bruno Haible  <bruno@clisp.org>
1237
1238         Support for old NeXTstep 3.3 sed.
1239         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
1240         part, use /.../, not \|...|. Escape periods in the header file name.
1241         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
1242         Reported by Daniel Richard G. <skunk@iskunk.org>.
1243
1244 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
1245
1246         Support for old NeXTstep 3.3 gcc.
1247         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
1248         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
1249         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
1250         * lib/spawn.in.h (_Restrict_arr_): Likewise.
1251         * lib/regex.h (_Restrict_arr_): Likewise.
1252         * lib/regex_internal.h (re_token_t): Likewise.
1253         * lib/regexec.c (check_node_accept_bytes): Likewise.
1254         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
1255
1256 2011-10-18  Eric Blake  <eblake@redhat.com>
1257
1258         posix_openpt: new module
1259         * modules/posix_openpt: New module.
1260         * m4/posix_openpt.m4: New file.
1261         * lib/posix_openpt.c: Likewise.
1262         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
1263         (gl_STDLIB_H_DEFAULTS): Set defaults.
1264         * modules/stdlib (Makefile.am): Substitute macros.
1265         * lib/stdlib.in.h (posix_openpt): Declare.
1266         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
1267         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
1268         * modules/posix_openpt-tests: New test module.
1269         * tests/test-posix_openpt.c: New test.
1270
1271 2011-10-15  Bruno Haible  <bruno@clisp.org>
1272
1273         xstrtoll: Fix compilation failure.
1274         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
1275         from lib/strtol.c.
1276         * doc/posix-headers/limits.texi: Mention missing numerical limits on
1277         some platforms.
1278         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1279
1280 2011-10-15  Bruno Haible  <bruno@clisp.org>
1281
1282         vasnprintf: Optimize bit search operation.
1283         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
1284         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
1285         gl_DOUBLE_EXPONENT_LOCATION.
1286         * modules/vasnprintf (Files): Add m4/exponentd.m4.
1287         * modules/unistdio/u8-vasnprintf (Files): Likewise.
1288         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
1289         * modules/unistdio/u16-vasnprintf (Files): Likewise.
1290         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
1291         * modules/unistdio/u32-vasnprintf (Files): Likewise.
1292         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
1293         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
1294         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
1295
1296 2011-10-15  Bruno Haible  <bruno@clisp.org>
1297
1298         vasnprintf: Fix comments.
1299         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
1300
1301 2011-10-14  Bruno Haible  <bruno@clisp.org>
1302
1303         Tests for module 'integer_length_ll'.
1304         * modules/integer_length_ll-tests: New file.
1305         * tests/test-integer_length_ll.c: New file.
1306
1307         New module 'integer_length_ll'.
1308         * lib/integer_length_ll.c: New file.
1309         * modules/integer_length_ll: New file.
1310
1311 2011-10-14  Bruno Haible  <bruno@clisp.org>
1312
1313         Tests for module 'integer_length_l'.
1314         * modules/integer_length_l-tests: New file.
1315         * tests/test-integer_length_l.c: New file.
1316
1317         New module 'integer_length_l'.
1318         * lib/integer_length_l.c: New file.
1319         * modules/integer_length_l: New file.
1320
1321 2011-10-14  Bruno Haible  <bruno@clisp.org>
1322
1323         Tests for module 'integer_length'.
1324         * modules/integer_length-tests: New file.
1325         * tests/test-integer_length.c: New file.
1326
1327         New module 'integer_length'.
1328         * lib/integer_length.h: New file.
1329         * lib/integer_length.c: New file.
1330         * modules/integer_length: New file.
1331
1332 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
1333
1334         popen: Fix dependency conditions.
1335         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
1336
1337 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
1338
1339         perror: Fix autoconf test.
1340         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
1341         <stdlib.h> and <string.h>.
1342
1343 2011-10-14  Bruno Haible  <bruno@clisp.org>
1344
1345         ffsl: Optimize on 64-bit platforms.
1346         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
1347         unrolling.
1348
1349 2011-10-13  Bruno Haible  <bruno@clisp.org>
1350
1351         ffsl: Optimize on 32-bit platforms.
1352         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
1353         use ffs() without a loop.
1354
1355         ffsl, ffsll: Optimize for GCC.
1356         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
1357         * lib/ffsl.c (GCC_BUILTIN): New macro.
1358         * lib/ffsll.c (GCC_BUILTIN): Likewise.
1359
1360 2011-10-13  Bruno Haible  <bruno@clisp.org>
1361
1362         ffs, bcopy, memset: Support symbol renaming via config.h.
1363         * lib/ffs.c: Include <config.h>.
1364         * lib/bcopy.c: Likewise.
1365         * lib/memset.c: Likewise.
1366
1367 2011-10-10  Bruno Haible  <bruno@clisp.org>
1368
1369         atanl: Simplify for platforms where 'long double' == 'double'.
1370         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1371         alternative implementation.
1372         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1373         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1374         * modules/atanl (Depends-on): Add atan. Update conditions.
1375
1376 2011-10-10  Bruno Haible  <bruno@clisp.org>
1377
1378         acosl: Simplify for platforms where 'long double' == 'double'.
1379         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1380         alternative implementation.
1381         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1382         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1383         * modules/acosl (Depends-on): Add acos. Update conditions.
1384
1385 2011-10-10  Bruno Haible  <bruno@clisp.org>
1386
1387         asinl: Simplify for platforms where 'long double' == 'double'.
1388         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1389         alternative implementation.
1390         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1391         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1392         * modules/asinl (Depends-on): Add asin. Update conditions.
1393
1394 2011-10-10  Bruno Haible  <bruno@clisp.org>
1395
1396         tanl: Simplify for platforms where 'long double' == 'double'.
1397         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1398         implementation.
1399         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1400         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1401         * modules/tanl (Depends-on): Add tan. Update conditions.
1402         (configure.ac): Don't compile trigl.c if
1403         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1404
1405 2011-10-10  Bruno Haible  <bruno@clisp.org>
1406
1407         cosl: Simplify for platforms where 'long double' == 'double'.
1408         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1409         implementation.
1410         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1411         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1412         * modules/cosl (Depends-on): Add cos. Update conditions.
1413         (configure.ac): Don't compile sincosl.c and trigl.c if
1414         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1415
1416 2011-10-10  Bruno Haible  <bruno@clisp.org>
1417
1418         sinl: Simplify for platforms where 'long double' == 'double'.
1419         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1420         implementation.
1421         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1422         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1423         * modules/sinl (Depends-on): Add sin. Update conditions.
1424         (configure.ac): Don't compile sincosl.c and trigl.c if
1425         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1426
1427 2011-10-10  Bruno Haible  <bruno@clisp.org>
1428
1429         logl: Simplify for platforms where 'long double' == 'double'.
1430         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1431         implementation.
1432         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1433         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1434         * modules/logl (Depends-on): Add log. Update conditions.
1435
1436 2011-10-10  Bruno Haible  <bruno@clisp.org>
1437
1438         expl: Simplify for platforms where 'long double' == 'double'.
1439         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1440         implementation.
1441         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1442         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1443         * modules/expl (Depends-on): Add exp. Update conditions.
1444
1445 2011-10-10  Bruno Haible  <bruno@clisp.org>
1446
1447         sqrtl: Simplify for platforms where 'long double' == 'double'.
1448         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1449         alternative implementation.
1450         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1451         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1452         * modules/sqrtl (Depends-on): Update conditions.
1453
1454 2011-10-10  Bruno Haible  <bruno@clisp.org>
1455
1456         ldexpl: Simplify for platforms where 'long double' == 'double'.
1457         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1458         alternative implementation.
1459         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1460         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1461         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
1462
1463 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
1464
1465         ffsll: set correct witness
1466         * modules/ffsll (configure.ac): Fix typo.
1467
1468 2011-10-10  Bruno Haible  <bruno@clisp.org>
1469
1470         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
1471         * lib/printf-frexpl.c: Include <config.h>.
1472         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1473         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
1474         second time.
1475         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
1476         gl_LONG_DOUBLE_VS_DOUBLE.
1477         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
1478         conditions.
1479
1480 2011-10-10  Bruno Haible  <bruno@clisp.org>
1481
1482         frexpl: Simplify for platforms where 'long double' == 'double'.
1483         * lib/frexpl.c: Include <config.h>.
1484         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1485         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1486         time.
1487         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1488         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1489         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
1490         * modules/frexpl (Depends-on): Add frexp. Update conditions.
1491         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
1492         conditions.
1493
1494 2011-10-10  Jim Meyering  <meyering@redhat.com>
1495
1496         test-renameat: don't leave behind a temporary file
1497         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
1498           ERROR: files left in build directory after distclean:
1499           ./gltests/test-renameat.too
1500           make[1]: *** [distcleancheck] Error 1
1501         Reported by Tom G. Christensen.
1502
1503 2011-10-09  Bruno Haible  <bruno@clisp.org>
1504
1505         rint: Determine RINT_LIBM correctly on AIX 7.
1506         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
1507         directly, not only through a function pointer. Also accept an optional
1508         4th argument with extra code.
1509         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
1510         rintf() call by gcc when optimizing.
1511
1512         mathfunc.m4: Refactor.
1513         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
1514         m4 variable.
1515
1516 2011-10-09  Bruno Haible  <bruno@clisp.org>
1517
1518         rintl: Simplify for platforms where 'long double' == 'double'.
1519         * lib/rintl.c: Include <config.h>.
1520         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1521         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1522         time.
1523         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1524         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1525         * modules/rintl (Depends-on): Add rint. Update conditions.
1526
1527 2011-10-09  Bruno Haible  <bruno@clisp.org>
1528
1529         roundl: Simplify for platforms where 'long double' == 'double'.
1530         * lib/roundl.c: Include <config.h>.
1531         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1532         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1533         time.
1534         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1535         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1536         * modules/roundl (Depends-on): Add round. Update conditions.
1537
1538 2011-10-09  Bruno Haible  <bruno@clisp.org>
1539
1540         truncl: Simplify for platforms where 'long double' == 'double'.
1541         * lib/truncl.c: Include <config.h>.
1542         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1543         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1544         time.
1545         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1546         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1547         * modules/truncl (Depends-on): Add trunc. Update conditions.
1548
1549 2011-10-09  Bruno Haible  <bruno@clisp.org>
1550
1551         ceill: Simplify for platforms where 'long double' == 'double'.
1552         * lib/ceill.c: Include <config.h>.
1553         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1554         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1555         time.
1556         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1557         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1558         * modules/ceill (Depends-on): Add ceil. Update conditions.
1559
1560 2011-10-09  Bruno Haible  <bruno@clisp.org>
1561
1562         floorl: Simplify for platforms where 'long double' == 'double'.
1563         * lib/floorl.c: Include <config.h>.
1564         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1565         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1566         time.
1567         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1568         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1569         * modules/floorl (Depends-on): Add floor. Update conditions.
1570
1571 2011-10-09  Bruno Haible  <bruno@clisp.org>
1572
1573         rint: Fix ordering constraints.
1574         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
1575         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
1576         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
1577
1578 2011-10-09  Bruno Haible  <bruno@clisp.org>
1579
1580         copysignl: Simplify for platforms where 'long double' == 'double'.
1581         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1582         alternative.
1583         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1584         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1585         * modules/copysignl (Depends-on): Add copysign. Update conditions.
1586
1587 2011-10-09  Bruno Haible  <bruno@clisp.org>
1588
1589         Tests for module 'rintl'.
1590         * modules/rintl-tests: New file.
1591         * tests/test-rintl.c: New file.
1592
1593         New module 'rintl'.
1594         * lib/math.in.h (rintl): New declaration.
1595         * lib/rintl.c: New file.
1596         * m4/rintl.m4: New file.
1597         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
1598         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
1599         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
1600         * modules/rintl: New file.
1601         * tests/test-math-c++.cc: Check the declaration of rintl.
1602         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
1603         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
1604         * doc/posix-functions/rintl.texi: Mention the new module.
1605
1606 2011-10-09  Bruno Haible  <bruno@clisp.org>
1607
1608         Tests for module 'rintf'.
1609         * modules/rintf-tests: New file.
1610         * tests/test-rintf.c: New file.
1611
1612         New module 'rintf'.
1613         * lib/math.in.h (rintf): New declaration.
1614         * lib/rintf.c: New file.
1615         * m4/rintf.m4: New file.
1616         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
1617         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
1618         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
1619         * modules/rintf: New file.
1620         * tests/test-math-c++.cc: Check the declaration of rintf.
1621         * doc/posix-functions/rintf.texi: Mention the new module.
1622
1623 2011-10-09  Bruno Haible  <bruno@clisp.org>
1624
1625         rint: Support for MSVC.
1626         * lib/math.in.h (rint): New declaration.
1627         * lib/rint.c: New file.
1628         * m4/rint.m4: New file.
1629         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
1630         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
1631         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
1632         * modules/rint (Description): Fix.
1633         (Files): Add lib/rint.c, m4/rint.m4.
1634         (Depends-on): Add math.
1635         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
1636         gl_MATH_MODULE_INDICATOR.
1637         * tests/test-math-c++.cc: Check the declaration of rint.
1638         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
1639         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
1640         * doc/posix-functions/rint.texi: Mention the replacement provided by
1641         the module.
1642
1643         rint tests: More tests.
1644         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
1645         minus-zero.h, infinity.h, nan.h.
1646         (main): Skip the test if the current rounding mode is not standard. Add
1647         tests for negative numbers, minus zero, infinity, NaN.
1648         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
1649         tests/nan.h.
1650         (Depends-on): Add isnand-nolibm.
1651
1652 2011-10-09  Bruno Haible  <bruno@clisp.org>
1653
1654         Tests for module 'copysignl'.
1655         * modules/copysignl-tests: New file.
1656         * tests/test-copysignl.c: New file.
1657
1658         New module 'copysignl'.
1659         * lib/math.in.h (copysignl): New declaration.
1660         * lib/copysignl.c: New file.
1661         * m4/copysignl.m4: New file.
1662         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
1663         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
1664         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
1665         HAVE_COPYSIGNL.
1666         * modules/copysignl: New file.
1667         * tests/test-math-c++.cc: Check the declaration of copysignl.
1668         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
1669         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
1670         * doc/posix-functions/copysignl.texi: Mention the new module.
1671
1672 2011-10-09  Bruno Haible  <bruno@clisp.org>
1673
1674         Tests for module 'copysignf'.
1675         * modules/copysignf-tests: New file.
1676         * tests/test-copysignf.c: New file.
1677
1678         New module 'copysignf'.
1679         * lib/math.in.h (copysignf): New declaration.
1680         * lib/copysignf.c: New file.
1681         * m4/copysignf.m4: New file.
1682         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
1683         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
1684         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
1685         HAVE_COPYSIGNF.
1686         * modules/copysignf: New file.
1687         * tests/test-math-c++.cc: Check the declaration of copysignf.
1688         * doc/posix-functions/copysignf.texi: Mention the new module.
1689
1690 2011-10-09  Bruno Haible  <bruno@clisp.org>
1691
1692         Ensure that HAVE_* variables are set to 1 before they are set to 0.
1693         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
1694         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
1695         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
1696         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
1697         gl_SIGNAL_H_DEFAULTS.
1698
1699 2011-10-09  Bruno Haible  <bruno@clisp.org>
1700
1701         poll: Make macro safer.
1702         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
1703         ac_cv_header_poll_h is not set.
1704
1705 2011-10-09  Bruno Haible  <bruno@clisp.org>
1706
1707         copysign: Provide replacement.
1708         * lib/math.in.h (copysign): New declaration.
1709         * lib/copysign.c: New file.
1710         * m4/copysign.m4: New file.
1711         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
1712         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
1713         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
1714         HAVE_COPYSIGN.
1715         * modules/copysign (Description): Clarify.
1716         (Files): Add lib/copysign.c, m4/copysign.m4.
1717         (Depends-on): Add math, signbit.
1718         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
1719         gl_MATH_MODULE_INDICATOR.
1720         * tests/test-math-c++.cc: Check the declaration of copysign.
1721         * doc/posix-functions/copysign.texi: Mention the effects of the module
1722         on Minix and MSVC.
1723
1724 2011-10-09  Bruno Haible  <bruno@clisp.org>
1725
1726         isinf: Ensure macro on AIX 5.1.
1727         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
1728         macro.
1729         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
1730
1731 2011-10-09  Bruno Haible  <bruno@clisp.org>
1732
1733         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
1734         * modules/snprintf-posix-tests (configure.ac): Require
1735         gl_LONG_DOUBLE_VS_DOUBLE.
1736         * modules/sprintf-posix-tests (configure.ac): Likewise.
1737         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
1738         * modules/vasprintf-posix-tests (configure.ac): Likewise.
1739         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
1740         * modules/vsprintf-posix-tests (configure.ac): Likewise.
1741         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
1742         tests on platforms where 'long double' is the same as 'double'.
1743         * tests/test-sprintf-posix.h (test_function): Likewise.
1744         * tests/test-vasnprintf-posix.c (test_function): Likewise.
1745         * tests/test-vasprintf-posix.c (test_function): Likewise.
1746
1747         *printf: Fix for platforms where 'long double' == 'double'.
1748         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
1749         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
1750         * modules/dprintf-posix (Files): Add m4/math_h.m4.
1751         * modules/fprintf-posix (Files): Likewise.
1752         * modules/obstack-printf-posix (Files): Likewise.
1753         * modules/snprintf-posix (Files): Likewise.
1754         * modules/sprintf-posix (Files): Likewise.
1755         * modules/vasnprintf (Files): Likewise.
1756         * modules/vasnprintf-posix (Files): Likewise.
1757         * modules/vasprintf-posix (Files): Likewise.
1758         * modules/vdprintf-posix (Files): Likewise.
1759         * modules/vfprintf-posix (Files): Likewise.
1760         * modules/vsnprintf-posix (Files): Likewise.
1761         * modules/vsprintf-posix (Files): Likewise.
1762         * modules/unistdio/u8-vasnprintf (Files): Likewise.
1763         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
1764         * modules/unistdio/u16-vasnprintf (Files): Likewise.
1765         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
1766         * modules/unistdio/u32-vasnprintf (Files): Likewise.
1767         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
1768         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
1769
1770         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
1771         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
1772         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1773         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
1774         'long double'.
1775         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
1776
1777         isinf: Fix for platforms where 'long double' == 'double'.
1778         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
1779         Don't blindly assume 80-bit 'long double'.
1780
1781         isfinite: Fix for platforms where 'long double' == 'double'.
1782         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
1783         Don't blindly assume 80-bit 'long double'.
1784
1785         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
1786         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
1787         * modules/isfinite-tests (configure.ac): Require
1788         gl_LONG_DOUBLE_VS_DOUBLE.
1789         * modules/isinf-tests (configure.ac): Likewise.
1790         * modules/isnan-tests (configure.ac): Likewise.
1791         * modules/isnanl-tests (configure.ac): Likewise.
1792         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
1793         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
1794         tests on platforms where 'long double' is the same as 'double'.
1795         * tests/test-isinf.c (test_isinfl): Likewise.
1796         * tests/test-isnan.c (test_long_double): Likewise.
1797         * tests/test-isnanl.h (main): Likewise.
1798
1799 2011-10-08  Bruno Haible  <bruno@clisp.org>
1800
1801         Tests for module 'tanhf'.
1802         * modules/tanhf-tests: New file.
1803         * tests/test-tanhf.c: New file.
1804
1805         New module 'tanhf'.
1806         * lib/math.in.h (tanhf): New declaration.
1807         * lib/tanhf.c: New file.
1808         * m4/tanhf.m4: New file.
1809         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
1810         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
1811         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
1812         * modules/tanhf: New file.
1813         * tests/test-math-c++.cc: Check the declaration of tanhf.
1814         * doc/posix-functions/tanhf.texi: Mention the new module.
1815
1816         tanh: Use a .m4 file.
1817         * m4/tanh.m4: New file.
1818         * modules/tanh (Files): Add it.
1819         (configure.ac): Just invoke gl_FUNC_TANH.
1820
1821 2011-10-08  Bruno Haible  <bruno@clisp.org>
1822
1823         Tests for module 'coshf'.
1824         * modules/coshf-tests: New file.
1825         * tests/test-coshf.c: New file.
1826
1827         New module 'coshf'.
1828         * lib/math.in.h (coshf): New declaration.
1829         * lib/coshf.c: New file.
1830         * m4/coshf.m4: New file.
1831         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
1832         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
1833         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
1834         * modules/coshf: New file.
1835         * tests/test-math-c++.cc: Check the declaration of coshf.
1836         * doc/posix-functions/coshf.texi: Mention the new module.
1837
1838         cosh: Use a .m4 file.
1839         * m4/cosh.m4: New file.
1840         * modules/cosh (Files): Add it.
1841         (configure.ac): Just invoke gl_FUNC_COSH.
1842
1843 2011-10-08  Bruno Haible  <bruno@clisp.org>
1844
1845         Tests for module 'sinhf'.
1846         * modules/sinhf-tests: New file.
1847         * tests/test-sinhf.c: New file.
1848
1849         New module 'sinhf'.
1850         * lib/math.in.h (sinhf): New declaration.
1851         * lib/sinhf.c: New file.
1852         * m4/sinhf.m4: New file.
1853         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
1854         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
1855         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
1856         * modules/sinhf: New file.
1857         * tests/test-math-c++.cc: Check the declaration of sinhf.
1858         * doc/posix-functions/sinhf.texi: Mention the new module.
1859
1860         sinh: Use a .m4 file.
1861         * m4/sinh.m4: New file.
1862         * modules/sinh (Files): Add it.
1863         (configure.ac): Just invoke gl_FUNC_SINH.
1864
1865 2011-10-08  Bruno Haible  <bruno@clisp.org>
1866
1867         Tests for module 'atan2f'.
1868         * modules/atan2f-tests: New file.
1869         * tests/test-atan2f.c: New file.
1870
1871         New module 'atan2f'.
1872         * lib/math.in.h (atan2f): New declaration.
1873         * lib/atan2f.c: New file.
1874         * m4/atan2f.m4: New file.
1875         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
1876         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
1877         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
1878         * modules/atan2f: New file.
1879         * tests/test-math-c++.cc: Check the declaration of atan2f.
1880         * doc/posix-functions/atan2f.texi: Mention the new module.
1881
1882         atan2: Use a .m4 file.
1883         * m4/atan2.m4: New file.
1884         * modules/atan2 (Files): Add it.
1885         (configure.ac): Just invoke gl_FUNC_ATAN2.
1886
1887 2011-10-08  Bruno Haible  <bruno@clisp.org>
1888
1889         Tests for module 'atanf'.
1890         * modules/atanf-tests: New file.
1891         * tests/test-atanf.c: New file.
1892
1893         New module 'atanf'.
1894         * lib/math.in.h (atanf): New declaration.
1895         * lib/atanf.c: New file.
1896         * m4/atanf.m4: New file.
1897         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
1898         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
1899         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
1900         * modules/atanf: New file.
1901         * tests/test-math-c++.cc: Check the declaration of atanf.
1902         * doc/posix-functions/atanf.texi: Mention the new module.
1903
1904         atan: Use a .m4 file.
1905         * m4/atan.m4: New file.
1906         * modules/atan (Files): Add it.
1907         (configure.ac): Just invoke gl_FUNC_ATAN.
1908
1909 2011-10-08  Bruno Haible  <bruno@clisp.org>
1910
1911         Tests for module 'acosf'.
1912         * modules/acosf-tests: New file.
1913         * tests/test-acosf.c: New file.
1914
1915         New module 'acosf'.
1916         * lib/math.in.h (acosf): New declaration.
1917         * lib/acosf.c: New file.
1918         * m4/acosf.m4: New file.
1919         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
1920         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
1921         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
1922         * modules/acosf: New file.
1923         * tests/test-math-c++.cc: Check the declaration of acosf.
1924         * doc/posix-functions/acosf.texi: Mention the new module.
1925
1926         acos: Use a .m4 file.
1927         * m4/acos.m4: New file.
1928         * modules/acos (Files): Add it.
1929         (configure.ac): Just invoke gl_FUNC_ACOS.
1930
1931 2011-10-08  Bruno Haible  <bruno@clisp.org>
1932
1933         Tests for module 'asinf'.
1934         * modules/asinf-tests: New file.
1935         * tests/test-asinf.c: New file.
1936
1937         New module 'asinf'.
1938         * lib/math.in.h (asinf): New declaration.
1939         * lib/asinf.c: New file.
1940         * m4/asinf.m4: New file.
1941         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
1942         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
1943         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
1944         * modules/asinf: New file.
1945         * tests/test-math-c++.cc: Check the declaration of asinf.
1946         * doc/posix-functions/asinf.texi: Mention the new module.
1947
1948         asin: Use a .m4 file.
1949         * m4/asin.m4: New file.
1950         * modules/asin (Files): Add it.
1951         (configure.ac): Just invoke gl_FUNC_ASIN.
1952
1953 2011-10-08  Bruno Haible  <bruno@clisp.org>
1954
1955         Tests for module 'tanf'.
1956         * modules/tanf-tests: New file.
1957         * tests/test-tanf.c: New file.
1958
1959         New module 'tanf'.
1960         * lib/math.in.h (tanf): New declaration.
1961         * lib/tanf.c: New file.
1962         * m4/tanf.m4: New file.
1963         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
1964         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
1965         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
1966         * modules/tanf: New file.
1967         * tests/test-math-c++.cc: Check the declaration of tanf.
1968         * doc/posix-functions/tanf.texi: Mention the new module.
1969
1970         tan: Use a .m4 file.
1971         * m4/tan.m4: New file.
1972         * modules/tan (Files): Add it.
1973         (configure.ac): Just invoke gl_FUNC_TAN.
1974
1975 2011-10-08  Bruno Haible  <bruno@clisp.org>
1976
1977         Tests for module 'cosf'.
1978         * modules/cosf-tests: New file.
1979         * tests/test-cosf.c: New file.
1980
1981         New module 'cosf'.
1982         * lib/math.in.h (cosf): New declaration.
1983         * lib/cosf.c: New file.
1984         * m4/cosf.m4: New file.
1985         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
1986         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
1987         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
1988         * modules/cosf: New file.
1989         * tests/test-math-c++.cc: Check the declaration of cosf.
1990         * doc/posix-functions/cosf.texi: Mention the new module.
1991
1992         cos: Use a .m4 file.
1993         * m4/cos.m4: New file.
1994         * modules/cos (Files): Add it.
1995         (configure.ac): Just invoke gl_FUNC_COS.
1996
1997 2011-10-08  Bruno Haible  <bruno@clisp.org>
1998
1999         Tests for module 'sinf'.
2000         * modules/sinf-tests: New file.
2001         * tests/test-sinf.c: New file.
2002
2003         New module 'sinf'.
2004         * lib/math.in.h (sinf): New declaration.
2005         * lib/sinf.c: New file.
2006         * m4/sinf.m4: New file.
2007         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
2008         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
2009         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
2010         * modules/sinf: New file.
2011         * tests/test-math-c++.cc: Check the declaration of sinf.
2012         * doc/posix-functions/sinf.texi: Mention the new module.
2013
2014         sin: Use a .m4 file.
2015         * m4/sin.m4: New file.
2016         * modules/sin (Files): Add it.
2017         (configure.ac): Just invoke gl_FUNC_SIN.
2018
2019 2011-10-08  Bruno Haible  <bruno@clisp.org>
2020
2021         Tests for module 'powf'.
2022         * modules/powf-tests: New file.
2023         * tests/test-powf.c: New file.
2024
2025         New module 'powf'.
2026         * lib/math.in.h (powf): New declaration.
2027         * lib/powf.c: New file.
2028         * m4/powf.m4: New file.
2029         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
2030         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
2031         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
2032         * modules/powf: New file.
2033         * tests/test-math-c++.cc: Check the declaration of powf.
2034         * doc/posix-functions/powf.texi: Mention the new module.
2035
2036         pow: Use a .m4 file.
2037         * m4/pow.m4: New file.
2038         * modules/pow (Files): Add it.
2039         (configure.ac): Just invoke gl_FUNC_POW.
2040
2041 2011-10-08  Bruno Haible  <bruno@clisp.org>
2042
2043         Tests for module 'log10f'.
2044         * modules/log10f-tests: New file.
2045         * tests/test-log10f.c: New file.
2046
2047         New module 'log10f'.
2048         * lib/math.in.h (log10f): New declaration.
2049         * lib/log10f.c: New file.
2050         * m4/log10f.m4: New file.
2051         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
2052         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
2053         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
2054         * modules/log10f: New file.
2055         * tests/test-math-c++.cc: Check the declaration of log10f.
2056         * doc/posix-functions/log10f.texi: Mention the new module.
2057
2058         log10: Use a .m4 file.
2059         * m4/log10.m4: New file.
2060         * modules/log10 (Files): Add it.
2061         (configure.ac): Just invoke gl_FUNC_LOG10.
2062
2063 2011-10-08  Bruno Haible  <bruno@clisp.org>
2064
2065         Tests for module 'logf'.
2066         * modules/logf-tests: New file.
2067         * tests/test-logf.c: New file.
2068
2069         New module 'logf'.
2070         * lib/math.in.h (logf): New declaration.
2071         * lib/logf.c: New file.
2072         * m4/logf.m4: New file.
2073         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
2074         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
2075         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
2076         * modules/logf: New file.
2077         * tests/test-math-c++.cc: Check the declaration of logf.
2078         * doc/posix-functions/logf.texi: Mention the new module.
2079
2080         log: Use a .m4 file.
2081         * m4/log.m4: New file.
2082         * modules/log (Files): Add it.
2083         (configure.ac): Just invoke gl_FUNC_LOG.
2084
2085 2011-10-08  Bruno Haible  <bruno@clisp.org>
2086
2087         Tests for module 'expf'.
2088         * modules/expf-tests: New file.
2089         * tests/test-expf.c: New file.
2090
2091         New module 'expf'.
2092         * lib/math.in.h (expf): New declaration.
2093         * lib/expf.c: New file.
2094         * m4/expf.m4: New file.
2095         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
2096         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
2097         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
2098         * modules/expf: New file.
2099         * tests/test-math-c++.cc: Check the declaration of expf.
2100         * doc/posix-functions/expf.texi: Mention the new module.
2101
2102         exp: Use a .m4 file.
2103         * m4/exp.m4: New file.
2104         * modules/exp (Files): Add it.
2105         (configure.ac): Just invoke gl_FUNC_EXP.
2106
2107 2011-10-08  Bruno Haible  <bruno@clisp.org>
2108
2109         Tests for module 'sqrtf'.
2110         * modules/sqrtf-tests: New file.
2111         * tests/test-sqrtf.c: New file.
2112
2113         New module 'sqrtf'.
2114         * lib/math.in.h (sqrtf): New declaration.
2115         * lib/sqrtf.c: New file.
2116         * m4/sqrtf.m4: New file.
2117         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
2118         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
2119         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
2120         * modules/sqrtf: New file.
2121         * tests/test-math-c++.cc: Check the declaration of sqrtf.
2122         * doc/posix-functions/sqrtf.texi: Mention the new module.
2123
2124 2011-10-08  Bruno Haible  <bruno@clisp.org>
2125
2126         Tests: Avoid link failures w.r.t. libintl.
2127         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
2128         $(LIBINTL).
2129         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
2130         $(LIBINTL).
2131         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
2132         against $(LIBINTL).
2133         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
2134         $(LIBINTL).
2135         * modules/openat-tests (Makefile.am): Link test-fchmodat against
2136         $(LIBINTL).
2137         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
2138
2139 2011-10-08  Bruno Haible  <bruno@clisp.org>
2140
2141         pow tests: Defeat compiler optimizations.
2142         * tests/test-pow.c (main): Assign arguments to x and y before use.
2143
2144 2011-10-08  Bruno Haible  <bruno@clisp.org>
2145
2146         gnulib-tool: Improve last commit.
2147         * gnulib-tool (func_modules_transitive_closure): Simplify code.
2148         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
2149         ignore dependencies that are not among the modules list.
2150
2151 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
2152
2153         gnulib-tool: don't follow dependencies to avoided modules
2154         This fixes a bug that is related to the previous one.
2155         * gnulib-tool (func_modules_transitive_closure)
2156         (func_emit_autoconf_snippets):
2157         Check whether a dependency is acceptable before using it.
2158         (--extract-dependencies): Report an error if --avoid is also used,
2159         since this combination of options is not yet supported.
2160
2161         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
2162         Problem reported by Peter Dyballa in
2163         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
2164         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
2165         when echoing "$condition".
2166
2167 2011-10-07  Bruno Haible  <bruno@clisp.org>
2168
2169         Fix documentation about math functions on MacOS X.
2170         * doc/posix-functions/exp2.texi: Don't say the function is missing on
2171         MacOS X 10.5.
2172         * doc/posix-functions/fdim.texi: Likewise.
2173         * doc/posix-functions/feclearexcept.texi: Likewise.
2174         * doc/posix-functions/fegetenv.texi: Likewise.
2175         * doc/posix-functions/fegetround.texi: Likewise.
2176         * doc/posix-functions/feholdexcept.texi: Likewise.
2177         * doc/posix-functions/feraiseexcept.texi: Likewise.
2178         * doc/posix-functions/fesetenv.texi: Likewise.
2179         * doc/posix-functions/fesetround.texi: Likewise.
2180         * doc/posix-functions/fetestexcept.texi: Likewise.
2181         * doc/posix-functions/feupdateenv.texi: Likewise.
2182         * doc/posix-functions/fmax.texi: Likewise.
2183         * doc/posix-functions/fmin.texi: Likewise.
2184         * doc/posix-functions/log2.texi: Likewise.
2185         * doc/posix-functions/modff.texi: Likewise.
2186         * doc/posix-functions/nan.texi: Likewise.
2187         * doc/posix-functions/nanf.texi: Likewise.
2188         * doc/posix-functions/nextafterf.texi: Likewise.
2189         * doc/posix-functions/remquo.texi: Likewise.
2190
2191 2011-10-07  Bruno Haible  <bruno@clisp.org>
2192
2193         modff: Drop assumption about library that defines modff.
2194         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
2195         AC_CHECK_FUNCS.
2196         * modules/modff (Files): Add m4/mathfunc.m4.
2197
2198 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
2199
2200         raise tests: Avoid a GCC warning.
2201         * tests/test-raise.c (handler): Use _Noreturn.
2202
2203 2011-10-07  Bruno Haible  <bruno@clisp.org>
2204
2205         Tests for module 'ldexpf'.
2206         * modules/ldexpf-tests: New file.
2207         * tests/test-ldexpf.c: New file.
2208
2209         New module 'ldexpf'.
2210         * lib/math.in.h (ldexpf): New declaration.
2211         * lib/ldexpf.c: New file.
2212         * m4/ldexpf.m4: New file.
2213         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
2214         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
2215         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
2216         * modules/ldexpf: New file.
2217         * tests/test-math-c++.cc: Check the declaration of ldexpf.
2218         * doc/posix-functions/ldexpf.texi: Mention the new module.
2219
2220 2011-10-06  Bruno Haible  <bruno@clisp.org>
2221
2222         frexpf: Work around problems on IRIX and mingw.
2223         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
2224         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
2225         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
2226         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
2227         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
2228         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
2229         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
2230
2231 2011-10-06  Bruno Haible  <bruno@clisp.org>
2232
2233         fabsf: Drop assumption about library that defines fabsf.
2234         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
2235         AC_CHECK_FUNCS.
2236         * modules/fabsf (Files): Add m4/mathfunc.m4.
2237
2238 2011-10-06  Bruno Haible  <bruno@clisp.org>
2239
2240         frexpf: Drop assumption about library that defines frexpf.
2241         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
2242         'int *', 'float *', 'long double *', 'float', 'long double'.
2243         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
2244         AC_CHECK_FUNCS.
2245         * modules/frexpf (Files): Add m4/mathfunc.m4.
2246
2247         Tests for module 'frexpf'.
2248         * modules/frexpf-tests: New file.
2249         * tests/test-frexpf.c: New file.
2250
2251         New module 'frexpf'.
2252         * lib/math.in.h (frexpf): New declaration.
2253         * lib/frexpf.c: New file.
2254         * m4/frexpf.m4: New file.
2255         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
2256         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
2257         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
2258         * modules/frexpf: New file.
2259         * tests/test-math-c++.cc: Check the declaration of frexpf.
2260         * doc/posix-functions/frexpf.texi: Mention the new module.
2261
2262 2011-10-06  Bruno Haible  <bruno@clisp.org>
2263
2264         math: Sort function declarations of math.in.h.
2265         * lib/math.in.h (frexp, logb): Move declarations.
2266
2267 2011-10-05  Bruno Haible  <bruno@clisp.org>
2268
2269         Tests for module 'modff'.
2270         * modules/modff-tests: New file.
2271         * tests/test-modff.c: New file.
2272
2273         New module 'modff'.
2274         * lib/math.in.h (modff): New declaration.
2275         * lib/modff.c: New file.
2276         * m4/modff.m4: New file.
2277         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
2278         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
2279         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
2280         * modules/modff: New file.
2281         * tests/test-math-c++.cc: Check the declaration of modff.
2282         * doc/posix-functions/modff.texi: Mention the new module.
2283
2284         modf tests: Make test sharper.
2285         * tests/test-modf.c (main): Strengthen upper bound.
2286
2287         modf: Use a .m4 file.
2288         * m4/modf.m4: New file.
2289         * modules/modf (Files): Add it.
2290         (configure.ac): Just invoke gl_FUNC_MODF.
2291
2292 2011-10-05  Bruno Haible  <bruno@clisp.org>
2293
2294         Tests for module 'fmodf'.
2295         * modules/fmodf-tests: New file.
2296         * tests/test-fmodf.c: New file.
2297
2298         New module 'fmodf'.
2299         * lib/math.in.h (fmodf): New declaration.
2300         * lib/fmodf.c: New file.
2301         * m4/fmodf.m4: New file.
2302         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
2303         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
2304         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
2305         * modules/fmodf: New file.
2306         * tests/test-math-c++.cc: Check the declaration of fmodf.
2307         * doc/posix-functions/fmodf.texi: Mention the new module.
2308
2309         fmod: Use a .m4 file.
2310         * m4/fmod.m4: New file.
2311         * modules/fmod (Files): Add it.
2312         (configure.ac): Just invoke gl_FUNC_FMOD.
2313
2314 2011-10-05  Bruno Haible  <bruno@clisp.org>
2315
2316         Tests for module 'fabsf'.
2317         * modules/fabsf-tests: New file.
2318         * tests/test-fabsf.c: New file.
2319
2320         New module 'fabsf'.
2321         * lib/math.in.h (fabsf): New declaration.
2322         * lib/fabsf.c: New file.
2323         * m4/fabsf.m4: New file.
2324         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
2325         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
2326         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
2327         * modules/fabsf: New file.
2328         * tests/test-math-c++.cc: Check the declaration of fabsf.
2329         * doc/posix-functions/fabsf.texi: Mention the new module.
2330
2331         fabs: Use a .m4 file.
2332         * m4/fabs.m4: New file.
2333         * modules/fabs (Files): Add it.
2334         (configure.ac): Just invoke gl_FUNC_FABS.
2335
2336 2011-10-05  Jim Meyering  <meyering@redhat.com>
2337
2338         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
2339         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
2340         ls -lL regression introduced in coreutils-8.12, it does so at the
2341         cost of an additional stat call in the common case.  Besides, now
2342         that the kernel change that prompted commit 95f7c57f has been reverted
2343         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
2344         we have no use for commit 95f7c57f, "file-has-acl: use
2345         acl_extended_file_nofollow if available".
2346
2347 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
2348
2349         file-has-acl: revert unintended change in behavior of ls -L
2350         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
2351         derived from...
2352         (file_has_acl): ...code here.  Call it.
2353         This problem was introduced with 2011-07-22 commit 95f7c57f,
2354         "file-has-acl: use acl_extended_file_nofollow if available".
2355         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
2356
2357 2011-10-03  Bruno Haible  <bruno@clisp.org>
2358
2359         poll: Avoid link errors on MSVC.
2360         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
2361         * modules/poll (Depends-on): Add sockets.
2362         (Link): New section.
2363         * NEWS: Mention the change.
2364         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
2365         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
2366         $(LIB_POLL) instead of $(LIBSOCKET).
2367
2368 2011-10-03  Bruno Haible  <bruno@clisp.org>
2369
2370         sys_select tests: Fix link error on MSVC 9.
2371         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
2372         with $(LIB_SELECT) instead of $(LIBSOCKET).
2373
2374 2011-10-03  Bruno Haible  <bruno@clisp.org>
2375
2376         sys_select: Fix compilation error on mingw.
2377         * lib/sys_select.in.h: On native Windows, include <io.h>.
2378
2379 2011-10-03  Bruno Haible  <bruno@clisp.org>
2380
2381         wmemset: Support for MSVC.
2382         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
2383         whether wmemset() exists.
2384
2385 2011-10-03  Bruno Haible  <bruno@clisp.org>
2386
2387         wmemmove: Support for MSVC.
2388         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
2389         whether wmemmove() exists.
2390
2391 2011-10-03  Bruno Haible  <bruno@clisp.org>
2392
2393         wmemcpy: Support for MSVC.
2394         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
2395         whether wmemcpy() exists.
2396
2397 2011-10-03  Bruno Haible  <bruno@clisp.org>
2398
2399         wmemcmp: Support for MSVC.
2400         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
2401         whether wmemcmp() exists.
2402
2403 2011-10-03  Bruno Haible  <bruno@clisp.org>
2404
2405         wmemchr: Support for MSVC.
2406         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
2407         whether wmemchr() exists.
2408
2409 2011-10-03  Bruno Haible  <bruno@clisp.org>
2410
2411         glthread/*, strsignal: Support for MSVC.
2412         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
2413         including <winsock.h> on MSVC 9.
2414         * lib/glthread/lock.h: Likewise.
2415         * lib/glthread/thread.h: Likewise.
2416         * lib/glthread/tls.h: Likewise.
2417         * lib/glthread/yield.h: Likewise.
2418         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
2419         if HAVE_UNISTD_H is false.
2420         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
2421
2422 2011-10-03  Bruno Haible  <bruno@clisp.org>
2423
2424         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
2425         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
2426         Set to 100000.
2427
2428 2011-10-03  Bruno Haible  <bruno@clisp.org>
2429
2430         acl: Fix specification.
2431         * lib/file-has-acl.c (file_has_acl): Fix specification.
2432
2433 2011-10-03  Bruno Haible  <bruno@clisp.org>
2434
2435         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
2436         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
2437         (compute_curr_prefix, shared_library_fullname,
2438         find_shared_library_fullname, get_shared_library_fullname, relocate):
2439         Use it together with PIC && INSTALLDIR.
2440         Reported by <jojelino@gmail.com>
2441         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
2442
2443 2011-10-01  Jim Meyering  <meyering@redhat.com>
2444
2445         maint.mk: adjust a release-related rule not to require use of gzip
2446         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
2447         Instead, check each file in $(DIST_ARCHIVES).  This is better for
2448         projects that build only .tar.xz files.  Also fix an erroneous test.
2449
2450         test-linkat: don't leave behind a temporary file
2451         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
2452         Otherwise, coreutils' "make distcheck" would fail with this:
2453           Only in /c/cu/tests/torture/coreutils/test/\
2454             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
2455           make[2]: *** [my-distcheck] Error 1
2456
2457         float, math: add omitted file
2458         * lib/itold.c: Add file, required for yesterday's float change.
2459
2460 2011-10-01  Bruno Haible  <bruno@clisp.org>
2461
2462         isinf: Fix for OpenBSD/x86.
2463         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
2464         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
2465         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
2466
2467 2011-10-01  Bruno Haible  <bruno@clisp.org>
2468
2469         isfinite: Fix syntax error in configure test.
2470         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
2471
2472         isfinite: Fix typo.
2473         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
2474         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
2475
2476 2011-10-01  Bruno Haible  <bruno@clisp.org>
2477
2478         nonblocking tests: Fix test failure on Linux/IA-64.
2479         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
2480         Set to 270000.
2481
2482 2011-10-01  Bruno Haible  <bruno@clisp.org>
2483
2484         mkfifoat tests: Fix a test failure on mingw.
2485         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
2486         with error ENOSYS.
2487
2488 2011-09-30  Bruno Haible  <bruno@clisp.org>
2489
2490         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
2491         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
2492         'long double'. Set REPLACE_ITOLD.
2493         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
2494         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
2495         * lib/itold.c: New file.
2496         * modules/float (Files): Add lib/itold.c.
2497         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
2498         (Makefile.am): Substitute REPLACE_ITOLD.
2499         * modules/math (Depends-on): Add float.
2500         (Makefile.am): Substitute REPLACE_ITOLD.
2501         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
2502         * doc/posix-headers/math.texi: Likewise.
2503         * doc/posix-functions/logl.texi: Likewise.
2504
2505 2011-09-30  Bruno Haible  <bruno@clisp.org>
2506
2507         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
2508         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
2509         Set to 140000.
2510
2511 2011-09-30  Bruno Haible  <bruno@clisp.org>
2512
2513         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
2514         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
2515         invocation, say "right after AC_PROG_CC_STDC", not "right after
2516         AC_PROG_CC".
2517         Reported by Gary V. Vaughan <gary@gnu.org>.
2518
2519 2011-09-30  Bruno Haible  <bruno@clisp.org>
2520
2521         Centralize C99 requirement.
2522         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
2523         * modules/stdarg (configure.ac-early): Invoke it instead of
2524         AC_PROG_CC_STDC.
2525         Reported by Gary V. Vaughan and Paul Eggert.
2526
2527 2011-09-29  Bruno Haible  <bruno@clisp.org>
2528
2529         float: Fix LDBL_MAX value on Linux/PowerPC.
2530         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
2531         on Linux/PowerPC.
2532         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
2533         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
2534         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
2535         platform.
2536         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
2537
2538 2011-09-29  Bruno Haible  <bruno@clisp.org>
2539
2540         doc: Improve doc about gl_EARLY.
2541         * doc/gnulib-tool.texi (Initial import): Mention where to place an
2542         AC_PROG_CC_STDC invocation.
2543         Reported by Gary V. Vaughan <gary@gnu.org>.
2544
2545 2011-09-28  Bruno Haible  <bruno@clisp.org>
2546
2547         fgetc, fputc, fread, fwrite tests: Fix link error.
2548         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
2549         on non-MSVC platforms.
2550         * tests/test-fputc.c (main): Likewise.
2551         * tests/test-fread.c (main): Likewise.
2552         * tests/test-fwrite.c (main): Likewise.
2553         Reported by Jim Meyering.
2554
2555 2011-09-27  Bruno Haible  <bruno@clisp.org>
2556
2557         fputc, fwrite tests: Avoid test failure on MSVC.
2558         * tests/test-fgetc.c: Include msvc-inval.h.
2559         (main): Invoke gl_msvc_inval_ensure_handler.
2560         * tests/test-fputc.c: Include msvc-inval.h.
2561         (main): Invoke gl_msvc_inval_ensure_handler.
2562         * tests/test-fread.c: Include msvc-inval.h.
2563         (main): Invoke gl_msvc_inval_ensure_handler.
2564         * tests/test-fwrite.c: Include msvc-inval.h.
2565         (main): Invoke gl_msvc_inval_ensure_handler.
2566         * modules/fgetc-tests (Depends-on): Add msvc-inval.
2567         * modules/fputc-tests (Depends-on): Likewise.
2568         * modules/fread-tests (Depends-on): Likewise.
2569         * modules/fwrite-tests (Depends-on): Likewise.
2570
2571 2011-09-27  Bruno Haible  <bruno@clisp.org>
2572
2573         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
2574         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
2575         (raise): Remove older, duplicated declaration.
2576         (_gl_raise_SIGPIPE): New declaration.
2577         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
2578         (rpl_raise): Remove function.
2579         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
2580         a gnulib-defined SIGPIPE here.
2581         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
2582         'sigprocmask' has detected missing signal-blocking and the module
2583         'sigpipe' is enabled.
2584         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
2585
2586 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
2587
2588         base64-tests: avoid memory leak
2589         * tests/test-base64.c (main): Plug memory leak.
2590
2591         base32: new module
2592         * modules/base32: New module.
2593         * lib/base32.c: New file.
2594         * lib/base32.h: Likewise.
2595         * m4/base32.m4: Likewise.
2596         * modules/base32-tests: New test.
2597         * tests/test-base32.c: Likewise.
2598         * MODULES.html.sh (Misc): Mention it.
2599
2600 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
2601
2602         gnulib: use more-standard license notice wording
2603         * gnulib-tool (func_emit_copyright_notice): When emitting a
2604         license notice into a file, use the standard wording as suggested
2605         by the current information for GNU maintainers, except say "file"
2606         rather than "program".  The new wording gives a license version
2607         number, which addresses an issue raised by Glenn Morris in
2608         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
2609         * m4/onceonly.m4: Use that same wording here, too.
2610
2611         dup2: minor simplification
2612         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
2613         as lib/dup2.c no longer uses 'inline'.
2614
2615 2011-09-25  Bruno Haible  <bruno@clisp.org>
2616
2617         strings: Fix compilation error on MSVC.
2618         * lib/strings.in.h: Include <stddef.h> for size_t.
2619
2620 2011-09-25  Bruno Haible  <bruno@clisp.org>
2621
2622         fflush et al.: Document limitation on MSVC.
2623         * doc/posix-functions/fflush.texi: Document possible crash in handling
2624         mode other than DEFAULT_HANDLING.
2625         * doc/posix-functions/fgetc.texi: Likewise.
2626         * doc/posix-functions/fputc.texi: Likewise.
2627         * doc/posix-functions/fread.texi: Likewise.
2628         * doc/posix-functions/fwrite.texi: Likewise.
2629
2630 2011-09-25  Bruno Haible  <bruno@clisp.org>
2631
2632         msvc-inval: Allow three invalid parameter handling modes.
2633         * lib/msvc-inval.h: Don't include <stdlib.h> here.
2634         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
2635         macros.
2636         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
2637         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
2638         SANE_LIBRARY_HANDLING as a no-op.
2639         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
2640         <stdlib.h>.
2641         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
2642
2643 2011-09-25  Bruno Haible  <bruno@clisp.org>
2644
2645         msvc-inval: Make handler multithread-safe.
2646         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
2647         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
2648         declarations.
2649         (gl_msvc_inval_current): New declaration.
2650         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
2651         Operate on the structure returned by gl_msvc_inval_current().
2652         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
2653         Remove varaiables.
2654         (tls_index, tls_initialized): New variables.
2655         (not_per_thread): New variable.
2656         (gl_msvc_inval_current): New function.
2657         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
2658         returned by gl_msvc_inval_current().
2659
2660 2011-09-25  Bruno Haible  <bruno@clisp.org>
2661
2662         msvc-inval: Install handler globally.
2663         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
2664         !_MSC_VER.
2665         (gl_msvc_invalid_parameter_handler): Remove declaration.
2666         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
2667         declarations.
2668         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
2669         Install the handler globally, don't uninstall it.
2670         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
2671         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
2672         currently valid, call RaiseException instead.
2673         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
2674         for !_MSC_VER.
2675
2676 2011-09-25  Bruno Haible  <bruno@clisp.org>
2677
2678         strerror_r-posix: Fix for MSVC 9.
2679         * lib/strerror_r.c (local_snprintf): New function.
2680         (snprintf): Define to local_snprintf, not to _snprintf.
2681
2682 2011-09-25  Bruno Haible  <bruno@clisp.org>
2683
2684         ftruncate: Support for MSVC 9.
2685         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
2686         (chsize_nothrow): New function.
2687         (chsize): Redefine as a macro.
2688         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
2689         * modules/ftruncate (Depends-on): Add msvc-inval.
2690
2691 2011-09-25  Bruno Haible  <bruno@clisp.org>
2692
2693         New module 'fstat'.
2694         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
2695         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
2696         * lib/fchdir.c (rpl_fstat): Remove function.
2697         * m4/fstat.m4: New file.
2698         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
2699         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
2700         declared.
2701         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
2702         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
2703         * modules/fstat: New file.
2704         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
2705         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
2706         is set.
2707         * doc/posix-functions/fstat.texi: Mention the new module and the
2708         problem on MSVC.
2709         * NEWS: Mention the change.
2710         * modules/acl (Depends-on): Add fstat.
2711         * modules/chdir-safer (Depends-on): Likewise.
2712         * modules/chown (Depends-on): Likewise.
2713         * modules/copy-file (Depends-on): Likewise.
2714         * modules/fchdir (Depends-on): Likewise.
2715         * modules/fdopendir (Depends-on): Likewise.
2716         * modules/fopen (Depends-on): Likewise.
2717         * modules/fts (Depends-on): Likewise.
2718         * modules/getcwd (Depends-on): Likewise.
2719         * modules/isapipe (Depends-on): Likewise.
2720         * modules/linkat (Depends-on): Likewise.
2721         * modules/lseek (Depends-on): Likewise.
2722         * modules/mkdir-p (Depends-on): Likewise.
2723         * modules/open (Depends-on): Likewise.
2724         * modules/openat (Depends-on): Likewise.
2725         * modules/read-file (Depends-on): Likewise.
2726         * modules/renameat (Depends-on): Likewise.
2727         * modules/utimens (Depends-on): Likewise.
2728
2729 2011-09-25  Bruno Haible  <bruno@clisp.org>
2730
2731         linkat: Fix compilation on MSVC 9.
2732         * lib/linkat.c: Don't include <stdint.h>.
2733
2734 2011-09-25  Bruno Haible  <bruno@clisp.org>
2735
2736         fclose: Support for MSVC 9.
2737         * lib/fclose.c: Include msvc-inval.h.
2738         (fclose_nothrow): New function.
2739         (rpl_fclose): Use it.
2740         * modules/fclose (Depends-on): Add msvc-inval.
2741         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
2742
2743 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
2744
2745         dup2: minor simplifications
2746         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
2747         that it's a performance win.
2748         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
2749         ! defined __CYGWIN__)" to "ifdef F_GETFL".
2750
2751 2011-09-24  Jim Meyering  <meyering@redhat.com>
2752
2753         test-futimens: avoid a warning from gcc -Wshadow
2754         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
2755         to avoid a shadowing warning.
2756
2757 2011-09-24  Bruno Haible  <bruno@clisp.org>
2758
2759         fdopen: Support for MSVC 9.
2760         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
2761         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
2762         * lib/fdopen.c: Include msvc-inval.h.
2763         (fdopen_nothrow): New function.
2764         (rpl_fdopen): Use it.
2765         * modules/fdopen (Depends-on): Add msvc-inval.
2766         * modules/fclose-tests (Depends-on): Add fdopen.
2767         * modules/fflush-tests (Depends-on): Likewise.
2768         * modules/fgetc-tests (Depends-on): Likewise.
2769         * modules/fputc-tests (Depends-on): Likewise.
2770         * modules/fread-tests (Depends-on): Likewise.
2771         * modules/freopen-tests (Depends-on): Likewise.
2772         * modules/fseeko-tests (Depends-on): Likewise.
2773         * modules/ftello-tests (Depends-on): Likewise.
2774         * modules/fwrite-tests  (Depends-on): Likewise.
2775         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
2776
2777 2011-09-24  Bruno Haible  <bruno@clisp.org>
2778
2779         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
2780         * modules/fgetc-tests (Depends-on): Add unistd.
2781         * modules/fputc-tests (Depends-on): Likewise.
2782         * modules/fread-tests (Depends-on): Likewise.
2783         * modules/fwrite-tests (Depends-on): Likewise.
2784
2785 2011-09-24  Bruno Haible  <bruno@clisp.org>
2786
2787         dup: Simplify autoconf test.
2788         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
2789         on gl_MSVC_INVAL's result.
2790
2791 2011-09-24  Bruno Haible  <bruno@clisp.org>
2792
2793         Tests for function fwrite().
2794         * modules/fwrite-tests: New file.
2795         * tests/test-fwrite.c: New file.
2796         * modules/stdio-tests (Depends-on): Add fwrite-tests.
2797
2798         Tests for function fread().
2799         * modules/fread-tests: New file.
2800         * tests/test-fread.c: New file.
2801         * modules/stdio-tests (Depends-on): Add fread-tests.
2802
2803         Activate fputc tests.
2804         * modules/stdio-tests (Depends-on): Add fputc-tests.
2805
2806         Enhance fgetc, fputc tests.
2807         * tests/test-fgetc.c (main): Also test the stream's error indicator.
2808         * tests/test-fputc.c (main): Likewise.
2809
2810 2011-09-24  Bruno Haible  <bruno@clisp.org>
2811
2812         write: Support for MSVC 9.
2813         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
2814         is not 1.
2815         * lib/write.c (write_nothrow): New function.
2816         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
2817         not 1. Use write_nothrow.
2818         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
2819         invalid parameter handler.
2820         (gl_PREREQ_WRITE): New macro.
2821         * modules/write (Depends-on): Add msvc-inval.
2822         (configure.ac): Invoke gl_PREREQ_WRITE.
2823         * doc/posix-functions/write.texi: Mention the problem on MSVC.
2824
2825 2011-09-24  Bruno Haible  <bruno@clisp.org>
2826
2827         read: Fix last commit.
2828         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
2829
2830 2011-09-24  Bruno Haible  <bruno@clisp.org>
2831
2832         dup2: Fix last commit.
2833         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
2834         (rpl_dup2): Disable fcntl workaround on native Windows.
2835
2836         sigprocmask: Make code safer.
2837         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
2838         section that changes macro definitions for this compilation unit.
2839
2840 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
2841
2842         dup2: clarify by coalescing Windows-specific material
2843         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
2844         "msvc-nothrow.h"' to the Windows-specific section, so that the
2845         Emacs source need not contain these include files.
2846         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
2847         Windows-specific fixes into this function rather than just the
2848         nothrow fix, as this shortens and clarifies the code.  Always
2849         define as a function, as that's a bit cleaner than having it be
2850         sometimes a function and sometimes a macro.
2851         (rpl_dup2): Move the Windows-specific stuff out of here and into
2852         ms_windows_dup2.  Don't protect the Haiku-related fix with
2853         "#if !defined __linux__", as the same code also works around
2854         a Linux kernel bug, and it doesn't add any system calls on any
2855         platform.  Add comment about FreeBSD 6.1.
2856
2857         sigprocmask: move #include directive
2858         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
2859         Windows-specific section, so that the Emacs source need not
2860         contain msvc-inval.h.
2861
2862 2011-09-23  Bruno Haible  <bruno@clisp.org>
2863
2864         read: Support for MSVC 9.
2865         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
2866         is not 1.
2867         * lib/read.c (read_nothrow): New function.
2868         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
2869         read_nothrow.
2870         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
2871         invalid parameter handler.
2872         (gl_PREREQ_READ): New macro.
2873         * modules/read (Depends-on): Add msvc-inval.
2874         (configure.ac): Invoke gl_PREREQ_READ.
2875         * doc/posix-functions/read.texi: Mention the problem on MSVC.
2876
2877 2011-09-23  Bruno Haible  <bruno@clisp.org>
2878
2879         close: Support for MSVC 9.
2880         * lib/close.c: Include <errno.h>, msvc-inval.h.
2881         (close_nothrow): New function.
2882         (rpl_close): Use it.
2883         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
2884         invalid parameter handler.
2885         * modules/close (Depends-on): Add msvc-inval.
2886         * modules/dup2-tests (Depends-on): Add close.
2887         * modules/dup3-tests (Depends-on): Likewise.
2888         * modules/fcntl-tests (Depends-on): Likewise.
2889         * modules/spawn-pipe-tests (Depends-on): Likewise.
2890         * modules/unistd-safer-tests (Depends-on): Likewise.
2891         * doc/posix-functions/close.texi: Mention the problem on MSVC.
2892
2893 2011-09-23  Bruno Haible  <bruno@clisp.org>
2894
2895         New module 'dup'.
2896         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
2897         Allow replacement.
2898         * lib/dup.c: New file.
2899         * lib/fchdir.c (rpl_dup): Remove function.
2900         * m4/dup.m4: New file.
2901         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
2902         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
2903         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
2904         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
2905         * modules/dup: New file.
2906         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
2907         'dup' module is in use.
2908         * modules/fdopendir (Depends-on): Add dup.
2909         * modules/fdutimensat-tests (Depends-on): Likewise.
2910         * modules/fts (Depends-on): Likewise.
2911         * modules/futimens-tests (Depends-on): Likewise.
2912         * modules/posix_spawnp-tests (Depends-on): Likewise.
2913         * modules/unistd-safer-tests (Depends-on): Likewise.
2914         * modules/utimens-tests (Depends-on): Likewise.
2915         * doc/posix-functions/dup.texi: Mention the new module and the problem
2916         on MSVC.
2917
2918 2011-09-23  Bruno Haible  <bruno@clisp.org>
2919
2920         getdtablesize: Support for MSVC 9.
2921         * lib/getdtablesize.c: Include msvc-inval.h.
2922         (_setmaxstdio_nothrow): New function.
2923         (_setmaxstdio): Redefine it.
2924         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
2925         * modules/getdtablesize (Depends-on): Add msvc-inval.
2926         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
2927
2928 2011-09-23  Bruno Haible  <bruno@clisp.org>
2929
2930         signal-h: Rename from signal.
2931         * modules/signal-h: Renamed from modules/signal.
2932         * modules/pthread_sigmask (Depends-on): Update.
2933         * modules/raise (Depends-on): Likewise.
2934         * modules/sigaction (Depends-on): Likewise.
2935         * modules/sigpipe (Depends-on): Likewise.
2936         * modules/sigprocmask (Depends-on): Likewise.
2937         * modules/sys_select (Depends-on): Likewise.
2938         * modules/signal-h-tests: Renamed from modules/signal-tests.
2939         (Files, Depends-on, Makefile.am): Update.
2940         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
2941         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
2942         (Files, Makefile.am): Update.
2943         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
2944         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
2945         * modules/signal: New placeholder file.
2946         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
2947         * doc/posix-headers/signal.texi: Update.
2948         * NEWS: Mention the change.
2949
2950 2011-09-23  Bruno Haible  <bruno@clisp.org>
2951
2952         sigprocmask: Avoid crashes through signal() on MSVC 9.
2953         * lib/sigprocmask.c: Include msvc-inval.h.
2954         (signal_nothrow): New function.
2955         (signal): Redefine it.
2956         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
2957         * modules/sigprocmask (Depends-on): Add msvc-inval.
2958         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
2959
2960 2011-09-23  Bruno Haible  <bruno@clisp.org>
2961
2962         Tests for module 'raise'.
2963         * modules/raise-tests: New file.
2964         * tests/test-raise.c: New file.
2965
2966         raise: Support for MSVC.
2967         * lib/signal.in.h (raise): New declaration.
2968         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
2969         for native Windows platforms.
2970         * m4/raise.m4: New file.
2971         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
2972         HAVE_RAISE, REPLACE_RAISE.
2973         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
2974         REPLACE_RAISE.
2975         * modules/raise (Status, Notice): Remove fields.
2976         (Files): Add m4/raise.m4.
2977         (Depends-on): Add signal, msvc-inval.
2978         (configure.ac): Use the common idioms.
2979         (Maintainer): Add me.
2980         * tests/test-signal-c++.cc: Check the signature of raise.
2981         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
2982
2983 2011-09-23  Bruno Haible  <bruno@clisp.org>
2984
2985         pipe2: Fix compilation on pre-C99 compilers.
2986         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
2987
2988 2011-09-23  Bruno Haible  <bruno@clisp.org>
2989
2990         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
2991         * lib/msvc-nothrow.h: New file.
2992         * lib/msvc-nothrow.c: New file.
2993         * m4/msvc-nothrow.m4: New file.
2994         * modules/msvc-nothrow: New file.
2995         * lib/dup2.c: Include msvc-nothrow.h.
2996         (rpl_dup2): No need to protect _get_osfhandle call here.
2997         * lib/accept4.c: Include msvc-nothrow.h.
2998         * lib/error.c: Likewise.
2999         * lib/fcntl.c: Likewise.
3000         * lib/lseek.c: Likewise.
3001         * lib/nonblocking.c: Likewise.
3002         * lib/poll.c: Likewise.
3003         * lib/read.c: Likewise.
3004         * lib/select.c: Likewise.
3005         * lib/sockets.h: Likewise.
3006         * lib/sockets.c: Likewise.
3007         * lib/stdio-read.c: Likewise.
3008         * lib/stdio-write.c: Likewise.
3009         * lib/write.c: Likewise.
3010         * lib/w32sock.h: Likewise.
3011         * lib/w32spawn.h: Likewise.
3012         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
3013         * lib/fsync.c: Likewise.
3014         * lib/isapipe.c: Likewise.
3015         * modules/dup2 (Depends-on): Add msvc-nothrow.
3016         * modules/accept4 (Depends-on): Likewise.
3017         * modules/error (Depends-on): Likewise.
3018         * modules/fcntl (Depends-on): Likewise.
3019         * modules/lseek (Depends-on): Likewise.
3020         * modules/nonblocking (Depends-on): Likewise.
3021         * modules/poll (Depends-on): Likewise.
3022         * modules/read (Depends-on): Likewise.
3023         * modules/select (Depends-on): Likewise.
3024         * modules/sockets (Depends-on): Likewise.
3025         * modules/sigpipe (Depends-on): Likewise.
3026         * modules/write (Depends-on): Likewise.
3027         * modules/accept (Depends-on): Likewise.
3028         * modules/bind (Depends-on): Likewise.
3029         * modules/connect (Depends-on): Likewise.
3030         * modules/gethostname (Depends-on): Likewise.
3031         * modules/getpeername (Depends-on): Likewise.
3032         * modules/getsockname (Depends-on): Likewise.
3033         * modules/getsockopt (Depends-on): Likewise.
3034         * modules/ioctl (Depends-on): Likewise.
3035         * modules/listen (Depends-on): Likewise.
3036         * modules/recv (Depends-on): Likewise.
3037         * modules/recvfrom (Depends-on): Likewise.
3038         * modules/send (Depends-on): Likewise.
3039         * modules/sendto (Depends-on): Likewise.
3040         * modules/setsockopt (Depends-on): Likewise.
3041         * modules/shutdown (Depends-on): Likewise.
3042         * modules/socket (Depends-on): Likewise.
3043         * modules/execute (Depends-on): Likewise.
3044         * modules/spawn-pipe (Depends-on): Likewise.
3045         * modules/flock (Depends-on): Likewise.
3046         * modules/fsync (Depends-on): Likewise.
3047         * modules/isapipe (Depends-on): Likewise.
3048         * tests/test-cloexec.c: Include msvc-nothrow.h.
3049         * tests/test-dup-safer.c: Likewise.
3050         * tests/test-dup2.c: Likewise.
3051         * tests/test-dup3.c: Likewise.
3052         * tests/test-fcntl.c: Likewise.
3053         * tests/test-pipe.c: Likewise.
3054         * tests/test-pipe2.c: Likewise.
3055         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
3056         * modules/unistd-safer-tests (Depends-on): Likewise.
3057         * modules/dup2-tests (Depends-on): Likewise.
3058         * modules/dup3-tests (Depends-on): Likewise.
3059         * modules/fcntl-tests (Depends-on): Likewise.
3060         * modules/pipe-posix-tests (Depends-on): Likewise.
3061         * modules/pipe2-tests (Depends-on): Likewise.
3062
3063 2011-09-23  Bruno Haible  <bruno@clisp.org>
3064
3065         dup2: Make code more maintainable.
3066         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
3067         (rpl_dup2): Use it.
3068         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
3069         * modules/dup2 (configure.ac): Invoke it.
3070         Reported by Paul Eggert.
3071
3072 2011-09-23  Bruno Haible  <bruno@clisp.org>
3073
3074         msvc-inval: Fix compilation error.
3075         * lib/msvc-inval.h: Include <excpt.h>.
3076
3077 2011-09-23  Bruno Haible  <bruno@clisp.org>
3078
3079         mkdir: Tweak for MSVC 9.
3080         * lib/sys_stat.in.h: Update comments.
3081         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
3082
3083         Tests for module 'chdir'.
3084         * modules/chdir-tests: New file.
3085         * tests/test-chdir.c: New file.
3086
3087         New module 'chdir'.
3088         * modules/chdir: New file.
3089         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
3090         (chdir): New declaration.
3091         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
3092         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
3093         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
3094         * tests/test-unistd-c++.cc: Check signature of chdir.
3095         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
3096         * modules/chdir-long (Depends-on): Add chdir.
3097         * modules/fchdir (Depends-on): Likewise.
3098         * modules/rename (Depends-on): Likewise.
3099         * modules/savewd (Depends-on): Likewise.
3100
3101         rmdir: Support for mingw, MSVC 9.
3102         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
3103         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
3104
3105         getcwd: Tweak for MSVC 9.
3106         * lib/unistd.in.h: Update comments.
3107         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
3108
3109 2011-09-22  Bruno Haible  <bruno@clisp.org>
3110
3111         strerror_r-posix: Avoid a link error on MSVC.
3112         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
3113         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
3114
3115 2011-09-22  Bruno Haible  <bruno@clisp.org>
3116
3117         select: Avoid link errors on MSVC.
3118         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
3119         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
3120         * modules/pselect (Link): Likewise.
3121         * NEWS: Mention the change.
3122         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
3123         test-select-stdin against $(LIB_SELECT).
3124         * modules/pselect-tests (Makefile.am): Link test-pselect against
3125         $(LIB_SELECT).
3126
3127 2011-09-22  Bruno Haible  <bruno@clisp.org>
3128
3129         select: Avoid compilation error on MSVC.
3130         * lib/select.c: Don't include <stdbool.h>.
3131
3132 2011-09-21  Bruno Haible  <bruno@clisp.org>
3133
3134         Consolidate all uses of PATH_MAX in *.m4 files.
3135         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
3136         macros.
3137         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
3138         and gl_PATHMAX_SNIPPET.
3139         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
3140         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
3141         * modules/chdir-long (Files): Add m4/pathmax.m4.
3142         * modules/getcwd (Files): Likewise.
3143
3144 2011-09-21  Bruno Haible  <bruno@clisp.org>
3145
3146         ftruncate: Un-deprecate, concentrate on Win32 support.
3147         * modules/ftruncate (Status, Notice): Remove sections.
3148         (Depends-on): Add largefile.
3149         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
3150         non-mingw platforms.
3151         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
3152         include <io.h>.
3153         * modules/perror-tests (Depends-on): Add ftruncate.
3154         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
3155         'ftruncate' module.
3156
3157 2011-09-21  Bruno Haible  <bruno@clisp.org>
3158
3159         Add dependencies to new dirent related modules.
3160         * modules/opendir (Depends-on): Add closedir.
3161         * modules/getcwd (Depends-on): Add opendir, closedir.
3162         * modules/dirent-safer-tests (Depends-on): Likewise.
3163         * modules/fdopendir-tests (Depends-on): Likewise.
3164         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
3165         * modules/renameat-tests (Depends-on): Likewise.
3166
3167 2011-09-21  Bruno Haible  <bruno@clisp.org>
3168
3169         opendir: Avoid compilation error on mingw.
3170         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
3171         * modules/opendir (Depends-on): Add unistd.
3172
3173 2011-09-21  Bruno Haible  <bruno@clisp.org>
3174
3175         ftruncate tests: Avoid a test failure on mingw.
3176         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
3177
3178 2011-09-21  Bruno Haible  <bruno@clisp.org>
3179
3180         select tests: Avoid test failures on OSF/1 5.1 and mingw.
3181         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
3182         native Windows.
3183
3184 2011-09-21  Bruno Haible  <bruno@clisp.org>
3185
3186         New module 'fdopen'.
3187         * lib/stdio.in.h (fdopen): New declaration.
3188         * lib/fdopen.c: New file.
3189         * m4/fdopen.m4: New file.
3190         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
3191         REPLACE_FDOPEN.
3192         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
3193         REPLACE_FDOPEN.
3194         * modules/fdopen: New file.
3195         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
3196         * tests/test-stdio-c++.cc: Check signature of fdopen.
3197         * doc/posix-functions/fdopen.texi: Mention the new module.
3198
3199 2011-09-21  Bruno Haible  <bruno@clisp.org>
3200
3201         unlockpt tests: Avoid test failure on NetBSD 5.1.
3202         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
3203         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
3204
3205 2011-09-21  Bruno Haible  <bruno@clisp.org>
3206
3207         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
3208         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
3209         * tests/test-getlogin_r.c (main): Likewise.
3210
3211 2011-09-20  Bruno Haible  <bruno@clisp.org>
3212
3213         time tests: Don't require pid_t.
3214         * doc/posix-headers/time.texi: Revert last change.
3215         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
3216         * tests/test-time.c: Comment out the check for pid_t.
3217
3218 2011-09-20  Bruno Haible  <bruno@clisp.org>
3219
3220         fsync tests: Avoid a test failure on mingw.
3221         * tests/test-fsync.c (main): Allow a failure with EIO.
3222
3223 2011-09-20  Bruno Haible  <bruno@clisp.org>
3224
3225         euidaccess: Update comments.
3226         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
3227
3228 2011-09-20  Bruno Haible  <bruno@clisp.org>
3229
3230         Ensure EBADF returns for socket functions on mingw.
3231         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
3232         descriptor is invalid.
3233         * lib/bind.c (rpl_bind): Likewise.
3234         * lib/connect.c (rpl_connect): Likewise.
3235         * lib/getpeername.c (rpl_getpeername): Likewise.
3236         * lib/getsockname.c (rpl_getsockname): Likewise.
3237         * lib/getsockopt.c (rpl_getsockopt): Likewise.
3238         * lib/listen.c (rpl_listen): Likewise.
3239         * lib/recv.c (rpl_recv): Likewise.
3240         * lib/recvfrom.c (rpl_recvfrom): Likewise.
3241         * lib/send.c (rpl_send): Likewise.
3242         * lib/sendto.c (rpl_sendto): Likewise.
3243         * lib/setsockopt.c (rpl_setsockopt): Likewise.
3244         * lib/shutdown.c (rpl_shutdown): Likewise.
3245
3246 2011-09-20  Bruno Haible  <bruno@clisp.org>
3247
3248         select tests: EBADF tests.
3249         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
3250         test_bad_fd): New functions.
3251         (test_function): Invoke also test_bad_fd.
3252
3253 2011-09-20  Bruno Haible  <bruno@clisp.org>
3254
3255         Tests for module 'posix_spawn_file_actions_addopen.
3256         * modules/posix_spawn_file_actions_addopen-tests: New file.
3257         * tests/test-posix_spawn_file_actions_addopen.c: New file.
3258
3259         Tests for module 'posix_spawn_file_actions_adddup2'.
3260         * modules/posix_spawn_file_actions_adddup2-tests: New file.
3261         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
3262
3263         Tests for module 'posix_spawn_file_actions_addclose'.
3264         * modules/posix_spawn_file_actions_addclose-tests: New file.
3265         * tests/test-posix_spawn_file_actions_addclose.c: New file.
3266
3267 2011-09-20  Bruno Haible  <bruno@clisp.org>
3268
3269         Tests for module 'unlockpt'.
3270         * modules/unlockpt-tests: New file.
3271         * tests/test-unlockpt.c: New file.
3272         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
3273
3274         Tests for module 'grantpt'.
3275         * modules/grantpt-tests: New file.
3276         * tests/test-grantpt.c: New file.
3277         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
3278
3279 2011-09-20  Bruno Haible  <bruno@clisp.org>
3280
3281         freopen tests: EBADF tests.
3282         * tests/test-freopen.c: Include errno.h, unistd.h.
3283         (main): Add tests for EBADF, commented out for the moment.
3284
3285         fclose tests: EBADF tests.
3286         * tests/test-fclose.c (main): Add tests for EBADF.
3287
3288         fflush tests: EBADF tests.
3289         * tests/test-fflush.c: Include errno.h, macros.h.
3290         (main): Add tests for EBADF.
3291
3292         ftello tests: EBADF tests.
3293         * tests/test-ftello4.sh: New file.
3294         * tests/test-ftello4.c: New file.
3295         * modules/ftello-tests (Files): Add them.
3296         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
3297
3298         fseeko tests: EBADF tests.
3299         * tests/test-fseeko4.sh: New file.
3300         * tests/test-fseeko4.c: New file.
3301         * modules/fseeko-tests (Files): Add them.
3302         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
3303
3304         Tests for function fputc().
3305         * modules/fputc-tests: New file.
3306         * tests/test-fputc.c: New file.
3307         * modules/stdio-tests (Depends-on): Add fputc-tests.
3308
3309         Tests for function fgetc().
3310         * modules/fgetc-tests: New file.
3311         * tests/test-fgetc.c: New file.
3312         * modules/stdio-tests (Depends-on): Add fgetc-tests.
3313
3314         Tests for function fdopen().
3315         * modules/fdopen-tests: New file.
3316         * tests/test-fdopen.c: New file.
3317         * modules/stdio-tests (Depends-on): Add fdopen-tests.
3318
3319         Tests for module 'vdprintf'.
3320         * modules/vdprintf-tests: New file.
3321         * tests/test-vdprintf.c: New file.
3322
3323         Tests for module 'dprintf'.
3324         * modules/dprintf-tests: New file.
3325         * tests/test-dprintf.c: New file.
3326
3327 2011-09-20  Bruno Haible  <bruno@clisp.org>
3328
3329         Tests for module 'ioctl'.
3330         * modules/ioctl-tests: New file.
3331         * tests/test-ioctl.c: New file.
3332
3333 2011-09-20  Bruno Haible  <bruno@clisp.org>
3334
3335         fcntl tests: EBADF tests.
3336         * tests/test-fcntl.c (main): Add more tests for EBADF.
3337
3338 2011-09-20  Bruno Haible  <bruno@clisp.org>
3339
3340         utimensat tests: EBADF tests.
3341         * tests/test-utimensat.c (main): Add tests for EBADF.
3342
3343         renameat tests: EBADF tests.
3344         * tests/test-renameat.c (main): Add tests for EBADF.
3345
3346         mkfifoat tests: EBADF tests.
3347         * tests/test-mkfifoat.c (main): Add tests for EBADF.
3348
3349         readlinkat tests: EBADF tests.
3350         * tests/test-readlinkat.c (main): Add tests for EBADF.
3351
3352         symlinkat tests: EBADF tests.
3353         * tests/test-symlinkat.c (main): Add tests for EBADF.
3354
3355         linkat tests: EBADF tests.
3356         * tests/test-linkat.c (main): Add tests for EBADF.
3357
3358         Tests for module 'faccessat'.
3359         * modules/faccessat-tests: New file.
3360         * tests/test-faccessat.c: New file.
3361
3362         fdopendir tests: EBADF tests.
3363         * tests/test-fdopendir.c (main): Add more tests for EBADF.
3364
3365         openat tests: EBADF tests.
3366         * tests/test-fchownat.c (main): Add tests for EBADF.
3367         * tests/test-fstatat.c (main): Likewise.
3368         * tests/test-mkdirat.c (main): Likewise.
3369         * tests/test-openat.c (main): Likewise.
3370         * tests/test-unlinkat.c (main): Likewise.
3371         * tests/test-fchmodat.c: New file.
3372         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
3373         (Makefile.am): Also run 'test-fchmodat'.
3374
3375 2011-09-20  Bruno Haible  <bruno@clisp.org>
3376
3377         utimens, futimens, fdutimensat tests: EBADF tests.
3378         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
3379
3380         Tests for function fstat().
3381         * modules/fstat-tests: New file.
3382         * tests/test-fstat.c: New file.
3383         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
3384
3385 2011-09-20  Bruno Haible  <bruno@clisp.org>
3386
3387         test-ttyname_r tests: EBADF tests.
3388         * tests/test-ttyname_r.c (main): Add tests for EBADF.
3389
3390         Tests for module 'isatty'.
3391         * modules/isatty-tests: New file.
3392         * tests/test-isatty.c: New file.
3393
3394         Tests for module 'write'.
3395         * modules/write-tests: New file.
3396         * tests/test-write.c: New file.
3397
3398         Tests for module 'read'.
3399         * modules/read-tests: New file.
3400         * tests/test-read.c: New file.
3401
3402         pwrite tests: EBADF tests.
3403         * tests/test-pwrite.c (main): Add tests for EBADF.
3404
3405         pread tests: EBADF tests.
3406         * tests/test-pread.c (main): Add tests for EBADF.
3407
3408         lseek tests: EBADF tests.
3409         * tests/test-lseek.c (main): Add more tests for EBADF.
3410
3411         Tests for module 'ftruncate'.
3412         * modules/ftruncate-tests: New file.
3413         * tests/test-ftruncate.sh: New file.
3414         * tests/test-ftruncate.c: New file.
3415
3416         fsync tests: EBADF tests.
3417         * tests/test-fsync.c (main): Add more tests for EBADF.
3418
3419         fdatasync tests: EBADF tests.
3420         * tests/test-fdatasync.c (main): Add more tests for EBADF.
3421
3422         Tests for module 'fchown'.
3423         * modules/fchown-tests: New file.
3424         * tests/test-fchown.c: New file.
3425
3426         Tests for module 'fchmod'.
3427         * modules/fchmod-tests: New file.
3428         * tests/test-fchmod.c: New file.
3429
3430         fchdir tests: EBADF tests.
3431         * tests/test-fchdir.c (main): Add more tests for EBADF.
3432
3433         dup2 tests: EBADF tests.
3434         * tests/test-dup2.c (main): Add more tests for EBADF.
3435
3436         Tests for module 'dup'.
3437         * modules/dup-tests: New file.
3438         * tests/test-dup.c: New file.
3439
3440         Tests for module 'close'.
3441         * modules/close-tests: New file.
3442         * tests/test-close.c: New file.
3443
3444 2011-09-20  Bruno Haible  <bruno@clisp.org>
3445
3446         Tests for module 'shutdown'.
3447         * modules/shutdown-tests: New file.
3448         * tests/test-shutdown.c: New file.
3449
3450         Tests for module 'setsockopt'.
3451         * modules/setsockopt-tests: New file.
3452         * tests/test-setsockopt.c: New file.
3453
3454         Tests for module 'sendto'.
3455         * modules/sendto-tests: New file.
3456         * tests/test-sendto.c: New file.
3457
3458         Tests for module 'send'.
3459         * modules/send-tests: New file.
3460         * tests/test-send.c: New file.
3461
3462         Tests for module 'recvfrom'.
3463         * modules/recvfrom-tests: New file.
3464         * tests/test-recvfrom.c: New file.
3465
3466         Tests for module 'recv'.
3467         * modules/recv-tests: New file.
3468         * tests/test-recv.c: New file.
3469
3470         Tests for module 'listen'.
3471         * modules/listen-tests: New file.
3472         * tests/test-listen.c: New file.
3473
3474         Tests for module 'getsockopt'.
3475         * modules/getsockopt-tests: New file.
3476         * tests/test-getsockopt.c: New file.
3477
3478         Tests for module 'getsockname'.
3479         * modules/getsockname-tests: New file.
3480         * tests/test-getsockname.c: New file.
3481
3482         Tests for module 'getpeername'.
3483         * modules/getpeername-tests: New file.
3484         * tests/test-getpeername.c: New file.
3485
3486         Tests for module 'connect'.
3487         * modules/connect-tests: New file.
3488         * tests/test-connect.c: New file.
3489
3490         Tests for module 'bind'.
3491         * modules/bind-tests: New file.
3492         * tests/test-bind.c: New file.
3493
3494         accept4 tests: Fix for native Windows.
3495         * tests/test-accept4.c: Include sockets.h.
3496         (main): Invoke gl_sockets_startup.
3497         * modules/accept4-tests (Depends-on): Add sockets.
3498
3499         accept tests: Fix for native Windows.
3500         * tests/test-accept.c: Include sockets.h.
3501         (main): Invoke gl_sockets_startup.
3502         * modules/accept-tests (Depends-on): Add sockets.
3503
3504 2011-09-19  Bruno Haible  <bruno@clisp.org>
3505
3506         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
3507         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
3508         do...while(0).
3509         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
3510         Suggested by Paul Eggert.
3511
3512 2011-09-19  Bruno Haible  <bruno@clisp.org>
3513
3514         sched: Ensure pid_t is defined.
3515         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
3516         not define pid_t.
3517         * lib/sched.in.h: Include <sys/types.h>.
3518         * doc/posix-headers/sched.texi: Mention the pid_t problem.
3519         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3520
3521 2011-09-19  Bruno Haible  <bruno@clisp.org>
3522
3523         msvc-inval: Ensure the entire expansion is a single statement.
3524         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
3525         of braces.
3526
3527 2011-09-19  Jim Meyering  <meyering@redhat.com>
3528
3529         tests: use printf, not echo in init.sh's warn_ function
3530         * tests/init.sh (warn_): Use printf, not echo.  The latter would
3531         misbehave when given strings containing a backslash or starting
3532         with e.g., -n.  James Youngman suggested setting IFS.
3533
3534 2011-09-19  Eric Blake  <eblake@redhat.com>
3535
3536         futimens: enhance test
3537         * tests/test-futimens.h (test_futimens): Also check for EBADF on
3538         closed non-negative fd.
3539
3540         date: accept 'hence' as opposite of 'ago'
3541         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
3542         * tests/test-parse-datetime.c (main): Enhance test.
3543         Suggested by Jesse Wilson.
3544
3545 2011-09-19  Jim Meyering  <meyering@redhat.com>
3546
3547         getcwd: don't fail in a deep directory on a system without openat
3548         Before this change, getcwd would fail when called from a directory
3549         of depth PATH_MAX / 3 or greater.  That was due to the fact that
3550         the non-openat implementation used "..", "../..", "../../..", etc.
3551         to access ancestor directories.  With too many, that string would
3552         be longer than PATH_MAX.
3553         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
3554         using gnulib's openat replacement.
3555         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
3556         we're using the replacement function.
3557
3558 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
3559
3560         maint.mk: avoid warnings from perl about missing files
3561         * top/maint.mk (def_sym_regex): Ignore files listed in
3562         $(gl_other_headers_) that do not exist, say because a project
3563         does not use a corresponding module.
3564
3565 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
3566
3567         stat: use pathmax.h only if needed
3568         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
3569         This is better for Emacs, which does not have a mingw port and
3570         therefore can avoid the pathmax module.
3571
3572         utimens: remove dependency on dup2
3573         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
3574         to work around the Linux kernel bug.
3575         * modules/utimens (Depends-on): Remove dup2.
3576
3577 2011-09-18  Bruno Haible  <bruno@clisp.org>
3578
3579         inet_ntop, inet_pton: Look for it also in libresolv.
3580         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
3581         libnsl, search for it in libresolv.
3582         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
3583         Needed on Solaris 7.
3584
3585 2011-09-18  Bruno Haible  <bruno@clisp.org>
3586
3587         accept, accept4 tests: Avoid link error on Solaris.
3588         * modules/accept-tests (Makefile.am): Link test-accept against
3589         $(LIBSOCKET).
3590         * modules/accept4-tests (Makefile.am): Link test-accept4 against
3591         $(LIBSOCKET).
3592
3593         accept4: Avoid link error on Solaris.
3594         * modules/accept4 (Link): New section.
3595
3596         socket functions: Avoid link errors on Solaris.
3597         * modules/accept (Depends-on): Add socketlib.
3598         (Link): New section.
3599         * modules/bind (Depends-on): Add socketlib.
3600         (Link): New section.
3601         * modules/connect (Depends-on): Add socketlib.
3602         (Link): New section.
3603         * modules/getpeername (Depends-on): Add socketlib.
3604         (Link): New section.
3605         * modules/getsockname (Depends-on): Add socketlib.
3606         (Link): New section.
3607         * modules/getsockopt (Depends-on): Add socketlib.
3608         (Link): New section.
3609         * modules/listen (Depends-on): Add socketlib.
3610         (Link): New section.
3611         * modules/recv (Depends-on): Add socketlib.
3612         (Link): New section.
3613         * modules/recvfrom (Depends-on): Add socketlib.
3614         (Link): New section.
3615         * modules/send (Depends-on): Add socketlib.
3616         (Link): New section.
3617         * modules/sendto (Depends-on): Add socketlib.
3618         (Link): New section.
3619         * modules/setsockopt (Depends-on): Add socketlib.
3620         (Link): New section.
3621         * modules/shutdown (Depends-on): Add socketlib.
3622         (Link): New section.
3623         * modules/socket (Depends-on): Add socketlib.
3624         (Link): New section.
3625
3626 2011-09-18  Bruno Haible  <bruno@clisp.org>
3627
3628         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
3629         * tests/test-ptsname.c (main): Terminate the test if it takes longer
3630         than 5 seconds.
3631         * modules/ptsname-tests (configure.ac): Test for alarm.
3632
3633 2011-09-18  Bruno Haible  <bruno@clisp.org>
3634
3635         posix_spawn_file_actions_add*: Fix module dependencies.
3636         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
3637         posix_spawn_file_actions_init.
3638         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
3639         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
3640
3641 2011-09-18  Bruno Haible  <bruno@clisp.org>
3642
3643         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
3644         * tests/test-rename.h (test_rename): Allow error code EEXIST.
3645         * tests/test-renameat.c (main): Likewise.
3646
3647 2011-09-18  Bruno Haible  <bruno@clisp.org>
3648
3649         Tests for module 'accept4'.
3650         * modules/accept4-tests: New file.
3651         * tests/test-accept4.c: New file.
3652
3653 2011-09-18  Bruno Haible  <bruno@clisp.org>
3654
3655         Tests for module 'accept'.
3656         * modules/accept-tests: New file.
3657         * tests/test-accept.c: New file.
3658
3659 2011-09-18  Bruno Haible  <bruno@clisp.org>
3660
3661         dup2: Support for MSVC.
3662         * lib/dup2.c: Include msvc-inval.h.
3663         (rpl_dup2): Handle invalid parameter notifications during dup2 and
3664         _get_osfhandle calls.
3665         * modules/dup2 (Depends-on): Add msvc-inval.
3666         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
3667
3668         New module 'msvc-inval'.
3669         * lib/msvc-inval.h: New file.
3670         * lib/msvc-inval.c: New file.
3671         * m4/msvc-inval.m4: New file.
3672         * modules/msvc-inval: New file.
3673
3674 2011-09-17  Bruno Haible  <bruno@clisp.org>
3675
3676         Tests for module 'pclose'.
3677         * modules/pclose-tests: New file.
3678
3679         New module 'pclose'.
3680         * lib/stdio.in.h (pclose): New declaration.
3681         * lib/pclose.c: New file.
3682         * m4/pclose.m4: New file.
3683         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
3684         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
3685         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
3686         * modules/pclose: New file.
3687         * modules/popen-tests (Depends-on): Add pclose.
3688         * modules/popen-safer-tests (Depends-on): Likewise.
3689         * doc/posix-functions/pclose.texi: Mention the new module.
3690
3691 2011-09-17  Bruno Haible  <bruno@clisp.org>
3692
3693         popen: Support for MSVC.
3694         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
3695         * lib/popen.c (popen): Provide alternate definition for native Windows.
3696         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
3697         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
3698         * modules/popen (Depends-on, configure.ac): Update condition.
3699         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
3700         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
3701         fixed.
3702
3703 2011-09-17  Bruno Haible  <bruno@clisp.org>
3704
3705         isnanl, isnand, isnanf: Work around MSVC bug.
3706         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
3707
3708 2011-09-17  Bruno Haible  <bruno@clisp.org>
3709
3710         sys_socket tests: Fix recent mistake.
3711         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
3712
3713 2011-09-17  Bruno Haible  <bruno@clisp.org>
3714
3715         putenv: Support for MSVC.
3716         * modules/putenv (Depends-on): Add environ.
3717         * lib/putenv.c (environ): Disable declaration.
3718         * lib/unistd.in.h: Update comment.
3719
3720 2011-09-17  Bruno Haible  <bruno@clisp.org>
3721
3722         math: Avoid macro redefinition warnings on MSVC.
3723         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
3724         Undefine before redefining.
3725
3726 2011-09-17  Bruno Haible  <bruno@clisp.org>
3727
3728         doc: Mention functions which are declared as macros.
3729         * doc/posix-functions/*[fl].texi: Mention that some functions are
3730         defined as macros with arguments only.
3731
3732 2011-09-17  Bruno Haible  <bruno@clisp.org>
3733
3734         Add dependencies to new dirent related modules.
3735         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
3736         * modules/fts (Depends-on): Likewise.
3737         * modules/glob (Depends-on): Likewise.
3738         * modules/savedir (Depends-on): Likewise.
3739         * modules/scandir (Depends-on): Likewise.
3740         * modules/dirent-safer (Depends-on): Add opendir, closedir.
3741         * modules/fdopendir (Depends-on): Add opendir.
3742
3743 2011-09-17  Bruno Haible  <bruno@clisp.org>
3744
3745         inet_pton: Support for MSVC on Windows Vista or newer.
3746         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
3747         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
3748         HAVE_DECL_INET_PTON is defined.
3749         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
3750         On platforms with <winsock2.h>, test whether inet_pton is declared in
3751         <ws2tcpip.h>. If so, arrange to replace it.
3752         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
3753         REPLACE_INET_PTON.
3754         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
3755         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
3756         (Depends-on, configure.ac): Update condition.
3757         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
3758
3759 2011-09-17  Bruno Haible  <bruno@clisp.org>
3760
3761         inet_ntop: Support for MSVC on Windows Vista or newer.
3762         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
3763         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
3764         HAVE_DECL_INET_NTOP is defined.
3765         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
3766         On platforms with <winsock2.h>, test whether inet_ntop is declared in
3767         <ws2tcpip.h>. If so, arrange to replace it.
3768         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
3769         REPLACE_INET_NTOP.
3770         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
3771         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
3772         (Depends-on, configure.ac): Update condition.
3773         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
3774
3775 2011-09-16  Eric Blake  <eblake@redhat.com>
3776
3777         test-fsync: yet another enhancement
3778         * tests/test-fsync.c (main): Also test behavior on read-only text
3779         file.
3780
3781 2011-09-16  Bruno Haible  <bruno@clisp.org>
3782
3783         Enhance fsync, fdatasync tests.
3784         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
3785         * tests/test-fdatasync.c (main): Likewise.
3786
3787 2011-09-16  Bruno Haible  <bruno@clisp.org>
3788
3789         Support for MSVC compiler: Ensure mode_t gets defined.
3790         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
3791         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
3792         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
3793         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
3794         * tests/test-fcntl-h.c: Check that mode_t is defined.
3795         * tests/test-sys_stat.c: Likewise.
3796         * tests/test-sys_types.c: Likewise.
3797         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
3798         * doc/posix-headers/sys_stat.texi: Likewise.
3799         * doc/posix-headers/sys_types.texi: Likewise.
3800
3801 2011-09-16  Bruno Haible  <bruno@clisp.org>
3802
3803         sys_stat: Support for MSVC.
3804         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
3805         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
3806         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
3807         MSVC.
3808
3809 2011-09-16  Bruno Haible  <bruno@clisp.org>
3810
3811         Support for MSVC compiler: Ensure off_t gets defined.
3812         * lib/unistd.in.h: Include <sys/types.h>.
3813         * tests/test-fcntl-h.c: Check that off_t is defined.
3814         * tests/test-sys_stat.c: Likewise.
3815         * tests/test-sys_types.c: Likewise.
3816
3817 2011-09-16  Eric Blake  <eblake@redhat.com>
3818
3819         fdatasync: port to Solaris
3820         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
3821         * modules/fdatasync (Link): Document it.
3822         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
3823
3824         fdatasync: port to MacOS X 10.7
3825         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
3826         declared.
3827         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
3828         * modules/unistd (Makefile.am): Substitute it.
3829         * lib/unistd.in.h (fdatasync): Declare on MacOS.
3830         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
3831
3832         fdatasync: minor improvements
3833         * modules/fdatasync (Depends-on): Add condition for fsync.
3834         * lib/fdatasync.c (fdatasync): Add comment.
3835         * tests/test-unistd-c++.cc: Test fdatasync.
3836
3837         unistd: update refs to newer POSIX
3838         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
3839         Suggested by Bruno Haible.
3840
3841         fdatasync: new module
3842         * modules/fsync (Description): Document difference to fdatasync.
3843         * modules/fdatasync: New module.
3844         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
3845         * lib/fdatasync.c (fdatasync): Likewise.
3846         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
3847         defaults.
3848         * modules/unistd (Makefile.am): Set witnesses.
3849         * lib/unistd.in.h (fdatasync): Declare.
3850         * MODULES.html.sh: Document it.
3851         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
3852         * modules/fdatasync-tests: New test.
3853         * tests/test-fdatasync.c: Likewise.
3854
3855 2011-09-16  Eric Blake  <eblake@redhat.com>
3856
3857         test-fsync: enhance tests
3858         * modules/fsync-tests (Depends-on): Add errno, for mingw.
3859         * tests/test-fsync.c (main): Enhance test.
3860
3861 2011-09-15  Bruno Haible  <bruno@clisp.org>
3862
3863         Support for MSVC compiler: Ensure ssize_t gets defined.
3864         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
3865         * doc/posix-headers/stdio.texi: Likewise.
3866         * modules/stdio (Depends-on): Add ssize_t.
3867         * modules/sys_socket (Depends-on): Likewise.
3868         * modules/sys_types (Depends-on): Likewise.
3869         * modules/sys_uio (Depends-on): Likewise.
3870         * modules/unistd (Depends-on): Likewise.
3871         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
3872         * tests/test-sys_types.c: Check that ssize_t is defined.
3873
3874 2011-09-14  Bruno Haible  <bruno@clisp.org>
3875
3876         Avoid using #, the m4 comment starter character, near brackets.
3877         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
3878         delimiter character in sed expressions.
3879         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
3880         Suggested by Eric Blake.
3881
3882         Properly quote AC_CHECK_DECLS' 4th argument.
3883         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
3884         argument.
3885         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
3886         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
3887         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
3888         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
3889         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
3890         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
3891         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
3892         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
3893         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
3894         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
3895         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
3896         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
3897         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
3898         * m4/isinf.m4 (gl_ISINF): Likewise.
3899         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
3900         * m4/readutmp.m4 (gl_READUTMP): Likewise.
3901         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
3902         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
3903         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
3904         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
3905         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
3906         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
3907         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
3908         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
3909         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
3910         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
3911         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
3912         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
3913         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
3914         Reported by Eric Blake.
3915
3916         Properly quote AC_CHECK_DECL's 4th argument.
3917         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
3918         argument.
3919         * m4/argp.m4 (gl_ARGP): Likewise.
3920         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
3921         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
3922         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
3923         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
3924         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
3925         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
3926         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
3927         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
3928         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
3929         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
3930         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
3931         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
3932         Reported by Eric Blake.
3933
3934 2011-09-14  Eric Blake  <eblake@redhat.com>
3935
3936         opendir: avoid compile warning
3937         * lib/opendir.c (includes): Always include errno.h.
3938         Reported by Tatsuro MATSUOKA.
3939
3940 2011-09-14  Jim Meyering  <meyering@redhat.com>
3941
3942         maint.mk: sc_tight_scope: propagate failure from sub-make
3943         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
3944         Reported by Martin von Gagern.
3945
3946 2011-09-13  Bruno Haible  <bruno@clisp.org>
3947
3948         tempname: Support for MSVC.
3949         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
3950         MSVC.
3951         * modules/tempname (Depends-on): Add fcntl-h.
3952
3953 2011-09-13  Bruno Haible  <bruno@clisp.org>
3954
3955         sys_time: Support for MSVC.
3956         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
3957         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
3958         include <winsock2.h>.
3959         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
3960         function declarations that collide with POSIX.
3961         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
3962         (Makefile.am): Substitute HAVE_WINSOCK2_H.
3963
3964 2011-09-13  Bruno Haible  <bruno@clisp.org>
3965
3966         stat: Support for MSVC.
3967         * lib/stat.c: Include pathmax.h.
3968         * modules/stat (Depends-on): Add pathmax.
3969
3970         pathmax: Support for native Windows.
3971         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
3972
3973 2011-09-12  Bruno Haible  <bruno@clisp.org>
3974
3975         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
3976         * lib/dirent.in.h (struct dirent): New type.
3977         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
3978         DT_WHT): New macros.
3979         (DIR): New type.
3980         (opendir, closedir): Declare only if the module 'opendir' is enabled.
3981         (readdir, rewinddir): New declarations.
3982         * lib/dirent-private.h: New file.
3983         * lib/opendir.c: New file.
3984         * lib/readdir.c: New file.
3985         * lib/rewinddir.c: New file.
3986         * lib/closedir.c: New file.
3987         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
3988         * m4/opendir.m4: New file.
3989         * m4/readdir.m4: New file.
3990         * m4/rewinddir.m4: New file.
3991         * m4/closedir.m4: New file.
3992         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
3993         REPLACE_CLOSEDIR here.
3994         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
3995         readdir, rewinddir are declared.
3996         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
3997         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
3998         HAVE_REWINDDIR, HAVE_CLOSEDIR.
3999         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
4000         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
4001         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
4002         * modules/opendir: New file.
4003         * modules/readdir: New file.
4004         * modules/rewinddir: New file.
4005         * modules/closedir: New file.
4006         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
4007         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
4008         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
4009         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
4010         * NEWS: Mention the 'fchdir' change.
4011
4012 2011-09-11  Bruno Haible  <bruno@clisp.org>
4013
4014         asm-underscore.m4: Support for MSVC.
4015         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
4016         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
4017
4018 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
4019
4020         Doc about crypt functions.
4021         * doc/posix-functions/crypt.texi: Expand range of glibc versions
4022         needing for _GNU_SOURCE to get crypt.
4023         * doc/posix-functions/encrypt.texi: Likewise.
4024         * doc/posix-functions/setkey.texi: Likewise.
4025
4026 2011-09-11  Bruno Haible  <bruno@clisp.org>
4027
4028         doc: Update regarding MSVC 9.
4029         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
4030         tested".
4031         * doc/posix-functions/*.texi: Update with info about MSVC 9.
4032         * doc/posix-headers/*.texi: Likewise.
4033         * doc/pastposix-functions/*.texi: Likewise.
4034         * doc/glibc-functions/*.texi: Likewise.
4035         * doc/glibc-headers/*.texi: Likewise.
4036
4037 2011-09-11  Bruno Haible  <bruno@clisp.org>
4038
4039         unistd et al.: Don't assume <unistd.h> exists.
4040         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
4041         does not exist.
4042         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
4043         exist. But include <stdlib.h>.
4044         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
4045         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
4046         symlink() does not exist.
4047         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
4048         include <io.h> instead.
4049         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
4050         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
4051         include <direct.h> instead.
4052         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
4053         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
4054         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
4055         <io.h> instead.
4056         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
4057         correctly if the system does not have hard links.
4058         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
4059         <direct.h> instead.
4060         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
4061         it when looking for function declarations.
4062         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
4063         <direct.h> and <io.h> instead.
4064         * doc/posix-headers/unistd.texi: More details about MSVC problem.
4065
4066 2011-09-11  Bruno Haible  <bruno@clisp.org>
4067
4068         strcase: Support for MSVC.
4069         * modules/strcase (Status, Notice): Remove obsoletion mark.
4070         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
4071         * doc/posix-functions/strncasecmp.texi: Likewise.
4072
4073         strings: Don't assume <strings.h> exists.
4074         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
4075         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
4076         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
4077         * doc/posix-headers/strings.texi: Mention the MSVC problem.
4078
4079 2011-09-11  Bruno Haible  <bruno@clisp.org>
4080
4081         dirent: Don't assume <dirent.h> exists.
4082         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
4083         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
4084         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
4085         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
4086
4087 2011-09-11  Bruno Haible  <bruno@clisp.org>
4088
4089         Fix wint_t on MSVC.
4090         * lib/wchar.in.h (wint_t): On MSVC, override it.
4091         * lib/wctype.in.h (wint_t): Likewise.
4092         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
4093         MSVC.
4094         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
4095         * doc/posix-headers/wctype.texi: Likewise.
4096
4097 2011-09-11  Bruno Haible  <bruno@clisp.org>
4098
4099         sys_types: Fix typo.
4100         * lib/sys_types.in.h: Fix typo in comment.
4101         Reported by Paul Eggert.
4102
4103         Support for MSVC compiler: Ensure size_t gets defined.
4104         * modules/strings (Depends-on): Add 'sys_types'.
4105         * modules/sys_uio (Depends-on): Likewise.
4106         * lib/sys_uio.in.h: Update comment.
4107
4108         C++ tests for module 'sys_types'.
4109         * modules/sys_types-c++-tests: New file.
4110         * tests/test-sys_types-c++.cc: New file.
4111
4112         Tests for module 'sys_types'.
4113         * modules/sys_types-tests: New file.
4114         * tests/test-sys_types.c: New file.
4115
4116         New module 'sys_types'.
4117         * lib/sys_types.in.h: New file.
4118         * m4/sys_types_h.m4: New file.
4119         * modules/sys_types: New file.
4120         * doc/posix-headers/sys_types.texi: Mention the new module and the
4121         size_t problem on MSVC 9.
4122
4123 2011-09-11  Bruno Haible  <bruno@clisp.org>
4124
4125         Support for MSVC compiler: Avoid division by a literal 0.
4126         * lib/math.in.h (NAN): Define through a function call also on MSVC.
4127         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
4128         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
4129         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
4130         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
4131         * tests/infinity.h: New file.
4132         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
4133         on MSVC.
4134         * tests/test-ceilf1.c: Include infinity.h.
4135         (main): Use Infinityf.
4136         * tests/test-ceil1.c: Include infinity.h.
4137         (main): Use Infinityd.
4138         * tests/test-ceill.c: Include infinity.h.
4139         (main): Use Infinityl.
4140         * tests/test-dprintf-posix.c: Include infinity.h.
4141         (test_function): Use Infinityd.
4142         * tests/test-floorf1.c: Include infinity.h.
4143         (main): Use Infinityf.
4144         * tests/test-floor1.c: Include infinity.h.
4145         (main): Use Infinityd.
4146         * tests/test-floorl.c: Include infinity.h.
4147         (main): Use Infinityl.
4148         * tests/test-fprintf-posix.c: Include infinity.h.
4149         (test_function): Use Infinityd.
4150         * tests/test-frexp.c: Include infinity.h.
4151         (main): Use Infinityd.
4152         * tests/test-frexpl.c: Include infinity.h.
4153         (main): Use Infinityl.
4154         * tests/test-isfinite.c: Include infinity.h.
4155         (test_isfinitef): Use Infinityf.
4156         (test_isfinited): Use Infinityd.
4157         (test_isfinitel): Use Infinityl.
4158         * tests/test-isinf.c: Include infinity.h.
4159         (test_isinff): Use Infinityf.
4160         (test_isinfd): Use Infinityd.
4161         (test_isinfl): Use Infinityl.
4162         * tests/test-isnan.c: Include infinity.h.
4163         (test_float): Use Infinityf.
4164         (test_double): Use Infinityd.
4165         (test_long_double): Use Infinityl.
4166         * tests/test-isnanf.h: Include infinity.h.
4167         (main): Use Infinityf.
4168         * tests/test-isnand.h: Include infinity.h.
4169         (main): Use Infinityd.
4170         * tests/test-isnanl.h: Include infinity.h.
4171         (main): Use Infinityl.
4172         * tests/test-ldexpl.c: Include infinity.h.
4173         (main): Use Infinityl.
4174         * tests/test-printf-posix.h: Include infinity.h.
4175         (test_function): Use Infinityd.
4176         * tests/test-roundf1.c: Include infinity.h.
4177         (main): Use Infinityf.
4178         * tests/test-round1.c: Include infinity.h.
4179         (main): Use Infinityd.
4180         * tests/test-roundl.c: Include infinity.h.
4181         (main): Use Infinityl.
4182         * tests/test-signbit.c: Include infinity.h.
4183         (test_signbitf): Use Infinityf.
4184         (test_signbitd): Use Infinityd.
4185         (test_signbitl): Use Infinityl.
4186         * tests/test-snprintf-posix.h: Include infinity.h.
4187         (test_function): Use Infinityd, Infinityl.
4188         * tests/test-sprintf-posix.h: Include infinity.h.
4189         (test_function): Use Infinityd, Infinityl.
4190         * tests/test-truncf1.c: Include infinity.h.
4191         (main): Use Infinityf.
4192         * tests/test-trunc1.c: Include infinity.h.
4193         (main): Use Infinityd.
4194         * tests/test-truncl.c: Include infinity.h.
4195         (main): Use Infinityl.
4196         * tests/test-vasnprintf-posix.c: Include infinity.h.
4197         (test_function): Use Infinityd, Infinityl.
4198         * tests/test-vasprintf-posix.c: Include infinity.h.
4199         (test_function): Use Infinityd, Infinityl.
4200         * modules/ceilf-tests (Files): Add tests/infinity.h.
4201         * modules/ceil-tests (Files): Likewise.
4202         * modules/ceill-tests (Files): Likewise.
4203         * modules/dprintf-posix-tests (Files): Likewise.
4204         * modules/floorf-tests (Files): Likewise.
4205         * modules/floor-tests (Files): Likewise.
4206         * modules/floorl-tests (Files): Likewise.
4207         * modules/fprintf-posix-tests (Files): Likewise.
4208         * modules/frexp-tests (Files): Likewise.
4209         * modules/frexp-nolibm-tests (Files): Likewise.
4210         * modules/frexpl-tests (Files): Likewise.
4211         * modules/frexpl-nolibm-tests (Files): Likewise.
4212         * modules/isfinite-tests (Files): Likewise.
4213         * modules/isinf-tests (Files): Likewise.
4214         * modules/isnan-tests (Files): Likewise.
4215         * modules/isnanf-tests (Files): Likewise.
4216         * modules/isnanf-nolibm-tests (Files): Likewise.
4217         * modules/isnand-tests (Files): Likewise.
4218         * modules/isnand-nolibm-tests (Files): Likewise.
4219         * modules/isnanl-tests (Files): Likewise.
4220         * modules/isnanl-nolibm-tests (Files): Likewise.
4221         * modules/ldexpl-tests (Files): Likewise.
4222         * modules/printf-posix-tests (Files): Likewise.
4223         * modules/roundf-tests (Files): Likewise.
4224         * modules/round-tests (Files): Likewise.
4225         * modules/roundl-tests (Files): Likewise.
4226         * modules/signbit-tests (Files): Likewise.
4227         * modules/snprintf-posix-tests (Files): Likewise.
4228         * modules/sprintf-posix-tests (Files): Likewise.
4229         * modules/truncf-tests (Files): Likewise.
4230         * modules/trunc-tests (Files): Likewise.
4231         * modules/truncl-tests (Files): Likewise.
4232         * modules/vasnprintf-posix-tests (Files): Likewise.
4233         * modules/vasprintf-posix-tests (Files): Likewise.
4234         * modules/vdprintf-posix-tests (Files): Likewise.
4235         * modules/vfprintf-posix-tests (Files): Likewise.
4236         * modules/vprintf-posix-tests (Files): Likewise.
4237         * modules/vsnprintf-posix-tests (Files): Likewise.
4238         * modules/vsprintf-posix-tests (Files): Likewise.
4239         * modules/xprintf-posix-tests (Files): Likewise.
4240
4241 2011-09-11  Bruno Haible  <bruno@clisp.org>
4242
4243         Ensure pid_t gets defined.
4244         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
4245         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
4246         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
4247         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
4248         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
4249         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
4250         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
4251         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
4252         * tests/test-fcntl-h.c: Check that pid_t is defined.
4253         * tests/test-sched.c: Likewise.
4254         * tests/test-termios.c: Likewise.
4255         * tests/test-time.c: Likewise.
4256         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
4257         * doc/posix-headers/signal.texi: Likewise.
4258         * doc/posix-headers/sys_types.texi: Likewise.
4259         * doc/posix-headers/time.texi: Likewise.
4260
4261 2011-09-11  Bruno Haible  <bruno@clisp.org>
4262
4263         acl: Fix compilation on Solaris 10 (older version).
4264         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
4265         of ACE_EVERYONE.
4266         * lib/set-mode-acl.c (qset_acl): Likewise.
4267         Reported by Christian Jullien <eligis@orange.fr>.
4268
4269 2011-09-10  Bruno Haible  <bruno@clisp.org>
4270
4271         iconv, unsetenv: Add support for MSVC compiler.
4272         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
4273         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
4274
4275 2011-09-10  Bruno Haible  <bruno@clisp.org>
4276
4277         *printf: Add support for MSVC compiler.
4278         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
4279         handles the exception caused by the %n directive. When cross-compiling,
4280         guess no on native Windows.
4281         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
4282         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
4283         emulate it through vsnprintf.
4284         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
4285         * doc/posix-functions/dprintf.texi: Update documentation regarding
4286         MSVC 9.
4287         * doc/posix-functions/fprintf.texi: Likewise.
4288         * doc/posix-functions/printf.texi: Likewise.
4289         * doc/posix-functions/snprintf.texi: Likewise.
4290         * doc/posix-functions/sprintf.texi: Likewise.
4291         * doc/posix-functions/swprintf.texi: Likewise.
4292         * doc/posix-functions/vdprintf.texi: Likewise.
4293         * doc/posix-functions/vfprintf.texi: Likewise.
4294         * doc/posix-functions/vprintf.texi: Likewise.
4295         * doc/posix-functions/vsnprintf.texi: Likewise.
4296         * doc/posix-functions/vsprintf.texi: Likewise.
4297         * doc/glibc-functions/asprintf.texi: Likewise.
4298         * doc/glibc-functions/obstack_printf.texi: Likewise.
4299         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
4300         * doc/glibc-functions/vasprintf.texi: Likewise.
4301
4302 2011-09-10  Bruno Haible  <bruno@clisp.org>
4303
4304         nocrash: Add support for native Windows.
4305         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
4306
4307 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
4308             Bruno Haible  <bruno@clisp.org>
4309
4310         absolute-header, include-next: Add support for MSVC compiler.
4311         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
4312         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
4313         directory separator in #line directives.
4314         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
4315         recognize also backslash as directory separator in #line directives.
4316
4317 2011-09-08  Jim Meyering  <meyering@redhat.com>
4318
4319         maint.mk: mark the post-release commit log with "maint: " prefix
4320         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
4321         one-line commit-log summary.
4322
4323 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
4324             Bruno Haible  <bruno@clisp.org>
4325
4326         Doc about crypt functions.
4327         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
4328         systems.
4329         * doc/posix-functions/encrypt.texi: Likewise.
4330         * doc/posix-functions/setkey.texi: Likewise.
4331
4332 2011-09-08  Simon Josefsson  <simon@josefsson.org>
4333
4334         * lib/gc.h: Fix copyright header.
4335
4336 2011-09-07  Bruno Haible  <bruno@clisp.org>
4337
4338         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
4339         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
4340         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
4341
4342 2011-09-07  Bruno Haible  <bruno@clisp.org>
4343
4344         openat: Work around compilation error with OSF/1 5.1 DTK cc.
4345         * lib/fopen.c: Use different syntax for include of <stdio.h>.
4346         * lib/freopen.c: Likewise.
4347         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
4348         * lib/lstat.c: Likewise.
4349         * lib/stat.c: Likewise.
4350         * lib/open.c: Use different syntax for include of <fcntl.h>.
4351         * lib/openat.c: Include fcntl.h again, explicitly.
4352
4353 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
4354
4355         parse-datetime: document the newly accepted format
4356         * doc/parse-datetime.texi (Combined date and time of day items):
4357         New section.
4358
4359 2011-09-06  Bruno Haible  <bruno@clisp.org>
4360
4361         acl: Fix a test failure on newer Solaris 10 with ZFS.
4362         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
4363         ENOSYS as no ACL.
4364         Reported by Jim Meyering.
4365
4366 2011-09-06  Bruno Haible  <bruno@clisp.org>
4367
4368         acl: Update for AIX >= 5.3 with NFS.
4369         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
4370         ENOSYS as no ACL.
4371
4372         acl: Fix a test failure on AIX >= 5.3 with NFS.
4373         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
4374         as no ACL.
4375
4376 2011-09-06  Bruno Haible  <bruno@clisp.org>
4377
4378         acl: Fix a test failure on IRIX 6.5 with NFS.
4379         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
4380         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
4381         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
4382         * lib/copy-acl.c (qcopy_acl): Likewise.
4383
4384 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
4385
4386         openat: port to AIX 7.1 with large files
4387         AIX 7.1 does a "#define openat open64at" if large files are in use,
4388         so we can't simply #undef openat.  Use the orig_openat trick (similar
4389         to orig_open in lib/open.c) to work around the problem.  Problem
4390         reported by Kevin Brott for GNU tar, in the thread containing
4391         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
4392         * lib/openat.c (__need_system_fcntl_h): Define first.
4393         Include <fcntl.h> and <sys/types.h> before undefining.
4394         (orig_openat) [HAVE_OPENAT]: New inline function.
4395         (openat) [HAVE_OPENAT]: Do not undef.
4396         (rpl_openat): Use orig_openat, not openat.
4397
4398 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
4399             Bruno Haible  <bruno@clisp.org>
4400
4401         acl: Avoid errors on NonStop Kernel.
4402         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
4403         ENOTSUP errors.
4404
4405 2011-09-05  Bruno Haible  <bruno@clisp.org>
4406
4407         acl: Clean up Solaris code.
4408         * lib/acl-internal.h: Remove no-op #if.
4409         * lib/file-has-acl.c: Likewise.
4410         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
4411         * lib/copy-acl.c (qcopy_acl): Likewise.
4412
4413 2011-09-05  Bruno Haible  <bruno@clisp.org>
4414
4415         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
4416         binaries built on the original Solaris 10.
4417         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
4418         trivial.
4419
4420 2011-09-05  Bruno Haible  <bruno@clisp.org>
4421
4422         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
4423         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
4424         10.
4425         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
4426         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
4427         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
4428         instead of acl_get, facl_get, acl_set, facl_set.
4429
4430 2011-09-05  Bruno Haible  <bruno@clisp.org>
4431
4432         copy-file: Try unit tests on more file systems.
4433         * tests/test-copy-file-1.sh: New file.
4434         * tests/test-copy-file-2.sh: New file.
4435         * modules/copy-file-tests (Files): Add them.
4436         (Makefile.am): Add them to TESTS.
4437
4438         acl: Try unit tests on more file systems.
4439         * tests/test-file-has-acl-1.sh: New file.
4440         * tests/test-file-has-acl-2.sh: New file.
4441         * tests/test-set-mode-acl-1.sh: New file.
4442         * tests/test-set-mode-acl-2.sh: New file.
4443         * tests/test-copy-acl-1.sh: New file.
4444         * tests/test-copy-acl-2.sh: New file.
4445         * modules/acl-tests (Files): Add them.
4446         (Makefile.am): Add them to TESTS.
4447
4448 2011-09-04  Bruno Haible  <bruno@clisp.org>
4449
4450         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
4451         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
4452         10.
4453         (OLD_ALLOW, OLD_DENY): New macros.
4454         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
4455         ACE_ACCESS_ALLOWED_ACE_TYPE.
4456         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
4457         ACE_ACCESS_DENIED_ACE_TYPE.
4458         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
4459         (NEW_ACE_EXECUTE): Fix value.
4460         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
4461         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
4462         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
4463         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
4464         NEW_ACE_SYNCHRONIZE): New macros.
4465         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
4466         instead of acl_fromtext, acl_set, facl_set.
4467         Fixes a coreutils/tests/cp/perm failure.
4468
4469 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
4470
4471         openat: test for fstatat (..., 0) bug
4472         Further testing with tar suggests that fstatat (..., 0)
4473         does not work in general, on AIX 7.1; see
4474         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
4475         So, give up entirely on AIX 7.1's fstatat, and fall back on our
4476         replacement fstatat (which is what older AIX releases were using
4477         anyway).
4478         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
4479         use is now changed to orig_fstatat.  This was probably the right
4480         thing to do anyway.
4481         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
4482         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
4483         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
4484         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
4485         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
4486         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
4487         if the bug is found.
4488
4489         openat: test for fstatat (AT_FDCWD, ..., 0) bug
4490         This tests for another fstatat bug on AIX 7.1:
4491         fstatat (AT_FDCWD, ..., 0) does not work.  See
4492         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
4493         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
4494         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
4495         (rpl_fstatat): Adjust so that it works around either (or both)
4496         bugs if present.
4497         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
4498
4499 2011-09-03  Karl Berry  <karl@gnu.org>
4500
4501         * doc/regex.texi (Character Class Operators): Avoid literal ":"
4502         in index entries.
4503
4504 2011-09-02  Bruno Haible  <bruno@clisp.org>
4505
4506         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
4507         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
4508         values of AR, ARFLAGS, RANLIB.
4509         Reported by John W. Eaton <jwe@gnu.org> for Octave.
4510
4511 2011-09-02  Bruno Haible  <bruno@clisp.org>
4512
4513         Find 'ar' program that fits with --host argument.
4514         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
4515
4516 2011-09-02  Bruno Haible  <bruno@clisp.org>
4517
4518         tests: init.sh: Support any non-GNU diff.
4519         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
4520         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
4521         Solaris 8.
4522
4523 2011-09-02  Bruno Haible  <bruno@clisp.org>
4524
4525         tests: init.sh: work also with any non-GNU diff that supports -u
4526         * tests/init.sh: Relax check for diff -u support.
4527         Rather than checking for GNU diff via --version, simply check
4528         for support for -u itself.  Useful at least on OpenBSD 4.9,
4529         AIX 7.1, IRIX 6.5, and Solaris 10.
4530
4531 2011-09-01  Bruno Haible  <bruno@clisp.org>
4532
4533         strtoimax, strtoumax: Document problem on HP-UX 11.
4534         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
4535         * doc/posix-functions/strtoumax.texi: Likewise.
4536
4537 2011-09-01  Bruno Haible  <bruno@clisp.org>
4538
4539         strtoumax: Avoid link error on OSF/1 with DTK cc.
4540         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
4541         defined as a function.
4542         * modules/strtoumax (Depends-on, configure.ac): Test only whether
4543         strtoumax is defined, not whether it is declared.
4544
4545 2011-09-01  Bruno Haible  <bruno@clisp.org>
4546
4547         strtoimax: Avoid link error on OSF/1 with DTK cc.
4548         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
4549         defined as a function.
4550         * modules/strtoimax (Depends-on, configure.ac): Test only whether
4551         strtoimax is defined, not whether it is declared.
4552
4553 2011-09-01  Bruno Haible  <bruno@clisp.org>
4554
4555         imaxdiv: Avoid link error on OSF/1 with DTK cc.
4556         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
4557         as a function.
4558         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
4559         whether it is declared.
4560
4561 2011-09-01  Bruno Haible  <bruno@clisp.org>
4562
4563         imaxabs: Avoid link error on OSF/1 with DTK cc.
4564         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
4565         as a function.
4566         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
4567         whether it is declared.
4568
4569 2011-09-01  Bruno Haible  <bruno@clisp.org>
4570
4571         Tests for module 'strtoumax'.
4572         * modules/strtoumax-tests: New file.
4573         * tests/test-strtoumax.c: New file.
4574
4575         Tests for module 'strtoimax'.
4576         * modules/strtoimax-tests: New file.
4577         * tests/test-strtoimax.c: New file.
4578
4579         Tests for module 'imaxdiv'.
4580         * modules/imaxdiv-tests: New file.
4581         * tests/test-imaxdiv.c: New file.
4582
4583         Tests for module 'imaxabs'.
4584         * modules/imaxabs-tests: New file.
4585         * tests/test-imaxabs.c: New file.
4586
4587 2011-09-01  Bruno Haible  <bruno@clisp.org>
4588
4589         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
4590         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
4591         pthread_create.
4592
4593 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
4594
4595         openat: work around AIX 7.1 fstatat issue
4596         This should fix the problem that was not properly fixed
4597         in the previous change, dated 2011-08-30.
4598         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
4599         __need_system_stat_h defined.
4600         (orig_fstatat) [HAVE_FSTATAT]: New function.
4601         (rpl_fstatat): Go back to the old way of doing things,
4602         except call orig_fstatat instead of fstatat.
4603         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
4604         Remove unnecessary check whether fstatat fills in st_size etc.
4605
4606 2011-09-01  Bruno Haible  <bruno@clisp.org>
4607
4608         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
4609         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
4610         just include the system's header.
4611
4612 2011-08-31  Jim Meyering  <meyering@redhat.com>
4613
4614         tests: avoid spurious assertion failure in test-float.c on ppc64
4615         * tests/test-float.c (test_long_double): Comment out an assertion,
4616         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
4617         with gcc-4.4.4.
4618
4619         maint: indent with spaces, not TABs
4620         I need to get in the habit of running gnulib's "make check".
4621         Both of these would have been caught.
4622         * m4/largefile.m4: Indent with spaces, not TABs.
4623         * lib/parse-datetime.y (iso_8601_time): Likewise.
4624         Spotted by Pádraig Brady.
4625
4626         test-parse-datetime.c: accommodate a relatively strict gcc warning
4627         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
4628         to avoid a warning from gcc's -Werror=missing-declarations.
4629         Insert a few spaces-before-funcall-parenthesis.
4630
4631 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
4632
4633         parse-datetime: accept ISO 8601 date and time rep with "T" separator
4634         The parser now accepts ISO 8601 date-time strings with "T" as the
4635         separator.  It has long parsed dates like "2004-02-29 16:21:42"
4636         with a space between the date and time strings.  Now it also parses
4637         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
4638         variants like "2004-02-29T16:21:42.333-07:00"
4639         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
4640         of day representation using the 'T' separator character.
4641         * doc/parse-datetime.texi (General date syntax): replace use of
4642         deprecated --iso-8601 option with --rfc-3339 in example of date
4643         command output formats that can be parsed.
4644         * tests/test-parse-datetime.c (tm_diff): New function, taken from
4645         lib/parse-datetime.y.
4646         (gmt_offset): New function.
4647         (main): Add additional test cases to validate ISO8601 extended
4648         date and time of day parsing.
4649
4650 2011-08-31  Bruno Haible  <bruno@clisp.org>
4651
4652         freopen: Documentation.
4653         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
4654         name.
4655         Reported by Claudio Bley <claudio.bley@gmail.com>.
4656
4657 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
4658
4659         freopen: Don't crash if the filename argument is NULL.
4660         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
4661         NULL.
4662
4663 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
4664
4665         openat: work around AIX 7.1 fstatat bug
4666         Problem reported by Kevin Brott for GNU tar, in the thread containing
4667         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
4668         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
4669         FSTATAT_ST_SIZE_ETC_BROKEN.
4670         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
4671         rpl_fstatat.
4672         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
4673         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
4674         AC_CHECK_FUNCS_ONCE for fstatat.
4675         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
4676         fchmodat, mkdirat, openat and unlinkat.
4677
4678 2011-08-30  Bruno Haible  <bruno@clisp.org>
4679
4680         Avoid endless recursions if config.h includes some header files.
4681         * lib/fopen.c (__need_FILE): Define already before including config.h.
4682         * lib/freopen.c (__need_FILE): Likewise.
4683         * lib/open.c (__need_system_fcntl_h): Likewise.
4684         * lib/stat.c (__need_system_sys_stat_h): Likewise.
4685         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
4686         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
4687
4688 2011-08-25  Karl Berry  <karl@gnu.org>
4689
4690         * config/srclist.txt (ylwrap): new try.
4691         * build-aux/ylwrap: new file.
4692
4693 2011-08-23  Bruno Haible  <bruno@clisp.org>
4694
4695         tmpdir: Use a good default directory on native Windows.
4696         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
4697         (P_tmpdir): Default to _P_tmpdir on native Windows.
4698         (path_search): On native Windows, try the value returned by GetTempPath
4699         before trying P_tmpdir.
4700         * modules/tmpdir (Depends-on): Add pathmax.
4701         Suggested by John Darrington <john@darrington.wattle.id.au>.
4702
4703 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
4704
4705         doc: fix typo in README-release
4706         * top/README-release: Capitalize first word of a sentence.
4707
4708 2011-08-19  Jim Meyering  <meyering@redhat.com>
4709
4710         fts: do not exhaust memory when processing million-entry directories
4711         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
4712         directory would require about 256*N bytes of memory.  Thus, it was
4713         easy to construct a directory too large to be processed by any of
4714         those tools.  With this change, fts' maximum memory utilization is
4715         now limited to around 30MB.
4716         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
4717         (fts_read): When we've processed the final entry (i.e., when
4718         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
4719         using the parent entry to read any remaining entries.  Dispatch
4720         depending on what fts_build returns:
4721         - NULL+stop, aka failure: stop
4722         - NULL otherwise: move up in the dir hierarchy
4723         - non-NULL: handle this new entry
4724         (fts_build): Declare and use new local, continue_readdir.
4725         Prepare to be called from fts_read, when the entries
4726         from a partially-read directory have just been exhausted.
4727         In that case, we'll skip the opendir and instead use the parent's
4728         fts_dirp and derive dir_fd from that.
4729         Finally, in the readdir loop, if we read max_entries entries,
4730         exit the loop ensuring *not* to call closedir.  This is required
4731         so that fts_dirp can be reused on a subsequent call.
4732         Prompted by Ben England's report of memory exhaustion in find
4733         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
4734
4735         maint: fts: move decl of `dp' down into while loop; split a long line
4736         * lib/fts.c (fts_build): No semantic change.
4737
4738         fts: add/use new struct member, fts_dirp
4739         We are about to use this to manage any directory with
4740         too many entries to read all of them into memory at once.
4741         To do that, we'll need to save the DIR* pointer in each
4742         affected FTSENT struct.
4743         * lib/fts_.h: Include <dirent.h>.
4744         (struct FTSENT) [fts_dirp]: New member.
4745         * lib/fts.c (closedir_and_clear): Define.
4746         Use it in place of closedir so that we are sure to
4747         clear the new fts_dirp member when done with it.
4748         (fts_alloc): Initialize the new member.
4749         (fts_lfree): Free, if needed.
4750
4751         maint: fts: give __opendir2 a new parameter and rename
4752         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
4753         than surreptitiously using sole caller's "dir_fd".
4754         (fts_opendir): Rename from __opendir2.
4755
4756         maint: fts.c: remove __opendir2's now-unused parameter, oflag
4757         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
4758
4759         maint: fts.c: correct off-by-one indentation
4760         * lib/fts.c (fts_build): Correct indentation, change style
4761         of a couple of block comments, and bracing style.
4762
4763         maint: fts.c: move __opendir2 #define "up" out of function body
4764         * lib/fts.c (__opendir2): Move "up".  No semantic change.
4765
4766         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
4767         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
4768         out for a long time and besides was useful only on BSD systems.
4769
4770 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
4771
4772         regex: port to Stratus OpenVOS
4773         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
4774         define to empty, rather than attempting nonportable optimizations.
4775         Problem reported by Paul Green in:
4776         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
4777         and fix suggested by Eric Blake in:
4778         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
4779
4780 2011-08-17  Eric Blake  <eblake@redhat.com>
4781
4782         getcwd: fix test failures on mingw
4783         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
4784         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
4785         test if long directory cannot be created, and allow mingw errno.
4786
4787         getcwd-lgpl: fix m4 to match relaxed test for BSD
4788         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
4789         (gl_FUNC_GETCWD_SIGNATURE): New macro.
4790         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
4791         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
4792         signature problem.
4793
4794         getcwd: fix compilation on mingw64
4795         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
4796         getcwd.
4797         Reported by Marc-André Lureau.
4798
4799         pipe2: silence compiler warning
4800         * lib/pipe2.c (pipe2): Hide label if it is not used.
4801
4802 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
4803
4804         relocatable-prog: fix link error
4805         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
4806         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
4807         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
4808         into modules/relocatable-lib without noticing that
4809         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
4810         also needs to build relocatable.c.
4811
4812 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
4813
4814         getaddrinfo: fix sh typo in gai_strerrorA decl checking
4815         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
4816         shell code: it contained a 'break' that was not in a loop.
4817         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
4818         via a shell-language loop; this may have been true in old Autoconf
4819         versions, but it's not true in Autoconf 2.68.  I found this bug
4820         when testing coreutils git on Solaris 8, whose shell complains
4821         about the syntax error.
4822
4823 2011-08-12  Simon Josefsson  <simon@josefsson.org>
4824
4825         * lib/base64.c: Fix comment to reference RFC 4648.
4826         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
4827         <gvtulder@gmail.com>.
4828
4829 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
4830
4831         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
4832
4833         po/Makefile.in.in: fix make -q problem
4834         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
4835         rule, since there's no file named 'check-macro-version' and its
4836         use as a file breaks make -q.
4837         (all): Don't depend on check-macro-version.
4838         (CHECK_MACRO_VERSION): New macro.
4839         (stamp-po): Use it.
4840
4841         configmake: fix make -q problem
4842         * modules/configmake (configmake.h): Update configmake.h's time stamp
4843         even if the file does not change.  Otherwise, 'make -q' fails.
4844         Problem reported by Simon Josefsson in
4845         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
4846
4847 2011-08-11  Jim Meyering  <meyering@redhat.com>
4848
4849         git-version-gen: correct the advice in a comment
4850         * build-aux/git-version-gen: Correct comment.
4851         Don't recommend to list .tarball-version in .gitignore.
4852
4853 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
4854
4855         base64: fix off-by-one buffer size bug
4856         Problem and (trivial) fix reported by Gijs van Tulder in
4857         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
4858         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
4859         * tests/test-base64.c (main): Catch the bug.
4860
4861 2011-08-10  Eric Blake  <eblake@redhat.com>
4862
4863         closein: correct comments
4864         * lib/closein.c (close_stdin): Improve comments.
4865
4866 2011-08-09  Bruno Haible  <bruno@clisp.org>
4867
4868         More tests for 'fseeko'.
4869         * tests/test-fseeko3.c: New file, from Eric Blake.
4870         * tests/test-fseeko3.sh: New file.
4871         * modules/fseeko-tests (Files): Add them.
4872         (TESTS): Add test-fseeko3.sh.
4873         (check_PROGRAMS): Add test-fseeko3.
4874
4875 2011-08-09  Eric Blake  <eblake@redhat.com>
4876
4877         fseeko: remove unneeded hack
4878         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
4879
4880         fseeko: fix bug on glibc
4881         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
4882         Reported by John W. Eaton.
4883
4884 2011-08-08  Bruno Haible  <bruno@clisp.org>
4885
4886         unictype/base: Fix interoperability with preinstalled libunistring.
4887         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
4888         Reported by Simon Josefsson.
4889
4890 2011-08-08  Bruno Haible  <bruno@clisp.org>
4891
4892         iswblank: Detect declaration correctly.
4893         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
4894         AC_CHECK_DECLS invocation.
4895
4896 2011-08-08  Bruno Haible  <bruno@clisp.org>
4897
4898         tcgetsid: Detect declaration correctly.
4899         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
4900         AC_CHECK_DECLS invocation.
4901         Reported by Simon Josefsson.
4902
4903 2011-08-08  Eric Blake  <eblake@redhat.com>
4904
4905         largefile: fix typo that regressed large file support
4906         * modules/largefile (configure.ac-early): Fix section name.
4907
4908 2011-08-06  Karl Berry  <karl@gnu.org>
4909
4910         * MODULES.html.sh (func_all_files): _Noreturn is no longer
4911         a separate module.
4912
4913 2011-08-05  Simon Josefsson  <simon@josefsson.org>
4914
4915         openat: Fix warnings and commens when building unlinkat.c on Hurd.
4916         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
4917         get prototype for free.
4918
4919 2011-08-04  Bruno Haible  <bruno@clisp.org>
4920
4921         Tests for module 'pathmax'.
4922         * modules/pathmax-tests: New file.
4923         * tests/test-pathmax.c: New file.
4924
4925         canonicalize-lgpl: Support larger filenames on the Hurd.
4926         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
4927         Reported by Paul Eggert.
4928
4929         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
4930         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
4931         * lib/chdir-long.h: Include pathmax.h.
4932         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
4933         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
4934         (PATH_MAX): Remove code that is done by pathmax.h.
4935         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
4936         * lib/tmpfile.c: Add a comment.
4937         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
4938         * modules/chdir-long (Depends-on): Add pathmax.
4939         * modules/getcwd (Depends-on): Add pathmax.
4940         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
4941         is not defined.
4942         * doc/posix-headers/limits.texi: Mention the pathmax module.
4943         * NEWS: Mention the change.
4944
4945 2011-08-02  Bruno Haible  <bruno@clisp.org>
4946
4947         pthread_sigmask: Actually use results of gl_THREADLIB.
4948         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
4949         gl_THREADLIB, not gl_[]THREADLIB.
4950         Reported by Eric Blake.
4951
4952 2011-08-02  Jim Meyering  <meyering@redhat.com>
4953
4954         maint.mk: relax the default _gl_TS_function_match regexp
4955         * top/maint.mk (_gl_TS_function_match): Don't require at least one
4956         space between function name and "(" in an "extern" declaration.
4957         That would fail to match a decl with no space there: extern void foo();
4958
4959 2011-07-31  Iain Nicol  <iain@thenicols.net>
4960
4961         git-version-gen: document that EXTRA_DIST must include .version
4962         * build-aux/git-version-gen: In the how-to-use comment, document
4963         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
4964         will fail when run from an unpacked distribution tarball.
4965
4966 2011-08-01  Bruno Haible  <bruno@clisp.org>
4967
4968         wctype-h: Fix last change.
4969         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
4970         REPLACE_TOWLOWER to 0.
4971         Reported by Sam Steingold <sds@gnu.org>.
4972
4973 2011-07-31  Bruno Haible  <bruno@clisp.org>
4974
4975         frexpl: Update autoconf test.
4976         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
4977         according to changes of 2011-06-20.
4978
4979 2011-07-31  Bruno Haible  <bruno@clisp.org>
4980
4981         sys_utsname: Add support for Minix.
4982         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
4983         <sys/utsname.h>.
4984         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
4985         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
4986
4987 2011-07-31  Bruno Haible  <bruno@clisp.org>
4988
4989         strings: Add support for Minix.
4990         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
4991         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
4992         * doc/posix-headers/strings.texi: Document the Minix problem.
4993
4994 2011-07-31  Bruno Haible  <bruno@clisp.org>
4995
4996         wctype-h: Add support for Minix.
4997         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
4998         REPLACE_TOWLOWER.
4999         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
5000         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
5001         REPLACE_ISWCNTRL.
5002
5003 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
5004
5005         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
5006         This is a performance improvement for 64-bit hosts: it causes the
5007         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
5008
5009 2011-07-31  Bruno Haible  <bruno@clisp.org>
5010
5011         stdioext: Add support for Minix.
5012         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
5013         * lib/fpurge.c (fpurge): Likewise.
5014         * lib/freadahead.c (freadahead): Likewise.
5015         * lib/freadable.c (freadable): Likewise.
5016         * lib/freading.c (freading): Likewise.
5017         * lib/freadptr.c (freadptr): Likewise.
5018         * lib/freadseek.c (freadptrinc): Likewise.
5019         * lib/fseeko.c (rpl_fseeko): Likewise.
5020         * lib/fseterr.c (fseterr): Likewise.
5021         * lib/fwritable.c (fwritable): Likewise.
5022         * lib/fwriting.c (fwriting): Likewise.
5023         * lib/fflush.c (clear_ungetc_buffer): Update comment.
5024         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
5025
5026 2011-07-31  Bruno Haible  <bruno@clisp.org>
5027
5028         errno: Port to Minix.
5029         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
5030         ECONNABORTED are defined.
5031         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
5032         GNULIB_defined_ECONNABORTED): New macros.
5033         * lib/strerror-override.h (strerror_override): Test also
5034         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
5035         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
5036         ECONNABORTED.
5037         * doc/posix-headers/errno.texi: Mention the Minix problem.
5038
5039 2011-07-31  Bruno Haible  <bruno@clisp.org>
5040
5041         Work around declaration collisions on Minix.
5042         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
5043         defined, set REPLACE_MBSINIT.
5044         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
5045         defined, set REPLACE_MBRTOWC.
5046         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
5047         set REPLACE_MBRLEN.
5048         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
5049         defined, set REPLACE_MBSRTOWCS.
5050         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
5051         defined, set REPLACE_WCRTOMB.
5052         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
5053         defined, set REPLACE_WCSRTOMBS.
5054
5055 2011-07-31  Bruno Haible  <bruno@clisp.org>
5056
5057         Add support for Minix with ACK compiler.
5058         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
5059         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
5060         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
5061
5062 2011-07-31  Bruno Haible  <bruno@clisp.org>
5063
5064         Documentation about Minix.
5065         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
5066         * doc/glibc-headers/*.texi: Likewise.
5067         * doc/posix-functions/*.texi: Likewise.
5068         * doc/glibc-functions/*.texi: Likewise.
5069
5070 2011-07-31  Bruno Haible  <bruno@clisp.org>
5071
5072         snippet/warn-on-use: Fix indentation.
5073         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
5074
5075 2011-07-25  Jim Meyering  <meyering@redhat.com>
5076
5077         tests: test-update-copyright.sh: remove unnecessary "rm" commands
5078         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
5079         commands.
5080
5081 2011-07-27  Jim Meyering  <meyering@redhat.com>
5082
5083         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
5084         * top/maint.mk (gl_extract_significant_defines_): Now that
5085         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
5086         gnulib/lib/signal.in.h, and now that we recommend to
5087         define-if-undefined those two symbols in application code,
5088         we must filter them out of the "significant" list.
5089         This avoids a "make syntax-check" failure in coreutils.
5090
5091 2011-07-26  Eric Blake  <eblake@redhat.com>
5092
5093         warnings: add comments about previous patch
5094         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
5095         * m4/include_next.m4: Likewise.
5096         * m4/warn-on-use.m4: Likewise.
5097         * m4/warnings.m4: Likewise, and simplify use.
5098         Suggested by Stefano Lattarini.
5099
5100         include-next, warnings: support older autoconf
5101         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
5102         AS_VAR_PUSHDEF in a way that works with older autoconf.
5103         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
5104         Reported by Daniel P. Berrange.
5105
5106 2011-07-25  Bruno Haible  <bruno@clisp.org>
5107
5108         fseek, ftell: Fix doc.
5109         * doc/posix-functions/fseek.texi: Reword statement about
5110         AC_SYS_LARGEFILE.
5111         * doc/posix-functions/ftell.texi: Likewise.
5112
5113 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
5114             Bruno Haible  <bruno@clisp.org>
5115
5116         Add dependencies to the 'largefile' module.
5117         * modules/fopen (Depends-on): Add 'largefile'.
5118         * modules/freopen (Depends-on): Likewise.
5119         * modules/fseeko (Depends-on): Likewise.
5120         * modules/ftello (Depends-on): Likewise.
5121         * modules/glob (Depends-on): Likewise.
5122         * modules/lseek (Depends-on): Likewise.
5123         * modules/lstat (Depends-on): Likewise.
5124         * modules/mkostemp (Depends-on): Likewise.
5125         * modules/mkostemps (Depends-on): Likewise.
5126         * modules/mkstemp (Depends-on): Likewise.
5127         * modules/mkstemps (Depends-on): Likewise.
5128         * modules/open (Depends-on): Likewise.
5129         * modules/openat (Depends-on): Likewise.
5130         * modules/pread (Depends-on): Likewise.
5131         * modules/pwrite (Depends-on): Likewise.
5132         * modules/scandir (Depends-on): Likewise.
5133         * modules/stat (Depends-on): Likewise.
5134         * modules/tmpfile (Depends-on): Likewise.
5135         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
5136         since the containing module now depends on the largefile module.
5137         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
5138         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
5139         off_t is fixed by gnulib.
5140         * doc/posix-functions/freopen.texi: Likewise.
5141         * doc/posix-functions/fseeko.texi: Likewise.
5142         * doc/posix-functions/fstatat.texi: Likewise.
5143         * doc/posix-functions/ftello.texi: Likewise.
5144         * doc/posix-functions/glob.texi: Likewise.
5145         * doc/posix-functions/lseek.texi: Likewise.
5146         * doc/posix-functions/lstat.texi: Likewise.
5147         * doc/posix-functions/mkstemp.texi: Likewise.
5148         * doc/posix-functions/open.texi: Likewise.
5149         * doc/posix-functions/openat.texi: Likewise.
5150         * doc/posix-functions/pread.texi: Likewise.
5151         * doc/posix-functions/pwrite.texi: Likewise.
5152         * doc/posix-functions/scandir.texi: Likewise.
5153         * doc/posix-functions/stat.texi: Likewise.
5154         * doc/posix-functions/tmpfile.texi: Likewise.
5155         * doc/glibc-functions/mkostemp.texi: Likewise.
5156         * doc/glibc-functions/mkostemps.texi: Likewise.
5157         * doc/glibc-functions/mkstemps.texi: Likewise.
5158
5159 2011-07-25  Bruno Haible  <bruno@clisp.org>
5160
5161         fcntl: Move AC_LIBOBJ invocation to module description.
5162         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
5163         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
5164
5165         fcntl: Remove call-in from fchdir.m4.
5166         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
5167         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
5168
5169         dup3: Remove potential call-in from fchdir.m4.
5170         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
5171         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
5172
5173         dup2: Move AC_LIBOBJ invocation to module description.
5174         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
5175         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
5176         Don't invoke AC_LIBOBJ.
5177         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
5178
5179         dup2: Remove call-in from fchdir.m4.
5180         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
5181         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
5182
5183         fclose: Move AC_LIBOBJ invocation to module description.
5184         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
5185         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
5186         to 1.
5187         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
5188
5189         fclose: Remove call-in from close.m4.
5190         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
5191         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
5192
5193         close: Move AC_LIBOBJ invocation to module description.
5194         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
5195         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
5196         1.
5197         * modules/close (configure.ac): Invoke AC_LIBOBJ.
5198
5199         close: Remove call-in from fchdir.m4.
5200         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
5201         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
5202
5203         open: Move AC_LIBOBJ invocation to module description.
5204         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
5205         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
5206         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
5207
5208         open: Remove call-in from fchdir.m4.
5209         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
5210         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
5211
5212         fchdir: Start to remove gl_REPLACE_* idiom.
5213         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
5214         (gl_FUNC_FCHDIR): Invoke it.
5215
5216 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
5217
5218         * lib/ftell.c (ftell): Comment out cast.
5219
5220         close: use gl_REPLACE_FCLOSE only if defined
5221         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
5222         is defined.  The close module doesn't depend on the fclose module
5223         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
5224         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
5225         I reproduced the problem with "./gnulib-tool --test close sys_socket".
5226
5227 2011-07-24  Jim Meyering  <meyering@redhat.com>
5228
5229         test-select.h: avoid warning when using gcc's -Wmissing-declarations
5230         * tests/test-select.h (test_function): Declare as "static".
5231
5232 2011-07-24  Bruno Haible  <bruno@clisp.org>
5233
5234         doc: Mention the effects of AC_SYS_LARGEFILE.
5235         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
5236         on this function.
5237         * doc/posix-functions/aio_error.texi: Likewise.
5238         * doc/posix-functions/aio_fsync.texi: Likewise.
5239         * doc/posix-functions/aio_read.texi: Likewise.
5240         * doc/posix-functions/aio_return.texi: Likewise.
5241         * doc/posix-functions/aio_suspend.texi: Likewise.
5242         * doc/posix-functions/aio_write.texi: Likewise.
5243         * doc/posix-functions/fgetpos.texi: Likewise.
5244         * doc/posix-functions/fopen.texi: Likewise.
5245         * doc/posix-functions/freopen.texi: Likewise.
5246         * doc/posix-functions/fsetpos.texi: Likewise.
5247         * doc/posix-functions/fstatvfs.texi: Likewise.
5248         * doc/posix-functions/ftruncate.texi: Likewise.
5249         * doc/posix-functions/ftw.texi: Likewise.
5250         * doc/posix-functions/getrlimit.texi: Likewise.
5251         * doc/posix-functions/glob.texi: Likewise.
5252         * doc/posix-functions/lio_listio.texi: Likewise.
5253         * doc/posix-functions/lockf.texi: Likewise.
5254         * doc/posix-functions/mkstemp.texi: Likewise.
5255         * doc/posix-functions/mmap.texi: Likewise.
5256         * doc/posix-functions/nftw.texi: Likewise.
5257         * doc/posix-functions/openat.texi: Likewise.
5258         * doc/posix-functions/opendir.texi: Likewise.
5259         * doc/posix-functions/posix_fadvise.texi: Likewise.
5260         * doc/posix-functions/posix_fallocate.texi: Likewise.
5261         * doc/posix-functions/pread.texi: Likewise.
5262         * doc/posix-functions/pwrite.texi: Likewise.
5263         * doc/posix-functions/readdir.texi: Likewise.
5264         * doc/posix-functions/readdir_r.texi: Likewise.
5265         * doc/posix-functions/rewinddir.texi: Likewise.
5266         * doc/posix-functions/scandir.texi: Likewise.
5267         * doc/posix-functions/seekdir.texi: Likewise.
5268         * doc/posix-functions/setrlimit.texi: Likewise.
5269         * doc/posix-functions/statvfs.texi: Likewise.
5270         * doc/posix-functions/telldir.texi: Likewise.
5271         * doc/posix-functions/tmpfile.texi: Likewise.
5272         * doc/posix-functions/truncate.texi: Likewise.
5273         * doc/glibc-functions/fallocate.texi: Likewise.
5274         * doc/glibc-functions/fstatfs.texi: Likewise.
5275         * doc/glibc-functions/fts_children.texi: Likewise.
5276         * doc/glibc-functions/fts_read.texi: Likewise.
5277         * doc/glibc-functions/getdirentries.texi: Likewise.
5278         * doc/glibc-functions/mkostemp.texi: Likewise.
5279         * doc/glibc-functions/mkostemps.texi: Likewise.
5280         * doc/glibc-functions/mkstemps.texi: Likewise.
5281         * doc/glibc-functions/preadv.texi: Likewise.
5282         * doc/glibc-functions/pwritev.texi: Likewise.
5283         * doc/glibc-functions/sendfile.texi: Likewise.
5284         * doc/glibc-functions/statfs.texi: Likewise.
5285
5286 2011-07-24  Bruno Haible  <bruno@clisp.org>
5287
5288         doc: Fix typo.
5289         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
5290
5291 2011-07-24  Bruno Haible  <bruno@clisp.org>
5292
5293         doc: Mention fsusage.
5294         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
5295
5296 2011-07-24  Bruno Haible  <bruno@clisp.org>
5297
5298         doc: Mention new glibc headers and functions.
5299         * doc/glibc-headers/gshadow.texi: New file.
5300         * doc/glibc-functions/endsgent.texi: New file.
5301         * doc/glibc-functions/fgetsgent.texi: New file.
5302         * doc/glibc-functions/fgetsgent_r.texi: New file.
5303         * doc/glibc-functions/getsgent.texi: New file.
5304         * doc/glibc-functions/getsgent_r.texi: New file.
5305         * doc/glibc-functions/getsgnam.texi: New file.
5306         * doc/glibc-functions/getsgnam_r.texi: New file.
5307         * doc/glibc-functions/putsgent.texi: New file.
5308         * doc/glibc-functions/setsgent.texi: New file.
5309         * doc/glibc-functions/sgetsgent.texi: New file.
5310         * doc/glibc-functions/sgetsgent_r.texi: New file.
5311         * doc/glibc-functions/malloc_info.texi: New file.
5312         * doc/glibc-functions/preadv.texi: New file.
5313         * doc/glibc-functions/pwritev.texi: New file.
5314         * doc/glibc-functions/register_printf_modifier.texi: New file.
5315         * doc/glibc-functions/register_printf_specifier.texi: New file.
5316         * doc/glibc-functions/register_printf_type.texi: New file.
5317         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
5318         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
5319         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
5320         * doc/glibc-functions/pthread_getname_np.texi: New file.
5321         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
5322         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
5323         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
5324         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
5325         * doc/glibc-functions/pthread_setname_np.texi: New file.
5326         * doc/glibc-functions/pthread_sigqueue.texi: New file.
5327         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
5328         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
5329         * doc/glibc-functions/qsort_r.texi: New file.
5330         * doc/glibc-functions/quick_exit.texi: New file.
5331         * doc/glibc-functions/syncfs.texi: New file.
5332         * doc/gnulib.texi: Include them.
5333         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
5334         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
5335         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
5336         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
5337         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
5338         * doc/glibc-functions/execvpe.texi: Likewise.
5339
5340 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
5341
5342         ftell: don't include <unistd.h>
5343         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
5344         guaranteed to define off_t, and the ftell module depends on the
5345         stdio module.
5346
5347         ftell: do not assume wraparound signed arithmetic
5348         * lib/ftell.c: Include <limits.h>.
5349         (ftell): Don't assume wraparound signed arithmetic.
5350
5351 2011-07-24  Bruno Haible  <bruno@clisp.org>
5352
5353         close: No longer depend on module 'fclose'.
5354         * modules/close (Depends-on): Remove fclose.
5355         * NEWS: Mention the change.
5356         Suggested by Sam Steingold <sds@gnu.org>.
5357
5358 2011-07-24  Bruno Haible  <bruno@clisp.org>
5359
5360         fsusage: Enable large volume support on AIX >= 5.2.
5361         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
5362         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
5363         instead of STAT_STATVFS.
5364         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
5365
5366         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
5367         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
5368         f_blocks field only on MacOS X.
5369
5370         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
5371         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
5372         * modules/fsusage (Depends-on): Add largefile.
5373
5374 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
5375
5376         * README: Modernize discussion of signed integers.
5377         Assuming overflow wraparound is no longer safe.
5378         Mention ones' complement and signed magnitude.
5379
5380 2011-07-22  Bruno Haible  <bruno@clisp.org>
5381
5382         select tests, pselect tests: Refactor.
5383         * tests/test-select.h: New file, extracted from tests/test-select.c.
5384         (select_fn): New type.
5385         (test, do_select, do_select_nowait, do_select_wait, test_tty,
5386         test_connect_first, test_accept_first, test_pair, test_socket_pair,
5387         test_pipe): Add my_select argument.
5388         (test_function): Renamed from main. Add my_select argument.
5389         * tests/test-select.c: Move most code to tests/test-select.h. Include
5390         test-select.h.
5391         * modules/select-tests (Files): Add tests/test-select.h.
5392         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
5393         (my_select, main): New functions.
5394         * modules/pselect-tests (Files): Add tests/test-select.h,
5395         tests/macros.h, tests/signature.h.
5396         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
5397         (configure.ac): Check for <sys/wait.h>.
5398
5399 2011-07-22  Bruno Haible  <bruno@clisp.org>
5400
5401         sys_select tests: Check the signature of FD_*.
5402         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
5403         signature tests from here...
5404         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
5405         here.
5406         * modules/sys_select-tests (Files): Add tests/signature.h.
5407
5408 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
5409
5410         largefile: new module, replacing large-inode
5411         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
5412         * MODULES.html.sh: Add largefile, remove large-inode.
5413         * modules/largefile, m4/largefile.m4: New files.
5414         * modules/large-inode, m4/large-inode.m4: Remove.
5415
5416         fsusage: port to MacOS X 10.7 with 4 TiB file systems
5417         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
5418         implementations that use only 32 bits to count blocks.
5419         On typical hosts with 1024-byte blocks, this fails with file
5420         systems as small as 4 TiB.  Problem reported by Herb Wartens
5421         <http://debbugs.gnu.org/9140> and this should also fix a similar
5422         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
5423
5424         large-inode: New module
5425         * MODULES.html.sh: Add it.
5426         * modules/large-inode, m4/large-inode.m4: New files.
5427
5428         extensions: Enable extensions on MacOS X 10.5 and later.
5429         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
5430
5431 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
5432
5433         file-has-acl: use acl_extended_file_nofollow if available
5434         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
5435         (acl_extended_file): New macro.
5436         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
5437         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
5438
5439 2011-07-21  Bruno Haible  <bruno@clisp.org>
5440
5441         Declare system functions in a way that works with C++.
5442         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
5443         declare fdopendir as extern "C".
5444         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
5445         declare frexpl as extern "C".
5446         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
5447         declare gai_strerror as extern "C".
5448         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
5449         programs, declare gai_strerror as extern "C".
5450         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
5451         declare getlogin_r as extern "C".
5452         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
5453         as extern "C".
5454         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
5455         declare ldexpl as extern "C".
5456         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
5457         as extern "C".
5458         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
5459         program, declare getmntinfo as extern "C".
5460         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
5461         stpncpy as extern "C".
5462         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
5463         program, declare __xpg_strerror_r as extern "C".
5464         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
5465         strndup as extern "C".
5466         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
5467         declare memset and bzero as extern "C".
5468         Reported by Sam Steingold <sds@gnu.org>.
5469
5470 2011-07-12  Jim Meyering  <meyering@redhat.com>
5471
5472         maint.mk: prohibit inclusion of "verify.h" without use
5473         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
5474
5475 2011-07-19  Pádraig Brady  <P@draigBrady.com>
5476
5477         timer-time: A new module to check for timer_settime()
5478         * m4/timer_time.m4: Check for the posix function.
5479         * modules/timer-time: Add the new module.
5480         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
5481         Mention it.
5482
5483 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
5484             Bruno Haible  <bruno@clisp.org>
5485
5486         pthread_sigmask: assume POSIX threads if --avoid=threadlib
5487         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
5488         not defined, assume POSIX threads and look for pthread_sigmask in
5489         $LIBS, without changing $CPPFLAGS.
5490
5491 2011-07-19  Bruno Haible  <bruno@clisp.org>
5492
5493         strstr: Update cross-compilation guess.
5494         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
5495         CPUs, guess no, in view of glibc
5496         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
5497         Suggested by Eric Blake. Reported by Reuben Thomas.
5498
5499 2011-07-19  Pádraig Brady  <P@draigBrady.com>
5500
5501         getopt-gnu: suppress core dumps from detection code
5502         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
5503         to suppress core dumps that may well occur on glibc systems.
5504         * modules/getopt-gnu: Depend on nocrash.
5505
5506 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
5507
5508         pthread_sigmask: ensure usleep is declared
5509         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
5510         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
5511
5512 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
5513
5514         doc: Document NonStop portability issues.
5515         * doc/posix-functions/sigaction.texi (sigaction):
5516         * doc/posix-headers/signal.texi (signal.h):
5517         Document NonStop.  See Joachim Schmitz in
5518         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
5519
5520 2011-07-15  Bruno Haible  <bruno@clisp.org>
5521
5522         ffsl, ffsll: Avoid unportable behaviour.
5523         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
5524
5525 2011-07-15  Bruno Haible  <bruno@clisp.org>
5526
5527         ffs: More tests.
5528         * tests/test-ffs.c (NBITS): New macro.
5529         (main): Add more tests.
5530         * tests/test-ffsl.c (NBITS): New macro.
5531         (main): Add more tests.
5532         * tests/test-ffsll.c (NBITS): New macro.
5533         (main): Add more tests.
5534
5535 2011-07-15  Eric Blake  <eblake@redhat.com>
5536
5537         ffsl, ffsll: new modules
5538         * modules/ffsl: New file.
5539         * modules/ffsll: Likewise.
5540         * m4/ffsl.m4: Likewise.
5541         * m4/ffsll.m4: Likewise.
5542         * lib/ffsl.c: Likewise.
5543         * lib/ffsl.h: Likewise.
5544         * lib/ffsll.c: Likewise.
5545         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
5546         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
5547         * modules/string (Makefile.am): Substitute witnesses.
5548         * lib/strings.in.h (ffsl, ffsll): Declare.
5549         * modules/ffsl-tests: New test file.
5550         * modules/ffsll-tests: Likewise.
5551         * tests/test-ffsl.c: Likewise.
5552         * tests/test-ffsll.c: Likewise.
5553         * MODULES.html.sh (Integer arithmetic functions): Mention it.
5554         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
5555         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
5556
5557         ffs: fix m4 prerequisite
5558         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
5559
5560         ffs: avoid undefined behavior
5561         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
5562         * tests/test-ffs.c (naive, main): Avoid signed shifts.
5563         Reported by Bruno Haible.
5564
5565 2011-07-12  Bruno Haible  <bruno@clisp.org>
5566
5567         pthread_sigmask: Rely on module 'threadlib'.
5568         * modules/pthread_sigmask (Depends-on): Add threadlib.
5569         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
5570         is defined.
5571
5572 2011-07-12  Bruno Haible  <bruno@clisp.org>
5573
5574         regex: Depend on module 'strcase'.
5575         * modules/regex (Depends-on): Add strcase, for strcasecmp().
5576
5577 2011-07-12  Jim Meyering  <meyering@redhat.com>
5578
5579         warn-on-use: fix typo in file name
5580         * modules/snippet/warn-on-use (Files): Correct file name:
5581         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
5582
5583 2011-07-12  Bruno Haible  <bruno@clisp.org>
5584
5585         strings: Document module.
5586         * doc/posix-headers/strings.texi: Mention module 'strings'.
5587
5588 2011-07-12  Bruno Haible  <bruno@clisp.org>
5589
5590         Rename module '_Noreturn' to 'snippet/_Noreturn'.
5591         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
5592         (Files, Makefile.am): Update.
5593         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
5594         * modules/stdlib (Depends-on): Update.
5595
5596 2011-07-12  Bruno Haible  <bruno@clisp.org>
5597
5598         * NEWS: Mention the changes.
5599
5600         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
5601         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
5602         (Files, Makefile.am): Update.
5603         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
5604         * modules/arpa_inet (Depends-on): Update.
5605         * modules/ctype (Depends-on): Update.
5606         * modules/dirent (Depends-on): Update.
5607         * modules/fcntl-h (Depends-on): Update.
5608         * modules/glob (Depends-on): Update.
5609         * modules/iconv-h (Depends-on): Update.
5610         * modules/inttypes-incomplete (Depends-on): Update.
5611         * modules/langinfo (Depends-on): Update.
5612         * modules/locale (Depends-on): Update.
5613         * modules/math (Depends-on): Update.
5614         * modules/netdb (Depends-on): Update.
5615         * modules/poll-h (Depends-on): Update.
5616         * modules/pty (Depends-on): Update.
5617         * modules/search (Depends-on): Update.
5618         * modules/signal (Depends-on): Update.
5619         * modules/spawn (Depends-on): Update.
5620         * modules/stdio (Depends-on): Update.
5621         * modules/stdlib (Depends-on): Update.
5622         * modules/string (Depends-on): Update.
5623         * modules/strings (Depends-on): Update.
5624         * modules/sys_file (Depends-on): Update.
5625         * modules/sys_ioctl (Depends-on): Update.
5626         * modules/sys_select (Depends-on): Update.
5627         * modules/sys_socket (Depends-on): Update.
5628         * modules/sys_stat (Depends-on): Update.
5629         * modules/sys_time (Depends-on): Update.
5630         * modules/sys_times (Depends-on): Update.
5631         * modules/sys_utsname (Depends-on): Update.
5632         * modules/sys_wait (Depends-on): Update.
5633         * modules/termios (Depends-on): Update.
5634         * modules/time (Depends-on): Update.
5635         * modules/unistd (Depends-on): Update.
5636         * modules/wchar (Depends-on): Update.
5637         * modules/wctype-h (Depends-on): Update.
5638         * MODULES.html.sh (Support for building libraries and executables):
5639         Update.
5640
5641         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
5642         * modules/snippet/unused-parameter: Renamed from
5643         modules/unused-parameter.
5644         (Files, Makefile.am): Update.
5645         * build-aux/snippet/unused-parameter.h: Renamed from
5646         build-aux/unused-parameter.h.
5647         * modules/selinux-h (Depends-on): Update.
5648         * modules/unistr/base (Depends-on): Update.
5649         * MODULES.html.sh (Core language properties): Update.
5650
5651         Rename module 'link-warning' to 'snippet/link-warning'.
5652         * modules/snippet/link-warning: Renamed from modules/link-warning.
5653         (Files, Makefile.am): Update.
5654         * build-aux/snippet/link-warning.h: Renamed from
5655         build-aux/link-warning.h.
5656         * MODULES.html.sh (Support for building libraries and executables):
5657         Update.
5658
5659         Rename module 'c++defs' to 'snippet/c++defs'.
5660         * modules/snippet/c++defs: Renamed from modules/c++defs.
5661         (Files, Makefile.am): Update.
5662         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
5663         * modules/arpa_inet (Depends-on): Update.
5664         * modules/ctype (Depends-on): Update.
5665         * modules/dirent (Depends-on): Update.
5666         * modules/fcntl-h (Depends-on): Update.
5667         * modules/glob (Depends-on): Update.
5668         * modules/iconv-h (Depends-on): Update.
5669         * modules/langinfo (Depends-on): Update.
5670         * modules/locale (Depends-on): Update.
5671         * modules/math (Depends-on): Update.
5672         * modules/netdb (Depends-on): Update.
5673         * modules/poll-h (Depends-on): Update.
5674         * modules/pty (Depends-on): Update.
5675         * modules/search (Depends-on): Update.
5676         * modules/signal (Depends-on): Update.
5677         * modules/spawn (Depends-on): Update.
5678         * modules/stdio (Depends-on): Update.
5679         * modules/stdlib (Depends-on): Update.
5680         * modules/string (Depends-on): Update.
5681         * modules/strings (Depends-on): Update.
5682         * modules/sys_ioctl (Depends-on): Update.
5683         * modules/sys_select (Depends-on): Update.
5684         * modules/sys_socket (Depends-on): Update.
5685         * modules/sys_stat (Depends-on): Update.
5686         * modules/sys_time (Depends-on): Update.
5687         * modules/sys_wait (Depends-on): Update.
5688         * modules/termios (Depends-on): Update.
5689         * modules/time (Depends-on): Update.
5690         * modules/unistd (Depends-on): Update.
5691         * modules/wchar (Depends-on): Update.
5692         * modules/wctype-h (Depends-on): Update.
5693
5694         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
5695         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
5696         (Files, Makefile.am): Update.
5697         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
5698         * modules/argv-iter (Depends-on): Update.
5699         * modules/arpa_inet (Depends-on): Update.
5700         * modules/dirent (Depends-on): Update.
5701         * modules/fcntl-h (Depends-on): Update.
5702         * modules/fnmatch (Depends-on): Update.
5703         * modules/getopt-posix (Depends-on): Update.
5704         * modules/glob (Depends-on): Update.
5705         * modules/iconv-h (Depends-on): Update.
5706         * modules/inttypes-incomplete (Depends-on): Update.
5707         * modules/locale (Depends-on): Update.
5708         * modules/math (Depends-on): Update.
5709         * modules/netdb (Depends-on): Update.
5710         * modules/search (Depends-on): Update.
5711         * modules/signal (Depends-on): Update.
5712         * modules/spawn (Depends-on): Update.
5713         * modules/stdio (Depends-on): Update.
5714         * modules/stdlib (Depends-on): Update.
5715         * modules/string (Depends-on): Update.
5716         * modules/strings (Depends-on): Update.
5717         * modules/sys_socket (Depends-on): Update.
5718         * modules/sys_stat (Depends-on): Update.
5719         * modules/sys_time (Depends-on): Update.
5720         * modules/sys_times (Depends-on): Update.
5721         * modules/sys_utsname (Depends-on): Update.
5722         * modules/time (Depends-on): Update.
5723         * modules/unistd (Depends-on): Update.
5724         * modules/wchar (Depends-on): Update.
5725         * MODULES.html.sh (Support for building libraries and executables):
5726         Update.
5727
5728 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
5729
5730         Improvements on _Noreturn and related modules.
5731
5732         modules/_Exit-tests: test _Noreturn too
5733         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
5734         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
5735         (main): Use them.
5736
5737         stdnoreturn, stdnoreturn-tests: remove modules
5738         They're not needed here and a bit premature for use elsewhere.  See
5739         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
5740         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
5741         * tests/test-stdnoreturn.c: Remove files.
5742         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
5743         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
5744         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
5745         and using noreturn.
5746         * modules/openat, modules/sigpipe-die, modules/xalloc:
5747         * modules/xmemdup0, modules/xstrtol:
5748         Remove dependency on stdnoreturn.
5749
5750         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
5751         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
5752         Reparenthesize to avoid GCC warning.
5753         Support Microsoft's syntax.
5754         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
5755
5756         _Noreturn-tests: remove module
5757         * modules/_Noreturn-tests: Remove.
5758         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
5759         * tests/test-_Noreturn.c: Remove.
5760         * tests/test-stdnoreturn.c: Merge from the old
5761         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
5762
5763 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
5764
5765         _Noreturn, stdnoreturn, and related modules.
5766
5767         * top/maint.mk: Adjust to new noreturn support.
5768         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
5769         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
5770
5771         xalloc: use stdnoreturn.h
5772         * lib/xalloc.h: Include <stdnoreturn.h>.
5773         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
5774         * modules/xalloc (Depends-on): Add stdnoreturn.
5775
5776         xstrtol: use stdnoreturn.h
5777         * lib/xstrtol.h: Include <stdnoreturn.h>.
5778         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
5779         * modules/xstrtol (Depends-on): Add stdnoreturn.
5780
5781         xmemdup0: use stdnoreturn.h
5782         * lib/xmemdup0.h: Include <stdnoreturn.h>.
5783         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
5784         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
5785
5786         sigpipe-die: use stdnoreturn.h
5787         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
5788         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
5789         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
5790
5791         openat: use stdnoreturn.h
5792         * lib/openat.h: Include <stdnoreturn.h>.
5793         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
5794         * modules/openat (Depends-on): Add stdnoreturn.
5795
5796         * lib/openat-die.c (openat_save_fail): Modernize comment.
5797
5798         * lib/xalloc-die.c (xalloc_die): Modernize comment.
5799
5800         * lib/glthread/thread.h: Modernize comment.
5801
5802         obstack: use _Noreturn
5803         * lib/obstack.c (__attribute__): Remove macro.
5804         (print_and_abort): Use _Noreturn.
5805
5806         c-stack: use _Noreturn
5807         * lib/c-stack.c (die, overflow_handler, segv_handler):
5808         Use _Noreturn rather than __attribute__((noreturn)).
5809
5810         argmatch-tests, exclude_tests: use _Noreturn
5811         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
5812         Remove.
5813         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
5814
5815         stdlib: use _Noreturn
5816         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
5817         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
5818         * modules/stdlib (Depends-on): Add _Noreturn.
5819         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
5820
5821         stdnoreturn-tests: new module
5822         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
5823
5824         stdnoreturn: new module
5825         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
5826         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
5827
5828         _Noreturn-tests: new module
5829         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
5830
5831         _Noreturn: new module
5832         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
5833         New section, mentioning it.
5834         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
5835
5836         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
5837
5838 2011-07-11  Eric Blake  <eblake@redhat.com>
5839
5840         ffs: new module
5841         * modules/ffs: New file.
5842         * m4/ffs.m4: Likewise.
5843         * lib/ffs.c: Likewise.
5844         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
5845         * modules/strings (Makefile.am): Substitute witness.
5846         (Depends-on): Add c++defs.
5847         * lib/strings.in.h (ffs): Declare.
5848         * modules/ffs-tests: New test file.
5849         * tests/test-ffs.c: Test new module.
5850         * MODULES.html.sh (Integer arithmetic functions): Mention it.
5851         * doc/posix-functions/ffs.texi (ffs): Likewise.
5852
5853         regex: avoid compiler warning
5854         * lib/regex.c (includes): Include <strings.h>, for use of
5855         strcasecmp in regcomp.c.
5856         Reported by Joachim Schmitz.
5857
5858 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
5859
5860         stdint: respect system's intmax_t if INTMAX_MAX
5861         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
5862         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
5863         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
5864         long but int64_t is long long, and where we will clash with the
5865         system intmax_t if we override it.  See
5866         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
5867         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
5868         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
5869         similarly for UINTMAX_C.
5870
5871 2011-07-08  Bruno Haible  <bruno@clisp.org>
5872
5873         pthread_sigmask tests: Avoid a compiler warning.
5874         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
5875         non-zero.
5876
5877         sigprocmask tests: A better way to avoid a compiler warning.
5878         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
5879         (main): Complain if system() returns non-zero.
5880         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
5881
5882 2011-07-08  Bruno Haible  <bruno@clisp.org>
5883
5884         pthread_sigmask: Work around IRIX bug.
5885         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
5886         bug.
5887         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
5888         there may be unblocked pending signals.
5889         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
5890
5891 2011-07-08  Bruno Haible  <bruno@clisp.org>
5892
5893         pthread_sigmask: Work around Cygwin bug.
5894         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
5895         bug.
5896         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
5897         the system's pthread_sigmask function.
5898         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
5899
5900 2011-07-08  Bruno Haible  <bruno@clisp.org>
5901
5902         pthread_sigmask: Work around bug in single-threaded implementation.
5903         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
5904         FreeBSD, HP-UX, Solaris bug.
5905         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
5906         * lib/pthread_sigmask.c: Include <stddef.h>.
5907         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
5908         the system's pthread_sigmask function.
5909         * modules/pthread_sigmask (configure.ac): Invoke
5910         gl_PREREQ_PTHREAD_SIGMASK.
5911         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
5912         HP-UX, Solaris.
5913
5914 2011-07-08  Eric Blake  <eblake@redhat.com>
5915
5916         test-sigprocmask: avoid compiler warning
5917         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
5918         * tests/test-sigprocmask.c (main): Use it to silence warning.
5919         Reported by Jim Meyering.
5920
5921         test-snprintf: avoid compiler warning
5922         * tests/test-snprintf.c (main): Avoid shadowed declaration.
5923         * tests/test-vsnprintf.c (main): Likewise.
5924         Reported by Jim Meyering.
5925
5926 2011-07-08  Bruno Haible  <bruno@clisp.org>
5927
5928         Tests for module 'pthread_sigmask'.
5929         * modules/pthread_sigmask-tests: New file.
5930         * tests/test-pthread_sigmask1.c: New file, based on
5931         tests/test-sigprocmask.c.
5932         * tests/test-pthread_sigmask2.c: New file.
5933
5934 2011-07-08  Jim Meyering  <meyering@redhat.com>
5935
5936         test-getopt.h: avoid warning about an unused variable
5937         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
5938
5939 2011-07-07  Jim Meyering  <meyering@redhat.com>
5940
5941         maint: reduce list of files exempt from sc_prohibit_leading_TABs
5942         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
5943         now that it no longer contains leading TABs.
5944         Remove unused "url=FIXME" statement.
5945
5946 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
5947
5948         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
5949         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
5950         When gl_THREADLIB is not in use, assume that the POSIX sematics
5951         are desired.  This is better for Emacs, which uses POSIX semantics
5952         on GNUish and/or POSIXish platforms, and does not use threads at
5953         all otherwise.
5954
5955         pthread_sigmask: fix typo when testing for libraries
5956         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
5957         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
5958
5959 2011-07-08  Eric Blake  <eblake@redhat.com>
5960
5961         fts: introduce FTS_NOATIME
5962         * lib/fts_.h (FTS_NOATIME): New bit flag.
5963         (FTS_OPTIONMASK): Adjust.
5964         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
5965         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
5966
5967 2011-07-08  Bruno Haible  <bruno@clisp.org>
5968
5969         Tests for module 'thread'.
5970         * modules/thread-tests: New file.
5971         * tests/test-thread_self.c: New file.
5972         * tests/test-thread_create.cc: New file.
5973
5974 2011-07-08  Bruno Haible  <bruno@clisp.org>
5975
5976         thread: Avoid gcc warnings when using gl_thread_self().
5977         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
5978         'void *'.
5979         (gl_thread_self_pointer): Update.
5980
5981 2011-07-07  Bruno Haible  <bruno@clisp.org>
5982
5983         signal-c++-tests: Check declaration of pthread_sigmask.
5984         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
5985         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
5986         $(LIB_PTHREAD_SIGMASK).
5987
5988 2011-07-07  Bruno Haible  <bruno@clisp.org>
5989
5990         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
5991         * lib/signal.in.h (pthread_sigmask): Override if
5992         REPLACE_PTHREAD_SIGMASK is 1.
5993         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
5994         REPLACE_PTHREAD_SIGMASK.
5995         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
5996         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
5997         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
5998         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
5999         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
6000
6001 2011-07-07  Bruno Haible  <bruno@clisp.org>
6002
6003         pthread_sigmask: Ensure declaration in <signal.h>.
6004         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
6005         include <pthread.h>.
6006         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
6007         problem.
6008
6009 2011-07-07  Bruno Haible  <bruno@clisp.org>
6010
6011         pthread_sigmask: Document the module.
6012         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
6013
6014 2011-07-07  Bruno Haible  <bruno@clisp.org>
6015
6016         pthread_sigmask: Follow gnulib conventions.
6017         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
6018         gl_PTHREAD_SIGMASK.
6019         * modules/pthread_sigmask (configure.ac): Update.
6020
6021 2011-07-07  Bruno Haible  <bruno@clisp.org>
6022
6023         pthread_sigmask: Make declaration C++ safe.
6024         * lib/signal.in.h: In two special conditions, just do an #include_next.
6025         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
6026         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
6027         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
6028         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
6029         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
6030         not REPLACE_PTHREAD_MASK.
6031         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
6032         not REPLACE_PTHREAD_MASK.
6033         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
6034
6035 2011-07-07  Bruno Haible  <bruno@clisp.org>
6036
6037         pthread_sigmask: Fix return value.
6038         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
6039         * lib/pthread_sigmask.c: New file.
6040         * modules/pthread_sigmask (Files): Add it.
6041         (configure.ac): Invoke AC_LIBOBJ.
6042
6043 2011-07-07  Eric Blake  <eblake@redhat.com>
6044
6045         getopt: more portable argv creation
6046         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
6047         const, use char arrays rather than strings.
6048         Suggested by Paul Eggert.
6049
6050 2011-07-07  Bruno Haible  <bruno@clisp.org>
6051
6052         Tests for module 'sigprocmask'.
6053         * modules/sigprocmask-tests: New file.
6054         * tests/test-sigprocmask.c: New file.
6055
6056 2011-07-07  Bruno Haible  <bruno@clisp.org>
6057
6058         float tests: Tweak.
6059         * tests/test-float.c (main): Tweak skip message.
6060
6061 2011-07-07  Eric Blake  <eblake@redhat.com>
6062
6063         getopt: avoid compiler warning during configure
6064         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
6065         assigning string literals to non-const pointer.
6066
6067         getopt-gnu: avoid crash in glibc getopt
6068         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
6069         * tests/test-getopt.h (test_getopt): Enhance test.
6070         * tests/test-getopt_long.h (test_getopt_long): Likewise.
6071         * doc/posix-functions/getopt.texi (getopt): Document it.
6072         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
6073         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
6074         Likewise.
6075
6076 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
6077
6078         getopt: handle W; without long options in getopt [BZ #12922]
6079         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
6080         but no long options are defined, just return 'W'.
6081
6082 2011-07-07  Bruno Haible  <bruno@clisp.org>
6083
6084         Avoid literal tabs.
6085         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
6086         variable containing a tab instead of a literal tab.
6087         Reported by Jim Meyering.
6088
6089 2011-07-07  Bruno Haible  <bruno@clisp.org>
6090
6091         Comments.
6092         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
6093
6094 2011-07-06  Bruno Haible  <bruno@clisp.org>
6095
6096         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
6097         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
6098         <winsock2.h>.
6099         (rpl_fd_isset, FD_ISSET): New definitions, copied from
6100         lib/sys_socket.in.h.
6101         (close, gethostname): Hide declarations from <winsock2.h>.
6102         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
6103         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
6104         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
6105         (select): Don't override if gnulib's <sys/select.h> was already
6106         included.
6107         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
6108         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
6109         setsockopt, shutdown, select): Tweak indentation.
6110
6111 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
6112
6113         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
6114         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
6115         in an application that does not use the sys_select module.
6116
6117 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
6118
6119         poll: do not return 0 on timeout=-1
6120         * lib/poll.c: Loop with yield if no events occured
6121
6122 2011-07-06  Eric Blake  <eblake@redhat.com>
6123
6124         pthread_sigmask: always replace when not using pthread
6125         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
6126         replacement when using some threading other than pthread.  Fix
6127         logic bug.
6128
6129 2011-07-06  Bruno Haible  <bruno@clisp.org>
6130
6131         Comments.
6132         * m4/printf.m4: Update comments about mingw.
6133
6134 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
6135
6136         sys_select: define sigset_t more portably
6137         * lib/sys_select.in.h: Always include <sys/types.h>, since
6138         we now need sigset_t and mingw defines it there.
6139         Include <signal.h> before split inclusion guard, to avoid
6140         mishaps on Solaris, whose <signal.h> eventually includes us.
6141         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
6142         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
6143         which come from ...
6144         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
6145         gl_CHECK_TYPE_SIGSET_T.
6146         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
6147         does the real work.
6148         * modules/sys_select (Depends-on): Add 'signal'.
6149
6150         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
6151         Suggested by Bruno Haible.
6152
6153         pselect: Use pthread_sigmask, not sigprocmask.
6154         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
6155         multithreaded apps better than sigprocmask does.
6156         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
6157         sigprocmask directly.
6158
6159 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
6160
6161         * lib/pselect.c (pselect): Use plain name, without "rpl_".
6162         Don't #undef,  since we don't need any underlying pselect.
6163         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
6164         (Depends-on): Add select.
6165         (Link): Add $(LIBSOCKET).
6166         These changes suggested by Bruno Haible.
6167
6168         pselect: document better
6169         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
6170         * doc/posix-functions/pselect.texi (pselect): Document new module.
6171
6172         pthread_sigmask: new module
6173         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
6174         * doc/posix-functions/pthread_sigmask.texi: Document new module.
6175         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
6176         This is done only as a macro; I don't know how well that'll
6177         work for C++.  Move <sys/types.h> include before the include_next,
6178         to avoid mishap on Solaris.
6179         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
6180         * modules/signal (Makefile.am): Substitute the check's results.
6181         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
6182
6183         test-pselect: new module
6184         * modules/pselect-tests, tests/test-pselect.c: New files.
6185         * tests/test-select.c, tests/test-sys_select-c++.cc:
6186         If TEST_PSELECT is defined, test pselect instead of testing select.
6187
6188         * tests/test-sys_select.c (sigset_t): Test for it, too.
6189         Suggested by Bruno Haible.
6190
6191 2011-07-05  Eric Blake  <eblake@redhat.com>
6192
6193         snprintf: guarantee %1$d, for libintl
6194         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
6195         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
6196         * doc/posix-functions/snprintf.texi (snprintf): Update.
6197         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
6198         * tests/test-snprintf.c (main): Enhance test.
6199         * tests/test-vsnprintf.c (main): Likewise.
6200
6201 2011-07-05  Jim Meyering  <meyering@redhat.com>
6202
6203         maint: exempt stdio-read.c and stdio-write.c from the cppi check
6204         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
6205         per Bruno's request, to accommodate this idiom (no space after "#")
6206         even when the function is inside an #if block:
6207         char *
6208         gets (char *s)
6209         #undef gets
6210         {
6211           ...
6212         }
6213
6214 2011-07-04  Jim Meyering  <meyering@redhat.com>
6215
6216         maint: indent with spaces, not TABs, and add a rule to check this
6217         * tests/test-userspec.c: Indent with spaces, not TABs.
6218         * tests/test-argp.c: Likewise.
6219         * tests/test-c-stack2.sh: Likewise.
6220         * tests/test-parse-duration.sh: Likewise
6221         * m4/strtod.m4: Likewise.
6222         * m4/alloca.m4: Likewise.
6223         * m4/pselect.m4: Likewise.
6224         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
6225
6226 2011-07-03  Jim Meyering  <meyering@redhat.com>
6227
6228         maint.mk: correct omissions in prohibit_argmatch_without_use check
6229         This rule would mistakenly report that argmatch.h is included without
6230         use even when both the argmatch and invalid_arg macro were used.
6231         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
6232         of argmatch and invalid_arg.
6233
6234 2011-07-03  Bruno Haible  <bruno@clisp.org>
6235
6236         Comments about EINTR.
6237         * lib/safe-read.h: Explain the purpose of this module.
6238         * lib/safe-write.h: Likewise.
6239         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
6240         module.
6241         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
6242         module.
6243         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
6244
6245 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
6246
6247         xnanosleep: Rewrite to use new dtotimespec module.
6248         It has the conversion code that used to be in xnanosleep.
6249         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
6250         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
6251         (TIME_T_MAX): Remove.
6252         (xnanosleep): Rewrite in terms of dtotimespec.
6253         * modules/xnanosleep (Depends-on): Add dtotimespec.
6254         Remove intprops, stdbool.
6255
6256         timespec-add, timespec-sub: new modules
6257         * lib/timespec.h (timespec_add, timespec_sub): New decls.
6258         * lib/timespec-add.c, lib/timespec-sub.c:
6259         * modules/timespec-add, modules/timespec-sub: New files.
6260
6261         dtotimespec: new module
6262         * lib/timespec.h (dtotimespec): New decl.
6263         * lib/dtotimespec.c, modules/dtotimespec: New files.
6264
6265         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
6266
6267         pselect: new module
6268         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
6269         (pselect): New decls.
6270         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
6271         since the standard pselect decl uses 'restrict'.
6272         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
6273         HAVE_PSELECT, REPLACE_PSELECT.
6274         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
6275         HAVE_PSELECT, REPLACE_PSELECT.
6276         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
6277
6278         sys_select: don't depend on sys_socket
6279         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
6280         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
6281         This fix works on GNU and GNU-like platforms, but has not been tested
6282         on native Windows.
6283         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
6284         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
6285         gl_HEADER_SYS_SOCKET.
6286         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
6287         gl_PREREQ_SYS_H_WINSOCK2.
6288
6289 2011-06-29  Eric Blake  <eblake@redhat.com>
6290
6291         pipe2: fix C89 compile problem
6292         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
6293         Reported by Bruno Haible.
6294
6295         pipe, pipe2: don't corrupt fd on error
6296         * lib/pipe.c (pipe): Leave fd unchanged on error.
6297         * lib/pipe2.c (pipe2): Likewise.
6298         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
6299         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
6300
6301 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
6302
6303         mmap-anon: do not use regular expressions inadvertently
6304         * m4/mmap-anon.m4: Remove trailing period from strings sought
6305         in the output.
6306
6307 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
6308
6309         nanosleep: fix integer overflow problem
6310         * lib/nanosleep.c (my_usleep): Don't assume signed integer
6311         arithmetic wraps around on overflow.
6312
6313         nanosleep: simplify carrying
6314         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
6315         first call to the underyling nanosleep, not for the last one.
6316         This doesn't fix any bugs, but it simplifies the computation of
6317         the remaining delay.  Found while auditing integer overflow issues.
6318
6319         dup2: remove test for existence of fcntl
6320         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
6321         "#if HAVE_FCNTL", in the configure-time test program.
6322         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
6323         and therefore speeds up "configure" a bit.  Found while
6324         adding the dup2 module to Emacs.
6325
6326 2011-06-24  Eric Blake  <eblake@redhat.com>
6327
6328         maint.mk: enhance useless header checks
6329         * top/maint.mk (_sc_header_without_use): Check both include
6330         styles.
6331         (sc_prohibit_assert_without_use)
6332         (sc_prohibit_close_stream_without_use)
6333         (sc_prohibit_getopt_without_use)
6334         (sc_prohibit_quotearg_without_use)
6335         (sc_prohibit_quote_without_use)
6336         (sc_prohibit_long_options_without_use)
6337         (sc_prohibit_inttostr_without_use)
6338         (sc_prohibit_ignore_value_without_use)
6339         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
6340         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
6341         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
6342         (sc_prohibit_hash_pjw_without_use)
6343         (sc_prohibit_safe_read_without_use)
6344         (sc_prohibit_argmatch_without_use)
6345         (sc_prohibit_canonicalize_without_use)
6346         (sc_prohibit_root_dev_ino_without_use)
6347         (sc_prohibit_openat_without_use)
6348         (sc_prohibit_c_ctype_without_use)
6349         (sc_prohibit_signal_without_use)
6350         (sc_prohibit_stdio--_without_use)
6351         (sc_prohibit_stdio-safer_without_use)
6352         (sc_prohibit_strings_without_use)
6353         (sc_prohibit_intprops_without_use)
6354         (sc_prohibit_stddef_without_use)
6355         (sc_prohibit_xfreopen_without_use): Update clients.
6356
6357 2011-06-24  Jim Meyering  <meyering@redhat.com>
6358
6359         syntax-check: keep one maint.mk rule in sync with its header
6360         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
6361         of the bug Eric has just fixed, with today's commit 25e4c2ec.
6362         I prefer to avoid temporary files here, so use <(...), but that
6363         is not supported by /bin/sh, so...
6364         (SHELL): Define to /bin/bash.
6365
6366 2011-06-24  Eric Blake  <eblake@redhat.com>
6367
6368         maint.mk: update sc_prohibit_intprops_without_use
6369         * top/maint.mk (_intprops_names): Match recent changes.
6370
6371 2011-06-24  Bruno Haible  <bruno@clisp.org>
6372
6373         strerror-override: No-op tweak.
6374         * lib/strerror-override.h (strerror_override): Reorder conditions,
6375         for consistency with lib/strerror-override.c.
6376
6377 2011-06-23  Eric Blake  <eblake@redhat.com>
6378
6379         maint.mk: test further PATH_MAX issues
6380         * top/maint.mk (sc_prohibit_path_max_array): Rename...
6381         (sc_prohibit_path_max_allocation): ...and also test alloca.
6382         Suggested by Jim Meyering.
6383
6384 2011-06-22  Eric Blake  <eblake@redhat.com>
6385
6386         maint.mk: add syntax-check to avoid char[PATH_MAX]
6387         * top/maint.mk (sc_prohibit_path_max_array): New rule.
6388
6389         stat: be robust to PATH_MAX definition
6390         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
6391         * modules/stat (Depends-on): Add verify.
6392
6393         link: work around IRIX bug
6394         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
6395         * lib/link.c (rpl_link): Work around it.
6396         * tests/test-link.h (test_link): Enhance test.
6397         * doc/posix-functions/link.texi (link): Document the bug.
6398
6399         getopt: silence clang warning
6400         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
6401         dereference.
6402         Reported by Gustavo Martin Domato.
6403
6404 2011-06-22  Jim Meyering  <meyering@redhat.com>
6405
6406         bootstrap: do not insert a blank line into each .gitignore file
6407         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
6408
6409 2011-06-21  Eric Blake  <eblake@redhat.com>
6410
6411         perror: test for output mismatch
6412         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
6413         perror on IRIX.
6414
6415         strerror_r: fix OpenBSD behavior on out-of-range
6416         * lib/strerror_r.c (strerror_r): Always use maximal string.
6417         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
6418
6419         strerror_r: fix OpenBSD behavior on 0
6420         * lib/strerror-override.c (strerror_override): Also override 0
6421         when needed.
6422         * lib/strerror-override.h (strerror_override): Likewise.
6423         * lib/strerror.c (strerror): Simplify, now that 0 override is done
6424         earlier.
6425         * lib/strerror_r.c (strerror_r): Likewise.
6426         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
6427         behavior...
6428         (gl_FUNC_STRERROR_0): ...into new macro.
6429         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
6430         is overridden.
6431         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
6432         * modules/strerror-override (Files): Add strerror.m4.
6433         (configure.ac): Also provide override for 0 when needed.
6434         * doc/posix-functions/strerror.texi (strerror): Document this.
6435         * doc/posix-functions/perror.texi (perror): Likewise.
6436
6437         perror: adjust array size
6438         * modules/perror (Depends-on): Add strerror-override.
6439         * lib/perror.c (perror): Use it to avoid magic number.
6440
6441         strerror-override: reduce size
6442         * lib/strerror-override.c (strerror_override): Use fewer lines.
6443
6444 2011-06-20  Bruno Haible  <bruno@clisp.org>
6445
6446         pathmax: Ensure correct value for PATH_MAX on HP-UX.
6447         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
6448
6449 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
6450
6451         alloca: port to compilers that can optimize like GCC 4.6.0
6452         * lib/alloca.c (find_stack_direction): New signature, taken from
6453         Autoconf git.  This works with GCC 4.6.0.  This code should never
6454         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
6455         be used with other compilers that optimize as well as GCC 4.6.0 does.
6456         (alloca): Adjust to new signature.
6457         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
6458         New macro, which patches Autoconf in a similar way.
6459
6460         c-stack: stop worrying about stack direction
6461         * lib/c-stack.c (find_stack_direction): Remove.
6462         (segv_handler): Don't worry about stack direction growth, as it's
6463         too much of a pain to configure this correctly, given how compilers
6464         are optimizing-away our stack-growth detection code.  Instead, assume
6465         that any access to just before or just after the stack is OK.
6466         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
6467         Don't require AC_FUNC_ALLOCA; no longer needed.
6468
6469 2011-06-20  Eric Blake  <eblake@redhat.com>
6470
6471         test-stat: don't allocate PATH_MAX bytes
6472         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
6473         PATH_MAX-sized buffer.
6474         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
6475         * modules/stat-tests (Depends-on): Likewise.
6476         * tests/test-fstatat.c (includes): Drop pathmax.h.
6477         * tests/test-stat.c (includes): Likewise.
6478         Reported by Bruno Haible.
6479
6480 2011-06-20  Bruno Haible  <bruno@clisp.org>
6481
6482         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
6483         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
6484         * lib/float.c: New file.
6485         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
6486         REPLACE_FLOAT_LDBL.
6487         * modules/float (Files): Add lib/float.c.
6488         (configure.ac): Invoke AC_LIBOBJ.
6489         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
6490
6491 2011-06-20  Bruno Haible  <bruno@clisp.org>
6492
6493         Tests for module 'float'.
6494         * modules/float-tests: New file.
6495         * tests/test-float.c: New file.
6496
6497 2011-06-19  Bruno Haible  <bruno@clisp.org>
6498
6499         isinf: Coding style.
6500         * lib/isinf.c: Use GNU coding style.
6501
6502 2011-06-19  Bruno Haible  <bruno@clisp.org>
6503
6504         linkat test: Avoid test failure on AIX 7.1.
6505         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
6506         * tests/test-link.h (test_link): Likewise.
6507
6508 2011-06-19  Bruno Haible  <bruno@clisp.org>
6509
6510         pread test: Avoid test failure on OpenBSD 4.9.
6511         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
6512
6513 2011-06-19  Bruno Haible  <bruno@clisp.org>
6514
6515         sprintf-posix: Fix test failure on AIX 7.1.
6516         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
6517         * doc/posix-functions/dprintf.texi: Mention limited precision problem
6518         on AIX.
6519         * doc/posix-functions/fprintf.texi: Likewise.
6520         * doc/posix-functions/printf.texi: Likewise.
6521         * doc/posix-functions/snprintf.texi: Likewise.
6522         * doc/posix-functions/sprintf.texi: Likewise.
6523         * doc/posix-functions/vdprintf.texi: Likewise.
6524         * doc/posix-functions/vfprintf.texi: Likewise.
6525         * doc/posix-functions/vprintf.texi: Likewise.
6526         * doc/posix-functions/vsnprintf.texi: Likewise.
6527         * doc/posix-functions/vsprintf.texi: Likewise.
6528
6529 2011-06-19  Bruno Haible  <bruno@clisp.org>
6530
6531         roundl-ieee: Fix test failure on AIX 7.1.
6532         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
6533         * doc/posix-functions/roundl.texi: Mention problem with negative
6534         arguments.
6535
6536 2011-06-19  Bruno Haible  <bruno@clisp.org>
6537
6538         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
6539         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
6540         * doc/posix-functions/round.texi: Mention problem with negative
6541         arguments.
6542         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
6543
6544 2011-06-19  Bruno Haible  <bruno@clisp.org>
6545
6546         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
6547         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
6548         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
6549         * doc/posix-functions/roundf.texi: Mention problem with negative
6550         arguments.
6551         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
6552
6553 2011-06-19  Bruno Haible  <bruno@clisp.org>
6554
6555         ceilf-ieee: Work around bug on MacOS X 10.5.
6556         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
6557
6558         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
6559         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
6560         IEEE compliant, avoid compiler optimizations.
6561         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
6562         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
6563         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
6564         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
6565         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
6566         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
6567         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
6568         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
6569         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
6570         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
6571
6572 2011-06-19  Bruno Haible  <bruno@clisp.org>
6573
6574         ceilf-ieee: Work around bug on AIX 7.1.
6575         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
6576         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
6577
6578 2011-06-19  Bruno Haible  <bruno@clisp.org>
6579
6580         ceil-ieee: Work around bug on AIX 7.1.
6581         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
6582         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
6583
6584 2011-06-18  Bruno Haible  <bruno@clisp.org>
6585
6586         fsync test: Avoid test failure on MacOS X and AIX.
6587         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
6588         EINVAL.
6589
6590 2011-06-18  Bruno Haible  <bruno@clisp.org>
6591
6592         openat, fdopendir tests: Fix link errors.
6593         * modules/openat-tests (Depends-on): Add progname.
6594         * modules/fdopendir-tests (Depends-on): Likewise.
6595         * tests/test-fchownat.c: Include progname.h.
6596         (main): Call set_program_name.
6597         * tests/test-fstatat.c: Include progname.h.
6598         (main): Call set_program_name.
6599         * tests/test-mkdirat.c: Include progname.h.
6600         (main): Call set_program_name.
6601         * tests/test-openat.c: Include progname.h.
6602         (main): Call set_program_name.
6603         * tests/test-unlinkat.c: Include progname.h.
6604         (main): Call set_program_name.
6605         * tests/test-fdopendir.c: Include progname.h.
6606         (main): Call set_program_name.
6607
6608 2011-06-18  Bruno Haible  <bruno@clisp.org>
6609
6610         Doc update.
6611         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
6612         HP-UX.
6613         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
6614
6615 2011-06-18  Bruno Haible  <bruno@clisp.org>
6616
6617         getcwd tests: Avoid compilation error on HP-UX 11.31.
6618         * modules/getcwd-tests (Depends-on): Add pathmax.
6619         * tests/test-getcwd.c: Include pathmax.h.
6620
6621 2011-06-18  Bruno Haible  <bruno@clisp.org>
6622
6623         isfinite, isinf: Fix link error on AIX 6 and 7.
6624         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
6625         needed, also test the macro with a 'float' argument.
6626         * m4/isinf.m4 (gl_ISINF): Likewise.
6627
6628 2011-06-18  Bruno Haible  <bruno@clisp.org>
6629
6630         getloadavg: Don't clobber LIBS. Regression from previous commit.
6631         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
6632         AC_CHECK_LIB from here...
6633         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
6634         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
6635         gl_func_getloadavg_done.
6636         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6637
6638 2011-06-18  Bruno Haible  <bruno@clisp.org>
6639
6640         clean-temp: Improve documentation.
6641         * lib/clean-temp.h: Explain better how to use this module.
6642         Reported by John Darrington <john@darrington.wattle.id.au>.
6643
6644 2011-06-17  Bruno Haible  <bruno@clisp.org>
6645
6646         pread, pwrite: Avoid cc warning on AIX.
6647         * lib/unistd.in.h (pread): Undefine before defining as a macro.
6648         (pwrite): Likewise.
6649
6650 2011-06-17  Bruno Haible  <bruno@clisp.org>
6651
6652         spawn-pipe tests: Fix link error.
6653         * tests/test-spawn-pipe-child.c: Undefine fprintf.
6654         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6655
6656 2011-06-17  Bruno Haible  <bruno@clisp.org>
6657
6658         Tests: Remove unnecessary dependency.
6659         * modules/canonicalize-tests (Depends-on): Remove progname.
6660         * modules/chown-tests (Depends-on): Likewise.
6661         * modules/dirname-tests (Depends-on): Likewise.
6662         * modules/fdopendir-tests (Depends-on): Likewise.
6663         * modules/fdutimensat-tests (Depends-on): Likewise.
6664         * modules/hash-tests (Depends-on): Likewise.
6665         * modules/lchown-tests (Depends-on): Likewise.
6666         * modules/linkat-tests (Depends-on): Likewise.
6667         * modules/renameat-tests (Depends-on): Likewise.
6668         * modules/spawn-pipe-tests (Depends-on): Likewise.
6669         * modules/utimensat-tests (Depends-on): Likewise.
6670
6671 2011-06-17  Bruno Haible  <bruno@clisp.org>
6672
6673         spawn-pipe tests: Fix link error.
6674         * tests/test-spawn-pipe-child.c: Undefine fflush.
6675
6676 2011-06-17  Bruno Haible  <bruno@clisp.org>
6677
6678         Fix tests link errors.
6679         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
6680         * modules/chown-tests (Makefile.am): Don't link test-chown with
6681         LIBINTL.
6682         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
6683         LIBINTL.
6684         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
6685         LIBINTL.
6686         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
6687         LIBINTL.
6688
6689 2011-06-16  Bruno Haible  <bruno@clisp.org>
6690
6691         crypto/gc-sha1: Fix recent regression.
6692         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
6693         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
6694
6695         crypto/gc-md5: Fix recent regression.
6696         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
6697
6698         crypto/gc-md4: Fix recent regression.
6699         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
6700         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
6701
6702         crypto/gc-arctwo: Fix recent regression.
6703         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
6704         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
6705
6706         crypto/gc-rijndael: Fix recent regression.
6707         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
6708         (configure.ac): Invoke AC_LIBOBJ here.
6709         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
6710         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6711
6712         crypto/gc-hmac-sha1: Fix recent regression.
6713         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
6714         (configure.ac): Invoke AC_LIBOBJ here.
6715         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
6716         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6717
6718         crypto/gc-hmac-md5: Fix recent regression.
6719         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
6720         (configure.ac): Invoke AC_LIBOBJ here.
6721         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
6722         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6723
6724         crypto/gc-des: Fix recent regression.
6725         * modules/crypto/gc-des (Files): Remove m4/des.m4.
6726         (configure.ac): Invoke AC_LIBOBJ here.
6727         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
6728         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6729
6730         crypto/gc-arcfour: Fix recent regression.
6731         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
6732         (configure.ac): Invoke AC_LIBOBJ here.
6733         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
6734         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6735
6736 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
6737
6738         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
6739         After the 2011-05-21 change, this macro requires
6740         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
6741         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
6742
6743 2011-06-16  Bruno Haible  <bruno@clisp.org>
6744
6745         fprintftime: Move AC_LIBOBJ invocations to module description.
6746         * m4/fprintftime.m4: Remove file.
6747         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
6748         (configure.ac): Remove gl_FPRINTFTIME call.
6749         (Makefile.am): Augment lib_SOURCES.
6750         Reported by Jim Meyering.
6751
6752 2011-06-16  Bruno Haible  <bruno@clisp.org>
6753
6754         tmpfile-safer: Finish 2011-05-23 commit.
6755         * m4/stdio-safer.m4: Really remove file.
6756         Reported by Jim Meyering.
6757
6758 2011-06-16  Bruno Haible  <bruno@clisp.org>
6759
6760         syntax-check: Fix typo.
6761         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
6762         printf-posix.m4.
6763         Reported by Jim Meyering.
6764
6765 2011-06-13  Jim Meyering  <meyering@redhat.com>
6766
6767         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
6768         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
6769
6770 2011-05-23  Bruno Haible  <bruno@clisp.org>
6771
6772         yesno: Move AC_LIBOBJ invocations to module description.
6773         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
6774         * modules/yesno (Makefile.am): Augment lib_SOURCES.
6775
6776 2011-05-23  Bruno Haible  <bruno@clisp.org>
6777
6778         xstrtol: Move AC_LIBOBJ invocations to module description.
6779         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
6780         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
6781
6782 2011-05-23  Bruno Haible  <bruno@clisp.org>
6783
6784         xstrtold: Move AC_LIBOBJ invocations to module description.
6785         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
6786         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
6787
6788 2011-05-23  Bruno Haible  <bruno@clisp.org>
6789
6790         xstrtod: Move AC_LIBOBJ invocations to module description.
6791         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
6792         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
6793
6794 2011-05-23  Bruno Haible  <bruno@clisp.org>
6795
6796         xnanosleep: Move AC_LIBOBJ invocations to module description.
6797         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
6798         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
6799
6800 2011-05-23  Bruno Haible  <bruno@clisp.org>
6801
6802         xgetcwd: Move AC_LIBOBJ invocations to module description.
6803         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
6804         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
6805
6806 2011-05-23  Bruno Haible  <bruno@clisp.org>
6807
6808         xalloc: Move AC_LIBOBJ invocations to module description.
6809         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
6810         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
6811
6812 2011-05-23  Bruno Haible  <bruno@clisp.org>
6813
6814         write-any-file: Move AC_LIBOBJ invocations to module description.
6815         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
6816         invocation.
6817         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
6818
6819 2011-05-23  Bruno Haible  <bruno@clisp.org>
6820
6821         utimens: Move AC_LIBOBJ invocations to module description.
6822         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
6823         * modules/utimens (Makefile.am): Augment lib_SOURCES.
6824
6825 2011-05-23  Bruno Haible  <bruno@clisp.org>
6826
6827         utimecmp: Move AC_LIBOBJ invocations to module description.
6828         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
6829         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
6830
6831 2011-05-23  Bruno Haible  <bruno@clisp.org>
6832
6833         userspec: Move AC_LIBOBJ invocations to module description.
6834         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
6835         * modules/userspec (Makefile.am): Augment lib_SOURCES.
6836
6837 2011-05-23  Bruno Haible  <bruno@clisp.org>
6838
6839         unlinkdir: Move AC_LIBOBJ invocations to module description.
6840         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
6841         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
6842
6843 2011-05-23  Bruno Haible  <bruno@clisp.org>
6844
6845         unistd-safer: Move AC_LIBOBJ invocations to module description.
6846         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
6847         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
6848
6849 2011-05-23  Bruno Haible  <bruno@clisp.org>
6850
6851         tempname: Move AC_LIBOBJ invocations to module description.
6852         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
6853         * modules/tempname (Makefile.am): Augment lib_SOURCES.
6854
6855 2011-05-23  Bruno Haible  <bruno@clisp.org>
6856
6857         strftime: Move AC_LIBOBJ invocations to module description.
6858         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
6859         * modules/strftime (Makefile.am): Augment lib_SOURCES.
6860
6861 2011-05-23  Bruno Haible  <bruno@clisp.org>
6862
6863         stdlib-safer: Move AC_LIBOBJ invocations to module description.
6864         * m4/stdlib-safer.m4: Remove file.
6865         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
6866         (configure.ac): Remove gl_STDLIB_SAFER call.
6867         (Makefile.am): Augment lib_SOURCES.
6868
6869 2011-05-23  Bruno Haible  <bruno@clisp.org>
6870
6871         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
6872         * m4/stdio-safer.m4: Remove file.
6873         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
6874         (configure.ac): Remove gl_TMPFILE_SAFER call.
6875         (Makefile.am): Augment lib_SOURCES.
6876
6877 2011-05-23  Bruno Haible  <bruno@clisp.org>
6878
6879         popen-safer: Move AC_LIBOBJ invocations to module description.
6880         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
6881         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
6882         (configure.ac): Remove gl_POPEN_SAFER call.
6883         (Makefile.am): Augment lib_SOURCES.
6884
6885 2011-05-23  Bruno Haible  <bruno@clisp.org>
6886
6887         freopen-safer: Move AC_LIBOBJ invocations to module description.
6888         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
6889         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
6890         (configure.ac): Remove gl_FREOPEN_SAFER call.
6891         (Makefile.am): Augment lib_SOURCES.
6892
6893 2011-05-23  Bruno Haible  <bruno@clisp.org>
6894
6895         fopen-safer: Move AC_LIBOBJ invocations to module description.
6896         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
6897         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
6898         (configure.ac): Remove gl_FOPEN_SAFER call.
6899         (Makefile.am): Augment lib_SOURCES.
6900
6901 2011-05-23  Bruno Haible  <bruno@clisp.org>
6902
6903         crypto/sha512: Move AC_LIBOBJ invocations to module description.
6904         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
6905         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
6906
6907 2011-05-23  Bruno Haible  <bruno@clisp.org>
6908
6909         crypto/sha256: Move AC_LIBOBJ invocations to module description.
6910         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
6911         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
6912
6913 2011-05-23  Bruno Haible  <bruno@clisp.org>
6914
6915         crypto/sha1: Move AC_LIBOBJ invocations to module description.
6916         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
6917         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
6918
6919 2011-05-23  Bruno Haible  <bruno@clisp.org>
6920
6921         settime: Move AC_LIBOBJ invocations to module description.
6922         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
6923         * modules/settime (Makefile.am): Augment lib_SOURCES.
6924
6925 2011-05-23  Bruno Haible  <bruno@clisp.org>
6926
6927         savedir: Move AC_LIBOBJ invocations to module description.
6928         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
6929         * modules/savedir (Makefile.am): Augment lib_SOURCES.
6930
6931 2011-05-23  Bruno Haible  <bruno@clisp.org>
6932
6933         save-cwd: Move AC_LIBOBJ invocations to module description.
6934         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
6935         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
6936
6937 2011-05-23  Bruno Haible  <bruno@clisp.org>
6938
6939         same: Move AC_LIBOBJ invocations to module description.
6940         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
6941         * modules/same (Makefile.am): Augment lib_SOURCES.
6942
6943 2011-05-23  Bruno Haible  <bruno@clisp.org>
6944
6945         safe-write: Move AC_LIBOBJ invocations to module description.
6946         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
6947         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
6948         instead of gl_SAFE_WRITE.
6949         (Makefile.am): Augment lib_SOURCES.
6950
6951 2011-05-23  Bruno Haible  <bruno@clisp.org>
6952
6953         safe-read: Move AC_LIBOBJ invocations to module description.
6954         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
6955         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
6956         of gl_SAFE_READ.
6957         (Makefile.am): Augment lib_SOURCES.
6958
6959 2011-05-23  Bruno Haible  <bruno@clisp.org>
6960
6961         safe-alloc: Move AC_LIBOBJ invocations to module description.
6962         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
6963         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
6964
6965 2011-05-23  Bruno Haible  <bruno@clisp.org>
6966
6967         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
6968         * m4/rijndael.m4: Remove file.
6969         * modules/crypto/rijndael (Files): Remove it.
6970         (configure.ac): Remove gl_RIJNDAEL call.
6971         (Makefile.am): Augment lib_SOURCES.
6972
6973 2011-05-23  Bruno Haible  <bruno@clisp.org>
6974
6975         readtokens: Move AC_LIBOBJ invocations to module description.
6976         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
6977         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
6978
6979 2011-05-23  Bruno Haible  <bruno@clisp.org>
6980
6981         read-file: Move AC_LIBOBJ invocations to module description.
6982         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
6983         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
6984         of gl_FUNC_READ_FILE.
6985         (Makefile.am): Augment lib_SOURCES.
6986
6987 2011-05-23  Bruno Haible  <bruno@clisp.org>
6988
6989         quotearg: Move AC_LIBOBJ invocations to module description.
6990         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
6991         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
6992
6993 2011-05-23  Bruno Haible  <bruno@clisp.org>
6994
6995         quote: Move AC_LIBOBJ invocations to module description.
6996         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
6997         * modules/quote (Makefile.am): Augment lib_SOURCES.
6998
6999 2011-05-23  Bruno Haible  <bruno@clisp.org>
7000
7001         posixver: Move AC_LIBOBJ invocations to module description.
7002         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
7003         * modules/posixver (Makefile.am): Augment lib_SOURCES.
7004
7005 2011-05-23  Bruno Haible  <bruno@clisp.org>
7006
7007         posixtm: Move AC_LIBOBJ invocations to module description.
7008         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
7009         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
7010
7011 2011-05-23  Bruno Haible  <bruno@clisp.org>
7012
7013         physmem: Move AC_LIBOBJ invocations to module description.
7014         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
7015         * modules/physmem (Makefile.am): Augment lib_SOURCES.
7016
7017 2011-05-23  Bruno Haible  <bruno@clisp.org>
7018
7019         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
7020         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
7021         invocation.
7022         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
7023
7024 2011-05-23  Bruno Haible  <bruno@clisp.org>
7025
7026         mpsort: Move AC_LIBOBJ invocations to module description.
7027         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
7028         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
7029
7030 2011-05-23  Bruno Haible  <bruno@clisp.org>
7031
7032         modechange: Move AC_LIBOBJ invocations to module description.
7033         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
7034         * modules/modechange (Makefile.am): Augment lib_SOURCES.
7035
7036 2011-05-23  Bruno Haible  <bruno@clisp.org>
7037
7038         mkdir-p: Move AC_LIBOBJ invocations to module description.
7039         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
7040         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
7041
7042 2011-05-23  Bruno Haible  <bruno@clisp.org>
7043
7044         mkancesdirs: Move AC_LIBOBJ invocations to module description.
7045         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
7046         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
7047
7048 2011-05-23  Bruno Haible  <bruno@clisp.org>
7049
7050         mgetgroups: Move AC_LIBOBJ invocations to module description.
7051         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
7052         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
7053
7054 2011-05-23  Bruno Haible  <bruno@clisp.org>
7055
7056         memxor: Move AC_LIBOBJ invocations to module description.
7057         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
7058         * modules/memxor (Makefile.am): Augment lib_SOURCES.
7059
7060 2011-05-23  Bruno Haible  <bruno@clisp.org>
7061
7062         memcoll: Move AC_LIBOBJ invocations to module description.
7063         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
7064         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
7065
7066 2011-05-23  Bruno Haible  <bruno@clisp.org>
7067
7068         memcasecmp: Move AC_LIBOBJ invocations to module description.
7069         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
7070         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
7071
7072 2011-05-23  Bruno Haible  <bruno@clisp.org>
7073
7074         crypto/md5: Move AC_LIBOBJ invocations to module description.
7075         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
7076         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
7077
7078 2011-05-23  Bruno Haible  <bruno@clisp.org>
7079
7080         crypto/md4: Move AC_LIBOBJ invocations to module description.
7081         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
7082         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
7083
7084 2011-05-23  Bruno Haible  <bruno@clisp.org>
7085
7086         crypto/md2: Move AC_LIBOBJ invocations to module description.
7087         * m4/md2.m4: Remove file.
7088         * modules/crypto/md2 (Files): Remove it.
7089         (configure.ac): Remove gl_MD2 call.
7090         (Makefile.am): Augment lib_SOURCES.
7091
7092 2011-05-23  Bruno Haible  <bruno@clisp.org>
7093
7094         long-options: Move AC_LIBOBJ invocations to module description.
7095         * m4/long-options.m4: Remove file.
7096         * modules/long-options (Files): Remove it.
7097         (configure.ac): Remove gl_LONG_OPTIONS call.
7098         (Makefile.am): Augment lib_SOURCES.
7099
7100 2011-05-23  Bruno Haible  <bruno@clisp.org>
7101
7102         i-ring: Move AC_LIBOBJ invocations to module description.
7103         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
7104         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
7105
7106 2011-05-23  Bruno Haible  <bruno@clisp.org>
7107
7108         idcache: Move AC_LIBOBJ invocations to module description.
7109         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
7110         * modules/idcache (Makefile.am): Augment lib_SOURCES.
7111
7112 2011-05-23  Bruno Haible  <bruno@clisp.org>
7113
7114         human: Move AC_LIBOBJ invocations to module description.
7115         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
7116         * modules/human (Makefile.am): Augment lib_SOURCES.
7117
7118 2011-05-23  Bruno Haible  <bruno@clisp.org>
7119
7120         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
7121         * m4/hmac-sha1.m4: Remove file.
7122         * modules/crypto/hmac-sha1 (Files): Remove it.
7123         (configure.ac): Remove gl_HMAC_SHA1 call.
7124         (Makefile.am): Augment lib_SOURCES.
7125
7126 2011-05-23  Bruno Haible  <bruno@clisp.org>
7127
7128         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
7129         * m4/hmac-md5.m4: Remove file.
7130         * modules/crypto/hmac-md5 (Files): Remove it.
7131         (configure.ac): Remove gl_HMAC_MD5 call.
7132         (Makefile.am): Augment lib_SOURCES.
7133
7134 2011-05-23  Bruno Haible  <bruno@clisp.org>
7135
7136         hash: Move AC_LIBOBJ invocations to module description.
7137         * m4/hash.m4: Remove file.
7138         * modules/hash (Files): Remove it.
7139         (configure.ac): Remove gl_HASH call.
7140         (Makefile.am): Augment lib_SOURCES.
7141
7142 2011-05-23  Bruno Haible  <bruno@clisp.org>
7143
7144         hard-locale: Move AC_LIBOBJ invocations to module description.
7145         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
7146         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
7147
7148 2011-05-23  Bruno Haible  <bruno@clisp.org>
7149
7150         getugroups: Move AC_LIBOBJ invocations to module description.
7151         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
7152         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
7153
7154 2011-05-23  Bruno Haible  <bruno@clisp.org>
7155
7156         gettime: Move AC_LIBOBJ invocations to module description.
7157         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
7158         * modules/gettime (Makefile.am): Augment lib_SOURCES.
7159
7160 2011-05-23  Bruno Haible  <bruno@clisp.org>
7161
7162         getndelim2: Move AC_LIBOBJ invocations to module description.
7163         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
7164         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
7165
7166 2011-05-23  Bruno Haible  <bruno@clisp.org>
7167
7168         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
7169         * m4/gc-pbkdf2-sha1.m4: Remove file.
7170         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
7171         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
7172         (Makefile.am): Augment lib_SOURCES.
7173
7174 2011-05-23  Bruno Haible  <bruno@clisp.org>
7175
7176         fts: Move AC_LIBOBJ invocations to module description.
7177         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
7178         * modules/fts (configure.ac): ... to here.
7179
7180 2011-05-23  Bruno Haible  <bruno@clisp.org>
7181
7182         file-type: Move AC_LIBOBJ invocations to module description.
7183         * m4/file-type.m4: Remove file.
7184         * modules/file-type (Files): Remove it.
7185         (configure.ac): Remove gl_FILE_TYPE call.
7186         (Makefile.am): Augment lib_SOURCES.
7187
7188 2011-05-23  Bruno Haible  <bruno@clisp.org>
7189
7190         filenamecat*: Respect rules for use of AC_LIBOBJ.
7191         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
7192         Remove AC_LIBOBJ invocation.
7193         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
7194         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
7195
7196 2011-05-23  Bruno Haible  <bruno@clisp.org>
7197
7198         filemode: Move AC_LIBOBJ invocations to module description.
7199         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
7200         * modules/filemode (Makefile.am): Augment lib_SOURCES.
7201
7202 2011-05-23  Bruno Haible  <bruno@clisp.org>
7203
7204         openat-safer: Move AC_LIBOBJ invocations to module description.
7205         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
7206         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
7207
7208 2011-05-23  Bruno Haible  <bruno@clisp.org>
7209
7210         fcntl-safer: Move AC_LIBOBJ invocations to module description.
7211         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
7212         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
7213
7214 2011-05-23  Bruno Haible  <bruno@clisp.org>
7215
7216         exclude: Move AC_LIBOBJ invocations to module description.
7217         * m4/exclude.m4: Remove file.
7218         * modules/exclude (Files): Remove it.
7219         (configure.ac): Remove gl_EXCLUDE call.
7220         (Makefile.am): Augment lib_SOURCES.
7221
7222 2011-05-23  Bruno Haible  <bruno@clisp.org>
7223
7224         dirname*: Respect rules for use of AC_LIBOBJ.
7225         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
7226         invocations.
7227         * modules/dirname (Makefile.am): Augment lib_SOURCES.
7228         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
7229
7230 2011-05-23  Bruno Haible  <bruno@clisp.org>
7231
7232         dirent-safer: Move AC_LIBOBJ invocations to module description.
7233         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
7234         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
7235
7236 2011-05-23  Bruno Haible  <bruno@clisp.org>
7237
7238         crypto/des: Move AC_LIBOBJ invocations to module description.
7239         * m4/des.m4: Remove file.
7240         * modules/crypto/des (Files): Remove it.
7241         (configure.ac): Remove gl_DES call.
7242         (Makefile.am): Augment lib_SOURCES.
7243
7244 2011-05-23  Bruno Haible  <bruno@clisp.org>
7245
7246         cycle-check: Move AC_LIBOBJ invocations to module description.
7247         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
7248         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
7249
7250 2011-05-23  Bruno Haible  <bruno@clisp.org>
7251
7252         c-strtold: Move AC_LIBOBJ invocations to module description.
7253         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
7254         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
7255
7256 2011-05-23  Bruno Haible  <bruno@clisp.org>
7257
7258         c-strtod: Move AC_LIBOBJ invocations to module description.
7259         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
7260         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
7261
7262 2011-05-23  Bruno Haible  <bruno@clisp.org>
7263
7264         crc: Move AC_LIBOBJ invocations to module description.
7265         * m4/crc.m4: Remove file.
7266         * modules/crc (Files): Remove it.
7267         (configure.ac): Remove gl_CRC call.
7268         (Makefile.am): Augment lib_SOURCES.
7269
7270 2011-05-23  Bruno Haible  <bruno@clisp.org>
7271
7272         close-stream: Move AC_LIBOBJ invocations to module description.
7273         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
7274         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
7275
7276 2011-05-23  Bruno Haible  <bruno@clisp.org>
7277
7278         closeout: Move AC_LIBOBJ invocations to module description.
7279         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
7280         * modules/closeout (Makefile.am): Augment lib_SOURCES.
7281
7282 2011-05-23  Bruno Haible  <bruno@clisp.org>
7283
7284         closein: Move AC_LIBOBJ invocations to module description.
7285         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
7286         * modules/closein (Makefile.am): Augment lib_SOURCES.
7287
7288 2011-05-23  Bruno Haible  <bruno@clisp.org>
7289
7290         cloexec: Move AC_LIBOBJ invocations to module description.
7291         * m4/cloexec.m4: Remove file.
7292         * modules/cloexec (Files): Remove it.
7293         (configure.ac): Remove gl_CLOEXEC call.
7294         (Makefile.am): Augment lib_SOURCES.
7295
7296 2011-05-23  Bruno Haible  <bruno@clisp.org>
7297
7298         check-version: Move AC_LIBOBJ invocations to module description.
7299         * m4/check-version.m4: Remove file.
7300         * modules/check-version (Files): Remove it.
7301         (configure.ac): Remove gl_CHECK_VERSION call.
7302         (Makefile.am): Augment lib_SOURCES.
7303
7304 2011-05-23  Bruno Haible  <bruno@clisp.org>
7305
7306         chdir-safer: Move AC_LIBOBJ invocations to module description.
7307         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
7308         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
7309
7310 2011-05-23  Bruno Haible  <bruno@clisp.org>
7311
7312         canonicalize: Move AC_LIBOBJ invocations to module description.
7313         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
7314         AC_LIBOBJ invocation.
7315         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
7316
7317 2011-05-23  Bruno Haible  <bruno@clisp.org>
7318
7319         canon-host: Move AC_LIBOBJ invocations to module description.
7320         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
7321         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
7322         instead of gl_CANON_HOST.
7323         (Makefile.am): Augment lib_SOURCES.
7324
7325 2011-05-23  Bruno Haible  <bruno@clisp.org>
7326
7327         backupfile: Move AC_LIBOBJ invocations to module description.
7328         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
7329         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
7330
7331 2011-05-23  Bruno Haible  <bruno@clisp.org>
7332
7333         argmatch: Move AC_LIBOBJ invocations to module description.
7334         * m4/argmatch.m4: Remove file.
7335         * modules/argmatch (Files): Remove it.
7336         (configure.ac): Remove gl_ARGMATCH call.
7337         (Makefile.am): Augment lib_SOURCES.
7338
7339 2011-05-23  Bruno Haible  <bruno@clisp.org>
7340
7341         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
7342         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
7343         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
7344
7345 2011-05-23  Bruno Haible  <bruno@clisp.org>
7346
7347         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
7348         * m4/arcfour.m4: Remove file.
7349         * modules/crypto/arcfour (Files): Remove it.
7350         (configure.ac): Remove gl_ARCFOUR call.
7351         (Makefile.am): Augment lib_SOURCES.
7352
7353 2011-05-22  Bruno Haible  <bruno@clisp.org>
7354
7355         write: Move AC_LIBOBJ invocations to module description.
7356         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
7357         * modules/write (configure.ac): ... to here.
7358
7359 2011-05-22  Bruno Haible  <bruno@clisp.org>
7360
7361         wmemset: Move AC_LIBOBJ invocations to module description.
7362         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
7363         here...
7364         * modules/wmemset (configure.ac): ... to here.
7365
7366 2011-05-22  Bruno Haible  <bruno@clisp.org>
7367
7368         wmemmove: Move AC_LIBOBJ invocations to module description.
7369         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
7370         here...
7371         * modules/wmemmove (configure.ac): ... to here.
7372
7373 2011-05-22  Bruno Haible  <bruno@clisp.org>
7374
7375         wmemcpy: Move AC_LIBOBJ invocations to module description.
7376         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
7377         here...
7378         * modules/wmemcpy (configure.ac): ... to here.
7379
7380 2011-05-22  Bruno Haible  <bruno@clisp.org>
7381
7382         wmemcmp: Move AC_LIBOBJ invocations to module description.
7383         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
7384         here...
7385         * modules/wmemcmp (configure.ac): ... to here.
7386
7387 2011-05-22  Bruno Haible  <bruno@clisp.org>
7388
7389         wmemchr: Move AC_LIBOBJ invocations to module description.
7390         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
7391         here...
7392         * modules/wmemchr (configure.ac): ... to here.
7393
7394 2011-05-22  Bruno Haible  <bruno@clisp.org>
7395
7396         wcswidth: Move AC_LIBOBJ invocations to module description.
7397         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
7398         here...
7399         * modules/wcswidth (configure.ac): ... to here.
7400
7401 2011-05-22  Bruno Haible  <bruno@clisp.org>
7402
7403         wcwidth: Respect rules for use of AC_LIBOBJ.
7404         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
7405         invocation from here...
7406         * modules/wcwidth (configure.ac): ... to here.
7407         (Depends-on): Update conditions.
7408
7409 2011-05-22  Bruno Haible  <bruno@clisp.org>
7410
7411         wctype: Move AC_LIBOBJ invocations to module description.
7412         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
7413         invocation from here...
7414         * modules/wctype (configure.ac): ... to here.
7415         (Depends-on): Update conditions.
7416
7417 2011-05-22  Bruno Haible  <bruno@clisp.org>
7418
7419         wctrans: Move AC_LIBOBJ invocations to module description.
7420         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
7421         invocation from here...
7422         * modules/wctrans (configure.ac): ... to here.
7423
7424 2011-05-22  Bruno Haible  <bruno@clisp.org>
7425
7426         wctomb: Move AC_LIBOBJ invocations to module description.
7427         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
7428         invocations from here...
7429         * modules/wctomb (configure.ac): ... to here.
7430
7431 2011-05-22  Bruno Haible  <bruno@clisp.org>
7432
7433         wctob: Move AC_LIBOBJ invocations to module description.
7434         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
7435         gl_PREREQ_WCTOB invocations from here...
7436         * modules/wctob (configure.ac): ... to here.
7437         (Depends-on): Update conditions.
7438
7439 2011-05-22  Bruno Haible  <bruno@clisp.org>
7440
7441         wcsxfrm: Move AC_LIBOBJ invocations to module description.
7442         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
7443         here...
7444         * modules/wcsxfrm (configure.ac): ... to here.
7445
7446 2011-05-22  Bruno Haible  <bruno@clisp.org>
7447
7448         wcstok: Move AC_LIBOBJ invocations to module description.
7449         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
7450         * modules/wcstok (configure.ac): ... to here.
7451
7452 2011-05-22  Bruno Haible  <bruno@clisp.org>
7453
7454         wcsstr: Move AC_LIBOBJ invocations to module description.
7455         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
7456         * modules/wcsstr (configure.ac): ... to here.
7457
7458 2011-05-22  Bruno Haible  <bruno@clisp.org>
7459
7460         wcsspn: Move AC_LIBOBJ invocations to module description.
7461         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
7462         * modules/wcsspn (configure.ac): ... to here.
7463
7464 2011-05-22  Bruno Haible  <bruno@clisp.org>
7465
7466         wcsrtombs: Move AC_LIBOBJ invocations to module description.
7467         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
7468         gl_PREREQ_WCSRTOMBS invocations from here...
7469         * modules/wcsrtombs (configure.ac): ... to here.
7470
7471 2011-05-22  Bruno Haible  <bruno@clisp.org>
7472
7473         wcsrchr: Move AC_LIBOBJ invocations to module description.
7474         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
7475         here...
7476         * modules/wcsrchr (configure.ac): ... to here.
7477
7478 2011-05-22  Bruno Haible  <bruno@clisp.org>
7479
7480         wcspbrk: Move AC_LIBOBJ invocations to module description.
7481         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
7482         here...
7483         * modules/wcspbrk (configure.ac): ... to here.
7484
7485 2011-05-22  Bruno Haible  <bruno@clisp.org>
7486
7487         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
7488         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
7489         gl_PREREQ_WCSNRTOMBS invocations from here...
7490         * modules/wcsnrtombs (configure.ac): ... to here.
7491
7492 2011-05-22  Bruno Haible  <bruno@clisp.org>
7493
7494         wcsnlen: Move AC_LIBOBJ invocations to module description.
7495         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
7496         here...
7497         * modules/wcsnlen (configure.ac): ... to here.
7498
7499 2011-05-22  Bruno Haible  <bruno@clisp.org>
7500
7501         wcsncpy: Move AC_LIBOBJ invocations to module description.
7502         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
7503         here...
7504         * modules/wcsncpy (configure.ac): ... to here.
7505
7506 2011-05-22  Bruno Haible  <bruno@clisp.org>
7507
7508         wcsncmp: Move AC_LIBOBJ invocations to module description.
7509         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
7510         here...
7511         * modules/wcsncmp (configure.ac): ... to here.
7512
7513 2011-05-22  Bruno Haible  <bruno@clisp.org>
7514
7515         wcsncat: Move AC_LIBOBJ invocations to module description.
7516         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
7517         here...
7518         * modules/wcsncat (configure.ac): ... to here.
7519
7520 2011-05-22  Bruno Haible  <bruno@clisp.org>
7521
7522         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
7523         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
7524         from here...
7525         * modules/wcsncasecmp (configure.ac): ... to here.
7526
7527 2011-05-22  Bruno Haible  <bruno@clisp.org>
7528
7529         wcslen: Move AC_LIBOBJ invocations to module description.
7530         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
7531         * modules/wcslen (configure.ac): ... to here.
7532
7533 2011-05-22  Bruno Haible  <bruno@clisp.org>
7534
7535         wcsdup: Move AC_LIBOBJ invocations to module description.
7536         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
7537         * modules/wcsdup (configure.ac): ... to here.
7538
7539 2011-05-22  Bruno Haible  <bruno@clisp.org>
7540
7541         wcscspn: Move AC_LIBOBJ invocations to module description.
7542         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
7543         here...
7544         * modules/wcscspn (configure.ac): ... to here.
7545
7546 2011-05-22  Bruno Haible  <bruno@clisp.org>
7547
7548         wcscpy: Move AC_LIBOBJ invocations to module description.
7549         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
7550         * modules/wcscpy (configure.ac): ... to here.
7551
7552 2011-05-22  Bruno Haible  <bruno@clisp.org>
7553
7554         wcscoll: Move AC_LIBOBJ invocations to module description.
7555         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
7556         here...
7557         * modules/wcscoll (configure.ac): ... to here.
7558
7559 2011-05-22  Bruno Haible  <bruno@clisp.org>
7560
7561         wcscmp: Move AC_LIBOBJ invocations to module description.
7562         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
7563         * modules/wcscmp (configure.ac): ... to here.
7564
7565 2011-05-22  Bruno Haible  <bruno@clisp.org>
7566
7567         wcschr: Move AC_LIBOBJ invocations to module description.
7568         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
7569         * modules/wcschr (configure.ac): ... to here.
7570
7571 2011-05-22  Bruno Haible  <bruno@clisp.org>
7572
7573         wcscat: Move AC_LIBOBJ invocations to module description.
7574         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
7575         * modules/wcscat (configure.ac): ... to here.
7576
7577 2011-05-22  Bruno Haible  <bruno@clisp.org>
7578
7579         wcscasecmp: Move AC_LIBOBJ invocations to module description.
7580         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
7581         here...
7582         * modules/wcscasecmp (configure.ac): ... to here.
7583
7584 2011-05-22  Bruno Haible  <bruno@clisp.org>
7585
7586         wcrtomb: Move AC_LIBOBJ invocations to module description.
7587         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
7588         invocations from here...
7589         * modules/wcrtomb (configure.ac): ... to here.
7590
7591 2011-05-22  Bruno Haible  <bruno@clisp.org>
7592
7593         wcpncpy: Move AC_LIBOBJ invocations to module description.
7594         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
7595         here...
7596         * modules/wcpncpy (configure.ac): ... to here.
7597
7598 2011-05-22  Bruno Haible  <bruno@clisp.org>
7599
7600         wcpcpy: Move AC_LIBOBJ invocations to module description.
7601         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
7602         * modules/wcpcpy (configure.ac): ... to here.
7603
7604 2011-05-22  Bruno Haible  <bruno@clisp.org>
7605
7606         waitpid: Move AC_LIBOBJ invocations to module description.
7607         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
7608         invocation from here...
7609         * modules/waitpid (configure.ac): ... to here.
7610
7611 2011-05-22  Bruno Haible  <bruno@clisp.org>
7612
7613         utimensat: Move AC_LIBOBJ invocations to module description.
7614         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
7615         here...
7616         * modules/utimensat (configure.ac): ... to here.
7617
7618 2011-05-22  Bruno Haible  <bruno@clisp.org>
7619
7620         usleep: Move AC_LIBOBJ invocations to module description.
7621         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
7622         here...
7623         * modules/usleep (configure.ac): ... to here.
7624
7625 2011-05-22  Bruno Haible  <bruno@clisp.org>
7626
7627         unlockpt: Move AC_LIBOBJ invocations to module description.
7628         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
7629         gl_PREREQ_UNLOCKPT invocations from here...
7630         * modules/unlockpt (configure.ac): ... to here.
7631
7632 2011-05-22  Bruno Haible  <bruno@clisp.org>
7633
7634         unlink: Respect rules for use of AC_LIBOBJ.
7635         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
7636         * modules/unlink (configure.ac): ... to here.
7637
7638 2011-05-22  Bruno Haible  <bruno@clisp.org>
7639
7640         uname: Move AC_LIBOBJ invocations to module description.
7641         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
7642         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
7643         here...
7644         * modules/uname (configure.ac): ... to here.
7645
7646 2011-05-22  Bruno Haible  <bruno@clisp.org>
7647
7648         ttyname_r: Move AC_LIBOBJ invocations to module description.
7649         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
7650         gl_PREREQ_TTYNAME_R invocations from here...
7651         * modules/ttyname_r (configure.ac): ... to here.
7652
7653 2011-05-22  Bruno Haible  <bruno@clisp.org>
7654
7655         tsearch: Move AC_LIBOBJ invocations to module description.
7656         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
7657         invocations from here...
7658         * modules/tsearch (configure.ac): ... to here.
7659
7660 2011-05-22  Bruno Haible  <bruno@clisp.org>
7661
7662         towctrans: Move AC_LIBOBJ invocations to module description.
7663         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
7664         AC_LIBOBJ invocation from here...
7665         * modules/towctrans (configure.ac): ... to here.
7666
7667 2011-05-22  Bruno Haible  <bruno@clisp.org>
7668
7669         tmpfile: Move AC_LIBOBJ invocations to module description.
7670         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
7671         invocations from here...
7672         * modules/tmpfile (configure.ac): ... to here.
7673
7674 2011-05-22  Bruno Haible  <bruno@clisp.org>
7675
7676         times: Move AC_LIBOBJ invocations to module description.
7677         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
7678         * modules/times (configure.ac): ... to here.
7679
7680 2011-05-22  Bruno Haible  <bruno@clisp.org>
7681
7682         time_r: Move AC_LIBOBJ invocations to module description.
7683         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
7684         invocations from here...
7685         * modules/time_r (configure.ac): ... to here.
7686
7687 2011-05-22  Bruno Haible  <bruno@clisp.org>
7688
7689         timegm: Move AC_LIBOBJ invocations to module description.
7690         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
7691         invocations from here...
7692         * modules/timegm (configure.ac): ... to here.
7693
7694 2011-05-22  Bruno Haible  <bruno@clisp.org>
7695
7696         tcgetsid: Move AC_LIBOBJ invocations to module description.
7697         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
7698         and gl_PREREQ_TCGETSID invocations from here...
7699         * modules/tcgetsid (configure.ac): ... to here.
7700         (Depends-on): Update conditions.
7701
7702 2011-05-22  Bruno Haible  <bruno@clisp.org>
7703
7704         symlinkat: Move AC_LIBOBJ invocations to module description.
7705         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
7706         here...
7707         * modules/symlinkat (configure.ac): ... to here.
7708
7709 2011-05-22  Bruno Haible  <bruno@clisp.org>
7710
7711         symlink: Move AC_LIBOBJ invocations to module description.
7712         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
7713         here...
7714         * modules/symlink (configure.ac): ... to here.
7715
7716 2011-05-22  Bruno Haible  <bruno@clisp.org>
7717
7718         strverscmp: Move AC_LIBOBJ invocations to module description.
7719         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
7720         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
7721         from here...
7722         * modules/strverscmp (configure.ac): ... to here.
7723
7724 2011-05-22  Bruno Haible  <bruno@clisp.org>
7725
7726         strtok_r: Move AC_LIBOBJ invocations to module description.
7727         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
7728         and gl_PREREQ_STRTOK_R invocations from here...
7729         * modules/strtok_r (configure.ac): ... to here.
7730         (Depends-on): Update conditions.
7731
7732 2011-05-22  Bruno Haible  <bruno@clisp.org>
7733
7734         strtoumax: Move AC_LIBOBJ invocations to module description.
7735         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
7736         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
7737         from here...
7738         * modules/strtoumax (configure.ac): ... to here.
7739
7740 2011-05-22  Bruno Haible  <bruno@clisp.org>
7741
7742         strtoimax: Move AC_LIBOBJ invocations to module description.
7743         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
7744         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
7745         from here...
7746         * modules/strtoimax (configure.ac): ... to here.
7747
7748 2011-05-22  Bruno Haible  <bruno@clisp.org>
7749
7750         strtoull: Move AC_LIBOBJ invocations to module description.
7751         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
7752         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
7753         from here...
7754         * modules/strtoull (configure.ac): ... to here.
7755
7756 2011-05-22  Bruno Haible  <bruno@clisp.org>
7757
7758         strtoll: Move AC_LIBOBJ invocations to module description.
7759         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
7760         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
7761         here...
7762         * modules/strtoll (configure.ac): ... to here.
7763
7764 2011-05-22  Bruno Haible  <bruno@clisp.org>
7765
7766         strtoul: Move AC_LIBOBJ invocations to module description.
7767         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
7768         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
7769         * modules/strtoul (configure.ac): ... to here.
7770
7771 2011-05-22  Bruno Haible  <bruno@clisp.org>
7772
7773         strtol: Move AC_LIBOBJ invocations to module description.
7774         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
7775         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
7776         * modules/strtol (configure.ac): ... to here.
7777
7778 2011-05-22  Bruno Haible  <bruno@clisp.org>
7779
7780         strtod: Move AC_LIBOBJ invocations to module description.
7781         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
7782         invocations from here...
7783         * modules/strtod (configure.ac): ... to here.
7784
7785 2011-05-22  Bruno Haible  <bruno@clisp.org>
7786
7787         strstr*: Move AC_LIBOBJ invocations to module description.
7788         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
7789         invocations from here...
7790         * modules/strstr-simple (configure.ac): ... to here.
7791         * modules/strstr (configure.ac): ... and here.
7792
7793 2011-05-22  Bruno Haible  <bruno@clisp.org>
7794
7795         strsignal: Move AC_LIBOBJ invocations to module description.
7796         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
7797         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
7798         * modules/strsignal (configure.ac): ... to here.
7799         (Depends-on): Update conditions.
7800
7801 2011-05-22  Bruno Haible  <bruno@clisp.org>
7802
7803         strsep: Move AC_LIBOBJ invocations to module description.
7804         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
7805         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
7806         here...
7807         * modules/strsep (configure.ac): ... to here.
7808
7809 2011-05-22  Bruno Haible  <bruno@clisp.org>
7810
7811         strptime: Move AC_LIBOBJ invocations to module description.
7812         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
7813         gl_PREREQ_STRPTIME invocations from here...
7814         * modules/strptime (configure.ac): ... to here.
7815
7816 2011-05-22  Bruno Haible  <bruno@clisp.org>
7817
7818         strpbrk: Move AC_LIBOBJ invocations to module description.
7819         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
7820         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
7821         here...
7822         * modules/strpbrk (configure.ac): ... to here.
7823
7824 2011-05-22  Bruno Haible  <bruno@clisp.org>
7825
7826         strnlen: Move AC_LIBOBJ invocations to module description.
7827         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
7828         invocations from here...
7829         * modules/strnlen (configure.ac): ... to here.
7830
7831 2011-05-22  Bruno Haible  <bruno@clisp.org>
7832
7833         strndup: Move AC_LIBOBJ invocations to module description.
7834         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
7835         invocations from here...
7836         * modules/strndup (configure.ac): ... to here.
7837         (Depends-on): Update conditions.
7838
7839 2011-05-22  Bruno Haible  <bruno@clisp.org>
7840
7841         strncat: Move AC_LIBOBJ invocations to module description.
7842         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
7843         invocations from here...
7844         * modules/strncat (configure.ac): ... to here.
7845
7846 2011-05-22  Bruno Haible  <bruno@clisp.org>
7847
7848         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
7849         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
7850         invocations from here...
7851         * modules/strdup (configure.ac): ... to here.
7852         * modules/strdup-posix (configure.ac): ... and here.
7853
7854 2011-05-22  Bruno Haible  <bruno@clisp.org>
7855
7856         strcspn: Move AC_LIBOBJ invocations to module description.
7857         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
7858         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
7859         here...
7860         * modules/strcspn (configure.ac): ... to here.
7861
7862 2011-05-22  Bruno Haible  <bruno@clisp.org>
7863
7864         strchrnul: Move AC_LIBOBJ invocations to module description.
7865         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
7866         gl_PREREQ_STRCHRNUL invocations from here...
7867         * modules/strchrnul (configure.ac): ... to here.
7868
7869 2011-05-22  Bruno Haible  <bruno@clisp.org>
7870
7871         strcasestr*: Move AC_LIBOBJ invocations to module description.
7872         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
7873         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
7874         * modules/strcasestr-simple (configure.ac): ... to here.
7875         * modules/strcasestr (configure.ac): ... and here.
7876
7877 2011-05-22  Bruno Haible  <bruno@clisp.org>
7878
7879         strcase: Move AC_LIBOBJ invocations to module description.
7880         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
7881         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
7882         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
7883         gl_PREREQ_STRNCASECMP invocations from here...
7884         * modules/strcase (configure.ac): ... to here.
7885
7886 2011-05-22  Bruno Haible  <bruno@clisp.org>
7887
7888         stpncpy: Move AC_LIBOBJ invocations to module description.
7889         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
7890         here...
7891         * modules/stpncpy (configure.ac): ... to here.
7892
7893 2011-05-22  Bruno Haible  <bruno@clisp.org>
7894
7895         stpcpy: Move AC_LIBOBJ invocations to module description.
7896         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
7897         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
7898         here...
7899         * modules/stpcpy (configure.ac): ... to here.
7900
7901 2011-05-21  Bruno Haible  <bruno@clisp.org>
7902
7903         stat: Move AC_LIBOBJ invocations to module description.
7904         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
7905         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
7906         here...
7907         * modules/stat (configure.ac): ... to here.
7908
7909 2011-05-21  Bruno Haible  <bruno@clisp.org>
7910
7911         sleep: Move AC_LIBOBJ invocations to module description.
7912         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
7913         * modules/sleep (configure.ac): ... to here.
7914
7915 2011-05-21  Bruno Haible  <bruno@clisp.org>
7916
7917         signbit: Move AC_LIBOBJ invocations to module description.
7918         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
7919         * modules/signbit (configure.ac): ... to here.
7920
7921 2011-05-21  Bruno Haible  <bruno@clisp.org>
7922
7923         sigprocmask: Move AC_LIBOBJ invocations to module description.
7924         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
7925         gl_PREREQ_SIGPROMASK invocations from here...
7926         * modules/sigprocmask (configure.ac): ... to here.
7927
7928 2011-05-21  Bruno Haible  <bruno@clisp.org>
7929
7930         sigaction: Move AC_LIBOBJ invocations to module description.
7931         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
7932         gl_PREREQ_SIGACTION invocations from here...
7933         * modules/sigaction (configure.ac): ... to here.
7934
7935 2011-05-21  Bruno Haible  <bruno@clisp.org>
7936
7937         sig2str: Move AC_LIBOBJ invocations to module description.
7938         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
7939         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
7940         here...
7941         * modules/sig2str (configure.ac): ... to here.
7942
7943 2011-05-21  Bruno Haible  <bruno@clisp.org>
7944
7945         setlocale: Move AC_LIBOBJ invocations to module description.
7946         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
7947         gl_PREREQ_SETLOCALE invocations from here...
7948         * modules/setlocale (configure.ac): ... to here.
7949
7950 2011-05-21  Bruno Haible  <bruno@clisp.org>
7951
7952         unsetenv: Move AC_LIBOBJ invocations to module description.
7953         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
7954         and gl_PREREQ_UNSETENV invocations from here...
7955         * modules/unsetenv (configure.ac): ... to here.
7956         (Depends-on): Update.
7957
7958 2011-05-21  Bruno Haible  <bruno@clisp.org>
7959
7960         setenv: Move AC_LIBOBJ invocations to module description.
7961         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
7962         here...
7963         * modules/setenv (configure.ac): ... to here.
7964
7965 2011-05-21  Bruno Haible  <bruno@clisp.org>
7966
7967         selinux-h: Move AC_LIBOBJ invocations to module description.
7968         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
7969         AC_LIBOBJ invocation from here...
7970         * modules/selinux-h (configure.ac): ... to here.
7971
7972 2011-05-21  Bruno Haible  <bruno@clisp.org>
7973
7974         select: Respect rules for use of AC_LIBOBJ.
7975         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
7976         here...
7977         * modules/select (configure.ac): ... to here.
7978
7979 2011-05-21  Bruno Haible  <bruno@clisp.org>
7980
7981         scandir: Move AC_LIBOBJ invocations to module description.
7982         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
7983         invocations from here...
7984         * modules/scandir (configure.ac): ... to here.
7985
7986 2011-05-21  Bruno Haible  <bruno@clisp.org>
7987
7988         rpmatch: Move AC_LIBOBJ invocations to module description.
7989         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
7990         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
7991         here...
7992         * modules/rpmatch (configure.ac): ... to here.
7993
7994 2011-05-21  Bruno Haible  <bruno@clisp.org>
7995
7996         rmdir: Respect rules for use of AC_LIBOBJ.
7997         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
7998         * modules/rmdir (configure.ac): ... to here.
7999
8000 2011-05-21  Bruno Haible  <bruno@clisp.org>
8001
8002         renameat: Move AC_LIBOBJ invocations to module description.
8003         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
8004         here...
8005         * modules/renameat (configure.ac): ... to here.
8006
8007 2011-05-21  Bruno Haible  <bruno@clisp.org>
8008
8009         rename: Respect rules for use of AC_LIBOBJ.
8010         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
8011         here...
8012         * modules/rename (configure.ac): ... to here.
8013
8014 2011-05-21  Bruno Haible  <bruno@clisp.org>
8015
8016         remove: Move AC_LIBOBJ invocations to module description.
8017         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
8018         here...
8019         * modules/remove (configure.ac): ... to here.
8020
8021 2011-05-21  Bruno Haible  <bruno@clisp.org>
8022
8023         relocatable-lib: Move AC_LIBOBJ invocations to module description.
8024         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
8025         macro.
8026         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
8027         * modules/relocatable-lib (configure.ac): ... to here.
8028         * modules/relocatable-prog-wrapper (configure.ac): Invoke
8029         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
8030
8031 2011-05-21  Bruno Haible  <bruno@clisp.org>
8032
8033         relocatable-prog: Move AC_LIBOBJ invocations to module description.
8034         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
8035         here...
8036         * modules/relocatable-prog (configure.ac): ... to here.
8037
8038 2011-05-21  Bruno Haible  <bruno@clisp.org>
8039
8040         regex: Move AC_LIBOBJ invocations to module description.
8041         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
8042         invocations from here...
8043         * modules/regex (configure.ac): ... to here.
8044
8045 2011-05-21  Bruno Haible  <bruno@clisp.org>
8046
8047         realloc-*: Move AC_LIBOBJ invocations to module description.
8048         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
8049         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
8050         AC_LIBOBJ invocations from here...
8051         * modules/realloc-gnu (configure.ac): ... to here.
8052         * modules/realloc-posix (configure.ac): ... and here.
8053
8054 2011-05-21  Bruno Haible  <bruno@clisp.org>
8055
8056         readutmp: Move AC_LIBOBJ invocations to module description.
8057         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
8058         * modules/readutmp (configure.ac): ... to here.
8059
8060 2011-05-21  Bruno Haible  <bruno@clisp.org>
8061
8062         readlinkat: Move AC_LIBOBJ invocations to module description.
8063         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
8064         here...
8065         * modules/readlinkat (configure.ac): ... to here.
8066
8067 2011-05-21  Bruno Haible  <bruno@clisp.org>
8068
8069         readlink: Move AC_LIBOBJ invocations to module description.
8070         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
8071         gl_PREREQ_READLINK invocations from here...
8072         * modules/readlink (configure.ac): ... to here.
8073
8074 2011-05-21  Bruno Haible  <bruno@clisp.org>
8075
8076         readline: Move AC_LIBOBJ invocations to module description.
8077         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
8078         gl_PREREQ_READLINE invocations from here...
8079         * modules/readline (configure.ac): ... to here.
8080
8081 2011-05-21  Bruno Haible  <bruno@clisp.org>
8082
8083         read: Move AC_LIBOBJ invocations to module description.
8084         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
8085         * modules/read (configure.ac): ... to here.
8086
8087 2011-05-21  Bruno Haible  <bruno@clisp.org>
8088
8089         rawmemchr: Move AC_LIBOBJ invocations to module description.
8090         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
8091         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
8092         from here...
8093         * modules/rawmemchr (configure.ac): ... to here.
8094
8095 2011-05-21  Bruno Haible  <bruno@clisp.org>
8096
8097         random_r: Move AC_LIBOBJ invocations to module description.
8098         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
8099         gl_PREREQ_RANDOM_R invocations from here...
8100         * modules/random_r (configure.ac): ... to here.
8101
8102 2011-05-21  Bruno Haible  <bruno@clisp.org>
8103
8104         pwrite: Move AC_LIBOBJ invocations to module description.
8105         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
8106         * modules/pwrite (configure.ac): ... to here.
8107
8108 2011-05-21  Bruno Haible  <bruno@clisp.org>
8109
8110         putenv: Move AC_LIBOBJ invocations to module description.
8111         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
8112         * modules/putenv (configure.ac): ... to here.
8113
8114 2011-05-21  Bruno Haible  <bruno@clisp.org>
8115
8116         login_tty: Move AC_LIBOBJ invocations to module description.
8117         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
8118         * modules/login_tty (configure.ac): ... to here.
8119
8120 2011-05-21  Bruno Haible  <bruno@clisp.org>
8121
8122         openpty: Move AC_LIBOBJ invocations to module description.
8123         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
8124         * modules/openpty (configure.ac): ... to here.
8125
8126 2011-05-21  Bruno Haible  <bruno@clisp.org>
8127
8128         forkpty: Move AC_LIBOBJ invocations to module description.
8129         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
8130         * modules/forkpty (configure.ac): ... to here.
8131
8132 2011-05-21  Bruno Haible  <bruno@clisp.org>
8133
8134         ptsname: Move AC_LIBOBJ invocations to module description.
8135         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
8136         invocations from here...
8137         * modules/ptsname (configure.ac): ... to here.
8138
8139 2011-05-21  Bruno Haible  <bruno@clisp.org>
8140
8141         pread: Move AC_LIBOBJ invocations to module description.
8142         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
8143         * modules/pread (configure.ac): ... to here.
8144
8145 2011-05-21  Bruno Haible  <bruno@clisp.org>
8146
8147         posix_spawn*: Move AC_LIBOBJ invocations to module description.
8148         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
8149         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
8150         * modules/posix_spawn (configure.ac): ... to here.
8151         * modules/posix_spawnp (configure.ac): ... and here.
8152
8153 2011-05-21  Bruno Haible  <bruno@clisp.org>
8154
8155         popen: Move AC_LIBOBJ invocations to module description.
8156         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
8157         invocations from here...
8158         * modules/popen (configure.ac): ... to here.
8159
8160 2011-05-21  Bruno Haible  <bruno@clisp.org>
8161
8162         poll: Move AC_LIBOBJ invocations to module description.
8163         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
8164         invocations from here...
8165         * modules/poll (configure.ac): ... to here.
8166
8167 2011-05-21  Bruno Haible  <bruno@clisp.org>
8168
8169         pipe-posix: Move AC_LIBOBJ invocations to module description.
8170         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
8171         * modules/pipe-posix (configure.ac): ... to here.
8172
8173 2011-05-21  Bruno Haible  <bruno@clisp.org>
8174
8175         openat: Respect rules for use of AC_LIBOBJ.
8176         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
8177         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
8178         * modules/openat (configure.ac): ... to here.
8179
8180 2011-05-21  Bruno Haible  <bruno@clisp.org>
8181
8182         obstack-printf*: Move AC_LIBOBJ invocations to module description.
8183         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
8184         invocation from here...
8185         * modules/obstack-printf (configure.ac): ... to here.
8186         * modules/obstack-printf-posix (configure.ac): ... and here.
8187
8188 2011-05-21  Bruno Haible  <bruno@clisp.org>
8189
8190         nl_langinfo: Move AC_LIBOBJ invocations to module description.
8191         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
8192         from here...
8193         * modules/nl_langinfo (configure.ac): ... to here.
8194
8195 2011-05-21  Bruno Haible  <bruno@clisp.org>
8196
8197         nanosleep: Move AC_LIBOBJ invocations to module description.
8198         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
8199         gl_PREREQ_NANOSLEEP invocations from here...
8200         * modules/nanosleep (configure.ac): ... to here.
8201
8202 2011-05-21  Bruno Haible  <bruno@clisp.org>
8203
8204         mountlist: Move AC_LIBOBJ invocations to module description.
8205         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
8206         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
8207         * modules/mountlist (configure.ac): ... to here.
8208
8209 2011-05-21  Bruno Haible  <bruno@clisp.org>
8210
8211         mktime: Respect rules for use of AC_LIBOBJ.
8212         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
8213         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
8214         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
8215         (gl_FUNC_MKTIME_INTERNAL): ... and here...
8216         * modules/mktime (configure.ac): ... to here.
8217         * modules/mktime-internal (configure.ac): ... and here.
8218         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
8219
8220 2011-05-21  Bruno Haible  <bruno@clisp.org>
8221
8222         mkstemps: Move AC_LIBOBJ invocations to module description.
8223         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
8224         here...
8225         * modules/mkstemps (configure.ac): ... to here.
8226
8227 2011-05-21  Bruno Haible  <bruno@clisp.org>
8228
8229         mkstemp: Move AC_LIBOBJ invocations to module description.
8230         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
8231         gl_PREREQ_MKSTEMP invocations from here...
8232         * modules/mkstemp (configure.ac): ... to here.
8233
8234 2011-05-21  Bruno Haible  <bruno@clisp.org>
8235
8236         mkostemps: Move AC_LIBOBJ invocations to module description.
8237         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
8238         here...
8239         * modules/mkostemps (configure.ac): ... to here.
8240
8241 2011-05-21  Bruno Haible  <bruno@clisp.org>
8242
8243         mkostemp: Move AC_LIBOBJ invocations to module description.
8244         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
8245         gl_PREREQ_MKOSTEMP invocations from here...
8246         * modules/mkostemp (configure.ac): ... to here.
8247
8248 2011-05-21  Bruno Haible  <bruno@clisp.org>
8249
8250         mknod: Move AC_LIBOBJ invocations to module description.
8251         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
8252         * modules/mknod (configure.ac): ... to here.
8253
8254 2011-05-21  Bruno Haible  <bruno@clisp.org>
8255
8256         mkfifoat: Move AC_LIBOBJ invocations to module description.
8257         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
8258         here...
8259         * modules/mkfifoat (configure.ac): ... to here.
8260
8261 2011-05-21  Bruno Haible  <bruno@clisp.org>
8262
8263         mkfifo: Respect rules for use of AC_LIBOBJ.
8264         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
8265         here...
8266         * modules/mkfifo (configure.ac): ... to here.
8267
8268 2011-05-21  Bruno Haible  <bruno@clisp.org>
8269
8270         mkdtemp: Move AC_LIBOBJ invocations to module description.
8271         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
8272         invocations from here...
8273         * modules/mkdtemp (configure.ac): ... to here.
8274
8275 2011-05-21  Bruno Haible  <bruno@clisp.org>
8276
8277         mkdir: Move AC_LIBOBJ invocations to module description.
8278         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
8279         * modules/mkdir (configure.ac): ... to here.
8280
8281 2011-05-21  Bruno Haible  <bruno@clisp.org>
8282
8283         memset: Move AC_LIBOBJ invocations to module description.
8284         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
8285         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
8286         here...
8287         * modules/memset (configure.ac): ... to here.
8288
8289 2011-05-21  Bruno Haible  <bruno@clisp.org>
8290
8291         memrchr: Move AC_LIBOBJ invocations to module description.
8292         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
8293         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
8294         here...
8295         * modules/memrchr (configure.ac): ... to here.
8296
8297 2011-05-21  Bruno Haible  <bruno@clisp.org>
8298
8299         mempcpy: Move AC_LIBOBJ invocations to module description.
8300         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
8301         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
8302         here...
8303         * modules/mempcpy (configure.ac): ... to here.
8304
8305 2011-05-21  Bruno Haible  <bruno@clisp.org>
8306
8307         memmove: Move AC_LIBOBJ invocations to module description.
8308         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
8309         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
8310         here...
8311         * modules/memmove (configure.ac): ... to here.
8312
8313 2011-05-21  Bruno Haible  <bruno@clisp.org>
8314
8315         memmem*: Move AC_LIBOBJ invocations to module description.
8316         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
8317         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
8318         here...
8319         (gl_FUNC_MEMMEM): ... and here...
8320         * modules/memmem-simple (configure.ac): ... to here.
8321         * modules/memmem (configure.ac): ... and here.
8322
8323 2011-05-21  Bruno Haible  <bruno@clisp.org>
8324
8325         memcpy: Move AC_LIBOBJ invocations to module description.
8326         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
8327         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
8328         here...
8329         * modules/memcpy (configure.ac): ... to here.
8330
8331 2011-05-21  Bruno Haible  <bruno@clisp.org>
8332
8333         memcmp: Simplify autoconf macro.
8334         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
8335         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
8336         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
8337
8338 2011-05-21  Bruno Haible  <bruno@clisp.org>
8339
8340         memcmp: Move AC_LIBOBJ invocations to module description.
8341         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
8342         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
8343         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
8344         * modules/memcmp (configure.ac): ... to here.
8345         (Depends-on): Update conditions.
8346
8347 2011-05-21  Bruno Haible  <bruno@clisp.org>
8348
8349         memchr: Respect rules for use of AC_LIBOBJ.
8350         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
8351         invocations from here...
8352         * modules/memchr (configure.ac): ... to here.
8353
8354 2011-05-21  Bruno Haible  <bruno@clisp.org>
8355
8356         mbtowc: Move AC_LIBOBJ invocations to module description.
8357         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
8358         invocations from here...
8359         * modules/mbtowc (configure.ac): ... to here.
8360
8361 2011-05-21  Bruno Haible  <bruno@clisp.org>
8362
8363         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
8364         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
8365         gl_PREREQ_MBSRTOWCS invocations from here...
8366         * modules/mbsrtowcs (configure.ac): ... to here.
8367
8368 2011-05-21  Bruno Haible  <bruno@clisp.org>
8369
8370         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
8371         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
8372         gl_PREREQ_MBSNRTOWCS invocations from here...
8373         * modules/mbsnrtowcs (configure.ac): ... to here.
8374
8375 2011-05-21  Bruno Haible  <bruno@clisp.org>
8376
8377         mbsinit: Move AC_LIBOBJ invocations to module description.
8378         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
8379         invocations from here...
8380         * modules/mbsinit (configure.ac): ... to here.
8381
8382 2011-05-21  Bruno Haible  <bruno@clisp.org>
8383
8384         mbrlen: Move AC_LIBOBJ invocations to module description.
8385         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
8386         invocations from here...
8387         * modules/mbrlen (configure.ac): ... to here.
8388
8389 2011-05-21  Bruno Haible  <bruno@clisp.org>
8390
8391         mbrtowc: Respect rules for use of AC_LIBOBJ.
8392         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
8393         invocations from here...
8394         * modules/mbrtowc (configure.ac): ... to here.
8395
8396 2011-05-21  Bruno Haible  <bruno@clisp.org>
8397
8398         malloc-*: Move AC_LIBOBJ invocations to module description.
8399         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
8400         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
8401         AC_LIBOBJ invocations from here...
8402         * modules/malloc-gnu (configure.ac): ... to here.
8403         * modules/malloc-posix (configure.ac): ... and here.
8404
8405 2011-05-21  Bruno Haible  <bruno@clisp.org>
8406
8407         lstat, openat: Respect rules for use of AC_LIBOBJ.
8408         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
8409         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
8410         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
8411         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
8412         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
8413         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
8414         here.
8415         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
8416
8417 2011-05-21  Bruno Haible  <bruno@clisp.org>
8418
8419         lseek: Move AC_LIBOBJ invocations to module description.
8420         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
8421         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
8422         * modules/lseek (configure.ac): ... to here.
8423
8424 2011-05-21  Bruno Haible  <bruno@clisp.org>
8425
8426         linkat: Move AC_LIBOBJ invocations to module description.
8427         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
8428         here...
8429         * modules/linkat (configure.ac): ... to here.
8430
8431 2011-05-21  Bruno Haible  <bruno@clisp.org>
8432
8433         link: Respect rules for use of AC_LIBOBJ.
8434         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
8435         * modules/link (configure.ac): ... to here.
8436
8437 2011-05-21  Bruno Haible  <bruno@clisp.org>
8438
8439         lchown: Move AC_LIBOBJ invocations to module description.
8440         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
8441         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
8442         * modules/lchown (configure.ac): ... to here.
8443
8444 2011-05-21  Bruno Haible  <bruno@clisp.org>
8445
8446         iswctype: Move AC_LIBOBJ invocations to module description.
8447         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
8448         here...
8449         * modules/iswctype (configure.ac): ... to here.
8450
8451 2011-05-21  Bruno Haible  <bruno@clisp.org>
8452
8453         iswblank: Move AC_LIBOBJ invocations to module description.
8454         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
8455         here...
8456         * modules/iswblank (configure.ac): ... to here.
8457
8458 2011-05-21  Bruno Haible  <bruno@clisp.org>
8459
8460         atanl: Move AC_LIBOBJ invocations to module description.
8461         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
8462         * modules/atanl (configure.ac): ... to here.
8463
8464 2011-05-21  Bruno Haible  <bruno@clisp.org>
8465
8466         acosl: Move AC_LIBOBJ invocations to module description.
8467         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
8468         * modules/acosl (configure.ac): ... to here.
8469
8470 2011-05-21  Bruno Haible  <bruno@clisp.org>
8471
8472         asinl: Respect rules for use of AC_LIBOBJ.
8473         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
8474         * modules/asinl (configure.ac): ... to here.
8475
8476 2011-05-21  Bruno Haible  <bruno@clisp.org>
8477
8478         tanl: Move AC_LIBOBJ invocations to module description.
8479         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
8480         * modules/tanl (configure.ac): ... to here.
8481
8482 2011-05-21  Bruno Haible  <bruno@clisp.org>
8483
8484         cosl: Move AC_LIBOBJ invocations to module description.
8485         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
8486         * modules/cosl (configure.ac): ... to here.
8487
8488 2011-05-21  Bruno Haible  <bruno@clisp.org>
8489
8490         sinl: Move AC_LIBOBJ invocations to module description.
8491         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
8492         * modules/sinl (configure.ac): ... to here.
8493
8494 2011-05-21  Bruno Haible  <bruno@clisp.org>
8495
8496         logl: Move AC_LIBOBJ invocations to module description.
8497         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
8498         * modules/logl (configure.ac): ... to here.
8499
8500 2011-05-21  Bruno Haible  <bruno@clisp.org>
8501
8502         expl: Move AC_LIBOBJ invocations to module description.
8503         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
8504         * modules/expl (configure.ac): ... to here.
8505
8506 2011-05-21  Bruno Haible  <bruno@clisp.org>
8507
8508         roundl: Move AC_LIBOBJ invocations to module description.
8509         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
8510         * modules/roundl (configure.ac): ... to here.
8511
8512 2011-05-21  Bruno Haible  <bruno@clisp.org>
8513
8514         round: Move AC_LIBOBJ invocations to module description.
8515         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
8516         * modules/round (configure.ac): ... to here.
8517
8518 2011-05-21  Bruno Haible  <bruno@clisp.org>
8519
8520         roundf: Move AC_LIBOBJ invocations to module description.
8521         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
8522         * modules/roundf (configure.ac): ... to here.
8523
8524 2011-05-21  Bruno Haible  <bruno@clisp.org>
8525
8526         truncl: Move AC_LIBOBJ invocations to module description.
8527         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
8528         * modules/truncl (configure.ac): ... to here.
8529
8530 2011-05-21  Bruno Haible  <bruno@clisp.org>
8531
8532         trunc: Move AC_LIBOBJ invocations to module description.
8533         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
8534         * modules/trunc (configure.ac): ... to here.
8535
8536 2011-05-21  Bruno Haible  <bruno@clisp.org>
8537
8538         truncf: Move AC_LIBOBJ invocations to module description.
8539         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
8540         * modules/truncf (configure.ac): ... to here.
8541
8542 2011-05-21  Bruno Haible  <bruno@clisp.org>
8543
8544         ceill: Move AC_LIBOBJ invocations to module description.
8545         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
8546         * modules/ceill (configure.ac): ... to here.
8547
8548 2011-05-21  Bruno Haible  <bruno@clisp.org>
8549
8550         ceil: Move AC_LIBOBJ invocations to module description.
8551         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
8552         * modules/ceil (configure.ac): ... to here.
8553
8554 2011-05-21  Bruno Haible  <bruno@clisp.org>
8555
8556         ceilf: Move AC_LIBOBJ invocations to module description.
8557         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
8558         * modules/ceilf (configure.ac): ... to here.
8559
8560 2011-05-21  Bruno Haible  <bruno@clisp.org>
8561
8562         floorl: Respect rules for use of AC_LIBOBJ.
8563         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
8564         * modules/floorl (configure.ac): ... to here.
8565
8566 2011-05-21  Bruno Haible  <bruno@clisp.org>
8567
8568         floor: Respect rules for use of AC_LIBOBJ.
8569         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
8570         * modules/floor (configure.ac): ... to here.
8571
8572 2011-05-21  Bruno Haible  <bruno@clisp.org>
8573
8574         floorf: Move AC_LIBOBJ invocations to module description.
8575         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
8576         * modules/floorf (configure.ac): ... to here.
8577
8578 2011-05-20  Bruno Haible  <bruno@clisp.org>
8579
8580         sqrtl: Respect rules for use of AC_LIBOBJ.
8581         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
8582         * modules/sqrtl (configure.ac): ... to here.
8583
8584 2011-05-20  Bruno Haible  <bruno@clisp.org>
8585
8586         ldexpl: Respect rules for use of AC_LIBOBJ.
8587         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
8588         * modules/ldexpl (configure.ac): ... to here.
8589
8590 2011-05-20  Bruno Haible  <bruno@clisp.org>
8591
8592         frexpl*: Respect rules for use of AC_LIBOBJ.
8593         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
8594         invocation from here...
8595         * modules/frexpl (configure.ac): ... to here.
8596         * modules/frexpl-nolibm (configure.ac): ... and here.
8597
8598 2011-05-20  Bruno Haible  <bruno@clisp.org>
8599
8600         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
8601         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
8602         invocation from here...
8603         * modules/frexp (configure.ac): ... to here.
8604         * modules/frexp-nolibm (configure.ac): ... and here.
8605
8606 2011-05-20  Bruno Haible  <bruno@clisp.org>
8607
8608         isnan: Respect rules for use of AC_LIBOBJ.
8609         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
8610         invocations here.
8611         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
8612         REPLACE_ISNAN.
8613         * modules/isnand (configure.ac): Likewise.
8614         * modules/isnanl (configure.ac): Likewise.
8615
8616 2011-05-20  Bruno Haible  <bruno@clisp.org>
8617
8618         isnanl*: Respect rules for use of AC_LIBOBJ.
8619         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
8620         invocation from here...
8621         * modules/isnanl (configure.ac): ... to here.
8622         * modules/isnanl-nolibm (configure.ac): ... and here.
8623
8624 2011-05-20  Bruno Haible  <bruno@clisp.org>
8625
8626         isnand*: Move AC_LIBOBJ invocations to module description.
8627         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
8628         invocation from here...
8629         * modules/isnand (configure.ac): ... to here.
8630         * modules/isnand-nolibm (configure.ac): ... and here.
8631
8632 2011-05-20  Bruno Haible  <bruno@clisp.org>
8633
8634         isnanf*: Move AC_LIBOBJ invocations to module description.
8635         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
8636         invocation from here...
8637         * modules/isnanf (configure.ac): ... to here.
8638         * modules/isnanf-nolibm (configure.ac): ... and here.
8639
8640 2011-05-20  Bruno Haible  <bruno@clisp.org>
8641
8642         isnan*: Separate the AC_LIBOBJ invocations.
8643         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
8644         AC_LIBOBJ invocation.
8645         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
8646         here.
8647         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
8648         AC_LIBOBJ invocation.
8649         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
8650         here.
8651         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
8652         AC_LIBOBJ invocation.
8653         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
8654         here.
8655         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
8656
8657 2011-05-08  Bruno Haible  <bruno@clisp.org>
8658
8659         isinf: Move AC_LIBOBJ invocations to module description.
8660         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
8661         * modules/isinf (configure.ac): ... to here.
8662
8663 2011-05-08  Bruno Haible  <bruno@clisp.org>
8664
8665         isfinite: Move AC_LIBOBJ invocations to module description.
8666         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
8667         * modules/isfinite (configure.ac): ... to here.
8668
8669 2011-05-08  Bruno Haible  <bruno@clisp.org>
8670
8671         isblank: Move AC_LIBOBJ invocations to module description.
8672         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
8673         here...
8674         * modules/isblank (configure.ac): ... to here.
8675
8676 2011-05-08  Bruno Haible  <bruno@clisp.org>
8677
8678         isapipe: Move AC_LIBOBJ invocations to module description.
8679         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
8680         gl_PREREQ_ISAPIPE invocations from here...
8681         * modules/isapipe (configure.ac): ... to here.
8682         (Depends-on): Update condition.
8683
8684 2011-05-08  Bruno Haible  <bruno@clisp.org>
8685
8686         ioctl: Move AC_LIBOBJ invocations to module description.
8687         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
8688         invocations from here...
8689         * modules/ioctl (configure.ac): ... to here.
8690         (Depends-on): Update condition.
8691
8692 2011-05-08  Bruno Haible  <bruno@clisp.org>
8693
8694         imaxdiv: Move AC_LIBOBJ invocations to module description.
8695         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
8696         invocations from here...
8697         * modules/imaxdiv (configure.ac): ... to here.
8698
8699 2011-05-08  Bruno Haible  <bruno@clisp.org>
8700
8701         imaxabs: Move AC_LIBOBJ invocations to module description.
8702         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
8703         invocations from here...
8704         * modules/imaxabs (configure.ac): ... to here.
8705
8706 2011-05-08  Bruno Haible  <bruno@clisp.org>
8707
8708         getaddrinfo: Move AC_LIBOBJ invocations to module description.
8709         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
8710         AC_LIBOBJ invocations from here...
8711         * modules/getaddrinfo (configure.ac): ... to here.
8712         (Depends-on): Add conditions.
8713
8714 2011-05-08  Bruno Haible  <bruno@clisp.org>
8715
8716         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
8717         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
8718         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
8719         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
8720         (gl_PREREQ_INET_PTON): ... from here.
8721         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
8722         gl_PREREQ_INET_PTON here.
8723         (Depends-on): Update condition.
8724
8725 2011-05-08  Bruno Haible  <bruno@clisp.org>
8726
8727         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
8728         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
8729         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
8730         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
8731         (gl_PREREQ_INET_NTOP): ... from here.
8732         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
8733         gl_PREREQ_INET_NTOP here.
8734         (Depends-on): Update condition.
8735
8736 2011-05-08  Bruno Haible  <bruno@clisp.org>
8737
8738         iconv_open: Move AC_LIBOBJ invocations to module description.
8739         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
8740         AC_LIBOBJ invocations from here...
8741         * modules/iconv_open (configure.ac): ... to here.
8742
8743 2011-05-08  Bruno Haible  <bruno@clisp.org>
8744
8745         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
8746         If module 'iconv_open' is among the main modules and module
8747         'iconv_open-utf' is among the tests dependencies, then
8748         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
8749         return the special iconv_t values. Therefore iconv() and iconv_close()
8750         must support these special iconv_t values, already in lib, not only in
8751         tests.
8752         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
8753         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
8754         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
8755         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
8756         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
8757         (Depends-on): Add the dependencies of iconv_open-utf.
8758         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
8759         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
8760         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
8761
8762 2011-05-08  Bruno Haible  <bruno@clisp.org>
8763
8764         group-member: Move AC_LIBOBJ invocations to module description.
8765         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
8766         gl_PREREQ_GROUP_MEMBER invocations from here...
8767         * modules/group-member (configure.ac): ... to here.
8768
8769 2011-05-08  Bruno Haible  <bruno@clisp.org>
8770
8771         grantpt: Move AC_LIBOBJ invocations to module description.
8772         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
8773         invocations from here...
8774         * modules/grantpt (configure.ac): ... to here.
8775
8776 2011-05-08  Bruno Haible  <bruno@clisp.org>
8777
8778         glob: Move AC_LIBOBJ invocations to module description.
8779         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
8780         from here...
8781         * modules/glob (configure.ac): ... to here.
8782
8783 2011-05-08  Bruno Haible  <bruno@clisp.org>
8784
8785         getusershell: Move AC_LIBOBJ invocations to module description.
8786         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
8787         Move AC_LIBOBJ invocation from here...
8788         * modules/getusershell (configure.ac): ... to here.
8789         (Depends-on): Update condition.
8790
8791 2011-05-08  Bruno Haible  <bruno@clisp.org>
8792
8793         gettimeofday: Move AC_LIBOBJ invocations to module description.
8794         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
8795         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
8796         gl_PREREQ_GETTIMEOFDAY invocations from here...
8797         * modules/gettimeofday (configure.ac): ... to here.
8798
8799 2011-05-08  Bruno Haible  <bruno@clisp.org>
8800
8801         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
8802         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
8803         just gl_FUNC_TZSET.
8804         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
8805         (gl_FUNC_TZSET_CLOBBER): Remove actions.
8806         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
8807         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
8808
8809 2011-05-08  Bruno Haible  <bruno@clisp.org>
8810
8811         getsubopt: Move AC_LIBOBJ invocations to module description.
8812         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
8813         gl_PREREQ_GETSUBOPT invocations from here...
8814         * modules/getsubopt (configure.ac): ... to here.
8815
8816 2011-05-08  Bruno Haible  <bruno@clisp.org>
8817
8818         getpass-gnu: Move AC_LIBOBJ invocations to module description.
8819         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
8820         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
8821         * modules/getpass-gnu (configure.ac): ... to here.
8822
8823 2011-05-08  Bruno Haible  <bruno@clisp.org>
8824
8825         getpass: Move AC_LIBOBJ invocations to module description.
8826         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
8827         gl_PREREQ_GETPASS invocations from here...
8828         * modules/getpass (configure.ac): ... to here.
8829
8830 2011-05-08  Bruno Haible  <bruno@clisp.org>
8831
8832         getpagesize: Move AC_LIBOBJ invocations to module description.
8833         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
8834         from here...
8835         * modules/getpagesize (configure.ac): ... to here.
8836
8837 2011-05-08  Bruno Haible  <bruno@clisp.org>
8838
8839         getopt: Move AC_LIBOBJ invocations to module description.
8840         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
8841         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
8842         invocations from here...
8843         * modules/getopt-gnu (configure.ac): ... to here.
8844         * modules/getopt-posix (configure.ac): ... and here.
8845         (Depends-on): Update condition.
8846
8847 2011-05-08  Bruno Haible  <bruno@clisp.org>
8848
8849         getopt, argp: Respect rules for use of AC_LIBOBJ.
8850         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
8851         (gl_REPLACE_GETOPT_ALWAYS): New macro.
8852         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
8853         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
8854
8855 2011-05-08  Bruno Haible  <bruno@clisp.org>
8856
8857         getlogin_r: Move AC_LIBOBJ invocations to module description.
8858         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
8859         gl_PREREQ_GETLOGIN_R invocations from here...
8860         * modules/getlogin_r (configure.ac): ... to here.
8861
8862 2011-05-08  Bruno Haible  <bruno@clisp.org>
8863
8864         getlogin: Move AC_LIBOBJ invocations to module description.
8865         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
8866         here...
8867         * modules/getlogin (configure.ac): ... to here.
8868
8869 2011-05-08  Bruno Haible  <bruno@clisp.org>
8870
8871         getloadavg: Move AC_LIBOBJ invocations to module description.
8872         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
8873         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
8874         * modules/getloadavg (configure.ac): ... to here.
8875
8876 2011-05-08  Bruno Haible  <bruno@clisp.org>
8877
8878         gethrxtime: Move AC_LIBOBJ invocations to module description.
8879         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
8880         LIB_GETHRXTIME from here...
8881         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
8882         invocations from here...
8883         * modules/gethrxtime (configure.ac): ... to here.
8884
8885 2011-05-08  Bruno Haible  <bruno@clisp.org>
8886
8887         gethostname: Move AC_LIBOBJ invocations to module description.
8888         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
8889         gl_PREREQ_GETHOSTNAME invocations from here...
8890         * modules/gethostname (configure.ac): ... to here.
8891
8892 2011-05-08  Bruno Haible  <bruno@clisp.org>
8893
8894         getgroups: Move AC_LIBOBJ invocations to module description.
8895         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
8896         here...
8897         * modules/getgroups (configure.ac): ... to here.
8898
8899 2011-05-08  Bruno Haible  <bruno@clisp.org>
8900
8901         getdtablesize: Move AC_LIBOBJ invocations to module description.
8902         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
8903         invocation from here...
8904         * modules/getdtablesize (configure.ac): ... to here.
8905
8906 2011-05-08  Bruno Haible  <bruno@clisp.org>
8907
8908         getdomainname: Move AC_LIBOBJ invocations to module description.
8909         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
8910         gl_PREREQ_GETDOMAINNAME invocations from here...
8911         * modules/getdomainname (configure.ac): ... to here.
8912
8913 2011-05-08  Bruno Haible  <bruno@clisp.org>
8914
8915         getline: Move AC_LIBOBJ invocations to module description.
8916         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
8917         invocations from here...
8918         * modules/getline (configure.ac): ... to here.
8919
8920 2011-05-08  Bruno Haible  <bruno@clisp.org>
8921
8922         getline: Simplify.
8923         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
8924         It's already handled through the module dependency.
8925
8926 2011-05-08  Bruno Haible  <bruno@clisp.org>
8927
8928         getdelim: Move AC_LIBOBJ invocations to module description.
8929         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
8930         and gl_PREREQ_GETDELIM invocations from here...
8931         * modules/getdelim (configure.ac): ... to here.
8932         (Depends-on): Fix condition.
8933
8934 2011-05-08  Bruno Haible  <bruno@clisp.org>
8935
8936         getcwd: Move AC_LIBOBJ invocations to module description.
8937         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
8938         invocations from here...
8939         * modules/getcwd (configure.ac): ... to here.
8940
8941 2011-05-08  Bruno Haible  <bruno@clisp.org>
8942
8943         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
8944         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
8945         here...
8946         * modules/getcwd-lgpl (configure.ac): ... to here.
8947
8948 2011-05-07  Bruno Haible  <bruno@clisp.org>
8949
8950         crypto/gc: Move AC_LIBOBJ invocations to module description.
8951         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
8952         * modules/crypto/gc (configure.ac): ... to here.
8953
8954 2011-05-07  Bruno Haible  <bruno@clisp.org>
8955
8956         fwriting: Move AC_LIBOBJ invocations to module description.
8957         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
8958         here...
8959         * modules/fwriting (configure.ac): ... to here.
8960
8961 2011-05-07  Bruno Haible  <bruno@clisp.org>
8962
8963         fwritable: Move AC_LIBOBJ invocations to module description.
8964         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
8965         here...
8966         * modules/fwritable (configure.ac): ... to here.
8967
8968 2011-05-07  Bruno Haible  <bruno@clisp.org>
8969
8970         futimens: Move AC_LIBOBJ invocations to module description.
8971         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
8972         here...
8973         * modules/futimens (configure.ac): ... to here.
8974
8975 2011-05-07  Bruno Haible  <bruno@clisp.org>
8976
8977         ftruncate: Move AC_LIBOBJ invocations to module description.
8978         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
8979         gl_PREREQ_FTRUNCATE invocations from here...
8980         * modules/ftruncate (configure.ac): ... to here.
8981
8982 2011-05-07  Bruno Haible  <bruno@clisp.org>
8983
8984         fsync: Move AC_LIBOBJ invocations to module description.
8985         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
8986         invocations from here...
8987         * modules/fsync (configure.ac): ... to here.
8988
8989 2011-05-07  Bruno Haible  <bruno@clisp.org>
8990
8991         fsusage: Move AC_LIBOBJ invocations to module description.
8992         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
8993         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
8994         * modules/fsusage (configure.ac): ... to here.
8995
8996 2011-05-07  Bruno Haible  <bruno@clisp.org>
8997
8998         freopen: Move AC_LIBOBJ invocations to module description.
8999         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
9000         invocations from here...
9001         * modules/freopen (configure.ac): ... to here.
9002
9003 2011-05-07  Bruno Haible  <bruno@clisp.org>
9004
9005         free: Move AC_LIBOBJ invocations to module description.
9006         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
9007         invocations from here...
9008         * modules/free (configure.ac): ... to here.
9009
9010 2011-05-07  Bruno Haible  <bruno@clisp.org>
9011
9012         freadable: Move AC_LIBOBJ invocations to module description.
9013         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
9014         here...
9015         * modules/freadable (configure.ac): ... to here.
9016
9017 2011-05-07  Bruno Haible  <bruno@clisp.org>
9018
9019         fpurge: Move AC_LIBOBJ invocations to module description.
9020         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
9021         invocations from here...
9022         * modules/fpurge (configure.ac): ... to here.
9023
9024 2011-05-07  Bruno Haible  <bruno@clisp.org>
9025
9026         fpending: Move AC_LIBOBJ invocations to module description.
9027         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
9028         gl_FUNC_FPENDING.
9029         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
9030         invocations from here...
9031         * modules/fpending (configure.ac): ... to here.
9032
9033 2011-05-07  Bruno Haible  <bruno@clisp.org>
9034
9035         fopen: Move AC_LIBOBJ invocations to module description.
9036         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
9037         invocations from here...
9038         * modules/fopen (configure.ac): ... to here.
9039
9040 2011-05-07  Bruno Haible  <bruno@clisp.org>
9041
9042         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
9043         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
9044         gl_FUNC_FNMATCH_POSIX.
9045         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
9046         invocations from here...
9047         * modules/fnmatch (configure.ac): ... to here.
9048         * modules/fnmatch-gnu (configure.ac): ... and here.
9049
9050 2011-05-07  Bruno Haible  <bruno@clisp.org>
9051
9052         flock: Move AC_LIBOBJ invocations to module description.
9053         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
9054         invocations from here...
9055         * modules/flock (configure.ac): ... to here.
9056
9057 2011-05-07  Bruno Haible  <bruno@clisp.org>
9058
9059         fileblocks: Move AC_LIBOBJ invocations to module description.
9060         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
9061         gl_PREREQ_FILEBLOCKS invocations from here...
9062         * modules/fileblocks (configure.ac): ... to here.
9063
9064 2011-05-06  Bruno Haible  <bruno@clisp.org>
9065
9066         fflush: Move AC_LIBOBJ invocations to module description.
9067         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
9068         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
9069         invocations from here...
9070         * modules/fflush (configure.ac): ... to here.
9071
9072 2011-05-06  Bruno Haible  <bruno@clisp.org>
9073
9074         fdopendir: Move AC_LIBOBJ invocations to module description.
9075         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
9076         here...
9077         * modules/fdopendir (configure.ac): ... to here.
9078         (Depends-on): Improve conditions.
9079
9080 2011-05-06  Bruno Haible  <bruno@clisp.org>
9081
9082         _Exit: Move AC_LIBOBJ invocations to module description.
9083         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
9084         invocations from here...
9085         * modules/_Exit (configure.ac): ... to here.
9086
9087 2011-05-21  Bruno Haible  <bruno@clisp.org>
9088
9089         euidaccess: Respect rules for use of AC_LIBOBJ.
9090         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
9091         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
9092         from here...
9093         * modules/euidaccess (configure.ac): ... to here.
9094
9095 2011-05-06  Bruno Haible  <bruno@clisp.org>
9096
9097         error: Move AC_LIBOBJ invocations to module description.
9098         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
9099         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
9100         invocations from here...
9101         * modules/error (configure.ac): ... to here.
9102
9103 2011-05-06  Bruno Haible  <bruno@clisp.org>
9104
9105         duplocale: Move AC_LIBOBJ invocations to module description.
9106         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
9107         gl_PREREQ_DUPLOCALE invocations from here...
9108         * modules/duplocale (configure.ac): ... to here.
9109
9110 2011-05-05  Bruno Haible  <bruno@clisp.org>
9111
9112         dirfd: Move AC_LIBOBJ invocations to module description.
9113         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
9114         gl_FUNC_DIRFD.
9115         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
9116         here...
9117         * modules/dirfd (configure.ac): ... to here.
9118         (Depends-on): Fix condition.
9119
9120 2011-05-05  Bruno Haible  <bruno@clisp.org>
9121
9122         chown: Respect rules for use of AC_LIBOBJ.
9123         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
9124         * modules/chown (configure.ac): ... to here.
9125
9126 2011-05-05  Bruno Haible  <bruno@clisp.org>
9127
9128         chdir-long: Move AC_LIBOBJ invocations to module description.
9129         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
9130         gl_PREREQ_CHDIR_LONG invocations from here...
9131         * modules/chdir-long (configure.ac): ... to here.
9132
9133 2011-05-05  Bruno Haible  <bruno@clisp.org>
9134
9135         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
9136         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
9137         from here...
9138         * modules/canonicalize-lgpl (configure.ac): ... to here.
9139
9140 2011-05-05  Bruno Haible  <bruno@clisp.org>
9141
9142         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
9143         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
9144         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
9145         REPLACE_CALLOC.
9146         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
9147         * modules/calloc-gnu (configure.ac): Likewise.
9148
9149 2011-05-05  Bruno Haible  <bruno@clisp.org>
9150
9151         btowc: Move AC_LIBOBJ invocations to module description.
9152         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
9153         invocations from here...
9154         * modules/btowc (configure.ac): ... to here.
9155
9156 2011-05-21  Bruno Haible  <bruno@clisp.org>
9157
9158         atexit: Move AC_LIBOBJ invocations to module description.
9159         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
9160         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
9161         here...
9162         * modules/atexit (configure.ac): ... to here.
9163
9164 2011-05-05  Bruno Haible  <bruno@clisp.org>
9165
9166         atoll: Move AC_LIBOBJ invocations to module description.
9167         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
9168         invocations from here...
9169         * modules/atoll (configure.ac): ... to here.
9170
9171 2011-05-05  Bruno Haible  <bruno@clisp.org>
9172
9173         argz: Move AC_LIBOBJ invocations to module description.
9174         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
9175         * modules/argz (configure.ac): ... to here.
9176
9177 2011-05-05  Bruno Haible  <bruno@clisp.org>
9178
9179         alphasort: Move AC_LIBOBJ invocations to module description.
9180         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
9181         gl_PREREQ_ALPHASORT invocations from here...
9182         * modules/alphasort (configure.ac): ... to here.
9183
9184 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
9185
9186         verify: new macro verify_expr; verify_true deprecated
9187         * NEWS: Mention this.
9188         * doc/verify.texi (Compile-time Assertions): Document this.
9189         * lib/verify.h (verify_true): Deprecate.
9190         (verify_expr): New macro.
9191         * tests/test-verify.c (function): Test verify_expr.
9192
9193 2011-06-14  Jim Meyering  <meyering@redhat.com>
9194
9195         init.sh: give more portable redirection-related advice in a comment
9196         * tests/init.sh (stderr_fileno_): Update the advice in comments.
9197         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
9198         for lots of discussion.  Stefano Lattarini suggested the solution
9199         of putting "9>&2" after the command.  Reported by Bruno Haible.
9200
9201 2011-06-13  Bruno Haible  <bruno@clisp.org>
9202
9203         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
9204         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
9205         'none'.
9206
9207 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
9208
9209         ftoastr: use strtof only if HAVE_STRTOF
9210         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
9211         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
9212         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
9213         * modules/ftoastr (configure.ac): Check for strtof.
9214
9215 2011-06-13  Bruno Haible  <bruno@clisp.org>
9216
9217         gnulib-tool: Addendum to 2011-06-08 commit.
9218         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
9219         and --witness-c-macro have been given, augment AM_CPPFLAGS.
9220
9221 2011-06-13  Bruno Haible  <bruno@clisp.org>
9222
9223         fseeko: Provide a non-inline replacement of fseek().
9224         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
9225         * modules/fseeko (Depends-on): Add fseek.
9226         * modules/fseek (License): Change to LGPLv2+.
9227
9228 2011-06-13  Bruno Haible  <bruno@clisp.org>
9229
9230         ftello: Provide a non-inline replacement of ftell().
9231         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
9232         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
9233         not have ftello() (such as on mingw).
9234         * modules/ftello (Depends-on): Add ftell.
9235         * modules/ftell (License): Change to LGPLv2+.
9236
9237 2011-05-07  Bruno Haible  <bruno@clisp.org>
9238
9239         ftell: Move AC_LIBOBJ invocations to module description.
9240         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
9241         * modules/ftell (configure.ac): ... to here.
9242
9243 2011-05-07  Bruno Haible  <bruno@clisp.org>
9244
9245         ftello: Respect rules for use of AC_LIBOBJ.
9246         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
9247         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
9248         here...
9249         * modules/ftello (configure.ac): ... to here.
9250
9251 2011-05-07  Bruno Haible  <bruno@clisp.org>
9252
9253         fseeko: Simplify.
9254         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
9255         (gl_FUNC_FSEEKO): Inline it here.
9256
9257 2011-05-07  Bruno Haible  <bruno@clisp.org>
9258
9259         fseek: Move AC_LIBOBJ invocations to module description.
9260         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
9261         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
9262         * modules/fseek (configure.ac): ... to here.
9263
9264 2011-05-07  Bruno Haible  <bruno@clisp.org>
9265
9266         fseek: Respect rules for use of AC_LIBOBJ.
9267         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
9268         here...
9269         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
9270
9271 2011-05-07  Bruno Haible  <bruno@clisp.org>
9272
9273         fseeko: Respect rules for use of AC_LIBOBJ.
9274         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
9275         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
9276         here...
9277         * modules/fseeko (configure.ac): ... to here.
9278
9279 2011-06-13  Bruno Haible  <bruno@clisp.org>
9280
9281         gnulib-tool: Allow comments in the 'Depends-on' section.
9282         * doc/gnulib.texi (Module description): Mention comment syntax in the
9283         Depends-on section.
9284         * gnulib-tool (func_get_dependencies): Filter out comment lines.
9285
9286 2011-06-13  Bruno Haible  <bruno@clisp.org>
9287
9288         file-set.h: guard __attibute__ use, now that it's not always defined
9289         * lib/file-set.h (record_file): Use __attribute__ only with compiler
9290         versions that support it.  This fixes a coreutils build failure with
9291         the vendor cc on HP-UX 11.31.
9292
9293 2011-06-12  Bruno Haible  <bruno@clisp.org>
9294
9295         acl: Add support for HP-UX >= 11.11 JFS ACLs.
9296         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
9297         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
9298         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
9299         (acl, aclsort): New declarations.
9300         (aclv_nontrivial): New declaration.
9301         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
9302         (file_has_acl): Read also the second kind of HP-UX ACLs.
9303         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
9304         kind of HP-UX ACLs if the first kind fails.
9305         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
9306         second kind of HP-UX ACLs.
9307         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
9308         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
9309         agree.
9310         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
9311         hpuxjfs.
9312         Handle hpuxjfs.
9313         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
9314         hpuxjfs.
9315         Handle hpuxjfs.
9316         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
9317         (func_test_same_acls): Use both lsacl and getacl.
9318         Handle hpuxjfs.
9319         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
9320         (func_test_same_acls): Use both lsacl and getacl.
9321         Handle hpuxjfs.
9322
9323 2011-06-12  Bruno Haible  <bruno@clisp.org>
9324
9325         acl: Complete the 2010-08-10 fix.
9326         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
9327         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
9328         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
9329         explicitly.
9330         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
9331         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
9332
9333 2011-06-12  Bruno Haible  <bruno@clisp.org>
9334
9335         spawn-pipe tests: Comments.
9336         * tests/test-spawn-pipe-child.c (main): Update comment.
9337         Reported by James Youngman <jay@gnu.org>.
9338
9339 2011-06-11  James Youngman  <jay@gnu.org>
9340
9341         New module 'stat-size'.
9342         * modules/stat-size: New module.  Provides macros for accessing
9343         file size information in instances of struct stat.  Depends on the
9344         fileblocks module because it calls st_blocks.
9345         * lib/stat-size.h: New file, adapted from coreutils' system.h.
9346         * doc/gnulib.texi: Include stat-size.texi.
9347         * doc/stat-size.texi: Documentation for this module.
9348         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
9349         * m4/fileblocks.m4: Mention that stat-size depends on the call to
9350         AC_STRUCT_ST_BLOCKS.
9351
9352 2011-06-09  Bruno Haible  <bruno@clisp.org>
9353
9354         thread: Support pthreads-win32.
9355         * lib/glthread/thread.h (gl_thread_self): Define differently on
9356         pthreads-win32.
9357         (gl_null_thread): New declaration.
9358         (gl_thread_self_pointer): New macro.
9359         * lib/glthread/thread.c (gl_null_thread): New constant.
9360         * tests/test-lock.c: Use gl_thread_self_pointer instead of
9361         gl_thread_self.
9362         * tests/test-tls.c: Likewise.
9363         Suggested by Paul Eggert. Reported by Eric Blake.
9364
9365 2011-06-09  Bruno Haible  <bruno@clisp.org>
9366
9367         thread: Fix confusion between NULL and 0.
9368         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
9369         Reported by Paul Eggert.
9370
9371 2011-06-09  Bruno Haible  <bruno@clisp.org>
9372
9373         spawn-pipe tests: Avoid test failure on HP-UX 11.
9374         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
9375         is closed.
9376
9377 2011-06-09  Bruno Haible  <bruno@clisp.org>
9378
9379         acl tests: Fix compilation error on HP-UX 11.
9380         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
9381
9382 2011-06-09  Bruno Haible  <bruno@clisp.org>
9383
9384         rmdir: Avoid test failure on HP-UX 10.20.
9385         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
9386         EEXIST.
9387
9388 2011-06-08  Eric Blake  <eblake@redhat.com>
9389
9390         perror: fix test on mingw
9391         * modules/perror-tests (Depends-on): Add dup2.
9392
9393         strerror_r-posix: fix on MacOS
9394         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
9395         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
9396         logic bug.
9397         * lib/strerror_r.c (strerror_r): Fix the bug.
9398         * lib/strerror.c (strerror): Likewise.
9399         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
9400         problem.
9401         * doc/posix-functions/strerror.texi (strerror): Likewise.
9402         * doc/posix-functions/perror.texi (perror): Likewise.
9403         * tests/test-strerror.c (main): Enhance test.
9404         * tests/test-strerror_r.c (main): Likewise.
9405
9406 2011-06-08  Bruno Haible  <bruno@clisp.org>
9407
9408         gnulib-tool: Better isolation between different gnulib-tool invocations.
9409         * gnulib-tool: New option --witness-c-macro.
9410         (witness_c_macro): New variable.
9411         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
9412         AM_CPPFLAGS define it as a C macro.
9413         (func_emit_tests_Makefile_am): Likewise.
9414         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
9415         read it from there.
9416         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
9417         m4_define, not AC_DEFUN.
9418         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
9419         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
9420         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
9421         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
9422         s|...|...|, to substitute the values of the GNULIB_* module indicator
9423         variables.
9424         * modules/dirent (Makefile.am): Likewise.
9425         * modules/fcntl-h (Makefile.am): Likewise.
9426         * modules/iconv-h (Makefile.am): Likewise.
9427         * modules/langinfo (Makefile.am): Likewise.
9428         * modules/locale (Makefile.am): Likewise.
9429         * modules/math (Makefile.am): Likewise.
9430         * modules/netdb (Makefile.am): Likewise.
9431         * modules/poll-h (Makefile.am): Likewise.
9432         * modules/pty (Makefile.am): Likewise.
9433         * modules/search (Makefile.am): Likewise.
9434         * modules/signal (Makefile.am): Likewise.
9435         * modules/spawn (Makefile.am): Likewise.
9436         * modules/stdio (Makefile.am): Likewise.
9437         * modules/stdlib (Makefile.am): Likewise.
9438         * modules/string (Makefile.am): Likewise.
9439         * modules/sys_ioctl (Makefile.am): Likewise.
9440         * modules/sys_select (Makefile.am): Likewise.
9441         * modules/sys_socket (Makefile.am): Likewise.
9442         * modules/sys_stat (Makefile.am): Likewise.
9443         * modules/sys_times (Makefile.am): Likewise.
9444         * modules/sys_utsname (Makefile.am): Likewise.
9445         * modules/sys_wait (Makefile.am): Likewise.
9446         * modules/termios (Makefile.am): Likewise.
9447         * modules/time (Makefile.am): Likewise.
9448         * modules/unistd (Makefile.am): Likewise.
9449         * modules/wchar (Makefile.am): Likewise.
9450
9451 2011-06-08  Eric Blake  <eblake@redhat.com>
9452
9453         strerror: simplify replacement
9454         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
9455         * modules/strerror (configure.ac): No prereqs needed here...
9456         * modules/strerror-override (configure.ac): ...but this needs it.
9457         (Files): Add file for needed prereq macro.
9458
9459 2011-06-08  Bruno Haible  <bruno@clisp.org>
9460
9461         strerror_r-posix: Tweaks.
9462         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
9463         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
9464         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
9465         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
9466         (gl_FUNC_STRERROR_R): ... to here.
9467         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
9468
9469 2011-06-07  Eric Blake  <eblake@redhat.com>
9470
9471         perror: document fixed bugs
9472         * doc/posix-functions/perror.texi (perror): Document recent
9473         patches.
9474
9475 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
9476
9477         stat-time: get_stat_birthtime failure is better-defined
9478         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
9479         return a timestamp whose tv_sec and tv_nsec values are both -1.
9480         Previously, the spec said only that the tv_nsec value was negative.
9481         This upward-compatible change simplifies GNU tar a bit.
9482
9483 2011-06-07  Eric Blake  <eblake@redhat.com>
9484
9485         strerror_r-posix: work around cygwin 1.7.9
9486         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
9487         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
9488         bug without replacing strerror_r.
9489         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
9490         strerror_r is buggy, but without requiring strerror_r compilation.
9491         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
9492
9493         test-perror: relax test to ignore cygwin bug
9494         * tests/test-perror2.c (main): Relax test on requiring detection
9495         of stream errors, and use unbuffered stream.
9496         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
9497         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
9498         * doc/posix-functions/fputc.texi (fputc): Likewise.
9499         * doc/posix-functions/fputs.texi (fputs): Likewise.
9500         * doc/posix-functions/fputws.texi (fputws): Likewise.
9501         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
9502         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
9503         * doc/posix-functions/getopt.texi (getopt): Likewise.
9504         * doc/posix-functions/perror.texi (perror): Likewise.
9505         * doc/posix-functions/printf.texi (printf): Likewise.
9506         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
9507         * doc/posix-functions/psignal.texi (psignal): Likewise.
9508         * doc/posix-functions/putc.texi (putc): Likewise.
9509         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
9510         Likewise.
9511         * doc/posix-functions/putchar.texi (putchar): Likewise.
9512         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
9513         Likewise.
9514         * doc/posix-functions/puts.texi (puts): Likewise.
9515         * doc/posix-functions/putwc.texi (putwc): Likewise.
9516         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
9517         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
9518         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
9519         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
9520         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
9521         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
9522         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
9523         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
9524
9525 2011-05-22  Bruno Haible  <bruno@clisp.org>
9526
9527         strerror: Move AC_LIBOBJ invocations to module description.
9528         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
9529         gl_PREREQ_STRERROR invocations from here...
9530         * modules/strerror (configure.ac): ... to here.
9531
9532 2011-05-21  Bruno Haible  <bruno@clisp.org>
9533
9534         perror: Use common idiom.
9535         * modules/perror (configure.ac): Reorder statements.
9536
9537 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
9538
9539         tests: fix usage message in 'mktempd_'
9540         * tests/init.sh (mktempd_): In the usage message, use literal
9541         'mktempd_', not '$ME' (which is even undefined), as the name of
9542         the subroutine.
9543
9544 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
9545
9546         tests init: new function 'fatal_', for hard errors
9547         Before this patch, the only way offered by tests/init.sh to
9548         properly signal a hard error was the `framework_failure_'
9549         function.  But the error message issued by that function,
9550         as its name would suggest, refers to a set-up failure in the
9551         testsuite, while hard errors can obviously also be due to
9552         other reasons.  The best way to fix this inconsistency is to
9553         introduce a new function with a more general error message.
9554         * tests/init.sh (fatal_): New function.
9555
9556 2011-06-06  Eric Blake  <eblake@redhat.com>
9557
9558         canonicalize-lgpl: use common idiom
9559         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
9560         over newer POSIX -Rf.
9561         Reported by Bruno Haible.
9562
9563         canonicalize-lgpl: work around AIX realpath bug
9564         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
9565         * doc/posix-functions/realpath.texi (realpath): Document it.
9566         Reported by Bruno Haible.
9567
9568         strerror: work around FreeBSD bug
9569         * lib/strerror.c (strerror): Special case 0.
9570         Reported by Bruno Haible.
9571
9572         strerror-override: avoid bloating errno module
9573         * modules/errno (Files, configure.ac): Move replacement strings...
9574         * modules/strerror-override: ...to new module.
9575         * modules/strerror (Depends-on): Add strerror-override.
9576         * modules/strerror_r-posix (Depends-on): Likewise.
9577         * MODULES.html.sh: Document new module.
9578         Reported by Bruno Haible.
9579
9580 2011-06-06  Bruno Haible  <bruno@clisp.org>
9581
9582         spawn-pipe tests: Rename program.
9583         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
9584         * tests/test-spawn-pipe-child.c: Update comment.
9585         * tests/test-spawn-pipe.sh: Update.
9586         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
9587
9588         spawn-pipe tests: Link the child program only against libc.
9589         * tests/test-spawn-pipe-child.c: New file, extracted from
9590         tests/test-spawn-pipe.c.
9591         (main): Expect only one argument.
9592         (is_open): New function, copied from tests/test-pipe.c.
9593         * tests/test-spawn-pipe.c: Don't include <errno.h>.
9594         (child_main): Remove function.
9595         (test_pipe): Pass only one argument to the child program.
9596         (main): Remove child process code. Expect the child program's name as
9597         first argument.
9598         * tests/test-spawn-pipe.sh: Pass the child program's name as first
9599         argument.
9600         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
9601         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
9602         test-spawn-pipe-child against no libraries.
9603
9604 2011-06-06  Bruno Haible  <bruno@clisp.org>
9605
9606         careadlinkat: Avoid mismatch between ssize_t and int.
9607         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
9608         * lib/careadlinkat.c (careadlinkatcwd): Define always.
9609
9610 2011-06-06  Jim Meyering  <meyering@redhat.com>
9611
9612         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
9613         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
9614         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
9615
9616 2011-06-05  Bruno Haible  <bruno@clisp.org>
9617
9618         ansi-c++-opt: Interoperability with libtool.
9619         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
9620         set the variable to "no", not to ":".
9621         * NEWS: Mention the change.
9622
9623 2011-06-05  Bruno Haible  <bruno@clisp.org>
9624
9625         acl: Fix test failure on AIX 7.
9626         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
9627         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
9628
9629 2011-06-05  Bruno Haible  <bruno@clisp.org>
9630
9631         pipe-filter-ii: Fix test failure on AIX and IRIX.
9632         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
9633         with EAGAIN, retry with a smaller buffer size.
9634
9635 2011-06-05  Bruno Haible  <bruno@clisp.org>
9636
9637         localename: Fix link dependencies.
9638         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
9639         * modules/localename-tests (Makefile.am): Link test-localename with
9640         $(LIBTHREAD).
9641
9642 2011-06-05  Bruno Haible  <bruno@clisp.org>
9643
9644         error: Avoid gcc warning.
9645         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
9646
9647 2011-06-05  Bruno Haible  <bruno@clisp.org>
9648
9649         unsetenv: Avoid gcc warning.
9650         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
9651
9652 2011-06-05  Bruno Haible  <bruno@clisp.org>
9653
9654         setenv: Avoid gcc warning.
9655         * lib/setenv.c (setenv): Provide declaration if system lacks it.
9656
9657 2011-06-05  Bruno Haible  <bruno@clisp.org>
9658
9659         sys_select: Ensure memset is declared also on AIX 7.
9660         * lib/sys_select.in.h: Include <string.h> also on AIX.
9661         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
9662         self-contained also on AIX 7.1.
9663
9664 2011-06-04  Jim Meyering  <meyering@redhat.com>
9665
9666         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
9667         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
9668         function name, "error".
9669         (_gl_translatable_diag_func_re): New configurable variable.
9670
9671 2011-06-04  Bruno Haible  <bruno@clisp.org>
9672
9673         getopt: Avoid gcc warning.
9674         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
9675
9676 2011-06-04  Bruno Haible  <bruno@clisp.org>
9677
9678         strerror_r: Fix comments.
9679         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
9680         commit.
9681
9682 2011-06-04  Bruno Haible  <bruno@clisp.org>
9683
9684         perror: Fix compilation error.
9685         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
9686         Undefine fprintf, not sprintf.
9687         * modules/perror (Depends-on): Remove intprops, verify.
9688
9689 2011-06-04  Bruno Haible  <bruno@clisp.org>
9690
9691         setlocale: Enable replacement on Cygwin 1.5.
9692         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
9693         Cygwin 1.5.x.
9694         * doc/posix-functions/setlocale.texi: Mention that the problem with the
9695         LC_CTYPE category also exists on Cygwin 1.5.x.
9696
9697 2011-06-04  Bruno Haible  <bruno@clisp.org>
9698
9699         strerror-override: Don't disable symbol renamings.
9700         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
9701         * lib/strerror-override.c: Include config.h.
9702         (strerror_override): Don't undefine.
9703
9704 2011-06-03  Bruno Haible  <bruno@clisp.org>
9705
9706         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
9707         * lib/localename.h: Update copyright header.
9708         * lib/localename.c: Likewise.
9709         * lib/relocatable.h: Likewise.
9710         * lib/relocatable.c: Likewise.
9711
9712 2011-06-02  Bruno Haible  <bruno@clisp.org>
9713
9714         doc: Fix a module name.
9715         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
9716
9717 2011-06-02  Bruno Haible  <bruno@clisp.org>
9718
9719         pipe2: Remove dependency on 'nonblocking' module.
9720         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
9721         O_NONBLOCK is defined by gnulib.
9722         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
9723         is zero.
9724         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
9725         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
9726         defined by gnulib.
9727         (get_nonblocking_flag): New function.
9728         (main): Test O_NONBLOCK flag only if it is nonzero.
9729         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
9730
9731 2011-06-03  Jim Meyering  <meyering@redhat.com>
9732
9733         maint: three new prohibit-header-without-use rules
9734         Prohibit use of cloexec.h, posixver.h, same.h without use.
9735         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
9736         (sc_prohibit_posixver_without_use): Likewise.
9737         (sc_prohibit_same_without_use): Likewise.
9738
9739 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
9740
9741         allocator: 'die' routine is now given requested size
9742         * lib/allocator.h (struct allocator.die): New size arg.
9743         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
9744         If the actual problem is an ssize_t limitation, not a size_t or
9745         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
9746
9747 2011-06-01  Eric Blake  <eblake@redhat.com>
9748
9749         strerror: drop strerror_r dependency
9750         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
9751         * lib/strerror-override.c (strerror_override): ...to new file.
9752         * lib/strerror-override.h: Add prototype.
9753         * lib/strerror-impl.h: Delete.
9754         * lib/strerror.c (strerror): New implementation.
9755         * modules/errno (Files): Add new files.
9756         (configure.ac): Compile new file as appropriate.
9757         * modules/strerror (Files): Drop unused file.
9758         (Depends-on): Drop strerror_r-posix.
9759         * MODULES.html.sh: Document strerror_r-posix.
9760         Requested by Sam Steingold.
9761
9762         perror: call strerror_r directly
9763         * modules/perror (Files): Drop strerror-impl.h.
9764         * lib/perror.c (perror): Use our own stack buffer, rather than
9765         calling a wrapper that uses static storage.
9766         * doc/posix-functions/perror.texi (perror): Document a limitation
9767         of our replacement.
9768
9769         strerror_r: fix includes for FreeBSD
9770         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
9771         since we use abort on some platforms.
9772         Reported by Matthias Bolte.
9773
9774 2011-05-31  Bruno Haible  <bruno@clisp.org>
9775
9776         Fix link errors in tests: openat-die uses gettext-h.
9777         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
9778         against $(LIBINTL).
9779         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
9780         against $(LIBINTL).
9781         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
9782         $(LIBINTL).
9783         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
9784         against $(LIBINTL).
9785         * modules/linkat-tests (Makefile.am): Link test-linkat against
9786         $(LIBINTL).
9787         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
9788         $(LIBINTL).
9789         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
9790         against $(LIBINTL).
9791         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
9792         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
9793         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
9794         $(LIBINTL).
9795         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
9796         $(LIBINTL).
9797         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
9798         $(LIBINTL).
9799         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9800
9801 2011-05-31  Bruno Haible  <bruno@clisp.org>
9802
9803         Fix link errors in tests: wait-process uses gettext-h.
9804         * modules/nonblocking-pipe-tests (Makefile.am): Set
9805         test_nonblocking_pipe_main_LDADD.
9806         * modules/nonblocking-socket-tests (Makefile.am): Link
9807         test-nonblocking-socket-main against $(LIBINTL).
9808         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9809
9810 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
9811
9812         assert-h: work around 'verify' incompatibility
9813         * lib/verify.h: Use @...@ directives, not ifdef.
9814         * modules/assert-h (assert.h): Implement the directives.
9815         (assert.h): Substitute the symbol-prefix more consistently.
9816
9817 2011-05-29  Jim Meyering  <meyering@redhat.com>
9818
9819         trim: remove three superfluous assignments
9820         * lib/trim.c (trim2): Remove three superfluous assignments
9821         and correct brace positioning.
9822
9823 2011-05-29  Bruno Haible  <bruno@clisp.org>
9824
9825         wctype-h: Avoid namespace pollution on Solaris 2.6.
9826         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
9827         identifiers.
9828         * doc/posix-headers/wctype.texi: Mention the problem.
9829         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9830
9831 2011-05-28  Jim Meyering  <meyering@redhat.com>
9832
9833         parse-datetime.y: accommodate -Wstrict-overflow
9834         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
9835         placate -Wstrict-overflow.
9836
9837         trim: avoid a warning from -O2 -Wstrict-overflow
9838         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
9839
9840 2011-05-29  Bruno Haible  <bruno@clisp.org>
9841
9842         gnulib-tool: Fix bug in yesterday's commit.
9843         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
9844         twice.
9845
9846 2011-05-29  Bruno Haible  <bruno@clisp.org>
9847
9848         Allow multiple gnulib generated include files to be combined.
9849         * gnulib-tool (func_compute_include_guard_prefix): New function.
9850         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
9851         ${gl_include_guard_prefix} references.
9852         (func_import, func_create_testdir): Invoke
9853         func_compute_include_guard_prefix.
9854         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
9855         * lib/ctype.in.h: Likewise.
9856         * lib/dirent.in.h: Likewise.
9857         * lib/errno.in.h: Likewise.
9858         * lib/fcntl.in.h: Likewise.
9859         * lib/float.in.h: Likewise.
9860         * lib/getopt.in.h: Likewise.
9861         * lib/iconv.in.h: Likewise.
9862         * lib/langinfo.in.h: Likewise.
9863         * lib/locale.in.h: Likewise.
9864         * lib/math.in.h: Likewise.
9865         * lib/netdb.in.h: Likewise.
9866         * lib/netinet_in.in.h: Likewise.
9867         * lib/poll.in.h: Likewise.
9868         * lib/pthread.in.h: Likewise.
9869         * lib/pty.in.h: Likewise.
9870         * lib/sched.in.h: Likewise.
9871         * lib/se-selinux.in.h: Likewise.
9872         * lib/search.in.h: Likewise.
9873         * lib/signal.in.h: Likewise.
9874         * lib/spawn.in.h: Likewise.
9875         * lib/stdarg.in.h: Likewise.
9876         * lib/stddef.in.h: Likewise.
9877         * lib/stdint.in.h: Likewise.
9878         * lib/stdio.in.h: Likewise.
9879         * lib/stdlib.in.h: Likewise.
9880         * lib/string.in.h: Likewise.
9881         * lib/strings.in.h: Likewise.
9882         * lib/sys_file.in.h: Likewise.
9883         * lib/sys_ioctl.in.h: Likewise.
9884         * lib/sys_select.in.h: Likewise.
9885         * lib/sys_socket.in.h: Likewise.
9886         * lib/sys_stat.in.h: Likewise.
9887         * lib/sys_time.in.h: Likewise.
9888         * lib/sys_times.in.h: Likewise.
9889         * lib/sys_uio.in.h: Likewise.
9890         * lib/sys_utsname.in.h: Likewise.
9891         * lib/sys_wait.in.h: Likewise.
9892         * lib/sysexits.in.h: Likewise.
9893         * lib/termios.in.h: Likewise.
9894         * lib/time.in.h: Likewise.
9895         * lib/unistd.in.h: Likewise.
9896         * lib/wchar.in.h: Likewise.
9897         * lib/wctype.in.h: Likewise.
9898         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
9899         * modules/ctype (Makefile.am): Likewise.
9900         * modules/dirent (Makefile.am): Likewise.
9901         * modules/errno (Makefile.am): Likewise.
9902         * modules/fcntl-h (Makefile.am): Likewise.
9903         * modules/float (Makefile.am): Likewise.
9904         * modules/getopt-posix (Makefile.am): Likewise.
9905         * modules/iconv-h (Makefile.am): Likewise.
9906         * modules/langinfo (Makefile.am): Likewise.
9907         * modules/locale (Makefile.am): Likewise.
9908         * modules/math (Makefile.am): Likewise.
9909         * modules/netdb (Makefile.am): Likewise.
9910         * modules/netinet_in (Makefile.am): Likewise.
9911         * modules/poll-h (Makefile.am): Likewise.
9912         * modules/pthread (Makefile.am): Likewise.
9913         * modules/pty (Makefile.am): Likewise.
9914         * modules/sched (Makefile.am): Likewise.
9915         * modules/search (Makefile.am): Likewise.
9916         * modules/selinux-h (Makefile.am): Likewise.
9917         * modules/signal (Makefile.am): Likewise.
9918         * modules/spawn (Makefile.am): Likewise.
9919         * modules/stdarg (Makefile.am): Likewise.
9920         * modules/stddef (Makefile.am): Likewise.
9921         * modules/stdint (Makefile.am): Likewise.
9922         * modules/stdio (Makefile.am): Likewise.
9923         * modules/stdlib (Makefile.am): Likewise.
9924         * modules/string (Makefile.am): Likewise.
9925         * modules/strings (Makefile.am): Likewise.
9926         * modules/sys_file (Makefile.am): Likewise.
9927         * modules/sys_ioctl (Makefile.am): Likewise.
9928         * modules/sys_select (Makefile.am): Likewise.
9929         * modules/sys_socket (Makefile.am): Likewise.
9930         * modules/sys_stat (Makefile.am): Likewise.
9931         * modules/sys_time (Makefile.am): Likewise.
9932         * modules/sys_times (Makefile.am): Likewise.
9933         * modules/sys_uio (Makefile.am): Likewise.
9934         * modules/sys_utsname (Makefile.am): Likewise.
9935         * modules/sys_wait (Makefile.am): Likewise.
9936         * modules/sysexits (Makefile.am): Likewise.
9937         * modules/termios (Makefile.am): Likewise.
9938         * modules/time (Makefile.am): Likewise.
9939         * modules/unistd (Makefile.am): Likewise.
9940         * modules/wchar (Makefile.am): Likewise.
9941         * modules/wctype-h (Makefile.am): Likewise.
9942         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
9943
9944 2011-05-29  Bruno Haible  <bruno@clisp.org>
9945
9946         assert-h: Allow multiple gnulib generated replacements to coexist.
9947         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
9948
9949 2011-05-29  Bruno Haible  <bruno@clisp.org>
9950
9951         argp: Allow coexistence with strerror_r-posix module.
9952         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
9953         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
9954         by gnulib's <string.h> replacement), assume it has the POSIX signature,
9955         not the glibc signature.
9956
9957 2011-05-28  Bruno Haible  <bruno@clisp.org>
9958
9959         gnulib-tool: Alternative structure of testdirs, similar to --import.
9960         * gnulib-tool: New option --single-configure.
9961         (func_usage): Document it.
9962         (single_configure): New variable.
9963         (func_modules_transitive_closure_separately,
9964         func_modules_transitive_closure_separately,
9965         func_determine_use_libtests, func_modules_add_dummy_separately,
9966         func_modules_to_filelist_separately): New functions, extracted from
9967         func_import.
9968         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
9969         (func_import): Use the new functions.
9970         (func_create_testdir): Set final_modules. Handle $single_configure =
9971         true case.
9972
9973 2011-05-28  Bruno Haible  <bruno@clisp.org>
9974
9975         getloadavg: Remove an unreliable safety check.
9976         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
9977         getloadavg.c is in place.
9978         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
9979         Reported by Sam Steingold <sds@gnu.org>.
9980
9981 2011-05-28  Bruno Haible  <bruno@clisp.org>
9982
9983         doc: Cleanup yet another file produced by texinfo.tex.
9984         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
9985
9986 2011-05-28  Bruno Haible  <bruno@clisp.org>
9987
9988         Finish the conditional dependencies mechanism.
9989         * gnulib-tool: New option --no-conditional-dependencies.
9990         (func_usage): Document it. Don't mark --conditional-dependencies as
9991         experimental.
9992         (cond_dependencies): The possible values can now be true, false, empty.
9993         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
9994         (func_import): Store setting in gnulib-cache.m4 and read it from there.
9995         * doc/gnulib-tool.texi (Conditional dependencies): New section.
9996
9997 2011-05-28  Bruno Haible  <bruno@clisp.org>
9998
9999         doc: Use a recent texinfo.tex.
10000         * doc/Makefile (tex_opts): New variable.
10001         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
10002
10003 2011-05-28  Jim Meyering  <meyering@redhat.com>
10004
10005         intprops.h: adjust comment to match code change
10006         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
10007         only once, it *may* have side effects.  Also fix an unrelated typo.
10008         (_GL_INT_SIGNED): Likewise.
10009
10010 2011-05-26  Simon Josefsson  <simon@josefsson.org>
10011
10012         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
10013
10014 2011-05-26  Bruno Haible  <bruno@clisp.org>
10015
10016         mbsrchr: Avoid collision with system function on Interix.
10017         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
10018         Reported by Markus Duft <mduft@gentoo.org>.
10019
10020 2011-05-15  James Youngman  <jay@gnu.org>
10021
10022         getopt: for ambiguous options, enumerate the possibilities.
10023         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
10024         the ambiguous options when an ambiguous prefix is given. This was
10025         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
10026         glibc change was
10027         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
10028
10029 2011-05-25  Eric Blake  <eblake@redhat.com>
10030
10031         getcwd: work around mingw bug
10032         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
10033         * doc/posix-functions/getcwd.texi (getcwd): Document it.
10034         Reported by Matthias Bolte.
10035
10036 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
10037
10038         test-intprops: disable -Wtype-limits diagnostics
10039         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
10040         diagnostics.  Otherwise, the integer overflow macros generate many
10041         diagnostics.  Reported by Jim Meyering in
10042         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
10043
10044         intprops: shorten, to pacify gcc -Woverlength-strings
10045         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
10046         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
10047         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
10048         likely to run afoul of C compiler limits for string constant lengths.
10049         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
10050
10051 2011-05-24  Eric Blake  <eblake@redhat.com>
10052
10053         docs: document recently fixed glibc printf bug
10054         * doc/posix-functions/fprintf.texi (fprintf): Document it.
10055         * doc/posix-functions/printf.texi (printf): Likewise.
10056         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
10057         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
10058
10059         closein-tests: convert to init.sh
10060         * modules/closein-tests (Files): Add init.sh
10061         * tests/test-closein.sh Use it.
10062
10063         yesno-tests: convert to init.sh
10064         * modules/yesno-tests (Files): Add init.sh.
10065         * tests/test-yesno.sh: Use it.
10066
10067         atexit-tests: ensure reliable exit status
10068         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
10069         Reported by Bruno Haible.
10070
10071 2011-05-24  Bruno Haible  <bruno@clisp.org>
10072
10073         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
10074         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
10075         gl_PREREQ_STRERROR_R invocations from here...
10076         * modules/strerror_r-posix (configure.ac): ... to here.
10077
10078 2011-05-24  Eric Blake  <eblake@redhat.com>
10079
10080         strerror_r: fix missing header
10081         * lib/strerror_r.c: Avoid compiler warning about snprintf.
10082
10083         strerror_r: fix AIX test failures
10084         * lib/strerror_r.c (strerror_r): Convert silent truncation to
10085         ERANGE failure.
10086
10087         strerror_r: fix Solaris test failures
10088         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
10089         failures.
10090         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
10091
10092         strerror_r: enforce POSIX recommendations
10093         * lib/strerror_r.c (safe_copy): New helper method.
10094         (strerror_r): Guarantee a non-empty string.
10095         * tests/test-strerror_r.c (main): Enhance tests to incorporate
10096         recent POSIX rulings and to match our strerror guarantees.
10097         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
10098
10099 2011-05-24  Jim Meyering  <meyering@redhat.com>
10100
10101         test-perror2.c: avoid warning about unused variable
10102         * tests/test-perror2.c (main): Remove declaration of unused "fp".
10103
10104 2011-05-24  Eric Blake  <eblake@redhat.com>
10105
10106         perror: avoid spurious test failure on HP-UX
10107         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
10108
10109         tests: fix logic bug in init.sh
10110         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
10111         shell.
10112
10113 2011-05-24  Jim Meyering  <meyering@redhat.com>
10114
10115         utimensat: do not reference an out-of-scope buffer
10116         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
10117         declared in an inner scope, yet "times" would be dereferenced outside
10118         the scope in which "ts" was valid.
10119         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
10120         of ts[2] "out/up", so that the use of aliased "times" (via
10121         "times = ts;") does not end up referencing an out-of-scope "ts"
10122
10123         opendir-safer.c: don't clobber errno; don't close negative FD
10124         * lib/opendir-safer.c (opendir_safer):
10125         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
10126         file descriptor, and more importantly, don't clobber the
10127         offending errno value with EINVAL.  Before, upon failure
10128         of dup_safer, we would pass the negative file descriptor to
10129         fdopendir, which would clobber errno.
10130
10131 2011-05-23  Bruno Haible  <bruno@clisp.org>
10132
10133         idcache: Fix module description.
10134         * modules/idcache (Include): Set to "idcache.h".
10135
10136 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
10137
10138         gnulib-tool: fix portability problem with MacOS sed
10139         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
10140         before the "}".  Problem reported by Leo in
10141         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
10142         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
10143         sed_extract_condition1, sed_extract_condition2.
10144
10145 2011-05-23  Bruno Haible  <bruno@clisp.org>
10146
10147         hash: Simplify autoconf macro.
10148         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
10149
10150 2011-05-23  Bruno Haible  <bruno@clisp.org>
10151
10152         getugroups: Fix module description.
10153         * modules/getugroups (Include): Set to "getugroups.h".
10154
10155 2011-05-23  Bruno Haible  <bruno@clisp.org>
10156
10157         linkat: Simplify autoconf macro.
10158         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
10159
10160 2011-05-23  Bruno Haible  <bruno@clisp.org>
10161             Eric Blake  <eblake@redhat.com>
10162
10163         linkat, renameat: Update dependencies.
10164         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
10165         * modules/linkat (Depends-on): Likewise. Remove also readlink,
10166         symlinkat.
10167
10168 2011-05-23  Jim Meyering  <meyering@redhat.com>
10169
10170         maint.mk: more tight_scope improvements
10171         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
10172         (_gl_TS_headers): Define only in if-0'd block.
10173         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
10174         sometimes we must *not* use it.  Adjust uses accordingly.
10175         (sc_tight_scope): Use much simpler grep-based test to determine
10176         whether we skip this rule.
10177
10178         maint.mk: generalize/improve the tight-scope rule
10179         * top/maint.mk: Emit a warning when the test is skipped.
10180         (_gl_TS_dir): Add $(srcdir)/ prefix.
10181         (_gl_TS_function_match): Simplify, rather than trying
10182         to enumerate common types.  Otherwise, it would fail to match an
10183         "extern unsigned char const *" declaration in idutils.
10184         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
10185         a way to support use of that type of macro.
10186         (_gl_TS_var_match): Simplify regexp.
10187         (_gl_TS_obj_files): New configurable variable.
10188         (_gl_TS_headers): Likewise.
10189
10190 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
10191
10192         verify: fix bug when gnulib <assert.h> is also included
10193         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
10194         is defined, not if _GL_STATIC_ASSERT_H is not defined.
10195         Perhaps there's a better way, but this fixes the immediate problem.
10196         Problem reported by Bruno Haible in
10197         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
10198
10199 2011-05-22  Bruno Haible  <bruno@clisp.org>
10200
10201         xgetcwd: Simplify autoconf macro.
10202         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
10203
10204 2011-05-22  Bruno Haible  <bruno@clisp.org>
10205
10206         New module 'mktime-internal'.
10207         * modules/mktime-internal: New file.
10208         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
10209         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
10210         mktime_internal as a C macro if libc has __mktime_internal.
10211         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
10212         conditions.
10213         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
10214
10215 2011-05-22  Bruno Haible  <bruno@clisp.org>
10216
10217         timegm: Correct mktime replacement statements.
10218         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
10219         defining mktime as a C macro. This completes a 2009-07-28 commit.
10220
10221 2011-05-22  Bruno Haible  <bruno@clisp.org>
10222
10223         timegm: Simplify autoconf macro.
10224         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
10225
10226 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
10227
10228         clock-time: change to LGPLv2+.
10229         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
10230         BSD-like but we have no mark for that; this is good enough for now.
10231
10232 2011-05-21  Bruno Haible  <bruno@clisp.org>
10233
10234         strerror_r: Fix comments.
10235         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
10236
10237 2011-05-21  Bruno Haible  <bruno@clisp.org>
10238
10239         relocatable-prog-wrapper: Fix possible link error.
10240         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
10241         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
10242         (gl_FUNC_SETENV): ... to here.
10243         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
10244         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
10245
10246 2011-05-21  Bruno Haible  <bruno@clisp.org>
10247
10248         relocatable-prog-wrapper: Assume strerror() exists.
10249         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
10250         m4/strerror.m4.
10251         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
10252         * lib/relocwrapper.c: Remove mention of strerror module.
10253         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
10254         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
10255         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
10256         C macro.
10257
10258 2011-05-21  Bruno Haible  <bruno@clisp.org>
10259
10260         select: Simplify replacement idiom.
10261         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
10262         Win32 platforms.
10263         * lib/sys_select.in.h (select): Simplify accordingly.
10264         * modules/select (Depends-on): Likewise.
10265
10266 2011-05-21  Bruno Haible  <bruno@clisp.org>
10267
10268         mkdir-p: Simplify autoconf macro.
10269         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
10270         gl_FUNC_LCHOWN.
10271
10272 2011-05-21  Eric Blake  <eblake@redhat.com>
10273
10274         strerror_r: avoid clobbering strerror on cygwin
10275         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
10276         fall back instead to sys_errlist.
10277         * modules/strerror (configure.ac): Add witness.
10278         * tests/test-strerror_r.c (main): Enhance test.
10279         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
10280         * tests/test-perror2.c (main): Free memory before exit.
10281
10282 2011-05-21  Bruno Haible  <bruno@clisp.org>
10283
10284         mkdtemp: Use gnulib naming conventions.
10285         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
10286         * modules/mkdtemp (configure.ac): Update.
10287
10288 2011-05-20  Eric Blake  <eblake@redhat.com>
10289
10290         strerror_r: avoid corrupting errno on Solaris
10291         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
10292         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
10293
10294         strerror_r: avoid compiler warning
10295         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
10296
10297         strerror_r: simplify AIX code
10298         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
10299
10300         test-perror: avoid spurious failure on FreeBSD
10301         * modules/perror-tests (Depends-on): Add strerror, now that
10302         strerror_r no longer pulls it in.
10303
10304 2011-05-20  Bruno Haible  <bruno@clisp.org>
10305
10306         strerror_r-posix: Remove unused dependencies.
10307         * modules/strerror_r-posix (Depends-on): Remove strerror.
10308         Reported by Eric Blake.
10309
10310 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
10311
10312         intprops: remove assumption about A|B representation
10313         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
10314         is a valid integer if both A and B are.  Although this is true for
10315         all known practical hosts, the C standard doesn't guarantee it,
10316         and the code need not assume it.  Also, this change may work around
10317         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
10318         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
10319
10320 2011-05-20  Eric Blake  <eblake@redhat.com>
10321
10322         perror: work around FreeBSD bug
10323         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
10324         is broken.  Move AC_LIBOBJ...
10325         * modules/perror (configure.ac): Here.
10326         * doc/posix-functions/perror.texi (perror): Document this.
10327         * tests/test-perror2.c (main): Enhance test.
10328
10329         test-perror: check for strerror interactions
10330         * tests/macros.h (STREQ): Add macro.
10331         * modules/perror-tests (Files): Add second test.
10332         * tests/test-perror2.c (main): New file.
10333         * doc/posix-functions/perror.texi (perror): Document glibc bug.
10334
10335         test-perror: rewrite to use init script
10336         * modules/perror-tests (Files): Add init.sh.
10337         * tests/test-perror.sh: Use temporary directory.
10338
10339 2011-05-20  Jim Meyering  <meyering@redhat.com>
10340
10341         maint: replace misused "a" with "an"
10342         * doc/intprops.texi: "a integer"
10343         * doc/regex.texi: "a explanation"
10344         * lib/alignof.h: "a object"
10345         * lib/argmatch.h: "a explanation"
10346         * lib/argp-help.c: "a option" and "a OPTION_DOC"
10347         * lib/stdint.in.h: "a integer"
10348         * lib/userspec.c: "a owner"
10349         * doc/gnulib.texi: Fix "a idea", and reword.
10350
10351 2011-05-19  Jim Meyering  <meyering@redhat.com>
10352
10353         maint: correct misuse of "a" and "an"
10354         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
10355         * lib/argp-help.c: "an docum...": s/an/a/
10356         * lib/argp-parse.c: "An vector": s/An/A/
10357         * lib/execute.c: "an native": s/an/a/
10358         * lib/spawn-pipe.c: Likewise.
10359         * lib/gc.h: "an Gc_rc": s/an/a/
10360         * lib/unigbrk.in.h: "an grapheme": s/an/a/
10361         * lib/fts.c: "an stat.st_dev": s/an/a/
10362
10363 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
10364
10365         intprops-tests: work around HP-UX 11.23 cc bug with constants
10366         * tests/test-intprops.c (VERIFY): New macro.
10367         (main): Use it, instead of verify, to work around the compiler bug; see
10368         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
10369
10370         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
10371         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
10372         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
10373         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
10374         (_GL_REMAINDER_OVERFLOW): Use it.
10375
10376         intprops-tests: revert unsigned part of previous change
10377         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
10378         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
10379         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
10380         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
10381
10382 2011-05-19  Bruno Haible  <bruno@clisp.org>
10383
10384         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
10385         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
10386         strerror_r() returned without filling the buffer.
10387         Reported by Eric Blake.
10388
10389 2011-05-19  Eric Blake  <eblake@redhat.com>
10390
10391         strerror_r: guarantee unchanged errno
10392         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
10393         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
10394         failure.
10395         * tests/test-strerror_r.c (main): Enhance test.
10396
10397 2011-05-19  Bruno Haible  <bruno@clisp.org>
10398
10399         strerror_r: Reorder #if blocks.
10400         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
10401         for consistency with the previous commit.
10402
10403 2011-05-19  Bruno Haible  <bruno@clisp.org>
10404
10405         perror: Avoid clobbering the strerror buffer when possible.
10406         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
10407         * lib/strerror.c: Include it.
10408         * modules/strerror (Files): Add lib/strerror-impl.h.
10409         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
10410         (my_strerror): New function, defined through lib/strerror-impl.h.
10411         (perror): Use it instead of strerror.
10412         * modules/perror (Files): Add lib/strerror-impl.h.
10413         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
10414
10415 2011-05-19  Eric Blake  <eblake@redhat.com>
10416
10417         strerror_r: fix on newer cygwin
10418         * lib/strerror_r.c (strerror_r): Cygwin now has
10419         __xpg_strerror_r, use it.
10420
10421 2011-05-19  Bruno Haible  <bruno@clisp.org>
10422
10423         strerror_r: Avoid clobbering the strerror buffer when possible.
10424         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
10425         (sys_nerr, sys_errlist): New declarations.
10426         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
10427         HP-UX, native Win32, IRIX, and 32-bit Solaris.
10428         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
10429
10430 2011-05-19  Bruno Haible  <bruno@clisp.org>
10431
10432         strerror_r: Fix test failure on mingw.
10433         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
10434         EXTEND_STRERROR_R.
10435         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
10436         macros from errno.in.h instead.
10437
10438 2011-05-19  Eric Blake  <eblake@redhat.com>
10439
10440         strerror: relax test for Solaris
10441         * tests/test-strerror.c (main): Permit Solaris behavior.
10442         * tests/test-strerror_r.c (main): Likewise.
10443
10444         strerror: enforce POSIX ruling on strerror(0)
10445         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
10446         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
10447         * lib/strerror_r.c (rpl_strerror_r): Work around it.
10448         * doc/posix-functions/strerror.texi (strerror): Document it.
10449         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
10450         * tests/test-strerror.c (main): Strengthen test.
10451         * tests/test-strerror_r.c (main): Likewise.
10452
10453 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
10454
10455         intprop-tests: port to older and more-pedantic compilers
10456         * modules/intprops-tests (Files): Add tests/macros.h.
10457         * tests/test-intprops.c: Include macros.h.
10458         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
10459         it's no longer documented to expand to an integer constant expression.
10460         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
10461         argument is floating point, as it's no longer documented to expand
10462         to an integer constant expression in that case.
10463         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
10464         compiler bugs reported by Bruno Haible.  See
10465         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
10466         (U0, U1): New constants, to work around the same bugs.  Also,
10467         in tests, use e.g., "(unsigned int) 39" rather than "39u".
10468
10469         intprops: work around C compiler bugs
10470         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
10471         bug in Sun C 5.11 2010/08/13 and other compilers; see
10472         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
10473
10474         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
10475         * doc/intprops.texi (Integer Type Determination): Fix
10476         documentation for TYPE_IS_INTEGER: it returns an constant
10477         expression, not an integer constant expression.  Fix doc for
10478         TYPE_SIGNED: it returns an integer constant expression only if its
10479         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
10480         hardly worth documented that way....)
10481
10482 2011-05-18  Bruno Haible  <bruno@clisp.org>
10483
10484         strerror_r: Avoid clobbering the strerror buffer when possible.
10485         * lib/strerror_r.c (strerror_r): Merge the three implementations.
10486         Handle gnulib defined errno values here. When strerror() returns NULL
10487         or an empty string, return EINVAL.
10488         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
10489         gnulib defined errno values here.
10490         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
10491
10492 2011-05-18  Eric Blake  <eblake@redhat.com>
10493
10494         fnmatch: avoid compiler warning
10495         * lib/fnmatch_loop.c (FCT): Use correct type.
10496         Reported by Matthias Bolte.
10497
10498 2011-05-13  Jim Meyering  <meyering@redhat.com>
10499
10500         maint.mk: three new prohibit_<HDR>_without_use rules
10501         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
10502         (sc_prohibit_stdio-safer_without_use): Likewise.
10503         (sc_prohibit_xfreopen_without_use): Likewise.
10504
10505 2011-05-17  Jim Meyering  <meyering@redhat.com>
10506
10507         announce-gen: fail if the NEWS delta is empty
10508         If there's nothing noteworthy in NEWS, then either you forgot
10509         or you shouldn't be releasing.
10510         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
10511
10512 2011-05-17  Pádraig Brady <P@draigBrady.com>
10513
10514         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
10515         reserved symbols starting with double underscore from the check.
10516
10517 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
10518
10519         intprops: add doc
10520         * doc/intprops.texi: New file, documenting intprops.
10521         * doc/gnulib.texi (Particular Modules): Include it.
10522
10523         verify: add doc to gnulib manual and fix example
10524         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
10525         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
10526         (Compile-time Assertions): Fix example so it can't overflow.
10527
10528 2011-05-17  Jim Meyering  <meyering@redhat.com>
10529
10530         warnings.m4: don't usurp save_CPPFLAGS variable name
10531         * m4/warnings.m4: Prefix local temporary variable name with gl_.
10532
10533         doc: fix typo
10534         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
10535
10536 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
10537             Bruno Haible  <bruno@clisp.org>
10538
10539         doc: Tweak recent change.
10540         * README (Portability guidelines): Tweak new text.
10541         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
10542         Interix 6.1.
10543
10544 2011-05-16  Eric Blake  <eblake@redhat.com>
10545
10546         inttypes: avoid autoconf warning
10547         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
10548         * m4/stdint.m4 (gl_STDINT_H): Likewise.
10549
10550 2011-05-16  Sam Steingold <sds@gnu.org>
10551         and Eric Blake  <eblake@redhat.com>
10552
10553         vc-list-files: accept multiple directory operands
10554         * build-aux/vc-list-files: Iterate over all remaining operands.
10555
10556 2011-05-16  Bruno Haible  <bruno@clisp.org>
10557
10558         Fix confusion regarding deprecated modules.
10559         * modules/calloc (Status, Notice): Mark module as deprecated, not
10560         obsolete.
10561         * modules/fnmatch-posix (Status, Notice): Likewise.
10562         * modules/getdate (Status, Notice): Likewise.
10563         * modules/getopt (Status, Notice): Likewise.
10564         * modules/malloc (Status, Notice): Likewise.
10565         * modules/pipe (Status, Notice): Likewise.
10566         * modules/realloc (Status, Notice): Likewise.
10567         * modules/rename-dest-slash (Status, Notice): Likewise.
10568         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
10569         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
10570         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
10571         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
10572         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
10573
10574 2011-05-16  Bruno Haible  <bruno@clisp.org>
10575
10576         doc: List the target platforms.
10577         * doc/gnulib-intro.texi (Target Platforms): New section.
10578         * doc/gnulib.texi (Introduction): Update menu.
10579         * README (Portability guidelines): Refer to the new section. Update
10580         statement about oldest supported environment. Remove rationale why
10581         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
10582         unportable C89 function.
10583         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
10584         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
10585
10586 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
10587
10588         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
10589
10590 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
10591
10592         intprops-tests: new module
10593         * modules/intprops-tests, tests/test-intprops.c: New files.
10594
10595         intprops: add safe, portable integer overflow checking
10596         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
10597         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
10598         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
10599         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
10600         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
10601         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
10602         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
10603         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
10604         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
10605         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
10606         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
10607
10608 2011-05-12  James Youngman  <jay@gnu.org>
10609
10610         Add a test for glibc's Bugzilla bug #12378.
10611         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
10612         doesn't allow the literal matching of a lone "[" (which is
10613         required by POSIX).
10614         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
10615
10616 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
10617
10618         Sync glibc change fixing Bugzilla bug #12378.
10619         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
10620         beginning and fall back to matching as normal character if the
10621         string ends before the matching ']' is found.  This is what POSIX
10622         requires.
10623
10624 2011-05-13  Eric Blake  <eblake@redhat.com>
10625
10626         getcwd-lgpl: relax test for FreeBSD
10627         * doc/posix-functions/getcwd.texi (getcwd): Document portability
10628         issue.
10629         * tests/test-getcwd-lgpl.c (main): Relax test.
10630         Reported by Matthias Bolte.
10631
10632 2011-05-11  Eric Blake  <eblake@redhat.com>
10633
10634         test-fflush: silence compiler warning
10635         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
10636
10637 2011-05-11  Bruno Haible  <bruno@clisp.org>
10638
10639         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
10640         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
10641         * modules/canonicalize (Depends-on): Add 'nocrash'.
10642         * modules/canonicalize-lgpl (Depends-on): Likewise.
10643         * doc/posix-functions/realpath.texi: Update platforms list.
10644         Reported by Ryan Schmidt <ryandesign@macports.org>.
10645
10646 2011-05-11  Bruno Haible  <bruno@clisp.org>
10647
10648         group-member: Declare function in <unistd.h>.
10649         * lib/unistd.in.h (group_member): New declaration.
10650         * lib/group-member.h: Remove file.
10651         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
10652         * tests/test-unistd-c++.cc: Check signature of group_member.
10653         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
10654         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
10655         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
10656         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
10657         HAVE_GROUP_MEMBER.
10658         * modules/group-member (Files): Remove lib/group-member.h.
10659         (Depends-on): Add unistd. Specify conditions.
10660         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
10661         (Include): Change to <unistd.h>.
10662         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
10663         HAVE_GROUP_MEMBER.
10664         * NEWS: Mention the change.
10665         * lib/euidaccess.c: Don't include group-member.h.
10666
10667 2011-05-11  Bruno Haible  <bruno@clisp.org>
10668
10669         group-member: Document module.
10670         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
10671         module.
10672
10673 2011-05-11  Bruno Haible  <bruno@clisp.org>
10674
10675         fclose: Fix mistake earlier today.
10676         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
10677
10678 2011-05-11  Eric Blake  <eblake@redhat.com>
10679
10680         fclose: preserve fflush errors
10681         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
10682         Reported by Jim Meyering.
10683
10684         bootstrap: support a prereq of 'rpcgen -' on RHEL5
10685         * build-aux/bootstrap (check_versions): When no specific version
10686         is required, merely check that the app produces an exit status
10687         that indicates its existence.
10688
10689         maint.mk: drop redundant check
10690         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
10691         the same but better.
10692
10693 2011-05-11  Bruno Haible  <bruno@clisp.org>
10694
10695         fclose: Fix possible link error.
10696         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
10697         unregister_shadow_fd. Improve comments.
10698         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
10699         Eric Blake.
10700
10701 2011-05-11  Jim Meyering  <meyering@redhat.com>
10702
10703         maint.mk: improve "can not" detection and generalize rule name
10704         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
10705         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
10706         Use the same technique as in sc_prohibit_doubled_word, so that
10707         we recognize "can not" also when the words are separated by a newline.
10708         Suggested by Eric Blake.
10709         (perl_filename_lineno_text_): Define.  Factored out of...
10710         (prohibit_doubled_word_): ...here.  Use the new definition.
10711         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
10712         (prohibit_undesirable_word_seq_RE_): New overridable variable.
10713         (ignore_undesirable_word_sequence_RE_): New overridable variable.
10714
10715 2011-05-10  Eric Blake  <eblake@redhat.com>
10716
10717         fclose: avoid double close race when possible
10718         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
10719         all but WINDOWS_SOCKETS.
10720
10721 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
10722
10723         openat: correct new comment
10724         * lib/openat-proc.c (openat_proc_name): Correct the comment.
10725
10726 2011-05-10  Jim Meyering  <meyering@redhat.com>
10727
10728         openat: add comments
10729         * lib/openat-proc.c (openat_proc_name): Add comments,
10730         mostly from Eric Blake.
10731
10732 2011-05-09  Eric Blake  <eblake@redhat.com>
10733
10734         openat: reduce syscalls in first probe of /proc
10735         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
10736         be a directory.  Simplify the probe for .. bugs.
10737         * modules/openat (Depends-on): Drop same-inode.
10738         Reported by Bastien ROUCARIES.
10739
10740 2011-05-09  Jim Meyering  <meyering@redhat.com>
10741
10742         maint.mk: change semantics/name of tight_scope variables
10743         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
10744         Rename variables to align with semantics that make them more useful.
10745
10746         maint.mk: tweak new rule's name not to impinge
10747         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
10748         (sc_tight_scope): Use new rule name rather than $@-0.
10749
10750         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
10751         * top/maint.mk (sc_tight_scope): New rule.
10752         (sc_tight_scope-0): New rule, ifdef'd out.
10753         (_gl_TS_dir): Default.
10754         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
10755         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
10756
10757 2011-05-09  Simon Josefsson  <simon@josefsson.org>
10758
10759         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
10760         Haible <bruno@clisp.org>.
10761
10762 2011-05-08  Bruno Haible  <bruno@clisp.org>
10763
10764         Comments.
10765         * m4/isnanf.m4: Add comment.
10766         * m4/isnanl.m4: Likewise.
10767
10768 2011-05-08  Bruno Haible  <bruno@clisp.org>
10769
10770         glob: Remove obsolete macro.
10771         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
10772
10773 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
10774
10775         intprops: Sun C 5.11 supports __typeof__
10776         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
10777         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
10778         which is new.
10779         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
10780
10781         intprops: switch to usual gnulib indenting and naming
10782         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
10783         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
10784
10785         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
10786
10787 2011-05-08  Jim Meyering  <meyering@redhat.com>
10788
10789         maint.mk: suppress "Entering/Leaving directory" diag in announcement
10790         * top/maint.mk (release-prep): Use make's --no-print-directory
10791         option when generating the announcement.  This eliminates the
10792         pesky "make[2]: Entering/Leaving directory" diagnostics in the
10793         generated announcement template.
10794
10795 2011-05-08  Bruno Haible  <bruno@clisp.org>
10796
10797         tzset: Fix gettimeofday wrapper on Solaris 2.6.
10798         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
10799         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
10800
10801 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
10802
10803         ignore-value, verify: Omit include files from lib_SOURCES.
10804         * modules/ignore-value, modules/verify (Makefile.am):
10805         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
10806         that leads Automake to duplicate use of am__objects_... variables
10807         in Makefile.in.  See
10808         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
10809
10810 2011-05-07  Bruno Haible  <bruno@clisp.org>
10811
10812         fclose: Simplify autoconf macro.
10813         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
10814         defined.
10815
10816 2011-05-07  Bruno Haible  <bruno@clisp.org>
10817
10818         canonicalize-lgpl: Fix autoconf macro ordering bug.
10819         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
10820         gl_STDLIB_H_DEFAULTS.
10821
10822 2011-05-06  Eric Blake  <eblake@redhat.com>
10823
10824         maintainer-makefile: make sc_po_check easier to tune
10825         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
10826         to probe for strings, such as an alternate location for gnulib.
10827
10828         fclose: guarantee behavior on seekable stdin
10829         * modules/fclose (Depends-on): Add fflush.
10830         * doc/posix-functions/fclose.texi (fclose): Document this.
10831         * tests/test-fclose.c (main): Make test for this unconditional.
10832
10833 2011-05-06  Bruno Haible  <bruno@clisp.org>
10834
10835         fflush, fpurge: Relicense under LGPLv2+.
10836         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
10837         * modules/fpurge (License): Likewise.
10838         With permission from Eric Blake and Jim Meyering.
10839         Suggested by Eric Blake.
10840
10841 2011-05-06  Karl Berry  <karl@gnu.org>
10842
10843         * MODULES.html.sh (func_all_modules): remove exit.
10844
10845 2011-05-06  Jim Meyering  <meyering@redhat.com>
10846
10847         maint.mk: use info-gnu@ as the default only for a stable release
10848         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
10849         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
10850         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
10851         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
10852
10853 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
10854
10855         assert-h: new module, which supports C1X-style static_assert
10856         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
10857         * lib/verify.h: Revamp so that this can be copied into assert.h,
10858         while retaining the ability to use it standalone as before.
10859         Rename private identifiers so as not to encroach on the
10860         standard C namespace, since this is now used by assert.h.
10861         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
10862         the old verify_true.
10863         (_GL_VERIFY_TRUE): New macro, with much of the contents of
10864         the old verify_true.  Use _GL_VERIFY_TYPE.
10865         (_GL_VERIFY): New macro, with much of the contents of the old verify.
10866         (static_assert): New macro, if _GL_STATIC_ASSERT_H
10867         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
10868         defined when this file is copied into the replacement assert.h.
10869         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
10870         and _Static_assert is not built in.
10871         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
10872         defined, and use the new macros mentioned above.
10873         * doc/posix-headers/assert.texi: Document this.
10874
10875 2011-05-05  Bruno Haible  <bruno@clisp.org>
10876
10877         fclose, fflush: Respect rules for use of AC_LIBOBJ.
10878         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
10879         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
10880         gl_REPLACE_FCLOSE here.
10881         * modules/fflush (Depends-on): Remove fclose.
10882         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
10883         combination with module 'fclose'.
10884
10885 2011-05-05  Bruno Haible  <bruno@clisp.org>
10886
10887         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
10888         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
10889         gl_FUNC_FFLUSH.
10890         (gl_FUNC_FFLUSH): Use it.
10891         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
10892         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
10893         gl_REPLACE_FSEEKO here.
10894
10895 2011-05-05  Bruno Haible  <bruno@clisp.org>
10896
10897         tzset: Relicense under LGPL.
10898         * modules/tzset (License): Change to LGPL.
10899         No agreement needed; it's a no-op.
10900
10901         strtoimax, strtoumax: Relicense under LGPL.
10902         * modules/strtoimax (License): Change to LGPL.
10903         * modules/strtoumax (License): Likewise.
10904         With permission from Jim Meyering, Paul Eggert:
10905         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
10906         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
10907
10908         getgroups: Relicense under LGPL.
10909         * modules/getgroups (License): Change to LGPL.
10910         With permission from Jim Meyering, Paul Eggert, Eric Blake:
10911         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
10912         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
10913         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
10914
10915         nanosleep: Relicense under LGPL.
10916         * modules/nanosleep (License): Change to LGPL.
10917         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
10918         Haible:
10919         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
10920         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
10921         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
10922         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
10923
10924         futimens: Relicense under LGPL.
10925         * modules/futimens (License): Change to LGPL.
10926         With permission from Eric Blake:
10927         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
10928
10929         fflush: Relicense under LGPL.
10930         * modules/fflush (License): Change to LGPL.
10931         With permission from Eric Blake, Bruno Haible, Jim Meyering:
10932         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
10933         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
10934         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
10935
10936         tmpfile: Relicense under LGPL.
10937         * modules/tmpfile (License): Change to LGPL.
10938         With permission from Ben Pfaff:
10939         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
10940
10941         isfinite: Relicense under LGPL.
10942         * modules/isfinite (License): Change to LGPL.
10943         With permission from Ben Pfaff, Bruno Haible:
10944         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
10945         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
10946
10947         acosl..tanl: Relicense under LGPL.
10948         * modules/acosl (License): Change to LGPL.
10949         * modules/asinl (License): Likewise.
10950         * modules/atanl (License): Likewise.
10951         * modules/cosl (License): Likewise.
10952         * modules/expl (License): Likewise.
10953         * modules/logl (License): Likewise.
10954         * modules/sinl (License): Likewise.
10955         * modules/sqrtl (License): Likewise.
10956         * modules/tanl (License): Likewise.
10957         Source code originally from glibc and Paolo Bonzini. Agreements:
10958         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
10959         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
10960
10961 2011-05-05  Bruno Haible  <bruno@clisp.org>
10962
10963         signal: Define sighandler_t.
10964         * lib/signal.in.h (sighandler_t): New type.
10965         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
10966         whether sighandler_t is defined.
10967         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
10968         * modules/signal (Depends-on): Add extensions.
10969         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
10970         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
10971         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
10972
10973 2011-05-05  Eric Blake  <eblake@redhat.com>
10974
10975         maint: remove useless REPLACE_*_H macros
10976         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
10977         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
10978         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
10979         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
10980         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
10981         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
10982         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
10983         * m4/btowc.m4: Update callers.
10984         * m4/dirfd.m4: Likewise.
10985         * m4/duplocale.m4: Likewise.
10986         * m4/fchdir.m4: Likewise.
10987         * m4/fdopendir.m4: Likewise.
10988         * m4/inet_ntop.m4: Likewise.
10989         * m4/inet_pton.m4: Likewise.
10990         * m4/ioctl.m4: Likewise.
10991         * m4/mbrlen.m4: Likewise.
10992         * m4/mbrtowc.m4: Likewise.
10993         * m4/mbsinit.m4: Likewise.
10994         * m4/mbsnrtowcs.m4: Likewise.
10995         * m4/mbsrtowcs.m4: Likewise.
10996         * m4/poll.m4: Likewise.
10997         * m4/setlocale.m4: Likewise.
10998         * m4/wcrtomb.m4: Likewise.
10999         * m4/wcsnrtombs.m4: Likewise.
11000         * m4/wcsrtombs.m4: Likewise.
11001         * m4/wctob.m4: Likewise.
11002         * m4/wcwidth.m4: Likewise.
11003         * modules/posix_spawn: Likewise.
11004         * modules/posix_spawn_file_actions_addclose: Likewise.
11005         * modules/posix_spawn_file_actions_adddup2: Likewise.
11006         * modules/posix_spawn_file_actions_addopen: Likewise.
11007         * modules/posix_spawn_file_actions_destroy: Likewise.
11008         * modules/posix_spawn_file_actions_init: Likewise.
11009         * modules/posix_spawnattr_destroy: Likewise.
11010         * modules/posix_spawnattr_getflags: Likewise.
11011         * modules/posix_spawnattr_getpgroup: Likewise.
11012         * modules/posix_spawnattr_getschedparam: Likewise.
11013         * modules/posix_spawnattr_getschedpolicy: Likewise.
11014         * modules/posix_spawnattr_getsigdefault: Likewise.
11015         * modules/posix_spawnattr_getsigmask: Likewise.
11016         * modules/posix_spawnattr_init: Likewise.
11017         * modules/posix_spawnattr_setflags: Likewise.
11018         * modules/posix_spawnattr_setpgroup: Likewise.
11019         * modules/posix_spawnattr_setschedparam: Likewise.
11020         * modules/posix_spawnattr_setschedpolicy: Likewise.
11021         * modules/posix_spawnattr_setsigdefault: Likewise.
11022         * modules/posix_spawnattr_setsigmask: Likewise.
11023         * modules/posix_spawnp: Likewise.
11024
11025 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
11026
11027         Add option to do-release-commit-and-tag to specify branch.
11028         * build-aux/do-release-commit-and-tag: Add --branch.
11029
11030 2011-05-03  Bruno Haible  <bruno@clisp.org>
11031
11032         Avoid unnecessary compilation units, through conditional dependencies.
11033         * modules/accept (Depends-on): Add conditions to the dependencies.
11034         * modules/acosl (Depends-on): Likewise.
11035         * modules/argz (Depends-on): Likewise.
11036         * modules/asinl (Depends-on): Likewise.
11037         * modules/atanl (Depends-on): Likewise.
11038         * modules/atoll (Depends-on): Likewise.
11039         * modules/bind (Depends-on): Likewise.
11040         * modules/btowc (Depends-on): Likewise.
11041         * modules/canonicalize-lgpl (Depends-on): Likewise.
11042         * modules/ceil (Depends-on): Likewise.
11043         * modules/ceilf (Depends-on): Likewise.
11044         * modules/ceill (Depends-on): Likewise.
11045         * modules/chdir-long (Depends-on): Likewise.
11046         * modules/chown (Depends-on): Likewise.
11047         * modules/close (Depends-on): Likewise.
11048         * modules/connect (Depends-on): Likewise.
11049         * modules/cosl (Depends-on): Likewise.
11050         * modules/dirfd (Depends-on): Likewise.
11051         * modules/dprintf (Depends-on): Likewise.
11052         * modules/dprintf-posix (Depends-on): Likewise.
11053         * modules/error (Depends-on): Likewise.
11054         * modules/euidaccess (Depends-on): Likewise.
11055         * modules/expl (Depends-on): Likewise.
11056         * modules/faccessat (Depends-on): Likewise.
11057         * modules/fchdir (Depends-on): Likewise.
11058         * modules/fclose (Depends-on): Likewise.
11059         * modules/fcntl (Depends-on): Likewise.
11060         * modules/fdopendir (Depends-on): Likewise.
11061         * modules/fflush (Depends-on): Likewise.
11062         * modules/floor (Depends-on): Likewise.
11063         * modules/floorf (Depends-on): Likewise.
11064         * modules/floorl (Depends-on): Likewise.
11065         * modules/fnmatch (Depends-on): Likewise.
11066         * modules/fopen (Depends-on): Likewise.
11067         * modules/fprintf-posix (Depends-on): Likewise.
11068         * modules/frexp (Depends-on): Likewise.
11069         * modules/frexp-nolibm (Depends-on): Likewise.
11070         * modules/frexpl (Depends-on): Likewise.
11071         * modules/frexpl-nolibm (Depends-on): Likewise.
11072         * modules/fseek (Depends-on): Likewise.
11073         * modules/fsusage (Depends-on): Likewise.
11074         * modules/ftell (Depends-on): Likewise.
11075         * modules/ftello (Depends-on): Likewise.
11076         * modules/futimens (Depends-on): Likewise.
11077         * modules/getcwd (Depends-on): Likewise.
11078         * modules/getcwd-lgpl (Depends-on): Likewise.
11079         * modules/getdelim (Depends-on): Likewise.
11080         * modules/getdomainname (Depends-on): Likewise.
11081         * modules/getgroups (Depends-on): Likewise.
11082         * modules/gethostname (Depends-on): Likewise.
11083         * modules/getline (Depends-on): Likewise.
11084         * modules/getlogin_r (Depends-on): Likewise.
11085         * modules/getopt-posix (Depends-on): Likewise.
11086         * modules/getpeername (Depends-on): Likewise.
11087         * modules/getsockname (Depends-on): Likewise.
11088         * modules/getsockopt (Depends-on): Likewise.
11089         * modules/getsubopt (Depends-on): Likewise.
11090         * modules/getusershell (Depends-on): Likewise.
11091         * modules/glob (Depends-on): Likewise.
11092         * modules/grantpt (Depends-on): Likewise.
11093         * modules/iconv_open (Depends-on): Likewise.
11094         * modules/iconv_open-utf (Depends-on): Likewise.
11095         * modules/inet_ntop (Depends-on): Likewise.
11096         * modules/inet_pton (Depends-on): Likewise.
11097         * modules/ioctl (Depends-on): Likewise.
11098         * modules/isapipe (Depends-on): Likewise.
11099         * modules/isfinite (Depends-on): Likewise.
11100         * modules/isinf (Depends-on): Likewise.
11101         * modules/lchown (Depends-on): Likewise.
11102         * modules/ldexpl (Depends-on): Likewise.
11103         * modules/link (Depends-on): Likewise.
11104         * modules/linkat (Depends-on): Likewise.
11105         * modules/listen (Depends-on): Likewise.
11106         * modules/logl (Depends-on): Likewise.
11107         * modules/lstat (Depends-on): Likewise.
11108         * modules/mbrlen (Depends-on): Likewise.
11109         * modules/mbrtowc (Depends-on): Likewise.
11110         * modules/mbsinit (Depends-on): Likewise.
11111         * modules/mbsnrtowcs (Depends-on): Likewise.
11112         * modules/mbsrtowcs (Depends-on): Likewise.
11113         * modules/mbtowc (Depends-on): Likewise.
11114         * modules/memcmp (Depends-on): Likewise.
11115         * modules/mkdir (Depends-on): Likewise.
11116         * modules/mkdtemp (Depends-on): Likewise.
11117         * modules/mkfifo (Depends-on): Likewise.
11118         * modules/mkfifoat (Depends-on): Likewise.
11119         * modules/mknod (Depends-on): Likewise.
11120         * modules/mkostemp (Depends-on): Likewise.
11121         * modules/mkostemps (Depends-on): Likewise.
11122         * modules/mkstemp (Depends-on): Likewise.
11123         * modules/mkstemps (Depends-on): Likewise.
11124         * modules/mktime (Depends-on): Likewise.
11125         * modules/nanosleep (Depends-on): Likewise.
11126         * modules/open (Depends-on): Likewise.
11127         * modules/openat (Depends-on): Likewise.
11128         * modules/perror (Depends-on): Likewise.
11129         * modules/poll (Depends-on): Likewise.
11130         * modules/popen (Depends-on): Likewise.
11131         * modules/posix_spawn (Depends-on): Likewise.
11132         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
11133         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
11134         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
11135         * modules/posix_spawnp (Depends-on): Likewise.
11136         * modules/pread (Depends-on): Likewise.
11137         * modules/printf-posix (Depends-on): Likewise.
11138         * modules/ptsname (Depends-on): Likewise.
11139         * modules/putenv (Depends-on): Likewise.
11140         * modules/pwrite (Depends-on): Likewise.
11141         * modules/readline (Depends-on): Likewise.
11142         * modules/readlink (Depends-on): Likewise.
11143         * modules/readlinkat (Depends-on): Likewise.
11144         * modules/recv (Depends-on): Likewise.
11145         * modules/recvfrom (Depends-on): Likewise.
11146         * modules/regex (Depends-on): Likewise.
11147         * modules/remove (Depends-on): Likewise.
11148         * modules/rename (Depends-on): Likewise.
11149         * modules/renameat (Depends-on): Likewise.
11150         * modules/rmdir (Depends-on): Likewise.
11151         * modules/round (Depends-on): Likewise.
11152         * modules/roundf (Depends-on): Likewise.
11153         * modules/roundl (Depends-on): Likewise.
11154         * modules/rpmatch (Depends-on): Likewise.
11155         * modules/select (Depends-on): Likewise.
11156         * modules/send (Depends-on): Likewise.
11157         * modules/sendto (Depends-on): Likewise.
11158         * modules/setenv (Depends-on): Likewise.
11159         * modules/setlocale (Depends-on): Likewise.
11160         * modules/setsockopt (Depends-on): Likewise.
11161         * modules/shutdown (Depends-on): Likewise.
11162         * modules/sigaction (Depends-on): Likewise.
11163         * modules/signbit (Depends-on): Likewise.
11164         * modules/sigprocmask (Depends-on): Likewise.
11165         * modules/sinl (Depends-on): Likewise.
11166         * modules/sleep (Depends-on): Likewise.
11167         * modules/snprintf (Depends-on): Likewise.
11168         * modules/snprintf-posix (Depends-on): Likewise.
11169         * modules/socket (Depends-on): Likewise.
11170         * modules/sprintf-posix (Depends-on): Likewise.
11171         * modules/sqrtl (Depends-on): Likewise.
11172         * modules/stat (Depends-on): Likewise.
11173         * modules/strchrnul (Depends-on): Likewise.
11174         * modules/strdup-posix (Depends-on): Likewise.
11175         * modules/strerror (Depends-on): Likewise.
11176         * modules/strerror_r-posix (Depends-on): Likewise.
11177         * modules/strndup (Depends-on): Likewise.
11178         * modules/strnlen (Depends-on): Likewise.
11179         * modules/strptime (Depends-on): Likewise.
11180         * modules/strsep (Depends-on): Likewise.
11181         * modules/strsignal (Depends-on): Likewise.
11182         * modules/strstr-simple (Depends-on): Likewise.
11183         * modules/strtod (Depends-on): Likewise.
11184         * modules/strtoimax (Depends-on): Likewise.
11185         * modules/strtok_r (Depends-on): Likewise.
11186         * modules/strtoumax (Depends-on): Likewise.
11187         * modules/symlink (Depends-on): Likewise.
11188         * modules/symlinkat (Depends-on): Likewise.
11189         * modules/tanl (Depends-on): Likewise.
11190         * modules/tcgetsid (Depends-on): Likewise.
11191         * modules/tmpfile (Depends-on): Likewise.
11192         * modules/trunc (Depends-on): Likewise.
11193         * modules/truncf (Depends-on): Likewise.
11194         * modules/truncl (Depends-on): Likewise.
11195         * modules/uname (Depends-on): Likewise.
11196         * modules/unlink (Depends-on): Likewise.
11197         * modules/unlockpt (Depends-on): Likewise.
11198         * modules/unsetenv (Depends-on): Likewise.
11199         * modules/usleep (Depends-on): Likewise.
11200         * modules/utimensat (Depends-on): Likewise.
11201         * modules/vasprintf (Depends-on): Likewise.
11202         * modules/vdprintf (Depends-on): Likewise.
11203         * modules/vdprintf-posix (Depends-on): Likewise.
11204         * modules/vfprintf-posix (Depends-on): Likewise.
11205         * modules/vprintf-posix (Depends-on): Likewise.
11206         * modules/vsnprintf (Depends-on): Likewise.
11207         * modules/vsnprintf-posix (Depends-on): Likewise.
11208         * modules/vsprintf-posix (Depends-on): Likewise.
11209         * modules/wcrtomb (Depends-on): Likewise.
11210         * modules/wcscasecmp (Depends-on): Likewise.
11211         * modules/wcscspn (Depends-on): Likewise.
11212         * modules/wcsdup (Depends-on): Likewise.
11213         * modules/wcsncasecmp (Depends-on): Likewise.
11214         * modules/wcsnrtombs (Depends-on): Likewise.
11215         * modules/wcspbrk (Depends-on): Likewise.
11216         * modules/wcsrtombs (Depends-on): Likewise.
11217         * modules/wcsspn (Depends-on): Likewise.
11218         * modules/wcsstr (Depends-on): Likewise.
11219         * modules/wcstok (Depends-on): Likewise.
11220         * modules/wcswidth (Depends-on): Likewise.
11221         * modules/wctob (Depends-on): Likewise.
11222         * modules/wctomb (Depends-on): Likewise.
11223         * modules/wctype (Depends-on): Likewise.
11224         * modules/wcwidth (Depends-on): Likewise.
11225         * modules/write (Depends-on): Likewise.
11226
11227 2011-05-03  Bruno Haible  <bruno@clisp.org>
11228
11229         Support for conditional dependencies.
11230         * doc/gnulib.texi (Module description): Document the syntax of
11231         conditional dependencies.
11232         * gnulib-tool: New option --conditional-dependencies.
11233         (func_usage): Document it.
11234         (cond_dependencies): New variable.
11235         (func_get_automake_snippet_conditional,
11236         func_get_automake_snippet_unconditional): New functions, extracted from
11237         func_get_automake_snippet.
11238         (func_get_automake_snippet): Use them.
11239         (sed_first_32_chars): New variable.
11240         (func_module_shellfunc_name): New function.
11241         (func_module_shellvar_name): New function.
11242         (func_module_conditional_name): New function.
11243         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
11244         func_cond_module_condition): New functions.
11245         (func_modules_transitive_closure): Add support for conditional
11246         dependencies.
11247         (func_emit_lib_Makefile_am): For a conditional module, enclose the
11248         conditional automake snippet in an automake conditional.
11249         (func_emit_autoconf_snippets): Emit shell functions that contain the
11250         code for conditional modules.
11251         (func_import, func_create_testdir): Update specification.
11252
11253 2011-05-03  Eric Blake  <eblake@redhat.com>
11254
11255         test-getaddrinfo: report error information
11256         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
11257
11258 2011-05-03  Jim Meyering  <meyering@redhat.com>
11259
11260         bootstrap: avoid build failure when $GZIP is set
11261         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
11262         program name.  If defined at all, it is supposed to list gzip options.
11263         Reported by Alan Curry in http://debbugs.gnu.org/8609
11264
11265 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
11266
11267         readme-release: new module with release instructions
11268         * modules/readme-release: New module.
11269         * top/README-release: New file, from coreutils, grep, diffutils.
11270         * MODULES.html.sh (Support for maintaining and releasing): Add it.
11271
11272 2011-05-02  Eric Blake  <eblake@redhat.com>
11273
11274         fflush: also replace fclose when fixing fflush
11275         * modules/fflush (Depends-on): Add fclose.
11276         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
11277         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
11278         memstreams with no backing fd.
11279         * doc/posix-functions/fclose.texi (fclose): Document the use of
11280         fflush module to fix the bug.
11281         * tests/test-fclose.c (main): Relax test when fclose is used in
11282         isolation.
11283
11284         fclose: add some tests
11285         * modules/fclose-tests: New test module.
11286         * tests/test-fclose.c: New file.
11287         * doc/posix-functions/fclose.texi (fclose): Document the bug.
11288
11289         fclose: reduced dependencies
11290         * modules/fclose (Depends-on): Switch from fflush/fseeko to
11291         simpler lseek.
11292         * lib/fclose.c (rpl_fclose): Likewise.
11293         Reported by Simon Josefsson.
11294
11295         exit: drop remaining clients
11296         * modules/argmatch (Depends-on): Replace exit with stdlib.
11297         * modules/copy-file (Depends-on): Likewise.
11298         * modules/execute (Depends-on): Likewise.
11299         * modules/exitfail (Depends-on): Likewise.
11300         * modules/obstack (Depends-on): Likewise.
11301         * modules/pagealign_alloc (Depends-on): Likewise.
11302         * modules/pipe-filter-gi (Depends-on): Likewise.
11303         * modules/pipe-filter-ii (Depends-on): Likewise.
11304         * modules/savewd (Depends-on): Likewise.
11305         * modules/spawn-pipe (Depends-on): Likewise.
11306         * modules/wait-process (Depends-on): Likewise.
11307         * modules/xsetenv (Depends-on): Likewise.
11308         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
11309         * modules/git-merge-changelog (Depends-on): Likewise.
11310         * modules/long-options (Depends-on): Likewise.
11311         * modules/pt_chown (Depends-on): Likewise.
11312         * modules/sysexits (Depends-on): Likewise.
11313
11314         freading: relax license from LGPLv3+ to LGPLv2+
11315         * modules/freading (License): Relax LGPL version.
11316
11317 2011-05-02  Bruno Haible  <bruno@clisp.org>
11318
11319         fchdir: Remove unused dependencies.
11320         * modules/fchdir (Depends-on): Remove include_next.
11321
11322 2011-05-02  Bruno Haible  <bruno@clisp.org>
11323
11324         gnulib-tool: Refactor.
11325         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
11326         from func_emit_autoconf_snippets.
11327         (func_emit_autoconf_snippets): Use it.
11328
11329 2011-05-02  Simon Josefsson  <simon@josefsson.org>
11330
11331         * NEWS: Document removal of 'exit'.
11332         * modules/exit: Remove file.
11333
11334 2011-05-01  Bruno Haible  <bruno@clisp.org>
11335
11336         Update DEPENDENCIES.
11337         * DEPENDENCIES (gettext): Recommend the newest release.
11338         Reported by Simon Josefsson.
11339
11340 2011-05-01  Bruno Haible  <bruno@clisp.org>
11341
11342         gnulib-tool: Reduce code duplication.
11343         * gnulib-tool (func_emit_autoconf_snippets): New function.
11344         (func_import, func_create_testdir): Use it.
11345
11346 2011-04-30  Eric Blake  <eblake@redhat.com>
11347
11348         fclose: don't fail on non-seekable input stream
11349         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
11350         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
11351         since fflush is allowed to fail in that case.
11352
11353 2011-04-30  Bruno Haible  <bruno@clisp.org>
11354
11355         dup3: cleanup
11356         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
11357
11358 2011-04-30  Bruno Haible  <bruno@clisp.org>
11359
11360         netdb: Make it work in C++ mode.
11361         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
11362         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
11363         module.
11364         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
11365         gl_MODULE_INDICATOR_FOR_TESTS.
11366         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
11367         * modules/netdb-c++-tests: New file.
11368         * tests/test-netdb-c++.cc: New file.
11369
11370 2011-04-30  Bruno Haible  <bruno@clisp.org>
11371
11372         New modules 'vfscanf', 'vscanf'.
11373         * modules/vfscanf: New file.
11374         * modules/vscanf: New file.
11375         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
11376         here.
11377         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
11378         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
11379
11380 2011-04-30  Bruno Haible  <bruno@clisp.org>
11381
11382         passfd: Add comments.
11383         * lib/passfd.c: Add comments about platforms.
11384
11385 2011-04-30  Bruno Haible  <bruno@clisp.org>
11386
11387         sys_uio: Make <sys/uio.h> self-contained.
11388         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
11389         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
11390
11391 2011-04-30  Bruno Haible  <bruno@clisp.org>
11392
11393         sys_socket: Ensure 'struct iovec' definition.
11394         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
11395         <sys/socket.h>.
11396         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
11397
11398 2011-04-30  Bruno Haible  <bruno@clisp.org>
11399
11400         sys_uio: Protect definition of 'struct iovec'.
11401         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
11402         it as a C struct.
11403
11404 2011-04-30  Bruno Haible  <bruno@clisp.org>
11405
11406         manywarnings: fix indentation
11407         * m4/manywarnings.m4: Indent by 2 spaces consistently.
11408
11409 2011-04-30  Pádraig Brady <P@draigBrady.com>
11410
11411         manywarnings: add -Wno-missing-field-initializers if needed.
11412         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
11413         option if it's needed to allow initialization with { 0, }
11414
11415 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
11416
11417         announce-gen: cosmetic improvement
11418         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
11419
11420 2011-04-29  Jim Meyering  <meyering@redhat.com>
11421
11422         vc-list-files: indent with spaces, not TABs
11423         * build-aux/vc-list-files: Convert leading TABs to spaces,
11424         to match the style of most other files in gnulib.
11425
11426         announce-gen: indent with spaces, not TABs
11427         * build-aux/announce-gen: Convert all TABs to spaces, to match
11428         the style of most other files in gnulib.
11429
11430 2011-04-29  Eric Blake  <eblake@redhat.com>
11431
11432         quotearg: avoid uninitialized variable use
11433         * lib/quotearg.c (quoting_options_from_style): Initialize
11434         remaining fields, and ensure that custom styles are only used via
11435         quoting_options rather than quoting_style.
11436
11437 2011-04-29  Jim Meyering  <meyering@redhat.com>
11438
11439         maint.mk: remove unused VC-tag variable
11440         * top/maint.mk (VC-tag): Remove unused variable.
11441
11442 2011-04-29  Bruno Haible  <bruno@clisp.org>
11443
11444         netdb: fix gai_strerror replacements
11445         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
11446         * modules/netdb: Substitute it.
11447
11448 2011-04-29  Jim Meyering  <meyering@redhat.com>
11449
11450         test-getcwd.c: avoid new set-but-not-used warning
11451         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
11452         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
11453         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
11454         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
11455
11456         test-hash.c: avoid a new shadowing warning
11457         * tests/test-hash.c (main): Don't shadow "dup".
11458
11459 2011-04-28  Eric Blake  <eblake@redhat.com>
11460
11461         getaddrinfo: fix gai_strerror signature
11462         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
11463         and work around mingw with UNICODE defined.
11464         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
11465         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
11466         * modules/netdb (Makefile.am): Substitute it.
11467         * lib/netdb.in.h (gai_strerror): Declare replacement.
11468         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
11469         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
11470         the fix.
11471
11472         getsockopt: avoid compiler warning
11473         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
11474         Reported by Matthias Bolte.
11475
11476         tests: drop unused link dependency
11477         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
11478         * modules/dirent-safer-tests (Makefile.am): Likewise.
11479         * modules/fdopendir-tests (Makefile.am): Likewise.
11480         * modules/mkfifoat-tests (Makefile.am): Likewise.
11481         * modules/openat-safer-tests (Makefile.am): Likewise.
11482         * modules/openat-tests (Makefile.am): Likewise.
11483         * modules/readlinkat-tests (Makefile.am): Likewise.
11484         * modules/symlinkat-tests (Makefile.am): Likewise.
11485         * modules/linkat-tests (Makefile.am): Likewise.
11486         (Depends-on): Switch to filenamecat-lgpl.
11487         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
11488         LIBINTL.
11489         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
11490         * tests/test-linkat.c (main): Don't require xalloc.
11491
11492         hash, mgetgroups: drop xalloc dependency
11493         * lib/hash.c (includes): Adjust includes.
11494         * lib/mgetgroups.c (includes): Likewise.
11495         (xgetgroups): Move...
11496         * lib/xgetgroups.c: ...to new file.
11497         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
11498         * modules/xgetgroups: New file, split from...
11499         * modules/mgetgroups: ...here.
11500         (Depends-on): Add xalloc-oversized.
11501         * modules/hash (Depends-on): Likewise.
11502         * modules/hash-tests (Depends-on): Drop xalloc.
11503         (test_hash_LDADD): Drop unused library.
11504         * tests/test-hash.c (main): Break xalloc dependency.
11505         (includes): Drop unused include.
11506
11507         xalloc-oversized: new module
11508         * modules/xalloc-oversized: New module.
11509         * modules/xalloc (Depends-on): Add it.
11510         * lib/xalloc.h (xalloc_oversized): Move...
11511         * lib/xalloc-oversized.h: ...into new file.
11512
11513         utimecmp: drop dependency on xmalloc
11514         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
11515         due to memory pressure.
11516         * modules/utimecmp (Depends-on): Drop xalloc.
11517
11518 2011-04-27  Eric Blake  <eblake@redhat.com>
11519
11520         getcwd: fix mingw bugs
11521         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
11522         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
11523         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
11524
11525 2011-04-27  Bruno Haible  <bruno@clisp.org>
11526
11527         mkstemps: Ensure declaration on MacOS X 10.5.
11528         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
11529         * doc/glibc-functions/mkstemps.texi: Document header file problem on
11530         MacOS X.
11531
11532 2011-04-27  Bruno Haible  <bruno@clisp.org>
11533
11534         mkstemp: More documentation.
11535         * doc/posix-functions/mkstemp.texi: Document header file problem on
11536         MacOS X.
11537
11538 2011-04-27  Bruno Haible  <bruno@clisp.org>
11539
11540         mkstemp: Tweak configure message when cross-compiling.
11541         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
11542         result as a guess.
11543
11544 2011-04-27  Bruno Haible  <bruno@clisp.org>
11545
11546         clean-temp: Clarify what it does.
11547         * lib/clean-temp.h: Add more comments.
11548         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
11549         module.
11550         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
11551         * doc/glibc-functions/mkstemps.texi: Likewise.
11552         * doc/glibc-functions/mkostemps.texi: Likewise.
11553
11554 2011-04-27  Eric Blake  <eblake@redhat.com>
11555
11556         fchdir: avoid extra chdir and fix test
11557         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
11558         getcwd-lgpl.
11559         * lib/fchdir.c (get_name): Any absolute name will do; it does not
11560         have to be canonical.
11561         (canonicalize_file_name): Drop unused macro.
11562         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
11563
11564         filenamecat-lgpl: fix licence
11565         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
11566         when it was first created.
11567
11568         linkat, renameat: add missing dependency
11569         * modules/linkat (Depends-on): Require getcwd-lgpl.
11570         * modules/renameat (Depends-on): Likewise.
11571
11572         tests: reduce dependencies
11573         * tests/test-linkat.c (main): Use lighter-weight getcwd.
11574         * tests/test-renameat.c (main): Likewise.
11575         * modules/linkat-tests (Depends-on): Relax dependency.
11576         * modules/renameat-tests (Depends-on): Likewise.
11577         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
11578         dependency explicit.
11579
11580         save-cwd: reduce default dependency
11581         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
11582         * lib/save-cwd.c: Update comments.
11583         * NEWS: Document the semantic change.
11584
11585         getcwd: enhance tests
11586         * tests/test-getcwd-lgpl.c: New file, taken from...
11587         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
11588         repeat long path stress tests from m4 probe.
11589         * modules/getcwd-lgpl-tests: New module.
11590         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
11591         * m4/getcwd-abort-bug.m4: Update comment.
11592         * m4/getcwd-path-max.m4: Likewise.
11593
11594         getcwd-lgpl: new module
11595         * modules/getcwd-lgpl: New module.
11596         * lib/getcwd-lgpl.c: New file.
11597         * doc/posix-functions/getcwd.texi (getcwd): Document it.
11598         * MODULES.html.sh (lacking POSIX:2008): Likewise.
11599         * modules/getcwd (configure.ac): Set C witness.
11600         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
11601
11602         getcwd: tweak comments
11603         * m4/getcwd-abort-bug.m4: Fix comments.
11604         * m4/getcwd-path-max.m4: Likewise.
11605         * m4/getcwd.m4: Likewise.
11606
11607 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
11608         and Eric Blake  <eblake@redhat.com>
11609
11610         mkstemp: replace if system version uses wrong permissions
11611         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
11612         read/write mode bits set in file created by mkstemp.
11613         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
11614
11615 2011-04-27  Eric Blake  <eblake@redhat.com>
11616
11617         passfd: avoid compiler warning
11618         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
11619         Reported by Laine Stump.
11620
11621 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
11622
11623         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
11624         required by the NetBSD (and perhaps other 4.4BSD derived) join.
11625
11626 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
11627         and Eric Blake  <eblake@redhat.com>
11628
11629         mkstemp: mention clean-temp module
11630         * lib/mkstemp.c: Add comment.
11631         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
11632
11633 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
11634
11635         inttypes: also provide default values for 32-bit tests
11636         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
11637         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
11638
11639 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
11640
11641         strtoumax: remove dependency on strtoimax
11642         This is like the strtoull change of yesterday.
11643         * modules/strtoumax (Files): Add lib/strtoimax.c.
11644         (Depends-on): Remove strtoimax and add verify.
11645
11646         inttypes-incomplete: new module
11647         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
11648         all but the PRI* and SCN* parts of gl_INTTYPES_H.
11649         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
11650         of gl_INTTYPES_H.
11651         (gl_INTTYPES_H): Rewrite in terms of these new macros.
11652         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
11653         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
11654         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
11655         * modules/strtoumax, modules/xstrtol (Depends-on):
11656         Depend on inttypes-incomplete, not inttypes.
11657         * modules/inttypes-incomplete: New module, containing the contents
11658         of the old modules/inttypes module, except that the Files: section
11659         omits m4/inttypes-pri.m4, and the configure.ac section invokes
11660         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
11661         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
11662         (Depends-on): Depend only on inttypes-incomplete.
11663         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
11664
11665         inttypes: omit now-redundant strtoimax and strtoumax work
11666         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
11667         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
11668
11669         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
11670         This supports apps that need pointers to strtoimax and strtoumax,
11671         and ports to HP-UX 11.00 64.bit, which has macros that expand to
11672         nonexistent functions.  See
11673         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
11674         et seq.
11675         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
11676         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
11677         a macro.
11678         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
11679
11680 2011-04-25  Simon Josefsson  <simon@josefsson.org>
11681
11682         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
11683
11684 2011-04-25  Bruno Haible  <bruno@clisp.org>
11685
11686         strtol, strtoul: Mark modules as obsolete.
11687         * modules/strtol (Status, Notice): New sections.
11688         * modules/strtoul (Status, Notice): New sections.
11689
11690 2011-04-25  Bruno Haible  <bruno@clisp.org>
11691
11692         strtod: Remove check for strtod, unless supporting old platforms.
11693         * modules/strtod-obsolete: New file.
11694         * m4/strtod-obsolete.m4: New file.
11695         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
11696         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
11697         * modules/strtod (Depends-on): Add strtod-obsolete.
11698         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
11699
11700 2011-04-25  Bruno Haible  <bruno@clisp.org>
11701
11702         strcase: Make module obsolete.
11703         * modules/strcase (Status, Notice): New sections.
11704
11705 2011-04-25  Bruno Haible  <bruno@clisp.org>
11706
11707         dup2: Remove check for dup2, unless supporting old obsolete platforms.
11708         * modules/dup2-obsolete: New file.
11709         * m4/dup2-obsolete.m4: New file.
11710         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
11711         gl_FUNC_DUP2_OBSOLETE is not also defined.
11712         * modules/dup2 (Depends-on): Add dup2-obsolete.
11713         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
11714
11715 2011-04-25  Bruno Haible  <bruno@clisp.org>
11716
11717         strnlen: Avoid memchr related link error on old obsolete platforms.
11718         * modules/memchr-obsolete: New file.
11719         * m4/memchr-obsolete.m4: New file.
11720         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
11721         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
11722         * modules/memchr (Depends-on): Add memchr-obsolete.
11723         * modules/strnlen (Depends-on): Likewise.
11724         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
11725
11726 2011-04-25  Jim Meyering  <meyering@redhat.com>
11727
11728         maint.mk: makefile_at_at_check extend and clean up
11729         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
11730         in addition to */Makefile.am.
11731         Exempt legitimate uses of @VAR@ notation, e.g.,
11732         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
11733         Remove obsolete coreutils-specific comment.
11734         Prompted by discussion here:
11735         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
11736
11737 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
11738
11739         strtoul: remove dependency on strtol
11740         This is so that 'configure' need not check for strtol merely because
11741         the application needs strtoul.
11742         * modules/strtoul (Files): Add lib/strtol.c.
11743         (Depends-on): Remove strtol.
11744
11745         strtoull: remove dependency on strtoul
11746         This is like the strtoll change.
11747         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
11748         (Depends-on): Remove strtoul.
11749
11750         strtoll: remove dependency on strtol
11751         This is so that 'configure' need not check for strtol merely because
11752         the application needs strtoll.
11753         * modules/strtoll (Files): Add lib/strtol.c.
11754         (Depends-on): Remove strtol.
11755
11756 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
11757
11758         inttypes: Move some configure check to module 'imaxdiv'.
11759         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
11760         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
11761         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
11762
11763 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
11764
11765         inttypes: Move some configure check to module 'imaxabs'.
11766         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
11767         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
11768         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
11769
11770 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
11771
11772         inttypes: Remove configure tests that are not needed since 2009-12-31.
11773         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
11774         gl_cv_header_working_inttypes_h.
11775
11776 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
11777
11778         * modules/strnlen (Depends-on): Remove memchr.
11779         The strnlen implementation doesn't need the memchr module's fixes; see
11780         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
11781
11782         strtol: remove dependency on wchar
11783         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
11784         * modules/strtol (Depends-on): Remove wchar.
11785
11786 2011-04-21  Eric Blake  <eblake@redhat.com>
11787
11788         passfd: fix test regression on Linux
11789         * modules/passfd-tests (configure.ac): Correct socketpair check.
11790
11791         passfd: speed up configure and drop unused code
11792         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
11793         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
11794         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
11795         Instead of probing at configure for unix_scm_rights_bsd44_way,
11796         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
11797         check to a struct member probe.
11798         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
11799         (sendfd, recvfd): Update preprocessor checks.
11800         * modules/passfd (Files): Reflect rename, and drop unused file.
11801         (Depends-on): Drop unused dependency.
11802
11803         passfd: allow compilation on mingw
11804         * modules/sys_socket (Depends-on): Add sys_uio.
11805         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
11806         iovec and a minimal struct msghdr.
11807         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
11808         * tests/test-sys_socket.c (main): Enhance test.
11809         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
11810         guaranteed to provide what we need.
11811         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
11812         * modules/passfd-tests (Depends-on): Add sys_wait.
11813         * tests/test-passfd.c (main): Skip test on mingw, for now.
11814         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
11815         partial 'struct msghdr' implementation.
11816
11817         sys_uio: new module
11818         * modules/sys_uio: New module.
11819         * modules/sys_uio-tests: Likewise.
11820         * lib/sys_uio.in.h: New file.
11821         * m4/sys_uio_h.m4: Likewise.
11822         * tests/test-sys_uio.c: Likewise.
11823         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
11824         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
11825
11826 2011-04-20  Jim Meyering  <meyering@redhat.com>
11827
11828         useless-if-before-free: avoid false-positive
11829         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
11830         disjunct so that it too requires a terminating ";".  Without that,
11831         this script would identify as useless one statement from gcc that
11832         was not:
11833           if (aligned_ptr)
11834             free (((void **) aligned_ptr) [-1]);
11835
11836 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
11837
11838         doc: update users.txt.
11839         * users.txt: Add barcode.
11840
11841 2011-04-19  Bruno Haible  <bruno@clisp.org>
11842
11843         ioctl: Remove link dependency on native Windows.
11844         * lib/fd-hook.h: Renamed from lib/close-hook.h.
11845         (gl_close_fn, gl_ioctl_fn): New types.
11846         (struct fd_hook): Renamed from struct close_hook. Change type of
11847         private_close_fn field. Add private_ioctl_fn field.
11848         (close_hook_fn): Add parameter for primary close method.
11849         (execute_close_hooks, execute_all_close_hooks): Likewise.
11850         (ioctl_hook_fn): New type.
11851         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
11852         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
11853         argument.
11854         (unregister_fd_hook): Renamed from unregister_close_hook.
11855         * lib/fd-hook.c: Renamed from lib/close-hook.c.
11856         Don't include <unistd.h>.
11857         (close): Remove undef.
11858         (anchor): Update.
11859         (execute_close_hooks): Add argument for primary close method.
11860         (execute_all_close_hooks): Likewise.
11861         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
11862         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
11863         argument. Allow each argument to be NULL.
11864         (unregister_fd_hook): Renamed from unregister_close_hook.
11865         * lib/close.c (rpl_close): Pass 'close' function pointer to
11866         execute_all_close_hooks.
11867         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
11868         (primary_ioctl): New function.
11869         (ioctl): Don't call ioctlsocket here. Instead, call
11870         execute_all_ioctl_hooks.
11871         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
11872         close method.
11873         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
11874         (fd_sockets_hook): Renamed from close_sockets_hook.
11875         (gl_sockets_startup, gl_sockets_cleanup): Update.
11876         * modules/fd-hook: Renamed from modules/close-hook. Update.
11877         * modules/close (Depends-on): Add fd-hook, remove close-hook.
11878         * modules/sockets (Depends-on): Likewise.
11879         * modules/ioctl (Depends-on): Add fd-hook.
11880         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
11881         GNULIB_SOCKET.
11882
11883 2011-04-19  Bruno Haible  <bruno@clisp.org>
11884
11885         Move the support of O_NONBLOCK in open() to the 'open' module.
11886         * modules/nonblocking (Depends-on): Remove 'open'.
11887         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
11888         gl_cv_have_open_O_NONBLOCK.
11889         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
11890         O_NONBLOCK support.
11891         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
11892
11893 2011-04-17  Bruno Haible  <bruno@clisp.org>
11894
11895         pipe2: Simplify code.
11896         * lib/pipe2.c (pipe2): Reduce code duplication.
11897
11898 2011-04-17  Bruno Haible  <bruno@clisp.org>
11899
11900         nonblocking: Add comment.
11901         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
11902
11903 2011-04-17  Bruno Haible  <bruno@clisp.org>
11904
11905         nonblocking: Add tests for sockets.
11906         * tests/test-nonblocking-socket.sh: New file.
11907         * tests/test-nonblocking-socket-main.c: New file.
11908         * tests/test-nonblocking-socket-child.c: New file.
11909         * tests/test-nonblocking-socket.h: New file.
11910         * tests/socket-server.h: New file.
11911         * tests/socket-client.h: New file.
11912         * modules/nonblocking-socket-tests: New file.
11913         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
11914
11915 2011-04-17  Bruno Haible  <bruno@clisp.org>
11916
11917         nonblocking: Add tests for pipes.
11918         * tests/test-nonblocking-pipe.sh: New file.
11919         * tests/test-nonblocking-pipe-main.c: New file.
11920         * tests/test-nonblocking-pipe-child.c: New file.
11921         * tests/test-nonblocking-pipe.h: New file.
11922         * tests/test-nonblocking-writer.h: New file.
11923         * tests/test-nonblocking-reader.h: New file.
11924         * tests/test-nonblocking-misc.h: New file.
11925         * modules/nonblocking-pipe-tests: New file.
11926         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
11927
11928 2011-04-16  Bruno Haible  <bruno@clisp.org>
11929
11930         gettext: Clarify the needed programmer actions.
11931         * modules/gettext (Notice): New field.
11932         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
11933
11934 2011-04-16  Bruno Haible  <bruno@clisp.org>
11935
11936         strchrnul: Tweak last commit.
11937         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
11938         bug.
11939         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
11940         as in _GL_FUNCDECL_SYS.
11941         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
11942         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
11943
11944 2011-04-15  Eric Blake  <eblake@redhat.com>
11945
11946         strchrnul: work around cygwin bug
11947         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
11948         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
11949         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
11950         * modules/string (Makefile.am): Substitute it.
11951         * lib/string.in.h (strchrnul): Use it.
11952
11953 2011-04-15  Bruno Haible  <bruno@clisp.org>
11954
11955         Don't require lib/stdio-write.c when only module 'stdio' is used.
11956         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
11957         invocation.
11958         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
11959
11960 2011-04-14  Bruno Haible  <bruno@clisp.org>
11961
11962         Support non-blocking pipe I/O in read() on native Windows.
11963         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
11964         (read): New declaration.
11965         * lib/read.c: New file.
11966         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
11967         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
11968         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
11969         vscanf): New declarations.
11970         * lib/stdio-read.c: New file.
11971         * m4/read.m4: New file.
11972         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
11973         REPLACE_READ.
11974         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
11975         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
11976         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
11977         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
11978         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
11979         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
11980         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
11981         * modules/read: New file.
11982         * modules/nonblocking (Files): Add lib/stdio-read.c.
11983         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
11984         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
11985         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
11986         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
11987         * modules/pread (Depends-on): Add read.
11988         * modules/safe-read (Depends-on): Likewise.
11989         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
11990         gets, scanf, vfscanf, vscanf): Verify signatures.
11991         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
11992         problem with non-blocking pipes.
11993         * doc/posix-functions/fgetc.texi: Likewise.
11994         * doc/posix-functions/fgets.texi: Likewise.
11995         * doc/posix-functions/fread.texi: Likewise.
11996         * doc/posix-functions/fscanf.texi: Likewise.
11997         * doc/posix-functions/getc.texi: Likewise.
11998         * doc/posix-functions/getchar.texi: Likewise.
11999         * doc/posix-functions/gets.texi: Likewise.
12000         * doc/posix-functions/scanf.texi: Likewise.
12001         * doc/posix-functions/vfscanf.texi: Likewise.
12002         * doc/posix-functions/vscanf.texi: Likewise.
12003
12004 2011-04-14  Bruno Haible  <bruno@clisp.org>
12005
12006         Support non-blocking pipe I/O in write() on native Windows.
12007         * lib/write.c (rpl_write): Split a write request that failed merely
12008         because the byte count was larger than the pipe buffer's size.
12009         * doc/posix-functions/write.texi: Mention the problem with large byte
12010         counts.
12011
12012 2011-04-14  Bruno Haible  <bruno@clisp.org>
12013
12014         wchar: Ensure that wchar_t gets defined on uClibc.
12015         * lib/wchar.in.h: On uClibc, include <stddef.h>.
12016         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
12017
12018 2011-04-13  Bruno Haible  <bruno@clisp.org>
12019
12020         safe-write, full-read: Avoid unnecessary compilation units.
12021         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
12022         (Depends-on): Remove safe-read. Add ssize_t.
12023         * modules/full-read (Files): Add lib/full-write.c.
12024         (Depends-on): Add full-write.
12025
12026 2011-04-13  Bruno Haible  <bruno@clisp.org>
12027
12028         Support non-blocking pipe I/O and SIGPIPE in pwrite().
12029         * modules/pwrite (Depends-on): Add 'write'.
12030
12031 2011-04-13  Bruno Haible  <bruno@clisp.org>
12032
12033         Support non-blocking pipe I/O in write() on native Windows.
12034         * lib/unistd.in.h (write): Enable replacement also if
12035         GNULIB_UNISTD_H_NONBLOCKING is 1.
12036         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
12037         (rpl_write): When failing to write on a non-blocking pipe, change
12038         errno from ENOSPC to EAGAIN.
12039         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
12040         putchar, puts, vfprintf, vprintf): Enable replacement also if
12041         GNULIB_STDIO_H_NONBLOCKING is 1.
12042         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
12043         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
12044         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
12045         CALL_WITH_SIGPIPE_EMULATION.
12046         (CALL_WITH_SIGPIPE_EMULATION): Use them.
12047         * m4/nonblocking.m4: New file.
12048         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
12049         for non-blocking I/O support.
12050         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
12051         GNULIB_UNISTD_H_NONBLOCKING.
12052         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
12053         required for non-blocking I/O support.
12054         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
12055         * modules/nonblocking (Files): Add m4/nonblocking.m4,
12056         lib/stdio-write.c, m4/asm-underscore.m4.
12057         (Depends-on): Add stdio, unistd.
12058         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
12059         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
12060         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
12061         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
12062         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
12063         problem with non-blocking pipes.
12064         * doc/posix-functions/fputc.texi: Likewise.
12065         * doc/posix-functions/fputs.texi: Likewise.
12066         * doc/posix-functions/fwrite.texi: Likewise.
12067         * doc/posix-functions/printf.texi: Likewise.
12068         * doc/posix-functions/putc.texi: Likewise.
12069         * doc/posix-functions/putchar.texi: Likewise.
12070         * doc/posix-functions/puts.texi: Likewise.
12071         * doc/posix-functions/vfprintf.texi: Likewise.
12072         * doc/posix-functions/vprintf.texi: Likewise.
12073         * doc/posix-functions/write.texi: Likewise.
12074
12075 2011-04-10  Jim Meyering  <meyering@redhat.com>
12076
12077         maint.mk: prohibit doubled words
12078         Detect them also when they're separated by a newline.
12079         There are 3 ways to customize it:
12080           - disable the test on a per file basis, as usual with rules using
12081             $(VC_LIST_EXCEPT)
12082           - replace the default doubled-word-selecting regexp (affects all files)
12083           - ignore a particular file-vs-doubled-word match
12084         I nearly used that last one to ignore the "is is" match in
12085         coreutils' NEWS file, since the text was "ls -is is ..."
12086         To do that, I would have added this line to cfg.mk:
12087           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
12088         but it would have ignored any "is is" match in NEWS.
12089         Low probability, but still...
12090         Instead, I changed the text, slightly:
12091           -  ls -is is now consistent with ls -lis in ignoring values returned
12092           +  "ls -is" is now consistent with ls -lis in ignoring values returned
12093         * top/maint.mk (prohibit_double_word_RE_): Provide default.
12094         (prohibit_doubled_word_): Define.
12095         (sc_prohibit_doubled_word): New rule.
12096         (sc_prohibit_the_the): Remove.  Subsumed by the above.
12097
12098 2011-04-10  Jim Meyering  <meyering@redhat.com>
12099
12100         maint: fix doubled-word typo in comment
12101         * m4/gethostname.m4: s/is is/it is/
12102         * m4/getdomainname.m4: Likewise.
12103
12104 2011-04-10  Jim Meyering  <meyering@redhat.com>
12105
12106         maint: remove doubled word: s/it it/it/
12107         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
12108
12109 2011-04-10  Jim Meyering  <meyering@redhat.com>
12110
12111         maint.mk: remove useless semicolon and backslash
12112         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
12113         semicolon and backslash.
12114
12115 2011-04-10  Bruno Haible  <bruno@clisp.org>
12116
12117         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
12118         * modules/stdint-tests (Depends-on): Add wchar.
12119
12120 2011-04-10  Jim Meyering  <meyering@redhat.com>
12121
12122         maint: remove doubled words in comments, e.g., s/a a/a/
12123         * lib/strptime.c (day_of_the_week): s/the the/the/
12124         * tests/test-chown.h (test_chown): s/a a/a/
12125
12126         test-chown.h: correct a cast
12127         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
12128         when the destination is a stat.st_gid.
12129
12130 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
12131
12132         getaddrinfo: Fix test for sa_len member.
12133         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
12134         include <sys/types.h> before <sys/socket.h>.
12135
12136 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
12137
12138         maint: change "can not" to "cannot"
12139         * doc/posix-functions/iconv.texi (iconv): This one crossed line
12140         boundaries.
12141
12142 2011-04-09  Jim Meyering  <meyering@redhat.com>
12143
12144         maint: change "a a" to "a"
12145         * tests/test-lchown.h (test_lchown): s/a a/a/
12146
12147         maint.mk: prohibit \<the the\>
12148         * top/maint.mk (sc_prohibit_the_the): New rule.
12149
12150         maint: fix "the the" in comment
12151         * lib/count-one-bits.h: s/the the/the/
12152
12153         maint: change "can not" to "cannot"
12154         But do not change the occurrences in maintain.texi or in
12155         build-aux/po/Makefile.in.in, which I presume comes from gettext.
12156         * doc/gnulib-tool.texi: s/can not/cannot/
12157         * doc/posix-functions/accept.texi (accept): Likewise.
12158         * doc/posix-functions/socket.texi (socket): Likewise.
12159         * lib/mbrtowc.c: Likewise.
12160
12161         maint.mk: prohibit use of "can not"
12162         * top/maint.mk (sc_prohibit_can_not): New rule.
12163         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
12164
12165 2011-04-09  Bruno Haible  <bruno@clisp.org>
12166
12167         careadlinkat: Guard against misuse of careadlinkatcwd.
12168         * lib/careadlinkat.c: Include <stdlib.h>.
12169         (careadlinkatcwd): Check that the fd argument is as expected.
12170
12171 2011-04-09  Bruno Haible  <bruno@clisp.org>
12172
12173         careadlinkat: Use common coding style.
12174         * lib/careadlinkat.c: Move gnulib includes after system includes.
12175
12176 2011-04-09  Bruno Haible  <bruno@clisp.org>
12177
12178         careadlinkat: Clarify specification.
12179         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
12180         (careadlinkatcwd): Add comment.
12181         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
12182
12183 2011-04-09  Bruno Haible  <bruno@clisp.org>
12184
12185         areadlinkat: Avoid link error on many platforms.
12186         * modules/areadlinkat (Depends-on): Add areadlink.
12187
12188 2011-04-09  Bruno Haible  <bruno@clisp.org>
12189
12190         allocator, careadlinkat: Fix double-inclusion guard.
12191         * lib/allocator.h: Fix double-inclusion guard.
12192         * lib/careadlinkat.h: Likewise.
12193
12194 2011-04-09  Bruno Haible  <bruno@clisp.org>
12195
12196         relocatable-prog-wrapper: Update after module 'areadlink' changed.
12197         * lib/relocwrapper.c: Update dependencies hierarchy.
12198         * build-aux/install-reloc: Update list of files to be compiled.
12199         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
12200         lib/allocator.[hc].
12201
12202 2011-04-08  Eric Blake  <eblake@redhat.com>
12203
12204         strftime: silence gnulib-tool warning
12205         * modules/strftime-tests (Depends-on): Drop automatic dependency.
12206
12207 2011-04-08  Bruno Haible  <bruno@clisp.org>
12208
12209         verify: Fix syntax error with GCC 4.6 in C++ mode.
12210         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
12211         (HAVE_STATIC_ASSERT): New macro.
12212         (verify_true, verify): Use 'static_assert' if it is supported and
12213         '_Static_assert' is not supported.
12214
12215 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
12216
12217         allocator: New module.
12218         * modules/allocator, lib/allocator.c: New files.
12219         * lib/allocator.h (stdlib_allocator): New decl.
12220         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
12221         Remove.  Do not include <stdlib.h>.
12222         (careadlinkat): Use stdlib_allocator instead of rolling our own.
12223         * modules/careadlinkat (Files): Remove lib/allocator.h.
12224         (Depends-on): Add allocator.
12225
12226         stdlib: let modules use system malloc, realloc
12227         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
12228         if !_GL_USE_STDLIB_ALLOC.
12229         (malloc, realloc): Limit this change to a smaller scope.
12230
12231         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
12232         (malloc, realloc): Don't #undef; no longer needed.
12233         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12234         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12235         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
12236         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12237         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12238         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12239         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12240         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
12241
12242         careadlinkat: rename members to avoid problem
12243         * lib/allocator.h (struct allocator): Rename members from
12244         malloc/realloc to allocate/reallocate, to avoid problems if malloc
12245         and realloc are #define'd.  Reported by Eric Blake in
12246         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
12247         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
12248
12249 2011-04-08  Eric Blake  <eblake@redhat.com>
12250
12251         nonblocking: reduce dependency
12252         * tests/test-nonblocking.c: Only test sockets when in use.
12253         * modules/nonblocking-tests (Depends-on): Drop socket.
12254         (Makefile.am): Link even if sockets are not present.
12255         * modules/pipe2-tests (Makefile.am): Likewise.
12256         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
12257
12258         pipe2: fix O_NONBLOCK support on mingw
12259         * modules/pipe2 (Depends-on): Add nonblocking.
12260         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
12261         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
12262         * tests/test-nonblocking.c (main): Likewise.
12263         * modules/pipe2-tests (Makefile.am): Avoid link failure.
12264
12265         fcntl-h: fix O_ACCMODE on cygwin
12266         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
12267         * lib/fcntl.in.h (O_ACCMODE): Fix it.
12268
12269         pipe-filter: drop O_NONBLOCK workarounds
12270         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
12271         * modules/pipe-filter-ii (Depends-on): Likewise.
12272         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
12273
12274         nonblocking: provide O_NONBLOCK for mingw
12275         * modules/nonblocking (Depends-on): Add open.
12276         (configure.ac): Set new witness macro.
12277         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
12278         * modules/fcntl-h (Makefile.am): Substitute it.
12279         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
12280         nonblocking module is in use.
12281         * lib/nonblocking.c: Adjust portability test.
12282         * lib/open.c (open): Don't let native open see gnulib flag.
12283         * tests/test-fcntl-h.c (main): Enhance test.
12284         * tests/test-open.h (test_open): Likewise.
12285         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
12286
12287         careadlinkat: fix compilation error on mingw
12288         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
12289         within struct allocator.
12290
12291 2011-04-06  Eric Blake  <eblake@redhat.com>
12292
12293         binary-io: relicense under LGPLv2+
12294         * modules/binary-io (License): Relax to LGPLv2+.
12295         Requested for libvirt, and required by pipe2.
12296
12297 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
12298
12299         verify: use _Static_assert if available
12300         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
12301         (verify_true, verify): Use it if available.  This generates better
12302         diagnostics with GCC 4.6.0 and later.
12303
12304 2011-04-05  Bruno Haible  <bruno@clisp.org>
12305
12306         Remove leftover generated .h files after config.status changed.
12307
12308         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
12309         GL_GENERATE_ALLOCA_H.
12310         * modules/alloca-opt (Makefile.am): Remove alloca.h if
12311         GL_GENERATE_ALLOCA_H evaluates to false.
12312
12313         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
12314         GL_GENERATE_ARGZ_H.
12315         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
12316         evaluates to false.
12317
12318         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
12319         GL_GENERATE_BYTESWAP_H.
12320         * modules/byteswap (Makefile.am): Remove byteswap.h if
12321         GL_GENERATE_BYTESWAP_H evaluates to false.
12322
12323         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
12324         GL_GENERATE_ERRNO_H.
12325         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
12326         evaluates to false.
12327
12328         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
12329         GL_GENERATE_FLOAT_H.
12330         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
12331         evaluates to false.
12332
12333         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
12334         GL_GENERATE_FNMATCH_H.
12335         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
12336         GL_GENERATE_FNMATCH_H evaluates to false.
12337
12338         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
12339         GL_GENERATE_GLOB_H.
12340         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
12341         evaluates to false.
12342
12343         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
12344         automake conditional GL_GENERATE_ICONV_H.
12345         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
12346         evaluates to false.
12347
12348         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
12349         GL_GENERATE_NETINET_IN_H.
12350         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
12351         GL_GENERATE_NETINET_IN_H evaluates to false.
12352
12353         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
12354         conditional GL_GENERATE_PTHREAD_H.
12355         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
12356         * modules/pthread (Makefile.am): Remove pthread.h if
12357         GL_GENERATE_PTHREAD_H evaluates to false.
12358
12359         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
12360         GL_GENERATE_SCHED_H.
12361         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
12362         evaluates to false.
12363
12364         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
12365         conditional GL_GENERATE_SELINUX_CONTEXT_H.
12366         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
12367         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
12368
12369         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
12370         GL_GENERATE_STDARG_H.
12371         * modules/stdarg (Makefile.am): Remove stdarg.h if
12372         GL_GENERATE_STDARG_H evaluates to false.
12373
12374         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
12375         GL_GENERATE_STDBOOL_H.
12376         * modules/stdbool (Makefile.am): Remove stdbool.h if
12377         GL_GENERATE_STDBOOL_H evaluates to false.
12378
12379         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
12380         conditional GL_GENERATE_STDDEF_H.
12381         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
12382         * modules/stddef (Makefile.am): Remove stddef.h if
12383         GL_GENERATE_STDDEF_H evaluates to false.
12384
12385         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
12386         GL_GENERATE_STDINT_H.
12387         * modules/stdint (Makefile.am): Remove stdint.h if
12388         GL_GENERATE_STDINT_H evaluates to false.
12389
12390         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
12391         GL_GENERATE_SYSEXITS_H.
12392         * modules/sysexits (Makefile.am): Remove sysexits.h if
12393         GL_GENERATE_SYSEXITS_H evaluates to false.
12394
12395         Reported by Karl Berry and Ralf Wildenhues.
12396
12397 2011-04-05  Bruno Haible  <bruno@clisp.org>
12398
12399         Ensure to rebuild generated .h files when config.status has changed.
12400         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
12401         config.status.
12402         * modules/ctype (Makefile.am): Likewise.
12403         * modules/dirent (Makefile.am): Likewise.
12404         * modules/errno (Makefile.am): Likewise.
12405         * modules/fcntl-h (Makefile.am): Likewise.
12406         * modules/float (Makefile.am): Likewise.
12407         * modules/getopt-posix (Makefile.am): Likewise.
12408         * modules/glob (Makefile.am): Likewise.
12409         * modules/iconv-h (Makefile.am): Likewise.
12410         * modules/inttypes (Makefile.am): Likewise.
12411         * modules/langinfo (Makefile.am): Likewise.
12412         * modules/locale (Makefile.am): Likewise.
12413         * modules/math (Makefile.am): Likewise.
12414         * modules/netdb (Makefile.am): Likewise.
12415         * modules/netinet_in (Makefile.am): Likewise.
12416         * modules/poll-h (Makefile.am): Likewise.
12417         * modules/pthread (Makefile.am): Likewise.
12418         * modules/pty (Makefile.am): Likewise.
12419         * modules/sched (Makefile.am): Likewise.
12420         * modules/search (Makefile.am): Likewise.
12421         * modules/selinux-h (Makefile.am): Likewise.
12422         * modules/signal (Makefile.am): Likewise.
12423         * modules/spawn (Makefile.am): Likewise.
12424         * modules/stdarg (Makefile.am): Likewise.
12425         * modules/stdbool (Makefile.am): Likewise.
12426         * modules/stddef (Makefile.am): Likewise.
12427         * modules/stdint (Makefile.am): Likewise.
12428         * modules/stdio (Makefile.am): Likewise.
12429         * modules/stdlib (Makefile.am): Likewise.
12430         * modules/string (Makefile.am): Likewise.
12431         * modules/strings (Makefile.am): Likewise.
12432         * modules/sys_file (Makefile.am): Likewise.
12433         * modules/sys_ioctl (Makefile.am): Likewise.
12434         * modules/sys_select (Makefile.am): Likewise.
12435         * modules/sys_socket (Makefile.am): Likewise.
12436         * modules/sys_stat (Makefile.am): Likewise.
12437         * modules/sys_time (Makefile.am): Likewise.
12438         * modules/sys_times (Makefile.am): Likewise.
12439         * modules/sys_utsname (Makefile.am): Likewise.
12440         * modules/sys_wait (Makefile.am): Likewise.
12441         * modules/sysexits (Makefile.am): Likewise.
12442         * modules/termios (Makefile.am): Likewise.
12443         * modules/time (Makefile.am): Likewise.
12444         * modules/unistd (Makefile.am): Likewise.
12445         * modules/wchar (Makefile.am): Likewise.
12446         * modules/wctype-h (Makefile.am): Likewise.
12447         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
12448
12449 2011-04-05  Bruno Haible  <bruno@clisp.org>
12450
12451         pipe2: Relicense under LGPLv2+.
12452         * modules/pipe2 (License): Change to LGPLv2+.
12453         Requested by Eric Blake, for libvirt.
12454
12455 2011-04-05  Bruce Korb  <bkorb@gnu.org>
12456
12457         bootstrap: compute gnulib_extra_files after updating build_aux
12458         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
12459         change build_aux or also supply gnulib_extra_files.  Handle correctly.
12460
12461 2011-04-05  Eric Blake  <eblake@redhat.com>
12462
12463         bootstrap: preserve git whitelist item sorting
12464         * build-aux/bootstrap (sort_patterns): New function.
12465         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
12466
12467 2011-04-05  Simon Josefsson  <simon@josefsson.org>
12468
12469         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
12470         sc_space_tab check.
12471
12472 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
12473
12474         areadlink, areadlinkat: rewrite in terms of careadlinkat
12475         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
12476         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
12477         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
12478         (malloc, realloc): Remove #undefs.
12479         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
12480         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
12481         readlink, ssize_t, stdint, unistd.
12482         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
12483         areadlink, stdint.
12484
12485         careadlinkat: new module
12486         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
12487         * modules/careadlinkat: New files, written by me with
12488         a review and feedback from Ben Pfaff in
12489         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
12490
12491 2011-04-01  Bruno Haible  <bruno@clisp.org>
12492
12493         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
12494         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
12495         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
12496         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
12497         Reported by Bruce Korb <bruce.korb@gmail.com>.
12498
12499 2011-04-01  Bruno Haible  <bruno@clisp.org>
12500
12501         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
12502         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
12503         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
12504         * modules/wcpcpy (Depends-on): Add extensions.
12505         * modules/wcpncpy (Depends-on): Likewise.
12506         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
12507         systems.
12508         * doc/posix-functions/wcpncpy.texi: Likewise.
12509         * doc/posix-functions/wcwidth.texi: Likewise.
12510
12511 2011-03-31  Eric Blake  <eblake@redhat.com>
12512
12513         nonblocking: fix mingw test failures
12514         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
12515         non-blocking flag on regular file.
12516         (get_nonblocking_flag): Set errno on invalid fd.
12517         * tests/test-nonblocking.c (main): Avoid test failure on
12518         directories if fchdir is not active.
12519         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
12520
12521 2011-03-31  Bruno Haible  <bruno@clisp.org>
12522
12523         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
12524         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
12525         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
12526         Reported by Simon Josefsson <simon@josefsson.org>.
12527
12528 2011-03-31  Bruno Haible  <bruno@clisp.org>
12529         and Eric Blake  <eblake@redhat.com>
12530
12531         nonblocking: new module
12532         * modules/nonblocking: New module.
12533         * modules/nonblocking-tests: Likewise.
12534         * lib/nonblocking.h: New file.
12535         * lib/nonblocking.c: Likewise.
12536         * tests/test-nonblocking.c: New test.
12537         * lib/ioctl.c (ioctl) [mingw]: Update comment.
12538
12539 2011-03-30  Bruno Haible  <bruno@clisp.org>
12540
12541         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
12542         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
12543         instead of 'printf' format for GCC >= 4.4.
12544         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
12545         (fprintf, printf, vfprintf, vprintf): Declare with
12546         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
12547         the system's vfprintf() function.
12548         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
12549
12550 2011-03-30  Eric Blake  <eblake@redhat.com>
12551
12552         passfd: fix scoping bug
12553         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
12554         before sendmsg/recvmsg.
12555
12556         passfd: standardize coding conventions
12557         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
12558         can be learned at compile time.
12559         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
12560         ifdefs.
12561         (sendfd, recvfd): Follow gnulib code conventions.
12562
12563         passfd: fix incorrect sendmsg arguments
12564         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
12565         incorrect msg_controllen value.
12566         * modules/passfd-tests (Depends-on): Check for alarm.
12567         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
12568         Reported by Bastien ROUCARIES.
12569
12570 2011-03-30  Bruno Haible  <bruno@clisp.org>
12571
12572         c-strcasestr: Relicense under LGPLv2+.
12573         * modules/c-strcasestr (License): Change to LGPLv2+.
12574         Requested by Eric Blake, for libvirt.
12575
12576 2011-03-30  Simon Josefsson  <simon@josefsson.org>
12577
12578         * users.txt: Add libidn2.  Fix libtasn1 link.
12579
12580 2011-03-30  Jim Meyering  <meyering@redhat.com>
12581
12582         tests: readlink* ("",... fails with EINVAL on newer kernels
12583         readlink and readlinkat have typically failed with ENOENT for
12584         the invalid, empty file name,  "".  However, with the advent
12585         of linux-2.6.39, they fail with EINVAL.
12586         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
12587         when operating on the empty file name.
12588         * tests/test-readlink.h (test_readlink): Likewise.
12589
12590 2011-03-29  Bruno Haible  <bruno@clisp.org>
12591
12592         Relicense some modules under LGPLv2+, for libidn2.
12593         * modules/array-mergesort (License): Change to LGPLv2+.
12594         * modules/c-strcaseeq (License): Likewise.
12595         * modules/striconveh (License): Likewise.
12596         * modules/striconveha (License): Likewise.
12597         * modules/uniconv/base (License): Likewise.
12598         * modules/uniconv/u8-conv-from-enc (License): Likewise.
12599         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
12600         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
12601         * modules/unictype/base (License): Likewise.
12602         * modules/unictype/bidiclass-of (License): Likewise.
12603         * modules/unictype/category-M (License): Likewise.
12604         * modules/unictype/category-none (License): Likewise.
12605         * modules/unictype/category-of (License): Likewise.
12606         * modules/unictype/category-test (License): Likewise.
12607         * modules/unictype/category-test-withtable (License): Likewise.
12608         * modules/unictype/combining-class (License): Likewise.
12609         * modules/unictype/joiningtype-of (License): Likewise.
12610         * modules/unictype/scripts (License): Likewise.
12611         * modules/uninorm/base (License): Likewise.
12612         * modules/uninorm/canonical-decomposition (License): Likewise.
12613         * modules/uninorm/composition (License): Likewise.
12614         * modules/uninorm/decompose-internal (License): Likewise.
12615         * modules/uninorm/decomposition-table (License): Likewise.
12616         * modules/uninorm/nfc (License): Likewise.
12617         * modules/uninorm/nfd (License): Likewise.
12618         * modules/uninorm/u32-normalize (License): Likewise.
12619         * modules/unistr/base (License): Likewise.
12620         * modules/unistr/u32-cpy (License): Likewise.
12621         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
12622         * modules/unistr/u32-to-u8 (License): Likewise.
12623         * modules/unistr/u32-uctomb (License): Likewise.
12624         * modules/unistr/u8-check (License): Likewise.
12625         * modules/unistr/u8-mblen (License): Likewise.
12626         * modules/unistr/u8-mbtouc (License): Likewise.
12627         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
12628         * modules/unistr/u8-mbtoucr (License): Likewise.
12629         * modules/unistr/u8-prev (License): Likewise.
12630         * modules/unistr/u8-strlen (License): Likewise.
12631         * modules/unistr/u8-to-u32 (License): Likewise.
12632         * modules/unistr/u8-uctomb (License): Likewise.
12633         * modules/unitypes (License): Likewise.
12634         Requested by Simon Josefsson.
12635
12636 2011-03-29  Simon Josefsson  <simon@josefsson.org>
12637
12638         lib-symbol-visibility: Add a notice.
12639         * modules/lib-symbol-visibility (Notice): New field.
12640
12641 2011-03-29  Bruno Haible  <bruno@clisp.org>
12642
12643         getaddrinfo: Doc fix.
12644         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
12645         section "fixed in Gnulib".
12646
12647 2011-03-28  Simon Josefsson  <simon@josefsson.org>
12648
12649         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
12650         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
12651
12652 2011-03-26  Bruno Haible  <bruno@clisp.org>
12653
12654         unictype/property-byname: Reduce the number of load-time relocations.
12655         * lib/unictype/pr_byname.c: Include <stdlib.h>.
12656         (UC_PROPERTY_INDEX_*): New enumeration values.
12657         (uc_property_byname): Convert an index from the lookup table to an
12658         uc_property_t.
12659         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
12660         values.
12661
12662 2011-03-26  Bruno Haible  <bruno@clisp.org>
12663
12664         unictype/property-byname: Allow omitted word separators and aliases.
12665         * lib/unictype/pr_byname.gperf: Add property names without word
12666         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
12667         for 'space'.
12668
12669 2011-03-26  Bruno Haible  <bruno@clisp.org>
12670
12671         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
12672         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
12673         also hyphens to space.
12674         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
12675         without spaces.
12676         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
12677
12678 2011-03-26  Bruno Haible  <bruno@clisp.org>
12679
12680         unictype/joiningtype-byname: Recognize long names as well.
12681         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
12682         a long name.
12683         * lib/unictype/joiningtype_byname.c: Include <string.h>,
12684         unictype/joiningtype_byname.h.
12685         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
12686         * lib/unictype/joiningtype_byname.gperf: New file.
12687         * modules/unictype/joiningtype-byname (Files): Add
12688         lib/unictype/joiningtype_byname.gperf.
12689         (Depends-on): Add gperf.
12690         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
12691         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
12692         long names.
12693
12694         Tests for module 'unictype/joiningtype-longname'.
12695         * modules/unictype/joiningtype-longname-tests: New file.
12696         * tests/unictype/test-joiningtype_longname.c: New file.
12697
12698         New module 'unictype/joiningtype-longname'.
12699         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
12700         * lib/unictype/joiningtype_longname.c: New file.
12701         * modules/unictype/joiningtype-longname: New file.
12702         * modules/unictype/joiningtype-all (Depends-on): Add
12703         unictype/joiningtype-longname.
12704
12705 2011-03-26  Bruno Haible  <bruno@clisp.org>
12706
12707         unictype/bidiclass-byname: Recognize long names as well.
12708         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
12709         name.
12710         * lib/unictype/bidi_byname.c: Include <string.h>,
12711         unictype/bidi_byname.h.
12712         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
12713         * lib/unictype/bidi_byname.gperf: New file.
12714         * modules/unictype/bidiclass-byname (Files): Add
12715         lib/unictype/bidi_byname.gperf.
12716         (Depends-on): Add gperf.
12717         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
12718         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
12719         long names.
12720
12721         Tests for module 'unictype/bidiclass-longname'.
12722         * modules/unictype/bidiclass-longname-tests: New file.
12723         * tests/unictype/test-bidi_longname.c: New file.
12724
12725         New module 'unictype/bidiclass-longname'.
12726         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
12727         * lib/unictype/bidi_longname.c: New file.
12728         * modules/unictype/bidiclass-longname: New file.
12729         * modules/unictype/bidiclass-all (Depends-on): Add
12730         unictype/bidiclass-longname.
12731
12732 2011-03-26  Bruno Haible  <bruno@clisp.org>
12733
12734         unictype/bidi*: Rename modules.
12735         * modules/unictype/bidiclass-all: Renamed from
12736         modules/unictype/bidicategory-all.
12737         * modules/unictype/bidiclass-name: Renamed from
12738         modules/unictype/bidiclass-name.
12739         (Description): Update.
12740         * modules/unictype/bidiclass-name-tests: Renamed from
12741         modules/unictype/bidicategory-name-tests.
12742         * modules/unictype/bidiclass-byname: Renamed from
12743         modules/unictype/bidicategory-byname.
12744         (Description): Update.
12745         * modules/unictype/bidiclass-byname-tests: Renamed from
12746         modules/unictype/bidicategory-byname-tests.
12747         * modules/unictype/bidiclass-of: Renamed from
12748         modules/unictype/bidicategory-of.
12749         (Description): Update.
12750         * modules/unictype/bidiclass-of-tests: Renamed from
12751         modules/unictype/bidicategory-of-tests.
12752         * modules/unictype/bidiclass-test: Renamed from
12753         modules/unictype/bidicategory-test.
12754         (Description): Update.
12755         * modules/unictype/bidiclass-test-tests: Renamed from
12756         modules/unictype/bidicategory-test-tests.
12757         * modules/unictype/bidicategory-all: New file, a simple redirection.
12758         * modules/unictype/bidicategory-name: Likewise.
12759         * modules/unictype/bidicategory-byname: Likewise.
12760         * modules/unictype/bidicategory-of: Likewise.
12761         * modules/unictype/bidicategory-test: Likewise.
12762         * modules/unictype/property-bidi-* (Dependencies): Update.
12763         * lib/unictype/bidi_*.c: Update comment.
12764
12765 2011-03-26  Bruno Haible  <bruno@clisp.org>
12766
12767         unictype/bidi*: Rename functions, part 2.
12768         * modules/unictype/bidicategory-name (configure.ac): Update required
12769         libunistring version.
12770         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
12771
12772 2011-03-25  Bruno Haible  <bruno@clisp.org>
12773
12774         New module 'unictype/combining-class-all'.
12775         * modules/unictype/combining-class-all: New file.
12776
12777         Tests for module 'unictype/combining-class-byname'.
12778         * modules/unictype/combining-class-byname-tests: New file.
12779         * tests/unictype/test-combiningclass_byname.c: New file.
12780
12781         New module 'unictype/combining-class-byname'.
12782         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
12783         * lib/unictype/combiningclass_byname.c: New file.
12784         * lib/unictype/combiningclass_byname.gperf: New file.
12785         * modules/unictype/combining-class-byname: New file.
12786
12787         Tests for module 'unictype/combining-class-longname'.
12788         * modules/unictype/combining-class-longname-tests: New file.
12789         * tests/unictype/test-combiningclass_longname.c: New file.
12790
12791         New module 'unictype/combining-class-longname'.
12792         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
12793         * lib/unictype/combiningclass_longname.c: New file.
12794         * modules/unictype/combining-class-longname: New file.
12795
12796         Tests for module 'unictype/combining-class-name'.
12797         * modules/unictype/combining-class-name-tests: New file.
12798         * tests/unictype/test-combiningclass_name.c: New file.
12799
12800         New module 'unictype/combining-class-name'.
12801         * lib/unictype.in.h (uc_combining_class_name): New declaration.
12802         * lib/unictype/combiningclass_name.c: New file.
12803         * modules/unictype/combining-class-name: New file.
12804
12805 2011-03-25  Bruno Haible  <bruno@clisp.org>
12806
12807         unictype/combining-class: Rename source files.
12808         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
12809         of unictype/combining.h.
12810         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
12811         Update.
12812         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
12813         * modules/unictype/combining-class (Description): Fix.
12814         (Files, Makefile.am): Update.
12815         * tests/unictype/test-combiningclass.c: Renamed from
12816         tests/unictype/test-combining.c.
12817         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
12818
12819 2011-03-25  Bruno Haible  <bruno@clisp.org>
12820
12821         unictype: Update list of canonical combining classes.
12822         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
12823
12824 2011-03-25  Bruno Haible  <bruno@clisp.org>
12825
12826         unictype/category-byname: Recognize long names as well.
12827         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
12828         a long name.
12829         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
12830         unictype/categ_byname.h.
12831         (UC_CATEGORY_INDEX_*): New enumeration values.
12832         (uc_general_category_byname): Use uc_general_category_lookup and
12833         convert from index to value.
12834         * lib/unictype/categ_byname.gperf: New file.
12835         * modules/unictype/category-byname (Files): Add
12836         lib/unictype/categ_byname.gperf.
12837         (Depends-on): Add gperf.
12838         (Makefile.am): Add rule for generating unictype/categ_byname.h.
12839         * tests/unictype/test-categ_byname.c (main): Test the recognition of
12840         long names.
12841
12842         Tests for module 'unictype/category-longname'.
12843         * modules/unictype/category-longname-tests: New file.
12844         * tests/unictype/test-categ_longname.c: New file.
12845
12846         New module 'unictype/category-longname'.
12847         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
12848         * lib/unictype/categ_longname.c: New file.
12849         * modules/unictype/category-longname: New file.
12850         * modules/unictype/category-all (Depends-on): Add it.
12851
12852 2011-03-25  Bruno Haible  <bruno@clisp.org>
12853
12854         Tests for module 'unictype/category-LC'.
12855         * modules/unictype/category-LC-tests: New file.
12856         * tests/unictype/test-categ_LC.c: New file, automatically generated.
12857
12858         New module 'unictype/category-LC'.
12859         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
12860         (UC_CATEGORY_LC): New declaration.
12861         (UC_CASED_LETTER): New macro.
12862         * lib/gen-uni-tables.c (is_category_LC): New function.
12863         (output_categories): Also handle category LC.
12864         (UC_CATEGORY_MASK_LC): New enumeration value.
12865         (general_category_byname): Also handle category LC.
12866         * lib/unictype/categ_LC.c: New file.
12867         * lib/unictype/categ_LC.h: New file, automatically generated.
12868         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
12869         category LC.
12870         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
12871         * modules/unictype/category-LC: New file.
12872         * modules/unictype/category-byname (Depends-on): Add
12873         unictype/category-LC.
12874         * modules/unictype/category-all (Depends-on): Likewise.
12875
12876 2011-03-25  Eric Blake  <eblake@redhat.com>
12877
12878         xmalloc: revert yesterday's regression
12879         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
12880         realloc's underlying behavior (allowing allocation of zero-size
12881         objects, especially if malloc-gnu is also in use).
12882
12883 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
12884
12885         maint.mk: add missing version to VC-tag
12886         * top/maint.mk: git tag was missing actual tag name; add it.
12887
12888         valgrind: do leak checking, and exit with code 1 on error (not 0)
12889         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
12890         to VALGRIND.
12891
12892 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
12893
12894         posix-modules: say what it does.
12895         * posix-modules: Add a line to the --help output saying what it does.
12896
12897 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
12898
12899         xmalloc: Do not leak if underlying realloc is C99 compatible.
12900         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
12901         This avoids a leak on C99-based systems.  See
12902         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
12903
12904 2011-03-24  Eric Blake  <eblake@redhat.com>
12905
12906         realloc: document portability problem
12907         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
12908         passing 0 size to realloc.
12909
12910 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
12911
12912         doc: update users.txt
12913         * users.txt: Add cvsps, tmpwatch
12914
12915 2011-03-23  Matt Rice  <ratmice@gmail.com>
12916
12917         doc: update users.txt
12918         * users.txt: Add gdb.
12919
12920 2011-03-23  Jim Meyering  <meyering@redhat.com>
12921
12922         doc: update users.txt
12923         Looking through matches up to the following URL (there are still
12924         several more pages), I found several projects that use gnulib:
12925         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
12926         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
12927         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
12928
12929 2011-03-22  Bruno Haible  <bruno@clisp.org>
12930
12931         unictype/bidi*: Rename functions.
12932         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
12933         uc_bidi_class, uc_is_bidi_class): New declarations.
12934         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
12935         uc_bidi_category_byname.
12936         (uc_bidi_category_byname): New function.
12937         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
12938         u_bidi_category_name.
12939         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
12940         (uc_bidi_category_name): New function.
12941         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
12942         uc_bidi_category.
12943         (uc_bidi_category): New function.
12944         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
12945         uc_is_bidi_category. Invoke uc_bidi_class.
12946         (uc_is_bidi_category): New function.
12947         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
12948         instead of uc_bidi_category_byname.
12949         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
12950         instead of uc_bidi_category_name.
12951         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
12952         uc_bidi_category.
12953         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
12954         instead of uc_is_bidi_category.
12955
12956 2011-03-21  Bruno Haible  <bruno@clisp.org>
12957
12958         New module 'unictype/joininggroup-all'.
12959         * modules/unictype/joininggroup-all: New file.
12960
12961         Tests for module 'unictype/joininggroup-of'.
12962         * modules/unictype/joininggroup-of-tests: New file.
12963         * tests/unictype/test-joininggroup_of.c: New file.
12964         * tests/unictype/test-joininggroup_of.h: New file, automatically
12965         generated by gen-uni-tables.
12966
12967         New module 'unictype/joininggroup-of'.
12968         * modules/unictype/joininggroup-of: New file.
12969         * lib/unictype/joininggroup_of.c: New file.
12970         * lib/unictype/joininggroup_of.h: New file, automatically generated by
12971         gen-uni-tables.
12972
12973         Tests for module 'unictype/joininggroup-byname'.
12974         * modules/unictype/joininggroup-byname-tests: New file.
12975         * tests/unictype/test-joininggroup_byname.c: New file.
12976
12977         New module 'unictype/joininggroup-byname'.
12978         * modules/unictype/joininggroup-byname: New file.
12979         * lib/unictype/joininggroup_byname.c: New file.
12980         * lib/unictype/joininggroup_byname.gperf: New file.
12981
12982         Tests for module 'unictype/joininggroup-name'.
12983         * modules/unictype/joininggroup-name-tests: New file.
12984         * tests/unictype/test-joininggroup_name.c: New file.
12985
12986         New module 'unictype/joininggroup-name'.
12987         * modules/unictype/joininggroup-name: New file.
12988         * lib/unictype/joininggroup_name.c: New file.
12989         * lib/unictype/joininggroup_name.h: New file.
12990
12991         New module 'unictype/joiningtype-all'.
12992         * modules/unictype/joiningtype-all: New file.
12993
12994         Tests for module 'unictype/joiningtype-of'.
12995         * modules/unictype/joiningtype-of-tests: New file.
12996         * tests/unictype/test-joiningtype_of.c: New file.
12997         * tests/unictype/test-joiningtype_of.h: New file, automatically
12998         generated by gen-uni-tables.
12999
13000         New module 'unictype/joiningtype-of'.
13001         * modules/unictype/joiningtype-of: New file.
13002         * lib/unictype/joiningtype_of.c: New file.
13003         * lib/unictype/joiningtype_of.h: New file, automatically generated by
13004         gen-uni-tables.
13005
13006         Tests for module 'unictype/joiningtype-byname'.
13007         * modules/unictype/joiningtype-byname-tests: New file.
13008         * tests/unictype/test-joiningtype_byname.c: New file.
13009
13010         New module 'unictype/joiningtype-byname'.
13011         * modules/unictype/joiningtype-byname: New file.
13012         * lib/unictype/joiningtype_byname.c: New file.
13013
13014         Tests for module 'unictype/joiningtype-name'.
13015         * modules/unictype/joiningtype-name-tests: New file.
13016         * tests/unictype/test-joiningtype_name.c: New file.
13017
13018         New module 'unictype/joiningtype-name'.
13019         * modules/unictype/joiningtype-name: New file.
13020         * lib/unictype/joiningtype_name.c: New file.
13021
13022         unictype: Add support for Arabic shaping properties.
13023         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
13024         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
13025         declarations.
13026         (UC_JOINING_GROUP_*): New enumeration values.
13027         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
13028         declarations.
13029         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
13030         (unicode_joining_type): New variable.
13031         (UC_JOINING_GROUP_*): New enumeration values.
13032         (unicode_joining_group): New variable.
13033         (fill_arabicshaping, joining_type_as_c_identifier,
13034         output_joining_type_test, output_joining_type,
13035         joining_group_as_c_identifier, output_joining_group_test,
13036         output_joining_group): New functions.
13037         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
13038         fill_arabicshaping and output_joining_type_test, output_joining_type,
13039         output_joining_group_test, output_joining_group.
13040         Reported by Simon Josefsson.
13041
13042 2011-03-21  Jim Meyering  <meyering@redhat.com>
13043
13044         strftime: fix a bug in yesterday's change
13045         * lib/strftime.c (add): Accommodate width's initial value of -1.
13046         Otherwise, nstrftime would copy uninitialized data into
13047         the result buffer.
13048
13049 2011-03-21  Jim Meyering  <meyering@redhat.com>
13050
13051         tests: add strftime-tests module
13052         * tests/test-strftime.c: New file.
13053         * modules/strftime-tests: New module.
13054
13055 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
13056
13057         strftime: don't assume a byte count fits in 'int'
13058         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
13059         found this problem by static analysis, using gcc -Wstrict-overflow
13060         (GCC 4.5.2, x86-64).  This reported an optimization that depended
13061         on an integer overflow having undefined behavior, but it turns out
13062         that the argument is a size, which might not fit in 'int' anyway,
13063
13064 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
13065
13066         stdio: don't require ignore_value around fwrite
13067
13068         This patch works around libc bug 11959
13069         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
13070         Without this patch, applications must often write
13071         ignore_value (fwrite (...)) even though the ignore_value is
13072         not helpful here.  It's common to write many objects, using
13073         fwrite/printf/etc., and then use ferror to detect output error.
13074
13075         I considered making this patch optional, but decided against it,
13076         because libc is obviously being inconsistent here: there is no
13077         reason libc should insist that user code must inspect fwrite
13078         return's value without also insisting that it inspect printf's,
13079         putchar's, etc.  If user code wants to have a strict style where
13080         all these functions' values are checked (so that ferror need not
13081         be checked), we could add support for that style in a new gnulib
13082         module, but in the meantime it's better to be consistent and to
13083         support common usage.
13084
13085         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
13086         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
13087         that we are compiling in checking mode, and if not C++, and
13088         if not already wrapping fwrite for some other reason.
13089         (fwrite): #define to rpl_fwrite if the latter is defined.
13090
13091 2011-03-20  Bruno Haible  <bruno@clisp.org>
13092
13093         verror: Fix compilation error introduced on 2011-02-13.
13094         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
13095         instead of __attribute__.
13096         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13097
13098 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
13099             Bruno Haible  <bruno@clisp.org>
13100
13101         socklen: do not depend on sys_socket
13102         While trying to modify Emacs to use gnulib's socklen module,
13103         I discovered a circular dependency: socklen depends on sys_socket
13104         and vice versa.  Emacs can use socklen, but it does not need
13105         sys_socket because it has its own substitute for sys/socket.h.
13106         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
13107         gl_TYPE_SOCKLEN_T.
13108         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
13109         gl_PREREQ_SYS_H_SOCKET.
13110         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
13111         gl_PREREQ_SYS_H_SOCKET.
13112         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
13113         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
13114         * modules/socklen (Depends-on): Do not depend on sys_socket.
13115         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
13116
13117 2011-03-20  Jim Meyering  <meyering@redhat.com>
13118
13119         maint.mk: sort file names *after* new transformation
13120         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
13121         prefix would have led to an unwarranted failure in GNU parted.
13122         Sort after that transformation.
13123
13124 2011-03-19  Jim Meyering  <meyering@redhat.com>
13125
13126         maint.mk: fix po-file syntax-check rule
13127         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
13128         Patch by Bruno Haible.
13129
13130 2011-03-19  Bruno Haible  <bruno@clisp.org>
13131
13132         socklen: Update comment.
13133         * m4/socklen.m4: Update comment about platforms.
13134
13135 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
13136             Bruno Haible  <bruno@clisp.org>
13137
13138         inet_ntop, inet_pton: Simplify.
13139         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
13140         documented to provide socklen_t and we already depend on sys_socket.
13141         * modules/inet_pton (Depends-on): Likewise.
13142         * lib/arpa_inet.in.h: Adjust comment.
13143
13144 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
13145             Bruno Haible  <bruno@clisp.org>
13146
13147         netdb: Simplify.
13148         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
13149         documented to provide socklen_t and we already depend on sys_socket.
13150         * lib/netdb.in.h: Adjust comment.
13151
13152 2011-03-19  Bruno Haible  <bruno@clisp.org>
13153
13154         sys_socket, netdb: Document problem with socklen_t.
13155         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
13156         platforms.
13157         * doc/posix-headers/netdb.texi: Likewise.
13158
13159 2011-03-18  Eric Blake  <eblake@redhat.com>
13160
13161         maint.mk: let po check work in VPATH build
13162         * top/maint.mk (po_file): Allow cfg.mk override.
13163         (sc_po_check): Allow VPATH use.
13164         Reported by Jiri Denemark.
13165
13166 2011-03-16  Jim Meyering  <meyering@redhat.com>
13167
13168         maint.mk: allow fine-grained syntax-check exclusion via Make variables
13169         Before, you would have had to create one .x-sc_ file per rule in order
13170         to exempt offending files.  Now, you may instead use a Make variable --
13171         usually defined in cfg.mk -- whose name identifies the affected rule.
13172         * top/maint.mk (_sc_excl): Define.
13173         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
13174         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
13175
13176 2011-03-13  Bruno Haible  <bruno@clisp.org>
13177
13178         ignore-value tests: Avoid warnings.
13179         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
13180         empty for gcc < 3.4.
13181
13182 2011-03-13  Bruno Haible  <bruno@clisp.org>
13183
13184         passfd: Fix link error on Solaris.
13185         * modules/passfd (Description): Correct.
13186         (Depends-on): Add socketlib.
13187         (Link): New section.
13188         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
13189
13190 2011-03-13  Bruno Haible  <bruno@clisp.org>
13191
13192         passfd: Fix link error on AIX 5.2.
13193         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
13194
13195 2011-03-13  Bruno Haible  <bruno@clisp.org>
13196
13197         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
13198         * lib/sys_socket.in.h: Include <stddef.h>.
13199         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
13200         CMSG_FIRSTHDR. Remove unused variable.
13201
13202 2011-03-13  Bruno Haible  <bruno@clisp.org>
13203
13204         passfd: Fix compilation error on OpenBSD.
13205         * lib/passfd.c: Include <sys/uio.h>.
13206
13207 2011-03-13  Bruno Haible  <bruno@clisp.org>
13208
13209         passfd test: Fix warnings.
13210         * tests/test-passfd.c: Include <sys/wait.h>.
13211         (main): Fix typo.
13212
13213 2011-03-13  Bruno Haible  <bruno@clisp.org>
13214
13215         passfd module, part 4, tweaks.
13216         * tests/test-passfd.c: Reorder includes.
13217         (main): Fix perror and printf calls.
13218
13219 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
13220
13221         passfd module, part 4.
13222         * modules/passfd-tests: New file.
13223         * tests/test-passfd.c: New file.
13224
13225 2011-03-13  Jim Meyering  <meyering@redhat.com>
13226
13227         Makefile: rely on GNU make; derive syntax-check rule names
13228         Rather than requiring that each sc_ rule be listed as a dependent
13229         of "check", use features of GNU make to derive the list.
13230         * Makefile (syntax-check-rules): Define.
13231         (check): Depend on the new variable, not the hard-coded list.
13232
13233 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
13234             Bruno Haible  <bruno@clisp.org>
13235
13236         passfd module, part 3.
13237         * lib/passfd.h (recvfd): Add a flags argument.
13238         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
13239         (recvfd): Add a flags argument.
13240         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
13241         exists.
13242         * modules/passfd (Depends-on): Add cloexec.
13243         Suggested by Eric Blake.
13244
13245 2011-03-13  Bruno Haible  <bruno@clisp.org>
13246
13247         passfd module, part 2, tweaks.
13248         * modules/passfd (Files): Reorder.
13249         (Depends-on): Remove errno.
13250         (Include): Remove <sys/socket.h>, <sys/un.h>.
13251         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
13252         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
13253         specification header. Include <sys/socket.h> always. Don't include
13254         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
13255         (sendfd): Clarify that it sets errno when it fails.
13256         (recvfd): Fix specification.
13257
13258 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
13259
13260         passfd module, part 2.
13261         * modules/passfd: New file.
13262         * lib/passfd.h: New file.
13263         * lib/passfd.c: New file.
13264
13265 2011-03-12  Bruno Haible  <bruno@clisp.org>
13266
13267         wcswidth, mbswidth: Avoid integer overflow.
13268         * lib/wcswidth.c: Include <limits.h>.
13269         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
13270         * lib/mbswidth.c: Include <limits.h>.
13271         (mbsnwidth): Avoid 'int' overflow.
13272         Reported by Jim Meyering.
13273
13274 2011-03-12  Bruno Haible  <bruno@clisp.org>
13275
13276         futimens, utimensat: Avoid endless recursion on Solaris 10.
13277         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
13278         Solaris.
13279         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
13280         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
13281
13282 2011-03-11  Jim Meyering  <meyering@redhat.com>
13283
13284         maint.mk: relax a regexp to accommodate other formatting styles
13285         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
13286         between "ngettext" and the following "(".
13287
13288 2011-03-11  Pádraig Brady <P@draigBrady.com>
13289
13290         maint.mk: suppress a false positive warning
13291         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
13292         diagnostics are marked with ngettext.
13293
13294 2011-03-10  Eric Blake  <eblake@redhat.com>
13295
13296         wchar: add explicit dependencies, for Tru64
13297         * modules/mbmemcasecoll (Depends-on): Add wchar.
13298         * modules/mbtowc (Depends-on): Likewise.
13299         * modules/vasnprintf (Depends-on): Likewise.
13300         * modules/unistdio/u-printf-args (Depends-on): Likewise.
13301         * modules/wctomb (Depends-on): Likewise.
13302         Reported by Peter O'Gorman.
13303
13304 2011-03-08  Bruno Haible  <bruno@clisp.org>
13305
13306         passfd module, part 1, tweaks.
13307         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
13308         Improve indentation. Improve AC_MSG_CHECKING messages.
13309         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
13310         gl_SOCKET_FAMILIES.
13311
13312 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
13313
13314         passfd module, part 1.
13315         * m4/afunix.m4: New file.
13316         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
13317         sockets.
13318
13319 2011-03-08  Bruno Haible  <bruno@clisp.org>
13320
13321         regex-quote: New API.
13322         * lib/regex-quote.h: Include <stdbool.h>.
13323         (struct regex_quote_spec): New type.
13324         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
13325         New declarations.
13326         (regex_quote_length, regex_quote_copy, regex_quote): Take a
13327         'const struct regex_quote_spec *' argument.
13328         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
13329         (pcre_special): New constant.
13330         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
13331         New functions.
13332         (regex_quote_length, regex_quote_copy, regex_quote): Take a
13333         'const struct regex_quote_spec *' argument.
13334         * modules/regex-quote (Depends-on): Add stdbool.
13335         * tests/test-regex-quote.c (check): Update for new API. Add test for
13336         anchored results.
13337         * NEWS: Mention the API change.
13338         Reported by Reuben Thomas and Eric Blake.
13339
13340 2011-03-06  Bruno Haible  <bruno@clisp.org>
13341
13342         regex-quote: Fix creation of POSIX extended regular expressions.
13343         * lib/regex-quote.c (ere_special): Add grouping and alternation
13344         operators.
13345
13346 2011-03-05  Bruno Haible  <bruno@clisp.org>
13347
13348         doc: Improve doc regarding autopoint vs. gnulib.
13349         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
13350         disable autopoint while running autoreconf.
13351         Suggested by Ralf Wildenhues.
13352
13353 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13354
13355         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
13356         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
13357
13358 2011-03-03  Bruce Korb  <bkorb@gnu.org>
13359
13360         parse-duration: remove xalloc.h dependency
13361         * lib/parse-duration.c (parse_period): handle NULL return from
13362         strdup instead of calling xstrdup().
13363         * modules/parse-duration: remove "xalloc" dependency
13364
13365 2011-03-03  Matthew Booth  <mbooth@redhat.com>
13366
13367         bootstrap: honor m4_base when running aclocal
13368         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
13369
13370 2011-03-02  Jim Meyering  <meyering@redhat.com>
13371
13372         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
13373         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
13374         on request from Matt Booth.
13375
13376 2011-03-01  Eric Blake  <eblake@redhat.com>
13377
13378         test-link: work on Hurd
13379         * tests/test-link.h (test_link): Hurd rejects linking directories
13380         with EISDIR instead of the POSIX-mandated EPERM.
13381
13382 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
13383
13384         stdio: simplify by moving files to printf-posix, sigpipe
13385         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
13386         since this symbol is needed only if printf is replaced.
13387         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
13388         Require gl_ASM_SYMBOL_PREFIX.
13389         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
13390         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
13391         (Depends-on): Add 'raise'.
13392         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
13393         * modules/stdio (Files): Remove lib/stdio-write.c,
13394         m4/asm-underscore.m4.
13395         (Depends-on): Remove 'raise'.
13396
13397         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
13398         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
13399         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
13400         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
13401
13402 2011-02-28  Bruno Haible  <bruno@clisp.org>
13403
13404         localcharset: Assume ANSI C behaviour of free().
13405         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
13406         calling free().
13407         Suggested by Simon Josefsson <simon@josefsson.org>.
13408
13409 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
13410             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
13411             Bruno Haible  <bruno@clisp.org>  (tiny change)
13412
13413         On Cygwin, use /proc file system instead of win32 API.
13414         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
13415         Win32 file names.
13416         (DllMain): Simplify by removing Cygwin specific code.
13417         (find_shared_library_fullname): Use Linux specific implementation also
13418         for Cygwin.
13419         (get_shared_library_fullname): Update accordingly.
13420         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
13421         Win32 file names.
13422         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
13423         Cygwin specific code.
13424
13425 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
13426             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
13427
13428         Fix OpenMP flag detection for various Fortran compilers.
13429         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
13430         OpenMP-conditional compilation construct, to force compile
13431         failure with missing OpenMP flag.
13432         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
13433
13434 2011-02-25  Eric Blake  <eblake@redhat.com>
13435
13436         strstr: expand test coverage
13437         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
13438         compilation.
13439         * tests/test-memmem.c (main): Duplicate tests.
13440         * tests/test-strcasestr.c (main): Likewise.
13441         * tests/test-c-strcasestr.c (main): Likewise.
13442
13443 2011-02-25  Jim Meyering  <meyering@redhat.com>
13444
13445         maint.mk: detect missing-NL-at-EOF, too
13446         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
13447         it also detects when a file lacks a newline at EOF.
13448         (require_exactly_one_NL_at_EOF_): Renamed from
13449         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
13450         since people may well have .x-sc_... file names tied to the
13451         existing name.  Suggested by Eric Blake.
13452
13453 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
13454
13455         dirname: move m4/dos.m4 functionality into lib/dosname.h
13456
13457         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
13458         extracts symbols from it, puts them into config.h; but it's much
13459         easier to use the symbols directly.  filename.h already does this,
13460         but it disagrees with dos.m4 in some respects.  This patch
13461         introduces a different include file dosname.h that packages up
13462         dos.m4, and then later we can work on merging filename.h and
13463         dosname.h.  Applications that need only the easy-to-configure
13464         symbols should consider including dosname.h rather than dirname.h.
13465         * NEWS: Mention incompatible changes.
13466         * m4/dos.m4: Remove.
13467         * lib/dosname.h, modules/dosname: New files.
13468         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
13469         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
13470         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
13471         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
13472         Include dosname.h, not dirname.h.
13473         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
13474         Include dosname.h, for definitions of symbols like ISSLASH
13475         that used to be in config.h.
13476         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
13477         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
13478         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
13479         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
13480         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
13481         * modules/rmdir (Files): Likewise.
13482         * modules/stat (Files): Likewise.
13483         * modules/unlink (Files): Likewise.
13484         * modules/dirname-lgpl (Depends-on): Add dosname.
13485         * modules/lstat (Depends-on): Likewise.
13486         * modules/openat (Depends-on): Likewise.
13487         * modules/rmdir (Depends-on): Likewise.
13488         * modules/savewd (Depends-on): Likewise.
13489         * modules/stat (Depends-on): Likewise.
13490         * modules/unlink (Depends-on): Likewise.
13491         * modules/openat (Depends-on): Remove dirname-lgpl.
13492         * modules/savewd (Depends-on): Likewise.
13493         * tests/test-dirname.c: Do not use removed symbols like
13494         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
13495         the remaining symbols, e.g., ISSLASH ('\\').
13496
13497 2011-02-25  Eric Blake  <eblake@redhat.com>
13498
13499         strstr: revert patches that introduced bug and pessimization
13500         * lib/str-two-way.h: Add another reference.
13501         (two_way_short_needle, two_way_long_needle): Revert changes from
13502         2011-02-24; they pessimize search speed.
13503         (critical_factorization): Partially revert changes from
13504         2010-06-22; they violate the requirement that the left half of the
13505         needle be smaller than the period of the needle.
13506
13507 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
13508
13509         filenamecat: remove unnecessary dependency on dirname-lgpl
13510         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
13511         is no direct dependency, just an indirect one via filenamecat-lgpl.
13512
13513         remove: remove unnecessary use of m4/dos.m4
13514         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
13515         * modules/remove (FILES): Remove m4/dos.m4.
13516
13517         * lib/openat-proc.c: Don't include dirname.h; not needed.
13518
13519         backupfile: remove unnecessary use of m4/dos.m4
13520         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
13521         of its symbols are used by the backupfile code.  backupfile.c does
13522         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
13523         for the rare case of programs that want all their backup file
13524         names to live within 8+3 limits, and dos.m4 doesn't address that.
13525         * modules/backupfile (Files): Remove m4/dos.m4.
13526
13527 2011-02-24  Jim Meyering  <meyering@redhat.com>
13528
13529         strstr: fix a bug whereby strstr would mistakenly return NULL
13530         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
13531         in period calculation.
13532         (two_way_long_needle): Likewise.
13533         The original problem was reported by Mike Stump in
13534         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
13535         Ralf Wildenhues provided the short needle and haystack.
13536         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
13537         Add a more involved test to trigger the bug in two_way_long_needle.
13538
13539 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
13540
13541         gnulib-tool: remove use of bold display in help screen
13542         * gnulib-tool (func_usage): Do not use bold display anymore in the
13543         help screen.  That was just meant to be a temporary emphasis for a
13544         backward-incompatible change.
13545
13546 2011-02-23  Bruno Haible  <bruno@clisp.org>
13547
13548         Fix misindentation of preprocessor directives.
13549         * lib/argp-namefrob.h: Reindent preprocessor directives.
13550         * lib/getopt_int.h (struct _getopt_data): Likewise.
13551         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
13552         * lib/vasnprintf.c (decode_long_double): Likewise.
13553         * tests/test-argmatch.c: Insert blank lines, for clarity.
13554         * tests/test-exclude.c: Likewise.
13555
13556 2011-02-22  Bruno Haible  <bruno@clisp.org>
13557
13558         ioctl: Fix for MacOS X in 64-bit mode.
13559         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
13560         value.
13561         Suggested by Eric Blake.
13562         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
13563
13564 2011-02-22  Jim Meyering  <meyering@redhat.com>
13565
13566         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
13567         * Makefile (sc_cpp_indent_check): Don't limit the check to files
13568         in lib/.
13569
13570 2011-02-22  Eric Blake  <eblake@redhat.com>
13571
13572         maint: avoid any CDPATH issue
13573         * Makefile (sc_cpp_indent_check): Anchor cd argument.
13574
13575         maint: adjust cpp indentation for my modules, as well
13576         * Makefile (sc_cpp_indent_check): Add my name.
13577         * lib/fbufmode.c: Filter through cppi.
13578         * lib/fpurge.c: Likewise.
13579         * lib/freadable.c: Likewise.
13580         * lib/freading.c: Likewise.
13581         * lib/fwritable.c: Likewise.
13582         * lib/fwriting.c: Likewise.
13583         * lib/sigaction.c: Likewise.
13584
13585 2011-02-22  Jim Meyering  <meyering@redhat.com>
13586
13587         maint: adjust cpp indentation to reflect nesting depth
13588         I.e., in a block of code that begins with an unnested "#if",
13589         put one space between the "#" in column 1 and following token.
13590         For example,
13591         -#include <sys/vfs.h>
13592         +# include <sys/vfs.h>
13593         Do this only in .c files that are part of a module I maintain.
13594         * lib/linkat.c: Filter through cppi.
13595         * lib/nanosleep.c: Likewise.
13596         * lib/openat.c: Likewise.
13597         * lib/openat-die.c: Likewise.
13598         * lib/dup3.c: Likewise.
13599         * lib/fchownat.c: Likewise.
13600         * lib/flock.c: Likewise.
13601         * lib/fsync.c: Likewise.
13602         * lib/fts.c: Likewise.
13603         * lib/getpass.c: Likewise.
13604         * lib/gettimeofday.c: Likewise.
13605         * lib/userspec.c: Likewise.
13606         * Makefile (sc_cpp_indent_check): New rule, to check this.
13607
13608 2011-02-22  Bruno Haible  <bruno@clisp.org>
13609
13610         New module 'wctomb'.
13611         * lib/stdlib.in.h (wctomb): New declaration.
13612         * lib/wctomb.c: New file.
13613         * lib/wctomb-impl.h: New file.
13614         * m4/wctomb.m4: New file.
13615         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
13616         REPLACE_WCTOMB.
13617         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
13618         REPLACE_WCTOMB.
13619         * modules/wctomb: New file.
13620         * tests/test-stdlib-c++.cc: Test signature of wctomb.
13621         * doc/posix-functions/wctomb.texi: Mention the new module.
13622         * modules/wctob (Depends-on): Add wctomb.
13623
13624 2011-02-22  Bruno Haible  <bruno@clisp.org>
13625
13626         New module 'mbtowc'.
13627         * lib/stdlib.in.h (mbtowc): New declaration.
13628         * lib/mbtowc.c: New file.
13629         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
13630         * m4/mbtowc.m4: New file.
13631         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
13632         REPLACE_MBTOWC.
13633         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
13634         REPLACE_MBTOWC.
13635         * modules/mbtowc: New file.
13636         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
13637         * doc/posix-functions/mbtowc.texi: Mention the new module.
13638         * modules/btowc (Depends-on): Add mbtowc.
13639
13640 2011-02-22  Bruno Haible  <bruno@clisp.org>
13641
13642         wcrtomb: Add more tests for native Windows platforms.
13643         * tests/test-wcrtomb-w32-1.sh: New file.
13644         * tests/test-wcrtomb-w32-2.sh: New file.
13645         * tests/test-wcrtomb-w32-3.sh: New file.
13646         * tests/test-wcrtomb-w32-4.sh: New file.
13647         * tests/test-wcrtomb-w32-5.sh: New file.
13648         * tests/test-wcrtomb-w32.c: New file.
13649         * modules/wcrtomb-tests (Files): Add them.
13650         (Makefile.am): Arrange to run these tests.
13651         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
13652         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
13653
13654 2011-02-20  Bruno Haible  <bruno@clisp.org>
13655
13656         wcrtomb: Enhance test.
13657         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
13658
13659 2011-02-20  Bruno Haible  <bruno@clisp.org>
13660
13661         mbrtowc: Tiny optimization.
13662         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
13663
13664 2011-02-20  Jim Meyering  <meyering@redhat.com>
13665
13666         test-exclude.c: remove unmatched #endif
13667         * tests/test-exclude.c: Remove stray #endif, left over from
13668         the change of a week ago.
13669
13670 2011-02-19  Jim Meyering  <meyering@redhat.com>
13671
13672         git-version-gen: skip "-dirty" check when appropriate
13673         * build-aux/git-version-gen: Don't run any git commands when the
13674         version string comes from .tarball-version.  Prior to this, we
13675         would run git update-index --refresh even from a just-unpacked
13676         tarball directory, and that could affect a .git/ directory in a
13677         parent of the build directory.  Reported by Mike Frysinger.
13678
13679 2011-02-19  Bruno Haible  <bruno@clisp.org>
13680
13681         unictype/property-byname: Reduce the size of the 'data' segment.
13682         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
13683
13684 2011-02-19  Bruno Haible  <bruno@clisp.org>
13685
13686         unictype/scripts: Reduce the size of the 'data' segment.
13687         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
13688         '%pic'.
13689         * lib/unictype/scripts_byname.gperf: Regenerated.
13690
13691 2011-02-19  Bruno Haible  <bruno@clisp.org>
13692
13693         stdint: Update documentation.
13694         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
13695
13696 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
13697
13698         stdint: omit redundant check for wchar.h
13699         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
13700         always tests whether wchar.h exists, so remove the now-redundant test.
13701
13702 2011-02-18  Bruno Haible  <bruno@clisp.org>
13703
13704         stdint: Cut dependency to module 'wchar'.
13705         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
13706         include the necessary prerequisites.
13707         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
13708         * modules/stdint (Depends-on): Remove wchar.
13709         (Makefile.am): Substitute HAVE_WCHAR_H.
13710         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
13711
13712 2011-02-18  Eric Blake  <eblake@redhat.com>
13713
13714         longlong: skip, rather than fail, on cross-compilation
13715         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
13716         when cross-compiling; regression from 2011-02-16.
13717
13718 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
13719
13720         * NEWS: Mention 2011-02-08 change to stdlib.
13721
13722 2011-02-17  Bruno Haible  <bruno@clisp.org>
13723
13724         getloadavg: Add comments about platforms.
13725         * m4/getloadavg.m4: Add comment.
13726         * lib/getloadavg.c: Likewise.
13727
13728 2011-02-17  Bruno Haible  <bruno@clisp.org>
13729
13730         getloadavg: Fix link error on Solaris 2.6.
13731         * modules/getloadavg (Link): New section.
13732         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
13733         linking test-getloadavg.
13734         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
13735         getloadavg.
13736
13737 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
13738
13739         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
13740         It was 'int', but this doesn't match the IRIX 6.5 manual.
13741         Suggested by Bruno Haible in
13742         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
13743
13744 2011-02-17  Bruno Haible  <bruno@clisp.org>
13745
13746         havelib: Fix comments.
13747         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
13748         change.
13749
13750 2011-02-17  Bruno Haible  <bruno@clisp.org>
13751
13752         havelib: Update config.rpath.
13753         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
13754
13755 2011-02-17  Bruno Haible  <bruno@clisp.org>
13756
13757         getloadavg test: Add some plausibility checks.
13758         * tests/test-getloadavg.c (check_avg): Print a warning when the value
13759         is improbable.
13760
13761 2011-02-16  Eric Blake  <eblake@redhat.com>
13762
13763         maintainer-makefile: make syntax-check a no-op from tarballs
13764         * top/maint.mk (no-vc-detected): New rule.
13765         (local-checks-available): Use it to avoid hanging if someone tries
13766         'make syntax-check' from a tarball.  Also append to any non-syntax
13767         checks already defined in cfg.mk.
13768
13769 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
13770
13771         longlong: tune, particularly for common case of c99
13772
13773         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
13774         or running anything if c99, or if unsigned long long int does not
13775         work.  In either case, we know the answer without further tests.
13776         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
13777         it at most once, and use its results for both long long int and
13778         unsigned long long int.  This is more likely to be efficient in
13779         the common case where the program wants to check for both long
13780         long int and unsigned long long int.
13781         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
13782         since the answer is already known.
13783
13784 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
13785
13786         getloadavg: set errno
13787         * lib/getloadavg.c: Set errno when returning -1.  If no other
13788         error number looks appropriate, set it to ENOSYS if the getloadavg
13789         looks like it can't possibly ever work, ENOTSUP otherwise.
13790         Suggested by Bruno Haible in
13791         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
13792
13793         getloadavg: trim unused parts and speed up 'configure'
13794         * NEWS: Document this.
13795         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
13796         always compiled if getloadavg is absent.
13797         Move test code to ...
13798         * tests/test-getloadavg.c: New file, containing previous
13799         contents of test from lib/getloadavg.c.  It also contains
13800         suggestions by Bruno Haible in
13801         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
13802         * modules/getloadavg-tests: New file.
13803         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
13804         Do tests in the same order as they're needed for getloadavg.c.
13805         Omit setgid-related tests that generate symbols KMEM_GROUP,
13806         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
13807         Do only the tests that are needed to see whether the system has
13808         getloadavg, moving the other tests into ...
13809         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
13810         NLIST_NAME_UNION; nobody should be using it.  Do not define
13811         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
13812         relevant, as the user of this module shouldn't care how getloadavg
13813         is implemented.
13814
13815         getloadavg: omit unused var
13816         * lib/getloadavg.c (getloadavg): Omit unused local variable.
13817
13818 2011-02-15  Jim Meyering  <meyering@redhat.com>
13819
13820         doc: update users.txt
13821         * users.txt: Update iwhd's URL.
13822
13823 2011-02-13  Bruno Haible  <bruno@clisp.org>
13824
13825         Consistent macro naming for macros that use GCC __attribute__.
13826         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
13827         _ATTRIBUTE_NONNULL_.
13828         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
13829         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
13830         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
13831         ATTRIBUTE_DEPRECATED.
13832         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
13833         ATTRIBUTE_NORETURN.
13834         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
13835         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
13836         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
13837         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
13838         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
13839         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
13840         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
13841         ATTRIBUTE_SENTINEL.
13842         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
13843         ATTRIBUTE_RETURN_CHECK.
13844         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
13845         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
13846         ATTRIBUTE_NORETURN.
13847         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
13848         Reported by Paul Eggert.
13849
13850 2011-02-13  Bruno Haible  <bruno@clisp.org>
13851
13852         Don't interfere with a program's definition of __attribute__.
13853         * lib/argp.h (__attribute__): Remove definition.
13854         (_GL_ATTRIBUTE_FORMAT): New macro.
13855         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
13856         * lib/argp-fmtstream.h (__attribute__): Remove definition.
13857         (_GL_ATTRIBUTE_FORMAT): New macro.
13858         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
13859         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
13860         GCC 3 or newer.
13861         * lib/error.h (__attribute__): Remove definition.
13862         (_GL_ATTRIBUTE_FORMAT): New macro.
13863         (error, error_at_line): Use it.
13864         * lib/hash.h (__attribute__): Remove definition.
13865         (ATTRIBUTE_WUR): Update definition. Define always.
13866         * lib/openat.h (__attribute__): Remove definition.
13867         (ATTRIBUTE_NORETURN): Update definition. Define always.
13868         * lib/sigpipe-die.h (__attribute__): Remove definition.
13869         (ATTRIBUTE_NORETURN): Update definition. Define always.
13870         * lib/vasnprintf.h (__attribute__): Remove definition.
13871         (_GL_ATTRIBUTE_FORMAT): New macro.
13872         (asnprintf, vasnprintf): Use it.
13873         * lib/xalloc.h (__attribute__): Remove definition.
13874         (ATTRIBUTE_NORETURN): Update definition. Define always.
13875         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
13876         * lib/xmemdup0.h (__attribute__): Remove definition.
13877         (ATTRIBUTE_NORETURN): Update definition. Define always.
13878         * lib/xprintf.h (__attribute__): Remove definition.
13879         (_GL_ATTRIBUTE_FORMAT): New macro.
13880         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
13881         * lib/xstrtol.h (__attribute__): Remove definition.
13882         (ATTRIBUTE_NORETURN): Update definition. Define always.
13883         * lib/xvasprintf.h (__attribute__): Remove definition.
13884         (_GL_ATTRIBUTE_FORMAT): New macro.
13885         (xasprintf, xvasprintf): Use it.
13886         * tests/test-argmatch.c (__attribute__): Remove definition.
13887         (ATTRIBUTE_NORETURN): Update definition. Define always.
13888         * tests/test-exclude.c (__attribute__): Remove definition.
13889         (ATTRIBUTE_NORETURN): Update definition. Define always.
13890         Reported by Paul Eggert.
13891
13892 2011-02-13  Bruno Haible  <bruno@clisp.org>
13893
13894         mbrtowc: Add more tests for native Windows platforms.
13895         * tests/test-mbrtowc-w32-1.sh: New file.
13896         * tests/test-mbrtowc-w32-2.sh: New file.
13897         * tests/test-mbrtowc-w32-3.sh: New file.
13898         * tests/test-mbrtowc-w32-4.sh: New file.
13899         * tests/test-mbrtowc-w32-5.sh: New file.
13900         * tests/test-mbrtowc-w32.c: New file.
13901         * modules/mbrtowc-tests (Files): Add them.
13902         (Makefile.am): Arrange to run these tests.
13903         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
13904         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
13905
13906 2011-02-13  Bruno Haible  <bruno@clisp.org>
13907
13908         mbrtowc: Work around native Windows bug.
13909         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
13910         guess when no suitable locale for testing was found.
13911         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
13912
13913 2011-02-13  Bruno Haible  <bruno@clisp.org>
13914
13915         mbsinit: Work around mingw bug.
13916         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
13917         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
13918         Windows.
13919         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
13920
13921 2011-02-13  Bruno Haible  <bruno@clisp.org>
13922
13923         mbsinit: Don't crash for a NULL argument.
13924         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
13925         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
13926
13927 2011-02-13  Bruno Haible  <bruno@clisp.org>
13928
13929         Don't interfere with a program's definition of __attribute__.
13930         * lib/stdio.in.h (__attribute__): Remove definition.
13931         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
13932         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
13933         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
13934         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
13935         * lib/string.in.h (__attribute__): Remove definition.
13936         Reported by Paul Eggert.
13937
13938 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
13939
13940         stdlib: don't get in the way of non-GCC __attribute__
13941         See thread starting at
13942         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
13943         Revert previous stdlib change, installing the following instead:
13944         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
13945         to get in the way of a non-GCC compiler that supports __attribute__.
13946         (_GL_ATTRIBUTE_RETURN): New macro.
13947         (_Exit): Use it instead of __attribute__.
13948
13949 2011-02-12  Bruno Haible  <bruno@clisp.org>
13950
13951         quotearg test: Avoid test failure on mingw.
13952         * tests/test-quotearg.sh: Convert the locale identifier from native
13953         Windows syntax to Unix syntax.
13954
13955 2011-02-12  Bruno Haible  <bruno@clisp.org>
13956
13957         setlocale: Prefer gnulib's override over libintl's override.
13958         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
13959         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
13960         GNULIB_defined_setlocale is set.
13961
13962 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
13963
13964         stdlib: support non-GCC __attribute__
13965
13966         Fix a serious and tricky problem encountered when attempting to
13967         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
13968         5.5, but it crashed due to memory corruption on Solaris 10 with
13969         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
13970         bits that are otherwise zero.  This tagging is optional inside
13971         Emacs but is preferred and is used when __attribute__ ((__aligned
13972         (8))) works, as it does with both recent-enough GCC and with Sun C
13973         5.11.  However, Sun C 5.11 is not GCC and does not #define
13974         __GNUC__ and __GNUC_MINOR__.
13975
13976         When I added the getloadavg module to Emacs, it brought in
13977         stdlib.in.h, which contained this fragment:
13978
13979            #ifndef __attribute__
13980            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
13981            #  define __attribute__(Spec)   /* empty */
13982            # endif
13983            #endif
13984
13985         When files that include <stdlib.h> were compiled with Sun C 5.11,
13986         the above code disabled __attribute__ ((__aligned (8))), which
13987         caused variables to not be properly aligned, which eventually led
13988         to the pointer corruption mentioned above.  (This was a bit hard
13989         to diagnose, unfortunately.)
13990
13991         Several "#define __attribute__(X) /* empty */" code snippets need
13992         to be eradicated from Gnulib to work with non-GCC compilers that
13993         support __attribute__.  The Autoconf way to do this is to test for
13994         each kind of attribute that we want support for, and selectively
13995         enable that in source code.
13996
13997         Fix this problem just for stdlib.h, by adding a test for the
13998         __noreturn__ attribute, and change stdlib.in.h to use that test
13999         when needed.  This technique can be easily generalized to the
14000         other *.in.h files and attributes, and a similar technique can be
14001         used for *.h and *.c files.  This patch is enough to solve the
14002         problem for Emacs + getloadavg, and I thought I'd publish it for
14003         feedback before undertaking further, similar fixes in other
14004         modules.
14005
14006         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
14007         because it's not needed for stdlib.h.  It merely substitutes the
14008         value directly into stdlib.h.  We may well need to #define it, or
14009         similar symbols, for other modules, but it's nice to also have an
14010         option to not #define it for applications like Emacs that do not
14011         need it.
14012
14013         * lib/stdlib.in.h (__attribute__): Do not #define.
14014         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
14015         be defined only if the _Exit module is also used.
14016         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
14017         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
14018         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
14019         platforms.
14020         * modules/_Exit (Files): Add m4/attribute.m4.
14021         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
14022         * m4/attribute.m4: New file.
14023
14024 2011-02-12  Bruno Haible  <bruno@clisp.org>
14025
14026         wcsrtombs: Work around bug on native Windows.
14027         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
14028         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
14029         instead of len.
14030         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
14031
14032 2011-02-12  Bruno Haible  <bruno@clisp.org>
14033
14034         mbsrtowcs: Work around bug on native Windows.
14035         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
14036         against mingw bug.
14037         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
14038
14039 2011-02-12  Bruno Haible  <bruno@clisp.org>
14040
14041         Avoid setlocale bugs in tests.
14042         * modules/btowc (Dependencies): Add setlocale.
14043         * modules/c-strcase (Dependencies): Likewise.
14044         * modules/mbmemcasecmp (Dependencies): Likewise.
14045         * modules/mbmemcasecoll (Dependencies): Likewise.
14046         * modules/mbrtowc (Dependencies): Likewise.
14047         * modules/mbscasecmp (Dependencies): Likewise.
14048         * modules/mbscasestr (Dependencies): Likewise.
14049         * modules/mbschr (Dependencies): Likewise.
14050         * modules/mbscspn (Dependencies): Likewise.
14051         * modules/mbsinit (Dependencies): Likewise.
14052         * modules/mbsncasecmp (Dependencies): Likewise.
14053         * modules/mbsnrtowcs (Dependencies): Likewise.
14054         * modules/mbspbrk (Dependencies): Likewise.
14055         * modules/mbspcasecmp (Dependencies): Likewise.
14056         * modules/mbsrchr (Dependencies): Likewise.
14057         * modules/mbsrtowcs (Dependencies): Likewise.
14058         * modules/mbsspn (Dependencies): Likewise.
14059         * modules/mbsstr (Dependencies): Likewise.
14060         * modules/nl_langinfo (Dependencies): Likewise.
14061         * modules/quotearg (Dependencies): Likewise.
14062         * modules/unicase/locale-language (Dependencies): Likewise.
14063         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
14064         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
14065         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
14066         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
14067         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
14068         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
14069         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
14070         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
14071         * modules/vasnprintf-posix (Dependencies): Likewise.
14072         * modules/wcrtomb (Dependencies): Likewise.
14073         * modules/wcsnrtombs (Dependencies): Likewise.
14074         * modules/wcsrtombs (Dependencies): Likewise.
14075
14076 2011-02-12  Bruno Haible  <bruno@clisp.org>
14077
14078         setlocale: Workaround native Windows bug.
14079         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
14080         succeeds but sets LC_CTYPE to "C", report a failure.
14081         * tests/test-setlocale2.sh: New file.
14082         * tests/test-setlocale2.c: New file.
14083         * modules/setlocale-tests (Files): Add the new files.
14084         (Makefile.am): Enable test-setlocale2.sh test.
14085         * doc/posix-functions/setlocale.texi: Mention workaround.
14086
14087 2011-02-11  Bruno Haible  <bruno@clisp.org>
14088
14089         Tests for module 'setlocale'.
14090         * modules/setlocale-tests: New file.
14091         * tests/test-setlocale1.sh: New file.
14092         * tests/test-setlocale1.c: New file.
14093
14094         New module 'setlocale'.
14095         * lib/locale.in.h (setlocale): New declaration.
14096         * lib/setlocale.c: New file, based on
14097         gettext/gettext-runtime/intl/setlocale.c.
14098         * m4/setlocale.m4: New file.
14099         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
14100         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
14101         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
14102         REPLACE_SETLOCALE.
14103         * modules/setlocale: New file.
14104         * tests/test-locale-c++.cc: Test the declaration of setlocale.
14105         * doc/posix-functions/setlocale.texi: Mention the new module.
14106
14107 2011-02-11  Bruno Haible  <bruno@clisp.org>
14108
14109         Prepare for locale dependent tests on mingw.
14110         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
14111         because it has the wrong locale encoding.
14112         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
14113         French_France.1252 instead of "fr".
14114         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
14115         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
14116         because it has the wrong locale encoding.
14117         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
14118         native Windows, try Turkish_Turkey.65001.
14119         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
14120         Chinese_China.54936.
14121
14122         Prepare for locale dependent tests on mingw.
14123         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
14124         differently.
14125         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
14126         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
14127         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
14128         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
14129
14130 2011-02-11  Eric Blake  <eblake@redhat.com>
14131
14132         strptime: avoid compiler warnings
14133         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
14134         compiler warnings about dead code.
14135         Reported by Daniel P. Berrange.
14136
14137 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
14138
14139         doc: update users.txt
14140         * users.txt: Add rcs.
14141
14142 2011-02-10  John W. Eaton  <jwe@gnu.org>
14143
14144         doc: update users.txt
14145         * users.txt: Add octave.
14146
14147 2011-02-10  Jim Meyering  <meyering@redhat.com>
14148
14149         doc: update users.txt
14150         * users.txt: Add iwhd.
14151
14152 2011-02-09  Bruno Haible  <bruno@clisp.org>
14153
14154         gnulib-tool: Make copyright notice adjustment more robust.
14155         * gnulib-tool (func_import): In sed_transform_main_lib_file,
14156         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
14157         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
14158         License".
14159         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
14160
14161 2011-02-06  Bruno Haible  <bruno@clisp.org>
14162
14163         New module 'towctrans'.
14164         * modules/towctrans: New file.
14165         * lib/wctype.in.h (towctrans): New declaration.
14166         * lib/towctrans.c: New file.
14167         * lib/towctrans-impl.h: New file.
14168         * m4/towctrans.m4: New file.
14169         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
14170         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
14171         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
14172         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
14173         * doc/posix-functions/towctrans.texi: Mention the new module.
14174
14175 2011-02-06  Bruno Haible  <bruno@clisp.org>
14176
14177         New module 'wctrans'.
14178         * modules/wctrans: New file.
14179         * lib/wctype.in.h (wctrans): New declaration.
14180         * lib/wctrans.c: New file.
14181         * lib/wctrans-impl.h: New file.
14182         * m4/wctrans.m4: New file.
14183         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
14184         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
14185         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
14186         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
14187         * doc/posix-functions/wctrans.texi: Mention the new module.
14188
14189 2011-02-06  Bruno Haible  <bruno@clisp.org>
14190
14191         New module 'iswctype'.
14192         * modules/iswctype: New file.
14193         * lib/wctype.in.h (iswctype): New declaration.
14194         * lib/iswctype.c: New file.
14195         * lib/iswctype-impl.h: New file.
14196         * m4/iswctype.m4: New file.
14197         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
14198         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
14199         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
14200         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
14201         * doc/posix-functions/iswctype.texi: Mention the new module and the
14202         HP-UX 11.00 problem.
14203
14204 2011-02-06  Bruno Haible  <bruno@clisp.org>
14205
14206         New module 'wctype'.
14207         * modules/wctype: Change to represent the wctype() substitute.
14208         * lib/wctype.in.h (wctype): New declaration.
14209         * lib/wctype.c: New file.
14210         * lib/wctype-impl.h: New file.
14211         * m4/wctype.m4: New file.
14212         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
14213         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
14214         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
14215         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
14216         * doc/posix-functions/wctype.texi: Mention the new module and the
14217         HP-UX 11.00 problem.
14218
14219 2011-02-06  Bruno Haible  <bruno@clisp.org>
14220
14221         wctype-h: Ensure wctype_t and wctrans_t are defined.
14222         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
14223         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
14224         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
14225         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
14226         HAVE_WCTRANS_T.
14227         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
14228
14229 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
14230
14231         flock: fix license typo
14232
14233         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
14234         omitted.
14235
14236 2011-02-08  Bruno Haible  <bruno@clisp.org>
14237
14238         Split large sed scripts, for HP-UX sed.
14239         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
14240         to avoid HP-UX limit of 99 commands, in the near future.
14241         * modules/stdlib (Makefile.am): Likewise.
14242         * modules/unistd (Makefile.am): Likewise.
14243         * modules/wchar (Makefile.am): Likewise.
14244         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
14245         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
14246         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
14247
14248 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
14249             Bruno Haible  <bruno@clisp.org>
14250
14251         stdlib: improve random_r modularization
14252         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
14253         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
14254         you also need the random_r module to get this material right.
14255         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
14256         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
14257         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
14258
14259 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
14260
14261         stdlib: don't depend on stdint
14262         * lib/stdlib.in.h: Don't include <stdint.h> merely because
14263         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
14264         be independent of whether stdint.h is needed.
14265         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
14266         here, instead of ...
14267         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
14268         struct random_data should be using the random_r module, not just
14269         the stdlib module (which wouldn't make sense: what package needs
14270         just struct random_data without also needing random_r?).
14271         * modules/stdlib (Depends-on): Remove stdint.
14272
14273         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
14274         See the thread rooted at
14275         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
14276         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
14277         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
14278         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
14279         __VMS)); previously it was always included (via fcntl--.h).
14280         (getloadavg): Do not use c_strtod.  Instead, approximate it by
14281         hand; this is good enough for load averages.  Also, do not use
14282         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
14283         flags directly if available and don't bother otherwise.  (Packages
14284         that need the extra reliability should use the modules that define
14285         these flags on older platforms that lack them.)
14286         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
14287         fcntl-safer.
14288
14289 2011-02-08  Jim Meyering  <meyering@redhat.com>
14290
14291         di-set.h, ino-map.h: add multiple-inclusion guard
14292         Technically, the guard is required only for ino-map.h, due to its
14293         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
14294         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
14295         * lib/ino-map.h: Likewise.
14296
14297 2011-02-06  Bruno Haible  <bruno@clisp.org>
14298
14299         iswblank: Ensure declaration on glibc systems.
14300         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
14301         * modules/iswblank (Dependencies): Add 'extensions'.
14302         * doc/posix-functions/iswblank.texi: Document the glibc problem.
14303
14304 2011-02-06  Bruno Haible  <bruno@clisp.org>
14305
14306         New module 'iswblank'.
14307         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
14308         * modules/iswblank: New file.
14309         * modules/wctype-h (Files): Remove lib/iswblank.c.
14310         (Makefile.am): Substitute GNULIB_ISWBLANK.
14311         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
14312         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
14313         (gl_WCTYPE_H_DEFAULTS): New macro.
14314         (gl_WCTYPE_H): Require it. Remove iswblank related code.
14315         * modules/iswblank-tests: New file.
14316         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
14317         * tests/test-wctype-h.c (main): Remove iswblank tests.
14318         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
14319         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
14320         of 'wctype-h'.
14321         * NEWS: Mention the change.
14322         * modules/mbchar (Depends-on): Add iswblank.
14323
14324 2011-02-08  Bruno Haible  <bruno@clisp.org>
14325
14326         di-set tests: Refactor.
14327         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
14328         unnecessary includes.
14329         (ASSERT): Remove macro.
14330         (main): Make C90 compliant by avoiding variable declaration after
14331         statement.
14332         * modules/di-set-tests (Files): Add tests/macros.h.
14333
14334 2011-02-08  Bruno Haible  <bruno@clisp.org>
14335
14336         ino-map tests: Refactor.
14337         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
14338         unnecessary includes.
14339         (ASSERT): Remove macro.
14340         (main): Make C90 compliant by avoiding variable declaration after
14341         statement.
14342         * modules/ino-map-tests (Files): Add tests/macros.h.
14343
14344 2011-02-08  Jim Meyering  <meyering@redhat.com>
14345
14346         di-set: add "const" to a cast
14347         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
14348         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
14349
14350 2011-02-06  Bruno Haible  <bruno@clisp.org>
14351
14352         Rename module 'wctype' to 'wctype-h'.
14353         * modules/wctype-h: Renamed from modules/wctype.
14354         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
14355         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
14356         (Files, Depends-on, Makefile.am): Update.
14357         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
14358         (Files, Makefile.am): Update.
14359         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
14360         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
14361         * doc/posix-headers/wctype.texi: Update.
14362         * doc/posix-functions/iswalnum.texi: Update.
14363         * doc/posix-functions/iswalpha.texi: Update.
14364         * doc/posix-functions/iswblank.texi: Update.
14365         * doc/posix-functions/iswcntrl.texi: Update.
14366         * doc/posix-functions/iswdigit.texi: Update.
14367         * doc/posix-functions/iswgraph.texi: Update.
14368         * doc/posix-functions/iswlower.texi: Update.
14369         * doc/posix-functions/iswprint.texi: Update.
14370         * doc/posix-functions/iswpunct.texi: Update.
14371         * doc/posix-functions/iswspace.texi: Update.
14372         * doc/posix-functions/iswupper.texi: Update.
14373         * doc/posix-functions/iswxdigit.texi: Update.
14374         * doc/posix-functions/towlower.texi: Update.
14375         * doc/posix-functions/towupper.texi: Update.
14376         * NEWS: Mention the change.
14377         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
14378         * modules/mbchar (Dependencies): Likewise.
14379         * modules/mbswidth (Dependencies): Likewise.
14380         * modules/quotearg (Dependencies): Likewise.
14381         * modules/regex (Dependencies): Likewise.
14382         * modules/wcscasecmp (Dependencies): Likewise.
14383         * modules/wcsncasecmp (Dependencies): Likewise.
14384         * modules/wcwidth (Dependencies): Likewise.
14385
14386 2011-02-06  Bruno Haible  <bruno@clisp.org>
14387
14388         New module 'wcswidth'.
14389         * modules/wcswidth: New file.
14390         * lib/wchar.in.h (wcswidth): New declaration.
14391         * lib/wcswidth.c: New file.
14392         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
14393         * m4/wcswidth.m4: New file.
14394         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
14395         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
14396         REPLACE_WCSWIDTH.
14397         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
14398         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
14399         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
14400         * doc/posix-functions/wcswidth.texi: Mention the new module.
14401
14402 2011-02-06  Bruno Haible  <bruno@clisp.org>
14403
14404         New module 'wcstok'.
14405         * modules/wcstok: New file.
14406         * lib/wchar.in.h (wcstok): New declaration.
14407         * lib/wcstok.c: New file.
14408         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
14409         * m4/wcstok.m4: New file.
14410         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
14411         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
14412         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
14413         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
14414         * doc/posix-functions/wcstok.texi: Mention the new module.
14415
14416 2011-02-06  Bruno Haible  <bruno@clisp.org>
14417
14418         New module 'wcsstr'.
14419         * modules/wcsstr: New file.
14420         * lib/wchar.in.h (wcsstr): New declaration.
14421         * lib/wcsstr.c: New file.
14422         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
14423         * m4/wcsstr.m4: New file.
14424         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
14425         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
14426         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
14427         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
14428         * doc/posix-functions/wcsstr.texi: Mention the new module.
14429
14430 2011-02-06  Bruno Haible  <bruno@clisp.org>
14431
14432         New module 'wcspbrk'.
14433         * modules/wcspbrk: New file.
14434         * lib/wchar.in.h (wcspbrk): New declaration.
14435         * lib/wcspbrk.c: New file.
14436         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
14437         * m4/wcspbrk.m4: New file.
14438         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
14439         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
14440         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
14441         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
14442         * doc/posix-functions/wcspbrk.texi: Mention the new module.
14443
14444 2011-02-06  Bruno Haible  <bruno@clisp.org>
14445
14446         New module 'wcsspn'.
14447         * modules/wcsspn: New file.
14448         * lib/wchar.in.h (wcsspn): New declaration.
14449         * lib/wcsspn.c: New file.
14450         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
14451         * m4/wcsspn.m4: New file.
14452         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
14453         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
14454         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
14455         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
14456         * doc/posix-functions/wcsspn.texi: Mention the new module.
14457
14458 2011-02-06  Bruno Haible  <bruno@clisp.org>
14459
14460         New module 'wcscspn'.
14461         * modules/wcscspn: New file.
14462         * lib/wchar.in.h (wcscspn): New declaration.
14463         * lib/wcscspn.c: New file.
14464         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
14465         * m4/wcscspn.m4: New file.
14466         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
14467         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
14468         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
14469         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
14470         * doc/posix-functions/wcscspn.texi: Mention the new module.
14471
14472 2011-02-06  Bruno Haible  <bruno@clisp.org>
14473
14474         New module 'wcsrchr'.
14475         * modules/wcsrchr: New file.
14476         * lib/wchar.in.h (wcsrchr): New declaration.
14477         * lib/wcsrchr.c: New file.
14478         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
14479         * m4/wcsrchr.m4: New file.
14480         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
14481         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
14482         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
14483         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
14484         * doc/posix-functions/wcsrchr.texi: Mention the new module.
14485
14486 2011-02-06  Bruno Haible  <bruno@clisp.org>
14487
14488         New module 'wcschr'.
14489         * modules/wcschr: New file.
14490         * lib/wchar.in.h (wcschr): New declaration.
14491         * lib/wcschr.c: New file.
14492         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
14493         * m4/wcschr.m4: New file.
14494         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
14495         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
14496         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
14497         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
14498         * doc/posix-functions/wcschr.texi: Mention the new module.
14499
14500 2011-02-06  Bruno Haible  <bruno@clisp.org>
14501
14502         New module 'wcsdup'.
14503         * modules/wcsdup: New file.
14504         * lib/wchar.in.h (wcsdup): New declaration.
14505         * lib/wcsdup.c: New file.
14506         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
14507         * m4/wcsdup.m4: New file.
14508         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
14509         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
14510         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
14511         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
14512         * doc/posix-functions/wcsdup.texi: Mention the new module.
14513
14514 2011-02-06  Bruno Haible  <bruno@clisp.org>
14515
14516         New module 'wcsxfrm'.
14517         * modules/wcsxfrm: New file.
14518         * lib/wchar.in.h (wcsxfrm): New declaration.
14519         * lib/wcsxfrm.c: New file.
14520         * lib/wcsxfrm-impl.h: New file.
14521         * m4/wcsxfrm.m4: New file.
14522         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
14523         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
14524         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
14525         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
14526         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
14527
14528 2011-02-06  Bruno Haible  <bruno@clisp.org>
14529
14530         New module 'wcscoll'.
14531         * modules/wcscoll: New file.
14532         * lib/wchar.in.h (wcscoll): New declaration.
14533         * lib/wcscoll.c: New file.
14534         * lib/wcscoll-impl.h: New file.
14535         * m4/wcscoll.m4: New file.
14536         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
14537         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
14538         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
14539         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
14540         * doc/posix-functions/wcscoll.texi: Mention the new module.
14541
14542 2011-02-06  Bruno Haible  <bruno@clisp.org>
14543
14544         New module 'wcsncasecmp'.
14545         * modules/wcsncasecmp: New file.
14546         * lib/wchar.in.h (wcsncasecmp): New declaration.
14547         * lib/wcsncasecmp.c: New file.
14548         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
14549         * m4/wcsncasecmp.m4: New file.
14550         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
14551         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
14552         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
14553         HAVE_WCSNCASECMP.
14554         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
14555         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
14556
14557 2011-02-06  Bruno Haible  <bruno@clisp.org>
14558
14559         New module 'wcscasecmp'.
14560         * modules/wcscasecmp: New file.
14561         * lib/wchar.in.h (wcscasecmp): New declaration.
14562         * lib/wcscasecmp.c: New file.
14563         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
14564         * m4/wcscasecmp.m4: New file.
14565         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
14566         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
14567         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
14568         HAVE_WCSCASECMP.
14569         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
14570         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
14571
14572 2011-02-05  Bruno Haible  <bruno@clisp.org>
14573
14574         New module 'wcsncmp'.
14575         * modules/wcsncmp: New file.
14576         * lib/wchar.in.h (wcsncmp): New declaration.
14577         * lib/wcsncmp.c: New file.
14578         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
14579         * m4/wcsncmp.m4: New file.
14580         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
14581         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
14582         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
14583         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
14584         * doc/posix-functions/wcsncmp.texi: Mention the new module.
14585
14586 2011-02-05  Bruno Haible  <bruno@clisp.org>
14587
14588         New module 'wcscmp'.
14589         * modules/wcscmp: New file.
14590         * lib/wchar.in.h (wcscmp): New declaration.
14591         * lib/wcscmp.c: New file.
14592         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
14593         * m4/wcscmp.m4: New file.
14594         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
14595         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
14596         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
14597         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
14598         * doc/posix-functions/wcscmp.texi: Mention the new module.
14599
14600 2011-02-05  Bruno Haible  <bruno@clisp.org>
14601
14602         New module 'wcsncat'.
14603         * modules/wcsncat: New file.
14604         * lib/wchar.in.h (wcsncat): New declaration.
14605         * lib/wcsncat.c: New file.
14606         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
14607         * m4/wcsncat.m4: New file.
14608         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
14609         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
14610         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
14611         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
14612         * doc/posix-functions/wcsncat.texi: Mention the new module.
14613
14614 2011-02-05  Bruno Haible  <bruno@clisp.org>
14615
14616         New module 'wcscat'.
14617         * modules/wcscat: New file.
14618         * lib/wchar.in.h (wcscat): New declaration.
14619         * lib/wcscat.c: New file.
14620         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
14621         * m4/wcscat.m4: New file.
14622         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
14623         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
14624         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
14625         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
14626         * doc/posix-functions/wcscat.texi: Mention the new module.
14627
14628 2011-02-05  Bruno Haible  <bruno@clisp.org>
14629
14630         New module 'wcpncpy'.
14631         * modules/wcpncpy: New file.
14632         * lib/wchar.in.h (wcpncpy): New declaration.
14633         * lib/wcpncpy.c: New file.
14634         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
14635         * m4/wcpncpy.m4: New file.
14636         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
14637         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
14638         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
14639         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
14640         * doc/posix-functions/wcpncpy.texi: Mention the new module.
14641
14642 2011-02-05  Bruno Haible  <bruno@clisp.org>
14643
14644         New module 'wcsncpy'.
14645         * modules/wcsncpy: New file.
14646         * lib/wchar.in.h (wcsncpy): New declaration.
14647         * lib/wcsncpy.c: New file.
14648         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
14649         * m4/wcsncpy.m4: New file.
14650         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
14651         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
14652         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
14653         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
14654         * doc/posix-functions/wcsncpy.texi: Mention the new module.
14655
14656 2011-02-05  Bruno Haible  <bruno@clisp.org>
14657
14658         New module 'wcpcpy'.
14659         * modules/wcpcpy: New file.
14660         * lib/wchar.in.h (wcpcpy): New declaration.
14661         * lib/wcpcpy.c: New file.
14662         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
14663         * m4/wcpcpy.m4: New file.
14664         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
14665         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
14666         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
14667         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
14668         * doc/posix-functions/wcpcpy.texi: Mention the new module.
14669
14670 2011-02-05  Bruno Haible  <bruno@clisp.org>
14671
14672         New module 'wcscpy'.
14673         * modules/wcscpy: New file.
14674         * lib/wchar.in.h (wcscpy): New declaration.
14675         * lib/wcscpy.c: New file.
14676         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
14677         * m4/wcscpy.m4: New file.
14678         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
14679         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
14680         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
14681         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
14682         * doc/posix-functions/wcscpy.texi: Mention the new module.
14683
14684 2011-02-05  Bruno Haible  <bruno@clisp.org>
14685
14686         New module 'wcsnlen'.
14687         * modules/wcsnlen: New file.
14688         * lib/wchar.in.h (wcsnlen): New declaration.
14689         * lib/wcsnlen.c: New file.
14690         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
14691         * m4/wcsnlen.m4: New file.
14692         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
14693         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
14694         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
14695         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
14696         * doc/posix-functions/wcsnlen.texi: Mention the new module.
14697
14698 2011-02-05  Bruno Haible  <bruno@clisp.org>
14699
14700         New module 'wcslen'.
14701         * modules/wcslen: New file.
14702         * lib/wchar.in.h (wcslen): New declaration.
14703         * lib/wcslen.c: New file.
14704         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
14705         * m4/wcslen.m4: New file.
14706         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
14707         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
14708         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
14709         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
14710         * doc/posix-functions/wcslen.texi: Mention the new module.
14711
14712 2011-02-05  Bruno Haible  <bruno@clisp.org>
14713
14714         New module 'wmemset'.
14715         * modules/wmemset: New file.
14716         * lib/wchar.in.h (wmemset): New declaration.
14717         * lib/wmemset.c: New file.
14718         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
14719         * m4/wmemset.m4: New file.
14720         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
14721         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
14722         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
14723         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
14724         * doc/posix-functions/wmemset.texi: Mention the new module.
14725
14726 2011-02-05  Bruno Haible  <bruno@clisp.org>
14727
14728         New module 'wmemmove'.
14729         * modules/wmemmove: New file.
14730         * lib/wchar.in.h (wmemmove): New declaration.
14731         * lib/wmemmove.c: New file.
14732         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
14733         * m4/wmemmove.m4: New file.
14734         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
14735         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
14736         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
14737         HAVE_WMEMMOVE.
14738         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
14739         * doc/posix-functions/wmemmove.texi: Mention the new module.
14740
14741 2011-02-05  Bruno Haible  <bruno@clisp.org>
14742
14743         New module 'wmemcpy'.
14744         * modules/wmemcpy: New file.
14745         * lib/wchar.in.h (wmemcpy): New declaration.
14746         * lib/wmemcpy.c: New file.
14747         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
14748         * m4/wmemcpy.m4: New file.
14749         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
14750         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
14751         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
14752         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
14753         * doc/posix-functions/wmemcpy.texi: Mention the new module.
14754
14755 2011-02-05  Bruno Haible  <bruno@clisp.org>
14756
14757         New module 'wmemcmp'.
14758         * modules/wmemcmp: New file.
14759         * lib/wchar.in.h (wmemcmp): New declaration.
14760         * lib/wmemcmp.c: New file.
14761         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
14762         * m4/wmemcmp.m4: New file.
14763         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
14764         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
14765         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
14766         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
14767         * doc/posix-functions/wmemcmp.texi: Mention the new module.
14768
14769 2011-02-07  Jim Meyering  <meyering@redhat.com>
14770
14771         di-set, ino-map: new modules, from coreutils
14772         * lib/di-set.c: New file.
14773         * lib/di-set.h: Likewise.
14774         * lib/ino-map.c: Likewise.
14775         * lib/ino-map.h: Likewise.
14776         * modules/di-set: Likewise.
14777         * modules/di-set-tests: Likewise.
14778         * modules/ino-map: Likewise.
14779         * modules/ino-map-tests: Likewise.
14780         * tests/test-di-set.c: Likewise.
14781         * tests/test-ino-map.c: Likewise.
14782
14783 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
14784
14785         getloadavg: merge minor changes from Emacs
14786
14787         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
14788         (getloadavg): Use memset, not bzero.
14789
14790         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
14791         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
14792         clash (bug#86).
14793
14794 2010-11-14  Bruno Haible  <bruno@clisp.org>
14795
14796         Allow multiple gnulib generated replacements to coexist.
14797         * lib/getopt.in.h (struct option): Avoid identical redefinition.
14798         * lib/inttypes.in.h (imaxdiv_t): Likewise.
14799         * lib/langinfo.in.h (nl_item): Likewise.
14800         * lib/math.in.h (_NaN, NAN): Likewise.
14801         * lib/netdb.in.h (struct addrinfo): Likewise.
14802         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
14803         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
14804         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
14805         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
14806         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
14807         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
14808         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
14809         pthread_mutexattr_init, pthread_mutexattr_settype,
14810         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
14811         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
14812         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
14813         pthread_spin_trylock, pthread_spin_unlock): Likewise.
14814         * lib/sched.in.h (struct sched_param): Likewise.
14815         * lib/se-selinux.in.h (security_class_t, security_context_t,
14816         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
14817         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
14818         lsetfilecon, fsetfilecon, security_check_context,
14819         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
14820         Likewise.
14821         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
14822         Likewise.
14823         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
14824         _gl_function_taking_int_returning_void_t, union sigval,
14825         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
14826         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
14827         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
14828         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
14829         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
14830         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
14831         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
14832         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
14833         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
14834         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
14835         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
14836         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
14837         socklen_t, rpl_fd_isset): Likewise.
14838         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
14839         * lib/sys_time.in.h (struct timeval): Likewise.
14840         * lib/sys_times.in.h (struct tms): Likewise.
14841         * lib/sys_utsname.in.h (struct utsname):
14842         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
14843         * lib/unistd.in.h (getpagesize): Likewise.
14844         * lib/wchar.in.h (mbstate_t): Likewise.
14845         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
14846         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
14847         towlower, towupper): Likewise.
14848         Reported by Sam Steingold <sds@gnu.org>.
14849
14850 2011-02-05  Eric Blake  <eblake@redhat.com>
14851
14852         unsetenv: work around Haiku issues
14853         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
14854         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
14855
14856 2010-12-30  Bruce Korb  <bkorb@gnu.org>
14857
14858         libposix: avoid calling error() within libposix
14859         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
14860         is defined.
14861
14862 2011-02-05  Eric Blake  <eblake@redhat.com>
14863
14864         strerror_r-posix: port to cygwin
14865         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
14866         implementation.
14867         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
14868         * tests/test-strerror_r.c (main): Fix test.
14869         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
14870         issue.
14871
14872 2011-02-05  Bruno Haible  <bruno@clisp.org>
14873
14874         New module 'wmemchr'.
14875         * modules/wmemchr: New file.
14876         * lib/wchar.in.h (wmemchr): New declaration.
14877         * lib/wmemchr.c: New file.
14878         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
14879         * m4/wmemchr.m4: New file.
14880         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
14881         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
14882         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
14883         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
14884         * doc/posix-functions/wmemchr.texi: Mention the new module.
14885
14886 2011-02-04  Eric Blake  <eblake@redhat.com>
14887
14888         fdopendir: detect FreeBSD bug
14889         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
14890         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
14891
14892 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
14893
14894         stdbool: do not define HAVE_STDBOOL_H
14895         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
14896         AC_HEADER_STDBOOL.  All uses changed.  Do not define
14897         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
14898         imported from the latest Autoconf git.  It was motivated by Emacs,
14899         which uses gnulib but does not need HAVE_STDBOOL_H.
14900
14901 2011-02-04  Bruno Haible  <bruno@clisp.org>
14902
14903         wcsnrtombs: Prepare for new module wwcsnrtombs.
14904         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
14905         * lib/wcsnrtombs.c: Include it.
14906         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
14907
14908         wcsrtombs: Prepare for new module wwcsrtombs.
14909         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
14910         * lib/wcsrtombs.c: Include it.
14911         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
14912
14913         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
14914         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
14915         * lib/mbsnrtowcs.c: Include it.
14916         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
14917
14918         mbsrtowcs: Prepare for new module mbsrtowwcs.
14919         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
14920         * lib/mbsrtowcs.c: Include it.
14921         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
14922
14923 2011-02-04  Bruno Haible  <bruno@clisp.org>
14924
14925         vasnprintf: Reduce use of malloc for small format strings.
14926         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
14927         (arguments): Add room for the first 7 arguments.
14928         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
14929         (char_directives, u8_directives, u16_directives, u32_directives): Add
14930         room for the first 7 directives.
14931         * lib/printf-parse.c: Include <string.h>.
14932         (PRINTF_PARSE): Change memory handling code so that it uses the first
14933         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
14934         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
14935         Reported by Pádraig Brady <P@draigbrady.com>.
14936
14937 2011-01-31  Eric Blake  <eblake@redhat.com>
14938
14939         dup2: work around Haiku bug
14940         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
14941         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
14942         * doc/posix-functions/dup2.texi (dup2): Document the bug.
14943         * tests/test-dup2.c (main): Enhance test.
14944
14945 2011-01-31  Simon Josefsson  <simon@josefsson.org>
14946
14947         doc: off_t is not available in eglibc 2.11.2 stdio.h.
14948         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
14949         declared by eglibc 2.11.2.
14950         * lib/stdio.in.h: Likewise.
14951
14952 2011-01-31  Eric Blake  <eblake@redhat.com>
14953
14954         ignore-value: add missing test dependency
14955         * tests/test-ignore-value.c: Revert previous change; stdio.h
14956         provides off_t.
14957         * modules/ignore-value-tests (Depends-on): Add missing dependency.
14958
14959 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
14960
14961         mktime: clarify long_int width checking
14962         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
14963         the top level, to make it clearer that the assumption about
14964         long_int width is being checked.  See
14965         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
14966
14967 2011-01-30  Simon Josefsson  <simon@josefsson.org>
14968
14969         ignore-value: Fix self-test.
14970         * tests/test-ignore-value.c: Include sys/types.h for off_t.
14971
14972 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
14973
14974         TYPE_MAXIMUM: avoid theoretically undefined behavior
14975         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
14976         negative number, which the C Standard says has undefined behavior.
14977         In practice this is not a problem, but might as well do it by the book.
14978         Reported by Rich Felker and Eric Blake; see
14979         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
14980         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
14981         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
14982         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
14983         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
14984         * m4/stdint.m4 (gl_STDINT_H): Likewise.
14985         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
14986
14987         mktime: #undef mktime before #defining it
14988         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
14989
14990         mktime: systematically normalize tm_isdst comparisons
14991         * lib/mktime.c (isdst_differ): New function.
14992         (__mktime_internal): Use it systematically for all isdst comparisons.
14993         This completes the fix for libc BZ #6723, and removes the need for
14994         normalizing tm_isdst.  See
14995         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
14996         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
14997
14998         mktime: fix some integer overflow issues and sidestep the rest
14999
15000         This was prompted by a bug report by Benjamin Lindner for MinGW
15001         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
15002         His bug is due to signed integer overflow (0 - INT_MIN), and I
15003         I scanned through mktime.c looking for other integer overflow
15004         problems, fixing all the bugs I found.
15005
15006         Although the C Standard says the resulting code is still not safe
15007         in the presence of integer overflow, in practice it should be good
15008         enough for all real-world two's-complement implementations, except
15009         for debugging environments that deliberately trap on integer
15010         overflow (e.g., gcc -ftrapv).
15011
15012         * lib/mktime.c (WRAPV): New macro.
15013         (SHR): Also check that long_int and time_t shift right in the
15014         usual way, before using the fast-but-unportable method.
15015         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
15016         used.  The code already assumed two's complement, so there's
15017         no need to test for alternatives.  All uses removed.
15018         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
15019         the C standard.  Problem reported by Rich Felker in
15020         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
15021         (twos_complement_arithmetic): Also check long_int and time_t.
15022         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
15023         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
15024         (__mktime_internal): Avoid integer overflow with unary subtraction
15025         in two instances where -1 - X is an adequate replacement for -X,
15026         since the calculations are approximate.
15027
15028 2011-01-29  Eric Blake  <eblake@redhat.com>
15029
15030         mktime: avoid infinite loop
15031         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
15032         type; behavior is still undefined but portable to all known targets.
15033         Reported by Rich Felker.
15034
15035 2011-01-29  Simon Josefsson  <simon@josefsson.org>
15036
15037         rename, unlink, same-inode: Relicense.
15038         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
15039         * modules/unlink (License): Likewise.
15040         * modules/same-inode (License): Likewise.
15041
15042 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
15043
15044         mktime: avoid problems on NetBSD 5 / i386
15045         * lib/mktime.c (long_int): New type.  This works around a problem
15046         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
15047         but time_t is 64 bits, and where I expect the existing code is
15048         wrong in some cases.
15049         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
15050         (ydhms_diff): Bring back the compile-time check for wide-enough
15051         year and yday.
15052
15053         mktime: fix misspelling in comment
15054         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
15055         This merges all recent glibc changes of importance.
15056
15057 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15058
15059         move-if-change: cope with concurrent mv of identical file.
15060         * build-aux/move-if-change (CMPPROG): Accept environment
15061         variable as an override for `cmp'.
15062         (usage): Document CMPPROG.
15063         Adjust comparison to drop stdout.  Cope with failure of mv if
15064         the target file exists and is identical to the source, for
15065         parallel builds.
15066         Report from H.J. Lu against binutils in PR binutils/12283.
15067
15068 2011-01-28  Bruce Korb  <bkorb@gnu.org>
15069
15070         * users.txt: Mention sharutils.
15071
15072 2011-01-28  Simon Josefsson  <simon@josefsson.org>
15073
15074         * users.txt: Mention OATH Toolkit.
15075
15076 2011-01-27  Bruno Haible  <bruno@clisp.org>
15077
15078         Prepare for supporting FreeBSD 10.
15079         * build-aux/config.libpath: Remove handling of freebsd1*.
15080
15081 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
15082
15083         Prepare for supporting FreeBSD 10.
15084         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
15085         match FreeBSD 10.0.
15086
15087 2011-01-27  Bruno Haible  <bruno@clisp.org>
15088
15089         vma-iter, get-rusage-as: Add OpenBSD support.
15090         * modules/vma-iter (configure.ac): Test for mquery.
15091         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
15092         * lib/vma-iter.c: Include <sys/mman.h>.
15093         (vma_iterate): Add an implementation based on mquery().
15094         * lib/resource-ext.h (get_rusage_as): Update comments.
15095         * lib/get-rusage-as.c: Likewise.
15096         * lib/get-rusage-data.c: Likewise.
15097
15098 2011-01-26  Karl Berry  <karl@gnu.org>
15099
15100         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
15101         variables to make it easier to override the makeinfo program used.
15102
15103 2011-01-26  Eric Blake  <eblake@redhat.com>
15104
15105         fcntl: work around Haiku F_DUPFD bugs
15106         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
15107         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
15108         cloexec bit on duplication.
15109         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
15110
15111 2011-01-26  Bruno Haible  <bruno@clisp.org>
15112
15113         Enable memory leak tests on AIX.
15114         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
15115         * tests/test-fprintf-posix3.c (main): Likewise.
15116
15117 2011-01-26  Bruno Haible  <bruno@clisp.org>
15118
15119         Tests for module 'get-rusage-data'.
15120         * modules/get-rusage-data-tests: New file.
15121         * tests/test-get-rusage-data.c: New file.
15122
15123         New module 'get-rusage-data'.
15124         * lib/resource-ext.h (get_rusage_data): New declaration.
15125         * lib/get-rusage-data.c: New file.
15126         * modules/get-rusage-data: New file.
15127
15128 2011-01-25  Bruno Haible  <bruno@clisp.org>
15129
15130         get-rusage-as: Allow for easier testing.
15131         * lib/resource-ext.h (get_rusage_as): Add comment.
15132         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
15133         (main): New function for interactive testing.
15134
15135 2011-01-25  Bruno Haible  <bruno@clisp.org>
15136
15137         vma-iter: Treat Haiku like BeOS.
15138         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
15139         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
15140
15141 2011-01-25  Eric Blake  <eblake@redhat.com>
15142
15143         c-stack: fix regression on cygwin when libsigsegv is present
15144         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
15145
15146 2011-01-24  Bruno Haible  <bruno@clisp.org>
15147
15148         vma-iter: Avoid empty intervals.
15149         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
15150         on an empty interval.
15151
15152 2011-01-24  Jim Meyering  <meyering@redhat.com>
15153
15154         u64: remove unnecessary #include
15155         * lib/u64.h: Don't include <stddef.h>.  It was not used.
15156
15157 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
15158
15159         Allow the user to avoid the HAVE_RAW_DECL_* macros.
15160         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
15161
15162 2011-01-23  Bruno Haible  <bruno@clisp.org>
15163
15164         New module 'vma-iter'.
15165         * lib/vma-iter.h: New file.
15166         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
15167         * modules/vma-iter: New file.
15168         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
15169         for get_rusage_as_via_iterator.
15170         (vma_iterate_callback): New function.
15171         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
15172         * modules/get-rusage-as (Depends-on): Add vma-iter.
15173
15174 2011-01-23  Bruno Haible  <bruno@clisp.org>
15175
15176         uninorm: Tweak includes.
15177         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
15178         Reported by Jim Meyering.
15179
15180 2011-01-23  Bruno Haible  <bruno@clisp.org>
15181
15182         get-rusage-as: Improve on NetBSD.
15183         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
15184         /proc, like on FreeBSD.
15185
15186 2011-01-23  Jim Meyering  <meyering@redhat.com>
15187
15188         xreadlink.h: remove unnecessary #include
15189         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
15190
15191         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
15192         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
15193
15194 2011-01-23  Bruno Haible  <bruno@clisp.org>
15195
15196         get-rusage-as: Fix bug.
15197         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
15198         original limit when aborting the first loop.
15199
15200 2011-01-23  Bruno Haible  <bruno@clisp.org>
15201
15202         wctype: Ensure valid C syntax.
15203         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
15204         unconditionally, instead of gl_NEXT_HEADERS conditionally.
15205
15206 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
15207
15208         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
15209         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
15210         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
15211         as they are needed only for configure's test case.
15212         This removes two unnecessary symbols from config.h.
15213
15214         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
15215         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
15216         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
15217         AC_CHECK_HEADERS_ONCE on a header that we also invoke
15218         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
15219         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
15220         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
15221         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
15222         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
15223         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
15224         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
15225         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
15226         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
15227         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
15228         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
15229         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
15230         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
15231         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
15232
15233 2011-01-21  Eric Blake  <eblake@redhat.com>
15234
15235         maintainer-makefile: work with older git for submodule check
15236         * top/maint.mk (public-submodule-commit): Rewrite to avoid
15237         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
15238         Reported by Matthias Bolte.
15239
15240         bootstrap: minor portability fixes
15241         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
15242         (usage): Omit leading capital and trailing . on help phrases, per
15243         GNU Coding Standards.
15244         (check_versions, top level): Prefix messages with script name.
15245
15246 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
15247
15248         bootstrap: support --no-git option
15249         * build-aux/bootstrap: Add --no-git option, to be used when
15250         --gnulib-srcdir points to the exact desired checkout.
15251
15252 2011-01-21  Eric Blake  <eblake@redhat.com>
15253
15254         strerror_r-posix: work with glibc 2.13
15255         * lib/strerror_r.c (strerror_r): Fix return type.
15256
15257 2011-01-21  Pádraig Brady  <P@draigBrady.com>
15258             Bruno Haible  <bruno@clisp.org>
15259
15260         uN_strstr: New unit tests.
15261         * modules/unistr/u8-strstr-tests: New file.
15262         * modules/unistr/u16-strstr-tests: New file.
15263         * modules/unistr/u32-strstr-tests: New file.
15264         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
15265         * tests/unistr/test-u8-strstr.c: New file.
15266         * tests/unistr/test-u16-strstr.c: New file.
15267         * tests/unistr/test-u32-strstr.c: New file.
15268
15269 2011-01-21  Pádraig Brady  <P@draigBrady.com>
15270             Bruno Haible  <bruno@clisp.org>
15271
15272         Make uN_strstr functions O(n) worst-case.
15273         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
15274         16-bit and 32-bit unit cases, use the unibyte algorithm from
15275         lib/mbsstr.c.
15276         * lib/unistr/u8-strstr.c: Include <string.h>.
15277         (UNIT_IS_UINT8_T): New macro.
15278         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
15279         (U_STRLEN, U_STRNLEN): New macros.
15280         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
15281         (U_STRLEN, U_STRNLEN): New macros.
15282         * modules/unistr/u8-strstr (Depends-on): Add strstr.
15283         (configure.ac): Update required libunistring version.
15284         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
15285         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
15286         malloca.
15287         (configure.ac): Update required libunistring version.
15288         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
15289         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
15290         malloca.
15291         (configure.ac): Update required libunistring version.
15292
15293 2011-01-21  Pádraig Brady  <P@draigBrady.com>
15294             Bruno Haible  <bruno@clisp.org>
15295
15296         Prepare for faster uN_strstr functions.
15297         * lib/str-kmp.h: Support definable UNITs.
15298         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
15299         needle_len argument.
15300         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
15301         * lib/mbscasestr.c (mbscasestr): Likewise.
15302
15303 2011-01-21  Pádraig Brady <P@draigBrady.com>
15304
15305         malloca-tests: make faster by unsetting MALLOC_PERTURB_
15306         * tests/test-malloca.c (main): Unset the environment variable
15307         to greatly speed up the test.
15308         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
15309         * modules/malloca-tests: Depend on unsetenv.
15310
15311 2011-01-21  Pádraig Brady <P@draigBrady.com>
15312
15313         ignore-value: remove stdint dependency
15314         * lib/ignore-value.h: Remove <stdint.h>
15315         * modules/ignore-value: Remove stdint dependency.
15316
15317 2011-01-21  Jim Meyering  <meyering@redhat.com>
15318
15319         maint.mk: adjust variable name to be consistent with other gl_ vars
15320         * top/maint.mk (gl_public_submodule_commit): Rename the variable
15321         to be lower case.
15322
15323 2011-01-20  Jim Meyering  <meyering@redhat.com>
15324
15325         maint.mk: make "check" depend on public-submodule-commit by default
15326         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
15327
15328 2011-01-20  Bruno Haible  <bruno@clisp.org>
15329
15330         mbfile, mbiter: Complete change from 2008-12-21.
15331         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
15332         * m4/mbiter.m4 (gl_MBITER): Likewise.
15333
15334 2011-01-20  Jim Meyering  <meyering@redhat.com>
15335
15336         init.sh: insert space between each function name and "()"
15337         * tests/init.sh: Make it a little easier to see that a function's
15338         name is "warn_", and not "warn" when looking at the first part of
15339         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
15340
15341 2011-01-20  Jim Meyering  <meyering@redhat.com>
15342
15343         mountlist: clean up code formatting
15344         * lib/mountlist.c (read_file_system_list): Split a long line,
15345         correct bracing style, use NULL in place of "(struct statfs *)0",
15346         don't parenthesize return value, add spaces around "=" and after
15347         ";-in-for-stmt".
15348
15349 2011-01-14  Markus Duft <mduft@gentoo.org>
15350
15351         mountlist: add support for Interix
15352         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
15353         Apply statvfs to all entries of /dev/fs.
15354         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
15355         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
15356
15357 2011-01-20  Jim Meyering  <meyering@redhat.com>
15358
15359         maint.mk: improve the public-submodule-commit rule
15360         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
15361         to suppress printing of its commands... unless V=1.
15362         Add git submodule's --quiet option to suppress printing of e.g.,
15363         "Entering gnulib" output.
15364         "cd" into $(srcdir) before running git submodule.
15365
15366 2011-01-20  Bruno Haible  <bruno@clisp.org>
15367
15368         include_next: Fix bug introduced on 2011-01-18.
15369         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
15370         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
15371         ac_cv_header_... variable if the second argument is not 'check'.
15372         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
15373         gl_NEXT_HEADERS_INTERNAL.
15374
15375 2011-01-20  Bruno Haible  <bruno@clisp.org>
15376
15377         Allow the user to avoid the GNULIB_TEST_* macros.
15378         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
15379         Suggested by Paul Eggert.
15380
15381 2011-01-14  Jim Meyering  <meyering@redhat.com>
15382
15383         bootstrap: avoid failure when there is no .gitmodules file
15384         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
15385         has been assigned to, even when its value is the empty string.
15386         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
15387         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
15388         Reported by John W. Eaton <jwe@gnu.org>.
15389
15390 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
15391
15392         assume <ctype.h>, ..., <time.h> exist
15393         For years gnulib has been assuming the existence of the headers
15394         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
15395         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
15396         them, since they don't appear to be needed.
15397         * README (Portability guidelines): Document this.
15398         * lib/flock.c: Assume <fcntl.h> exists.
15399         * lib/regex_internal.h: Assume <locale.h> exists.
15400         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
15401         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
15402         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
15403         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
15404         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
15405         * m4/regex.m4 (gl_REGEX): Likewise.
15406         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
15407         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
15408         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
15409         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
15410         * tests/test-argp.c: Likewise.
15411         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
15412
15413         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
15414         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
15415         AA_APPLE_UNIVERSAL_BUILD.  See
15416         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
15417         * NEWS: Document this.
15418
15419 2011-01-19  Eric Blake  <eblake@redhat.com>
15420
15421         c-stack: assume stack overflow if SA_SIGINFO unsupported
15422         * lib/c-stack.c (SIGACTION_WORKS): Rename...
15423         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
15424         sigaction will work.
15425         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
15426         behavior match Linux.
15427         * tests/test-c-stack.c (main): Prefer NULL for pointers.
15428
15429         stdbool-tests: accomodate Haiku
15430         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
15431
15432         binary-io: fix O_TEXT on Haiku
15433         * modules/binary-io (Depends-on): Add fcntl-h.
15434         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
15435         than blindly undefining O_TEXT.
15436         Reported by Scott McCreary.
15437
15438 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
15439
15440         include_next: do not check for standard headers like stddef.h
15441
15442         I found this problem when modifying Emacs to use gnulib.
15443         I noticed that it added HAVE_STDDEF_H to config.h, even though
15444         gnulib always assumes <stddef.h> exists as per README and this
15445         symbol is unnecessary.
15446         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
15447         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
15448         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
15449         faster for headers like stddef.h that are known to exist.
15450         (gl_CHECK_NEXT_HEADERS): Use it.
15451         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
15452         rather than gl_CHECK_NEXT_HEADERS.
15453         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
15454         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
15455
15456 2011-01-18  Eric Blake  <eblake@redhat.com>
15457
15458         ansi-c++-opt: skip C++ dependency style if C++ is unused
15459         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
15460         tests when we know C++ compilation is not desired.
15461         Reported by Scott McCreary.
15462
15463 2011-01-18  Bruno Haible  <bruno@clisp.org>
15464
15465         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
15466         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
15467         (main): Perform test also when getrlimit and setrlimit don't exist or
15468         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
15469         limiting the address space size using setrlimit, compare the address
15470         space size before and after the the test.
15471         * tests/test-dprintf-posix2.c: Likewise.
15472         * tests/test-fprintf-posix3.sh: Update skip messages.
15473         * tests/test-dprintf-posix2.sh: Likewise.
15474         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
15475         * modules/dprintf-posix-tests (Depends-on): Likewise.
15476         Reported by Bruce Korb <bkorb@gnu.org> and
15477         Gary V. Vaughan <gary@gnu.org>.
15478
15479 2011-01-18  Bruno Haible  <bruno@clisp.org>
15480
15481         get-rusage-as: Improvement for Cygwin.
15482         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
15483         areas that are merely reserved.
15484
15485 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
15486
15487         strftime: remove dependencies on multibyte modules
15488
15489         strftime depended on mbrlen, mbsinit, and wchar, but these modules
15490         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
15491         only if __osf__ is defined, and I suspect OSF doesn't need these
15492         other modules.  If my guess is wrong, we'll need to come up with a
15493         variant of strftime that doesn't need the multibyte modules.
15494
15495         I discovered this problem when attempting modify Emacs to use the
15496         strftime module.  With the previous gnulib, this caused Emacs to
15497         need 31 new files, ranging from lib/config.charset to
15498         m4/wint_t.m4.  This was overkill and I expect would be offputting
15499         to the Emacs maintainers.  After this change, only 6 new files are
15500         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
15501         stdbool.m4, and tm_gmtoff.m4.
15502
15503         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
15504         Suggested by Bruno Haible in
15505         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
15506         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
15507         and do not check for wchar.h.
15508         * modules/strftime (Files): Remove m4/mbstate_t.m4.
15509         (Depends-on): Remove mbrlen, mbsinit, wchar.
15510
15511 2011-01-18  Bruno Haible  <bruno@clisp.org>
15512
15513         Tests for module 'get-rusage-as'.
15514         * modules/get-rusage-as-tests: New file.
15515         * tests/test-get-rusage-as.c: New file.
15516
15517         New module 'get-rusage-as'.
15518         * modules/get-rusage-as: New file.
15519         * lib/resource-ext.h: New file.
15520         * lib/get-rusage-as.c: New file.
15521
15522 2011-01-17  Eric Blake  <eblake@redhat.com>
15523
15524         sigaction: relax license from LGPLv3+ to LGPLv2+
15525         * modules/sigaction (License): Relax to LGPLv2+.
15526
15527 2011-01-14  Bruno Haible  <bruno@clisp.org>
15528
15529         filemode: Make function declarations usable in C++ mode.
15530         * lib/filemode.h: Enclose function declarations in extern "C" block.
15531         Reported by John W. Eaton <jwe@gnu.org>.
15532
15533 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
15534
15535         save-cwd: no longer include "xgetcwd.h"
15536         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
15537         This avoids a compilation failure in projects that use save-cwd
15538         without also using the xgetcwd module.
15539
15540 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
15541
15542         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
15543         This is so that a program like Emacs, which needs only dtoastr,
15544         does not have to bother with distributing and compiling ftoastr
15545         and ldtoastr.
15546         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
15547         * modules/dtoastr, modules/ldtoastr: New files.
15548         * modules/ftoastr: Now works just for 'float'.
15549         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
15550         (Makefile.am): Remove ftoastr.h (not needed and no effect),
15551         dtoastr.c, ldtoastr.c.
15552
15553 2011-01-11  Jim Meyering  <meyering@redhat.com>
15554
15555         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
15556         There is no need to work around the lack of the fchdir function,
15557         since gnulib can now provide a replacement when required.
15558         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
15559         * modules/save-cwd (Depends-on): Add fchdir.
15560
15561 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
15562
15563         openat, save-cwd: avoid xmalloc
15564
15565         This removes a direct (but undocumented) dependency of openat on
15566         xalloc, along with an indirect dependency via save-cwd.  It also
15567         removes a dependency of save-cwd on xgetcwd, and thereby
15568         indirectly on xalloc.  This change causes the openat substitute
15569         to fall back on save_cwd when memory is tight, and for save_cwd to
15570         fail instead of dying when memory is tight, but that's good enough.
15571         Problem and initial idea for fix reported by Bastien Roucaries in
15572         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
15573
15574         * lib/openat-proc.c: Include stdlib.h (for malloc), not
15575         xalloc.h (for xmalloc).
15576         (openat_proc_name): Use malloc, not xmalloc.
15577         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
15578         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
15579
15580         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
15581         This avoids heap allocation for file names whose lengths are in
15582         the range 512..1023, with the upper bound increasing to at most
15583         4031 depending on the platform's PATH_MAX.  (We do not want
15584         pathmax.h here as it might supply a non-constant PATH_MAX.)
15585         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
15586         Perhaps they should be moved to malloca.h?
15587         (OPENAT_BUFFER_SIZE): Use them.
15588
15589 2011-01-10  Bruno Haible  <bruno@clisp.org>
15590
15591         doc: Update users.txt.
15592         * users.txt: Add recutils.
15593
15594 2011-01-09  Karl Berry  <karl@gnu.org>
15595
15596         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
15597
15598         * doc/configmake.texi: New file.
15599         * doc/gnulib.texi: Include it.
15600         * modules/configmake: Move documentation from here.
15601
15602 2011-01-09  Bruno Haible  <bruno@clisp.org>
15603
15604         Update to Unicode 6.0.0.
15605         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
15606         (get_lbp): Update for Unicode 6.0.0.
15607         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
15608         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
15609         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
15610         U+11001, U+11038..U+11046. Remove U+06DE.
15611         (uc_width): Fix bounds of planes.
15612         * tests/uniwidth/test-uc_width2.sh: Same updates as in
15613         lib/uniwidth/width.c.
15614         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
15615         trailing whitespace removed.
15616         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
15617         without comments, but with the original copyright notice.
15618         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
15619         * lib/unicase/ignorable.h: Likewise.
15620         * lib/unicase/tocasefold.h: Likewise.
15621         * lib/unicase/tolower.h: Likewise.
15622         * lib/unicase/totitle.h: Likewise.
15623         * lib/unicase/toupper.h: Likewise.
15624         * lib/unictype/bidi_of.h: Likewise.
15625         * lib/unictype/blocks.h: Likewise.
15626         * lib/unictype/categ_C.h: Likewise.
15627         * lib/unictype/categ_Cn.h: Likewise.
15628         * lib/unictype/categ_L.h: Likewise.
15629         * lib/unictype/categ_Ll.h: Likewise.
15630         * lib/unictype/categ_Lm.h: Likewise.
15631         * lib/unictype/categ_Lo.h: Likewise.
15632         * lib/unictype/categ_Lu.h: Likewise.
15633         * lib/unictype/categ_M.h: Likewise.
15634         * lib/unictype/categ_Mc.h: Likewise.
15635         * lib/unictype/categ_Me.h: Likewise.
15636         * lib/unictype/categ_Mn.h: Likewise.
15637         * lib/unictype/categ_N.h: Likewise.
15638         * lib/unictype/categ_Nd.h: Likewise.
15639         * lib/unictype/categ_No.h: Likewise.
15640         * lib/unictype/categ_P.h: Likewise.
15641         * lib/unictype/categ_Po.h: Likewise.
15642         * lib/unictype/categ_S.h: Likewise.
15643         * lib/unictype/categ_Sc.h: Likewise.
15644         * lib/unictype/categ_Sk.h: Likewise.
15645         * lib/unictype/categ_Sm.h: Likewise.
15646         * lib/unictype/categ_So.h: Likewise.
15647         * lib/unictype/categ_of.h: Likewise.
15648         * lib/unictype/combining.h: Likewise.
15649         * lib/unictype/ctype_alnum.h: Likewise.
15650         * lib/unictype/ctype_alpha.h: Likewise.
15651         * lib/unictype/ctype_graph.h: Likewise.
15652         * lib/unictype/ctype_lower.h: Likewise.
15653         * lib/unictype/ctype_print.h: Likewise.
15654         * lib/unictype/ctype_punct.h: Likewise.
15655         * lib/unictype/ctype_upper.h: Likewise.
15656         * lib/unictype/decdigit.h: Likewise.
15657         * lib/unictype/digit.h: Likewise.
15658         * lib/unictype/numeric.h: Likewise.
15659         * lib/unictype/pr_alphabetic.h: Likewise.
15660         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
15661         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
15662         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
15663         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
15664         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
15665         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
15666         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
15667         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
15668         * lib/unictype/pr_case_ignorable.h: Likewise.
15669         * lib/unictype/pr_cased.h: Likewise.
15670         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
15671         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
15672         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
15673         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
15674         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
15675         * lib/unictype/pr_combining.h: Likewise.
15676         * lib/unictype/pr_composite.h: Likewise.
15677         * lib/unictype/pr_currency_symbol.h: Likewise.
15678         * lib/unictype/pr_decimal_digit.h: Likewise.
15679         * lib/unictype/pr_deprecated.h: Likewise.
15680         * lib/unictype/pr_format_control.h: Likewise.
15681         * lib/unictype/pr_grapheme_base.h: Likewise.
15682         * lib/unictype/pr_grapheme_extend.h: Likewise.
15683         * lib/unictype/pr_grapheme_link.h: Likewise.
15684         * lib/unictype/pr_id_continue.h: Likewise.
15685         * lib/unictype/pr_id_start.h: Likewise.
15686         * lib/unictype/pr_ideographic.h: Likewise.
15687         * lib/unictype/pr_lowercase.h: Likewise.
15688         * lib/unictype/pr_math.h: Likewise.
15689         * lib/unictype/pr_numeric.h: Likewise.
15690         * lib/unictype/pr_other_alphabetic.h: Likewise.
15691         * lib/unictype/pr_other_id_continue.h: Likewise.
15692         * lib/unictype/pr_other_math.h: Likewise.
15693         * lib/unictype/pr_punctuation.h: Likewise.
15694         * lib/unictype/pr_sentence_terminal.h: Likewise.
15695         * lib/unictype/pr_terminal_punctuation.h: Likewise.
15696         * lib/unictype/pr_unassigned_code_value.h: Likewise.
15697         * lib/unictype/pr_unified_ideograph.h: Likewise.
15698         * lib/unictype/pr_uppercase.h: Likewise.
15699         * lib/unictype/pr_xid_continue.h: Likewise.
15700         * lib/unictype/pr_xid_start.h: Likewise.
15701         * lib/unictype/scripts.h: Likewise.
15702         * lib/unictype/scripts_byname.gperf: Likewise.
15703         * lib/unictype/sy_java_ident.h: Likewise.
15704         * lib/unigbrk/gbrkprop.h: Likewise.
15705         * lib/unilbrk/lbrkprop1.h: Likewise.
15706         * lib/unilbrk/lbrkprop2.h: Likewise.
15707         * lib/uninorm/decomposition-table2.h: Likewise.
15708         * lib/uniwbrk/wbrkprop.h: Likewise.
15709         * tests/unicase/test-cased.c: Likewise.
15710         * tests/unicase/test-ignorable.c: Likewise.
15711         * tests/unicase/test-uc_tolower.c: Likewise.
15712         * tests/unicase/test-uc_totitle.c: Likewise.
15713         * tests/unicase/test-uc_toupper.c: Likewise.
15714         * tests/unictype/test-categ_C.c: Likewise.
15715         * tests/unictype/test-categ_Cn.c: Likewise.
15716         * tests/unictype/test-categ_L.c: Likewise.
15717         * tests/unictype/test-categ_Ll.c: Likewise.
15718         * tests/unictype/test-categ_Lm.c: Likewise.
15719         * tests/unictype/test-categ_Lo.c: Likewise.
15720         * tests/unictype/test-categ_Lu.c: Likewise.
15721         * tests/unictype/test-categ_M.c: Likewise.
15722         * tests/unictype/test-categ_Mc.c: Likewise.
15723         * tests/unictype/test-categ_Me.c: Likewise.
15724         * tests/unictype/test-categ_Mn.c: Likewise.
15725         * tests/unictype/test-categ_N.c: Likewise.
15726         * tests/unictype/test-categ_Nd.c: Likewise.
15727         * tests/unictype/test-categ_No.c: Likewise.
15728         * tests/unictype/test-categ_P.c: Likewise.
15729         * tests/unictype/test-categ_Po.c: Likewise.
15730         * tests/unictype/test-categ_S.c: Likewise.
15731         * tests/unictype/test-categ_Sc.c: Likewise.
15732         * tests/unictype/test-categ_Sk.c: Likewise.
15733         * tests/unictype/test-categ_Sm.c: Likewise.
15734         * tests/unictype/test-categ_So.c: Likewise.
15735         * tests/unictype/test-ctype_alnum.c: Likewise.
15736         * tests/unictype/test-ctype_alpha.c: Likewise.
15737         * tests/unictype/test-ctype_graph.c: Likewise.
15738         * tests/unictype/test-ctype_lower.c: Likewise.
15739         * tests/unictype/test-ctype_print.c: Likewise.
15740         * tests/unictype/test-ctype_punct.c: Likewise.
15741         * tests/unictype/test-ctype_upper.c: Likewise.
15742         * tests/unictype/test-decdigit.h: Likewise.
15743         * tests/unictype/test-digit.h: Likewise.
15744         * tests/unictype/test-numeric.h: Likewise.
15745         * tests/unictype/test-pr_alphabetic.c: Likewise.
15746         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
15747         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
15748         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
15749         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
15750         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
15751         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
15752         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
15753         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
15754         * tests/unictype/test-pr_case_ignorable.c: Likewise.
15755         * tests/unictype/test-pr_cased.c: Likewise.
15756         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
15757         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
15758         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
15759         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
15760         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
15761         * tests/unictype/test-pr_combining.c: Likewise.
15762         * tests/unictype/test-pr_composite.c: Likewise.
15763         * tests/unictype/test-pr_currency_symbol.c: Likewise.
15764         * tests/unictype/test-pr_decimal_digit.c: Likewise.
15765         * tests/unictype/test-pr_deprecated.c: Likewise.
15766         * tests/unictype/test-pr_format_control.c: Likewise.
15767         * tests/unictype/test-pr_grapheme_base.c: Likewise.
15768         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
15769         * tests/unictype/test-pr_grapheme_link.c: Likewise.
15770         * tests/unictype/test-pr_id_continue.c: Likewise.
15771         * tests/unictype/test-pr_id_start.c: Likewise.
15772         * tests/unictype/test-pr_ideographic.c: Likewise.
15773         * tests/unictype/test-pr_lowercase.c: Likewise.
15774         * tests/unictype/test-pr_math.c: Likewise.
15775         * tests/unictype/test-pr_numeric.c: Likewise.
15776         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
15777         * tests/unictype/test-pr_other_id_continue.c: Likewise.
15778         * tests/unictype/test-pr_other_math.c: Likewise.
15779         * tests/unictype/test-pr_punctuation.c: Likewise.
15780         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
15781         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
15782         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
15783         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
15784         * tests/unictype/test-pr_uppercase.c: Likewise.
15785         * tests/unictype/test-pr_xid_continue.c: Likewise.
15786         * tests/unictype/test-pr_xid_start.c: Likewise.
15787         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
15788         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
15789         changes.
15790         * lib/unictype/categ_Cc.h: Likewise.
15791         * lib/unictype/categ_Cf.h: Likewise.
15792         * lib/unictype/categ_Co.h: Likewise.
15793         * lib/unictype/categ_Cs.h: Likewise.
15794         * lib/unictype/categ_Lt.h: Likewise.
15795         * lib/unictype/categ_Nl.h: Likewise.
15796         * lib/unictype/categ_Pc.h: Likewise.
15797         * lib/unictype/categ_Pd.h: Likewise.
15798         * lib/unictype/categ_Pe.h: Likewise.
15799         * lib/unictype/categ_Pf.h: Likewise.
15800         * lib/unictype/categ_Pi.h: Likewise.
15801         * lib/unictype/categ_Ps.h: Likewise.
15802         * lib/unictype/categ_Z.h: Likewise.
15803         * lib/unictype/categ_Zl.h: Likewise.
15804         * lib/unictype/categ_Zp.h: Likewise.
15805         * lib/unictype/categ_Zs.h: Likewise.
15806         * lib/unictype/ctype_blank.h: Likewise.
15807         * lib/unictype/ctype_cntrl.h: Likewise.
15808         * lib/unictype/ctype_digit.h: Likewise.
15809         * lib/unictype/ctype_space.h: Likewise.
15810         * lib/unictype/ctype_xdigit.h: Likewise.
15811         * lib/unictype/mirror.h: Likewise.
15812         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
15813         * lib/unictype/pr_bidi_block_separator.h: Likewise.
15814         * lib/unictype/pr_bidi_common_separator.h: Likewise.
15815         * lib/unictype/pr_bidi_control.h: Likewise.
15816         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
15817         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
15818         * lib/unictype/pr_bidi_european_digit.h: Likewise.
15819         * lib/unictype/pr_bidi_pdf.h: Likewise.
15820         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
15821         * lib/unictype/pr_bidi_whitespace.h: Likewise.
15822         * lib/unictype/pr_dash.h: Likewise.
15823         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
15824         * lib/unictype/pr_diacritic.h: Likewise.
15825         * lib/unictype/pr_extender.h: Likewise.
15826         * lib/unictype/pr_hex_digit.h: Likewise.
15827         * lib/unictype/pr_hyphen.h: Likewise.
15828         * lib/unictype/pr_ids_binary_operator.h: Likewise.
15829         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
15830         * lib/unictype/pr_ignorable_control.h: Likewise.
15831         * lib/unictype/pr_iso_control.h: Likewise.
15832         * lib/unictype/pr_join_control.h: Likewise.
15833         * lib/unictype/pr_left_of_pair.h: Likewise.
15834         * lib/unictype/pr_line_separator.h: Likewise.
15835         * lib/unictype/pr_logical_order_exception.h: Likewise.
15836         * lib/unictype/pr_non_break.h: Likewise.
15837         * lib/unictype/pr_not_a_character.h: Likewise.
15838         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
15839         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
15840         * lib/unictype/pr_other_id_start.h: Likewise.
15841         * lib/unictype/pr_other_lowercase.h: Likewise.
15842         * lib/unictype/pr_other_uppercase.h: Likewise.
15843         * lib/unictype/pr_paired_punctuation.h: Likewise.
15844         * lib/unictype/pr_paragraph_separator.h: Likewise.
15845         * lib/unictype/pr_pattern_syntax.h: Likewise.
15846         * lib/unictype/pr_pattern_white_space.h: Likewise.
15847         * lib/unictype/pr_private_use.h: Likewise.
15848         * lib/unictype/pr_quotation_mark.h: Likewise.
15849         * lib/unictype/pr_radical.h: Likewise.
15850         * lib/unictype/pr_soft_dotted.h: Likewise.
15851         * lib/unictype/pr_space.h: Likewise.
15852         * lib/unictype/pr_titlecase.h: Likewise.
15853         * lib/unictype/pr_variation_selector.h: Likewise.
15854         * lib/unictype/pr_white_space.h: Likewise.
15855         * lib/unictype/pr_zero_width.h: Likewise.
15856         * lib/unictype/sy_c_ident.h: Likewise.
15857         * lib/unictype/sy_c_whitespace.h: Likewise.
15858         * lib/unictype/sy_java_whitespace.h: Likewise.
15859         * lib/uninorm/composition-table.gperf: Likewise.
15860         * lib/uninorm/decomposition-table1.h: Likewise.
15861         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
15862         LB8.
15863         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
15864         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
15865         * modules/unictype/*: Bump version number of expected libunistring
15866         version.
15867
15868 2011-01-09  Bruno Haible  <bruno@clisp.org>
15869
15870         Update to Unicode 5.2.0.
15871         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
15872         trailing whitespace removed.
15873
15874 2011-01-09  Bruno Haible  <bruno@clisp.org>
15875
15876         New Unicode character properties, from Unicode 5.2.0.
15877         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
15878         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
15879         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
15880         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
15881         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
15882         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
15883         uc_is_property_cased, uc_is_property_case_ignorable,
15884         uc_is_property_changes_when_lowercased,
15885         uc_is_property_changes_when_uppercased,
15886         uc_is_property_changes_when_titlecased,
15887         uc_is_property_changes_when_casefolded,
15888         uc_is_property_changes_when_casemapped): New declarations.
15889         * lib/unictype/pr_byname.gperf: Add the new properties.
15890         * modules/unictype/property-byname (Depends-on): Depend on the new
15891         properties modules.
15892         * modules/unictype/property-all (Depends-on): Likewise.
15893         * MODULES.html.sh (Unicode string functions): Add
15894         unictype/property-case-ignorable, unictype/property-cased,
15895         unictype/property-changes-when-casefolded,
15896         unictype/property-changes-when-casemapped,
15897         unictype/property-changes-when-lowercased,
15898         unictype/property-changes-when-titlecased,
15899         unictype/property-changes-when-uppercased.
15900
15901         New module 'unictype/property-changes-when-casemapped'.
15902         * modules/unictype/property-changes-when-casemapped: New file.
15903         * lib/unictype/pr_changes_when_casemapped.c: New file.
15904         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
15905         generated by gen-uni-tables.
15906         * modules/unictype/property-changes-when-casemapped-tests: New file.
15907         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
15908         automatically generated by gen-uni-tables.
15909
15910         New module 'unictype/property-changes-when-casefolded'.
15911         * modules/unictype/property-changes-when-casefolded: New file.
15912         * lib/unictype/pr_changes_when_casefolded.c: New file.
15913         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
15914         generated by gen-uni-tables.
15915         * modules/unictype/property-changes-when-casefolded-tests: New file.
15916         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
15917         automatically generated by gen-uni-tables.
15918
15919         New module 'unictype/property-changes-when-titlecased'.
15920         * modules/unictype/property-changes-when-titlecased: New file.
15921         * lib/unictype/pr_changes_when_titlecased.c: New file.
15922         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
15923         generated by gen-uni-tables.
15924         * modules/unictype/property-changes-when-titlecased-tests: New file.
15925         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
15926         automatically generated by gen-uni-tables.
15927
15928         New module 'unictype/property-changes-when-uppercased'.
15929         * modules/unictype/property-changes-when-uppercased: New file.
15930         * lib/unictype/pr_changes_when_uppercased.c: New file.
15931         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
15932         generated by gen-uni-tables.
15933         * modules/unictype/property-changes-when-uppercased-tests: New file.
15934         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
15935         automatically generated by gen-uni-tables.
15936
15937         New module 'unictype/property-changes-when-lowercased'.
15938         * modules/unictype/property-changes-when-lowercased: New file.
15939         * lib/unictype/pr_changes_when_lowercased.c: New file.
15940         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
15941         generated by gen-uni-tables.
15942         * modules/unictype/property-changes-when-lowercased-tests: New file.
15943         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
15944         automatically generated by gen-uni-tables.
15945
15946         New module 'unictype/property-case-ignorable'.
15947         * modules/unictype/property-case-ignorable: New file.
15948         * lib/unictype/pr_case_ignorable.c: New file.
15949         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
15950         by gen-uni-tables.
15951         * modules/unictype/property-case-ignorable-tests: New file.
15952         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
15953         generated by gen-uni-tables.
15954
15955         New module 'unictype/property-cased'.
15956         * modules/unictype/property-cased: New file.
15957         * lib/unictype/pr_cased.c: New file.
15958         * lib/unictype/pr_cased.h: New file, automatically generated by
15959         gen-uni-tables.
15960         * modules/unictype/property-cased-tests: New file.
15961         * tests/unictype/test-pr_cased.c: New file, automatically generated by
15962         gen-uni-tables.
15963
15964 2011-01-09  Bruno Haible  <bruno@clisp.org>
15965
15966         Update to Unicode 5.2.0.
15967         * lib/gen-uni-tables.c (output_predicate, output_category,
15968         output_combclass, output_bidi_category, output_decimal_digit_test,
15969         output_decimal_digit, output_digit_test, output_digit,
15970         output_numeric_test, output_numeric, output_mirror, output_scripts,
15971         output_scripts_byname, output_blocks, output_ident_category): Fix
15972         comment header.
15973         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
15974         get_wbp.
15975         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
15976         items.
15977         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
15978         Changes_When_Lowercased, Changes_When_Uppercased,
15979         Changes_When_Titlecased, Changes_When_Casefolded,
15980         Changes_When_Casemapped.
15981         (is_property_alphabetic, is_property_default_ignorable_code_point):
15982         Update for Unicode 5.2.0.
15983         (is_property_cased, is_property_case_ignorable,
15984         is_property_changes_when_lowercased,
15985         is_property_changes_when_uppercased,
15986         is_property_changes_when_titlecased,
15987         is_property_changes_when_casefolded,
15988         is_property_changes_when_casemapped): New functions.
15989         (output_properties): Output also the properties cased, case_ignorable,
15990         changes_when_lowercased, changes_when_uppercased,
15991         changes_when_titlecased, changes_when_casefolded,
15992         changes_when_casemapped.
15993         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
15994         Unicode TR#11 revision 17 -> 19.
15995         (LBP_CP): New enumeration value.
15996         (LBP_*): Adjust values accordingly.
15997         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
15998         TR#14 revision 22 -> 24.
15999         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
16000         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
16001         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
16002         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
16003         is_WBP_MIDLETTER.
16004         (output_composition_tables): Allow for 24 bits instead of 16 bits in
16005         the code1 and code2 of each composition rule.
16006         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
16007         * lib/unicase/ignorable.h: Likewise.
16008         * lib/unicase/tocasefold.h: Likewise.
16009         * lib/unicase/tolower.h: Likewise.
16010         * lib/unicase/totitle.h: Likewise.
16011         * lib/unicase/toupper.h: Likewise.
16012         * lib/unictype/bidi_of.h: Likewise.
16013         * lib/unictype/blocks.h: Likewise.
16014         * lib/unictype/categ_C.h: Likewise.
16015         * lib/unictype/categ_Cf.h: Likewise.
16016         * lib/unictype/categ_Cn.h: Likewise.
16017         * lib/unictype/categ_L.h: Likewise.
16018         * lib/unictype/categ_Ll.h: Likewise.
16019         * lib/unictype/categ_Lm.h: Likewise.
16020         * lib/unictype/categ_Lo.h: Likewise.
16021         * lib/unictype/categ_Lu.h: Likewise.
16022         * lib/unictype/categ_M.h: Likewise.
16023         * lib/unictype/categ_Mc.h: Likewise.
16024         * lib/unictype/categ_Mn.h: Likewise.
16025         * lib/unictype/categ_N.h: Likewise.
16026         * lib/unictype/categ_Nd.h: Likewise.
16027         * lib/unictype/categ_Nl.h: Likewise.
16028         * lib/unictype/categ_No.h: Likewise.
16029         * lib/unictype/categ_P.h: Likewise.
16030         * lib/unictype/categ_Pd.h: Likewise.
16031         * lib/unictype/categ_Po.h: Likewise.
16032         * lib/unictype/categ_S.h: Likewise.
16033         * lib/unictype/categ_Sc.h: Likewise.
16034         * lib/unictype/categ_So.h: Likewise.
16035         * lib/unictype/categ_of.h: Likewise.
16036         * lib/unictype/combining.h: Likewise.
16037         * lib/unictype/ctype_alnum.h: Likewise.
16038         * lib/unictype/ctype_alpha.h: Likewise.
16039         * lib/unictype/ctype_graph.h: Likewise.
16040         * lib/unictype/ctype_lower.h: Likewise.
16041         * lib/unictype/ctype_print.h: Likewise.
16042         * lib/unictype/ctype_punct.h: Likewise.
16043         * lib/unictype/ctype_upper.h: Likewise.
16044         * lib/unictype/decdigit.h: Likewise.
16045         * lib/unictype/digit.h: Likewise.
16046         * lib/unictype/numeric.h: Likewise.
16047         * lib/unictype/pr_alphabetic.h: Likewise.
16048         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
16049         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
16050         * lib/unictype/pr_bidi_european_digit.h: Likewise.
16051         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
16052         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
16053         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
16054         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
16055         * lib/unictype/pr_combining.h: Likewise.
16056         * lib/unictype/pr_composite.h: Likewise.
16057         * lib/unictype/pr_currency_symbol.h: Likewise.
16058         * lib/unictype/pr_dash.h: Likewise.
16059         * lib/unictype/pr_decimal_digit.h: Likewise.
16060         * lib/unictype/pr_deprecated.h: Likewise.
16061         * lib/unictype/pr_diacritic.h: Likewise.
16062         * lib/unictype/pr_extender.h: Likewise.
16063         * lib/unictype/pr_grapheme_base.h: Likewise.
16064         * lib/unictype/pr_grapheme_extend.h: Likewise.
16065         * lib/unictype/pr_grapheme_link.h: Likewise.
16066         * lib/unictype/pr_id_continue.h: Likewise.
16067         * lib/unictype/pr_id_start.h: Likewise.
16068         * lib/unictype/pr_ideographic.h: Likewise.
16069         * lib/unictype/pr_ignorable_control.h: Likewise.
16070         * lib/unictype/pr_logical_order_exception.h: Likewise.
16071         * lib/unictype/pr_lowercase.h: Likewise.
16072         * lib/unictype/pr_numeric.h: Likewise.
16073         * lib/unictype/pr_other_alphabetic.h: Likewise.
16074         * lib/unictype/pr_punctuation.h: Likewise.
16075         * lib/unictype/pr_sentence_terminal.h: Likewise.
16076         * lib/unictype/pr_terminal_punctuation.h: Likewise.
16077         * lib/unictype/pr_unassigned_code_value.h: Likewise.
16078         * lib/unictype/pr_unified_ideograph.h: Likewise.
16079         * lib/unictype/pr_uppercase.h: Likewise.
16080         * lib/unictype/pr_xid_continue.h: Likewise.
16081         * lib/unictype/pr_xid_start.h: Likewise.
16082         * lib/unictype/pr_zero_width.h: Likewise.
16083         * lib/unictype/scripts.h: Likewise.
16084         * lib/unictype/scripts_byname.gperf: Likewise.
16085         * lib/unictype/sy_java_ident.h: Likewise.
16086         * lib/unigbrk/gbrkprop.h: Likewise.
16087         * lib/unilbrk/lbrkprop1.h: Likewise.
16088         * lib/unilbrk/lbrkprop2.h: Likewise.
16089         * lib/unilbrk/lbrktables.h: Likewise.
16090         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
16091         LBP_CP. Implement rule LB30.
16092         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
16093         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
16094         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
16095         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
16096         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
16097         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
16098         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
16099         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
16100         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
16101         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
16102         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
16103         bits instead of 16 bits in the code1 and code2 of each composition
16104         rule.
16105         (uc_composition): Update for Unicode 5.2.0.
16106         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
16107         * lib/uninorm/decomposition-table2.h: Likewise.
16108         * lib/uniwbrk/wbrkprop.h: Likewise.
16109         * tests/unicase/test-cased.c: Likewise.
16110         * tests/unicase/test-ignorable.c: Likewise.
16111         * tests/unicase/test-uc_tolower.c: Likewise.
16112         * tests/unicase/test-uc_totitle.c: Likewise.
16113         * tests/unicase/test-uc_toupper.c: Likewise.
16114         * tests/unictype/test-categ_C.c: Likewise.
16115         * tests/unictype/test-categ_Cf.c: Likewise.
16116         * tests/unictype/test-categ_Cn.c: Likewise.
16117         * tests/unictype/test-categ_L.c: Likewise.
16118         * tests/unictype/test-categ_Ll.c: Likewise.
16119         * tests/unictype/test-categ_Lm.c: Likewise.
16120         * tests/unictype/test-categ_Lo.c: Likewise.
16121         * tests/unictype/test-categ_Lu.c: Likewise.
16122         * tests/unictype/test-categ_M.c: Likewise.
16123         * tests/unictype/test-categ_Mc.c: Likewise.
16124         * tests/unictype/test-categ_Mn.c: Likewise.
16125         * tests/unictype/test-categ_N.c: Likewise.
16126         * tests/unictype/test-categ_Nd.c: Likewise.
16127         * tests/unictype/test-categ_Nl.c: Likewise.
16128         * tests/unictype/test-categ_No.c: Likewise.
16129         * tests/unictype/test-categ_P.c: Likewise.
16130         * tests/unictype/test-categ_Pd.c: Likewise.
16131         * tests/unictype/test-categ_Po.c: Likewise.
16132         * tests/unictype/test-categ_S.c: Likewise.
16133         * tests/unictype/test-categ_Sc.c: Likewise.
16134         * tests/unictype/test-categ_So.c: Likewise.
16135         * tests/unictype/test-ctype_alnum.c: Likewise.
16136         * tests/unictype/test-ctype_alpha.c: Likewise.
16137         * tests/unictype/test-ctype_graph.c: Likewise.
16138         * tests/unictype/test-ctype_lower.c: Likewise.
16139         * tests/unictype/test-ctype_print.c: Likewise.
16140         * tests/unictype/test-ctype_punct.c: Likewise.
16141         * tests/unictype/test-ctype_upper.c: Likewise.
16142         * tests/unictype/test-decdigit.h: Likewise.
16143         * tests/unictype/test-digit.h: Likewise.
16144         * tests/unictype/test-numeric.h: Likewise.
16145         * tests/unictype/test-pr_alphabetic.c: Likewise.
16146         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
16147         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
16148         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
16149         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
16150         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
16151         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
16152         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
16153         * tests/unictype/test-pr_combining.c: Likewise.
16154         * tests/unictype/test-pr_composite.c: Likewise.
16155         * tests/unictype/test-pr_currency_symbol.c: Likewise.
16156         * tests/unictype/test-pr_dash.c: Likewise.
16157         * tests/unictype/test-pr_decimal_digit.c: Likewise.
16158         * tests/unictype/test-pr_deprecated.c: Likewise.
16159         * tests/unictype/test-pr_diacritic.c: Likewise.
16160         * tests/unictype/test-pr_extender.c: Likewise.
16161         * tests/unictype/test-pr_grapheme_base.c: Likewise.
16162         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
16163         * tests/unictype/test-pr_grapheme_link.c: Likewise.
16164         * tests/unictype/test-pr_id_continue.c: Likewise.
16165         * tests/unictype/test-pr_id_start.c: Likewise.
16166         * tests/unictype/test-pr_ideographic.c: Likewise.
16167         * tests/unictype/test-pr_ignorable_control.c: Likewise.
16168         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
16169         * tests/unictype/test-pr_lowercase.c: Likewise.
16170         * tests/unictype/test-pr_numeric.c: Likewise.
16171         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
16172         * tests/unictype/test-pr_punctuation.c: Likewise.
16173         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
16174         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
16175         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
16176         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
16177         * tests/unictype/test-pr_uppercase.c: Likewise.
16178         * tests/unictype/test-pr_xid_continue.c: Likewise.
16179         * tests/unictype/test-pr_xid_start.c: Likewise.
16180         * tests/unictype/test-pr_zero_width.c: Likewise.
16181         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
16182         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
16183         changed behaviour: line breaking is now disallowed between a letter
16184         or '=' and '('.
16185         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
16186         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
16187         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
16188         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
16189         * tests/uniwidth/test-uc_width2.sh: Same updates as in
16190         lib/uniwidth/width.c.
16191         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
16192         without comments, but with the original copyright notice.
16193         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
16194         changes.
16195         * lib/unictype/categ_Cc.h: Likewise.
16196         * lib/unictype/categ_Co.h: Likewise.
16197         * lib/unictype/categ_Cs.h: Likewise.
16198         * lib/unictype/categ_Lt.h: Likewise.
16199         * lib/unictype/categ_Me.h: Likewise.
16200         * lib/unictype/categ_Pc.h: Likewise.
16201         * lib/unictype/categ_Pe.h: Likewise.
16202         * lib/unictype/categ_Pf.h: Likewise.
16203         * lib/unictype/categ_Pi.h: Likewise.
16204         * lib/unictype/categ_Ps.h: Likewise.
16205         * lib/unictype/categ_Sk.h: Likewise.
16206         * lib/unictype/categ_Sm.h: Likewise.
16207         * lib/unictype/categ_Z.h: Likewise.
16208         * lib/unictype/categ_Zl.h: Likewise.
16209         * lib/unictype/categ_Zp.h: Likewise.
16210         * lib/unictype/categ_Zs.h: Likewise.
16211         * lib/unictype/ctype_blank.h: Likewise.
16212         * lib/unictype/ctype_cntrl.h: Likewise.
16213         * lib/unictype/ctype_digit.h: Likewise.
16214         * lib/unictype/ctype_space.h: Likewise.
16215         * lib/unictype/ctype_xdigit.h: Likewise.
16216         * lib/unictype/mirror.h: Likewise.
16217         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
16218         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
16219         * lib/unictype/pr_bidi_block_separator.h: Likewise.
16220         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
16221         * lib/unictype/pr_bidi_common_separator.h: Likewise.
16222         * lib/unictype/pr_bidi_control.h: Likewise.
16223         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
16224         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
16225         * lib/unictype/pr_bidi_pdf.h: Likewise.
16226         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
16227         * lib/unictype/pr_bidi_whitespace.h: Likewise.
16228         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
16229         * lib/unictype/pr_format_control.h: Likewise.
16230         * lib/unictype/pr_hex_digit.h: Likewise.
16231         * lib/unictype/pr_hyphen.h: Likewise.
16232         * lib/unictype/pr_ids_binary_operator.h: Likewise.
16233         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
16234         * lib/unictype/pr_iso_control.h: Likewise.
16235         * lib/unictype/pr_join_control.h: Likewise.
16236         * lib/unictype/pr_left_of_pair.h: Likewise.
16237         * lib/unictype/pr_line_separator.h: Likewise.
16238         * lib/unictype/pr_math.h: Likewise.
16239         * lib/unictype/pr_non_break.h: Likewise.
16240         * lib/unictype/pr_not_a_character.h: Likewise.
16241         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
16242         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
16243         * lib/unictype/pr_other_id_continue.h: Likewise.
16244         * lib/unictype/pr_other_id_start.h: Likewise.
16245         * lib/unictype/pr_other_lowercase.h: Likewise.
16246         * lib/unictype/pr_other_math.h: Likewise.
16247         * lib/unictype/pr_other_uppercase.h: Likewise.
16248         * lib/unictype/pr_paired_punctuation.h: Likewise.
16249         * lib/unictype/pr_paragraph_separator.h: Likewise.
16250         * lib/unictype/pr_pattern_syntax.h: Likewise.
16251         * lib/unictype/pr_pattern_white_space.h: Likewise.
16252         * lib/unictype/pr_private_use.h: Likewise.
16253         * lib/unictype/pr_quotation_mark.h: Likewise.
16254         * lib/unictype/pr_radical.h: Likewise.
16255         * lib/unictype/pr_soft_dotted.h: Likewise.
16256         * lib/unictype/pr_space.h: Likewise.
16257         * lib/unictype/pr_titlecase.h: Likewise.
16258         * lib/unictype/pr_variation_selector.h: Likewise.
16259         * lib/unictype/pr_white_space.h: Likewise.
16260         * lib/unictype/sy_c_ident.h: Likewise.
16261         * lib/unictype/sy_c_whitespace.h: Likewise.
16262         * lib/unictype/sy_java_whitespace.h: Likewise.
16263         * modules/uni*/*: Bump version number of expected libunistring version.
16264         Reported by Simon Josefsson.
16265
16266 2011-01-09  Karl Heuer  <kwzh@gnu.org>
16267
16268         useless-if-before-free: fix typo in --help and make the internal,
16269         automatic version date update process work once again.
16270         --help output contained a NUL character instead of the
16271         backslash-zero that was intended.  Also, the "must lie within
16272         the first 8 lines" line is on line 9, and hence not getting
16273         automatically updated.
16274         * build-aux/useless-if-before-free: Fix the former by adding a
16275         backslash, and the latter by condensing the three lines of what-it-does
16276         to a single line, leaving one line of slack for the future.
16277
16278 2011-01-09  Bruno Haible  <bruno@clisp.org>
16279
16280         uniwidth/width: Fix width of U+1D173..U+1D17A.
16281         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
16282         symbolic_width, output_width_property_test): New functions.
16283         (main): Invoke output_nonspacing_property, output_width_property_test.
16284         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
16285         U+1D173..U+1D17A.
16286         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
16287         1.
16288         * modules/uniwidth/*: Bump version number of expected libunistring
16289         version.
16290         * modules/unilbrk/*: Likewise.
16291
16292 2011-01-08  Bruno Haible  <bruno@clisp.org>
16293
16294         uninorm tests: Preserve copyright of Unicode data file.
16295         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
16296         Mention modifications.
16297
16298 2011-01-08  Bruno Haible  <bruno@clisp.org>
16299
16300         gen-uni-tables: Prepare for Unicode 5.2.0.
16301         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
16302         (debug_output_lbp, output_lbp): Update.
16303
16304 2011-01-08  Bruno Haible  <bruno@clisp.org>
16305
16306         unilbrk: Clarify gen-uni-tables.c code.
16307         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
16308         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
16309         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
16310
16311 2011-01-07  Bruno Haible  <bruno@clisp.org>
16312
16313         strtod: Restore errno when successfully parsing Infinity or NaN.
16314         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
16315         restore the original errno.
16316
16317 2011-01-07  Bruno Haible  <bruno@clisp.org>
16318
16319         remove test: Avoid failure on HP-UX 11.
16320         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
16321
16322 2011-01-07  Bruno Haible  <bruno@clisp.org>
16323
16324         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
16325         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
16326         error code.
16327
16328 2011-01-07  Pádraig Brady <P@draigBrady.com>
16329
16330         ignore-value: fixup comments, and add Eric Blake
16331         as an author since he rewrote the macros.
16332         * lib/ignore-value.h (ignore_value):  State that
16333         we now support aggregates.  Also specify exactly
16334         when the GCC warn_unused_result feature was added.
16335
16336 2011-01-06  Eric Blake  <eblake@redhat.com>
16337
16338         ignore-value: support aggregate types
16339         * lib/ignore-value.h (ignore_value): Provide separate gcc
16340         definition.
16341         * modules/ignore-value-tests: New test module.
16342         * tests/test-ignore-value.c: New test.
16343
16344         maint.mk: improve sc_prohibit_strcmp regex
16345         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
16346         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
16347         definition of STRNEQ.
16348
16349         signal: work around Haiku issue with SIGBUS
16350         * lib/siglist.h: Add comment.
16351         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
16352         strsignal's favoring of SIGSEGV.
16353         * tests/test-signal.c (main): Avoid test failure.
16354         * doc/posix-headers/signal.texi (signal.h): Document the issue.
16355         Reported by Scott McCreary.
16356
16357         maint.mk: add pre-release check to ensure submodule commits are public
16358         * top/maint.mk (public-submodule-commit): New rule.
16359         (submodule-checks): New variable.
16360         (alpha beta stable): Depend on the variable.
16361
16362 2011-01-05  Pádraig Brady <P@draigBrady.com>
16363         and Jim Meyering  <meyering@redhat.com>
16364
16365         ignore-value: make ignore_value more generic; deprecate ignore_ptr
16366         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
16367         (ATTRIBUTE_DEPRECATED): Define.
16368         (_ignore_case): New function.
16369         (ignore_value): New macro, to replace the old function.
16370         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
16371         * modules/ignore-value (Depends-on): Add stdint.
16372
16373 2011-01-04  Eric Blake  <eblake@redhat.com>
16374
16375         doc: regenerate INSTALL
16376         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
16377         @firstparagraphindent support, now that autoconf dropped it.
16378         (INSTALL_PRELUDE): Reinstate old macro.
16379         * doc/install.texi: Resync from autoconf.
16380         * doc/INSTALL: Reflect recent autoconf update.
16381         * doc/INSTALL.ISO: Likewise.
16382         * doc/INSTALL.UTF-8: Likewise.
16383         Reported by Karl Berry.
16384
16385 2011-01-04  Bruce Korb  <address@hidden>
16386
16387         git-version-gen: avoid a sub-shell
16388         * build-aux/git-version-gen: Redirect stderr in `...` via
16389         "exec 2>...", rather than via an added sub-shell.
16390
16391 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
16392
16393         git-version-gen: use (...) rather than sh -c '...'
16394         * build-aux/git-version-gen: Rather than hard-coding a shell's name
16395         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
16396
16397 2011-01-03  Jim Meyering  <meyering@redhat.com>
16398
16399         git-version-gen: convert leading TABs to spaces
16400         * build-aux/git-version-gen: Expand leading TABs.
16401
16402         git-version-gen: handle failed "git rev-list"
16403         * build-aux/git-version-gen: Rather than leaking a "fatal" error
16404         from git and proceeding as if it had succeeded but printed no SHA1
16405         checksums, suppress the diagnostic and handle the failure.
16406         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
16407
16408         git-version-gen: include command name in one more diagnostic
16409         * build-aux/git-version-gen: When the required .tarball-version file
16410         was missing or unreadable, you might see the diagnostic from "cat",
16411         but no trace of the name of the invoking script.  Now, you still see
16412         the diagnostic from cat, but also get one from "git-version-gen: ".
16413         Inspired by a patch from Bruce Korb.
16414
16415         update-copyright: adjust test to match changed code
16416         * tests/test-update-copyright.sh: Change test's expected output
16417         to match new actual output.
16418
16419 2011-01-02  Bruno Haible  <bruno@clisp.org>
16420
16421         getlogin_r: Avoid test failure on HP-UX 11.
16422         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
16423         ERANGE when the second argument is zero.
16424         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
16425         portability problem.
16426
16427 2011-01-02  Bruce Korb  <bkorb@gnu.org>
16428
16429         * build-aux/update-copyright: doc Simon's changes
16430
16431 2011-01-02  Simon Josefsson  <simon@josefsson.org>
16432
16433         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
16434         environment variable.
16435
16436 2011-01-02  Bruno Haible  <bruno@clisp.org>
16437
16438         unigbrk: Avoid gcc warnings.
16439         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
16440         unused variable.
16441         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
16442         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
16443         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
16444         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
16445         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
16446         Change type of first argument to 'const char *'.
16447         (main): Remove unused variable.
16448         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
16449         type of first argument to 'const char *'.
16450         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
16451         Likewise.
16452         (main): Change type of variable 's'.
16453         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
16454         to 'int'.
16455
16456 2011-01-02  Bruno Haible  <bruno@clisp.org>
16457
16458         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
16459         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
16460         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
16461         bug.
16462         * lib/pwrite.c: Undo 2010-12-31 patch.
16463         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
16464
16465 2011-01-02  Bruno Haible  <bruno@clisp.org>
16466
16467         pread: Fix test whether it works.
16468         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
16469
16470 2011-01-02  Bruno Haible  <bruno@clisp.org>
16471
16472         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
16473         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
16474         ends in "6". Don't require a specific month name. Try also the locale
16475         names found on HP-UX 11 and Solaris 7.
16476
16477 2011-01-02  Bruno Haible  <bruno@clisp.org>
16478
16479         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
16480         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
16481         C linkage.
16482         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
16483
16484 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
16485
16486         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
16487         for consistency, since the "cluster" term is not used elsewhere.
16488         * lib/unigbrk.in.h: Update name.
16489         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
16490         * lib/unigbrk/u16-grapheme-next.c: Update name.
16491         * lib/unigbrk/u16-grapheme-prev.c: Update name.
16492         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
16493         * lib/unigbrk/u32-grapheme-next.c: Update name.
16494         * lib/unigbrk/u32-grapheme-prev.c: Update name.
16495         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
16496         * lib/unigbrk/u8-grapheme-next.c: Update name.
16497         * lib/unigbrk/u8-grapheme-prev.c: Update name.
16498         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
16499         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
16500         Suggested by Bruno Haible.
16501
16502 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
16503
16504         Remove module 'u8-grapheme-len' as too redundant with
16505         'u8-grapheme-next'.
16506         * modules/unigbrk/u8-grapheme-len: Delete file.
16507         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
16508         * lib/unigbrk.in.h: Remove prototype for deleted function.
16509         * lib/unigbrk/u8-grapheme-len.c: Delete file.
16510         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
16511
16512         Remove module 'u16-grapheme-len' as too redundant with
16513         'u16-grapheme-next'.
16514         * modules/unigbrk/u16-grapheme-len: Delete file.
16515         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
16516         * lib/unigbrk.in.h: Remove prototype for deleted function.
16517         * lib/unigbrk/u16-grapheme-len.c: Delete file.
16518         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
16519
16520         Remove module 'u32-grapheme-len' as too redundant with
16521         'u32-grapheme-next'.
16522         * modules/unigbrk/u32-grapheme-len: Delete file.
16523         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
16524         * lib/unigbrk.in.h: Remove prototype for deleted function.
16525         * lib/unigbrk/u32-grapheme-len.c: Delete file.
16526         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
16527
16528         Suggested by Bruno Haible.
16529
16530 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
16531
16532         * unigbrk.in.h: Fix typo: "ben" => "been".
16533         Reported by Bruno Haible.
16534
16535 2011-01-01  Jim Meyering  <meyering@redhat.com>
16536
16537         maint: update almost all copyright ranges to include 2011
16538         Run the new "make update-copyright" rule.
16539
16540 2011-01-01  Jim Meyering  <meyering@redhat.com>
16541
16542         maint: update-copyright: exempt doc/INSTALL*
16543         * Makefile (update-copyright): Also exclude doc/INSTALL*,
16544         since they are generated.  Suggested by Bruno Haible.
16545
16546 2011-01-01  Jim Meyering  <meyering@redhat.com>
16547
16548         maint: refine the update-copyright rule
16549         * Makefile (update-copyright): Also exclude any file that includes
16550         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
16551         code that merely generates the comment.
16552
16553 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
16554
16555         New module 'u8-grapheme-len'.
16556         * modules/unigbrk/u8-grapheme-len: New file.
16557         * modules/unigbrk/u8-grapheme-len-tests: New file.
16558         * lib/unigbrk.in.h: Add prototype for new function.
16559         * lib/unigbrk/u8-grapheme-len.c: New file.
16560         * tests/unigbrk/test-u8-grapheme-len.c: New file.
16561
16562         New module 'u16-grapheme-len'.
16563         * modules/unigbrk/u16-grapheme-len: New file.
16564         * modules/unigbrk/u16-grapheme-len-tests: New file.
16565         * lib/unigbrk.in.h: Add prototype for new function.
16566         * lib/unigbrk/u16-grapheme-len.c: New file.
16567         * tests/unigbrk/test-u16-grapheme-len.c: New file.
16568
16569         New module 'u32-grapheme-len'.
16570         * modules/unigbrk/u32-grapheme-len: New file.
16571         * modules/unigbrk/u32-grapheme-len-tests: New file.
16572         * lib/unigbrk.in.h: Add prototype for new function.
16573         * lib/unigbrk/u32-grapheme-len.c: New file.
16574         * tests/unigbrk/test-u32-grapheme-len.c: New file.
16575
16576         New module 'u8-grapheme-next'.
16577         * modules/unigbrk/u8-grapheme-next: New file.
16578         * modules/unigbrk/u8-grapheme-next-tests: New file.
16579         * lib/unigbrk.in.h: Add prototype for new function.
16580         * lib/unigbrk/u8-grapheme-next.c: New file.
16581         * tests/unigbrk/test-u8-grapheme-next.c: New file.
16582
16583         New module 'u16-grapheme-next'.
16584         * modules/unigbrk/u16-grapheme-next: New file.
16585         * modules/unigbrk/u16-grapheme-next-tests: New file.
16586         * lib/unigbrk.in.h: Add prototype for new function.
16587         * lib/unigbrk/u16-grapheme-next.c: New file.
16588         * tests/unigbrk/test-u16-grapheme-next.c: New file.
16589
16590         New module 'u32-grapheme-next'.
16591         * modules/unigbrk/u32-grapheme-next: New file.
16592         * modules/unigbrk/u32-grapheme-next-tests: New file.
16593         * lib/unigbrk.in.h: Add prototype for new function.
16594         * lib/unigbrk/u32-grapheme-next.c: New file.
16595         * tests/unigbrk/test-u32-grapheme-next.c: New file.
16596
16597         New module 'u8-grapheme-prev'.
16598         * modules/unigbrk/u8-grapheme-prev: New file.
16599         * modules/unigbrk/u8-grapheme-prev-tests: New file.
16600         * lib/unigbrk.in.h: Add prototype for new function.
16601         * lib/unigbrk/u8-grapheme-prev.c: New file.
16602         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
16603
16604         New module 'u16-grapheme-prev'.
16605         * modules/unigbrk/u16-grapheme-prev: New file.
16606         * modules/unigbrk/u16-grapheme-prev-tests: New file.
16607         * lib/unigbrk.in.h: Add prototype for new function.
16608         * lib/unigbrk/u16-grapheme-prev.c: New file.
16609         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
16610
16611         New module 'u32-grapheme-prev'.
16612         * modules/unigbrk/u32-grapheme-prev: New file.
16613         * modules/unigbrk/u32-grapheme-prev-tests: New file.
16614         * lib/unigbrk.in.h: Add prototype for new function.
16615         * lib/unigbrk/u32-grapheme-prev.c: New file.
16616         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
16617
16618         New module 'u8-grapheme-breaks'.
16619         * modules/unigbrk/u8-grapheme-breaks: New file.
16620         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
16621         * lib/unigbrk.in.h: Add prototype for new function.
16622         * lib/unigbrk/u8-grapheme-breaks.c: New file.
16623         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
16624
16625         New module 'u16-grapheme-breaks'.
16626         * modules/unigbrk/u16-grapheme-breaks: New file.
16627         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
16628         * lib/unigbrk.in.h: Add prototype for new function.
16629         * lib/unigbrk/u16-grapheme-breaks.c: New file.
16630         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
16631
16632         New module 'u32-grapheme-breaks'.
16633         * modules/unigbrk/u32-grapheme-breaks: New file.
16634         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
16635         * lib/unigbrk.in.h: Add prototype for new function.
16636         * lib/unigbrk/u32-grapheme-breaks.c: New file.
16637         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
16638
16639         New module 'ulc-grapheme-breaks'.
16640         * modules/unigbrk/ulc-grapheme-breaks: New file.
16641         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
16642         * m4/locale-ar.m4: New file.
16643         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
16644         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
16645         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
16646
16647 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
16648
16649         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
16650         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
16651         modified how this file was generated before I initially submitted
16652         the module, but failed to regenerate it.  This meant that several
16653         of the level2 entries were wrong.
16654         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
16655         Remove the division-by-2 that is folded into the table now that
16656         gbrkprop.h has been regenerated properly.  Now -1 entries are
16657         handled correctly.
16658
16659         New module 'unigbrk/uc-gbrk-prop-tests'.
16660         * modules/unigbrk/uc-gbrk-prop-tests: New file.
16661         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
16662         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
16663         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
16664
16665 2011-01-01  Bruno Haible  <bruno@clisp.org>
16666
16667         Avoid use of hexadecimal escapes.
16668         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
16669         instead of hexadecimal escapes.
16670
16671 2011-01-01  Jim Meyering  <meyering@redhat.com>
16672
16673         maint: new rule to update copyright year ranges
16674         * Makefile (update-copyright): New rule.
16675
16676         maint: indent with TABs in Makefile
16677         * Makefile: Expand leading sequences of spaces to TABs
16678
16679         version-etc: update the copyright year it reports
16680         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
16681
16682 2010-12-31  Bruno Haible  <bruno@clisp.org>
16683
16684         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
16685         * lib/isfinite.c (zerof, zerod, zerol): New variables.
16686         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
16687         zero.
16688
16689 2010-12-31  Bruno Haible  <bruno@clisp.org>
16690
16691         pwrite: Work around HP-UX 11.11 bug.
16692         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
16693         works and set REPLACE_PWRITE if not.
16694         * lib/pwrite.c (pwrite): Add an implementation that uses the system
16695         function.
16696         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
16697
16698 2010-12-31  Bruno Haible  <bruno@clisp.org>
16699
16700         pread: Work around HP-UX 11 bugs.
16701         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
16702         and set REPLACE_PREAD if not.
16703         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
16704
16705 2010-12-31  Eric Blake  <eblake@redhat.com>
16706
16707         nl_langinfo: fix YESEXPR on Irix 6.5
16708         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
16709         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
16710         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
16711         it.
16712
16713 2010-12-31  Bruno Haible  <bruno@clisp.org>
16714
16715         iconv: Document HP-UX 11 bug.
16716         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
16717
16718 2010-12-31  Bruno Haible  <bruno@clisp.org>
16719
16720         ldexpl: Fix link error on HP-UX 11.
16721         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
16722         LDEXPL_LIBM, using $ISNANL_LIBM.
16723
16724 2010-12-31  Eric Blake  <eblake@redhat.com>
16725
16726         ftello: avoid compilation failure with SunStudio c89
16727         * lib/ftello.c (ftello): Use lseek, not llseek.
16728
16729         tests: avoid failing coreutils tests on cygwin
16730         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
16731         (create_exe_shims_): Return 0 when skipping.
16732
16733 2010-12-31  Bruno Haible  <bruno@clisp.org>
16734
16735         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
16736         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
16737
16738 2010-12-31  Bruno Haible  <bruno@clisp.org>
16739
16740         waitpid: Fix link error in C++ mode.
16741         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
16742
16743 2010-12-31  Bruno Haible  <bruno@clisp.org>
16744
16745         isnan: Use GCC built-ins when possible.
16746         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
16747         __builtin_isnan.
16748         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
16749         (isnan): Define using GCC built-ins for GCC >= 4.0.
16750
16751 2010-12-31  Bruno Haible  <bruno@clisp.org>
16752
16753         isnand: Fix mistake.
16754         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
16755         __builtin_isnand.
16756
16757 2010-12-31  Bruno Haible  <bruno@clisp.org>
16758
16759         open: Avoid C++ error on HP-UX 11.
16760         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
16761
16762 2010-12-31  Bruno Haible  <bruno@clisp.org>
16763
16764         time_r: Add missing declarations on HP-UX 11.
16765         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
16766         instead of HAVE_LOCALTIME_R.
16767         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
16768         HAVE_LOCALTIME_R always.
16769         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
16770         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
16771         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
16772         HAVE_LOCALTIME_R.
16773         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
16774         * doc/posix-functions/localtime_r.texi: Likewise.
16775
16776 2010-12-29  Eric Blake  <eblake@redhat.com>
16777
16778         mountlist: tweak previous commit
16779         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
16780         Reported by Paul Eggert.
16781
16782         mountlist: fix local drive detection on cygwin
16783         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
16784         that works for cygwin.
16785
16786 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
16787
16788         ftoastr, snprintf: ftoastr + snprintf module
16789         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
16790         since the snprintf module now should be good enough here.
16791         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
16792         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
16793         and gl_MODULE_INDICATOR([snprintf]), but the former enables
16794         GNULIB_SNPRINTF only for the test directory, and the latter
16795         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
16796         seems to suffice by itself.
16797
16798 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
16799
16800         alloca: one step towards thread-safety
16801         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
16802         need for a static variable.  All callers changed.  This does not
16803         make the alloca replacement thread-safe, but it's one step.
16804
16805         tests: minor indenting change
16806         * tests/init.sh: Sync from coreutils housekeeping patch
16807         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
16808         to keep lines within 80 columns.
16809
16810 2010-12-28  Jim Meyering  <meyering@redhat.com>
16811
16812         regex: don't infloop on persistent failing calloc
16813         * lib/regexec.c (build_trtable): Return failure indication upon
16814         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
16815         In glibc, this was fixed for version 2.13:
16816         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
16817
16818 2010-12-28  Bruno Haible  <bruno@clisp.org>
16819             Paul Eggert <eggert@cs.ucla.edu>
16820
16821         linkat: Make implementation robust against system behaviour variations.
16822         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
16823         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
16824         way, and to -2 if it needs a generic runtime test.
16825         * lib/linkat.c (solaris_optimized_link_immediate,
16826         solaris_optimized_link_follow): New functions.
16827         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
16828         (check_same_link): Use it.
16829
16830 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
16831
16832         New module 'unigbrk/base'.
16833         * modules/unigbrk/base: New file.
16834         * lib/unigbrk.in.h: New file.
16835
16836         New module 'unigbrk/uc-gbrk-prop'.
16837         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
16838         * modules/unigbrk/uc-gbrk-prop: New file.
16839         * lib/unigbrk/gbrkprop.h: New file.
16840         * lib/unigbrk/uc-gbrk-prop.c: New file.
16841
16842         New module 'unigbrk/uc-is-grapheme-break'.
16843         * modules/unigbrk/uc-is-grapheme-break: New file.
16844         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
16845         * lib/unigbrk/uc-is-grapheme-break.c: New file.
16846         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
16847         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
16848         * tests/unigbrk/GraphemeBreakTest.txt: New file.
16849
16850         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
16851
16852 2010-12-27  Bruno Haible  <bruno@clisp.org>
16853
16854         linkat test: Avoid failure on Solaris 11 2010-11.
16855         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
16856
16857 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
16858
16859         utimens: work around glibc rounding bug on more platforms
16860         * lib/utimens.c (fdutimens): Work around rounding bug even if
16861         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
16862         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
16863
16864 2010-12-27  Bruno Haible  <bruno@clisp.org>
16865
16866         select tests: Improve comments.
16867         * tests/test-select.c (do_select): Add comments.
16868
16869 2010-12-27  Bruno Haible  <bruno@clisp.org>
16870
16871         select tests: Safer way of handling timeout.
16872         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
16873         at every invocation.
16874
16875 2010-12-27  Bruno Haible  <bruno@clisp.org>
16876
16877         select tests: Use 'bool' where appropriate.
16878         * tests/test-select.c (connect_to_socket): Change argument type to
16879         'bool'.
16880
16881 2010-12-27  Bruno Haible  <bruno@clisp.org>
16882
16883         select tests: Use existing modules.
16884         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
16885         (configure.ac): Don't test for unistd.h.
16886         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
16887         declared in <unistd.h>.
16888
16889 2010-12-27  Bruno Haible  <bruno@clisp.org>
16890
16891         mbrtowc: Work around a Solaris 7 bug.
16892         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
16893         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
16894         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
16895         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
16896         MBRTOWC_NULL_ARG1_BUG.
16897         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
16898         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
16899         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
16900         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
16901
16902 2010-12-27  Jim Meyering  <meyering@redhat.com>
16903
16904         read-file.c: tweak syntax
16905         * lib/read-file.c (fread_file): Remove space after "*" in function
16906         definitions.
16907
16908 2010-12-27  Bruno Haible  <bruno@clisp.org>
16909
16910         times test: Avoid gcc warnings on OSF/1.
16911         * tests/test-times.c (main): Cast printf arguments from clock_t to
16912         'long int'.
16913
16914 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
16915
16916         utimens: work around glibc rounding bug on older Linux kernels
16917         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
16918         on Linux with a glibc whose utimes might not work, then work
16919         around a longstanding glibc bug involving rounding rather than
16920         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
16921         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
16922
16923 2010-12-26  Bruno Haible  <bruno@clisp.org>
16924
16925         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
16926         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
16927         _GL_CXXALIAS_SYS.
16928         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16929
16930 2010-12-26  Bruno Haible  <bruno@clisp.org>
16931
16932         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
16933         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
16934         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
16935         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
16936         looking for the declaration.
16937         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
16938         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
16939         problem.
16940         * doc/posix-functions/inet_pton.texi: Likewise.
16941
16942 2010-12-26  Bruno Haible  <bruno@clisp.org>
16943
16944         arpa_inet: Use the common idioms with C++ support.
16945         * lib/arpa_inet.in.h: Include c++defs.h.
16946         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
16947         support.
16948         * modules/arpa_inet (Depends-on): Add c++defs.
16949         (Makefile.am): Substitute the contents of c++defs.h.
16950         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
16951         * modules/arpa_inet-c++-tests: New file.
16952         * tests/test-arpa_inet-c++.cc: New file.
16953
16954 2010-12-25  Bruno Haible  <bruno@clisp.org>
16955
16956         Fix more C++ link errors on Solaris 8.
16957         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
16958         $(LIB_EACCESS).
16959         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
16960         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
16961         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
16962         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
16963         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
16964
16965 2010-12-25  Bruno Haible  <bruno@clisp.org>
16966
16967         printf-posix: Fix link error when a non-GCC compiler is used.
16968         * lib/stdio.in.h (printf): When not using GCC, override printf
16969         correctly.
16970         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16971
16972 2010-12-25  Bruno Haible  <bruno@clisp.org>
16973
16974         strerror_r-posix: Update doc.
16975         * doc/posix-functions/strerror_r.texi: Update doc about the return
16976         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
16977
16978 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
16979
16980         utimens: simplify the logic of the previous change
16981         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
16982         This should not affect whether the test succeeds or fails.
16983
16984         utimens: configure better on hosts with NFS clock skew
16985         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
16986         uses the clock of the local host.  It might use the clock of the
16987         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
16988         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
16989
16990 2010-12-25  Bruno Haible  <bruno@clisp.org>
16991
16992         ptsname test: Avoid failure on Solaris.
16993         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
16994         open a pseudo-terminal; don't use BSD-style ptys.
16995         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
16996
16997 2010-12-25  Bruno Haible  <bruno@clisp.org>
16998
16999         ptsname: Avoid ERANGE failure on some systems.
17000         * lib/ptsname.c (buffer): Increase size.
17001
17002 2010-12-25  Bruno Haible  <bruno@clisp.org>
17003
17004         rename, renameat: Avoid test failures at NFS mounted locations.
17005         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
17006         so that subsequent mkdir calls succeed.
17007
17008 2010-12-25  Bruno Haible  <bruno@clisp.org>
17009
17010         iswblank: Fix C++ link error on Solaris 8.
17011         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
17012         _GL_FUNCDECL_SYS.
17013
17014 2010-12-25  Bruno Haible  <bruno@clisp.org>
17015
17016         unistd: Fix C++ link error on Solaris 8.
17017         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
17018
17019 2010-12-25  Bruno Haible  <bruno@clisp.org>
17020
17021         readlink doc: Mention an old glibc bug.
17022         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
17023
17024 2010-12-25  Bruno Haible  <bruno@clisp.org>
17025
17026         fcntl-h: Fix for use of C++ on glibc systems.
17027         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
17028         also on glibc systems in C++ mode.
17029         Reported by Gary V. Vaughan <gary@gnu.org>.
17030
17031 2010-12-25  Bruno Haible  <bruno@clisp.org>
17032
17033         roundl-ieee: Make it work on OSF/1 5.1 with cc.
17034         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
17035
17036 2010-12-25  Bruno Haible  <bruno@clisp.org>
17037
17038         truncl-ieee: Make it work on OSF/1 5.1 with cc.
17039         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
17040         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
17041         test whether truncl works according to ISO C 99 with IEC 60559.
17042         * m4/truncl-ieee.m4: New file.
17043         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
17044         m4/signbit.m4.
17045         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
17046
17047 2010-12-25  Bruno Haible  <bruno@clisp.org>
17048
17049         ceill-ieee: Make it work on OSF/1 5.1 with cc.
17050         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
17051         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
17052         test whether ceill works according to ISO C 99 with IEC 60559.
17053         * m4/ceill-ieee.m4: New file.
17054         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
17055         m4/signbit.m4.
17056         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
17057
17058 2010-12-25  Bruno Haible  <bruno@clisp.org>
17059
17060         Ensure all prerequisites of <wchar.h> are included.
17061         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
17062         before <wchar.h>.
17063         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
17064         gl_MBRLEN_NUL_RETVAL): Likewise.
17065         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
17066         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
17067         AC_FUNC_MBRTOWC): Likewise.
17068         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
17069         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
17070         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
17071         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
17072         Likewise.
17073         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
17074         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
17075         (gl_WCHAR_H): Improve comments.
17076         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
17077
17078 2010-12-25  Bruno Haible  <bruno@clisp.org>
17079
17080         strtok_r: Fix C syntax error in autoconf macro.
17081         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
17082         characters in test program.
17083
17084 2010-12-24  Bruno Haible  <bruno@clisp.org>
17085
17086         ceil, trunc, round: Fix gcc warnings.
17087         * lib/ceil.c (MIN): Undefine before redefining.
17088         * lib/trunc.c (MIN): Likewise.
17089         * lib/round.c (MIN): Likewise.
17090         Include <math.h> first.
17091
17092 2010-12-24  Bruno Haible  <bruno@clisp.org>
17093
17094         select tests: Avoid failures on OSF/1 5.1.
17095         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
17096         failure of closing the last socket; it may fail with ECONNRESET.
17097
17098 2010-12-24  Eric Blake  <eblake@redhat.com>
17099
17100         stdint: avoid HP-UX 10.20 preprocessor bug
17101         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
17102         than #if.
17103         * tests/test-floor2.c (main): Likewise.
17104         Reported by Peter O'Gorman.
17105
17106         pipe: make obsoletion transition easier
17107         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
17108         * modules/pipe (Files): Include revived file.
17109         (Include): Drop reference, to mirror getdate's behavior.
17110
17111 2010-12-24  Bruno Haible  <bruno@clisp.org>
17112
17113         sys_socket: Hide mismatch of declarations on NonStop Kernel.
17114         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
17115         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
17116         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17117
17118 2010-12-24  Bruno Haible  <bruno@clisp.org>
17119
17120         gethostname: Ensure declaration on NonStop Kernel.
17121         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
17122         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17123
17124 2010-12-24  Bruno Haible  <bruno@clisp.org>
17125
17126         sys_select: Ensure all necessary types on NonStop Kernel.
17127         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
17128         include <sys/time.h>.
17129         * doc/posix-headers/sys_select.texi: Mention that it's missing on
17130         NonStop Kernel.
17131         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17132
17133 2010-12-24  Bruno Haible  <bruno@clisp.org>
17134
17135         sys_select: Remove unneeded include.
17136         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
17137         have <sys/select.h>.
17138
17139 2010-12-24  Bruno Haible  <bruno@clisp.org>
17140
17141         gethostname: Provide a fallback for HOST_NAME_MAX.
17142         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
17143         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
17144         instead.
17145         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17146
17147 2010-12-24  Bruno Haible  <bruno@clisp.org>
17148
17149         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
17150         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
17151         (SA_RESTART): Likewise.
17152         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17153
17154 2010-12-24  Bruno Haible  <bruno@clisp.org>
17155
17156         signal: Define NSIG.
17157         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
17158         * tests/test-signal.c (nsig): New variable.
17159         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17160
17161 2010-12-24  Bruno Haible  <bruno@clisp.org>
17162
17163         rename, renameat: Avoid test failures on OSF/1 5.1.
17164         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
17165         alternative error codes.
17166         * tests/test-renameat.c (main): Likewise.
17167
17168 2010-12-24  Bruno Haible  <bruno@clisp.org>
17169
17170         *printf: Detect large precisions bug on Solaris 10/SPARC.
17171         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
17172         by Paul Eggert.
17173         * tests/test-snprintf-posix.h (test_function): Add this test code here
17174         too.
17175         * tests/test-sprintf-posix.h (test_function): Likewise.
17176         * tests/test-vasnprintf-posix.c (test_function): Likewise.
17177         * tests/test-vasprintf-posix.c (test_function): Likewise.
17178         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
17179         around by gnulib.
17180         * doc/posix-functions/printf.texi: Likewise.
17181         * doc/posix-functions/snprintf.texi: Likewise.
17182         * doc/posix-functions/sprintf.texi: Likewise.
17183         * doc/posix-functions/vfprintf.texi: Likewise.
17184         * doc/posix-functions/vprintf.texi: Likewise.
17185         * doc/posix-functions/vsnprintf.texi: Likewise.
17186         * doc/posix-functions/vsprintf.texi: Likewise.
17187         * doc/posix-functions/dprintf.texi: Undo last commit.
17188         * doc/posix-functions/vdprintf.texi: Likewise.
17189
17190 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
17191
17192         tests: port test-fdutimensat.c to Solaris 8
17193         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
17194         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
17195         On Solaris 8, it fails with errno == ENOSYS, because there is no
17196         futimens (so it can't use the fd), and there is no lutimens (so it
17197         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
17198
17199         vsnprintf: make more consistent with snprintf; doc fixes
17200
17201         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
17202         the byte count return problem was promoted from the snprintf-posix
17203         to the snprintf module.
17204         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
17205         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
17206         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
17207         * tests/test-snprintf.c (main): Check the byte count returned.
17208         * tests/test-vsnprintf.c (main): Likewise.
17209
17210 2010-12-23  Eric Blake  <eblake@redhat.com>
17211
17212         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
17213         * modules/sigpipe (License): Relax license.
17214
17215 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
17216
17217         doc: document Solaris printf bug with large float precisions
17218         * doc/posix-functions/dprintf.texi (dprintf):
17219         * doc/posix-functions/fprintf.texi (fprintf):
17220         * doc/posix-functions/printf.texi (printf):
17221         * doc/posix-functions/snprintf.texi (snprintf):
17222         * doc/posix-functions/sprintf.texi (sprintf):
17223         * doc/posix-functions/vdprintf.texi (vdprintf):
17224         * doc/posix-functions/vfprintf.texi (vfprintf):
17225         * doc/posix-functions/vprintf.texi (vprintf):
17226         * doc/posix-functions/vsnprintf.texi (vsnprintf):
17227         * doc/posix-functions/vsprintf.texi (vsprintf):
17228         Mention that these functions mishandle large floating point
17229         precisions on Solaris 10.  The same bug is also present in Solaris
17230         8, and I assume earlier.  This causes "cd gnulib-tests; make
17231         check" to fail on Solaris 8 (and I assume, later) when building
17232         the latest coreutils, in test-vasprintf-posix's call to
17233         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
17234         the wide flavors (e.g., wprintf) so this patch just updates the
17235         documentation for the narrow ones.
17236
17237         test-posixtm.c: add two tests
17238         * tests/test-posixtm.c: Add two tests, to highlight the
17239         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
17240         around this bug; this is merely to document it.
17241
17242 2010-12-22  Bruno Haible  <bruno@clisp.org>
17243
17244         getlogin_r: Work around portability problem on OSF/1.
17245         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
17246         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
17247         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
17248         test for a truncated result.
17249         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
17250         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
17251         * modules/getlogin_r (Depends-on): Add memchr.
17252         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
17253
17254 2010-12-22  Bruno Haible  <bruno@clisp.org>
17255
17256         ptsname: Avoid test failure on OSF/1 5.1.
17257         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
17258         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
17259         (same_slave): New function.
17260         (main): Use it to compare ptsname's result with the expected file name.
17261
17262 2010-12-22  Bruno Haible  <bruno@clisp.org>
17263
17264         Port extended stdio modules to HP NonStop Kernel.
17265         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
17266         macros.
17267         * lib/fbufmode.c: Update comments.
17268         * lib/fflush.c: Likewise.
17269         * lib/fpurge.c: Likewise.
17270         * lib/freadable.c: Likewise.
17271         * lib/freadahead.c: Likewise.
17272         * lib/freading.c: Likewise.
17273         * lib/freadptr.c: Likewise.
17274         * lib/freadseek.c: Likewise.
17275         * lib/fseeko.c: Likewise.
17276         * lib/fseterr.c: Likewise.
17277         * lib/fwritable.c: Likewise.
17278         * lib/fwriting.c: Likewise.
17279         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17280
17281 2010-12-22  Bruno Haible  <bruno@clisp.org>
17282
17283         ttyname_r: Work around bug on OSF/1 5.1.
17284         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
17285         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
17286         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
17287         present.
17288         * lib/ttyname_r.c (ttyname_r): Update comments.
17289
17290 2010-12-22  Bruno Haible  <bruno@clisp.org>
17291
17292         round: Implement result sign according to IEEE 754.
17293         * lib/round.c (MIN, MINUS_ZERO): New macros.
17294         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
17295         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
17296         * tests/test-round-ieee.c (main): Likewise.
17297         * tests/test-roundl-ieee.c (main): Likewise.
17298
17299         trunc: Implement result sign according to IEEE 754.
17300         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
17301         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
17302         * tests/test-trunc2.c: Include minus-zero.h.
17303         (MINUS_ZERO): New macro.
17304         (trunc_reference): Keep in sync with lib/trunc.c.
17305         * tests/test-truncf2.c: Include minus-zero.h.
17306         (MINUS_ZERO): New macro.
17307         (truncf_reference): Keep in sync with lib/trunc.c.
17308         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
17309         * tests/test-trunc-ieee.c (main): Likewise.
17310         * tests/test-truncl-ieee.c (main): Likewise.
17311
17312         ceil: Implement result sign according to IEEE 754.
17313         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
17314         (FUNC): Return -0.0 for -1 < x < 0.
17315         * tests/test-ceil2.c: Include minus-zero.h.
17316         (MINUS_ZERO): New macro.
17317         (ceil_reference): Keep in sync with lib/ceil.c.
17318         * tests/test-ceilf2.c: Include minus-zero.h.
17319         (MINUS_ZERO): New macro.
17320         (ceilf_reference): Keep in sync with lib/ceil.c.
17321         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
17322         * tests/test-ceil-ieee.c (main): Likewise.
17323         * tests/test-ceill-ieee.c (main): Likewise.
17324
17325         floor: Implement result sign according to IEEE 754.
17326         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
17327         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
17328         * tests/test-floorf2.c (floorf_reference): Likewise.
17329         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
17330         * tests/test-floor-ieee.c (main): Likewise.
17331         * tests/test-floorl-ieee.c (main): Likewise.
17332
17333 2010-12-22  Bruno Haible  <bruno@clisp.org>
17334
17335         getaddrinfo: Update doc.
17336         * doc/posix-functions/gai_strerror.texi: Return type is also different
17337         on AIX and HP-UX.
17338
17339 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
17340
17341         getaddrinfo, inet_ntop: Update doc for Solaris.
17342         * doc/posix-functions/gai_strerror.texi: Return type is also an
17343         issue on Solaris 9 and earlier.
17344         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
17345         on Solaris 10 and earlier.
17346
17347 2010-12-21  Bruno Haible  <bruno@clisp.org>
17348
17349         New module 'roundl-ieee'.
17350         * modules/roundl-ieee: New file.
17351         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
17352         test whether roundl works according to ISO C 99 with IEC 60559.
17353         * m4/roundl-ieee.m4: New file.
17354         * modules/roundl-ieee-tests: New file.
17355         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
17356         * tests/test-roundl.c (main): Remove signbit tests.
17357         * modules/roundl-tests (Depends-on): Remove signbit.
17358         * doc/posix-functions/roundl.texi: Mention the new module.
17359
17360 2010-12-21  Bruno Haible  <bruno@clisp.org>
17361
17362         New module 'truncl-ieee'.
17363         * modules/truncl-ieee: New file.
17364         * modules/truncl-ieee-tests: New file.
17365         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
17366         * tests/test-truncl.c (main): Remove signbit tests.
17367         * modules/truncl-tests (Depends-on): Remove signbit.
17368         * doc/posix-functions/truncl.texi: Mention the new module.
17369
17370 2010-12-21  Bruno Haible  <bruno@clisp.org>
17371
17372         New module 'ceill-ieee'.
17373         * modules/ceill-ieee: New file.
17374         * modules/ceill-ieee-tests: New file.
17375         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
17376         * tests/test-ceill.c (main): Remove signbit tests.
17377         * modules/ceill-tests (Depends-on): Remove signbit.
17378         * doc/posix-functions/ceill.texi: Mention the new module.
17379
17380 2010-12-21  Bruno Haible  <bruno@clisp.org>
17381
17382         New module 'floorl-ieee'.
17383         * modules/floorl-ieee: New file.
17384         * modules/floorl-ieee-tests: New file.
17385         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
17386         * tests/test-floorl.c (main): Remove signbit tests.
17387         * modules/floorl-tests (Depends-on): Remove signbit.
17388         * doc/posix-functions/floorl.texi: Mention the new module.
17389
17390 2010-12-21  Bruno Haible  <bruno@clisp.org>
17391
17392         New module 'round-ieee'.
17393         * modules/round-ieee: New file.
17394         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
17395         whether round works according to ISO C 99 with IEC 60559.
17396         * m4/round-ieee.m4: New file.
17397         * modules/round-ieee-tests: New file.
17398         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
17399         * tests/test-round1.c (main): Remove signbit tests.
17400         * modules/round-tests (Depends-on): Remove 'signbit'.
17401         * doc/posix-functions/round.texi: Mention the new module.
17402
17403 2010-12-21  Bruno Haible  <bruno@clisp.org>
17404
17405         New module 'trunc-ieee'.
17406         * modules/trunc-ieee: New file.
17407         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
17408         whether trunc works according to ISO C 99 with IEC 60559.
17409         * m4/trunc-ieee.m4: New file.
17410         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
17411         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
17412         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
17413         * modules/trunc-ieee-tests: New file.
17414         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
17415         * tests/test-trunc1.c (main): Remove signbit tests.
17416         * modules/trunc-tests (Depends-on): Remove 'signbit'.
17417         * doc/posix-functions/trunc.texi: Mention the new module.
17418
17419 2010-12-21  Bruno Haible  <bruno@clisp.org>
17420
17421         New module 'ceil-ieee'.
17422         * modules/ceil-ieee: New file.
17423         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
17424         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
17425         ISO C 99 with IEC 60559.
17426         * m4/ceil-ieee.m4: New file.
17427         * modules/ceil (Files): Add lib/ceil.c.
17428         (Depends-on): Add 'float'.
17429         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
17430         * lib/math.in.h (ceil): New declaration.
17431         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
17432         REPLACE_CEIL.
17433         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
17434         * modules/ceil-ieee-tests: New file.
17435         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
17436         * tests/test-math-c++.cc: Check the signature of 'ceil'.
17437         * doc/posix-functions/ceil.texi: Mention the new module.
17438
17439 2010-12-21  Bruno Haible  <bruno@clisp.org>
17440
17441         New module 'floor-ieee'.
17442         * modules/floor-ieee: New file.
17443         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
17444         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
17445         ISO C 99 with IEC 60559.
17446         * m4/floor-ieee.m4: New file.
17447         * modules/floor (Files): Add lib/floor.c.
17448         (Depends-on): Add 'float'.
17449         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
17450         * lib/math.in.h (floor): New declaration.
17451         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
17452         REPLACE_FLOOR.
17453         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
17454         * modules/floor-ieee-tests: New file.
17455         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
17456         * tests/test-math-c++.cc: Check the signature of 'floor'.
17457         * doc/posix-functions/floor.texi: Mention the new module.
17458
17459 2010-12-21  Bruno Haible  <bruno@clisp.org>
17460
17461         New module 'roundf-ieee'.
17462         * modules/roundf-ieee: New file.
17463         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
17464         test whether roundf works according to ISO C 99 with IEC 60559.
17465         * m4/roundf-ieee.m4: New file.
17466         * modules/roundf-ieee-tests: New file.
17467         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
17468         * tests/test-roundf1.c (main): Remove signbit tests.
17469         * modules/roundf-tests (Depends-on): Remove 'signbit'.
17470         * doc/posix-functions/roundf.texi: Mention the new module.
17471
17472 2010-12-21  Bruno Haible  <bruno@clisp.org>
17473
17474         New module 'truncf-ieee'.
17475         * modules/truncf-ieee: New file.
17476         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
17477         test whether truncf works according to ISO C 99 with IEC 60559.
17478         * m4/truncf-ieee.m4: New file.
17479         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
17480         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
17481         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
17482         * modules/truncf-ieee-tests: New file.
17483         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
17484         * tests/test-truncf1.c (main): Remove signbit tests.
17485         * modules/truncf-tests (Depends-on): Remove 'signbit'.
17486         * doc/posix-functions/truncf.texi: Mention the new module.
17487
17488 2010-12-21  Bruno Haible  <bruno@clisp.org>
17489
17490         New module 'ceilf-ieee'.
17491         * modules/ceilf-ieee: New file.
17492         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
17493         test whether ceilf works according to ISO C 99 with IEC 60559.
17494         * m4/ceilf-ieee.m4: New file.
17495         * modules/ceilf-ieee-tests: New file.
17496         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
17497         * tests/test-ceilf1.c (main): Remove signbit tests.
17498         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
17499         * doc/posix-functions/ceilf.texi: Mention the new module.
17500
17501 2010-12-21  Bruno Haible  <bruno@clisp.org>
17502
17503         New module 'floorf-ieee'.
17504         * modules/floorf-ieee: New file.
17505         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
17506         test whether floorf works according to ISO C 99 with IEC 60559.
17507         * m4/floorf-ieee.m4: New file.
17508         * modules/floorf-ieee-tests: New file.
17509         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
17510         * tests/test-floorf1.c (main): Remove signbit tests.
17511         * modules/floorf-tests (Depends-on): Remove 'signbit'.
17512         * doc/posix-functions/floorf.texi: Mention the new module.
17513
17514 2010-12-21  Bruno Haible  <bruno@clisp.org>
17515
17516         Support for minus zero in autoconf macros.
17517         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
17518         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
17519         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
17520         * tests/minus-zero.h: Update comments.
17521
17522 2010-12-21  Bruno Haible  <bruno@clisp.org>
17523
17524         Tests for module 'ceil'.
17525         * modules/ceil-tests: New file.
17526         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
17527         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
17528
17529 2010-12-21  Bruno Haible  <bruno@clisp.org>
17530
17531         Tests for module 'floor'.
17532         * modules/floor-tests: New file.
17533         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
17534         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
17535
17536 2010-12-21  Bruno Haible  <bruno@clisp.org>
17537
17538         math: Fix indentation.
17539         * lib/math.in.h (floorf): Fix indentation.
17540
17541 2010-12-21  Bruno Haible  <bruno@clisp.org>
17542
17543         Fix cross-compilation guesses on Solaris.
17544         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
17545         not match "solaris2.10".
17546         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
17547         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
17548         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
17549
17550 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
17551
17552         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
17553         This fixes a problem observed with the latest coreutils snapshot
17554         that caused a test to fail on Solaris 8.  src/csplit.c's call
17555         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
17556         earlier, instead of returning the number of bytes that would have
17557         been generated; this causes csplit to incorrectly report memory
17558         exhaustion.
17559         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
17560         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
17561         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
17562         comments to match.
17563         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
17564         Fix typo in matching older versions of Solaris: "solaris2.10"
17565         is matched by the shell pattern "solaris2.[0-9]*".  This matters
17566         only for guessing while cross-compiling.
17567         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
17568
17569 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
17570
17571         ftoastr: fix comment again
17572         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
17573         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
17574         Also, simplify example a bit by using flags = 0.
17575
17576 2010-12-20  Bruno Haible  <bruno@clisp.org>
17577
17578         round*, trunc*: Update documentation regarding glibc.
17579         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
17580         * doc/posix-functions/round.texi: Likewise.
17581         * doc/posix-functions/roundl.texi: Likewise.
17582         * doc/posix-functions/truncf.texi: Likewise.
17583         * doc/posix-functions/trunc.texi: Likewise.
17584         * doc/posix-functions/truncl.texi: Likewise.
17585
17586 2010-12-20  Bruno Haible  <bruno@clisp.org>
17587
17588         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
17589         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
17590         * doc/posix-functions/round.texi: Likewise.
17591         * doc/posix-functions/roundl.texi: Likewise.
17592
17593 2010-12-20  Bruno Haible  <bruno@clisp.org>
17594
17595         ttyname_r: Add missing declaration on HP-UX 11.
17596         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
17597         HAVE_TTYNAME_R.
17598         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
17599         declared. Set HAVE_TTYNAME_R always.
17600         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17601         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
17602         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
17603         HAVE_TTYNAME_R.
17604         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
17605
17606 2010-12-20  Bruno Haible  <bruno@clisp.org>
17607
17608         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
17609         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
17610         * doc/posix-functions/getlogin_r.texi: Likewise.
17611         * tests/test-getlogin.c: Include <errno.h>.
17612         (main): Avoid test failure on HP-UX 11.11.
17613         * tests/test-getlogin_r.c (main): Likewise.
17614
17615 2010-12-20  Bruno Haible  <bruno@clisp.org>
17616
17617         getlogin_r: Add missing declaration on HP-UX 11.
17618         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
17619         declared also when it exists as a function.
17620         * doc/posix-functions/getlogin_r.texi: Document this workaround.
17621
17622 2010-12-20  Bruno Haible  <bruno@clisp.org>
17623
17624         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
17625         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
17626         through wcrtomb.
17627
17628 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
17629
17630         ftoastr: fix comment
17631         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
17632         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
17633
17634 2010-12-19  Bruno Haible  <bruno@clisp.org>
17635
17636         isnan: Ensure it is a macro.
17637         * lib/math.in.h (isnan): Define as a macro if not already a macro.
17638         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
17639         Solaris.
17640
17641 2010-12-19  Bruno Haible  <bruno@clisp.org>
17642
17643         ldexpl test: Fix link error on OSF/1 5.1.
17644         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
17645
17646 2010-12-19  Bruno Haible  <bruno@clisp.org>
17647
17648         wctype: Make it work in C++ mode on OSF/1 5.1.
17649         * lib/wctype.in.h (iswblank): Declare but not define here.
17650         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
17651         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
17652         * modules/wctype (Files): Add lib/iswblank.c.
17653
17654 2010-12-19  Bruno Haible  <bruno@clisp.org>
17655
17656         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
17657         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
17658         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
17659
17660 2010-12-19  Bruno Haible  <bruno@clisp.org>
17661
17662         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
17663         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
17664         _POSIX_PII_SOCKET.
17665         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
17666         * doc/posix-functions/recvfrom.texi: Likewise.
17667         * doc/posix-functions/send.texi: Likewise.
17668         * doc/posix-functions/sendto.texi: Likewise.
17669
17670 2010-12-19  Bruno Haible  <bruno@clisp.org>
17671
17672         tcgetsid: Add missing declaration on OSF/1 5.1.
17673         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
17674         HAVE_TCGETSID.
17675         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
17676         Don't set HAVE_TCGETSID.
17677         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
17678         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
17679         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
17680         HAVE_TCGETSID.
17681         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
17682
17683 2010-12-19  Bruno Haible  <bruno@clisp.org>
17684
17685         stdio: Fix problem with popen() declaration on OSF/1 5.1.
17686         * lib/stdio.in.h: During the include_next statement, let recursive
17687         includes of this file include only the system header file.
17688
17689 2010-12-19  Bruno Haible  <bruno@clisp.org>
17690
17691         iconv_open: Fix regression from 2010-12-04.
17692         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
17693         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
17694
17695 2010-12-19  Bruno Haible  <bruno@clisp.org>
17696
17697         stdbool test: Avoid a gcc warning.
17698         * tests/test-stdbool.c (main): Fail if e1 is false.
17699         Reported by Jim Meyering.
17700
17701 2010-12-19  Jim Meyering  <meyering@redhat.com>
17702
17703         setenv: restore to working order
17704         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
17705         mistakenly removed.
17706         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
17707         HAVE_SETENV.
17708         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
17709         HAVE_SETENV.
17710
17711 2010-12-19  Bruno Haible  <bruno@clisp.org>
17712
17713         Document some different function declarations on OSF/1 5.1.
17714         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
17715         * doc/posix-functions/inet_ntop.texi: Likewise.
17716         * doc/posix-functions/gethostname.texi: Likewise.
17717         * lib/unistd.in.h (gethostname): Update comment.
17718
17719 2010-12-19  Bruno Haible  <bruno@clisp.org>
17720
17721         doc: Mention vasprintf-posix module.
17722         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
17723         the 'vasprintf-posix' module.
17724         * doc/glibc-functions/vasprintf.texi: Likewise.
17725
17726 2010-12-19  Bruno Haible  <bruno@clisp.org>
17727
17728         unsetenv: Add missing declaration on OSF/1 5.1.
17729         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
17730         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
17731         Don't set HAVE_UNSETENV. In the test program, set _BSD.
17732         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
17733         not HAVE_UNSETENV.
17734         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
17735         HAVE_UNSETENV.
17736         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
17737
17738 2010-12-19  Bruno Haible  <bruno@clisp.org>
17739
17740         setenv: Add missing declaration on OSF/1 5.1.
17741         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
17742         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
17743         declared. Don't set HAVE_SETENV.
17744         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
17745         not HAVE_SETENV.
17746         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
17747         HAVE_SETENV.
17748         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
17749
17750 2010-12-19  Bruno Haible  <bruno@clisp.org>
17751
17752         nl_langinfo tests: Avoid gcc warning.
17753         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
17754
17755 2010-12-19  Bruno Haible  <bruno@clisp.org>
17756
17757         mknod: Avoid error in C++ mode on OSF/1 with GCC.
17758         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
17759         _GL_CXXALIAS_SYS.
17760
17761 2010-12-19  Bruno Haible  <bruno@clisp.org>
17762
17763         stdbool: Relax test.
17764         * tests/test-stdbool.c (e): Don't require that casts from a variable's
17765         address to 'bool' work in static initializer, for compilers other than
17766         GCC.
17767
17768 2010-12-19  Bruno Haible  <bruno@clisp.org>
17769
17770         ftello: Add missing declaration on OSF/1 5.1.
17771         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
17772         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
17773         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
17774         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
17775         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
17776
17777 2010-12-19  Bruno Haible  <bruno@clisp.org>
17778
17779         fseeko: Add missing declaration on OSF/1 5.1.
17780         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
17781         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
17782         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
17783         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
17784         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
17785
17786 2010-12-19  Bruno Haible  <bruno@clisp.org>
17787
17788         fchdir: Add missing declaration on OSF/1 5.1.
17789         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
17790         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
17791         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
17792         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
17793         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
17794
17795 2010-12-19  Bruno Haible  <bruno@clisp.org>
17796
17797         relocatable-prog-wrapper: Separate from relocatable-prog.
17798         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
17799         uninstall-relocwrapper rule here.
17800         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
17801         Reported by Ian Beckwith <ianb@erislabs.net>.
17802
17803 2010-12-19  Bruno Haible  <bruno@clisp.org>
17804
17805         unistr/u8-mbsnlen: Add missing dependency.
17806         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
17807         Reported by Ian Beckwith <ianb@erislabs.net>.
17808
17809 2010-12-19  Bruno Haible  <bruno@clisp.org>
17810
17811         iconv: Make it possible again to use this module without 'iconv-h'.
17812         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
17813         if it is not defined.
17814         Reported by Ian Beckwith <ianb@erislabs.net>.
17815
17816 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
17817
17818         acl: port to Solaris 8 when copying from tmpfs to ufs
17819         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
17820         error number.  Problem observed on Solaris 8 with latest
17821         coreutils, with "mv A B", where A is on a tmpfs file system and B
17822         is on a ufs file system.  This caused coreutils' mv/part-symlink
17823         test to fail.
17824
17825         tests: set fail=0 at start
17826         * tests/init.sh (setup_): Move fail=0 initialization here ...
17827         (mktempd_): ... from here, so that tests can rely on fail being
17828         set to 0 initially.  This fixes a problem in coreutils; see:
17829         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
17830
17831 2010-12-18  Bruno Haible  <bruno@clisp.org>
17832
17833         memmem-simple: Stylistic changes.
17834         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
17835         Fix preprocessor directive indentation.
17836
17837 2010-12-15  Pádraig Brady <P@draigBrady.com>
17838
17839         memmem, memmem-simple: reorganize and expand empty needle check
17840         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
17841         functional checks to memmem-simple so that one has a fully functional
17842         memmem by using just this module.
17843         Restrict the performance only check to the memmem module.
17844         Also expand the empty needle check to ensure the correct
17845         pointer is returned, not just a non NULL pointer.
17846         * doc/glibc-functions/memmem.texi: Rearrange the portability
17847         documentation to correlate with the rearranged checks.
17848         Clarify exactly how the memmem and memmem-simple modules
17849         relate to each other.
17850
17851 2010-12-15  Pádraig Brady <P@draigBrady.com>
17852             Bruno Haible  <bruno@clisp.org>
17853
17854         Improve cross-compilation guesses for uClibc.
17855         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
17856         that uClibc does not have the glibc bug.
17857         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
17858         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
17859
17860 2010-12-14  Eric Blake  <eblake@redhat.com>
17861
17862         configmake: provide fallbacks for oldest supported autotools
17863         * m4/configmake.m4: New file.
17864         * modules/configmake (Files): Ship it.
17865         (configure.ac): Use it to guarantee fallbacks.
17866
17867 2010-12-13  Pádraig Brady <P@draigBrady.com>
17868
17869         read-file: Improve handling of large files
17870         * lib/read-file.c (fread_file): Minimize realloc()s
17871         for regular files, and better manage sizes around SIZE_MAX.
17872
17873 2010-12-13  Eric Blake  <eblake@redhat.com>
17874
17875         cloexec, fcntl: relax license
17876         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
17877         consent from all contributors.
17878         * modules/fcntl (License): Likewise.
17879
17880 2010-12-10  Bruno Haible  <bruno@clisp.org>
17881
17882         Tests for module 'pipe-posix'.
17883         * modules/pipe-posix-tests: New file.
17884         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
17885
17886 2010-12-10  Bruno Haible  <bruno@clisp.org>
17887
17888         pipe-posix: Make it work in C++ mode.
17889         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
17890         (pipe): Use common idiom, not a macro definition.
17891         * lib/pipe.c: New file.
17892         * m4/pipe.m4: New file.
17893         * modules/pipe-posix (Description): Enhance.
17894         (Files): Add lib/pipe.c, m4/pipe.m4.
17895         (configure.ac): Invoke gl_FUNC_PIPE.
17896         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
17897         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
17898         * tests/test-unistd-c++.cc: Check the signature of pipe.
17899
17900 2010-12-10  Bruno Haible  <bruno@clisp.org>
17901
17902         Rename module 'pipe' to 'spawn-pipe'.
17903         * modules/spawn-pipe: New file, renamed from modules/pipe.
17904         (Files, configure.ac, Makefile.am): Update.
17905         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
17906         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
17907         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
17908         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
17909         "spawn-pipe.h" instead of "pipe.h".
17910         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
17911         to gl_SPAWN_PIPE.
17912         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
17913         (Files, Makefile.am): Update.
17914         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
17915         Update.
17916         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
17917         Include "spawn-pipe.h" instead of "pipe.h".
17918         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
17919         * lib/javacomp.c: Likewise.
17920         * lib/javaversion.c: Likewise.
17921         * lib/pipe-filter-gi.c: Likewise.
17922         * lib/pipe-filter-ii.c: Likewise.
17923         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
17924         * modules/javacomp (Depends-on): Likewise.
17925         * modules/javaversion (Depends-on): Likewise.
17926         * modules/pipe-filter-gi (Depends-on): Likewise.
17927         * modules/pipe-filter-ii (Depends-on): Likewise.
17928         * MODULES.html.sh (Executing programs): Update.
17929         * NEWS: Mention the change.
17930
17931 2010-12-10  Eric Blake  <eblake@redhat.com>
17932
17933         pipe-posix: new module
17934         * modules/pipe-posix: New file.
17935         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
17936         (gl_UNISTD_H): Check for declaration.
17937         * modules/unistd (Makefile.am): Substitute it.
17938         * lib/unistd.in.h (pipe): Provide it for mingw.
17939         * doc/posix-functions/pipe.texi (pipe): Update documentation.
17940         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
17941
17942 2010-12-07  Bruno Haible  <bruno@clisp.org>
17943
17944         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
17945         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
17946         u8_strcmp_gnu.
17947         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
17948
17949 2010-12-06  Bruno Haible  <bruno@clisp.org>
17950
17951         Update internal documentation.
17952         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
17953
17954 2010-12-04  Bruno Haible  <bruno@clisp.org>
17955
17956         Put more information about failed tests into the test return codes.
17957         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
17958         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
17959         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
17960         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
17961         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
17962         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
17963         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
17964         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
17965         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
17966         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
17967         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
17968         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
17969         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
17970         * m4/stdint.m4 (gl_STDINT_H): Likewise.
17971         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
17972         returns a bit mask.
17973         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
17974         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
17975         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
17976         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
17977         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
17978         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
17979         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
17980         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
17981         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
17982         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
17983         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
17984         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
17985         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
17986         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
17987         * m4/link.m4 (gl_FUNC_LINK): Likewise.
17988         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
17989         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
17990         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
17991         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
17992         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
17993         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
17994         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
17995         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
17996         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
17997         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
17998         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
17999         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
18000         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
18001         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
18002         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
18003         gl_PRINTF_PRECISION): Likewise.
18004         * m4/regex.m4 (gl_REGEX): Likewise.
18005         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
18006         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
18007         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
18008         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
18009         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
18010         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
18011         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
18012         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
18013         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
18014         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
18015         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
18016         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
18017         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
18018         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
18019         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
18020         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
18021         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
18022         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
18023         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
18024         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
18025         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
18026         enumerated value.
18027         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
18028
18029 2010-12-04  Bruno Haible  <bruno@clisp.org>
18030
18031         Update for Solaris 11 2010-11.
18032         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
18033         Express, released in November 2010.
18034
18035 2010-12-04  Bruno Haible  <bruno@clisp.org>
18036
18037         nproc: Relax license.
18038         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
18039         and Paul Eggert.
18040         Requested by Ludovic Courtès <ludo@gnu.org>.
18041
18042 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
18043
18044         utimecmp: fine-grained src to nearby coarse-grained dest
18045
18046         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
18047         and the source is on a file system with higher-resolution time
18048         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
18049         not work, and the time stamps are close together, the algorithm to
18050         determine the exact resolution from the read-back mtime was buggy:
18051         it had a "!=" where it should have had an "==".  This bug has been
18052         in the code ever since it was introduced to gnulib.
18053         Problem reported by Dan Jacobson in
18054         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
18055
18056 2010-11-30  Bruno Haible  <bruno@clisp.org>
18057
18058         strerror_r-posix: Fix autoconf test.
18059         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
18060
18061 2010-11-28  Bruno Haible  <bruno@clisp.org>
18062             Paul Eggert  <eggert@cs.ucla.edu>
18063
18064         Tests for module 'getdomainname'.
18065         * modules/getdomainname-tests: New file.
18066         * tests/test-getdomainname.c: New file, based on
18067         tests/test-gethostname.c.
18068
18069 2010-11-28  Bruno Haible  <bruno@clisp.org>
18070             Paul Eggert  <eggert@cs.ucla.edu>
18071
18072         getdomainname: Use the system function when possible.
18073         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
18074         (getdomainname): Replace if needed. Provide the declaration if it is
18075         missing. Don't use _GL_CXXALIAS_SYS_CAST.
18076         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
18077         (getdomainname): When the system has getdomainname, call the system
18078         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
18079         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
18080         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
18081         found in libnsl. Look for the declaration also in <netdb.h>. Replace
18082         the function if its second argument is of type 'int' or if it is found
18083         in libnsl.
18084         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
18085         <sys/systeminfo.h> and sysinfo().
18086         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
18087         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18088         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
18089         HAVE_GETDOMAINNAME.
18090         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
18091         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
18092         * doc/glibc-functions/getdomainname.texi: Document the problems with
18093         the getdomainname declaration.
18094
18095 2010-11-28  Bruno Haible  <bruno@clisp.org>
18096
18097         sys_socket: Ensure ss_family field on AIX.
18098         * lib/sys_socket.in.h (ss_family): New macro definition.
18099         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
18100         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
18101         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
18102         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
18103         * modules/sys_socket (Makefile.am): Substitute
18104         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
18105         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
18106
18107 2010-11-27  Bruno Haible  <bruno@clisp.org>
18108
18109         readline: Improve configure output.
18110         * m4/readline.m4 (gl_FUNC_READLINE): Make the
18111         "checking for readline..." result understandable.
18112
18113 2010-11-27  Bruno Haible  <bruno@clisp.org>
18114
18115         *printf-posix: Detect a bug on Solaris 10/x86.
18116         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
18117         for floating-point output.
18118         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
18119         directive.
18120         * tests/test-snprintf-posix.h (test_function): Likewise.
18121         * tests/test-sprintf-posix.h (test_function): Likewise.
18122         * tests/test-vasprintf-posix.c (test_function): Likewise.
18123         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
18124         * doc/posix-functions/printf.texi: Likewise.
18125         * doc/posix-functions/snprintf.texi: Likewise.
18126         * doc/posix-functions/sprintf.texi: Likewise.
18127         * doc/posix-functions/vfprintf.texi: Likewise.
18128         * doc/posix-functions/vprintf.texi: Likewise.
18129         * doc/posix-functions/vsnprintf.texi: Likewise.
18130         * doc/posix-functions/vsprintf.texi: Likewise.
18131         * doc/glibc-functions/obstack_printf.texi: Likewise.
18132         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
18133
18134 2010-11-27  Bruno Haible  <bruno@clisp.org>
18135
18136         Fix link error when module libunistring-optional is in use.
18137         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
18138         * modules/striconveha-tests (Makefile.am): Likewise.
18139
18140 2010-11-27  Bruno Haible  <bruno@clisp.org>
18141
18142         regex: Mention link dependencies.
18143         * modules/regex (Link): New section.
18144         * modules/rpmatch (Link): Likewise.
18145         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
18146
18147 2010-11-27  Bruno Haible  <bruno@clisp.org>
18148
18149         ftoastr: Fix compilation error on Solaris.
18150         * lib/ftoastr.c: Include <config.h>.
18151
18152 2010-11-27  Bruno Haible  <bruno@clisp.org>
18153
18154         getloadavg: Update documentation.
18155         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
18156
18157 2010-11-27  Bruno Haible  <bruno@clisp.org>
18158
18159         sys_socket: Fix test whether the functions are declared.
18160         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
18161         not <sys/select.h>.
18162
18163 2010-11-27  Bruno Haible  <bruno@clisp.org>
18164
18165         getpass: Make sure to get system declaration on some platforms.
18166         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
18167         gl_USE_SYSTEM_EXTENSIONS.
18168         * modules/getpass (Depends-on): Add extensions.
18169
18170 2010-11-26  Bruno Haible  <bruno@clisp.org>
18171
18172         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
18173         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
18174         'iconv' module is present.
18175         (ICONV_CONST): New macro.
18176         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
18177         ICONV_CONST.
18178         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
18179         set ICONV_CONST.
18180         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
18181         here.
18182         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
18183         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
18184         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
18185         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
18186         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
18187         present.
18188
18189 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
18190
18191         ftoastr: comment fix
18192         * lib/ftoastr.c: "little" -> "little or no" in comment
18193
18194 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
18195
18196         stdint: port to GCC 4.3 + OSX + Octave
18197         On this platform, stdint.h is buggy and defines int64_t to long
18198         long int.  The replacement defined it to long int, causing
18199         problems with C++ style name mangling.  Instead, trust the system
18200         definition if INT64_MAX is defined, and likewise for the unsigned
18201         variant.   Problem reported by Jarno Rajahalme in
18202         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
18203         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
18204         and don't mess with int64_t and INT64_MAX in this case.
18205         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
18206
18207 2010-11-24  Bruno Haible  <bruno@clisp.org>
18208
18209         doc: Corrections regarding MacOS X 10.4 and 10.5.
18210         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
18211         MacOS X.
18212         Reported by Simon Josefsson.
18213
18214 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
18215
18216         Uninstall ".bin" files installed by relocwrapper.
18217         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
18218         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
18219         unless it is already there.
18220
18221 2010-11-21  Bruno Haible  <bruno@clisp.org>
18222
18223         Update for NetBSD 5.0.
18224         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
18225         NetBSD; the test fails on NetBSD 5.0.
18226         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
18227         about NetBSD.
18228
18229 2010-11-21  Bruno Haible  <bruno@clisp.org>
18230
18231         Update for HP-UX 11.23 and HP-UX 11.31.
18232         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
18233         HP-UX.
18234
18235 2010-11-21  Bruno Haible  <bruno@clisp.org>
18236
18237         Update for MacOS X 10.5.
18238         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
18239         MacOS X; the test fails on MacOS X 10.5.8.
18240         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
18241         about MacOS X.
18242
18243 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
18244
18245         bootstrap: add bootstrap_sync option.
18246         See discussion at
18247         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
18248         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
18249         * build-aux/bootstrap: Accept --bootstrap-sync to update
18250         bootstrap if it is not identical to the local gnulib's
18251         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
18252         enable this by default.  Accept --no-bootstrap-sync to disable
18253         it.
18254
18255 2010-11-20  Bruno Haible  <bruno@clisp.org>
18256
18257         Ensure that <features.h> is included before __GLIBC__ is tested.
18258         * lib/printf-parse.h: Include <features.h>.
18259         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
18260         Reported by Mike Frysinger <vapier@gentoo.org>.
18261
18262         Ensure that <features.h> is included before __GLIBC__ is tested.
18263         * lib/wchar.in.h: Include <features.h>.
18264         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
18265         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
18266         Reported by Mike Frysinger <vapier@gentoo.org>.
18267
18268         Ensure that <features.h> is included before __GLIBC__ is tested.
18269         * lib/arpa_inet.in.h: Include <features.h>.
18270         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
18271         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
18272         Reported by Mike Frysinger <vapier@gentoo.org>.
18273
18274         Ensure that <features.h> is included before __GLIBC__ is tested.
18275         * build-aux/link-warning.h: Include <features.h>.
18276         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
18277         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
18278         Reported by Mike Frysinger <vapier@gentoo.org>.
18279
18280         Ensure that <features.h> is included before __GLIBC__ is tested.
18281         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
18282         Reported by Mike Frysinger <vapier@gentoo.org>.
18283
18284 2010-11-20  Bruno Haible  <bruno@clisp.org>
18285
18286         memmem: Fix autoconf test.
18287         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
18288
18289 2010-11-20  Bruno Haible  <bruno@clisp.org>
18290
18291         Port to uClibc.
18292         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
18293         * lib/fcntl.in.h: Likewise.
18294         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
18295         * lib/mbrtowc.c (mbrtowc): Likewise.
18296         * lib/relocatable.c (find_shared_library_fullname): Likewise.
18297         * lib/strerror_r.c: Likewise.
18298         * lib/unistr/u8-strnlen.c: Likewise.
18299         * lib/vasnprintf.c (decimal_point_char): Likewise.
18300         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
18301         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
18302         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
18303         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
18304         * tests/test-sigaction.c (handler, main): Likewise.
18305         * lib/freading.h: Treat uClibc like a non-glibc platform.
18306         * lib/freading.c: Likewise.
18307         * lib/gettext.h: Likewise.
18308         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
18309         Likewise.
18310         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
18311         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
18312         * lib/propername.c (proper_name_utf8): Likewise.
18313         * lib/spawn.in.h: Likewise.
18314         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
18315         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
18316         mem_cd_iconveh_internal): Likewise.
18317         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
18318         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
18319         strstr, strcasestr): Likewise.
18320         * lib/unicodeio.c (unicode_to_mb): Likewise.
18321         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
18322         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
18323         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
18324         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
18325         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
18326         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
18327         * lib/unistr/u8-stpncpy.c: Likewise.
18328         * lib/vasnprintf.c (VASNPRINTF): Likewise.
18329         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
18330         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
18331         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
18332         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
18333         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
18334         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
18335         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
18336         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
18337         Likewise.
18338         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
18339         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
18340         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
18341         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
18342         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
18343         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
18344         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
18345         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
18346         * tests/test-getopt.h (OPTIND_MIN): Likewise.
18347         * tests/test-striconveha.c (main): Likewise.
18348         * tests/test-vasnprintf-posix.c (test_function): Likewise.
18349         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
18350         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
18351         * doc/posix-functions/getline.texi: Likewise.
18352         Reported by Mike Frysinger <vapier@gentoo.org>.
18353
18354 2010-11-20  Bruno Haible  <bruno@clisp.org>
18355
18356         nproc: Fix condition.
18357         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
18358         HAVE_PTHREAD_AFFINITY_NP.
18359
18360 2010-11-20  Bruno Haible  <bruno@clisp.org>
18361
18362         Fix a comment.
18363         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
18364
18365 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
18366
18367         ftoastr: don't assume snprintf
18368         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
18369         Implement a subset of snprintf here, by using sprintf safely.
18370         * modules/ftoastr (Depends-on): Remove snprintf.
18371
18372 2010-11-19  Jim Meyering  <meyering@redhat.com>
18373
18374         test-rename.h: fix compilation failure
18375         * tests/test-rename.h (test_rename): Add omitted "}".
18376
18377 2010-11-17  Jim Meyering  <meyering@redhat.com>
18378
18379         maint.mk: add a URL discussing the no-@acronym policy
18380         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
18381
18382 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
18383
18384         ftoastr: depend on snprintf, improve comments
18385         * lib/ftoastr.c: Also mention Loitsch's draft.
18386         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
18387         needed in the current implementation, but it might simplify
18388         speeding up the code later.
18389         * modules/ftoastr: Depend on snprintf; this improves portability.
18390         Suggested by Bruno Haible in the same email.
18391
18392         ftoastr: port to hosts lacking strtof and strtold
18393         Problem reported by Bruno Haible in
18394         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
18395         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
18396         environment and strtold (and presumably strtof) are not available.
18397         * modules/ftoastr (Files): Add m4/c-strtod.m4.
18398         (configure.ac): Require gl_C99_STRTOLD.
18399
18400 2010-11-18  Bruno Haible  <bruno@clisp.org>
18401
18402         c-strtold: Avoid link error on AIX 7.
18403         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
18404         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
18405         (gl_C_STRTOLD): Test whether strtold_l exists.
18406         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
18407
18408 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
18409
18410         intprops: new macro INT_BITS_STRLEN_BOUND
18411         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
18412         ftoastr.h.  This exposes an internal of intprops.h that was formerly
18413         not exposed.  Also, it uses a slightly tighter bound than before;
18414         though this makes no practical difference, we might as well be as
18415         tight as we easily can.
18416
18417         ftoastr: new module, for lossless conversion of floats to short strings
18418         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
18419         * modules/ftoastr: New files.
18420
18421 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
18422
18423         bootstrap: port to Solaris sed
18424         * build-aux/bootstrap (get_version): Port to Solaris sed.
18425         See Ralf Wildenhues's note in
18426         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
18427
18428 2010-11-14  Jim Meyering  <meyering@redhat.com>
18429
18430         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
18431         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
18432         and move definition closer to sole use.
18433
18434 2010-11-13  Jim Meyering  <meyering@redhat.com>
18435
18436         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
18437         Now we require at least autoconf-2.59, which means the work-around
18438         is no longer needed.
18439         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
18440         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
18441         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
18442         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
18443         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
18444
18445 2010-11-13  Bruno Haible  <bruno@clisp.org>
18446
18447         rename, renameat: Avoid test failures at NFS mounted locations.
18448         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
18449         functions.
18450         (test_rename): Use assert_nonexistent.
18451         * tests/test-rename.c: Include <dirent.h>.
18452         * tests/test-renameat.c: Likewise.
18453         Reported by Gary V. Vaughan <gary@gnu.org>.
18454
18455         rename, renameat: Document Linux bug with NFS
18456         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
18457         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
18458         * doc/posix-functions/renameat.texi: Likewise.
18459         Suggested by Eric Blake.
18460
18461 2010-11-13  Bruno Haible  <bruno@clisp.org>
18462
18463         rename test: Add comments.
18464         * tests/test-rename.h (test_rename): Add structure and comments.
18465
18466 2010-11-13  Eric Blake  <eblake@redhat.com>
18467
18468         maintainer-makefile: cover a few more files
18469         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
18470         scripts generated within C files, for libvirt.
18471
18472 2010-11-13  Bruno Haible  <bruno@clisp.org>
18473
18474         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
18475         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
18476         character, return the number of bytes that belong together, not always
18477         1.
18478         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
18479         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
18480         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
18481         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
18482         number of bytes of an invalid character.
18483         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
18484         (main): Invoke it.
18485         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
18486         results.
18487         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
18488         malformed byte sequences.
18489         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
18490         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
18491         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
18492         Reported by Ben Pfaff and Paolo Bonzini.
18493
18494 2010-11-13  Bruno Haible  <bruno@clisp.org>
18495
18496         openat: Work around glibc bug with fchownat() and empty file names.
18497         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
18498         (gl_FUNC_FCHOWNAT): Invoke it.
18499         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
18500         * doc/posix-functions/fchownat.texi: Document the glibc bug.
18501         Reported by Gary V. Vaughan <gary@gnu.org>.
18502
18503 2010-11-13  Bruno Haible  <bruno@clisp.org>
18504
18505         openat: Ensure autoconf macro ordering.
18506         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
18507         gl_USE_SYSTEM_EXTENSIONS.
18508         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
18509
18510 2010-11-13  Bruno Haible  <bruno@clisp.org>
18511
18512         Update comments.
18513         * lib/unistr/u8-check.c: Update file name in comments.
18514         * lib/unistr/u8-mblen.c: Likewise.
18515         * lib/unistr/u8-prev.c: Likewise.
18516         * lib/unistr/u8-strmblen.c: Likewise.
18517         * lib/unistr/u8-strmbtouc.c: Likewise.
18518
18519 2010-11-13  Jim Meyering  <meyering@redhat.com>
18520
18521         tests: avoid test failure on Solaris 10 due to lack of PATH export
18522         * tests/test-update-copyright.sh: Don't forget to export PATH.
18523
18524         init.sh: ensure that IFS is defined, just in case...
18525         * tests/init.sh (setup_): Ensure that IFS is defined,
18526         so that saving and restoring it works as expected.  This
18527         appears to be useful at least for an old version of dash
18528         from a long time ago (RH 6).  See here for details:
18529         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
18530
18531         maint.mk: tighten "test a == b" check
18532         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
18533         test to files that contain something like #!/bin/sh.
18534         Without this, coreutils would get two false positives in
18535         the comments of C source files.
18536
18537 2010-11-12  Eric Blake  <eblake@redhat.com>
18538
18539         bootstrap: fix typo in previous attempt
18540         * build-aux/bootstrap (buildreq): Correct the grouping.
18541         Reported by Paul Eggert.
18542
18543         maintainer-makefile: prohibit test x == x
18544         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
18545         Based on a report by Matthias Bolte.
18546
18547         bootstrap: allow FreeBSD gzip
18548         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
18549         which has no '.' and goes to stderr.
18550         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
18551         Reported by Matthias Bolte.
18552
18553         maintainer-makefile: check for i18n setup
18554         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
18555         will likely work.
18556
18557 2010-11-12  Bruno Haible  <bruno@clisp.org>
18558
18559         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
18560         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
18561         * lib/nanosleep.c (nanosleep): Likewise.
18562
18563 2010-11-11  Bruno Haible  <bruno@clisp.org>
18564
18565         fcntl-h: Fix for use of C++ on glibc systems.
18566         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
18567         also on glibc systems in C++ mode.
18568         Reported by Gary V. Vaughan <gary@gnu.org>.
18569
18570 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
18571
18572         mknod: avoid false failure with dash
18573         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
18574
18575 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
18576
18577         unlink: Fix "is it should" typo in diagnostic.
18578         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
18579         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
18580
18581 2010-11-11  Bruno Haible  <bruno@clisp.org>
18582
18583         Tests for module 'strerror_r-posix'.
18584         * modules/strerror_r-posix-tests: New file.
18585         * tests/test-strerror_r.c: New file.
18586         * tests/test-string-c++.cc: Check the signature of strerror_r.
18587
18588         New module 'strerror_r-posix'.
18589         * lib/string.in.h (strerror_r): New declaration.
18590         * lib/strerror_r.c: New file.
18591         * m4/strerror_r.m4: New file.
18592         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
18593         of strerror_r.
18594         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
18595         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
18596         * modules/strerror_r-posix: New file.
18597         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
18598         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
18599         * doc/posix-functions/strerror_r.texi: Mention the new module and the
18600         portability problems.
18601
18602 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
18603
18604         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
18605         line is also considered for output. Quoted function name in shell
18606         command, so temporary files for functions like MyClass::operator()
18607         are removed correctly without errors.
18608
18609 2010-11-09  Bruno Haible  <bruno@clisp.org>
18610
18611         * doc/posix-functions/strerror.texi: List more failing platforms.
18612
18613         * doc/posix-functions/strerror.texi: Add a comment.
18614
18615 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
18616
18617         fdopendir: fix bug on MacOS X when low on file descriptors
18618
18619         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
18620         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
18621         All callers changed.
18622         (fdopendir): Invoke save_cwd at the top level, not after using
18623         multiple dup() calls to use up file descriptors.  Then retry
18624         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
18625         less than the maximum number of open file descriptors, because
18626         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
18627         on Mac OS X 10.6.4 for tar 1.24
18628         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
18629         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
18630         and for tar 1.25
18631         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
18632
18633 2010-11-07  Bruno Haible  <bruno@clisp.org>
18634
18635         vasnprintf: Support I flag on glibc systems.
18636         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
18637         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
18638         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
18639         snprintf function.
18640         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
18641         glibc systems.
18642         * tests/test-vasnprintf-posix3.c: New file.
18643         * modules/vasnprintf-posix-tests (Files): Add it.
18644         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
18645
18646 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
18647
18648         [html] Fix copy/paste bug: Use unique name for compiler warnings.
18649         * MODULES.html.sh: For compiler warnings, use name
18650         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
18651
18652 2010-11-05  Eric Blake  <eblake@redhat.com>
18653
18654         ceil, floor: avoid spurious failure with icc
18655         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
18656         [denormals-as-zero] when optimizing without -mieee-fp option.
18657         * tests/test-floorf2.c (floorf_reference): Likewise.
18658         * tests/test-ceilf1.c (dummy): New function.
18659         (main): Use it to outsmart icc's optimization.
18660         * tests/test-floorf1.c (dummy, main): Likewise.
18661
18662         tests: require working signbit
18663         * modules/ceilf-tests (Depends-on): Add signbit.
18664         * modules/ceill-tests (Depends-on): Likewise.
18665         * modules/floorf-tests (Depends-on): Likewise.
18666         * modules/floorl-tests (Depends-on): Likewise.
18667         * modules/round-tests (Depends-on): Likewise.
18668         * modules/roundf-tests (Depends-on): Likewise.
18669         * modules/roundl-tests (Depends-on): Likewise.
18670         * modules/trunc-tests (Depends-on): Likewise.
18671         * modules/truncf-tests (Depends-on): Likewise.
18672         * modules/truncl-tests (Depends-on): Likewise.
18673
18674         strtod: work around icc bug
18675         * lib/strtod.c (minus_zero): Define to working value.
18676         (strtod): Use it to avoid icc bug.
18677
18678         copysign: enhance tests
18679         * modules/copysign-tests (Files): Add minus-zero.h.
18680         * tests/test-copysign.c (main): Also test zeros.
18681
18682 2010-11-04  Eric Blake  <eblake@redhat.com>
18683
18684         ceil, floor, round, trunc: enhance tests of -0
18685         * tests/test-ceilf1.c (main): Ensure correct sign of result.
18686         * tests/test-ceill.c (main): Likewise.
18687         * tests/test-floorf1.c (main): Likewise.
18688         * tests/test-floorl.c (main): Likewise.
18689         * tests/test-round1.c (main): Likewise.
18690         * tests/test-roundf1.c (main): Likewise.
18691         * tests/test-roundl.c (main): Likewise.
18692         * tests/test-trunc1.c (main): Likewise.
18693         * tests/test-truncf1.c (main): Likewise.
18694         * tests/test-truncl.c (main): Likewise.
18695
18696 2010-11-04  Eric Blake  <eblake@redhat.com>
18697
18698         frexp, tests: work around ICC bug with -zero
18699         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
18700         works with more compilers.
18701         * tests/minus-zero.h: New file.
18702         * modules/ceilf-tests (Files): Include it.
18703         * modules/ceill-tests (Files): Likewise.
18704         * modules/floorf-tests (Files): Likewise.
18705         * modules/floorl-tests (Files): Likewise.
18706         * modules/frexp-nolibm-tests (Files): Likewise.
18707         * modules/frexp-tests (Files): Likewise.
18708         * modules/frexpl-nolibm-tests (Files): Likewise.
18709         * modules/frexpl-tests (Files): Likewise.
18710         * modules/isnan-tests (Files): Likewise.
18711         * modules/isnand-nolibm-tests (Files): Likewise.
18712         * modules/isnand-tests (Files): Likewise.
18713         * modules/isnanf-nolibm-tests (Files): Likewise.
18714         * modules/isnanf-tests (Files): Likewise.
18715         * modules/isnanl-nolibm-tests (Files): Likewise.
18716         * modules/isnanl-tests (Files): Likewise.
18717         * modules/round-tests (Files): Likewise.
18718         * modules/roundf-tests (Files): Likewise.
18719         * modules/roundl-tests (Files): Likewise.
18720         * modules/ldexpl-tests (Files): Likewise.
18721         * modules/signbit-tests (Files): Likewise.
18722         * modules/snprintf-posix-tests (Files): Likewise.
18723         * modules/sprintf-posix-tests (Files): Likewise.
18724         * modules/strtod-tests (Files): Likewise.
18725         * modules/trunc-tests (Files): Likewise.
18726         * modules/truncf-tests (Files): Likewise.
18727         * modules/truncl-tests (Files): Likewise.
18728         * modules/vsnprintf-posix-tests (Files): Likewise.
18729         * modules/vsprintf-posix-tests (Files): Likewise.
18730         * modules/vasnprintf-posix-tests (Files): Likewise.
18731         * modules/vasprintf-posix-tests (Files): Likewise.
18732         * tests/test-ceilf1.c (main): Use it.
18733         * tests/test-ceill.c (main): Likewise.
18734         * tests/test-floorf1.c (main): Likewise.
18735         * tests/test-floorl.c (main): Likewise.
18736         * tests/test-frexp.c (main): Likewise.
18737         * tests/test-frexpl.c (main): Likewise.
18738         * tests/test-isnan.c (main): Likewise.
18739         * tests/test-isnand.h (main): Likewise.
18740         * tests/test-isnanf.h (main): Likewise.
18741         * tests/test-isnanl.h (main): Likewise.
18742         * tests/test-ldexpl.c (main): Likewise.
18743         * tests/test-round.c (main): Likewise.
18744         * tests/test-roundf.c (main): Likewise.
18745         * tests/test-roundl.c (main): Likewise.
18746         * tests/test-signbit.c (test_signbitf, test_signbitd)
18747         (test_signbitl): Likewise.
18748         * tests/test-snprintf-posix.h (test_function): Likewise.
18749         * tests/test-sprintf-posix.h (test_function): Likewise.
18750         * tests/test-strtod.c (main): Likewise.
18751         * tests/test-trunc1.c (main): Likewise.
18752         * tests/test-truncf1.c (main): Likewise.
18753         * tests/test-truncl.c (main): Likewise.
18754
18755         isnanl: work around icc bug
18756         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
18757
18758 2010-11-03  Eric Blake  <eblake@redhat.com>
18759
18760         tests: fix compiler warnings
18761         * tests/test-getopt.h (test_getopt): Fix condition.
18762         * tests/test-getopt_long.h (test_getopt_long): Likewise.
18763         * tests/test-pipe2.c (main): Likewise.
18764         * tests/test-quotearg-simple.c (main): Avoid icc warning.
18765
18766         utimens: fix broken m4 test
18767         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
18768
18769 2010-10-28  Bruno Haible  <bruno@clisp.org>
18770
18771         posix_spawn*, getdtablesize: Relax license.
18772         * modules/posix_spawn (License): Change to LGPLv2+.
18773         * modules/posix_spawnp (License): Likewise.
18774         * modules/posix_spawn-internal (License): Likewise.
18775         * modules/posix_spawnattr_init (License): Likewise.
18776         * modules/posix_spawnattr_getflags (License): Likewise.
18777         * modules/posix_spawnattr_setflags (License): Likewise.
18778         * modules/posix_spawnattr_getpgroup (License): Likewise.
18779         * modules/posix_spawnattr_setpgroup (License): Likewise.
18780         * modules/posix_spawnattr_getschedparam (License): Likewise.
18781         * modules/posix_spawnattr_setschedparam (License): Likewise.
18782         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
18783         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
18784         * modules/posix_spawnattr_getsigdefault (License): Likewise.
18785         * modules/posix_spawnattr_setsigdefault (License): Likewise.
18786         * modules/posix_spawnattr_getsigmask (License): Likewise.
18787         * modules/posix_spawnattr_setsigmask (License): Likewise.
18788         * modules/posix_spawnattr_destroy (License): Likewise.
18789         * modules/posix_spawn_file_actions_init (License): Likewise.
18790         * modules/posix_spawn_file_actions_addclose (License): Likewise.
18791         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
18792         * modules/posix_spawn_file_actions_addopen (License): Likewise.
18793         * modules/posix_spawn_file_actions_destroy (License): Likewise.
18794         * modules/getdtablesize (License): Likewise.
18795         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
18796
18797 2010-10-26  Bruno Haible  <bruno@clisp.org>
18798
18799         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
18800         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
18801         Cygwin and mingw.
18802         Suggested by Eric Blake.
18803
18804 2010-10-26  Bruno Haible  <bruno@clisp.org>
18805
18806         stdio: Work around compilation error due to renameat() on Solaris 10.
18807         * lib/stdio.in.h: Include <unistd.h> on Solaris.
18808         * lib/renameat.c: Don't include <unistd.h> here.
18809         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
18810         Reported by Paul Eggert and Eric Blake.
18811
18812 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
18813
18814         renameat: port to Solaris 10, which declares renameat in unistd.h
18815
18816         * lib/renameat.c: Include unistd.h before stdio.h, because
18817         Solaris 10 declares renameat in unistd.h.  Problem encountered
18818         when building GNU tar 1.24 on Solaris 10.
18819
18820 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
18821
18822         fdopendir: fix C89 compilation
18823         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
18824         compilers.
18825
18826 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
18827
18828         inttostr: simplify by removing unnecessary redundancy
18829         * lib/anytostr.c: Don't include verify.h.
18830         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
18831         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
18832         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
18833         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
18834         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
18835         Likewise.
18836         * modules/inttostr (Depends-on): Remove 'verify'.
18837
18838 2010-10-23  Bruno Haible  <bruno@clisp.org>
18839
18840         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
18841         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
18842         Reported by Eric Blake.
18843
18844 2010-10-23  Bruno Haible  <bruno@clisp.org>
18845
18846         Tests: Fix LOCALE_JA on MirBSD 10.
18847         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
18848         to an UTF-8 locale.
18849         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
18850         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
18851         Reported by Eric Blake.
18852
18853 2010-10-21  Bruno Haible  <bruno@clisp.org>
18854
18855         nl_langinfo test: Avoid test failure on NetBSD 5.
18856         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
18857         Reported by Eric Blake.
18858
18859 2010-10-21  Eric Blake  <eblake@redhat.com>
18860
18861         c-stack: work around libsigsegv 2.8 bug
18862         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
18863         overflow on at least PowerPC64.
18864
18865 2010-10-17  Bruno Haible  <bruno@clisp.org>
18866
18867         userspec: Drop redundant file.
18868         * modules/userspec (Files): Remove lib/inttostr.h.
18869
18870 2010-10-17  Bruno Haible  <bruno@clisp.org>
18871
18872         nl_langinfo tests: Silence some warnings.
18873         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
18874         Reported by Jim Meyering.
18875
18876 2010-10-17  Bruno Haible  <bruno@clisp.org>
18877
18878         Make use of GCC's attribute __alloc_size__.
18879         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
18880         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
18881         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
18882         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
18883         __alloc_size__.
18884         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
18885         Suggested by Jim Meyering.
18886
18887 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
18888
18889         bootstrap: anchor .gitignore entries.
18890         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
18891         with...
18892         (insert_vc_ignore): ... this new function, which prepends `/' to
18893         all .gitignore entries before passing them to
18894         insert_sorted_if_absent.
18895
18896 2010-10-16  Bruno Haible  <bruno@clisp.org>
18897
18898         nextafter: Fix configure check.
18899         * modules/nextafter (configure.ac): Correct expected prototype.
18900
18901 2010-10-16  Bruno Haible  <bruno@clisp.org>
18902
18903         termios: Update documentation.
18904         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
18905
18906 2010-10-16  Bruno Haible  <bruno@clisp.org>
18907
18908         tests: Make them compile with TinyCC.
18909         * tests/test-strstr.c (main): Remove parentheses around array
18910         initializer.
18911
18912 2010-10-15  Eric Blake  <eblake@redhat.com>
18913
18914         ignore-value: make header idempotent
18915         * lib/ignore-value.h: Add double-inclusion guards.
18916         Reported by Stefan Berger.
18917
18918 2010-10-15  Jim Meyering  <meyering@redhat.com>
18919
18920         GNUmakefile: handle "stable" target, not "major"
18921         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
18922         lists in maint.mk and announce-gen.  Without this, "make stable"
18923         would fail to ensure that $(VERSION) is up to date.
18924
18925 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
18926
18927         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
18928         & co.
18929
18930 2010-10-14  Bruno Haible  <bruno@clisp.org>
18931
18932         vasnprintf: Don't set errno to 0.
18933         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
18934         block that sets it to 0.
18935         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
18936
18937 2010-10-14  Bruno Haible  <bruno@clisp.org>
18938
18939         socketlib: Fix.
18940         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
18941         gl_PREREQ_SYS_H_WINSOCK2.
18942         Reported by Ian Beckwith <ianb@erislabs.net>.
18943
18944 2010-10-13  Jim Meyering  <meyering@redhat.com>
18945
18946         test-select-stdin.c: avoid warn_unused_result warnings
18947         * tests/test-select-stdin.c: Include "macros.h".
18948         ASSERT that read and fflush succeed.
18949
18950 2010-10-13  Jim Meyering  <meyering@redhat.com>
18951
18952         git-version-gen: do require git-VC'd files in cwd
18953         * build-aux/git-version-gen: Reject a git version string
18954         if there are no commits associated with the current directory.
18955         This avoids an unlikely false-positive (unrelated dir whose parent
18956         repository also contains a tag matching v*), as pointed out
18957         by Giuseppe Scrivano in
18958         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
18959
18960 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
18961
18962         argv-iter: omit nonconforming declaration
18963         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
18964         enum arg_iter_err declaration, which doesn't conform to C99.
18965         Solaris 10 cc warns about this.
18966
18967 2010-10-13  Eric Blake  <eblake@redhat.com>
18968
18969         termios: fix compilation on mingw
18970         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
18971         (gl_TERMIOS_H): Adjust it on mingw.
18972         * modules/termios (Makefile.am): Substitute new key.
18973         * lib/termios.in.h (includes): Make include_next conditional.
18974         * doc/posix-headers/termios.texi (termios.h): Update
18975         documentation.
18976         Reported by Daniel P. Berrange.
18977
18978 2010-10-13  Jim Meyering  <meyering@redhat.com>
18979
18980         git-version-gen: don't require that .git/ be in the current dir
18981         * build-aux/git-version-gen: Adjust this script so that it works
18982         when run from any working directory beneath the top-level .git/-
18983         containing directory.  Inspired by a patch from Giuseppe Scrivano,
18984         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
18985
18986         test-select: avoid warn_unused_result warnings
18987         * tests/test-select.c: Include "macros.h".
18988         ASSERT that each call to read, write, and pipe succeeds.
18989         While not technically required, also check each "close".
18990         * modules/select-tests (Files): Add tests/macros.h.
18991
18992         test-symlinkat: remove declaration of unused local
18993         * tests/test-symlinkat.c (main): Remove unused local, "buf".
18994
18995         test-inttostr: avoid shadowing warnings
18996         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
18997         and use malloc rather than the stack for the same reason as
18998         mentioned in the comment justifying the other allocation.
18999
19000 2010-10-11  Bruno Haible  <bruno@clisp.org>
19001
19002         stdlib: Allow multiple gnulib generated replacements to coexist.
19003         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
19004         Reported by Sam Steingold <sds@gnu.org>.
19005
19006 2010-10-11  Jim Meyering  <meyering@redhat.com>
19007
19008         fix a documentation typo
19009         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
19010
19011 2010-10-11  Eric Blake  <eblake@redhat.com>
19012
19013         futimens: work around Solaris 11 bug
19014         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
19015         * tests/test-futimens.h (test_futimens): Enhance, rather than
19016         weaken test.
19017         * doc/posix-functions/futimens.texi (futimens): Document the bug.
19018
19019 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
19020
19021         Indentation.
19022         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
19023         higher-level operators more to the left.
19024
19025 2010-10-11  Jim Meyering  <meyering@redhat.com>
19026
19027         test-futimens: avoid unwarranted test failure on Solaris 5.11
19028         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
19029         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
19030         because it tries to dereference the NULL name argument.
19031
19032 2010-10-11  Bruno Haible  <bruno@clisp.org>
19033
19034         Indentation.
19035         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
19036         indentation.
19037
19038 2010-10-11  Jim Meyering  <meyering@redhat.com>
19039
19040         spawn.in.h: make indentation consistent with parentheses
19041         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
19042         Make indentation consistent with parentheses.
19043
19044 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
19045
19046         Fix mismatched parens in previous commit
19047         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
19048         parens.
19049
19050 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
19051
19052         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
19053
19054         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
19055         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
19056         * lib/malloca.c: Include "verify.h".
19057         (verify1): Remove, replacing with a verify call.
19058         * lib/relocwrapper.c (verify1): Likewise.
19059         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
19060         Likewise.
19061         * modules/malloca (Depends-on): Add 'verify'.
19062         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
19063         * modules/vasnprintf (Depends-on): Add 'verify'.
19064         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
19065         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
19066         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
19067         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
19068         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
19069         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
19070         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
19071
19072         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
19073
19074         Formerly the style was sometimes 2*X - 1, because the C standard
19075         was wrongly thought to disallow ?: in integral constant expressions.
19076         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
19077         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
19078         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
19079         * lib/stdint.in.h (_verify_intmax_size): Likewise.
19080         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
19081         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
19082         verify that time_t cannot be floating.
19083
19084 2010-10-08  Eric Blake  <eblake@redhat.com>
19085
19086         time: enforce recent POSIX ruling that time_t is integral
19087         * lib/time.in.h (__time_t_must_be_integral): Detect any
19088         problematic systems, allowing the rest of gnulib to assume POSIX.
19089
19090 2010-10-08  Jim Meyering  <meyering@redhat.com>
19091
19092         fdopendir: fix a bug on systems lacking openat and /proc support
19093         OpenBSD 4.7 is one such system.  The most noticeable effect was
19094         failure of any application making nontrivial use of fts: rm, du,
19095         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
19096           ./rm: traversal failed: `a': Bad file descriptor
19097         Debugging that, you see that even though FD 6 was closed just
19098         prior to the opendir call in fd_clone_opendir, its resulting
19099         dir->dd_fd was 8, rather than the expected value of 6:
19100
19101         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
19102         93                close (fd);
19103         (gdb) n
19104         94                dir = fd_clone_opendir (dupfd);
19105         (gdb) n
19106         95                saved_errno = errno;
19107         (gdb) p dir->dd_fd
19108         $11 = 8
19109
19110         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
19111         The problem is that on OpenBSD, fd_clone_opendir has to resort
19112         to using the old-style save/restore CWD mechanism, due to its
19113         lack of openat/proc support, and *that* would steal the FD (6)
19114         that opendir was supposed to use.
19115
19116         The fix is to squirrel away the desired FD so that save_cwd uses a
19117         different one, and then free the dest FD right before calling opendir.
19118         That guarantees opendir will use the required file descriptor.
19119
19120         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
19121
19122 2010-10-08  Bruno Haible  <bruno@clisp.org>
19123
19124         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
19125         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
19126
19127 2010-10-08  Bruno Haible  <bruno@clisp.org>
19128
19129         nanosleep: Make replacement POSIX compliant.
19130         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
19131         is out of range.
19132         Reported by Jim Meyering.
19133
19134 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
19135
19136         bootstrap: add hook for altering gnulib.mk, for Bison
19137         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
19138         the Bison bootstrapping process can rewrite file names and variables
19139         in this file before later parts of 'bootstrap' use the file.
19140         Bison wants to include lib/gnulib.mk from the top-level makefile,
19141         so it needs the file names in this file to be relative to the top
19142         level, not relative to lib; plus it needs variable names to be
19143         rewritten.
19144         (slurp): Use the new function.
19145
19146         bootstrap: reformat for readability
19147         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
19148
19149 2010-10-08  Eric Blake  <eblake@redhat.com>
19150
19151         docs: update cygwin progress
19152         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
19153         1.7.7.
19154         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
19155         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
19156         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
19157         * doc/posix-functions/carg.texi (carg): Likewise.
19158         * doc/posix-functions/cargf.texi (cargf): Likewise.
19159         * doc/posix-functions/casin.texi (casin): Likewise.
19160         * doc/posix-functions/casinf.texi (casinf): Likewise.
19161         * doc/posix-functions/casinh.texi (casinh): Likewise.
19162         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
19163         * doc/posix-functions/catan.texi (catan): Likewise.
19164         * doc/posix-functions/catanf.texi (catanf): Likewise.
19165         * doc/posix-functions/catanh.texi (catanh): Likewise.
19166         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
19167         * doc/posix-functions/ccos.texi (ccos): Likewise.
19168         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
19169         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
19170         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
19171         * doc/posix-functions/cexp.texi (cexp): Likewise.
19172         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
19173         * doc/posix-functions/cimag.texi (cimag): Likewise.
19174         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
19175         * doc/posix-functions/clog.texi (clog): Likewise.
19176         * doc/posix-functions/clogf.texi (clogf): Likewise.
19177         * doc/posix-functions/conj.texi (conj): Likewise.
19178         * doc/posix-functions/conjf.texi (conjf): Likewise.
19179         * doc/posix-functions/cpow.texi (cpow): Likewise.
19180         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
19181         * doc/posix-functions/cproj.texi (cproj): Likewise.
19182         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
19183         * doc/posix-functions/creal.texi (creal): Likewise.
19184         * doc/posix-functions/crealf.texi (crealf): Likewise.
19185         * doc/posix-functions/csin.texi (csin): Likewise.
19186         * doc/posix-functions/csinf.texi (csinf): Likewise.
19187         * doc/posix-functions/csinh.texi (csinh): Likewise.
19188         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
19189         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
19190         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
19191         * doc/posix-functions/ctan.texi (ctan): Likewise.
19192         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
19193         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
19194         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
19195         * doc/posix-headers/complex.texi (complex.h): Likewise.
19196
19197 2010-10-07  Jim Meyering  <meyering@redhat.com>
19198
19199         parse-datetime: avoid compilation failure on OpenBSD 4.7
19200         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
19201         This works around a compilation failure on OpenBSD 4.7:
19202         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
19203
19204 2010-10-07  Eric Blake  <eblake@redhat.com>
19205
19206         docs: update cygwin progress
19207         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
19208         1.7.6.
19209         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
19210         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
19211         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
19212         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
19213         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
19214         Likewise.
19215         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
19216         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
19217         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
19218         Likewise.
19219         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
19220         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
19221         Likewise.
19222         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
19223         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
19224         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
19225         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
19226         Likewise.
19227         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
19228         Likewise.
19229         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
19230
19231         docs: update parse-datetime history
19232         * doc/parse-datetime.texi (Authors of parse_datetime): Better
19233         documentation of this function's history and alternatives.
19234
19235         cygwin: use more robust version check
19236         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
19237         exclude an eventual cygwin 1.9.1.
19238         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
19239         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
19240         (gl_FUNC_STRCASESTR): Likewise.
19241         Reported by Bruno Haible.
19242
19243 2010-10-06  Bruno Haible  <bruno@clisp.org>
19244
19245         string, sys_select: Avoid #including large headers unless necessary.
19246         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
19247         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
19248         OSF/1, BeOS, Haiku.
19249         Reported by Jim Meyering.
19250
19251 2010-10-05  Eric Blake  <eblake@redhat.com>
19252
19253         memmem, strstr, strcasestr: fix bug with long periodic needle
19254         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
19255         periodic needle having false positive.
19256         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
19257         and cygwin 1.7.7.
19258         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
19259         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
19260         (gl_FUNC_STRCASESTR): Likewise.
19261         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
19262         * tests/test-memmem.c (main): Expose the bug.
19263         * tests/test-strcasestr.c (main): Likewise.
19264         * tests/test-strstr.c (main): Likewise.
19265         * tests/test-c-strcasestr.c (main): Likewise.
19266         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
19267         * doc/posix-functions/strstr.texi (strstr): Likewise.
19268         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
19269         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
19270
19271 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
19272
19273         parse-datetime: do some more renaming
19274         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
19275         parse_datetime, not get_date.  Mention the renaming.
19276         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
19277         in comments.
19278         * m4/bison.m4: Likewise.
19279
19280 2010-10-05  Eric Blake  <eblake@redhat.com>
19281
19282         parse-datetime: better name than get_date
19283         * NEWS: Reword the deprecation notice.
19284         * modules/get_date: Rename to modules/parse-datetime.
19285         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
19286         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
19287         * lib/get_date.y: Rename to lib/parse-datetime.y.
19288         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
19289         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
19290         * doc/getdate.texi: Provide fallback wrapper.
19291         * lib/getdate.h: Move guts, and wrap...
19292         * lib/parse-datetime.h: ...new file.
19293         * lib/parse-datetime.y (get_date): Rename...
19294         (parse_datetime): ...to this.
19295         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
19296         (gl_PARSE_DATETIME): ...to this.
19297         * doc/posix-functions/getdate.texi (get_date): Provide fallback
19298         documentation.
19299         * modules/getdate (Files): Provide fallback docs and header.
19300         (Notice, Depends-on): Update references.
19301         * tests/test-parse-datetime.c: Likewise.
19302         * DEPENDENCIES: Likewise.
19303         * MODULES.html.sh (Date and time <time.h>): Likewise.
19304         * doc/parse-datetime.texi (Date input formats)
19305         (Authors of parse_datetime): Likewise.
19306         * modules/parse-datetime (Files, configure.ac, Makefile.am)
19307         (Include): Likewise.
19308         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
19309         * gnulib-tool: Likewise.
19310         * m4/bison.m4 (gl_BISON): Likewise.
19311         Suggested by Bruno Haible.
19312
19313 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
19314
19315         more ports to Solaris tr, which needs [] around ranges
19316         * gnulib-tool: Solaris tr needs [] around ranges.
19317         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
19318         * tests/test-pipe-filter-gi1.c (main): Likewise.
19319         * tests/test-pipe-filter-ii1.c (main): Likewise.
19320
19321 2010-10-05  Eric Blake  <eblake@redhat.com>
19322
19323         bootstrap: fix Solaris regression
19324         * build-aux/bootstrap (check_versions): Solaris tr still needs []
19325         around ranges.
19326         Reported by Pádraig Brady.
19327
19328         bootstrap: work with pkg-config
19329         * build-aux/bootstrap (check_versions): Also transliterate - in
19330         prerequisite name.
19331         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
19332         prerequisites that were already found, to avoid confusion.
19333         Reported by Justin Clift.
19334
19335         faccessat: remove unused wrappers
19336         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
19337         presence of these wrappers dragged in -lgen on Solaris.
19338         Reported by Clemens Brogi; fix suggested by Paul Eggert.
19339
19340 2010-10-05  Jim Meyering  <meyering@redhat.com>
19341
19342         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
19343         * Makefile (sc_pragma_columns): New syntax-check rule.
19344
19345 2010-10-04  Bruno Haible  <bruno@clisp.org>
19346
19347         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
19348         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
19349         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
19350         Reported by Bruce Korb and Eric Blake.
19351
19352 2010-10-04  Bruno Haible  <bruno@clisp.org>
19353
19354         threadlib: Make option --with-libpth-prefix work.
19355         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
19356         use $LIBPTH, not just -lpth.
19357
19358 2010-10-04  Bruno Haible  <bruno@clisp.org>
19359
19360         Avoid line length limitation from HP NonStop system header files.
19361         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
19362         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
19363         * lib/ctype.in.h: Likewise.
19364         * lib/dirent.in.h: Likewise.
19365         * lib/errno.in.h: Likewise.
19366         * lib/fcntl.in.h: Likewise.
19367         * lib/float.in.h: Likewise.
19368         * lib/getopt.in.h: Likewise.
19369         * lib/iconv.in.h: Likewise.
19370         * lib/inttypes.in.h: Likewise.
19371         * lib/langinfo.in.h: Likewise.
19372         * lib/locale.in.h: Likewise.
19373         * lib/math.in.h: Likewise.
19374         * lib/netdb.in.h: Likewise.
19375         * lib/netinet_in.in.h: Likewise.
19376         * lib/poll.in.h: Likewise.
19377         * lib/pthread.in.h: Likewise.
19378         * lib/pty.in.h: Likewise.
19379         * lib/sched.in.h: Likewise.
19380         * lib/se-selinux.in.h: Likewise.
19381         * lib/search.in.h: Likewise.
19382         * lib/signal.in.h: Likewise.
19383         * lib/spawn.in.h: Likewise.
19384         * lib/stdarg.in.h: Likewise.
19385         * lib/stddef.in.h: Likewise.
19386         * lib/stdint.in.h: Likewise.
19387         * lib/stdio.in.h: Likewise.
19388         * lib/stdlib.in.h: Likewise.
19389         * lib/string.in.h: Likewise.
19390         * lib/strings.in.h: Likewise.
19391         * lib/sys_file.in.h: Likewise.
19392         * lib/sys_ioctl.in.h: Likewise.
19393         * lib/sys_select.in.h: Likewise.
19394         * lib/sys_socket.in.h: Likewise.
19395         * lib/sys_stat.in.h: Likewise.
19396         * lib/sys_time.in.h: Likewise.
19397         * lib/sys_times.in.h: Likewise.
19398         * lib/sys_utsname.in.h: Likewise.
19399         * lib/sys_wait.in.h: Likewise.
19400         * lib/sysexits.in.h: Likewise.
19401         * lib/termios.in.h: Likewise.
19402         * lib/time.in.h: Likewise.
19403         * lib/unistd.in.h: Likewise.
19404         * lib/wchar.in.h: Likewise.
19405         * lib/wctype.in.h: Likewise.
19406         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
19407         * modules/ctype (Makefile.am): Likewise.
19408         * modules/dirent (Makefile.am): Likewise.
19409         * modules/errno (Makefile.am): Likewise.
19410         * modules/fcntl-h (Makefile.am): Likewise.
19411         * modules/float (Makefile.am): Likewise.
19412         * modules/getopt-posix (Makefile.am): Likewise.
19413         * modules/iconv-h (Makefile.am): Likewise.
19414         * modules/inttypes (Makefile.am): Likewise.
19415         * modules/langinfo (Makefile.am): Likewise.
19416         * modules/locale (Makefile.am): Likewise.
19417         * modules/math (Makefile.am): Likewise.
19418         * modules/netdb (Makefile.am): Likewise.
19419         * modules/netinet_in (Makefile.am): Likewise.
19420         * modules/poll-h (Makefile.am): Likewise.
19421         * modules/pthread (Makefile.am): Likewise.
19422         * modules/pty (Makefile.am): Likewise.
19423         * modules/sched (Makefile.am): Likewise.
19424         * modules/search (Makefile.am): Likewise.
19425         * modules/selinux-h (Makefile.am): Likewise.
19426         * modules/signal (Makefile.am): Likewise.
19427         * modules/spawn (Makefile.am): Likewise.
19428         * modules/stdarg (Makefile.am): Likewise.
19429         * modules/stddef (Makefile.am): Likewise.
19430         * modules/stdint (Makefile.am): Likewise.
19431         * modules/stdio (Makefile.am): Likewise.
19432         * modules/stdlib (Makefile.am): Likewise.
19433         * modules/string (Makefile.am): Likewise.
19434         * modules/strings (Makefile.am): Likewise.
19435         * modules/sys_file (Makefile.am): Likewise.
19436         * modules/sys_ioctl (Makefile.am): Likewise.
19437         * modules/sys_select (Makefile.am): Likewise.
19438         * modules/sys_socket (Makefile.am): Likewise.
19439         * modules/sys_stat (Makefile.am): Likewise.
19440         * modules/sys_time (Makefile.am): Likewise.
19441         * modules/sys_times (Makefile.am): Likewise.
19442         * modules/sys_utsname (Makefile.am): Likewise.
19443         * modules/sys_wait (Makefile.am): Likewise.
19444         * modules/sysexits (Makefile.am): Likewise.
19445         * modules/termios (Makefile.am): Likewise.
19446         * modules/time (Makefile.am): Likewise.
19447         * modules/unistd (Makefile.am): Likewise.
19448         * modules/wchar (Makefile.am): Likewise.
19449         * modules/wctype (Makefile.am): Likewise.
19450
19451 2010-10-04  Bruno Haible  <bruno@clisp.org>
19452
19453         read-file tests: Avoid a test failure on NonStop Kernel.
19454         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
19455         a regular file.
19456         Reported by Joachim Schmitz <schmitz@hp.com>.
19457
19458 2010-10-03  Bruno Haible  <bruno@clisp.org>
19459
19460         gnulib-tool: Fixes for --create-testdir with --libtool.
19461         * gnulib-tool (func_get_automake_snippet): Don't augment
19462         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
19463         an executable.
19464         (func_create_testdir): Handle module 'alloca' like func_import.
19465         Reported by Bruce Korb <bruce.korb@gmail.com>.
19466
19467 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
19468
19469         Avoid some lines longer than 80 characters.
19470         * lib/stdint.in.h: Break long comment lines.
19471         * lib/math.in.h: Likewise.
19472         (_GL_NUM_UINT_WORDS): New macro, for readability.
19473         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
19474         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
19475         * lib/stdlib.in.h: Likewise.
19476         * lib/spawn.in.h: Likewise.
19477         * lib/sys_socket.in.h: Update an URL.
19478         * lib/sys_stat.in.h: Break long line.
19479
19480 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
19481
19482         Improve pmccabe2html.
19483         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
19484         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
19485         when the sources change. Remove the line in the HTML about "Used
19486         ranges" (which implied that there might be other unused ranges),
19487         rename "Resume" to "Summary" (easier to understand for more users).
19488         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
19489         styles, and some unnecessary blank lines.
19490
19491 2010-10-03  Bruno Haible  <bruno@clisp.org>
19492             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
19493
19494         acl: Add support for ACLs on NonStop Kernel.
19495         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
19496         Check whether the function aclsort() exists.
19497         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
19498         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
19499         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
19500         (acl_nontrivial [HAVE_ACLSORT]: New function.
19501         (file_has_acl): Implement for NonStop Kernel.
19502         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
19503         (qset_acl): Implement for NonStop Kernel.
19504         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
19505         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
19506         (main): Implement for NonStop Kernel.
19507         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
19508         Kernel. Handle this flavor.
19509         * tests/test-set-mode-acl.sh: Likewise.
19510         * tests/test-copy-acl.sh: Likewise.
19511         * tests/test-copy-file.sh: Likewise.
19512
19513 2010-10-03  Bruno Haible  <bruno@clisp.org>
19514
19515         Info about ACLs on NonStop Kernel.
19516         * doc/acl-resources.txt: Add info about NonStop Kernel.
19517         References by Joachim Schmitz <schmitz@hp.com>.
19518
19519 2010-10-02  Bruno Haible  <bruno@clisp.org>
19520
19521         Define missing EDQUOT on NonStop Kernel.
19522         * lib/errno.in.h (EDQUOT): Assign a value if missing.
19523         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
19524         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
19525         missing.
19526         * doc/posix-headers/errno.texi: Mention the NSK bug.
19527         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
19528         Reported by Joachim Schmitz <schmitz@hp.com>.
19529
19530 2010-10-02  Bruno Haible  <bruno@clisp.org>
19531
19532         Update doc for POSIX:2008.
19533         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
19534         Update URL of POSIX specification.
19535
19536 2010-10-02  Bruno Haible  <bruno@clisp.org>
19537
19538         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
19539         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
19540         from gnulib, not from Automake.
19541
19542 2010-10-02  Bruno Haible  <bruno@clisp.org>
19543
19544         New module 'system-posix'.
19545         * modules/system-posix: New file.
19546         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
19547         module is present.
19548         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
19549         GNULIB_SYSTEM_POSIX.
19550         * modules/stdlib (Depends-on): Remove sys_wait.
19551         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
19552         * doc/posix-functions/system.texi: Mention the new module.
19553         * doc/posix-headers/stdlib.texi: Likewise.
19554         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
19555         define test_sys_wait_macros to a no-op.
19556         Reported by Sam Steingold <sds@gnu.org>.
19557
19558 2010-09-30  Bruno Haible  <bruno@clisp.org>
19559
19560         More renaming from 'getdate' to 'get_date'.
19561         * doc/get_date.texi: Renamed from doc/getdate.texi.
19562         * modules/get_date (Files): Update.
19563         * MODULES.html.sh (Date and time <time.h>): Update.
19564         * DEPENDENCIES: Update.
19565         * gnulib-tool: Update comment.
19566         * m4/bison.m4 (gl_BISON): Likewise.
19567         * m4/get_date.m4 (gl_GET_DATE): Likewise.
19568
19569 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
19570
19571         bootstrap: support ACLOCAL_FLAGS during aclocal
19572         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
19573         can add additional -I dir for third-party .m4 files.
19574
19575 2010-09-30  Eric Blake  <eblake@redhat.com>
19576
19577         bootstrap: use glibtoolize on MacOS
19578         * build-aux/bootstrap (check_versions): Convert libtool into
19579         libtoolize.
19580         (tool search): Move libtool check earlier, and look for
19581         glibtoolize for MacOS.
19582         (gnulib_tool_options): Auto-add --libtool when appropriate.
19583         Reported by Justin Clift.
19584
19585         poll: fix typo that broke test on MacOS
19586         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
19587         Reported by Justin Clift.
19588
19589         getdate: rename to get_date
19590         Note: getdate.h is not renamed, to minimize client impact.
19591         * modules/getdate: Mark obsolete.  Move old contents...
19592         * modules/get_date: ...to new module name.
19593         * modules/getdate-tests: Move...
19594         * modules/get_date-tests: ...here.
19595         * m4/getdate.m4: Move...
19596         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
19597         * lib/getdate.y: Move...
19598         * lib/get_date.y: ...here.
19599         * tests/test-getdate.c: Move...
19600         * tests/test-get_date.c: ...here.
19601         * doc/posix-functions/getdate.texi (getdate): Update name.
19602         * NEWS: Mention the change.
19603
19604 2010-09-29  Bruno Haible  <bruno@clisp.org>
19605
19606         Separate the module 'waitpid' from the module 'sys_wait'.
19607         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
19608         present.
19609         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
19610         gl_MODULE_INDICATOR_FOR_TESTS.
19611         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
19612         * modules/sys_wait (Depends-on): Remove waitpid.
19613         (Makefile.am): Substitute GNULIB_WAITPID.
19614         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
19615         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
19616         signature only if the 'waitpid' module is present.
19617         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
19618         * NEWS: Mention the change.
19619         * modules/grantpt (Depends-on): Add waitpid.
19620         * modules/wait-process (Depends-on): Likewise.
19621
19622 2010-09-29  Bruno Haible  <bruno@clisp.org>
19623
19624         More tests for module 'sys_wait'.
19625         * modules/sys_wait-c++-tests: New file.
19626         * tests/test-sys_wait-c++.cc: New file.
19627         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
19628         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
19629
19630 2010-09-29  Bruno Haible  <bruno@clisp.org>
19631
19632         New module 'waitpid'.
19633         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
19634         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
19635         Don't include <process.h>.
19636         (waitpid): Declare only, using modern idiom.
19637         * m4/waitpid.m4: New file.
19638         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
19639         * modules/waitpid: New file.
19640         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
19641         (Makefile.am): Update.
19642         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
19643
19644 2010-09-28  Bruno Haible  <bruno@clisp.org>
19645
19646         poll: Assume ANSI C.
19647         * lib/poll.c (poll): Use an ANSI C declaration.
19648
19649 2010-09-28  Bruno Haible  <bruno@clisp.org>
19650
19651         poll-h: Create poll.h on all platforms.
19652         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
19653         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
19654         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
19655         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
19656         (gl_REPLACE_POLL_H): Don't set POLL_H.
19657         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
19658         * modules/poll-h (Depends-on): Add include_next.
19659         (Makefile.am): Create poll.h unconditionally. Substitute also
19660         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
19661
19662 2010-09-28  Bruno Haible  <bruno@clisp.org>
19663
19664         Tests for module 'poll-h'.
19665         * modules/poll-h-c++-tests: New file.
19666         * tests/test-poll-h-c++.cc: New file.
19667
19668         Tests for module 'poll-h'.
19669         * modules/poll-h-tests: New file.
19670         * tests/test-poll-h.c: New file.
19671
19672 2010-09-28  Bruno Haible  <bruno@clisp.org>
19673
19674         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
19675         * modules/poll-h (Depends-on): Add 'extensions'.
19676
19677 2010-09-28  Bruno Haible  <bruno@clisp.org>
19678
19679         New module 'poll-h'.
19680         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
19681         (poll): Use modern idiom.
19682         * modules/poll-h: New file.
19683         * modules/poll (Files): Remove lib/poll.in.h.
19684         (Depends-on): Add poll-h.
19685         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
19686         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
19687         * m4/poll_h.m4: New file.
19688         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
19689         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
19690         and invoke gl_REPLACE_POLL_H.
19691         * lib/poll.c: Use common idiom.
19692         * tests/test-poll.c: Likewise.
19693         * doc/posix-headers/poll.texi: Mention the poll-h module.
19694         Suggested by Eric Blake.
19695
19696 2010-09-26  Bruno Haible  <bruno@clisp.org>
19697
19698         sys_wait: Implement WSTOPSIG.
19699         * lib/sys_wait.in.h (WSTOPSIG): New macro.
19700         Reported by Simon Josefsson.
19701
19702 2010-09-26  Simon Josefsson  <simon@josefsson.org>
19703
19704         stdlib, sys_wait: Avoid compilation error on mingw.
19705         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
19706
19707 2010-09-26  Bruno Haible  <bruno@clisp.org>
19708
19709         stdlib tests: Avoid code duplication.
19710         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
19711         * modules/sys_wait-tests (Files): Likewise.
19712         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
19713         * tests/test-stdlib.c: Include test-sys_wait.h.
19714         (main): Invoke test_sys_wait_macros.
19715         * tests/test-sys_wait.c: Include test-sys_wait.h.
19716         (main): Invoke test_sys_wait_macros.
19717
19718 2010-09-25  Simon Josefsson  <simon@josefsson.org>
19719
19720         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
19721         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
19722         sure Windows sockets are working before calling getaddrinfo.
19723         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
19724         * doc/gnulib.texi (Windows sockets): Fix typo.
19725
19726 2010-09-25  Bruno Haible  <bruno@clisp.org>
19727
19728         Tests for module 'regex-quote'.
19729         * modules/regex-quote-tests: New file.
19730         * tests/test-regex-quote.c: New file.
19731
19732         New module 'regex-quote'.
19733         * lib/regex-quote.h: New file.
19734         * lib/regex-quote.c: New file.
19735         * modules/regex-quote: New file.
19736         Suggested by Reuben Thomas <rrt@sc3d.org>.
19737
19738 2010-09-24  Bruno Haible  <bruno@clisp.org>
19739
19740         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
19741         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
19742
19743 2010-09-23  Bruno Haible  <bruno@clisp.org>
19744
19745         setenv: Relax license.
19746         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
19747         Blake.
19748         Requested by Eric Blake.
19749
19750 2010-09-22  Bruno Haible  <bruno@clisp.org>
19751
19752         termios: Relax license.
19753         * modules/termios (License): Change to LGPLv2+.
19754         Requested by Eric Blake.
19755
19756 2010-09-22  Bruno Haible  <bruno@clisp.org>
19757
19758         threadlib: Allow the package to change the default to 'no'.
19759         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
19760         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
19761         Reported by Paul Eggert.
19762
19763 2010-09-22  Pádraig Brady  <P@draigbrady.com>
19764             Bruno Haible  <bruno@clisp.org>
19765
19766         Fix endless loop in mbmemcasecoll.
19767         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
19768         byte.
19769         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
19770
19771 2010-09-22  Bruno Haible  <bruno@clisp.org>
19772
19773         Tests for module 'memcoll'.
19774         * modules/memcoll-tests: New file.
19775         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
19776
19777         memcoll, xmemcoll: Clarify size vs. length.
19778         * modules/memcoll.c (memcoll0): Clarify specification.
19779         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
19780         passed to collate_error.
19781
19782 2010-09-22  Bruno Haible  <bruno@clisp.org>
19783
19784         Tests for module 'memcasecmp'.
19785         * modules/memcasecmp-tests: New file.
19786         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
19787
19788 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
19789
19790         * lib/pthread.in.h: Add split double-inclusion guard, and include
19791         system <pthread.h> if there is one.  Use @@-style as in other
19792         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
19793         pthread.h doesn't.
19794         (pthread_mutexattr_destroy, pthread_mutexattr_init):
19795         (pthread_mutexattr_settype, pthread_mutex_trylock):
19796         New static inline functions, if there's no system <pthread.h>.
19797         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
19798         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
19799         Approximate with mutexes if the system lacks spinlocks, as in
19800         MacOS.
19801         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
19802         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
19803         @@-style.  Check for spinlocks separately.
19804         (gl_PTHREAD_DEFAULTS): New macro.
19805         * modules/pthread: Redo to use a more typical style for in.h files.
19806
19807 2010-09-21  Eric Blake  <eblake@redhat.com>
19808
19809         net_if: enhance tests
19810         * tests/test-net_if.c (main): Move signature checks earlier.
19811         Print failures to stderr.
19812         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
19813         Document the bug that we do not yet fix.
19814
19815 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
19816
19817         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
19818         about gnulib, not GSS.
19819
19820 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
19821
19822         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
19823         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
19824         for Emacs.
19825         * build-aux/pmccabe2html: Make Makefile.am example code more
19826         cut-and-paste friendly.
19827
19828 2010-09-21  Simon Josefsson  <simon@josefsson.org>
19829
19830         * tests/test-net_if.c: New file.
19831         * modules/net_if-tests: New file.
19832
19833 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
19834
19835         pthread: add pthread_spin_destroy
19836         * lib/pthread.in.h (pthread_spin_destroy): New function.
19837
19838 2010-09-19  Bruno Haible  <bruno@clisp.org>
19839
19840         gnulib-tool: Fix --help output.
19841         * gnulib-tool (func_usage): Fix help message.
19842         Reported by Reuben Thomas <rrt@sc3d.org>.
19843
19844 2010-09-18  Jim Meyering  <meyering@redhat.com>
19845
19846         maint.mk: avoid unexpanded \n in two diagnostics
19847         * top/maint.mk (sc_prohibit_always_true_header_tests):
19848         Don't use a literal \n in a halt=... assignment.  It would not be
19849         expanded, and the two \n bytes would appear in the diagnostic output
19850         rather than the desired newline.  Use halt=$$(printf ... instead.
19851         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
19852
19853 2010-09-18  Bruno Haible  <bruno@clisp.org>
19854
19855         netinet_in: Doc tweak.
19856         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
19857         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
19858
19859 2010-09-18  Jim Meyering  <meyering@redhat.com>
19860
19861         init.sh: correct an outdated comment
19862         * tests/init.sh (create_exe_shims_):  s/function/alias/
19863
19864         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
19865         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
19866         a file named "*.exe" is removed between the glob expansion and the
19867         processing of that oddly named file.
19868
19869 2010-09-17  Eric Blake  <eblake@redhat.com>
19870
19871         mirbsd: add some more support
19872         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
19873         in BSD family.
19874         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
19875         devices as OpenBSD.
19876         * m4/host-os.m4 (mirbsd): Add MirBSD.
19877
19878         tests: fix unportable assumption on sys/wait.h
19879         * tests/test-sys_wait.c (main): Relax test.
19880         * tests/test-stdlib.c (main): Likewise.
19881
19882         init.sh: accomodate directory with no .exes
19883         * tests/init.sh: Accomodate directory containing only scripts.
19884
19885         tests: avoid compiler warning
19886         * tests/test-stdlib.c (main): Use the variable.
19887
19888         fdutimens, fdutimensat: update signature, again
19889         * lib/utimens.h (gl_futimens): Delete, and move signature...
19890         (fdutimens): ...here.
19891         (fdutimensat): Rearrange signature.
19892         (lutimensat): Rename variable for clarity.
19893         * lib/fdutimensat.c (fdutimensat): Update signature.
19894         * lib/utimens.c (fdutimens): Likewise.
19895         (gl_futimens): Delete.
19896         (utimens, lutimens): Update callers.
19897         * lib/futimens.c (futimens): Likewise.
19898         * tests/test-fdutimensat.c: Likewise.
19899         * tests/test-utimens.c: Likewise.
19900         * tests/test-futimens.h: Update comment.
19901         * NEWS: Mention this.
19902         Suggested by Paul Eggert.
19903
19904 2010-09-17  Bruno Haible  <bruno@clisp.org>
19905
19906         Take over the maintenance of some older macros from Autoconf.
19907         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
19908         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
19909         GNU Autoconf.
19910         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
19911         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
19912
19913 2010-09-17  Eric Blake  <eblake@redhat.com>
19914
19915         fdutimensat: drop atflag validation
19916         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
19917         with valid fd, to close a race scenario where futimens is
19918         unsupported and FILE was replaced by a symlink.
19919         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
19920         accordingly.
19921         Suggested by Paul Eggert.
19922
19923 2010-09-16  Bruno Haible  <bruno@clisp.org>
19924
19925         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
19926         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
19927
19928 2010-09-16  Bruno Haible  <bruno@clisp.org>
19929
19930         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
19931         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
19932         login_tty exists.
19933         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
19934
19935 2010-09-16  Bruno Haible  <bruno@clisp.org>
19936
19937         login_tty: Make the replacement code work on BSD systems.
19938         * lib/login_tty.c: Include <sys/ioctl.h>.
19939         (login_tty): Use ioctl TIOCSCTTY when available.
19940         * modules/login_tty (Depends-on): Add sys_ioctl.
19941         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
19942
19943 2010-09-16  Bruno Haible  <bruno@clisp.org>
19944
19945         login_tty: Stricter unit test.
19946         * modules/login_tty-tests (Depends-on): Add tcgetsid.
19947         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
19948         and tcgetsid() after login_tty.
19949         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
19950
19951 2010-09-16  Bruno Haible  <bruno@clisp.org>
19952
19953         New module 'tcgetsid'.
19954         * lib/tcgetsid.c: New file.
19955         * m4/tcgetsid.m4: New file.
19956         * modules/tcgetsid: New file.
19957         * modules/termios (Depends-on): Add c++defs, warn-on-use.
19958         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
19959         GNULIB_TCGETSID, HAVE_TCGETSID.
19960         * lib/termios.in.h: Include <sys/types.h>.
19961         (tcgetsid): New declaration.
19962         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
19963         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
19964         * doc/posix-functions/tcgetsid.texi: Mention the new module.
19965         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
19966
19967 2010-09-16  Bruno Haible  <bruno@clisp.org>
19968
19969         Tests for module 'termios'.
19970         * modules/termios-c++-tests: New file.
19971         * modules/termios-tests: New file.
19972         * tests/test-termios-c++.cc: New file.
19973         * tests/test-termios.c: New file.
19974
19975         New module 'termios'.
19976         * modules/termios: New file.
19977         * lib/termios.in.h: New file.
19978         * m4/termios_h.m4: New file.
19979         * doc/posix-headers/termios.texi: Mention the new module.
19980
19981 2010-09-16  Eric Blake  <eblake@redhat.com>
19982
19983         fdutimensat: add an atflag parameter
19984         * lib/fdutimensat.c (fdutimensat): Add new parameter.
19985         * lib/utimens.h (fdutimensat): Update prototype.
19986         * tests/test-fdutimensat.c: Adjust test to match.
19987         * NEWS: Document the change.
19988         Suggested by Paul Eggert.
19989
19990 2010-09-16  Bruno Haible  <bruno@clisp.org>
19991
19992         Fix typos in comments.
19993         * lib/striconveh.h: Fix typo in comment.
19994         * lib/login_tty.c (login_tty): Likewise.
19995
19996 2010-09-15  Bruno Haible  <bruno@clisp.org>
19997
19998         stdlib: clarify MirBSD WEXITSTATUS bug
19999         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
20000         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
20001
20002 2010-09-15  Eric Blake  <eblake@redhat.com>
20003
20004         stdlib: work around MirBSD WEXITSTATUS bug
20005         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
20006         * modules/stdlib (Depends-on): Add sys_wait.
20007         * tests/test-sys_wait.c (main): Enhance test.
20008         * tests/test-stdlib.c (main): Likewise.
20009         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
20010
20011         docs: mention MacOS issue with WEXITSTATUS(constant)
20012         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
20013         issue.
20014         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
20015
20016         strnlen: add tests
20017         * modules/strnlen-tests: New file.
20018         * tests/test-strnlen.c: Likewise.
20019
20020 2010-09-14  Bruno Haible  <bruno@clisp.org>
20021
20022         unistr/base: Avoid link errors when module 'libunistring' is also used.
20023         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
20024         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
20025         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
20026         Declare also when HAVE_LIBUNISTRING is set.
20027         Reported by Pádraig Brady <P@draigbrady.com>.
20028
20029 2010-09-14  Eric Blake  <eblake@redhat.com>
20030
20031         test-rawmemchr: make more robust
20032         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
20033         (Depends-on, configure.ac): Add needed prerequisites to use it.
20034         * modules/memchr-tests (Files, Depends-on, configure.ac):
20035         Likewise, to avoid implicit reliance on memchr module prereqs.
20036         * tests/test-memchr.c (main): Ensure proper masking.
20037         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
20038         reads.
20039
20040         memchr: detect glibc Alpha bug
20041         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
20042         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
20043         Alpha.
20044         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
20045         * tests/test-memchr.c (main): Enhance test.
20046         Reported by Nelson H. F. Beebe.
20047
20048 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
20049
20050         fts, getcwd, glob: audit for dirfd returning -1
20051         * lib/fts.c (opendir): Remove #define; no longer used.
20052         (opendirat): New arg PDIR_FD.  All callers changed.
20053         (fts_build, _opendir2): Use new opendirat to avoid the need for
20054         dirfd, or for checking whether dirfd returns a negative value.
20055         Don't use opendir; always use openat followed by fdopendir.
20056         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
20057         it.
20058         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
20059         returns -1 here.
20060         * modules/fts (Depends-on): Remove dirfd.
20061         * modules/getcwd (Depends-on): Likewise.
20062
20063 2010-09-13  Eric Blake  <eblake@redhat.com>
20064
20065         float: fix broken MirBSD header
20066         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
20067         * doc/posix-headers/float.texi (float.h): Document it.
20068
20069 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
20070
20071         fts: use O_NOFOLLOW to avoid race condition when opening a directory
20072         * lib/fts.c (opendirat): New arg extra_flags.
20073         (__opendir2): Use it to avoid following symlinks when opening
20074         a directory, if symlinks are not supposed to be followed.  See
20075         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
20076
20077         fdopendir: preserve argument fd before returning
20078         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
20079         (fdopendir_with_dup, fd_clone_opendir): New static functions.
20080         (fdopendir): Use them, arranging for FD to be open to the same
20081         directory that it was when it started.  (It might be temporarily
20082         closed while fdopendir is running, so this not thread- or
20083         signal-safe.)  Be careful to do the right thing even when file
20084         descriptors are scarce and dup fails with errno == EMFILE.  See
20085         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
20086
20087 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
20088
20089         regex: Pass the system regex if its only problem is 32-bit regoff_t.
20090         * NEWS: Document change.
20091         * m4/regex.m4: Disable test for regoff_t size.
20092
20093 2010-09-13  Jim Meyering  <meyering@redhat.com>
20094
20095         fts: don't operate on an invalid file descriptor after failed dup
20096         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
20097         negative file descriptor.
20098
20099 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
20100
20101         savedir: add streamsavedir, deprecate fdsavedir
20102         * NEWS: Mention deprecation of fdsavedir.
20103         * lib/savedir.c (streamsavedir): New extern function, whose name
20104         ends in "savedir" to be consistent with the others.  This differs
20105         from savedirstream in that it doesn't close its argument.  The
20106         next version of GNU tar will use this instead of fdsavedir, to
20107         avoid some race conditions and conserve file descriptors.
20108         (savedirstream): Reimplement as a wrapper around streamsavedir.
20109         (fdsavedir): Add a comment deprecating this function.  As far as
20110         I know, only GNU tar used it, and GNU tar doesn't need it any more.
20111         * lib/savedir.h (streamsavedir): New decl.
20112         (fdsavedir): Add a comment deprecating this.
20113
20114 2010-09-10  Bruno Haible  <bruno@clisp.org>
20115
20116         langinfo: Fix last commit.
20117         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
20118         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
20119         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20120
20121 2010-09-10  Bruno Haible  <bruno@clisp.org>
20122
20123         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
20124         * lib/progreloc.c (O_EXEC): Define fallback.
20125
20126 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
20127
20128         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
20129         * NEWS: Document recent changes to fcntl-h.
20130         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
20131         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
20132         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
20133         Similarly for O_SEARCH; this last was already true, but not documented.
20134         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
20135         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
20136         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
20137         Likewise.
20138         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
20139         is zero, not whether it is defined.
20140         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
20141         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
20142         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
20143
20144 2010-09-10  Bruno Haible  <bruno@clisp.org>
20145
20146         langinfo, nl_langinfo: Fix for IRIX 5.3.
20147         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
20148         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
20149         HAVE_LANGINFO_YESEXPR.
20150         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
20151         HAVE_LANGINFO_YESEXPR.
20152         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
20153         HAVE_LANGINFO_T_FMT_AMPM is 0.
20154         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
20155         HAVE_LANGINFO_YESEXPR is 0.
20156         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
20157         NOEXPR.
20158         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
20159         * doc/posix-functions/nl_langinfo.texi: Likewise.
20160         Reported by Eric Blake.
20161
20162 2010-09-10  Bruno Haible  <bruno@clisp.org>
20163
20164         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
20165         * doc/glibc-functions/login_tty.texi: Mention the include file problem
20166         on FreeBSD 8.0 and OpenBSD 4.6.
20167         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
20168         * m4/pty_h.m4 (gl_PTY_H): Likewise.
20169         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
20170         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
20171         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
20172         ac_includes_default.
20173         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
20174
20175 2010-09-09  Eric Blake  <eblake@redhat.com>
20176
20177         strsignal: work around NetBSD bug
20178         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
20179         * lib/string.in.h (includes): Likewise.
20180         * doc/posix-functions/strsignal.texi (strsignal): Document the
20181         bug.
20182         Reported by Nelson H. F. Beebe.
20183
20184         gnulib-tool: work with NetBSD /bin/sh
20185         * gnulib-tool (func_cache_var, func_cache_lookup_module)
20186         (func_get_description, func_get_comment, func_get_status)
20187         (func_get_notice, func_get_applicability, func_get_filelist)
20188         (func_get_dependencies, func_get_autoconf_early_snippet)
20189         (func_get_autoconf_snippet, func_get_automake_snippet)
20190         (func_get_include_directive, func_get_link_directive)
20191         (func_get_license, func_get_maintainer, func_import): Avoid
20192         shell syntax errors from parsing syntax extensions.
20193
20194 2010-09-09  Bruno Haible  <bruno@clisp.org>
20195
20196         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
20197         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
20198         a reliable way to determine whether the 'alias' command works.
20199
20200 2010-09-08  Jim Meyering  <meyering@redhat.com>
20201
20202         init.sh: penalize a set-x-impaired shell; don't disqualify it
20203         * tests/init.sh: Too many shells corrupt application stderr when
20204         you set -x, so we can't afford to disqualify them, since at least
20205         on Irix-6.5, that would disqualify all bourne shells.
20206         Instead, use a two-pass approach.
20207         On the first pass, try to find a shell that meets the stricter
20208         condition that set -x does not corrupt stderr.
20209         If no shell meets the stricter condition, retest each candidate
20210         shell, but without that extra condition.  Finally, when
20211         VERBOSE=yes is requested and set -x might cause trouble, simply
20212         issue a warning and refrain from enabling debug output.
20213
20214 2010-09-08  Eric Blake  <eblake@redhat.com>
20215
20216         unsetenv: fix OpenBSD bug
20217         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
20218         * doc/posix-functions/unsetenv.texi (unsetenv): Update
20219         documentation.
20220         Reported by Jim Meyering.
20221
20222         strtod: work around IRIX 6.5 bug
20223         * lib/strtod.c (strtod): Reparse number on shorter string if
20224         exponent parse was invalid.
20225         * tests/test-strtod.c (main): Add check for "0x1p 2".
20226         Reported by Tom G. Christensen.
20227
20228         getopt: optimize previous patch
20229         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
20230         empty variable.  Speed up awk script.
20231         Reported by Paolo Bonzini.
20232
20233 2010-09-08  Jim Meyering  <meyering@redhat.com>
20234
20235         test.sh: disqualify shells for which set -x corrupts stderr
20236         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
20237         and OpenBSD 4.7.  They make it so with "set -x", environment settings
20238         appear in stderr output.  For example, this command:
20239             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
20240         prints "P=1" on those two systems:
20241
20242 2010-09-08  Bruno Haible  <bruno@clisp.org>
20243
20244         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
20245         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
20246         commands, because some shells ignore redirections when there is an
20247         error in the command lookup.
20248         Reported by Eric Blake.
20249
20250 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
20251
20252         * lib/regex.h: Fix a mention of `regex_compile' (should be
20253         `re_compile_pattern').
20254         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
20255         (re_set_registers): Correct name of parameter in comment.
20256
20257         * doc/regex.texi: Add documentation for missing syntax flags.
20258         Remove commented-out documentation of defunct syntax option
20259         RE_NO_EMPTY_ALTS.
20260         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
20261         Add documentation of re_set_registers.
20262         Document trick to re-use a pattern buffer by setting fastmap manually.
20263         Update documentation of struct re_pattern_buffer per public members.
20264         Uncomment documentation of equivalence class operators and
20265         collating symbol operators, since they are now implemented,
20266         Explain leftmost-longest matching in relation to alternatives.
20267         Tidy documentation of substring matching.
20268         Remove POSIX documentation, which is done better in
20269         glibc, and refer the reader there. Keep BSD API documentation, as
20270         that is not readily available elsewhere.
20271
20272 2010-09-07  Eric Blake  <eblake@redhat.com>
20273
20274         getopt: handle POSIXLY_CORRECT set but not exported
20275         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
20276         export state of POSIXLY_CORRECT, due to bash set -o posix.
20277         Reported by Dustin J. Mitchell.
20278
20279 2010-09-05  Bruno Haible  <bruno@clisp.org>
20280
20281         gnulib-tool: Highlight the changed options.
20282         * gnulib-tool (func_usage): Display the --import, --add-import,
20283         --remove-import explanations in bold font.
20284
20285 2010-09-06  Karl Berry  <karl@gnu.org>
20286
20287         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
20288
20289 2010-09-05  Bruno Haible  <bruno@clisp.org>
20290
20291         uniwidth/width: Update comment.
20292         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
20293         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
20294
20295 2010-09-05  Bruno Haible  <bruno@clisp.org>
20296
20297         isinf, isnan: Relax license.
20298         * modules/isinf (License): Change from GPL to LGPL, with consent from
20299         Ben Pfaff.
20300         * modules/isnan (License): Likewise.
20301         Requested by Ludovic Courtès.
20302
20303 2010-09-04  Bruno Haible  <bruno@clisp.org>
20304
20305         gnulib-tool: Help migration from --import to --add-import or --update.
20306         * gnulib-tool: Emit a verbose error message when --import is used
20307         without any module name.
20308
20309 2010-09-04  Bruno Haible  <bruno@clisp.org>
20310
20311         Update doc about gnulib-tool.
20312         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
20313         'gnulib-tool --update' in more detail.
20314         Reported by Eric Blake.
20315
20316 2010-09-04  Bruno Haible  <bruno@clisp.org>
20317
20318         gnulib-tool: Change --import. New options --add/remove-import.
20319         * gnulib-tool: New options --add-import, --remove-import.
20320         (func_usage): Document them.
20321         (have_associative): Define always.
20322         (func_import): In import mode, don't merge the specified settings with
20323         the cached settings. Implement remove-import mode.
20324         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
20325         Explain when to use them versus --import.
20326         (Simple update): Use --add-import instead of --import.
20327         * NEWS: Mention the change.
20328
20329 2010-09-04  Bruno Haible  <bruno@clisp.org>
20330
20331         * doc/gnulib-tool.texi (Initial import): Update paragraph about
20332         separate gnulib.mk.
20333
20334 2010-09-04  Bruno Haible  <bruno@clisp.org>
20335
20336         gnulib-tool: Don't talk about CVS any more.
20337         * gnulib-tool (func_usage, func_import): Write "version control"
20338         instead of CVS.
20339
20340 2010-09-04  Jim Meyering  <meyering@redhat.com>
20341
20342         maint.mk: avoid obscure sc_copyright_check failure in coreutils
20343         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
20344         false positives (whose names may be ill-chosen) when searching
20345         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
20346         would cause a false-positive.
20347
20348         avoid coreutils "make distcheck" failure
20349         Coreutils tests with an absolute build directory name that contains
20350         a space.  Not quoting this directory name caused a failure.
20351         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
20352         * tests/test-vc-list-files-cvs.sh: Likewise.
20353
20354 2010-09-04  Bruno Haible  <bruno@clisp.org>
20355
20356         gnulib-tool: Avoid error when run in a package without Makefile.am.
20357         * gnulib-tool: When collecting the m4dirs in a package that does not
20358         have a Makefile.am, eliminate those directories that contain no
20359         gnulib-cache.m4. Fix expression that counts these directories.
20360
20361 2010-09-04  Bruno Haible  <bruno@clisp.org>
20362
20363         update-copyright test: Improve output when perl is missing or too old.
20364         * tests/test-update-copyright.sh: Move test of Perl version down after
20365         the test whether Perl exists. Provide an explanation relating Perl's
20366         error message to Automake's SKIP: message.
20367
20368 2010-09-04  Bruno Haible  <bruno@clisp.org>
20369
20370         Don't augment PATH in TESTS_ENVIRONMENT.
20371         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
20372         set abs_aux_dir instead of augmenting PATH.
20373         * modules/vc-list-files-tests (Makefile.am): Likewise.
20374         * tests/test-update-copyright.sh: Augment PATH here.
20375         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
20376         path_prepend_.
20377         * tests/test-vc-list-files-git.sh: Likewise.
20378
20379 2010-09-04  Jim Meyering  <meyering@redhat.com>
20380
20381         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
20382         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
20383
20384 2010-09-04  Bruno Haible  <bruno@clisp.org>
20385
20386         strdup: Fix compilation error in C++ mode.
20387         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
20388         the macro.
20389
20390 2010-09-04  Bruno Haible  <bruno@clisp.org>
20391
20392         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
20393         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
20394         macro into a function.
20395         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
20396
20397 2010-09-04  Bruno Haible  <bruno@clisp.org>
20398
20399         Set PATH_SEPARATOR the same way autoconf does.
20400         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
20401         the value of PATH_SEPARATOR the same way autoconf-generated configure
20402         scripts do.
20403         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
20404         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
20405
20406 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
20407
20408         Set PATH_SEPARATOR the same way autoconf does.
20409         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
20410         the same way autoconf-generated configure scripts do.
20411         * posix-modules: Likewise.
20412
20413 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
20414
20415         hash: fix safe_hasher const typo
20416         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
20417         const; otherwise, there is a type error later.
20418
20419 2010-09-02  Jim Meyering  <meyering@redhat.com>
20420
20421         test-update-copyright.sh: require perl 5.8.0
20422         * tests/test-update-copyright.sh: Require 5.8.0,
20423         which Tom G. Christensen has confirmed is adequate,
20424         while 5.6.1 is not.
20425
20426 2010-09-02  Eric Blake  <eblake@redhat.com>
20427
20428         tests: init.sh improvements for re-exec'ing with zsh
20429         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
20430         -vx through shell re-exec.
20431         Reported by Tom G. Christensen.
20432
20433         wctype: fix typo in previous commit
20434         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
20435         Reported by Ludovic Courtès.
20436
20437 2010-09-02  Jim Meyering  <meyering@redhat.com>
20438
20439         test-update-copyright.sh: skip test if Perl is too old
20440         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
20441         Reported by Tom G. Christensen.
20442
20443 2010-09-02  Bruno Haible  <bruno@clisp.org>
20444
20445         wctype: Avoid compilation error on IRIX 6.5.30.
20446         * lib/wctype.in.h (iswblank): Declare with a replacement if
20447         REPLACE_ISWBLANK is set.
20448         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
20449         declared. Set REPLACE_ISWBLANK.
20450         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
20451         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
20452         * doc/posix-headers/wctype.texi: Likewise.
20453         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20454
20455 2010-09-01  Bruno Haible  <bruno@clisp.org>
20456
20457         New module 'socketlib'.
20458         * modules/socketlib: New file.
20459         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
20460         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
20461         * modules/sockets (Depends-on): Add socketlib.
20462         Suggested by Sam Steingold <sds@gnu.org>.
20463
20464 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
20465
20466         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
20467
20468         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
20469         when one needs search access to a directory but not read access.
20470         On systems where it is available, it works in some cases where
20471         O_RDONLY does not, namely on directories that are searchable but
20472         not readable, and which need only to be searchable.  If O_SEARCH
20473         is not available, fall back to the traditional method of using
20474         O_RDONLY.
20475
20476         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
20477         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
20478         when opening a directory that needs only to be searchable.
20479         * lib/chdir-safer.c (chdir_no_follow): Likewise.
20480         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
20481         * lib/openat-proc.c (openat_proc_name): Likewise.
20482         * lib/openat.c (openat_needs_fchdir): Likewise.
20483         * lib/save-cwd.c (save_cwd): Likewise.
20484         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
20485
20486 2010-08-28  Bruno Haible  <bruno@clisp.org>
20487
20488         New module 'host-cpu-c-abi'.
20489         * modules/host-cpu-c-abi: New file.
20490         * m4/host-cpu-c-abi.m4: New file, based on part of
20491         clisp/src/m4/general.m4.
20492         Requested by Sam Steingold <sds@gnu.org>.
20493
20494 2010-08-31  Eric Blake  <eblake@redhat.com>
20495         and Jim Meyering  <meyering@redhat.com>
20496
20497         hash: factor, and guard against misbehaving hasher function
20498         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
20499         of table->hasher's return value.  Also protect against a hash value
20500         so large that adding it to table->bucket results in a NULL pointer.
20501         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
20502         Use it in place of open-coded check-and-abort.
20503
20504 2010-08-30  Bruno Haible  <bruno@clisp.org>
20505
20506         hash: silence spurious clang warning
20507         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
20508         Reported by Eric Blake.
20509
20510 2010-08-30  Eric Blake  <eblake@redhat.com>
20511
20512         strstr, memmem, strcasestr: avoid leaked shell message
20513         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
20514         FreeBSD.
20515         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
20516         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
20517
20518         tests: silence clang warning
20519         * tests/test-malloca.c (do_allocation): Avoid dead store.
20520
20521 2010-08-29  Bruno Haible  <bruno@clisp.org>
20522
20523         gettext: Fix recent mistake.
20524         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
20525
20526 2010-08-29  Bruno Haible  <bruno@clisp.org>
20527
20528         selinux-h: Offer a --without-selinux option.
20529         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
20530         --without-selinux was specified, skip all tests and define
20531         HAVE_SELINUX_SELINUX_H to 0.
20532         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
20533         set LIB_SELINUX to empty.
20534         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
20535         gl_LIBSELINUX. If --without-selinux was specified, replace
20536         selinux/context.h.
20537         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
20538
20539 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20540             Bruno Haible  <bruno@clisp.org>
20541
20542         Make the module 'realloc-gnu' work again on AIX and OSF/1.
20543         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
20544         of HAVE_REALLOC.
20545         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
20546         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
20547         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
20548         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
20549
20550 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20551             Bruno Haible  <bruno@clisp.org>
20552
20553         Make the module 'calloc-gnu' work again on AIX and OSF/1.
20554         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
20555         HAVE_CALLOC.
20556         * lib/xmalloc.c: Update accordingly.
20557         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
20558         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
20559         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
20560
20561 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20562             Bruno Haible  <bruno@clisp.org>
20563
20564         Make the module 'malloc-gnu' work again on AIX and OSF/1.
20565         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
20566         HAVE_MALLOC.
20567         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
20568         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
20569         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
20570
20571 2010-08-29  Bruno Haible  <bruno@clisp.org>
20572
20573         Update modules list.
20574         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
20575         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
20576         (String handling <string.h>): Add astrxfrm.
20577         (File system functions): Add readlinkat.
20578
20579 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20580
20581         Tests for module 'realloc-gnu'.
20582         * modules/realloc-gnu-tests: New file.
20583         * tests/test-realloc-gnu.c: New file.
20584
20585         Tests for module 'calloc-gnu'.
20586         * modules/calloc-gnu-tests: New file.
20587         * tests/test-calloc-gnu.c: New file.
20588
20589         Tests for module 'malloc-gnu'.
20590         * modules/malloc-gnu-tests: New file.
20591         * tests/test-malloc-gnu.c: New file.
20592
20593 2010-08-28  Bruno Haible  <bruno@clisp.org>
20594
20595         Rename module 'realloc' -> 'realloc-gnu'.
20596         * modules/realloc-gnu: New file, copied from modules/realloc.
20597         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
20598         obsolete.
20599         * modules/mgetgroups (Depends-on): Update.
20600         * doc/posix-functions/realloc.texi: Update.
20601         * NEWS: Mention the change.
20602
20603         Rename module 'calloc' -> 'calloc-gnu'.
20604         * modules/calloc-gnu: New file, copied from modules/calloc.
20605         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
20606         obsolete.
20607         * doc/posix-functions/calloc.texi: Update.
20608         * NEWS: Mention the change.
20609
20610         Rename module 'malloc' -> 'malloc-gnu'.
20611         * modules/malloc-gnu: New file, copied from modules/malloc.
20612         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
20613         obsolete.
20614         * modules/argp (Depends-on): Update.
20615         * modules/regex (Depends-on): Update.
20616         * doc/posix-functions/malloc.texi: Update.
20617         * NEWS: Mention the change.
20618
20619 2010-08-28  Eric Blake  <eblake@redhat.com>
20620
20621         pread, pwrite: add missing dependency
20622         * modules/pread (Depends-on): Add extensions.
20623         * modules/pwrite (Depends-on): Likewise.
20624
20625 2010-08-28  Bruno Haible  <bruno@clisp.org>
20626
20627         unistr/u*-strchr: Fix tests dependencies.
20628         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
20629         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
20630         Reported by Ian Beckwith <ianb@erislabs.net>.
20631
20632 2010-08-28  Bruno Haible  <bruno@clisp.org>
20633
20634         read-file: Don't occupy too much unused memory.
20635         * lib/read-file.c (fread_file): Shrink the buffer at the end.
20636
20637 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
20638             Eric Blake  <eblake@redhat.com>
20639             Bruno Haible  <bruno@clisp.org>
20640
20641         read-file: Avoid memory reallocations with regular files.
20642         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
20643         (fread_file): With regular files, use the remaining length as the
20644         initial buffer size.  Check against overflow.
20645         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
20646         sys_stat.
20647
20648 2010-08-28  Bruno Haible  <bruno@clisp.org>
20649
20650         ftello: Relax license.
20651         * modules/ftello (License): Relax to LGPLv2+.
20652         Reported by Eric Blake.
20653
20654 2010-08-28  Bruno Haible  <bruno@clisp.org>
20655
20656         Avoid relocwrapper link errors due to gnulib replacement functions.
20657         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
20658         function.
20659         Reported by Ben Pfaff <blp@cs.stanford.edu>.
20660
20661 2010-08-28  Bruno Haible  <bruno@clisp.org>
20662
20663         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
20664         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
20665         defined.
20666         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
20667         Suggested by Eric Blake.
20668
20669 2010-08-28  Bruno Haible  <bruno@clisp.org>
20670
20671         sys_socket, netdb: Ensure socklen_t gets defined.
20672         * modules/sys_socket (Depends-on): Add socklen.
20673         * modules/netdb (Depends-on): Likewise.
20674         * modules/getaddrinfo (Depends-on): Remove socklen.
20675         * modules/getsockopt (Depends-on): Likewise.
20676         * modules/setsockopt (Depends-on): Likewise.
20677         * tests/test-sys_socket.c: Check that socklen_t is defined.
20678         * tests/test-netdb.c: Likewise.
20679         * m4/socklen.m4: Update comments.
20680         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
20681
20682 2010-08-27  Eric Blake  <eblake@redhat.com>
20683
20684         login_tty: add missing dependency
20685         * modules/login_tty (Depends-on): Add pty.
20686
20687 2010-08-26  Eric Blake  <eblake@redhat.com>
20688
20689         lib-symbol-versions: fix m4 quoting
20690         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
20691         format for AC_LINK_IFELSE.
20692
20693         glob: fix compile test
20694         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
20695
20696         btowc: fix missing file
20697         * modules/btowc (Files): Also ship locale-fr.m4.
20698
20699         lseek: fix link test
20700         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
20701         AC_LINK_IFELSE.
20702
20703         include_next: silence autoconf 2.68 warning
20704         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
20705         AC_COMPILE_IFELSE as special.
20706         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
20707         autoconf < 2.68.
20708
20709         acl: fix compilation test
20710         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
20711         AC_COMPILE_IFELSE.
20712
20713 2010-08-26  Bruno Haible  <bruno@clisp.org>
20714
20715         Modernize AC_TRY_RUN invocations.
20716         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
20717         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
20718         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
20719         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
20720         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
20721         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
20722         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
20723         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
20724         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
20725         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
20726         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
20727         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
20728         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
20729         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
20730         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
20731         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
20732         gl_MBRLEN_NUL_RETVAL): Likewise.
20733         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
20734         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
20735         Likewise.
20736         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
20737         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
20738         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
20739         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
20740         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
20741         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
20742         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
20743         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
20744         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
20745         Likewise.
20746         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
20747         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
20748         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
20749         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
20750         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
20751         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
20752         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
20753         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
20754         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
20755         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
20756
20757 2010-08-26  Bruno Haible  <bruno@clisp.org>
20758
20759         Modernize AC_TRY_LINK invocations.
20760         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
20761         AC_TRY_LINK.
20762         * m4/argp.m4 (gl_ARGP): Likewise.
20763         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
20764         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
20765         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
20766         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
20767         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
20768         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
20769         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
20770         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
20771         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
20772         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
20773         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
20774         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
20775         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
20776         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
20777         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
20778         * m4/hostent.m4 (gl_HOSTENT): Likewise.
20779         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
20780         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
20781         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
20782         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
20783         Likewise.
20784         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
20785         Likewise.
20786         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
20787         Likewise.
20788         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
20789         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
20790         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
20791         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
20792         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
20793         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
20794         * m4/servent.m4 (gl_SERVENT): Likewise.
20795         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
20796         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
20797         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
20798         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
20799         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
20800         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
20801         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
20802         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
20803         * modules/tsearch-tests (configure.ac): Likewise.
20804
20805 2010-08-26  Bruno Haible  <bruno@clisp.org>
20806
20807         Modernize AC_TRY_COMPILE invocations.
20808         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
20809         AC_TRY_COMPILE.
20810         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
20811         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
20812         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
20813         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
20814         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
20815         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
20816         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
20817         * m4/lock.m4 (gl_LOCK): Likewise.
20818         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
20819         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
20820         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
20821         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
20822         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
20823         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
20824         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
20825         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
20826         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
20827         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
20828         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
20829         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
20830         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
20831         extraneous semicolon.
20832
20833 2010-08-26  Jim Meyering  <meyering@redhat.com>
20834
20835         stat-time: relax license LGPL
20836         * modules/stat-time (License): Change from GPL to LGPL,
20837         with consent from all contributors, for use in libguile.
20838         Requested by Ludovic Courtès.
20839
20840 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
20841
20842         poll: return immediately on POLLHUP.
20843         * lib/poll.c (poll): Always set timeout before wait_timeout is
20844         computed.
20845
20846 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20847
20848         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
20849         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
20850         rmdir ("dir/.//"), unlinkat.
20851
20852 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
20853
20854         stdbool: avoid spurious failure with modern xlc
20855         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
20856
20857 2010-08-24  Bruno Haible  <bruno@clisp.org>
20858
20859         getloadavg: simplify code
20860         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
20861         gl_have_func. Update comments.
20862
20863 2010-08-24  Eric Blake  <eblake@redhat.com>
20864
20865         getloadavg: don't define SVR4 on cygwin
20866         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
20867         only define SVR4 when -lkvm is required.
20868         Reported by Yaakov Selkowitz.
20869
20870 2010-08-24  Bruno Haible  <bruno@clisp.org>
20871
20872         priv-set: fix comment
20873         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
20874
20875 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
20876
20877         priv-set: fix comments
20878         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
20879         to match code, as suggested by David Bartley in:
20880         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
20881
20882 2010-08-23  Eric Blake  <eblake@redhat.com>
20883
20884         stdbool: avoid rejecting clang
20885         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
20886         * tests/test-stdbool.c: Enable more tests if using the system
20887         <stdbool.h> instead of the gnulib replacement.
20888         (main): Move xlc bug test to a runtime test for all compilers.
20889         Reported by Anders Kaseorg.
20890
20891         argz: fix shell quoting issue
20892         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
20893         Reported by Charles Wilson.
20894
20895 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
20896             Erik Faye-Lund <kusmabite@gmail.com>
20897
20898         poll, select: handle ERROR_BROKEN_PIPE.
20899         * lib/poll.c (win32_compute_revents): Return POLLHUP when
20900         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
20901         * lib/select.c (win32_compute_revents): Do not mark a pipe
20902         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
20903
20904 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
20905
20906         fts: allow compilation with C++
20907         * lib/fts_.h: Specify extern "C" linkage with C++.
20908
20909 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20910
20911         Fix gnulib-tool sed script de-commentation for AIX sed.
20912         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
20913         sed.
20914
20915 2010-08-17  Eric Blake  <eblake@redhat.com>
20916
20917         test-stddef: test for (some) offsetof bugs
20918         * tests/test-stddef.c: Enhance test to ensure correct type of
20919         offsetof.
20920         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
20921         that we are not fixing at this time.
20922
20923 2010-08-15  Bruno Haible  <bruno@clisp.org>
20924
20925         stpncpy: Allow stpncpy to be defined as a macro.
20926         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
20927         if it's already correctly declared.
20928         * lib/string.in.h (stpncpy): Undefine before redefining.
20929         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
20930
20931 2010-08-14  Bruno Haible  <bruno@clisp.org>
20932
20933         Rename module 'memxfrm' to 'amemxfrm'.
20934         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
20935         (amemxfrm): Renamed from memxfrm.
20936         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
20937         (amemxfrm): Renamed from memxfrm.
20938         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
20939         * NEWS: Mention the change.
20940         * MODULES.html.sh (String handling <string.h>): Update.
20941         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
20942         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
20943         * lib/unicase/u16-casexfrm.c: Likewise.
20944         * lib/unicase/u32-casexfrm.c: Likewise.
20945         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
20946         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
20947         * lib/uninorm/u16-normxfrm.c: Likewise.
20948         * lib/uninorm/u32-normxfrm.c: Likewise.
20949         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
20950         memxfrm.
20951         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
20952         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
20953         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
20954         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
20955         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
20956         Suggested by Paul Eggert.
20957
20958 2010-08-14  Bruno Haible  <bruno@clisp.org>
20959
20960         Tests for module 'astrxfrm'.
20961         * modules/astrxfrm-tests: New file.
20962         * tests/test-astrxfrm.c: New file.
20963
20964         New module 'astrxfrm'.
20965         * lib/astrxfrm.h: New file.
20966         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
20967         * modules/astrxfrm: New file.
20968
20969 2010-08-14  Reuben Thomas <rrt@sc3d.org>
20970
20971         regex: Tweak doc.
20972         * doc/regex.texi (Overview): Don't mention regex.c.
20973         (GNU Regular Expression Compiling): Likewise.
20974         (Match-end-of-line Operator): Mention 'not_eol'.
20975
20976 2010-08-14  Brian Gough  <bjg@gnu.org>
20977             Bruno Haible  <bruno@clisp.org>
20978
20979         git-merge-changelog: add doc relating to use with bzr and hg.
20980         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
20981
20982 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
20983
20984         pthread: fix pthread.h creation for srcdir != builddir
20985         * modules/pthread (Makefile.am): Fix the rule to work also in a
20986         non-srcdir build.
20987
20988 2010-08-13  Karl Berry  <karl@gnu.org>
20989
20990         * doc/regex.texi (Predefined Syntaxes): @smallexample.
20991         * doc/posix-*/*: force line break before @url of POSIX
20992         specifications.
20993         Suggested by Werner Lemberg.
20994
20995 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
20996
20997         strtod: fix const diagnostic
20998         * lib/strtod.c (strtod): Don't assign const char * to char *,
20999         as this elicits a warning from GCC when warnings are enabled.
21000
21001 2010-08-10  Pádraig Brady <P@draigbrady.com>
21002         and Eric Blake  <eblake@redhat.com>
21003
21004         copy-acl: ignore ENOTSUP on HP-UX
21005         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
21006         so that it is available for HP-UX.
21007         * lib/copy-acl.c (qcopy_acl): Use it.
21008         Reported by Patrick M. Callahan.
21009
21010 2010-08-10  Eric Blake  <eblake@redhat.com>
21011
21012         open, chown: relax license
21013         * modules/open (License): Change to LGPLv2+, with consent by all
21014         authors, for use in augeas.
21015         * modules/chown (License): Likewise.
21016         * modules/lchown (Likewise): Likewise.
21017         Requested by Adam Stokes.
21018
21019 2010-08-09  Karl Berry  <karl@gnu.org>
21020
21021         * build-aux/ar-lib: new file, import from Automake.
21022         * config/srclist.txt: autocheck for updates.
21023
21024 2010-08-09  Eric Blake  <eblake@redhat.com>
21025
21026         readlinkat: adjust client modules
21027         * modules/areadlinkat (Depends-on): Use readlinkat, not
21028         symlinkat.
21029         * modules/areadlinkat-with-size (Depends-on): Likewise.
21030
21031         mknod: be more vocal about danger of running tests as root
21032         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
21033         root, since that is just asking for problems.
21034         Suggested by Bruno Haible, based on a report by Rainer Tammer.
21035
21036         readlinkat: split into its own module
21037         * modules/symlinkat: Split readlinkat...
21038         * modules/readlinkat: ...into separate module.
21039         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
21040         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
21041         * lib/symlinkat.c (readlinkat): Move...
21042         * lib/readlinkat.c: ...into new file.
21043         * modules/symlinkat-tests: Split readlinkat test...
21044         * modules/readlinkat-tests: ...into separate module.
21045         * tests/test-symlinkat.c: Split...
21046         * tests/test-readlinkat.c: ...into new file.
21047         * NEWS: Document the split.
21048         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
21049         * lib/unistd.in.h (readlinkat): Likewise.
21050         Suggested by Bruno Haible.
21051
21052 2010-08-08  Bruno Haible  <bruno@clisp.org>
21053
21054         memxfrm: Speed up.
21055         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
21056         that usually only one call to strxfrm is necessary for each string
21057         part.
21058         Reported by Paul Eggert <eggert@cs.ucla.edu>.
21059
21060 2010-08-07  Karl Berry  <karl@gnu.org>
21061
21062         * doc/posix-headers/limits.texi,
21063         * doc/posix-functions/malloc.texi,
21064         * doc/posix-functions/strsignal.texi: missing @item.
21065         * doc/ld-version-script.texi: spurious leading i.
21066         * doc/regex.texi (Interval Operators): no commas inside @var.
21067
21068 2010-08-01  Bruno Haible  <bruno@clisp.org>
21069
21070         Integrate the regex documentation.
21071         * doc/gnulib.texi: Define 'cn' index.
21072         (Regular expressions): New a chapter that includes regex.texi and
21073         regexprops-generic.texi.
21074         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
21075         syntax.
21076
21077         Whitespace cleanup.
21078         * doc/regex.texi: Remove trailing spaces.
21079
21080         Add regex documentation.
21081         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
21082         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
21083         Written by Kathy A. Hargreaves and Karl Berry.
21084
21085 2010-08-01  Bruno Haible  <bruno@clisp.org>
21086
21087         link: Update documentation.
21088         * doc/posix-functions/link.texi: Update regarding Solaris.
21089
21090 2010-07-31  Bruno Haible  <bruno@clisp.org>
21091
21092         Update modules list.
21093         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
21094         (String handling <string.h>): Add memcmp2, memxfrm.
21095         (Container data structures): Add xlist, xsublist, xoset.
21096         (Core language properties): Add alignof, unused-parameter.
21097         (Process control, Numeric conversion functions <stdlib.h>): Renamed
21098         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
21099         (Unibyte characters <ctype.h>): New section.
21100         (String handling <string.h>): New section.
21101         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
21102         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
21103         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
21104         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
21105         tan, tanh, tanl, y0, y1, yn.
21106         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
21107         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
21108         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
21109         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
21110         unlockpt, vdprintf, vdprintf-posix.
21111         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
21112         (File system functions): Add concat-filename, sys_file, sys_ioctl,
21113         xconcat-filename.
21114         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
21115         getdtablesize, pipe2, pipe2-safer.
21116         (Security): New section.
21117         (Networking functions): Add accept4.
21118         (Signal handling): Add sigpipe.
21119         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
21120         mbmemcasecoll.
21121         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
21122         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
21123         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
21124         pipe-filter-ii.
21125         (Misc): Add argp-version-etc, login_tty, parse-duration.
21126
21127 2010-07-31  Bruno Haible  <bruno@clisp.org>
21128
21129         Improve doc in MODULES.html.
21130         * modules/linkat (Description): Add the word "function".
21131         * modules/mkfifo (Description): Likewise.
21132         * modules/mknod (Description): Likewise.
21133         * modules/remove (Description): Likewise.
21134         * modules/renameat (Description): Likewise.
21135         * modules/stat (Description): Likewise.
21136         * modules/symlink (Description): Likewise.
21137         * modules/unlink (Description): Likewise.
21138
21139 2010-07-31  Bruno Haible  <bruno@clisp.org>
21140
21141         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
21142         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
21143         option --enable/disable-c++ instead of --enable/disable-cxx.
21144         * NEWS: Mention the change.
21145
21146 2010-07-31  Bruno Haible  <bruno@clisp.org>
21147
21148         readlink, areadlink: Relax test a bit.
21149         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
21150         alternative to ENOTDIR.
21151         * tests/test-areadlink.h (test_areadlink): Likewise.
21152         Reported by Rainer Tammer.
21153
21154 2010-07-31  Bruno Haible  <bruno@clisp.org>
21155
21156         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
21157         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
21158         character, perform the search using U_STRCHR.
21159         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
21160         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
21161         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
21162         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
21163         Suggested by Paolo Bonzini.
21164
21165 2010-07-31  Bruno Haible  <bruno@clisp.org>
21166
21167         unistr/u*-strstr: Fix dependencies.
21168         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
21169         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
21170         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
21171
21172 2010-07-31  Bruno Haible  <bruno@clisp.org>
21173
21174         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
21175         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
21176         the beginning of the loop.
21177         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
21178         cases in 'switch' statement.
21179
21180         unistr/u8-strchr: Fix several bugs.
21181         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
21182         the string. When not found, return NULL, not a pointer near the end.
21183
21184         More tests for unistr/u8-strchr.
21185         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
21186         that the function does not read past the first occurrence of the byte
21187         being searched.
21188         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
21189         * tests/unistr/test-u16-strchr.c (main): New function.
21190         * tests/unistr/test-u32-strchr.c (main): New function.
21191
21192 2010-07-31  Bruno Haible  <bruno@clisp.org>
21193
21194         posix-modules: Ignore backup files of documentation files.
21195         * posix-modules: grep only through files named *.texi.
21196
21197 2010-07-31  Bruno Haible  <bruno@clisp.org>
21198
21199         symlinkat: Fix documentation.
21200         * doc/posix-functions/readlinkat.texi: Fix module name.
21201
21202 2010-07-31  Bruno Haible  <bruno@clisp.org>
21203
21204         fchownat: Replace also when chown has the trailing slash bug.
21205         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
21206         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
21207         introduced on 2010-04-10.
21208         Reported by Rainer Tammer.
21209
21210 2010-07-31  Bruno Haible  <bruno@clisp.org>
21211
21212         linkat: Work around AIX 7.1 bug.
21213         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
21214         whether linkat handles trailing slash correctly. If not, replace linkat
21215         and define LINKAT_TRAILING_SLASH_BUG.
21216         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
21217         check whether (fd1,file1) points to a directory if file1 or file2 ends
21218         in a slash. Code taken from lib/link.c.
21219         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
21220         Reported by Rainer Tammer.
21221
21222 2010-07-31  Bruno Haible  <bruno@clisp.org>
21223
21224         Correctly determine whether pow is available in libc on AIX 7 with xlc.
21225         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
21226         This disables an xlc optimization that was causing wrong test results.
21227         Reported by Rainer Tammer.
21228
21229 2010-07-31  Bruno Haible  <bruno@clisp.org>
21230
21231         iconv: Work around AIX 6.1..7.1 bug.
21232         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
21233         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
21234         cross-compiling, guess no on all versions of AIX.
21235         Reported by Rainer Tammer.
21236
21237 2010-07-31  Bruno Haible  <bruno@clisp.org>
21238
21239         readlink: Relax test a bit.
21240         * tests/test-readlink.h (test_readlink): Allow different errno value
21241         when readlink is called with a file name that ends in / and refers to
21242         a file.
21243         Suggested by Eric Blake.
21244         Reported by Rainer Tammer.
21245
21246 2010-07-31  Bruno Haible  <bruno@clisp.org>
21247
21248         copysign: Does not require -lm on glibc systems.
21249         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
21250         gl_COMMON_DOUBLE_MATHFUNC.
21251         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
21252
21253 2010-07-31  Bruno Haible  <bruno@clisp.org>
21254
21255         duplocale: Work around AIX 7.1 bug.
21256         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
21257         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
21258         * lib/duplocale.c (rpl_duplocale): Update comment.
21259         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
21260         Reported by Rainer Tammer.
21261
21262 2010-07-30  Bruno Haible  <bruno@clisp.org>
21263
21264         dirfd: Avoid link error on AIX 7.1.
21265         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
21266         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
21267         exist, set REPLACE_DIRFD.
21268         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
21269         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
21270         * doc/posix-functions/dirfd.texi: Update.
21271         Reported by Rainer Tammer.
21272
21273 2010-07-30  Eric Blake  <eblake@redhat.com>
21274
21275         strtod: next round of AIX fixes
21276         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
21277         exponent.
21278         * tests/test-strtod.c (main): Enhance tests.
21279         * doc/posix-functions/strtod.texi (strtod): Document next bug.
21280         Reported by Rainer Tammer.
21281
21282         futimens: fix configure check
21283         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
21284         Reported by Bruno Haible.
21285
21286 2010-07-30  Bruno Haible  <bruno@clisp.org>
21287
21288         getline: Update regarding AIX.
21289         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
21290         Reported by Rainer Tammer.
21291
21292 2010-07-30  Bruno Haible  <bruno@clisp.org>
21293
21294         wcwidth: Drop replacement on AIX 7.
21295         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
21296         AIX 7.
21297         Reported by Rainer Tammer.
21298
21299 2010-07-30  Bruno Haible  <bruno@clisp.org>
21300
21301         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
21302         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
21303         a 'char *'.
21304         Reported by Rainer Tammer.
21305
21306 2010-07-30  Bruno Haible  <bruno@clisp.org>
21307
21308         unlink: Update regarding AIX.
21309         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
21310         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
21311         Reported by Rainer Tammer.
21312
21313 2010-07-30  Bruno Haible  <bruno@clisp.org>
21314
21315         symlink: Update regarding AIX.
21316         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
21317         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
21318         Reported by Rainer Tammer.
21319
21320 2010-07-30  Bruno Haible  <bruno@clisp.org>
21321
21322         strndup: Update regarding AIX.
21323         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
21324         AIX 7.
21325         Reported by Rainer Tammer.
21326
21327 2010-07-30  Bruno Haible  <bruno@clisp.org>
21328
21329         stat: Update regarding AIX.
21330         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
21331         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
21332         Reported by Rainer Tammer.
21333
21334 2010-07-30  Bruno Haible  <bruno@clisp.org>
21335
21336         truncl: Fix autoconf test.
21337         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
21338         whether truncl works.
21339         Reported by Rainer Tammer.
21340
21341 2010-07-30  Bruno Haible  <bruno@clisp.org>
21342
21343         round: Update regarding AIX.
21344         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
21345         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
21346         Reported by Rainer Tammer.
21347
21348 2010-07-30  Bruno Haible  <bruno@clisp.org>
21349
21350         rename: Update regarding AIX.
21351         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
21352         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
21353         Reported by Rainer Tammer.
21354
21355 2010-07-30  Bruno Haible  <bruno@clisp.org>
21356
21357         printf.m4: Update regarding AIX.
21358         * m4/printf.m4: Update comments regarding AIX.
21359         Reported by Rainer Tammer.
21360
21361 2010-07-30  Bruno Haible  <bruno@clisp.org>
21362
21363         iconv: Update regarding AIX.
21364         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
21365         AIX 7.
21366         Reported by Rainer Tammer.
21367
21368 2010-07-30  Bruno Haible  <bruno@clisp.org>
21369
21370         getopt: Update regarding AIX.
21371         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
21372         no on AIX.
21373         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
21374         Reported by Rainer Tammer.
21375
21376 2010-07-30  Bruno Haible  <bruno@clisp.org>
21377
21378         ldexpl; Update regarding AIX.
21379         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
21380         on AIX 7.
21381         Reported by Rainer Tammer.
21382
21383 2010-07-30  Bruno Haible  <bruno@clisp.org>
21384
21385         frexpl: Update regarding AIX.
21386         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
21387         on AIX 7.
21388         Reported by Rainer Tammer.
21389
21390 2010-07-30  Bruno Haible  <bruno@clisp.org>
21391
21392         open, fopen: Update regarding AIX.
21393         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
21394         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
21395         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
21396         * doc/posix-functions/fopen.texi: Likewise.
21397         Reported by Rainer Tammer.
21398
21399 2010-07-30  Bruno Haible  <bruno@clisp.org>
21400
21401         chown: Update doc regarding AIX.
21402         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
21403         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
21404         Reported by Rainer Tammer.
21405
21406 2010-07-30  Eric Blake  <eblake@redhat.com>
21407
21408         strtod: fix bug in replacement function on AIX
21409         * lib/strtod.c (strtod): Special case broken "0x" parse in
21410         underlying strtod.
21411         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
21412         * doc/posix-functions/strtod.texi (strtod): Likewise.
21413         Reported by Rainer Tammer.
21414
21415 2010-07-30  Bruno Haible  <bruno@clisp.org>
21416
21417         mbrlen: Fix cross-compilation guess for AIX.
21418         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
21419         guess. Leftover from 2008-12-22.
21420
21421 2010-07-30  Bruno Haible  <bruno@clisp.org>
21422
21423         mbrtowc: Fix cross-compilation guess for AIX.
21424         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
21425         guess. Leftover from 2008-12-21.
21426
21427 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
21428
21429         init.sh: work around trap limitation of some shells
21430         * tests/init.sh (setup_): Move exit trap outside of shell function.
21431
21432 2010-07-29  Eric Blake  <eblake@redhat.com>
21433
21434         strtod: aid debugging
21435         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
21436         understanding why strtod is rejected.
21437
21438 2010-07-28  Bruno Haible  <bruno@clisp.org>
21439
21440         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
21441         * lib/unistr/u8-chr.c: Include <string.h>.
21442         * tests/unistr/test-u8-chr.c: Likewise.
21443         * tests/unistr/test-u16-chr.c: Likewise.
21444         * tests/unistr/test-u32-chr.c: Likewise.
21445         * tests/unistr/test-u8-strchr.c: Likewise.
21446         * tests/unistr/test-u16-strchr.c: Likewise.
21447         * tests/unistr/test-u32-strchr.c: Likewise.
21448         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
21449         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
21450         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
21451         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
21452
21453 2010-07-28  Bruno Haible  <bruno@clisp.org>
21454
21455         Use spaces for indentation, not tabs.
21456         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
21457
21458 2010-07-27  Bruno Haible  <bruno@clisp.org>
21459
21460         mbspcasecmp: Fix function specification.
21461         * lib/string.in.h (mbspcasecmp): Fix specification comment.
21462         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
21463         Reported by Eric Blake <eblake@redhat.com>.
21464
21465 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
21466
21467         timespec: use cast and not conditional, as truncation isn't possible
21468         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
21469         instead of a conditional.  Comment about the situation in more detail.
21470         This undoes most of the 2009-10-29 patch.
21471
21472 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
21473
21474         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
21475         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
21476         * lib/unistr/u8-strchr.c: Likewise.
21477         * modules/unistr/u8-chr: Depend on memchr.
21478
21479         unistr/u*-strchr: add tests
21480         * modules/unistr/u8-strchr-tests: New file.
21481         * modules/unistr/u16-strchr-tests: New file.
21482         * modules/unistr/u32-strchr-tests: New file.
21483         * tests/unistr/test-strchr.h: New file.
21484         * tests/unistr/test-u8-strchr.c: New file.
21485         * tests/unistr/test-u16-strchr.c: New file.
21486         * tests/unistr/test-u32-strchr.c: New file.
21487
21488         unistr/u*-chr: test multibyte sequences more
21489         * tests/unistr/test-chr.h: Do complete testing of the characters in the
21490         test vector.
21491         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
21492         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
21493         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
21494
21495         unistr/u*-chr: test multibyte sequences
21496         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
21497
21498         unistr/u*-chr: prepare for multibyte tests
21499         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
21500         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
21501         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
21502         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
21503         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
21504         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
21505
21506 2010-07-18  Bruno Haible  <bruno@clisp.org>
21507
21508         unistr/u8-strchr: Optimize non-ASCII argument case.
21509         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
21510         because the first byte often matches anyway.
21511         Reported by Pádraig Brady <P@draigbrady.com>.
21512
21513 2010-07-15  Karl Berry  <karl@gnu.org>
21514
21515         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
21516
21517 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
21518
21519         getcwd: on Solaris, work better if ancestors are inaccessible
21520         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
21521         buffer and size, try again with a large buffer.  This works better
21522         on Solaris, since its getcwd succeeds even if the path to the root
21523         is inaccessible, and this is helpful in common cases such as .zfs
21524         hidden directories.  Problem reported by J Chapman Flack in
21525         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
21526         Use system getcwd if it's declared, not merely if it's partly
21527         working; use the partly-working test only to avoid needless effort
21528         if the system getcwd fails.
21529         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
21530         comment that was already obsolete and is now even more obsolete.
21531         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
21532         now might call strdup.
21533
21534 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
21535
21536         pthread: Add enough so that coreutils/src/sort.c compiles.
21537         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
21538         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
21539         gnulib. Include <sched.h> and <time.h>, as per POSIX.
21540         Include <sys/types.h>, in case it defines pthread_t.
21541         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
21542         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
21543         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
21544         (pthread_rwlockattr_t, pthread_spinlock_t):
21545         New typedefs, if HAVE_PTHREAD_T is not defined.
21546         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
21547         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
21548         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
21549         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
21550         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
21551         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
21552         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
21553         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
21554         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
21555         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
21556         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
21557         New macros.
21558         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
21559         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
21560         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
21561         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
21562         (pthread_spin_unlock): New dummy functions.
21563         (pthread_create): Return EAGAIN; don't set errno.
21564         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
21565         require AC_C_INLINE.
21566         * modules/pthread (Depends-on): Add sched, time.
21567         (pthread.h): Use AM_V_GEN.
21568
21569 2010-07-13  Bruno Haible  <bruno@clisp.org>
21570
21571         striconveh: Don't malloc memory if the result buffer is sufficient.
21572         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
21573         buffer if its size is sufficient.
21574         Reported by Ludovic Courtès <ludo@gnu.org>.
21575
21576 2010-07-13  Bruno Haible  <bruno@clisp.org>
21577
21578         strtod: Add safety check.
21579         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
21580
21581 2010-07-12  Bruno Haible  <bruno@clisp.org>
21582
21583         Unify tests that set gl_cv_func_ldexpl_no_libm.
21584         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
21585         gl_FUNC_LDEXPL.
21586         (gl_FUNC_LDEXPL): Invoke it.
21587         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
21588
21589 2010-07-12  Bruno Haible  <bruno@clisp.org>
21590
21591         Unify tests that set gl_cv_func_ldexp_no_libm.
21592         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
21593         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
21594         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
21595         (configure.ac): Simply invoke gl_FUNC_LDEXP.
21596         * modules/strtod (Files): Add m4/ldexp.m4.
21597
21598 2010-07-12  Bruno Haible  <bruno@clisp.org>
21599
21600         Unify tests that set gl_cv_func_frexpl_no_libm.
21601         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
21602         gl_FUNC_FREXPL_NO_LIBM.
21603         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
21604         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
21605
21606 2010-07-12  Bruno Haible  <bruno@clisp.org>
21607
21608         Unify tests that set gl_cv_func_frexp_no_libm.
21609         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
21610         gl_FUNC_FREXP_NO_LIBM.
21611         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
21612         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
21613
21614 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
21615
21616         memcoll: clarify sizes versus lengths, document better, and tweak perf
21617         * lib/memcoll.c (strcoll_loop, memcoll0):
21618         Improve quality of descriptive comments.  Name variables
21619         consistently as to whether they are lengths (which do not include
21620         terminating null) versus sizes (which do).
21621         * lib/xmemcoll.c (xmemcoll0): Likewise.
21622         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
21623         returned when s1size == 0; this is easier to compile and saves
21624         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
21625
21626 2010-07-12  Bruno Haible  <bruno@clisp.org>
21627
21628         Tests for module '_Exit'.
21629         * modules/_Exit-tests: New file.
21630         * tests/test-_Exit.sh: New file.
21631         * tests/test-_Exit.c: New file.
21632
21633         New module '_Exit'.
21634         * lib/stdlib.in.h (__attribute__): New macro.
21635         (_Exit): New declaration.
21636         * lib/_Exit.c: New file.
21637         * m4/_Exit.m4: New file.
21638         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
21639         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
21640         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
21641         * modules/_Exit: New file.
21642         * tests/test-stdlib-c++.cc (_Exit): Check signature.
21643         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
21644
21645 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
21646
21647         strtod: make it more-accurate typically, and don't require libm
21648         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
21649         Include limits.h.  Don't include string.h.
21650         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
21651         (locale_isspace): New function, so that no casts are needed to
21652         check whether *s is a space.
21653         (ldexp): Provide an unused dummy if not available.
21654         (scale_radix_exp, parse_number, underlying_strtod): New functions.
21655         (strtod): Use them.  This implementation prefers to use the
21656         underlying strtod if available, falling back on our own code
21657         only to fix known bugs.  This is more likely to produce an
21658         accurate result.  Also, it avoids the use of libm functions.
21659         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
21660         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
21661         was absent, but it caused a test failure with coreutils.
21662         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
21663         with libm.
21664         * modules/strtod (Makefile.am, Link): libm is no longer needed.
21665         * modules/strtod-tests (Makefile.am): Likewise.
21666
21667 2010-07-11  Pádraig Brady  <P@draigBrady.com>
21668             Bruno Haible  <bruno@clisp.org>
21669
21670         unistr/u8-strchr: Optimize ASCII argument case.
21671         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
21672
21673 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
21674
21675         (x)memcoll: minor tweaks
21676         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
21677         is after the type that it qualifies.
21678         (memcoll0): Likewise.
21679         * lib/memcoll.h (memcoll0): Likewise.
21680         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
21681         * lib/xmemcoll.h (xmemcoll0): Likewise.
21682         * lib/memcoll.c (memcoll0): Correct the comment.  This function
21683         differs from memcoll in that the NUL byte is part of the argument.
21684         Omit the abort-checks, as performance is a real issue here.  Plus,
21685         the checks were wrong anyway (an off-by-one error).  Omit local
21686         variable 'diff', as it's a bit clearer that way.
21687         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
21688         no longer needed.
21689
21690 2010-07-08  Chen Guo <chenguo4@yahoo.com>
21691
21692         (x)memcoll: speedup when input is known to be NUL delimited
21693         * lib/memcoll.c: Include stdlib.
21694         (memcoll0): New function.
21695         (strcoll_loop): New function, refactored for use in both memcoll
21696         and memcoll0.
21697         * lib/memcoll.h (memcoll0): Add prototype.
21698         * lib/xmemcoll.c (xmemcoll0): New function.
21699         (collate_error): New function, refactored for use in both xmemcoll
21700         and xmemcoll0.
21701         * lib/xmemcoll.h (xmemcoll0): Add prototype.
21702         * m4/memcoll.m4: add inline invocation.
21703
21704 2010-07-06  Pádraig Brady  <P@draigBrady.com>
21705
21706         * build-aux/bootstrap: Remove any local translations
21707         from the translation project synchronization directory,
21708         so that local only translations are not distributed.
21709
21710 2010-07-04  Bruno Haible  <bruno@clisp.org>
21711
21712         fsusage: Clarify which code applies to which platforms.
21713         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
21714         platform.
21715         * lib/fsusage.c (get_fs_usage): Likewise.
21716
21717 2010-07-04  Bruno Haible  <bruno@clisp.org>
21718
21719         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
21720         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
21721         Reported by Martin Lambers <marlam@marlam.de>.
21722
21723 2010-07-04  Jim Meyering  <meyering@redhat.com>
21724
21725         hash: once again explicitly disallow insertion of NULL
21726         * lib/hash.c (hash_insert0): Reinstate just-removed test:
21727         inserting a NULL pointer cannot work with these functions.
21728         Add a comment with details.
21729         This reverts part of the 2010-07-01 commit, 5bef1a35
21730         "hash: extend module to deal with non-pointer keys".
21731
21732 2010-07-01  Bruno Haible  <bruno@clisp.org>
21733
21734         stdbool: Update doc.
21735         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
21736         Info from Christian Weisgerber <naddy@mips.inka.de>.
21737
21738 2010-07-01  Jim Meyering  <meyering@redhat.com>
21739
21740         hash: extend module to deal with non-pointer keys
21741         * lib/hash.c (hash_insert0): New interface, much like hash_insert
21742         but that allows insertion of non-pointer entries.
21743         Do not disallow an ENTRY value of NULL.
21744         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
21745         * lib/hash.h (hash_insert0): Declare.
21746
21747 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
21748
21749         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
21750         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
21751         not present (i.e. with autoconf 2.59 and when using gettextize, not
21752         gnulib), require AC_GNU_SOURCE instead.
21753
21754 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
21755
21756         idpriv-drop: Fix tests.
21757         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
21758         not to the test-idpriv-droptemp program.
21759
21760 2010-06-29  Bruno Haible  <bruno@clisp.org>
21761
21762         string: Fix syntax error with g++ 2.96.
21763         * lib/string.in.h (__pure__): Remove definition.
21764         (_GL_ATTRIBUTE_PURE): New macro.
21765         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
21766         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
21767         Reported by Christian Weisgerber <naddy@mips.inka.de>.
21768
21769 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
21770
21771         unitypes: Fix bug introduced on 2010-05-18.
21772         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
21773
21774 2010-06-22  Eric Blake  <eblake@redhat.com>
21775
21776         memmem: slight optimization
21777         * lib/str-two-way.h (critical_factorization): Update comments.
21778         Reduce work during factorization phase.
21779         Reported by Carlos Bueno <carlos@bueno.org>.
21780
21781 2010-06-21  Bruno Haible  <bruno@clisp.org>
21782
21783         Fix HAVE_CALLOC_POSIX misnomer.
21784         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
21785         !HAVE_CALLOC_POSIX.
21786         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
21787         HAVE_CALLOC_POSIX.
21788         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
21789         instead of HAVE_CALLOC_POSIX.
21790         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
21791         HAVE_CALLOC_POSIX.
21792
21793         Use modern idiom for calloc() replacement.
21794         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
21795         AC_FUNC_CALLOC.
21796         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
21797         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
21798         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
21799         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
21800         (gl_REPLACE_CALLOC): New macro.
21801
21802 2010-06-21  Bruno Haible  <bruno@clisp.org>
21803
21804         Fix HAVE_REALLOC_POSIX misnomer.
21805         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
21806         !HAVE_REALLOC_POSIX.
21807         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
21808         HAVE_REALLOC_POSIX.
21809         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
21810         instead of HAVE_REALLOC_POSIX.
21811         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
21812         HAVE_REALLOC_POSIX.
21813
21814         Use modern idiom for realloc() replacement.
21815         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
21816         AC_FUNC_REALLOC.
21817         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
21818         Autoconf's AC_FUNC_REALLOC.
21819         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
21820         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
21821         (gl_REPLACE_REALLOC): New macro.
21822         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
21823
21824 2010-06-21  Bruno Haible  <bruno@clisp.org>
21825
21826         Fix HAVE_MALLOC_POSIX misnomer.
21827         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
21828         !HAVE_MALLOC_POSIX.
21829         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
21830         HAVE_MALLOC_POSIX.
21831         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
21832         instead of HAVE_MALLOC_POSIX.
21833         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
21834         HAVE_MALLOC_POSIX.
21835
21836         Use modern idiom for malloc() replacement.
21837         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
21838         AC_FUNC_MALLOC.
21839         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
21840         Autoconf's AC_FUNC_MALLOC.
21841         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
21842         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
21843         (gl_REPLACE_MALLOC): New macro.
21844         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
21845
21846 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
21847
21848         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
21849         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
21850         This macro takes 3 arguments, not 4.
21851
21852 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
21853
21854         ipv6: fix detection under mingw
21855         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
21856         in6_addr.
21857
21858 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
21859
21860         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
21861         that strtod() works when cross-compiling to a glibc version known
21862         to work.
21863
21864 2010-06-15  Bruno Haible  <bruno@clisp.org>
21865
21866         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
21867
21868 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
21869
21870         select: Correct timeout.
21871         * lib/select.c (rpl_select): Compute wait_timeout correctly.
21872
21873 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
21874
21875         git-version-gen: init shell var to avoid env var influence
21876         * build-aux/git-version-gen (v): Init shell var to empty.
21877
21878 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
21879
21880         priv-set: Don't assume that priv.h exists merely because getppriv does.
21881         See Jan Andersen's bug report about AIX 5L in
21882         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
21883         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
21884         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
21885         * lib/priv-set.h: Likewise.
21886         * tests/test-priv-set.c: Likewise.
21887
21888 2010-06-13  Bruno Haible  <bruno@clisp.org>
21889
21890         relocatable: Make it easier to test whether to install wrappers.
21891         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
21892         RELOCATABLE_VIA_WRAPPER.
21893
21894 2010-06-13  Bruno Haible  <bruno@clisp.org>
21895
21896         gnulib-tool: Display specified modules and dependencies differently.
21897         * gnulib-tool (func_show_module_list): New function.
21898         (func_import, func_create_testdir): Invoke it.
21899         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
21900
21901 2010-06-13  Bruno Haible  <bruno@clisp.org>
21902
21903         gnulib-tool: Align code of func_import and func_create_testdir.
21904         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
21905         specified_modules.
21906
21907 2010-06-12  Jim Meyering  <meyering@redhat.com>
21908
21909         test-inttostr: avoid spurious failure on Solaris 9
21910         * tests/test-inttostr.c (main): Skip the test when snprintf fails
21911         to accept "%ju".  Reported by Bruno Haible.
21912
21913 2010-06-11  Jim Meyering  <meyering@redhat.com>
21914
21915         test-sys_socket: mark variables as used more readably
21916         * tests/test-sys_socket.c (main): Mark otherwise unused variables
21917         as "used" explicitly via (void) statement casts.  This is more
21918         readable than using them in an artificial return expression.
21919         Suggestion from Bruno Haible.
21920
21921 2010-06-11  Bruno Haible  <bruno@clisp.org>
21922
21923         Avoid some more warnings from "gcc -Wwrite-strings".
21924         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
21925         to 'const char *'.
21926         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
21927         * tests/test-c-strcasestr.c (main): Likewise.
21928         * tests/test-mbscasestr1.c (main): Likewise.
21929         * tests/test-mbscasestr2.c (main): Likewise.
21930         * tests/test-memmem.c (main): Likewise.
21931         * tests/test-strstr.c (main): Likewise.
21932         * tests/test-strcasestr.c (main): Likewise.
21933
21934 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21935
21936         init.sh: change framework_failure_ to fail with status 99, not 1
21937         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
21938         automake's parallel-tests rule that this is an unexpected failure,
21939         even if the test is listed in XFAIL_TESTS.
21940
21941 2010-06-11  Jim Meyering  <meyering@redhat.com>
21942
21943         test-inttostr: avoid warnings about 4-6KB literal strings
21944         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
21945         Include "macros.h", for its definition of ASSERT.
21946         (CK): s/assert/ASSERT/
21947         * modules/inttostr-tests (Files): Add macros.h.
21948
21949         init.sh: don't use $ME_ or skip_ before they are defined
21950         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
21951         their first uses.  Also hoist their companions: warn_, fail_,
21952         framework_failure_, $stderr_fileno.  Prompted by a patch from
21953         Stefano Lattarini.
21954
21955         test-sys_socket: avoid set-but-not-used warnings from gcc
21956         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
21957         avoid warning about set-but-not-used variables.
21958
21959         test-xvasprintf: avoid 'const' discard warnings
21960         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
21961         "const" when assigning from literal strings.
21962         (test_xasprintf): Add "void" in function argument list to placate
21963         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
21964
21965         tests: avoid compilation warnings in argmatch and exclude tests...
21966         in packages that define ARGMATCH_DIE_DECL, like coreutils.
21967         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
21968         Since it always exits, declare with the "noreturn" attribute.
21969         * tests/test-argmatch.c: Likewise.
21970
21971         tests: avoid 'const' discard warnings in mbsstr tests
21972         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
21973         * tests/test-mbsstr2.c (main): Likewise.
21974
21975         test-verify: avoid warning from gcc's -Wmissing-declarations
21976         * tests/test-verify.c (function): Declare to be static.
21977
21978         test-inttostr.c: include <string.h> for use of strcmp
21979         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
21980
21981         test-linkat: avoid failed assertion on "other" architectures
21982         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
21983         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
21984         sparc: https://bugs.launchpad.net/bugs/591968
21985
21986 2010-06-11  Jim Meyering  <meyering@redhat.com>
21987
21988         printf.m4: avoid autoconf's "Expanded Before Required" warning
21989         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
21990         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
21991         autoconf warning.
21992
21993 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
21994
21995         Replacement header templates are now named with ".in", not "_".
21996         * doc/gnulib-intro.texi: Correct.
21997
21998 2010-06-10  Jim Meyering  <meyering@redhat.com>
21999
22000         inttostr-tests: depend on snprintf, not snprintf-posix
22001         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
22002         snprintf-posix, to avoid this aclocal failure:
22003           missing file gnulib-tests/vasnprintf.c
22004           configure.ac:45: error: expected source file, required through \
22005           AC_LIBSOURCES, not found
22006
22007 2010-06-10  Jim Meyering  <meyering@redhat.com>
22008
22009         inttostr: add a new function, inttostr, and tests
22010         The namesake function was not available.  The existence of the
22011         template file, inttostr.c makes its addition nontrivial.
22012         * lib/anytostr.c: Rename from inttostr.c.
22013         (anytostr): Rename from inttostr.
22014         * lib/inttostr.c: New file.
22015         * modules/inttostr (Files): Add anytostr.c.
22016         (Makefile.am): Set lib_SOURCES instead of ...
22017         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
22018         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
22019         * lib/offtostr.c: Likewise.
22020         * lib/uinttostr.c: Likewise.
22021         * lib/umaxtostr.c: Likewise.
22022         * modules/inttostr-tests: New file.
22023         * tests/test-inttostr.c: New file.  Test these functions.
22024
22025 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
22026             Bruno Haible  <bruno@clisp.org>
22027
22028         Add "Extending Gnulib" chapter to manual.
22029         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
22030         chapter.
22031         (Extending Gnulib): New chapter.
22032         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
22033         chapter.
22034
22035 2010-06-09  Bruno Haible  <bruno@clisp.org>
22036
22037         Avoid relocwrapper link errors due to gnulib replacement functions.
22038         * lib/areadlink.c: Use the system's malloc, realloc functions.
22039         (areadlink): Set errno to ENOMEM explicitly.
22040         * modules/areadlink (Depends-on): Remove malloc-posix.
22041         Reported by Ben Pfaff <blp@cs.stanford.edu>.
22042
22043 2010-06-09  Bruno Haible  <bruno@clisp.org>
22044
22045         Avoid relocwrapper link errors due to gnulib replacement functions.
22046         * lib/canonicalize-lgpl.c: Use the system's malloc function.
22047         * lib/malloca.c: Likewise.
22048         * lib/relocatable.c: Likewise.
22049         * lib/progreloc.c: Use the system's malloc, sprintf functions.
22050         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
22051         * lib/setenv.c: Use the system's malloc, realloc functions.
22052         * lib/strerror.c: Use the system's sprintf function.
22053         Reported by Ben Pfaff <blp@cs.stanford.edu>.
22054
22055 2010-06-04  Bruno Haible  <bruno@clisp.org>
22056
22057         Prefer documented low-level autoconf macro names.
22058         * m4/lib-link.m4: Use m4_translit instead of translit.
22059         * m4/environ.m4: Likewise.
22060         * m4/mathfunc.m4: Likewise.
22061         * m4/onceonly.m4: Likewise.
22062         * m4/stdint.m4: Likewise.
22063         Suggested by Eric Blake.
22064
22065 2010-06-04  Martin Lambers  <marlam@marlam.de>
22066             Bruno Haible  <bruno@clisp.org>
22067
22068         havelib: Allow library names with '+' characters.
22069         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
22070         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
22071
22072 2010-06-09  Bruno Haible  <bruno@clisp.org>
22073
22074         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
22075         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
22076         realloc failed.
22077
22078 2010-06-08  Peter Simons  <simons@cryp.to>
22079
22080         maint.mk: make the news-check rule more configurable
22081         * top/maint.mk (news-check-lines-spec): New variable.
22082         (news-check): Use "sed -n 1,10p" in place of "head".
22083
22084 2010-06-07  Jim Meyering  <meyering@redhat.com>
22085
22086         do-release-commit-and-tag: fix typo in --help
22087         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
22088
22089         regex: avoid new dead-code warning with gcc-4.6.0
22090         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
22091         if-block containing a while-loop.  It's been unused for at least
22092         5 years.
22093
22094 2010-06-05  Bruno Haible  <bruno@clisp.org>
22095
22096         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
22097         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
22098
22099 2010-06-04  Bruno Haible  <bruno@clisp.org>
22100
22101         Update to GNU gettext 0.18.1.
22102         * modules/gettext (configure.ac): Require gettext infrastructure from
22103         version 0.18.1.
22104
22105 2010-06-03  Bruno Haible  <bruno@clisp.org>
22106
22107         Don't use AC_LIBOBJ with file names in subdirectories.
22108         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
22109         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
22110         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
22111         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
22112         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
22113         gl_LIBUNISTRING_LIBSOURCE.
22114         (Makefile.am): Augment lib_SOURCES here, conditionally.
22115         * NEWS: Drop requirement for Automake option 'subdir-objects'.
22116
22117 2010-06-03  Bruno Haible  <bruno@clisp.org>
22118
22119         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
22120         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
22121         expansion does not end with a newline.
22122         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
22123         unnecessary newline.
22124
22125 2010-06-03  Bruno Haible  <bruno@clisp.org>
22126
22127         Reduce dependencies.
22128         * tests/test-quotearg.h: New file, extracted from
22129         tests/test-quotearg.c.
22130         * tests/test-quotearg-simple.c: New file, extracted from
22131         tests/test-quotearg.c.
22132         * tests/test-quotearg.c: Don't include <ctype.h>.
22133         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
22134         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
22135         use_quote_double_quotes, use_quotearg_colon): Moved to
22136         tests/test-quotearg.h.
22137         (results_g, flag_results, custom_quotes, custom_results): Moved
22138         to tests/test-quotearg-simple.c.
22139         (main): Moved the part that does not depend on gettext to
22140         tests/test-quotearg-simple.c. Return 77 if the test cannot be
22141         performed.
22142         * modules/quotearg-simple: New file.
22143         * modules/quotearg-simple-tests: New file.
22144         * modules/quotearg (Depends-on): Add quotearg-simple.
22145         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
22146         (Files): Add tests/test-quotearg.h.
22147         Reported by Paolo Bonzini.
22148
22149 2010-06-03  Bruno Haible  <bruno@clisp.org>
22150
22151         Reduce dependencies.
22152         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
22153
22154 2010-06-03  Bruno Haible  <bruno@clisp.org>
22155
22156         time: Undefine more broken macros.
22157         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
22158         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
22159         Reported by Eric Blake.
22160
22161 2010-06-03  Bruno Haible  <bruno@clisp.org>
22162
22163         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
22164         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
22165         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
22166         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
22167         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
22168         Reported by Ludovic Courtès <ludo@gnu.org>.
22169
22170 2010-06-02  Eric Blake  <eblake@redhat.com>
22171
22172         time: work with mingw + pthreads-win32 library
22173         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
22174         if timespec is defined only in pthread.h.
22175         * modules/time (Makefile.am): Substitute it.
22176         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
22177         <pthread.h>, when needed.
22178         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
22179         from the library.
22180
22181 2010-05-31  Bruno Haible  <bruno@clisp.org>
22182
22183         Avoid expanding two macros in the wrong order.
22184         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
22185         gl_LIBUNISTRING if it is defined.
22186         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
22187         autoconf >= 2.64.
22188         Reported by Ludovic Courtès <ludo@gnu.org>.
22189
22190 2010-05-27  Jim Meyering  <meyering@redhat.com>
22191
22192         maint.mk: also prohibit "#undef" of always-defined symbols
22193         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
22194         Allow more than one space before the symbol name.
22195         (sc_prohibit_always-defined_macros): Use grep's -E, now that
22196         the regexp uses alternation.
22197
22198 2010-05-26  Eric Blake  <eblake@redhat.com>
22199
22200         maint.mk: avoid echo -e
22201         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
22202         Convert all uses of echo -* to printf.
22203         Reported by Matthias Bolte.
22204
22205 2010-05-25  Bruno Haible  <bruno@clisp.org>
22206
22207         Update to GNU gettext 0.18, part 2.
22208         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
22209         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
22210
22211 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22212
22213         Add missing include in test-pwrite.c.
22214         * tests/test-pwrite.c: Include string.h, for strcmp.
22215
22216 2010-05-24  Bruno Haible  <bruno@clisp.org>
22217
22218         * NEWS: Mention requirement for Automake option 'subdir-objects'.
22219
22220 2010-05-24  Bruno Haible  <bruno@clisp.org>
22221
22222         Don't use conversion with transliteration in u{8,16,32}_strcoll.
22223         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
22224         iconveh_error argument.
22225         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
22226         U_STRCONV_TO_LOCALE.
22227         * lib/unistr/u16-strcoll.c: Likewise.
22228         * lib/unistr/u32-strcoll.c: Likewise.
22229         * modules/unistr/u8-strcoll (Depends-on): Add
22230         uniconv/u8-strconv-to-enc, localcharset. Remove
22231         uniconv/u8-strconv-to-locale.
22232         (configure.ac): Bump version number.
22233         * modules/unistr/u16-strcoll (Depends-on): Add
22234         uniconv/u16-strconv-to-enc, localcharset. Remove
22235         uniconv/u16-strconv-to-locale.
22236         (configure.ac): Bump version number.
22237         * modules/unistr/u32-strcoll (Depends-on): Add
22238         uniconv/u32-strconv-to-enc, localcharset. Remove
22239         uniconv/u32-strconv-to-locale.
22240         (configure.ac): Bump version number.
22241
22242 2010-05-24  Bruno Haible  <bruno@clisp.org>
22243
22244         Avoid a test failure on NetBSD 5.0.
22245         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
22246         an iconv() bug.
22247
22248 2010-05-24  Bruno Haible  <bruno@clisp.org>
22249
22250         Adjust #include directive style.
22251         * modules/regex (Includes): Recommend to write <regex.h>.
22252
22253 2010-05-24  Bruno Haible  <bruno@clisp.org>
22254
22255         regex: Don't require alloca.
22256         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
22257         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
22258         only inside if (0).
22259
22260 2010-05-23  Jim Meyering  <meyering@redhat.com>
22261
22262         test-renameat.c: include <sys/stat.h>
22263         * tests/test-renameat.c: Include <sys/stat.h>; required for
22264         definition of S_IS* macros.
22265
22266 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
22267
22268         Update maintainer documentation for 'relocatable-prog' module.
22269         * doc/relocatable-maint.texi: Update.
22270         Comments by Bruno Haible.
22271
22272 2010-05-23  Bruno Haible  <bruno@clisp.org>
22273
22274         git-merge-changelog: Enable --split-merged-entry by default.
22275         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
22276         (usage): Don't mention this option any more.
22277         Reported by Ralf Wildenhues.
22278
22279 2010-05-23  Jim Meyering  <meyering@redhat.com>
22280
22281         test-pwrite: do not leave behind a test file named "out"
22282         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
22283         The trivial-looking use of init.sh is really necessary.
22284         It ensures that the temporary file, "out", is created in
22285         a temporary directory, and removed upon termination.
22286         * tests/test-pwrite.sh: Re-add file.
22287         * modules/pwrite-tests: Reference it.
22288
22289 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22290
22291         Fix output redirection buglet in init.sh.
22292         * tests/init.sh: Fix redirection of stderr.
22293
22294 2010-05-20  Simon Josefsson  <simon@josefsson.org>
22295
22296         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
22297
22298 2010-05-17  Simon Josefsson  <simon@josefsson.org>
22299
22300         * modules/valgrind-tests: New file.
22301         * m4/valgrind-tests.m4: New file.
22302         * doc/valgrind-tests.texi: New file.
22303         * doc/gnulib.texi (Running self-tests under valgrind): New
22304         section.
22305
22306 2010-05-19  Bruno Haible  <bruno@clisp.org>
22307
22308         Clean up dead code in recent commit.
22309         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
22310         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
22311         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
22312         Suggested by Paolo Bonzini.
22313
22314 2010-05-19  Bruno Haible  <bruno@clisp.org>
22315
22316         Avoid valgrind error reports from libunistring.
22317         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
22318         * modules/libunistring (Files): Add it.
22319         * modules/libunistring-optional (Files): Likewise.
22320
22321 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
22322             Bruno Haible  <bruno@clisp.org>
22323
22324         New module 'libunistring-optional'.
22325         * modules/libunistring-optional: New file.
22326         * m4/libunistring-base.m4: New file.
22327         * m4/libunistring-optional.m4: New file.
22328         * lib/unicase.in.h: Renamed from lib/unicase.h.
22329         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
22330         * lib/unictype.in.h: Renamed from lib/unictype.h.
22331         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
22332         * lib/uniname.in.h: Renamed from lib/uniname.h.
22333         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
22334         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
22335         * lib/unistr.in.h: Renamed from lib/unistr.h.
22336         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
22337         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
22338         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
22339         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
22340         gl_LIBUNISTRING. If the library was found, determine the installed
22341         version and set LIBUNISTRING_VERSION.
22342         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
22343         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
22344         handle a configuration option --with-included-libunistring.
22345         * modules/libunistring (Files): Add m4/absolute-header.m4.
22346         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
22347         Add m4/libunistring-base.m4.
22348         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22349         (Makefile.am): Build unicase.h from unicase.in.h.
22350         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
22351         Add m4/libunistring-base.m4.
22352         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22353         (Makefile.am): Build uniconv.h from uniconv.in.h.
22354         * modules/unictype/base (Files): Use unictype.in.h instead of
22355         unictype.h. Add m4/libunistring-base.m4.
22356         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22357         (Makefile.am): Build unictype.h from unictype.in.h.
22358         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
22359         Add m4/libunistring-base.m4.
22360         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22361         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
22362         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
22363         Add m4/libunistring-base.m4.
22364         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22365         (Makefile.am): Build uniname.h from uniname.in.h.
22366         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
22367         Add m4/libunistring-base.m4.
22368         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22369         (Makefile.am): Build uninorm.h from uninorm.in.h.
22370         * modules/unistdio/base (Files): Use unistdio.in.h instead of
22371         unistdio.h. Add m4/libunistring-base.m4.
22372         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22373         (Makefile.am): Build unistdio.h from unistdio.in.h.
22374         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
22375         Add m4/libunistring-base.m4.
22376         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22377         (Makefile.am): Build unistr.h from unistr.in.h.
22378         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
22379         Add m4/libunistring-base.m4.
22380         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22381         (Makefile.am): Build unitypes.h from unitypes.in.h.
22382         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
22383         Add m4/libunistring-base.m4.
22384         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22385         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
22386         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
22387         uniwidth.h. Add m4/libunistring-base.m4.
22388         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22389         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
22390         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
22391         instead of augmenting lib_SOURCES.
22392         * modules/unicase/empty-suffix-context: Likewise.
22393         * modules/unicase/locale-language: Likewise.
22394         * modules/unicase/tolower: Likewise.
22395         * modules/unicase/totitle: Likewise.
22396         * modules/unicase/toupper: Likewise.
22397         * modules/unicase/u8-casecmp: Likewise.
22398         * modules/unicase/u8-casecoll: Likewise.
22399         * modules/unicase/u8-casefold: Likewise.
22400         * modules/unicase/u8-casexfrm: Likewise.
22401         * modules/unicase/u8-ct-casefold: Likewise.
22402         * modules/unicase/u8-ct-tolower: Likewise.
22403         * modules/unicase/u8-ct-totitle: Likewise.
22404         * modules/unicase/u8-ct-toupper: Likewise.
22405         * modules/unicase/u8-is-cased: Likewise.
22406         * modules/unicase/u8-is-casefolded: Likewise.
22407         * modules/unicase/u8-is-lowercase: Likewise.
22408         * modules/unicase/u8-is-titlecase: Likewise.
22409         * modules/unicase/u8-is-uppercase: Likewise.
22410         * modules/unicase/u8-prefix-context: Likewise.
22411         * modules/unicase/u8-suffix-context: Likewise.
22412         * modules/unicase/u8-tolower: Likewise.
22413         * modules/unicase/u8-totitle: Likewise.
22414         * modules/unicase/u8-toupper: Likewise.
22415         * modules/unicase/u16-casecmp: Likewise.
22416         * modules/unicase/u16-casecoll: Likewise.
22417         * modules/unicase/u16-casefold: Likewise.
22418         * modules/unicase/u16-casexfrm: Likewise.
22419         * modules/unicase/u16-ct-casefold: Likewise.
22420         * modules/unicase/u16-ct-tolower: Likewise.
22421         * modules/unicase/u16-ct-totitle: Likewise.
22422         * modules/unicase/u16-ct-toupper: Likewise.
22423         * modules/unicase/u16-is-cased: Likewise.
22424         * modules/unicase/u16-is-casefolded: Likewise.
22425         * modules/unicase/u16-is-lowercase: Likewise.
22426         * modules/unicase/u16-is-titlecase: Likewise.
22427         * modules/unicase/u16-is-uppercase: Likewise.
22428         * modules/unicase/u16-prefix-context: Likewise.
22429         * modules/unicase/u16-suffix-context: Likewise.
22430         * modules/unicase/u16-tolower: Likewise.
22431         * modules/unicase/u16-totitle: Likewise.
22432         * modules/unicase/u16-toupper: Likewise.
22433         * modules/unicase/u32-casecmp: Likewise.
22434         * modules/unicase/u32-casecoll: Likewise.
22435         * modules/unicase/u32-casefold: Likewise.
22436         * modules/unicase/u32-casexfrm: Likewise.
22437         * modules/unicase/u32-ct-casefold: Likewise.
22438         * modules/unicase/u32-ct-tolower: Likewise.
22439         * modules/unicase/u32-ct-totitle: Likewise.
22440         * modules/unicase/u32-ct-toupper: Likewise.
22441         * modules/unicase/u32-is-cased: Likewise.
22442         * modules/unicase/u32-is-casefolded: Likewise.
22443         * modules/unicase/u32-is-lowercase: Likewise.
22444         * modules/unicase/u32-is-titlecase: Likewise.
22445         * modules/unicase/u32-is-uppercase: Likewise.
22446         * modules/unicase/u32-prefix-context: Likewise.
22447         * modules/unicase/u32-suffix-context: Likewise.
22448         * modules/unicase/u32-tolower: Likewise.
22449         * modules/unicase/u32-totitle: Likewise.
22450         * modules/unicase/u32-toupper: Likewise.
22451         * modules/unicase/ulc-casecmp: Likewise.
22452         * modules/unicase/ulc-casecoll: Likewise.
22453         * modules/unicase/ulc-casexfrm: Likewise.
22454         * modules/uniconv/u8-conv-from-enc: Likewise.
22455         * modules/uniconv/u8-conv-to-enc: Likewise.
22456         * modules/uniconv/u8-strconv-from-enc: Likewise.
22457         * modules/uniconv/u8-strconv-from-locale: Likewise.
22458         * modules/uniconv/u8-strconv-to-enc: Likewise.
22459         * modules/uniconv/u8-strconv-to-locale: Likewise.
22460         * modules/uniconv/u16-conv-from-enc: Likewise.
22461         * modules/uniconv/u16-conv-to-enc: Likewise.
22462         * modules/uniconv/u16-strconv-from-enc: Likewise.
22463         * modules/uniconv/u16-strconv-from-locale: Likewise.
22464         * modules/uniconv/u16-strconv-to-enc: Likewise.
22465         * modules/uniconv/u16-strconv-to-locale: Likewise.
22466         * modules/uniconv/u32-conv-from-enc: Likewise.
22467         * modules/uniconv/u32-conv-to-enc: Likewise.
22468         * modules/uniconv/u32-strconv-from-enc: Likewise.
22469         * modules/uniconv/u32-strconv-from-locale: Likewise.
22470         * modules/uniconv/u32-strconv-to-enc: Likewise.
22471         * modules/uniconv/u32-strconv-to-locale: Likewise.
22472         * modules/unictype/bidicategory-byname: Likewise.
22473         * modules/unictype/bidicategory-name: Likewise.
22474         * modules/unictype/bidicategory-of: Likewise.
22475         * modules/unictype/bidicategory-test: Likewise.
22476         * modules/unictype/block-list: Likewise.
22477         * modules/unictype/block-test: Likewise.
22478         * modules/unictype/category-C: Likewise.
22479         * modules/unictype/category-Cc: Likewise.
22480         * modules/unictype/category-Cf: Likewise.
22481         * modules/unictype/category-Cn: Likewise.
22482         * modules/unictype/category-Co: Likewise.
22483         * modules/unictype/category-Cs: Likewise.
22484         * modules/unictype/category-L: Likewise.
22485         * modules/unictype/category-Ll: Likewise.
22486         * modules/unictype/category-Lm: Likewise.
22487         * modules/unictype/category-Lo: Likewise.
22488         * modules/unictype/category-Lt: Likewise.
22489         * modules/unictype/category-Lu: Likewise.
22490         * modules/unictype/category-M: Likewise.
22491         * modules/unictype/category-Mc: Likewise.
22492         * modules/unictype/category-Me: Likewise.
22493         * modules/unictype/category-Mn: Likewise.
22494         * modules/unictype/category-N: Likewise.
22495         * modules/unictype/category-Nd: Likewise.
22496         * modules/unictype/category-Nl: Likewise.
22497         * modules/unictype/category-No: Likewise.
22498         * modules/unictype/category-P: Likewise.
22499         * modules/unictype/category-Pc: Likewise.
22500         * modules/unictype/category-Pd: Likewise.
22501         * modules/unictype/category-Pe: Likewise.
22502         * modules/unictype/category-Pf: Likewise.
22503         * modules/unictype/category-Pi: Likewise.
22504         * modules/unictype/category-Po: Likewise.
22505         * modules/unictype/category-Ps: Likewise.
22506         * modules/unictype/category-S: Likewise.
22507         * modules/unictype/category-Sc: Likewise.
22508         * modules/unictype/category-Sk: Likewise.
22509         * modules/unictype/category-Sm: Likewise.
22510         * modules/unictype/category-So: Likewise.
22511         * modules/unictype/category-Z: Likewise.
22512         * modules/unictype/category-Zl: Likewise.
22513         * modules/unictype/category-Zp: Likewise.
22514         * modules/unictype/category-Zs: Likewise.
22515         * modules/unictype/category-and: Likewise.
22516         * modules/unictype/category-and-not: Likewise.
22517         * modules/unictype/category-byname: Likewise.
22518         * modules/unictype/category-name: Likewise.
22519         * modules/unictype/category-none: Likewise.
22520         * modules/unictype/category-of: Likewise.
22521         * modules/unictype/category-or: Likewise.
22522         * modules/unictype/category-test: Likewise.
22523         * modules/unictype/combining-class: Likewise.
22524         * modules/unictype/ctype-alnum: Likewise.
22525         * modules/unictype/ctype-alpha: Likewise.
22526         * modules/unictype/ctype-blank: Likewise.
22527         * modules/unictype/ctype-cntrl: Likewise.
22528         * modules/unictype/ctype-digit: Likewise.
22529         * modules/unictype/ctype-graph: Likewise.
22530         * modules/unictype/ctype-lower: Likewise.
22531         * modules/unictype/ctype-print: Likewise.
22532         * modules/unictype/ctype-punct: Likewise.
22533         * modules/unictype/ctype-space: Likewise.
22534         * modules/unictype/ctype-upper: Likewise.
22535         * modules/unictype/ctype-xdigit: Likewise.
22536         * modules/unictype/decimal-digit: Likewise.
22537         * modules/unictype/digit: Likewise.
22538         * modules/unictype/mirror: Likewise.
22539         * modules/unictype/numeric: Likewise.
22540         * modules/unictype/property-alphabetic: Likewise.
22541         * modules/unictype/property-ascii-hex-digit: Likewise.
22542         * modules/unictype/property-bidi-arabic-digit: Likewise.
22543         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
22544         * modules/unictype/property-bidi-block-separator: Likewise.
22545         * modules/unictype/property-bidi-boundary-neutral: Likewise.
22546         * modules/unictype/property-bidi-common-separator: Likewise.
22547         * modules/unictype/property-bidi-control: Likewise.
22548         * modules/unictype/property-bidi-embedding-or-override: Likewise.
22549         * modules/unictype/property-bidi-eur-num-separator: Likewise.
22550         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
22551         * modules/unictype/property-bidi-european-digit: Likewise.
22552         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
22553         * modules/unictype/property-bidi-left-to-right: Likewise.
22554         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
22555         * modules/unictype/property-bidi-other-neutral: Likewise.
22556         * modules/unictype/property-bidi-pdf: Likewise.
22557         * modules/unictype/property-bidi-segment-separator: Likewise.
22558         * modules/unictype/property-bidi-whitespace: Likewise.
22559         * modules/unictype/property-byname: Likewise.
22560         * modules/unictype/property-combining: Likewise.
22561         * modules/unictype/property-composite: Likewise.
22562         * modules/unictype/property-currency-symbol: Likewise.
22563         * modules/unictype/property-dash: Likewise.
22564         * modules/unictype/property-decimal-digit: Likewise.
22565         * modules/unictype/property-default-ignorable-code-point: Likewise.
22566         * modules/unictype/property-deprecated: Likewise.
22567         * modules/unictype/property-diacritic: Likewise.
22568         * modules/unictype/property-extender: Likewise.
22569         * modules/unictype/property-format-control: Likewise.
22570         * modules/unictype/property-grapheme-base: Likewise.
22571         * modules/unictype/property-grapheme-extend: Likewise.
22572         * modules/unictype/property-grapheme-link: Likewise.
22573         * modules/unictype/property-hex-digit: Likewise.
22574         * modules/unictype/property-hyphen: Likewise.
22575         * modules/unictype/property-id-continue: Likewise.
22576         * modules/unictype/property-id-start: Likewise.
22577         * modules/unictype/property-ideographic: Likewise.
22578         * modules/unictype/property-ids-binary-operator: Likewise.
22579         * modules/unictype/property-ids-trinary-operator: Likewise.
22580         * modules/unictype/property-ignorable-control: Likewise.
22581         * modules/unictype/property-iso-control: Likewise.
22582         * modules/unictype/property-join-control: Likewise.
22583         * modules/unictype/property-left-of-pair: Likewise.
22584         * modules/unictype/property-line-separator: Likewise.
22585         * modules/unictype/property-logical-order-exception: Likewise.
22586         * modules/unictype/property-lowercase: Likewise.
22587         * modules/unictype/property-math: Likewise.
22588         * modules/unictype/property-non-break: Likewise.
22589         * modules/unictype/property-not-a-character: Likewise.
22590         * modules/unictype/property-numeric: Likewise.
22591         * modules/unictype/property-other-alphabetic: Likewise.
22592         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
22593         * modules/unictype/property-other-grapheme-extend: Likewise.
22594         * modules/unictype/property-other-id-continue: Likewise.
22595         * modules/unictype/property-other-id-start: Likewise.
22596         * modules/unictype/property-other-lowercase: Likewise.
22597         * modules/unictype/property-other-math: Likewise.
22598         * modules/unictype/property-other-uppercase: Likewise.
22599         * modules/unictype/property-paired-punctuation: Likewise.
22600         * modules/unictype/property-paragraph-separator: Likewise.
22601         * modules/unictype/property-pattern-syntax: Likewise.
22602         * modules/unictype/property-pattern-white-space: Likewise.
22603         * modules/unictype/property-private-use: Likewise.
22604         * modules/unictype/property-punctuation: Likewise.
22605         * modules/unictype/property-quotation-mark: Likewise.
22606         * modules/unictype/property-radical: Likewise.
22607         * modules/unictype/property-sentence-terminal: Likewise.
22608         * modules/unictype/property-soft-dotted: Likewise.
22609         * modules/unictype/property-space: Likewise.
22610         * modules/unictype/property-terminal-punctuation: Likewise.
22611         * modules/unictype/property-test: Likewise.
22612         * modules/unictype/property-titlecase: Likewise.
22613         * modules/unictype/property-unassigned-code-value: Likewise.
22614         * modules/unictype/property-unified-ideograph: Likewise.
22615         * modules/unictype/property-uppercase: Likewise.
22616         * modules/unictype/property-variation-selector: Likewise.
22617         * modules/unictype/property-white-space: Likewise.
22618         * modules/unictype/property-xid-continue: Likewise.
22619         * modules/unictype/property-xid-start: Likewise.
22620         * modules/unictype/property-zero-width: Likewise.
22621         * modules/unictype/scripts: Likewise.
22622         * modules/unictype/syntax-c-ident: Likewise.
22623         * modules/unictype/syntax-c-whitespace: Likewise.
22624         * modules/unictype/syntax-java-ident: Likewise.
22625         * modules/unictype/syntax-java-whitespace: Likewise.
22626         * modules/unilbrk/u8-possible-linebreaks: Likewise.
22627         * modules/unilbrk/u8-width-linebreaks: Likewise.
22628         * modules/unilbrk/u16-possible-linebreaks: Likewise.
22629         * modules/unilbrk/u16-width-linebreaks: Likewise.
22630         * modules/unilbrk/u32-possible-linebreaks: Likewise.
22631         * modules/unilbrk/u32-width-linebreaks: Likewise.
22632         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
22633         * modules/unilbrk/ulc-width-linebreaks: Likewise.
22634         * modules/uniname/uniname: Likewise.
22635         * modules/uninorm/canonical-decomposition: Likewise.
22636         * modules/uninorm/composition: Likewise.
22637         * modules/uninorm/decomposing-form: Likewise.
22638         * modules/uninorm/decomposition: Likewise.
22639         * modules/uninorm/filter: Likewise.
22640         * modules/uninorm/nfc: Likewise.
22641         * modules/uninorm/nfd: Likewise.
22642         * modules/uninorm/nfkc: Likewise.
22643         * modules/uninorm/nfkd: Likewise.
22644         * modules/uninorm/u8-normalize: Likewise.
22645         * modules/uninorm/u8-normcmp: Likewise.
22646         * modules/uninorm/u8-normcoll: Likewise.
22647         * modules/uninorm/u8-normxfrm: Likewise.
22648         * modules/uninorm/u16-normalize: Likewise.
22649         * modules/uninorm/u16-normcmp: Likewise.
22650         * modules/uninorm/u16-normcoll: Likewise.
22651         * modules/uninorm/u16-normxfrm: Likewise.
22652         * modules/uninorm/u32-normalize: Likewise.
22653         * modules/uninorm/u32-normcmp: Likewise.
22654         * modules/uninorm/u32-normcoll: Likewise.
22655         * modules/uninorm/u32-normxfrm: Likewise.
22656         * modules/unistdio/u8-asnprintf: Likewise.
22657         * modules/unistdio/u8-asprintf: Likewise.
22658         * modules/unistdio/u8-snprintf: Likewise.
22659         * modules/unistdio/u8-sprintf: Likewise.
22660         * modules/unistdio/u8-u8-asnprintf: Likewise.
22661         * modules/unistdio/u8-u8-asprintf: Likewise.
22662         * modules/unistdio/u8-u8-snprintf: Likewise.
22663         * modules/unistdio/u8-u8-sprintf: Likewise.
22664         * modules/unistdio/u8-u8-vasnprintf: Likewise.
22665         * modules/unistdio/u8-u8-vasprintf: Likewise.
22666         * modules/unistdio/u8-u8-vsnprintf: Likewise.
22667         * modules/unistdio/u8-u8-vsprintf: Likewise.
22668         * modules/unistdio/u8-vasnprintf: Likewise.
22669         * modules/unistdio/u8-vasprintf: Likewise.
22670         * modules/unistdio/u8-vsnprintf: Likewise.
22671         * modules/unistdio/u8-vsprintf: Likewise.
22672         * modules/unistdio/u16-asnprintf: Likewise.
22673         * modules/unistdio/u16-asprintf: Likewise.
22674         * modules/unistdio/u16-snprintf: Likewise.
22675         * modules/unistdio/u16-sprintf: Likewise.
22676         * modules/unistdio/u16-u16-asnprintf: Likewise.
22677         * modules/unistdio/u16-u16-asprintf: Likewise.
22678         * modules/unistdio/u16-u16-snprintf: Likewise.
22679         * modules/unistdio/u16-u16-sprintf: Likewise.
22680         * modules/unistdio/u16-u16-vasnprintf: Likewise.
22681         * modules/unistdio/u16-u16-vasprintf: Likewise.
22682         * modules/unistdio/u16-u16-vsnprintf: Likewise.
22683         * modules/unistdio/u16-u16-vsprintf: Likewise.
22684         * modules/unistdio/u16-vasnprintf: Likewise.
22685         * modules/unistdio/u16-vasprintf: Likewise.
22686         * modules/unistdio/u16-vsnprintf: Likewise.
22687         * modules/unistdio/u16-vsprintf: Likewise.
22688         * modules/unistdio/u32-asnprintf: Likewise.
22689         * modules/unistdio/u32-asprintf: Likewise.
22690         * modules/unistdio/u32-snprintf: Likewise.
22691         * modules/unistdio/u32-sprintf: Likewise.
22692         * modules/unistdio/u32-u32-asnprintf: Likewise.
22693         * modules/unistdio/u32-u32-asprintf: Likewise.
22694         * modules/unistdio/u32-u32-snprintf: Likewise.
22695         * modules/unistdio/u32-u32-sprintf: Likewise.
22696         * modules/unistdio/u32-u32-vasnprintf: Likewise.
22697         * modules/unistdio/u32-u32-vasprintf: Likewise.
22698         * modules/unistdio/u32-u32-vsnprintf: Likewise.
22699         * modules/unistdio/u32-u32-vsprintf: Likewise.
22700         * modules/unistdio/u32-vasnprintf: Likewise.
22701         * modules/unistdio/u32-vasprintf: Likewise.
22702         * modules/unistdio/u32-vsnprintf: Likewise.
22703         * modules/unistdio/u32-vsprintf: Likewise.
22704         * modules/unistdio/ulc-asnprintf: Likewise.
22705         * modules/unistdio/ulc-asprintf: Likewise.
22706         * modules/unistdio/ulc-fprintf: Likewise.
22707         * modules/unistdio/ulc-snprintf: Likewise.
22708         * modules/unistdio/ulc-sprintf: Likewise.
22709         * modules/unistdio/ulc-vasnprintf: Likewise.
22710         * modules/unistdio/ulc-vasprintf: Likewise.
22711         * modules/unistdio/ulc-vfprintf: Likewise.
22712         * modules/unistdio/ulc-vsnprintf: Likewise.
22713         * modules/unistdio/ulc-vsprintf: Likewise.
22714         * modules/unistr/u8-check: Likewise.
22715         * modules/unistr/u8-chr: Likewise.
22716         * modules/unistr/u8-cmp: Likewise.
22717         * modules/unistr/u8-cmp2: Likewise.
22718         * modules/unistr/u8-cpy: Likewise.
22719         * modules/unistr/u8-cpy-alloc: Likewise.
22720         * modules/unistr/u8-endswith: Likewise.
22721         * modules/unistr/u8-mblen: Likewise.
22722         * modules/unistr/u8-mbsnlen: Likewise.
22723         * modules/unistr/u8-mbtouc: Likewise.
22724         * modules/unistr/u8-mbtouc-unsafe: Likewise.
22725         * modules/unistr/u8-mbtoucr: Likewise.
22726         * modules/unistr/u8-move: Likewise.
22727         * modules/unistr/u8-next: Likewise.
22728         * modules/unistr/u8-prev: Likewise.
22729         * modules/unistr/u8-set: Likewise.
22730         * modules/unistr/u8-startswith: Likewise.
22731         * modules/unistr/u8-stpcpy: Likewise.
22732         * modules/unistr/u8-stpncpy: Likewise.
22733         * modules/unistr/u8-strcat: Likewise.
22734         * modules/unistr/u8-strchr: Likewise.
22735         * modules/unistr/u8-strcmp: Likewise.
22736         * modules/unistr/u8-strcoll: Likewise.
22737         * modules/unistr/u8-strcpy: Likewise.
22738         * modules/unistr/u8-strcspn: Likewise.
22739         * modules/unistr/u8-strdup: Likewise.
22740         * modules/unistr/u8-strlen: Likewise.
22741         * modules/unistr/u8-strmblen: Likewise.
22742         * modules/unistr/u8-strmbtouc: Likewise.
22743         * modules/unistr/u8-strncat: Likewise.
22744         * modules/unistr/u8-strncmp: Likewise.
22745         * modules/unistr/u8-strncpy: Likewise.
22746         * modules/unistr/u8-strnlen: Likewise.
22747         * modules/unistr/u8-strpbrk: Likewise.
22748         * modules/unistr/u8-strrchr: Likewise.
22749         * modules/unistr/u8-strspn: Likewise.
22750         * modules/unistr/u8-strstr: Likewise.
22751         * modules/unistr/u8-strtok: Likewise.
22752         * modules/unistr/u8-to-u16: Likewise.
22753         * modules/unistr/u8-to-u32: Likewise.
22754         * modules/unistr/u8-uctomb: Likewise.
22755         * modules/unistr/u16-check: Likewise.
22756         * modules/unistr/u16-chr: Likewise.
22757         * modules/unistr/u16-cmp: Likewise.
22758         * modules/unistr/u16-cmp2: Likewise.
22759         * modules/unistr/u16-cpy: Likewise.
22760         * modules/unistr/u16-cpy-alloc: Likewise.
22761         * modules/unistr/u16-endswith: Likewise.
22762         * modules/unistr/u16-mblen: Likewise.
22763         * modules/unistr/u16-mbsnlen: Likewise.
22764         * modules/unistr/u16-mbtouc: Likewise.
22765         * modules/unistr/u16-mbtouc-unsafe: Likewise.
22766         * modules/unistr/u16-mbtoucr: Likewise.
22767         * modules/unistr/u16-move: Likewise.
22768         * modules/unistr/u16-next: Likewise.
22769         * modules/unistr/u16-prev: Likewise.
22770         * modules/unistr/u16-set: Likewise.
22771         * modules/unistr/u16-startswith: Likewise.
22772         * modules/unistr/u16-stpcpy: Likewise.
22773         * modules/unistr/u16-stpncpy: Likewise.
22774         * modules/unistr/u16-strcat: Likewise.
22775         * modules/unistr/u16-strchr: Likewise.
22776         * modules/unistr/u16-strcmp: Likewise.
22777         * modules/unistr/u16-strcoll: Likewise.
22778         * modules/unistr/u16-strcpy: Likewise.
22779         * modules/unistr/u16-strcspn: Likewise.
22780         * modules/unistr/u16-strdup: Likewise.
22781         * modules/unistr/u16-strlen: Likewise.
22782         * modules/unistr/u16-strmblen: Likewise.
22783         * modules/unistr/u16-strmbtouc: Likewise.
22784         * modules/unistr/u16-strncat: Likewise.
22785         * modules/unistr/u16-strncmp: Likewise.
22786         * modules/unistr/u16-strncpy: Likewise.
22787         * modules/unistr/u16-strnlen: Likewise.
22788         * modules/unistr/u16-strpbrk: Likewise.
22789         * modules/unistr/u16-strrchr: Likewise.
22790         * modules/unistr/u16-strspn: Likewise.
22791         * modules/unistr/u16-strstr: Likewise.
22792         * modules/unistr/u16-strtok: Likewise.
22793         * modules/unistr/u16-to-u32: Likewise.
22794         * modules/unistr/u16-to-u8: Likewise.
22795         * modules/unistr/u16-uctomb: Likewise.
22796         * modules/unistr/u32-check: Likewise.
22797         * modules/unistr/u32-chr: Likewise.
22798         * modules/unistr/u32-cmp: Likewise.
22799         * modules/unistr/u32-cmp2: Likewise.
22800         * modules/unistr/u32-cpy: Likewise.
22801         * modules/unistr/u32-cpy-alloc: Likewise.
22802         * modules/unistr/u32-endswith: Likewise.
22803         * modules/unistr/u32-mblen: Likewise.
22804         * modules/unistr/u32-mbsnlen: Likewise.
22805         * modules/unistr/u32-mbtouc: Likewise.
22806         * modules/unistr/u32-mbtouc-unsafe: Likewise.
22807         * modules/unistr/u32-mbtoucr: Likewise.
22808         * modules/unistr/u32-move: Likewise.
22809         * modules/unistr/u32-next: Likewise.
22810         * modules/unistr/u32-prev: Likewise.
22811         * modules/unistr/u32-set: Likewise.
22812         * modules/unistr/u32-startswith: Likewise.
22813         * modules/unistr/u32-stpcpy: Likewise.
22814         * modules/unistr/u32-stpncpy: Likewise.
22815         * modules/unistr/u32-strcat: Likewise.
22816         * modules/unistr/u32-strchr: Likewise.
22817         * modules/unistr/u32-strcmp: Likewise.
22818         * modules/unistr/u32-strcoll: Likewise.
22819         * modules/unistr/u32-strcpy: Likewise.
22820         * modules/unistr/u32-strcspn: Likewise.
22821         * modules/unistr/u32-strdup: Likewise.
22822         * modules/unistr/u32-strlen: Likewise.
22823         * modules/unistr/u32-strmblen: Likewise.
22824         * modules/unistr/u32-strmbtouc: Likewise.
22825         * modules/unistr/u32-strncat: Likewise.
22826         * modules/unistr/u32-strncmp: Likewise.
22827         * modules/unistr/u32-strncpy: Likewise.
22828         * modules/unistr/u32-strnlen: Likewise.
22829         * modules/unistr/u32-strpbrk: Likewise.
22830         * modules/unistr/u32-strrchr: Likewise.
22831         * modules/unistr/u32-strspn: Likewise.
22832         * modules/unistr/u32-strstr: Likewise.
22833         * modules/unistr/u32-strtok: Likewise.
22834         * modules/unistr/u32-to-u16: Likewise.
22835         * modules/unistr/u32-to-u8: Likewise.
22836         * modules/unistr/u32-uctomb: Likewise.
22837         * modules/uniwbrk/u8-wordbreaks: Likewise.
22838         * modules/uniwbrk/u16-wordbreaks: Likewise.
22839         * modules/uniwbrk/u32-wordbreaks: Likewise.
22840         * modules/uniwbrk/ulc-wordbreaks: Likewise.
22841         * modules/uniwbrk/wordbreak-property: Likewise.
22842         * modules/uniwidth/u8-strwidth: Likewise.
22843         * modules/uniwidth/u8-width: Likewise.
22844         * modules/uniwidth/u16-strwidth: Likewise.
22845         * modules/uniwidth/u16-width: Likewise.
22846         * modules/uniwidth/u32-strwidth: Likewise.
22847         * modules/uniwidth/u32-width: Likewise.
22848         * modules/uniwidth/width: Likewise.
22849         * modules/unicase/cased-tests (Makefile.am): Link all test programs
22850         with $(LIBUNISTRING).
22851         * modules/unicase/ignorable-tests: Likewise.
22852         * modules/unicase/locale-language-tests: Likewise.
22853         * modules/unicase/tolower-tests: Likewise.
22854         * modules/unicase/totitle-tests: Likewise.
22855         * modules/unicase/toupper-tests: Likewise.
22856         * modules/unicase/u8-casecmp-tests: Likewise.
22857         * modules/unicase/u8-casecoll-tests: Likewise.
22858         * modules/unicase/u8-casefold-tests: Likewise.
22859         * modules/unicase/u8-is-cased-tests: Likewise.
22860         * modules/unicase/u8-is-casefolded-tests: Likewise.
22861         * modules/unicase/u8-is-lowercase-tests: Likewise.
22862         * modules/unicase/u8-is-titlecase-tests: Likewise.
22863         * modules/unicase/u8-is-uppercase-tests: Likewise.
22864         * modules/unicase/u8-tolower-tests: Likewise.
22865         * modules/unicase/u8-totitle-tests: Likewise.
22866         * modules/unicase/u8-toupper-tests: Likewise.
22867         * modules/unicase/u16-casecmp-tests: Likewise.
22868         * modules/unicase/u16-casecoll-tests: Likewise.
22869         * modules/unicase/u16-casefold-tests: Likewise.
22870         * modules/unicase/u16-is-cased-tests: Likewise.
22871         * modules/unicase/u16-is-casefolded-tests: Likewise.
22872         * modules/unicase/u16-is-lowercase-tests: Likewise.
22873         * modules/unicase/u16-is-titlecase-tests: Likewise.
22874         * modules/unicase/u16-is-uppercase-tests: Likewise.
22875         * modules/unicase/u16-tolower-tests: Likewise.
22876         * modules/unicase/u16-totitle-tests: Likewise.
22877         * modules/unicase/u16-toupper-tests: Likewise.
22878         * modules/unicase/u32-casecmp-tests: Likewise.
22879         * modules/unicase/u32-casecoll-tests: Likewise.
22880         * modules/unicase/u32-casefold-tests: Likewise.
22881         * modules/unicase/u32-is-cased-tests: Likewise.
22882         * modules/unicase/u32-is-casefolded-tests: Likewise.
22883         * modules/unicase/u32-is-lowercase-tests: Likewise.
22884         * modules/unicase/u32-is-titlecase-tests: Likewise.
22885         * modules/unicase/u32-is-uppercase-tests: Likewise.
22886         * modules/unicase/u32-tolower-tests: Likewise.
22887         * modules/unicase/u32-totitle-tests: Likewise.
22888         * modules/unicase/u32-toupper-tests: Likewise.
22889         * modules/unicase/ulc-casecmp-tests: Likewise.
22890         * modules/unicase/ulc-casecoll-tests: Likewise.
22891         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
22892         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
22893         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
22894         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
22895         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
22896         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
22897         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
22898         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
22899         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
22900         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
22901         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
22902         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
22903         * modules/unictype/bidicategory-byname-tests: Likewise.
22904         * modules/unictype/bidicategory-name-tests: Likewise.
22905         * modules/unictype/bidicategory-of-tests: Likewise.
22906         * modules/unictype/bidicategory-test-tests: Likewise.
22907         * modules/unictype/block-list-tests: Likewise.
22908         * modules/unictype/block-of-tests: Likewise.
22909         * modules/unictype/block-test-tests: Likewise.
22910         * modules/unictype/category-C-tests: Likewise.
22911         * modules/unictype/category-Cc-tests: Likewise.
22912         * modules/unictype/category-Cf-tests: Likewise.
22913         * modules/unictype/category-Cn-tests: Likewise.
22914         * modules/unictype/category-Co-tests: Likewise.
22915         * modules/unictype/category-Cs-tests: Likewise.
22916         * modules/unictype/category-L-tests: Likewise.
22917         * modules/unictype/category-Ll-tests: Likewise.
22918         * modules/unictype/category-Lm-tests: Likewise.
22919         * modules/unictype/category-Lo-tests: Likewise.
22920         * modules/unictype/category-Lt-tests: Likewise.
22921         * modules/unictype/category-Lu-tests: Likewise.
22922         * modules/unictype/category-M-tests: Likewise.
22923         * modules/unictype/category-Mc-tests: Likewise.
22924         * modules/unictype/category-Me-tests: Likewise.
22925         * modules/unictype/category-Mn-tests: Likewise.
22926         * modules/unictype/category-N-tests: Likewise.
22927         * modules/unictype/category-Nd-tests: Likewise.
22928         * modules/unictype/category-Nl-tests: Likewise.
22929         * modules/unictype/category-No-tests: Likewise.
22930         * modules/unictype/category-P-tests: Likewise.
22931         * modules/unictype/category-Pc-tests: Likewise.
22932         * modules/unictype/category-Pd-tests: Likewise.
22933         * modules/unictype/category-Pe-tests: Likewise.
22934         * modules/unictype/category-Pf-tests: Likewise.
22935         * modules/unictype/category-Pi-tests: Likewise.
22936         * modules/unictype/category-Po-tests: Likewise.
22937         * modules/unictype/category-Ps-tests: Likewise.
22938         * modules/unictype/category-S-tests: Likewise.
22939         * modules/unictype/category-Sc-tests: Likewise.
22940         * modules/unictype/category-Sk-tests: Likewise.
22941         * modules/unictype/category-Sm-tests: Likewise.
22942         * modules/unictype/category-So-tests: Likewise.
22943         * modules/unictype/category-Z-tests: Likewise.
22944         * modules/unictype/category-Zl-tests: Likewise.
22945         * modules/unictype/category-Zp-tests: Likewise.
22946         * modules/unictype/category-Zs-tests: Likewise.
22947         * modules/unictype/category-and-not-tests: Likewise.
22948         * modules/unictype/category-and-tests: Likewise.
22949         * modules/unictype/category-byname-tests: Likewise.
22950         * modules/unictype/category-name-tests: Likewise.
22951         * modules/unictype/category-none-tests: Likewise.
22952         * modules/unictype/category-of-tests: Likewise.
22953         * modules/unictype/category-or-tests: Likewise.
22954         * modules/unictype/category-test-withtable-tests: Likewise.
22955         * modules/unictype/combining-class-tests: Likewise.
22956         * modules/unictype/ctype-alnum-tests: Likewise.
22957         * modules/unictype/ctype-alpha-tests: Likewise.
22958         * modules/unictype/ctype-blank-tests: Likewise.
22959         * modules/unictype/ctype-cntrl-tests: Likewise.
22960         * modules/unictype/ctype-digit-tests: Likewise.
22961         * modules/unictype/ctype-graph-tests: Likewise.
22962         * modules/unictype/ctype-lower-tests: Likewise.
22963         * modules/unictype/ctype-print-tests: Likewise.
22964         * modules/unictype/ctype-punct-tests: Likewise.
22965         * modules/unictype/ctype-space-tests: Likewise.
22966         * modules/unictype/ctype-upper-tests: Likewise.
22967         * modules/unictype/ctype-xdigit-tests: Likewise.
22968         * modules/unictype/decimal-digit-tests: Likewise.
22969         * modules/unictype/digit-tests: Likewise.
22970         * modules/unictype/mirror-tests: Likewise.
22971         * modules/unictype/numeric-tests: Likewise.
22972         * modules/unictype/property-alphabetic-tests: Likewise.
22973         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
22974         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
22975         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
22976         * modules/unictype/property-bidi-block-separator-tests: Likewise.
22977         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
22978         * modules/unictype/property-bidi-common-separator-tests: Likewise.
22979         * modules/unictype/property-bidi-control-tests: Likewise.
22980         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
22981         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
22982         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
22983         * modules/unictype/property-bidi-european-digit-tests: Likewise.
22984         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
22985         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
22986         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
22987         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
22988         * modules/unictype/property-bidi-pdf-tests: Likewise.
22989         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
22990         * modules/unictype/property-bidi-whitespace-tests: Likewise.
22991         * modules/unictype/property-byname-tests: Likewise.
22992         * modules/unictype/property-combining-tests: Likewise.
22993         * modules/unictype/property-composite-tests: Likewise.
22994         * modules/unictype/property-currency-symbol-tests: Likewise.
22995         * modules/unictype/property-dash-tests: Likewise.
22996         * modules/unictype/property-decimal-digit-tests: Likewise.
22997         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
22998         * modules/unictype/property-deprecated-tests: Likewise.
22999         * modules/unictype/property-diacritic-tests: Likewise.
23000         * modules/unictype/property-extender-tests: Likewise.
23001         * modules/unictype/property-format-control-tests: Likewise.
23002         * modules/unictype/property-grapheme-base-tests: Likewise.
23003         * modules/unictype/property-grapheme-extend-tests: Likewise.
23004         * modules/unictype/property-grapheme-link-tests: Likewise.
23005         * modules/unictype/property-hex-digit-tests: Likewise.
23006         * modules/unictype/property-hyphen-tests: Likewise.
23007         * modules/unictype/property-id-continue-tests: Likewise.
23008         * modules/unictype/property-id-start-tests: Likewise.
23009         * modules/unictype/property-ideographic-tests: Likewise.
23010         * modules/unictype/property-ids-binary-operator-tests: Likewise.
23011         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
23012         * modules/unictype/property-ignorable-control-tests: Likewise.
23013         * modules/unictype/property-iso-control-tests: Likewise.
23014         * modules/unictype/property-join-control-tests: Likewise.
23015         * modules/unictype/property-left-of-pair-tests: Likewise.
23016         * modules/unictype/property-line-separator-tests: Likewise.
23017         * modules/unictype/property-logical-order-exception-tests: Likewise.
23018         * modules/unictype/property-lowercase-tests: Likewise.
23019         * modules/unictype/property-math-tests: Likewise.
23020         * modules/unictype/property-non-break-tests: Likewise.
23021         * modules/unictype/property-not-a-character-tests: Likewise.
23022         * modules/unictype/property-numeric-tests: Likewise.
23023         * modules/unictype/property-other-alphabetic-tests: Likewise.
23024         * modules/unictype/property-other-default-ignorable-code-point-tests:
23025         Likewise.
23026         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
23027         * modules/unictype/property-other-id-continue-tests: Likewise.
23028         * modules/unictype/property-other-id-start-tests: Likewise.
23029         * modules/unictype/property-other-lowercase-tests: Likewise.
23030         * modules/unictype/property-other-math-tests: Likewise.
23031         * modules/unictype/property-other-uppercase-tests: Likewise.
23032         * modules/unictype/property-paired-punctuation-tests: Likewise.
23033         * modules/unictype/property-paragraph-separator-tests: Likewise.
23034         * modules/unictype/property-pattern-syntax-tests: Likewise.
23035         * modules/unictype/property-pattern-white-space-tests: Likewise.
23036         * modules/unictype/property-private-use-tests: Likewise.
23037         * modules/unictype/property-punctuation-tests: Likewise.
23038         * modules/unictype/property-quotation-mark-tests: Likewise.
23039         * modules/unictype/property-radical-tests: Likewise.
23040         * modules/unictype/property-sentence-terminal-tests: Likewise.
23041         * modules/unictype/property-soft-dotted-tests: Likewise.
23042         * modules/unictype/property-space-tests: Likewise.
23043         * modules/unictype/property-terminal-punctuation-tests: Likewise.
23044         * modules/unictype/property-test-tests: Likewise.
23045         * modules/unictype/property-titlecase-tests: Likewise.
23046         * modules/unictype/property-unassigned-code-value-tests: Likewise.
23047         * modules/unictype/property-unified-ideograph-tests: Likewise.
23048         * modules/unictype/property-uppercase-tests: Likewise.
23049         * modules/unictype/property-variation-selector-tests: Likewise.
23050         * modules/unictype/property-white-space-tests: Likewise.
23051         * modules/unictype/property-xid-continue-tests: Likewise.
23052         * modules/unictype/property-xid-start-tests: Likewise.
23053         * modules/unictype/property-zero-width-tests: Likewise.
23054         * modules/unictype/scripts-tests: Likewise.
23055         * modules/unictype/syntax-c-ident-tests: Likewise.
23056         * modules/unictype/syntax-c-whitespace-tests: Likewise.
23057         * modules/unictype/syntax-java-ident-tests: Likewise.
23058         * modules/unictype/syntax-java-whitespace-tests: Likewise.
23059         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
23060         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
23061         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
23062         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
23063         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
23064         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
23065         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
23066         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
23067         * modules/uniname/uniname-tests: Likewise.
23068         * modules/uninorm/canonical-decomposition-tests: Likewise.
23069         * modules/uninorm/compat-decomposition-tests: Likewise.
23070         * modules/uninorm/composition-tests: Likewise.
23071         * modules/uninorm/decomposing-form-tests: Likewise.
23072         * modules/uninorm/decomposition-tests: Likewise.
23073         * modules/uninorm/filter-tests: Likewise.
23074         * modules/uninorm/nfc-tests: Likewise.
23075         * modules/uninorm/nfd-tests: Likewise.
23076         * modules/uninorm/nfkc-tests: Likewise.
23077         * modules/uninorm/nfkd-tests: Likewise.
23078         * modules/uninorm/u8-normcmp-tests: Likewise.
23079         * modules/uninorm/u8-normcoll-tests: Likewise.
23080         * modules/uninorm/u16-normcmp-tests: Likewise.
23081         * modules/uninorm/u16-normcoll-tests: Likewise.
23082         * modules/uninorm/u32-normcmp-tests: Likewise.
23083         * modules/uninorm/u32-normcoll-tests: Likewise.
23084         * modules/unistdio/u8-asnprintf-tests: Likewise.
23085         * modules/unistdio/u8-vasnprintf-tests: Likewise.
23086         * modules/unistdio/u8-vasprintf-tests: Likewise.
23087         * modules/unistdio/u8-vsnprintf-tests: Likewise.
23088         * modules/unistdio/u8-vsprintf-tests: Likewise.
23089         * modules/unistdio/u16-asnprintf-tests: Likewise.
23090         * modules/unistdio/u16-vasnprintf-tests: Likewise.
23091         * modules/unistdio/u16-vasprintf-tests: Likewise.
23092         * modules/unistdio/u16-vsnprintf-tests: Likewise.
23093         * modules/unistdio/u16-vsprintf-tests: Likewise.
23094         * modules/unistdio/u32-asnprintf-tests: Likewise.
23095         * modules/unistdio/u32-vasnprintf-tests: Likewise.
23096         * modules/unistdio/u32-vasprintf-tests: Likewise.
23097         * modules/unistdio/u32-vsnprintf-tests: Likewise.
23098         * modules/unistdio/u32-vsprintf-tests: Likewise.
23099         * modules/unistdio/ulc-asnprintf-tests: Likewise.
23100         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
23101         * modules/unistdio/ulc-vasprintf-tests: Likewise.
23102         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
23103         * modules/unistdio/ulc-vsprintf-tests: Likewise.
23104         * modules/unistr/u8-check-tests: Likewise.
23105         * modules/unistr/u8-chr-tests: Likewise.
23106         * modules/unistr/u8-cmp-tests: Likewise.
23107         * modules/unistr/u8-cmp2-tests: Likewise.
23108         * modules/unistr/u8-cpy-alloc-tests: Likewise.
23109         * modules/unistr/u8-cpy-tests: Likewise.
23110         * modules/unistr/u8-mblen-tests: Likewise.
23111         * modules/unistr/u8-mbsnlen-tests: Likewise.
23112         * modules/unistr/u8-mbtouc-tests: Likewise.
23113         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
23114         * modules/unistr/u8-mbtoucr-tests: Likewise.
23115         * modules/unistr/u8-move-tests: Likewise.
23116         * modules/unistr/u8-next-tests: Likewise.
23117         * modules/unistr/u8-prev-tests: Likewise.
23118         * modules/unistr/u8-set-tests: Likewise.
23119         * modules/unistr/u8-stpcpy-tests: Likewise.
23120         * modules/unistr/u8-stpncpy-tests: Likewise.
23121         * modules/unistr/u8-strcat-tests: Likewise.
23122         * modules/unistr/u8-strcmp-tests: Likewise.
23123         * modules/unistr/u8-strcoll-tests: Likewise.
23124         * modules/unistr/u8-strcpy-tests: Likewise.
23125         * modules/unistr/u8-strdup-tests: Likewise.
23126         * modules/unistr/u8-strlen-tests: Likewise.
23127         * modules/unistr/u8-strmblen-tests: Likewise.
23128         * modules/unistr/u8-strmbtouc-tests: Likewise.
23129         * modules/unistr/u8-strncat-tests: Likewise.
23130         * modules/unistr/u8-strncmp-tests: Likewise.
23131         * modules/unistr/u8-strncpy-tests: Likewise.
23132         * modules/unistr/u8-strnlen-tests: Likewise.
23133         * modules/unistr/u8-to-u16-tests: Likewise.
23134         * modules/unistr/u8-to-u32-tests: Likewise.
23135         * modules/unistr/u8-uctomb-tests: Likewise.
23136         * modules/unistr/u16-check-tests: Likewise.
23137         * modules/unistr/u16-chr-tests: Likewise.
23138         * modules/unistr/u16-cmp-tests: Likewise.
23139         * modules/unistr/u16-cmp2-tests: Likewise.
23140         * modules/unistr/u16-cpy-alloc-tests: Likewise.
23141         * modules/unistr/u16-cpy-tests: Likewise.
23142         * modules/unistr/u16-mblen-tests: Likewise.
23143         * modules/unistr/u16-mbsnlen-tests: Likewise.
23144         * modules/unistr/u16-mbtouc-tests: Likewise.
23145         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
23146         * modules/unistr/u16-mbtoucr-tests: Likewise.
23147         * modules/unistr/u16-move-tests: Likewise.
23148         * modules/unistr/u16-next-tests: Likewise.
23149         * modules/unistr/u16-prev-tests: Likewise.
23150         * modules/unistr/u16-set-tests: Likewise.
23151         * modules/unistr/u16-stpcpy-tests: Likewise.
23152         * modules/unistr/u16-stpncpy-tests: Likewise.
23153         * modules/unistr/u16-strcat-tests: Likewise.
23154         * modules/unistr/u16-strcmp-tests: Likewise.
23155         * modules/unistr/u16-strcoll-tests: Likewise.
23156         * modules/unistr/u16-strcpy-tests: Likewise.
23157         * modules/unistr/u16-strdup-tests: Likewise.
23158         * modules/unistr/u16-strlen-tests: Likewise.
23159         * modules/unistr/u16-strmblen-tests: Likewise.
23160         * modules/unistr/u16-strmbtouc-tests: Likewise.
23161         * modules/unistr/u16-strncat-tests: Likewise.
23162         * modules/unistr/u16-strncmp-tests: Likewise.
23163         * modules/unistr/u16-strncpy-tests: Likewise.
23164         * modules/unistr/u16-strnlen-tests: Likewise.
23165         * modules/unistr/u16-to-u32-tests: Likewise.
23166         * modules/unistr/u16-to-u8-tests: Likewise.
23167         * modules/unistr/u16-uctomb-tests: Likewise.
23168         * modules/unistr/u32-check-tests: Likewise.
23169         * modules/unistr/u32-chr-tests: Likewise.
23170         * modules/unistr/u32-cmp-tests: Likewise.
23171         * modules/unistr/u32-cmp2-tests: Likewise.
23172         * modules/unistr/u32-cpy-alloc-tests: Likewise.
23173         * modules/unistr/u32-cpy-tests: Likewise.
23174         * modules/unistr/u32-mblen-tests: Likewise.
23175         * modules/unistr/u32-mbsnlen-tests: Likewise.
23176         * modules/unistr/u32-mbtouc-tests: Likewise.
23177         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
23178         * modules/unistr/u32-mbtoucr-tests: Likewise.
23179         * modules/unistr/u32-move-tests: Likewise.
23180         * modules/unistr/u32-next-tests: Likewise.
23181         * modules/unistr/u32-prev-tests: Likewise.
23182         * modules/unistr/u32-set-tests: Likewise.
23183         * modules/unistr/u32-stpcpy-tests: Likewise.
23184         * modules/unistr/u32-stpncpy-tests: Likewise.
23185         * modules/unistr/u32-strcat-tests: Likewise.
23186         * modules/unistr/u32-strcmp-tests: Likewise.
23187         * modules/unistr/u32-strcoll-tests: Likewise.
23188         * modules/unistr/u32-strcpy-tests: Likewise.
23189         * modules/unistr/u32-strdup-tests: Likewise.
23190         * modules/unistr/u32-strlen-tests: Likewise.
23191         * modules/unistr/u32-strmblen-tests: Likewise.
23192         * modules/unistr/u32-strmbtouc-tests: Likewise.
23193         * modules/unistr/u32-strncat-tests: Likewise.
23194         * modules/unistr/u32-strncmp-tests: Likewise.
23195         * modules/unistr/u32-strncpy-tests: Likewise.
23196         * modules/unistr/u32-strnlen-tests: Likewise.
23197         * modules/unistr/u32-to-u16-tests: Likewise.
23198         * modules/unistr/u32-to-u8-tests: Likewise.
23199         * modules/unistr/u32-uctomb-tests: Likewise.
23200         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
23201         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
23202         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
23203         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
23204         * modules/uniwidth/u8-strwidth-tests: Likewise.
23205         * modules/uniwidth/u8-width-tests: Likewise.
23206         * modules/uniwidth/u16-strwidth-tests: Likewise.
23207         * modules/uniwidth/u16-width-tests: Likewise.
23208         * modules/uniwidth/u32-strwidth-tests: Likewise.
23209         * modules/uniwidth/u32-width-tests: Likewise.
23210         * modules/uniwidth/width-tests: Likewise.
23211
23212 2010-05-18  Richard Jones  <rjones@redhat.com>
23213
23214         doc: users.txt: list hivex
23215         * users.txt: Add hivex.
23216
23217 2010-05-18  Richard Jones  <rjones@redhat.com>
23218
23219         doc: users.txt: list febootstrap
23220         * users.txt: Add febootstrap.
23221
23222 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
23223
23224         bootstrap: fix an error when gnulib is not used as a git submodule
23225         * build-aux/bootstrap (gnulib_path): If its length is zero then
23226         assign "gnulib" to it.
23227         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
23228
23229 2010-05-16  Bruno Haible  <bruno@clisp.org>
23230
23231         Avoid autoconf warnings about AM_ICONV.
23232         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
23233         2.64.
23234
23235 2010-05-16  Bruno Haible  <bruno@clisp.org>
23236
23237         absolute-header: Make the macro usable in more situations.
23238         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
23239         from gl_ABSOLUTE_HEADER.
23240         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
23241
23242 2010-05-16  James Youngman  <jay@gnu.org>
23243
23244         doc: update users.txt
23245         * users.txt: Add CSSC.
23246
23247 2010-05-16  Jim Meyering  <meyering@redhat.com>
23248
23249         init.sh: fix an error in the previous change; add more comments
23250         * tests/init.sh: Compare exit code in loop against 9, not 2.
23251         Patch by Bruno Haible.
23252         Make the two tests more similar by adding an empty "then" clause.
23253         Add comments.
23254
23255         init.sh: avoid unnecessary shell re-exec
23256         * tests/init.sh: Improve the re-exec-required check to first test the
23257         current shell.  If it passes the test, do not search for a shell that
23258         does pass, and do not re-exec.  This test is particularly contorted to
23259         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
23260         of $(...) evokes a syntax error and causes immediate shell exit with
23261         status 2.  Bruno Haible reported that the re-exec made it impossible
23262         to single-step through any init.sh-using script.
23263
23264 2010-05-16  Bruno Haible  <bruno@clisp.org>
23265
23266         Fix collision between gnulib's and libintl's printf replacements.
23267         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
23268         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
23269         (printf): When using GNU C, map the __printf__ function to rpl_printf
23270         via __asm__. When not using GNU C, define rpl_printf instead of
23271         __printf__.
23272         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
23273         commit.
23274         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
23275         commit.
23276         * m4/asm-underscore.m4: New file.
23277         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
23278         * modules/stdio (Files): Add m4/asm-underscore.m4.
23279         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
23280         Reported by Ben Pfaff.
23281
23282 2010-05-16  Bruno Haible  <bruno@clisp.org>
23283
23284         verify: Avoid skipping the test on openSUSE 11.0.
23285         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
23286
23287 2010-05-13  Bruno Haible  <bruno@clisp.org>
23288
23289         Avoid useless warnings from G++.
23290         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
23291         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
23292         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
23293
23294 2010-05-11  Jim Meyering  <meyering@redhat.com>
23295
23296         maint.mk: tweak preceding change
23297         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
23298         regexps tighter by anchoring at EOL, and make the new group "shy"
23299         for slightly decreased overhead.
23300
23301 2010-05-11  Eric Blake  <eblake@redhat.com>
23302
23303         maint.mk: gnulib doesn't guarantee NSIG
23304         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
23305
23306 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
23307
23308         test-pwrite.c: Remove unused variable declaration.
23309         * tests/test-pwrite.c (main): Remove read_buf declaration.
23310
23311         Remove useless test-pwrite.sh file.
23312         * tests/test-pwrite.sh: Delete file.
23313         * modules/pwrite-tests: Remove references.
23314         Reported by Bruno Haible.
23315
23316 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
23317
23318         init.sh: fix a typo
23319         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
23320
23321 2010-05-10  Jim Meyering  <meyering@redhat.com>
23322
23323         maint.mk: avoid using a temporary file in the always-defined-macros check
23324         * top/maint.mk (.re-defmac): Remove rule.
23325         (gl_trap_): Remove definition.
23326         (sc_prohibit_always-defined_macros): Rewrite not to create and
23327         depend on a temporary file.  Instead, depend on GNU grep's ability
23328         to read a list of regular expressions from stdin when given "-f -".
23329
23330 2010-05-09  Bruno Haible  <bruno@clisp.org>
23331
23332         Update to GNU gettext 0.18, part 1.
23333         * m4/gettext.m4: Update to GNU gettext 0.18.
23334         * m4/intl.m4: Likewise.
23335         * m4/po.m4: Likewise.
23336         * modules/gettext (Files): Add m4/fcntl-o.m4.
23337         (configure.ac): Require gettext infrastructure from version 0.18.
23338
23339 2010-05-09  Jim Meyering  <meyering@redhat.com>
23340
23341         init.sh: enable MALLOC_PERTURB_
23342         * tests/init.sh: Enable glibc's malloc-perturbing option.
23343
23344         maint.mk: improve sc_cross_check_PATH_usage_in_tests
23345         With my recent change in init.sh from the two-line form:
23346             -#   : ${srcdir=.}
23347             -#   . "$srcdir/init.sh"; path_prepend_ .
23348             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
23349         I noticed that using the one-line form would cause this test
23350         to fail with a false-positive, or to stop working altogether,
23351         depending on whether help-version changed or all the tests did.
23352         * top/maint.mk (_hv_regex): Remove this definition.
23353         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
23354         (_hv_regex_strong): Use a stronger regex to check for conformance.
23355         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
23356         Give a separate diagnostic for lack of conforming use.
23357
23358         maint.mk: prohibit definition of symbols defined by gnulib
23359         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
23360         definition of symbols defined by gnulib.
23361
23362 2010-05-09  Bruno Haible  <bruno@clisp.org>
23363
23364         acl: Avoid test failure on Cygwin-hosted mingw.
23365         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
23366
23367 2010-05-09  Bruno Haible  <bruno@clisp.org>
23368
23369         error: Use system's fcntl function.
23370         * lib/error.c (fcntl): Undefine.
23371
23372 2010-05-09  Jim Meyering  <meyering@redhat.com>
23373
23374         verify: adjust formatting to be more consistent
23375         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
23376         argument-list '('s, and after one comma.
23377
23378 2010-05-09  Bruno Haible  <bruno@clisp.org>
23379
23380         error: More reliable output on mingw.
23381         * lib/error.c: Include <windows.h>.
23382         (is_open): New function.
23383         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
23384         defined.
23385
23386 2010-05-09  Bruno Haible  <bruno@clisp.org>
23387
23388         vasnprintf: Fix syntax errors in libintl build on mingw.
23389         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
23390         pad_ourselves and prec_ourselves after use.
23391
23392 2010-05-08  Bruno Haible  <bruno@clisp.org>
23393
23394         * lib/config.charset: Update comments for Cygwin 1.7.
23395         * lib/localcharset.c: Likewise.
23396
23397 2010-05-07  Jim Meyering  <meyering@redhat.com>
23398
23399         init.sh: improve comments
23400         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
23401         . "${srcdir=.}/init.sh"; path_prepend_ .
23402         Add a note about path_prepend_ and the alternative of using
23403         TESTS_ENVIRONMENT.
23404
23405 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
23406
23407         exclude: Unescape hashed patterns in wildcard mode.
23408         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
23409         to the hash list.
23410         * tests/test-exclude8.sh: New test case.
23411         * modules/exclude-tests: Add new test.
23412
23413 2010-05-05  Eric Blake  <eblake@redhat.com>
23414
23415         verify: automate tests
23416         * modules/verify-tests: New module.
23417         * tests/test-verify.sh: New file.
23418         * tests/test-verify.c: Guard each negative test with a unique id.
23419         Also avoid warning about unused left hand of comma expressions.
23420
23421 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
23422
23423         Further improvements to verify.h, suggested by Eric Blake.
23424         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
23425         the GL_* versions, to avoid collision with OpenGL.
23426         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
23427         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
23428         than testing merely whether it's defined.
23429
23430         Modify verify.h to pacify gcc -Wredundant_decls.
23431         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
23432         These use the prefix "GL_" since they're likely to be useful elsewhere.
23433         We may need to break them out into a different .h file.
23434         (__COUNTER__): Define to 0 if the compiler doesn't support it.
23435         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
23436         of verify_function__.
23437
23438 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
23439
23440         Tests for module pwrite.
23441         * modules/pwrite-tests: New file.
23442         * tests/test-pwrite.sh: New file.
23443         * tests/test-pwrite.c: New file.
23444
23445         New module pwrite.
23446         * lib/unistd.in.h (pwrite): New declaration.
23447         * lib/pwrite.c: New file, from glibc with modifications.
23448         * m4/pwrite.m4: New file.
23449         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
23450         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
23451         REPLACE_PWRITE.
23452         * modules/pwrite: New file.
23453         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
23454         REPLACE_PWRITE.
23455         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
23456         * doc/posix-functions/pwrite.texi: Mention the new module.
23457
23458 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
23459
23460         pread: Update documentation.
23461         * doc/posix-functions/pread.texi: Mention the 'pread' module.
23462
23463 2010-05-04  Eric Blake  <eblake@redhat.com>
23464
23465         docs: update cygwin progress
23466         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
23467         this bug.
23468         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
23469         Added in cygwin 1.7.2.
23470         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
23471         Likewise.
23472         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
23473         Likewise.
23474         * doc/glibc-functions/dup3.texi (dup3): Likewise.
23475         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
23476         * doc/glibc-functions/accept4.texi (accept4): Likewise.
23477         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
23478         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
23479         Mention nproc module.
23480         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
23481         bug in cygwin 1.7.5 addition.
23482         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
23483         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
23484         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
23485         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
23486         1.7.5.
23487         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
23488         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
23489         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
23490         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
23491         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
23492         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
23493         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
23494         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
23495         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
23496         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
23497         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
23498         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
23499         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
23500         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
23501         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
23502         Likewise.
23503         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
23504         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
23505         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
23506         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
23507         Likewise.
23508         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
23509         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
23510         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
23511         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
23512         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
23513         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
23514         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
23515         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
23516         Likewise.
23517         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
23518         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
23519         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
23520         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
23521         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
23522         Likewise.
23523         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
23524         Likewise.
23525         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
23526         Likewise.
23527         * doc/glibc-functions/xdrrec_endofrecord.texi
23528         (xdrrec_endofrecord): Likewise.
23529         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
23530         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
23531         Likewise.
23532         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
23533         Likewise.
23534
23535 2010-05-04  Jim Meyering  <meyering@redhat.com>
23536
23537         gendocs.sh: make its "-s FILE" option more useful
23538         * build-aux/gendocs.sh: When honoring the -s FILE option, update
23539         $PACKAGE to reflect the probably-different basename of "FILE".
23540
23541 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
23542
23543         bootstrap: don't ignore download_po_files failure
23544         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
23545         failure.
23546
23547 2010-05-03  Jim Meyering  <meyering@redhat.com>
23548
23549         maint.mk: allow to pass options to gendocs.sh
23550         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
23551         (gendocs_options_): New overridable variable.
23552
23553         gnu-web-doc-update: don't ignore configure or build failure
23554         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
23555
23556         announce-gen: backslash-escape '@'s in --help output
23557         * build-aux/announce-gen: Fix syntax errors.
23558
23559         maint.mk, announce-gen: allow project-specific announcement mail headers
23560         * top/maint.mk (translation_project_): Define default.
23561         (announcement_Cc_, announcement_mail_headers_): Likewise.
23562         (announcement): Invoke announce-gen with new --mail-headers option.
23563         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
23564
23565         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
23566         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
23567         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
23568         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
23569         line in the "err2" output file when running "make check" in verbose
23570         mode (i.e., with set -x enabled).
23571
23572 2010-05-03  Bruno Haible  <bruno@clisp.org>
23573
23574         wctob: Fix for weird platforms.
23575         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
23576         argument value.
23577
23578 2010-05-03  Jim Meyering  <meyering@redhat.com>
23579
23580         maint.mk: prohibit unwarranted use of <strings.h>
23581         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
23582         strings.h in a file that does not also use strcasecmp, strncasecmp,
23583         ffs or ffsll.
23584
23585         maint.mk: remove obsolete comments
23586         * top/maint.mk: Remove stale, commented-out rules.
23587
23588 2010-05-02  Bruno Haible  <bruno@clisp.org>
23589
23590         wcwidth: Declare also when it's aliased.
23591         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
23592         macro.
23593
23594 2010-05-02  Bruno Haible  <bruno@clisp.org>
23595
23596         Fix regression from 2010-04-25.
23597         * gnulib-tool (func_modules_transitive_closure): Check the status of
23598         all modules, not only of the tests that are of the form foo-tests where
23599         foo is a module.
23600
23601 2010-05-02  Bruno Haible  <bruno@clisp.org>
23602
23603         wctob: Work around nasty Cygwin 1.7.2 bug.
23604         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
23605         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
23606
23607 2010-05-01  Bruno Haible  <bruno@clisp.org>
23608
23609         fpurge: Sharper test.
23610         * tests/test-fpurge.c (main): Add one more ftell check.
23611         * modules/fpurge-tests (Depends-on): Add ftell.
23612         Suggested by Eric Blake.
23613
23614 2010-05-01  Bruno Haible  <bruno@clisp.org>
23615
23616         ftello: Another test.
23617         * tests/test-ftello3.c: New file.
23618         * modules/ftello-tests (Files): Add it.
23619         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
23620         MOSTLYCLEANFILES.
23621
23622         ftell: Another test.
23623         * tests/test-ftell3.c: New file.
23624         * modules/ftell-tests (Files): Add it.
23625         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
23626         MOSTLYCLEANFILES.
23627
23628 2010-05-01  Bruno Haible  <bruno@clisp.org>
23629
23630         ftell, ftello: Work around Solaris bug.
23631         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
23632         * lib/ftello.c: Include stdio-impl.h.
23633         (ftello): On Solaris, when _IOWRT is set, compute the result without
23634         looking at _IOREAD.
23635         * modules/ftello (Files): Add lib/stdio-impl.h.
23636         * doc/posix-functions/ftell.texi: Mention Solaris bug.
23637         * doc/posix-functions/ftello.texi: Likewise.
23638         Reported by Eric Blake.
23639
23640 2010-05-01  Bruno Haible  <bruno@clisp.org>
23641
23642         freading: Adapt to special meaning of _IOREAD flag on Solaris.
23643         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
23644         the _IOWRT flag is also set.
23645
23646 2010-05-01  Bruno Haible  <bruno@clisp.org>
23647
23648         Fix doc about a HP-UX stdio bug.
23649         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
23650         * doc/posix-functions/ftello.texi: Likewise.
23651
23652 2010-05-01  Bruno Haible  <bruno@clisp.org>
23653
23654         lseek test: Fix failure on Solaris.
23655         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
23656         output.
23657
23658 2010-04-30  Jim Meyering  <meyering@redhat.com>
23659
23660         bootstrap: don't ignore failure to generate po*/Makevars
23661         * build-aux/bootstrap (with_gettext): Don't ignore failure
23662         to create po/Makevars or runtime-po/Makevars.
23663
23664 2010-04-29  Eric Blake  <eblake@redhat.com>
23665
23666         headers: relax license to LGPLv2+
23667         * modules/fcntl-h (License): Relax license.
23668         * modules/getopt-posix (License): Likewise.
23669         * modules/locale (License): Likewise.
23670         * modules/math (License): Likewise.
23671         * modules/pty (License): Likewise.
23672         * modules/sched (License): Likewise.
23673         * modules/search (License): Likewise.
23674         * modules/spawn (License): Likewise.
23675         * modules/stdarg (License): Likewise.
23676         * modules/sysexits (License): Likewise.
23677
23678 2010-04-29  Jim Meyering  <meyering@redhat.com>
23679
23680         inttypes: relax license to LGPLv2+
23681         * modules/inttypes (License): Relax license.
23682
23683 2010-04-29  Simon Josefsson  <simon@josefsson.org>
23684
23685         * top/maint.mk (indent): Run twice to produce idempotent results.
23686
23687 2010-04-28  Bruno Haible  <bruno@clisp.org>
23688
23689         getdate: Generate getdate.c in the source directory.
23690         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
23691         MOSTLYCLEANFILES.
23692         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
23693
23694 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
23695
23696         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
23697         is not declared as a const *; avoid warnings in that case.
23698
23699 2010-04-28  Eric Blake  <eblake@redhat.com>
23700
23701         canonicalize-lgpl: avoid compiler warning
23702         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
23703         declaration' / 'extraneous semicolon' warning with some compilers.
23704         Reported by Andreas Gruenbacher.
23705
23706 2010-04-28  Jim Meyering  <meyering@redhat.com>
23707
23708         init.sh: ensure a more reliable exit status when exiting via trap
23709         * tests/init.sh (setup_): Don't rely on $? in signal handler.
23710         Inspired by patches from Dmitry V. Levin.
23711         Also trap on signal 3 (SIGQUIT).
23712
23713 2010-04-27  Bruno Haible  <bruno@clisp.org>
23714
23715         Update doc about utimes().
23716         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
23717         'utimens' module.
23718         Reported by Andreas Gruenbacher <agruen@suse.de>.
23719
23720 2010-04-27  Eric Blake  <eblake@redhat.com>
23721
23722         full-read, full-write: relax license
23723         * modules/full-read (License): Drop to LGPLv2+.
23724         * modules/full-write (License): Likewise.
23725         * modules/safe-read (License): Likewise.
23726         * modules/safe-write (License): Likewise.
23727
23728         pthread: mention library for linking
23729         * modules/pthread (Link): Mention $(LIB_PTHREAD).
23730
23731 2010-04-27  Jim Meyering  <meyering@redhat.com>
23732
23733         maint.mk: fix a bug introduced in last change
23734         * top/maint.mk (gl_assured_headers_): Now that all names are on
23735         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
23736         is not anchored to end of word, it should be adequate.
23737
23738         maint.mk: avoid side-effect in latest syntax-check
23739         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
23740         to run commands via $(shell...), and hence to incur cost only when
23741         the new rule is actually run.
23742
23743         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
23744         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
23745         and use that to create a regexp used to detect all #if HAVE_..._H uses.
23746         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
23747         (gl_assured_headers_, az_, AZ_): Define.
23748         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
23749
23750 2010-04-26  Jim Meyering  <jim@meyering.net>
23751             Bruno Haible  <bruno@clisp.org>
23752
23753         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
23754         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
23755         Prompted by an exchange with Gilles Espinasse.
23756
23757 2010-04-26  Jim Meyering  <meyering@redhat.com>
23758
23759         git-version-gen: aesthetic tweak
23760         * build-aux/git-version-gen: Use "$nl" rather than a literal,
23761         so that the command remains on a single line.
23762
23763 2010-04-26  Eric Blake  <eblake@redhat.com>
23764
23765         git-version-gen: allow use on EBCDIC hosts
23766         * build-aux/git-version-gen (dirty): Use literal rather than tying
23767         ourselves to ascii.
23768         Reported by Steve Goetze.
23769
23770 2010-04-25  Bruno Haible  <bruno@clisp.org>
23771
23772         netdb: Add support for GNULIB_POSIXCHECK.
23773         * lib/netdb.in.h: Include warn-on-use.h.
23774         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
23775         functions are used when GNULIB_POSIXCHECK is defined and the
23776         getaddrinfo module is not in use.
23777         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
23778         freeaddrinfo, gai_strerror, getnameinfo are declared.
23779         * modules/netdb (Depends-on): Add warn-on-use.
23780         (Makefile.am): Include warn-on-use.h in netdb.h.
23781
23782 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
23783
23784         build: avoid "make check" failure without .git/ directory
23785         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
23786         there is no .git/ directory.
23787
23788 2010-04-25  Bruno Haible  <bruno@clisp.org>
23789
23790         ptsname: Fix misuse of ttyname_r.
23791         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
23792         of errno.
23793
23794 2010-04-25  Bruno Haible  <bruno@clisp.org>
23795
23796         ttyname_r: Make it work on Solaris 10.
23797         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
23798         if the system function has the POSIX declaration. Test whether the
23799         function fails if the buffer is less than 128 bytes large.
23800         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
23801         system's ttyname_r function. Provide a reasonably large buffer.
23802         * modules/ttyname_r (Depends-on): Add extensions.
23803         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
23804
23805 2010-04-25  Bruno Haible  <bruno@clisp.org>
23806
23807         Use the 'extensions' module for some more functions on Solaris.
23808         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
23809         module.
23810         * doc/posix-functions/ctime_r.texi: Likewise.
23811         * doc/posix-functions/getgrgid_r.texi: Likewise.
23812         * doc/posix-functions/getgrnam_r.texi: Likewise.
23813         * doc/posix-functions/getpwnam_r.texi: Likewise.
23814         * doc/posix-functions/getpwuid_r.texi: Likewise.
23815         * doc/posix-functions/readdir_r.texi: Likewise.
23816         * doc/posix-functions/sigwait.texi: Likewise.
23817         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
23818         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
23819
23820 2010-04-25  Bruno Haible  <bruno@clisp.org>
23821
23822         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
23823         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
23824         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
23825         * lib/ttyname_r.c: Include <limits.h>.
23826         (ttyname_r): Define using the system's ttyname_r function, if it exists
23827         and not on Solaris.
23828         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
23829         set.
23830         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
23831         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
23832         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
23833         Reported by Simon Josefsson.
23834
23835 2010-04-25  Bruno Haible  <bruno@clisp.org>
23836
23837         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
23838         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
23839         * doc/posix-functions/ctime_r.texi: Likewise.
23840         * doc/posix-functions/getgrgid_r.texi: Likewise.
23841         * doc/posix-functions/getgrnam_r.texi: Likewise.
23842         * doc/posix-functions/getlogin_r.texi: Likewise.
23843         * doc/posix-functions/getpwnam_r.texi: Likewise.
23844         * doc/posix-functions/getpwuid_r.texi: Likewise.
23845         * doc/posix-functions/readdir_r.texi: Likewise.
23846         * doc/posix-functions/sigwait.texi: Likewise.
23847         * doc/posix-functions/ttyname_r.texi: Likewise.
23848         Reported by Simon Josefsson.
23849
23850 2010-04-25  Bruno Haible  <bruno@clisp.org>
23851
23852         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
23853         * gnulib-tool (func_usage): Document that --with-*-tests options apply
23854         also to --create-testdir.
23855         (func_acceptable): Don't consider the status of *-tests modules here.
23856         (func_modules_transitive_closure): Consider it here, before including a
23857         test module.
23858         (func_import, func_create_testdir): Set inc_all_direct_tests,
23859         inc_all_indirect_tests.
23860         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
23861         --create-testdir and --create-megatestdir.
23862
23863 2010-04-25  Bruno Haible  <bruno@clisp.org>
23864
23865         gnulib-tool: Add --without-*-tests options.
23866         * gnulib-tool (func_usage): Document the --without-*-tests options.
23867         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
23868         excl_unportable_tests): New variables.
23869         Fail if they are specified with --import or --update.
23870         (func_acceptable): Respect the excl_*_tests variables.
23871         (func_import): Set the excl_*_tests variables to empty.
23872
23873 2010-04-25  Simon Josefsson  <simon@josefsson.org>
23874             Bruno Haible  <bruno@clisp.org>
23875
23876         Work around a MacOS X 10.4 bug with openpty.
23877         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
23878         * tests/test-openpty.c (main): Close the master side explicitly.
23879
23880 2010-04-25  Bruno Haible  <bruno@clisp.org>
23881
23882         strnlen: Fix a C++ test error on MacOS X and Solaris.
23883         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
23884         the function is not declared.
23885         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
23886         Simon Josefsson.
23887
23888 2010-04-24  Bruno Haible  <bruno@clisp.org>
23889
23890         Avoid a gcc warning.
23891         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
23892         of correct type for %08lx directive.
23893         Reported by Eric Blake.
23894
23895 2010-04-24  Bruno Haible  <bruno@clisp.org>
23896
23897         vasnprintf: Correct errno value in case of out-of-memory.
23898         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
23899         or sprintf. Use the errno value from SNPRINTF or sprintf.
23900         Reported by Ian Beckwith <ianb@erislabs.net>.
23901
23902 2010-04-24  Bruno Haible  <bruno@clisp.org>
23903
23904         ansi-c++-opt: Find correct compiler when cross-compiling.
23905         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
23906         AC_CHECK_PROGS.
23907         Reported by Simon Josefsson.
23908
23909 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
23910
23911         vc-list-files: Add support for subversion
23912         * build-aux/vc-list-files: Use "svn list" to generate the list of
23913         files controlled by subversion.
23914
23915 2010-04-23  Jim Meyering  <meyering@redhat.com>
23916
23917         vc-list-files tests: convert to use init.sh
23918         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
23919         path_prepend_.
23920         Use Exit, not exit.
23921         Use skip_ rather than open coding it.
23922         Remove trap set-up and compare definitions.
23923         * tests/test-vc-list-files-git.sh: Likewise.
23924         * modules/vc-list-files-tests (Files): Add tests/init.sh.
23925
23926 2010-04-22  Simon Josefsson  <simon@josefsson.org>
23927
23928         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
23929         backup files.
23930
23931 2010-04-21  Simon Josefsson  <simon@josefsson.org>
23932
23933         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
23934
23935 2010-04-20  Eric Blake  <eblake@redhat.com>
23936
23937         tests: be robust to ignored SIGPIPE
23938         * tests/test-select-in.sh: Consume all output.
23939         * tests/test-lseek.sh: Check correct exit status, while avoiding
23940         EPIPE.
23941
23942 2010-04-20  Simon Josefsson  <simon@josefsson.org>
23943             Bruno Haible  <bruno@clisp.org>
23944
23945         visibility: Don't use -fvisibility if it leads to a warning.
23946         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
23947         yes, don't pretend that visibility works if it leads to a warning.
23948         Reported by Mike Gran <spk121@yahoo.com>.
23949
23950 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
23951
23952         * build-aux/bootstrap: Use "git -h" for testing for supported options
23953         instead of "git --help".  The short-form option only shows a summary,
23954         and doesn't layout the full man page.  Grep for the full option name
23955         in the summary, too.
23956
23957 2010-04-19  Bruno Haible  <bruno@clisp.org>
23958
23959         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
23960         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
23961         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
23962         mention of RELOCATABLE_STRIP.
23963         Reported by Sylvain Beucler <beuc@beuc.net>.
23964
23965 2010-04-19  Bruno Haible  <bruno@clisp.org>
23966
23967         * lib/diffseq.h: Fix typo in comment.
23968         Reported by Eric Blake.
23969
23970 2010-04-19  Bruno Haible  <bruno@clisp.org>
23971
23972         ioctl: Move autoconf macro to a .m4 file.
23973         * m4/ioctl.m4: New file, extracted from modules/ioctl.
23974         * modules/ioctl (Files): Add it.
23975         (configure.ac): Simply invoke gl_FUNC_IOCTL.
23976         Reported by Ian Beckwith <ianb@erislabs.net>.
23977
23978 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
23979             Bruno Haible  <bruno@clisp.org>
23980
23981         diffseq: Accommodate use-case with abstract arrays.
23982         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
23983         is not defined.
23984         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
23985         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
23986
23987 2010-04-18  Bruno Haible  <bruno@clisp.org>
23988
23989         * doc/posix-headers/stdbool.texi: More precise wording.
23990
23991 2010-04-17  Jim Meyering  <meyering@redhat.com>
23992
23993         maint.mk: use gnu-style indentation in an embedded perl script
23994         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
23995         Rename variable: s/two/last_two_bytes/
23996
23997 2010-04-16  Eric Blake  <eblake@redhat.com>
23998
23999         test-stdbool: skip test that fails with Solaris CC
24000         * tests/test-stdbool.c (f): Skip test that causes compilation
24001         error under buggy C++ compiler.
24002         * lib/stdbool.in.h: Document the limitation.
24003         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
24004
24005         setenv: allow compilation with C++
24006         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
24007         register keyword.
24008
24009         stdint: allow test to pass with C++
24010         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
24011
24012         getopt: allow compilation with C++
24013         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
24014         struct.
24015         * lib/getopt.c (_getopt_internal_r): Use correct type.
24016         Reported by Dagobert Michelson, via Joel E. Denny.
24017
24018 2010-04-16  Bruno Haible  <bruno@clisp.org>
24019
24020         Override netdb.h always.
24021         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
24022         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
24023         Reported by Ludovic Courtès <ludo@gnu.org>.
24024
24025 2010-04-15  Bruno Haible  <bruno@clisp.org>
24026
24027         openpty: Fix mistake from 2010-03-21.
24028         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
24029         Reported by Simon Josefsson.
24030
24031 2010-04-15  Eric Blake  <eblake@redhat.com>
24032
24033         test-forkpty: fix expected signature
24034         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
24035         Reported by Simon Josefsson.
24036
24037 2010-04-15  Jim Meyering  <meyering@redhat.com>
24038
24039         maint.mk: texinfo_suffix_re_: correct the default regexp
24040         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
24041
24042         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
24043         make it configurable via texinfo_suffix_re_.
24044
24045 2010-04-14  Eric Blake  <eblake@redhat.com>
24046
24047         strtok_r: relax license to LGPLv2+
24048         * modules/strtok_r (License): Relax license.
24049         Reported by Matthias Bolte.
24050
24051 2010-04-14  Simon Josefsson  <simon@josefsson.org>
24052
24053         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
24054         version 1.4.4 by default instead of requiring the libgcrypt
24055         version used during build.  This makes it possible to use the
24056         application with older but still binary compatible libgcrypt
24057         versions.
24058
24059 2010-04-13  Eric Blake  <eblake@redhat.com>
24060
24061         getopt-gnu: match recent glibc fixes and posix ruling
24062         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
24063         '+' handling, when requesting extensions.
24064         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
24065         'W;' handling.
24066         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
24067         * doc/posix-functions/getopt.texi (getopt): Document this.
24068         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
24069         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
24070         Likewise.
24071
24072         getopt: merge bug fixes from glibc
24073         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
24074         diagnostics.  Honor '+:' correctly.  Reject ';'.
24075
24076         getopt-posix: detect MacOS bug
24077         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
24078         optind when missing a required argument.
24079         * doc/posix-functions/getopt.texi (getopt): Document the bug.
24080         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
24081         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
24082         Likewise.
24083
24084         getopt-posix: avoid spurious failure on Solaris
24085         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
24086         an indicator that setting optind=1 is sufficient for reset.
24087
24088         getopt-posix: avoid spurious failure on FreeBSD
24089         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
24090         in POSIX mode, since the m4 test uses it.
24091
24092         gnulib-tool: silence warning on BSD sh
24093         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
24094
24095 2010-04-13  Jim Meyering  <meyering@redhat.com>
24096
24097         doc: users.txt: GNU patch now uses gnulib
24098         * users.txt: Add patch.
24099
24100 2010-04-12  Jim Meyering  <meyering@redhat.com>
24101
24102         maint.mk: generate more concise timing data for syntax-check rules
24103         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
24104         " done" from each line that reports a syntax-check test duration.
24105
24106 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
24107
24108         git-version-gen: use "git update-index..." rather than "git status"
24109         * build-aux/git-version-gen: Use git update-index --refresh, not
24110         "git status".  With some versions of git, "git status" would fail
24111         to update the index and result in an unwarranted "-dirty" suffix.
24112
24113 2010-04-11  Jim Meyering  <meyering@redhat.com>
24114
24115         openat: correct formatting (no semantic change)
24116         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
24117         Suggested by Bruno Haible.
24118
24119 2010-04-11  Bruno Haible  <bruno@clisp.org>
24120
24121         Stricter declaration checking in testdirs.
24122         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
24123         If for_tests is true, augment AM_CPPFLAGS to define
24124         GNULIB_STRICT_CHECKING.
24125         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
24126         GNULIB_STRICT_CHECKING is defined, verify that the function is
24127         declared.
24128
24129 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
24130             Bruno Haible  <bruno@clisp.org>
24131
24132         libunistring: Improve configure output.
24133         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
24134         Don't say "consider installing GNU libunistring" when checking again
24135         with libiconv.
24136
24137 2010-04-11  Bruno Haible  <bruno@clisp.org>
24138
24139         libunistring: Correct value of $LTLIBUNISTRING.
24140         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
24141         correct the value of $LTLIBUNISTRING.
24142
24143 2010-04-11  Bruno Haible  <bruno@clisp.org>
24144
24145         havelib: Add static libraries to LIBS in the right order.
24146         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
24147         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
24148
24149 2010-04-11  Bruno Haible  <bruno@clisp.org>
24150
24151         libunistring: Detect libunistring also when it depends on libiconv.
24152         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
24153         the second AC_LIB_HAVE_LINKFLAGS invocation.
24154
24155 2010-04-11  James Youngman  <jay@gnu.org>
24156
24157         close-stream: declare local scalars to be "const"
24158         * lib/close-stream.c (close_stream): Make boolean variables const
24159         to document the fact that we set but do not change them.
24160
24161 2010-04-11  Bruno Haible  <bruno@clisp.org>
24162
24163         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
24164
24165 2010-04-11  Jim Meyering  <meyering@redhat.com>
24166
24167         maint.mk: don't include dist-check.mk
24168         * top/maint.mk: Remove bogus include directive.
24169
24170         maint.mk: improve empty-line-at-EOF check
24171         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
24172         solution, rather than tail+Perl-based one.  The latter would read
24173         a few kilobytes from the end of each file, and did not handle empty
24174         files properly.
24175
24176         maint.mk: print the elapsed time for each syntax-check rule
24177         * top/maint.mk (sc_m_rules_): Save start time in a file.
24178         (sc_z_rules_): New rules: remove temp file and print elapsed time.
24179         (local-check): Interpose the .z rules
24180
24181 2010-04-11  Jim Meyering  <meyering@redhat.com>
24182
24183         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
24184         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
24185         empty file with one that ends in an empty line.
24186
24187 2010-04-10  Bruno Haible  <bruno@clisp.org>
24188
24189         mkdir: Make it work on mingw64.
24190         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
24191         * lib/mkdir.c: Update comment.
24192         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
24193
24194 2010-04-10  Bruno Haible  <bruno@clisp.org>
24195
24196         Don't override improved macro from newer autoconf.
24197         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
24198         autoconf >= 2.62.
24199         Reported by Joel E. Denny <jdenny@clemson.edu>.
24200
24201 2010-04-10  Jim Meyering  <meyering@redhat.com>
24202
24203         maint.mk: new syntax-check rule: prohibit empty lines at end of file
24204         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
24205
24206         maint.mk: correct a diagnostic
24207         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
24208         in diagnostic; now use $prohibit.
24209
24210 2010-04-10  Bruno Haible  <address@hidden>
24211
24212         fchownat: Fix a C++ test error on Solaris 8.
24213         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
24214         the function does not exist.
24215
24216 2010-04-10  Bruno Haible  <bruno@clisp.org>
24217
24218         vasnprintf: Add more tests.
24219         * tests/test-vasnprintf-posix.c: Include <errno.h>.
24220         (test_function): Test converting an invalid wide string.
24221
24222         vasnprintf: Correct handling of unconvertible wide string arguments.
24223         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
24224         VASNPRINTF.
24225         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
24226         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
24227         smaller than the expected maximum need for the directive. Set errno to
24228         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
24229         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
24230         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
24231         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
24232         * modules/vasnprintf (Files): Add m4/printf.m4.
24233         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24234
24235 2010-04-10  Bruno Haible  <bruno@clisp.org>
24236
24237         vasnprintf: Fix crash in %ls directive.
24238         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
24239         string is passed as argument to %ls, with no precision and no width.
24240         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24241
24242 2010-04-10  Bruno Haible  <bruno@clisp.org>
24243
24244         vasnprintf: Fix multiple test failures on mingw.
24245         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
24246         _snprintf, or snwprintf, not _snwprintf.
24247
24248 2010-04-10  Bruno Haible  <bruno@clisp.org>
24249
24250         write: Fix a C++ test error on mingw.
24251         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
24252
24253 2010-04-10  Bruno Haible  <bruno@clisp.org>
24254
24255         vasnprintf test: Reduce code duplication.
24256         * tests/test-vasnprintf.c (test_function): New function, extracted from
24257         test_vasnprintf.
24258         (test_vasnprintf, test_asnprintf): Invoke it.
24259
24260 2010-04-10  Bruno Haible  <bruno@clisp.org>
24261
24262         strnlen: Fix warning in C++ mode on MacOS X.
24263         * lib/string.in.h (strnlen): Use the modern idiom.
24264         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
24265         defining strnlen as a macro already in <config.h>.
24266         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
24267         REPLACE_STRNLEN.
24268         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
24269         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24270
24271 2010-04-08  James Youngman  <jay@gnu.org>
24272
24273         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
24274         the example.
24275
24276 2010-04-09  Jim Meyering  <meyering@redhat.com>
24277
24278         maint.mk: print better diagnostic when there is no $(_hv_file)
24279         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
24280         announce that when $(_hv_file) (aka help-version) does not exist.
24281
24282         init.sh: run tr in the "C" locale to avoid multibyte interpretation
24283         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
24284         not try to interpret its random input bytes.  Jarno Rajahalme reported
24285         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
24286         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
24287         (mktempd_): Likewise, just in case.
24288
24289         ftruncate: add two years to projected module removal date: 2012
24290         * m4/ftruncate.m4: Adjust comments.
24291
24292         ftruncate: mark module as obsolete; even MinGW provides it, now
24293         * modules/ftruncate (Status): Obsolete.
24294         (Notice): Say that.
24295         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
24296         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
24297
24298 2010-04-08  Bruno Haible  <bruno@clisp.org>
24299
24300         Fix side effects from tests-related modules.
24301         * modules/dprintf-posix (Comment): New section.
24302         * modules/fprintf-posix (Comment): Likewise.
24303         * modules/obstack-printf-posix (Comment): Likewise.
24304         * modules/printf-posix (Comment): Likewise.
24305         * modules/snprintf-posix (Comment): Likewise.
24306         * modules/sprintf-posix (Comment): Likewise.
24307         * modules/vasnprintf-posix (Comment): Likewise.
24308         * modules/vasprintf-posix (Comment): Likewise.
24309         * modules/vdprintf-posix (Comment): Likewise.
24310         * modules/vfprintf-posix (Comment): Likewise.
24311         * modules/vprintf-posix (Comment): Likewise.
24312         * modules/vsnprintf-posix (Comment): Likewise.
24313         * modules/vsprintf-posix (Comment): Likewise.
24314         * modules/xprintf-posix (Comment): Likewise.
24315         * modules/xvasprintf-posix (Comment): Likewise.
24316         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
24317         * modules/floorf-tests (Depends-on): Likewise.
24318         * modules/round-tests (Depends-on): Likewise.
24319         * modules/roundf-tests (Depends-on): Likewise.
24320         * modules/trunc-tests (Depends-on): Likewise.
24321         * modules/truncf-tests (Depends-on): Likewise.
24322         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
24323         'fprintf-posix' module is not present.
24324         * tests/test-floorf2.c (check): Likewise.
24325         * tests/test-trunc2.c (check): Likewise.
24326         * tests/test-truncf2.c (check): Likewise.
24327         * tests/test-round2.c (equal): Likewise.
24328         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24329
24330 2010-04-07  Karl Berry  <karl@gnu.org>
24331
24332         * config/srclist.txt,
24333         * config/srclistvars.sh,
24334         * config/srclist-update: doc fixes.
24335
24336 2010-04-07  Jim Meyering  <meyering@redhat.com>
24337
24338         maint.mk: add a PATH crosschecking syntax-check rule
24339         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
24340         Useful if you use a test like the one in help-version (coreutils,
24341         diffutils, grep, gzip) that ensures $(VERSION) matches what is
24342         printed by prog --version.
24343
24344 2010-04-06  Bruno Haible  <bruno@clisp.org>
24345
24346         Fix link error on mingw.
24347         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
24348         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
24349
24350 2010-04-06  Bruno Haible  <bruno@clisp.org>
24351
24352         Assume rmdir exists.
24353         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
24354
24355 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
24356
24357         doc: update users.txt
24358         * users.txt: Add gcal.
24359
24360 2010-04-06  Jim Meyering  <meyering@redhat.com>
24361
24362         init.sh: simply unset TMPDIR rather than risking env -i
24363         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
24364         although it probably works fine on all Unix-based systems, some
24365         systems (Cygwin?) cannot tolerate a totally cleared environment.
24366         Suggestion from Eric Blake.
24367
24368 2010-04-06  Jim Meyering  <meyering@redhat.com>
24369
24370         init.sh: portability fix: use env's POSIX-specified -i option not -u
24371         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
24372         than unportable env -u.  Solaris 5.11's env lacks support for -u.
24373
24374 2010-04-05  Bruno Haible  <bruno@clisp.org>
24375
24376         btowc: Work around Cygwin 1.7.2 bug.
24377         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
24378         does not map NUL to 0.
24379         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
24380
24381 2010-04-05  Bruno Haible  <bruno@clisp.org>
24382
24383         Make the multithread modules work on Cygwin 1.7.2.
24384         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
24385         imported symbols can be declared weak, so that it returns "no" on
24386         Cygwin 1.7.2.
24387
24388 2010-04-05  Bruno Haible  <bruno@clisp.org>
24389
24390         Use the module 'strncat'.
24391         * modules/unistr/u8-strncat (Depends-on): Add strncat.
24392
24393         Tests for module 'strncat'.
24394         * modules/strncat-tests: New file.
24395         * tests/test-strncat.c: New file.
24396
24397         New module 'strncat'.
24398         * lib/string.in.h (strncat): New declaration.
24399         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
24400         * m4/strncat.m4: New file, based on m4/memchr.m4.
24401         * modules/strncat: New file.
24402         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
24403         is declared.
24404         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
24405         REPLACE_STRNCAT.
24406         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
24407         REPLACE_STRNCAT.
24408         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
24409         module.
24410         * tests/test-string-c++.cc: Check signature of strncat.
24411
24412 2010-04-05  Jim Meyering  <meyering@redhat.com>
24413
24414         xstrtoumax-tests: convert to use init.sh
24415         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
24416         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
24417         Use Exit, not exit.
24418         Remove uses of $EXEEXT and "./" to run a program in the current dir.
24419
24420         xstrtoimax-tests: convert to use init.sh
24421         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
24422         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
24423         Use Exit, not exit.
24424         Remove uses of $EXEEXT and "./" to run a program in the current dir.
24425
24426 2010-04-05  Bruno Haible  <bruno@clisp.org>
24427
24428         sys_socket: Avoid #define replacements in C++ mode.
24429         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
24430         warning to the function if possible, rather than #defining the symbol
24431         to a dysfunctional alias.
24432
24433 2010-04-05  Bruno Haible  <bruno@clisp.org>
24434
24435         fseeko: Fix C++ test error on mingw.
24436         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
24437         gl_FUNC_FSEEKO.
24438         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
24439         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
24440         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
24441         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
24442
24443 2010-04-05  Bruno Haible  <bruno@clisp.org>
24444
24445         duplocale: Improve test output.
24446         * tests/test-duplocale.c (main): Print reason for skipped test.
24447
24448 2010-04-05  Bruno Haible  <bruno@clisp.org>
24449
24450         Assume rmdir exists.
24451         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
24452         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
24453
24454 2010-04-05  Bruno Haible  <bruno@clisp.org>
24455
24456         Fix link error on Solaris 8 with cc.
24457         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
24458
24459 2010-04-05  Bruno Haible  <bruno@clisp.org>
24460
24461         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
24462         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
24463
24464 2010-04-05  Bruno Haible  <bruno@clisp.org>
24465
24466         vasprintf: Update documentation.
24467         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
24468
24469 2010-04-05  Bruno Haible  <bruno@clisp.org>
24470
24471         ptsname: Improve test.
24472         * tests/test-ptsname.c (main): Also try the various master names of BSD
24473         systems.
24474
24475 2010-04-05  Bruno Haible  <bruno@clisp.org>
24476
24477         memchr: Avoid a possible C++ test error.
24478         * lib/string.in.h (memchr): Provide declaration if function is missing.
24479         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
24480         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
24481         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
24482         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
24483
24484 2010-04-05  Bruno Haible  <bruno@clisp.org>
24485
24486         strtok_r: Improve idiom.
24487         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
24488         AC_LIBOBJ is used.
24489
24490 2010-04-05  Bruno Haible  <bruno@clisp.org>
24491
24492         strdup: Improve idiom.
24493         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
24494         AC_LIBOBJ is used.
24495         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
24496         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
24497         when AC_LIBOBJ is used.
24498
24499 2010-04-05  Bruno Haible  <bruno@clisp.org>
24500
24501         mbsinit, mbrtowc, wcrtomb: Improve idioms.
24502         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
24503         don't set REPLACE_MBSINIT to 1.
24504         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
24505         don't set REPLACE_MBRTOWC to 1.
24506         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
24507         exist, don't set REPLACE_MBSRTOWCS to 1.
24508         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
24509         exist, don't set REPLACE_MBSNRTOWCS to 1.
24510         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
24511         don't set REPLACE_WCRTOMB to 1.
24512         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
24513         exist, don't set REPLACE_WCSRTOMBS to 1.
24514         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
24515         exist, don't set REPLACE_WCSNRTOMBS to 1.
24516
24517 2010-04-05  Bruno Haible  <bruno@clisp.org>
24518
24519         ldexpl: Improve idiom.
24520         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
24521         make sure to set HAVE_DECL_LDEXPL to 0.
24522
24523 2010-04-05  Jim Meyering  <meyering@redhat.com>
24524
24525         xstrtol-tests: convert to use init.sh
24526         * modules/xstrtol-tests (Files): Add tests/init.sh.
24527         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
24528         Use Exit, not exit.
24529         Remove uses of $EXEEXT and "./" to run a program in the current dir.
24530
24531         atexit-tests: convert to use init.sh
24532         * modules/atexit-tests (Files): Add tests/init.sh.
24533         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
24534         Use Exit, not exit.
24535         Remove uses of $EXEEXT and "./" to run a program in the current dir.
24536
24537         init.sh: fix typo
24538         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
24539
24540         init.sh: make it easier for a test script to write to the tty, ...
24541         when using automake's parallel-tests mode.
24542         * tests/init.sh (stderr_fileno_): Define overridable variable.
24543         (warn_): New function, to use it.
24544         (fail_, skip_, framework_failure_): Use warn_.
24545
24546 2010-04-04  Bruno Haible  <bruno@clisp.org>
24547
24548         btowc: Avoid warning.
24549         * lib/btowc.c: Include <stdlib.h>.
24550         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
24551
24552 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
24553             Bruno Haible  <bruno@clisp.org>
24554
24555         wchar: Port to NetBSD 1.5.
24556         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
24557         * lib/wctype.in.h (WEOF): Likewise.
24558
24559 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
24560             Bruno Haible  <bruno@clisp.org>
24561
24562         Port extended stdio to NetBSD 1.5.
24563         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
24564         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
24565         older.
24566
24567 2010-04-04  Bruno Haible  <bruno@clisp.org>
24568
24569         string: Remove unused substitution.
24570         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
24571         HAVE_DECL_STRERROR.
24572         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
24573
24574 2010-04-04  Bruno Haible  <bruno@clisp.org>
24575
24576         strtod: Avoid a possible C++ test error.
24577         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
24578         set REPLACE_STRTOD.
24579
24580 2010-04-04  Bruno Haible  <bruno@clisp.org>
24581
24582         strerror: Update documentation.
24583         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
24584
24585 2010-04-04  Bruno Haible  <bruno@clisp.org>
24586
24587         stdio: Fix some C++ test errors on Solaris 8 with GCC.
24588         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
24589         _GL_CXXALIAS_SYS_CAST.
24590
24591 2010-04-04  Bruno Haible  <bruno@clisp.org>
24592
24593         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
24594         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
24595         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
24596         REPLACE_FREXPL to 1.
24597         * doc/posix-functions/frexpl.texi: Update documentation.
24598
24599 2010-04-04  Bruno Haible  <bruno@clisp.org>
24600
24601         math: Fix some C++ test errors on Solaris 8 and Cygwin.
24602         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
24603
24604 2010-04-04  Bruno Haible  <bruno@clisp.org>
24605
24606         Implement nanosleep for native Windows.
24607         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
24608
24609 2010-04-04  Bruno Haible  <bruno@clisp.org>
24610
24611         math: Fix some C++ test errors on Solaris 8.
24612         * lib/math.in.h (truncf, trunc): Use simpler idiom.
24613
24614 2010-04-04  Bruno Haible  <bruno@clisp.org>
24615
24616         math: Fix some C++ test errors on Cygwin.
24617         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
24618         truncl): Provide declaration if the system does not have it.
24619         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
24620         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
24621         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
24622         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
24623         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
24624         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
24625         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
24626         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
24627         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
24628         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
24629         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
24630         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
24631         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
24632         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
24633         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
24634         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
24635         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
24636         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
24637         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
24638         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
24639         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
24640         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
24641
24642 2010-04-04  Bruno Haible  <bruno@clisp.org>
24643
24644         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
24645         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
24646         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
24647         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
24648         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
24649         * m4/isinf.m4 (gl_ISINF): Likewise.
24650         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
24651
24652 2010-04-04  Bruno Haible  <bruno@clisp.org>
24653
24654         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
24655         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
24656
24657 2010-04-04  Bruno Haible  <bruno@clisp.org>
24658
24659         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
24660         * modules/tmpfile (configure.ac): Update.
24661
24662         tmpfile: Fix C++ test error on mingw.
24663         * lib/stdio.in.h (tmpfile): New declaration.
24664         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
24665         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
24666         * modules/tmpfile (Depends-on): Add stdio.
24667         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
24668         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
24669         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
24670         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
24671         REPLACE_TMPFILE.
24672         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
24673
24674 2010-04-04  Bruno Haible  <bruno@clisp.org>
24675
24676         ioctl: Fix C++ test error on mingw.
24677         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
24678         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
24679         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
24680
24681 2010-04-03  Bruno Haible  <bruno@clisp.org>
24682
24683         wcwidth: Fix C++ test error on mingw.
24684         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
24685         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
24686         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
24687
24688 2010-04-03  Bruno Haible  <bruno@clisp.org>
24689
24690         nanosleep: Fix C++ test error on mingw.
24691         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
24692         * lib/time.in.h (nanosleep): Use modern idiom.
24693         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
24694         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
24695         REPLACE_NANOSLEEP to 1.
24696         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
24697         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
24698
24699 2010-04-03  Bruno Haible  <bruno@clisp.org>
24700
24701         strptime: Fix C++ test error on mingw.
24702         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
24703         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
24704         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
24705         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
24706         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
24707         not REPLACE_STRPTIME.
24708         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
24709         REPLACE_STRPTIME.
24710
24711 2010-04-03  Bruno Haible  <bruno@clisp.org>
24712
24713         timegm: Fix C++ test error on mingw.
24714         * lib/time.in.h (timegm): Use modern idiom.
24715         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
24716         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
24717         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
24718         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
24719
24720 2010-04-03  Bruno Haible  <bruno@clisp.org>
24721
24722         timegm: Assume declaration if function exists.
24723         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
24724         if it exists. Don't clobber ac_cv_func_timegm.
24725
24726 2010-04-03  Bruno Haible  <bruno@clisp.org>
24727
24728         time_r: Fix C++ test error on mingw.
24729         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
24730         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
24731         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
24732         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
24733         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
24734
24735 2010-04-03  Bruno Haible  <bruno@clisp.org>
24736
24737         time_r: Minor updates.
24738         * modules/time_r (Description): Mention the provided functions.
24739         * lib/time_r.c: Don't include <string.h>.
24740         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
24741         * doc/posix-functions/localtime_r.texi: Likewise.
24742
24743 2010-04-03  Bruno Haible  <bruno@clisp.org>
24744
24745         time: Fix regression introduced on 2010-03-08.
24746         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
24747         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
24748
24749 2010-04-03  Jim Meyering  <meyering@redhat.com>
24750
24751         maint.mk: don't silently disable project-specific syntax-check rules
24752         * top/maint.mk (_prohibit_regexp): Define, to help people realize
24753         that they need to convert their project-specific syntax-check rules
24754         to use the new _sc_search_regexp.
24755
24756 2010-04-03  Bruno Haible  <bruno@clisp.org>
24757
24758         fchdir: Fix regression introduced on 2010-03-08.
24759         * lib/unistd.in.h (fchdir): Fix declaration.
24760         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
24761         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
24762         REPLACE_FCHDIR.
24763         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
24764         REPLACE_FCHDIR.
24765
24766 2010-04-03  Bruno Haible  <bruno@clisp.org>
24767
24768         getpagesize: Fix C++ test error on mingw.
24769         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
24770         system does not declare the function.
24771         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
24772         declared.
24773         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
24774         HAVE_DECL_GETPAGESIZE.
24775         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
24776
24777 2010-04-03  Bruno Haible  <bruno@clisp.org>
24778
24779         stdio: Make C++ tests work on mingw.
24780         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
24781         does not declare the function.
24782
24783 2010-04-03  Bruno Haible  <bruno@clisp.org>
24784
24785         ftello: Fix C++ test error on mingw.
24786         * lib/stdio.in.h (ftello): Use modern idiom.
24787         * lib/ftello.c (ftello): Renamed from rpl_ftello.
24788         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
24789         is missing and that it needs to be replaced.
24790         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
24791         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
24792         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
24793
24794 2010-04-03  Bruno Haible  <bruno@clisp.org>
24795
24796         fseeko: Fix C++ test error on mingw.
24797         * lib/stdio.in.h (fseeko): Use modern idiom.
24798         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
24799         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
24800         is missing and that it needs to be replaced.
24801         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
24802         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
24803         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
24804
24805 2010-04-03  Bruno Haible  <bruno@clisp.org>
24806
24807         mkstemp: Fix C++ test error on mingw.
24808         * lib/stdlib.in.h (mkstemp): Use modern idiom.
24809         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
24810         function is missing and that it needs to be replaced.
24811         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
24812         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
24813
24814 2010-04-03  Bruno Haible  <bruno@clisp.org>
24815
24816         stpncpy: Fix C++ test error on mingw.
24817         * lib/string.in.h (stpncpy): Use modern idiom.
24818         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
24819         function is missing and that it needs to be replaced.
24820         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
24821         REPLACE_STPNCPY.
24822         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
24823
24824 2010-04-03  Bruno Haible  <bruno@clisp.org>
24825
24826         sys_stat: Fix C++ test error on mingw.
24827         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
24828         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
24829
24830 2010-04-03  Bruno Haible  <bruno@clisp.org>
24831
24832         pty: Update doc.
24833         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
24834
24835 2010-04-03  Bruno Haible  <bruno@clisp.org>
24836
24837         unistd: Fix C++ test error on mingw.
24838         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
24839
24840 2010-04-03  Bruno Haible  <bruno@clisp.org>
24841
24842         Update doc regarding mingw.
24843         * doc/glibc-functions/openpty.texi: Update regarding mingw.
24844         * doc/glibc-functions/login_tty.texi: Likewise.
24845         * doc/glibc-functions/forkpty.texi: Likewise.
24846
24847 2010-04-03  Bruno Haible  <bruno@clisp.org>
24848
24849         stdlib: Avoid compilation failure of c-strtold on mingw.
24850         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
24851
24852 2010-04-03  Bruno Haible  <bruno@clisp.org>
24853
24854         locale: Make C++ tests work on Cygwin and mingw.
24855         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
24856         cannot provide the function.
24857         Reported by Simon Josefsson.
24858
24859 2010-04-03  Bruno Haible  <bruno@clisp.org>
24860
24861         localename: Port to MacOS X 10.6.
24862         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
24863         memory layout of the locales in MacOS X 10.6 as well.
24864         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
24865
24866 2010-04-02  Bruno Haible  <bruno@clisp.org>
24867
24868         gnulib-tool: Ensure that long-running tests are executed last.
24869         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
24870         running tests after the one for the other tests.
24871
24872 2010-04-02  Bruno Haible  <bruno@clisp.org>
24873
24874         gnulib-tool: Ensure the tests in the main directory are executed first.
24875         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
24876         start with the current directory.
24877
24878 2010-04-02  Bruno Haible  <bruno@clisp.org>
24879
24880         Tests for module 'havelib', moved here from GNU gettext.
24881         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
24882         modifications.
24883         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
24884         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
24885         with modifications.
24886         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
24887         modifications.
24888         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
24889         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
24890         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
24891         with modifications.
24892         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
24893         with modifications.
24894         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
24895         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
24896         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
24897         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
24898         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
24899         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
24900         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
24901         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
24902         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
24903         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
24904         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
24905         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
24906         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
24907         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
24908         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
24909         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
24910         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
24911         with modifications.
24912         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
24913         with modifications.
24914         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
24915         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
24916         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
24917         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
24918         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
24919         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
24920         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
24921         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
24922         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
24923         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
24924         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
24925         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
24926         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
24927         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
24928         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
24929         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
24930         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
24931         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
24932         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
24933         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
24934         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
24935         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
24936         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
24937         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
24938         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
24939         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
24940         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
24941         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
24942         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
24943         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
24944         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
24945         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
24946         * tests/havelib/rpathx/rpathx.c: New file, from
24947         gettext/autoconf-lib-link.
24948         * tests/havelib/rpathx/Makefile.am: New file, from
24949         gettext/autoconf-lib-link.
24950         * tests/havelib/rpathx/configure.ac: New file, from
24951         gettext/autoconf-lib-link with modifications.
24952         * tests/havelib/rpathy/rpathy.c: New file, from
24953         gettext/autoconf-lib-link.
24954         * tests/havelib/rpathy/Makefile.am: New file, from
24955         gettext/autoconf-lib-link.
24956         * tests/havelib/rpathy/configure.ac: New file, from
24957         gettext/autoconf-lib-link with modifications.
24958         * tests/havelib/rpathz/rpathz.c: New file, from
24959         gettext/autoconf-lib-link.
24960         * tests/havelib/rpathz/Makefile.am: New file, from
24961         gettext/autoconf-lib-link.
24962         * tests/havelib/rpathz/configure.ac: New file, from
24963         gettext/autoconf-lib-link with modifications.
24964         * tests/havelib/rpathlx/usex.c: New file, from
24965         gettext/autoconf-lib-link.
24966         * tests/havelib/rpathlx/Makefile.am: New file, from
24967         gettext/autoconf-lib-link.
24968         * tests/havelib/rpathlx/configure.ac: New file, from
24969         gettext/autoconf-lib-link with modifications.
24970         * tests/havelib/rpathly/usey.c: New file, from
24971         gettext/autoconf-lib-link.
24972         * tests/havelib/rpathly/Makefile.am: New file, from
24973         gettext/autoconf-lib-link.
24974         * tests/havelib/rpathly/configure.ac: New file, from
24975         gettext/autoconf-lib-link with modifications.
24976         * tests/havelib/rpathlz/usez.c: New file, from
24977         gettext/autoconf-lib-link.
24978         * tests/havelib/rpathlz/Makefile.am: New file, from
24979         gettext/autoconf-lib-link.
24980         * tests/havelib/rpathlz/configure.ac: New file, from
24981         gettext/autoconf-lib-link with modifications.
24982         * tests/havelib/rpathlyx/usey.c: New file, from
24983         gettext/autoconf-lib-link.
24984         * tests/havelib/rpathlyx/Makefile.am: New file, from
24985         gettext/autoconf-lib-link.
24986         * tests/havelib/rpathlyx/configure.ac: New file, from
24987         gettext/autoconf-lib-link with modifications.
24988         * tests/havelib/rpathlzyx/usez.c: New file, from
24989         gettext/autoconf-lib-link.
24990         * tests/havelib/rpathlzyx/Makefile.am: New file, from
24991         gettext/autoconf-lib-link.
24992         * tests/havelib/rpathlzyx/configure.ac: New file, from
24993         gettext/autoconf-lib-link with modifications.
24994         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
24995         with modifications.
24996
24997 2010-04-02  Bruno Haible  <bruno@clisp.org>
24998
24999         gnulib-tool: Create distributed built sources also for the tests.
25000         * gnulib-tool (func_create_testdir): Also generate distributed built
25001         sources in the tests directory.
25002
25003 2010-04-02  Bruno Haible  <bruno@clisp.org>
25004
25005         gnulib-tool: Obey user's environment variables.
25006         * gnulib-tool (func_create_testdir): When creating built sources,
25007         respect the environment variables for autoconf, automake, etc. given by
25008         the user.
25009
25010 2010-04-02  Bruno Haible  <bruno@clisp.org>
25011
25012         gnulib-tool: Provide the value of --m4-base to modules.
25013         * gnulib-tool (func_import, func_create_testdir): Emit a definition
25014         of gl_m4_base.
25015
25016 2010-04-02  Eric Blake  <eblake@redhat.com>
25017
25018         maint.mk: fix some fallout
25019         * NEWS: Document the incompatible change, and its effect on cfg.mk.
25020         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
25021
25022 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
25023
25024         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
25025         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
25026         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
25027         (sc_cast_of_x_alloc_return_value): Likewise.
25028         (sc_cast_of_alloca_return_value): Likewise.
25029         (sc_space_tab): Likewise.
25030         (sc_prohibit_atoi_atof): Likewise.
25031         (sc_prohibit_magic_number_exit): Likewise.
25032         (sc_error_exit_success): Likewise.
25033         (sc_file_system): Likewise.
25034         (sc_prohibit_have_config_h): Likewise.
25035         (sc_require_config_h): Likewise.
25036         (sc_prohibit_HAVE_MBRTOWC): Likewise.
25037         (sc_obsolete_symbols): Likewise.
25038         (sc_changelog): Likewise.
25039         (sc_program_name): Likewise.
25040         (sc_the_the): Likewise.
25041         (sc_trailing_blank): Likewise.
25042         (sc_two_space_separator_in_usage): Likewise.
25043         (sc_useless_cpp_parens): Likewise.
25044         (sc_GPL_version): Likewise.
25045         (sc_GFDL_version): Likewise.
25046         (sc_texinfo_acronym): Likewise.
25047         (sc_prohibit_cvs_keyword): Likewise.
25048         (sc_prohibit_stat_st_blocks): Likewise.
25049         (sc_prohibit_S_IS_definition): Likewise.
25050         (sc_redundant_const): Likewise.
25051         (sc_makefile_TAB_only_indentation): Likewise.
25052         (sc_m4_quote_check): Likewise.
25053         (sc_makefile_path_separator_check): Likewise.
25054         (sc_copyright_check): Likewise.
25055         (sc_Wundef_boolean): Likewise.
25056         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
25057
25058         maint.mk: match 0 or more whitespace-before-function-call '('
25059         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
25060         that have zero or two-and-more spaces between the function name
25061         and the open parenthesis.
25062         (sc_error_message_warn_fatal): Likewise.
25063         (sc_error_message_uppercase): Likewise.
25064         (sc_error_message_period): Likewise.
25065
25066 2010-03-31  Eric Blake  <eblake@redhat.com>
25067
25068         maint.mk: check for [ as well as test
25069         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
25070         Based on a libvirt report by Matthias Bolte.
25071
25072         gnumakefile: don't squelch _version output
25073         * top/GNUmakefile (_version): Create one-shot dependency rather
25074         than using $(shell) when version must be regenerated.
25075         (_autoreconf): Run verbosely, by default.
25076
25077         sys_time: avoid compiler warnings
25078         * lib/sys_time.in.h (includes): Ensure gcc pragma is
25079         unconditional, fixing regression from 2010-03-29.
25080         Reported by Simon Josefsson.
25081
25082 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
25083
25084         maint.mk: s/_header_without_use/_sc_header_without_use/
25085         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
25086         (sc_prohibit_assert_without_use): Use the new name.
25087         (sc_prohibit_close_stream_without_use): Likewise.
25088         (sc_prohibit_getopt_without_use): Likewise.
25089         (sc_prohibit_quotearg_without_use): Likewise.
25090         (sc_prohibit_quote_without_use): Likewise.
25091         (sc_prohibit_long_options_without_use): Likewise.
25092         (sc_prohibit_inttostr_without_use): Likewise.
25093         (sc_prohibit_ignore_value_without_use): Likewise.
25094         (sc_prohibit_error_without_use): Likewise.
25095         (sc_prohibit_xalloc_without_use): Likewise.
25096         (sc_prohibit_hash_without_use): Likewise.
25097         (sc_prohibit_hash_pjw_without_use): Likewise.
25098         (sc_prohibit_safe_read_without_use): Likewise.
25099         (sc_prohibit_argmatch_without_use): Likewise.
25100         (sc_prohibit_canonicalize_without_use): Likewise.
25101         (sc_prohibit_root_dev_ino_without_use): Likewise.
25102         (sc_prohibit_openat_without_use): Likewise.
25103         (sc_prohibit_c_ctype_without_use): Likewise.
25104         (sc_prohibit_signal_without_use): Likewise.
25105         (sc_prohibit_intprops_without_use): Likewise.
25106
25107 2010-03-30  Eric Blake  <eblake@redhat.com>
25108
25109         maint: improve module indicators
25110         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
25111         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
25112         columns, and avoid extra macro expansion.
25113
25114         fdopendir: work around FreeBSD bug
25115         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
25116         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
25117         * modules/dirent (Makefile.am): Substitute it.
25118         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
25119         declaration.
25120         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
25121         fix.
25122         Reported by Christian Weisgerber <naddy@mips.inka.de>.
25123
25124 2010-03-29  Bruno Haible  <bruno@clisp.org>
25125
25126         Emit #pragma system_header after the inclusion guard, not before.
25127         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
25128         guard that spans the entire file, not before. This enables an
25129         optimization in GCC's preprocessor.
25130         * lib/ctype.in.h: Likewise.
25131         * lib/dirent.in.h: Likewise.
25132         * lib/errno.in.h: Likewise.
25133         * lib/float.in.h: Likewise.
25134         * lib/getopt.in.h: Likewise.
25135         * lib/iconv.in.h: Likewise.
25136         * lib/langinfo.in.h: Likewise.
25137         * lib/locale.in.h: Likewise.
25138         * lib/math.in.h: Likewise.
25139         * lib/netdb.in.h: Likewise.
25140         * lib/netinet_in.in.h: Likewise.
25141         * lib/pty.in.h: Likewise.
25142         * lib/sched.in.h: Likewise.
25143         * lib/se-selinux.in.h: Likewise.
25144         * lib/search.in.h: Likewise.
25145         * lib/spawn.in.h: Likewise.
25146         * lib/stdarg.in.h: Likewise.
25147         * lib/stdint.in.h: Likewise.
25148         * lib/string.in.h: Likewise.
25149         * lib/strings.in.h: Likewise.
25150         * lib/sys_file.in.h: Likewise.
25151         * lib/sys_ioctl.in.h: Likewise.
25152         * lib/sys_time.in.h: Likewise.
25153         * lib/sys_times.in.h: Likewise.
25154         * lib/sys_utsname.in.h: Likewise.
25155         * lib/sys_wait.in.h: Likewise.
25156         * lib/sysexits.in.h: Likewise.
25157         * lib/wctype.in.h: Likewise.
25158
25159 2010-03-28  James Youngman  <jay@gnu.org>
25160
25161         save-cwd: don't leak a file descriptor when the caller execs.
25162         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
25163         saved file descriptor.
25164         * modules/save-cwd (Depends-on): Depend on cloexec.
25165
25166 2010-03-29  Bruno Haible  <bruno@clisp.org>
25167
25168         Remove vestiges of fts-lgpl module.
25169         * lib/fts_.h: Assume GNULIB_FTS is 1.
25170         * lib/fts.c: Likewise.
25171         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
25172
25173 2010-03-28  Bruno Haible  <bruno@clisp.org>
25174
25175         Fix definition of tests witness macro.
25176         * gnulib-tool (func_import): Fix definition of witness macro.
25177
25178 2010-03-28  Bruno Haible  <bruno@clisp.org>
25179
25180         Fix ioctl's protoype on glibc systems.
25181         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
25182         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
25183         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
25184         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
25185         signature. If not, arrange to replace the ioctl function.
25186         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
25187         REPLACE_IOCTL.
25188         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
25189         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
25190         Reported by Ludovic Courtès <ludo@gnu.org>.
25191
25192 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
25193
25194         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
25195         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
25196         made it so grep -r --include=GLOB* ... did not work.
25197
25198 2010-03-26  Jim Meyering  <meyering@redhat.com>
25199             Eric Blake  <eblake@redhat.com>
25200
25201         maint.mk: prohibit use of test's -o and -a operators
25202         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
25203
25204 2010-03-28  Bruno Haible  <bruno@clisp.org>
25205
25206         Remove unused GNULIB_XYZ macro definitions.
25207         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
25208         invocation.
25209
25210 2010-03-28  Bruno Haible  <bruno@clisp.org>
25211
25212         Mark privileged tests modules.
25213         * modules/idpriv-drop-tests (Status): New section.
25214         * modules/idpriv-droptemp-tests (Status): New section.
25215
25216 2010-03-28  Bruno Haible  <bruno@clisp.org>
25217
25218         Split C++ tests into separate tests modules.
25219         * modules/dirent-c++-tests: New file, extracted from
25220         modules/dirent-tests.
25221         * modules/dirent-tests: Depend on it.
25222         * modules/fcntl-h-c++-tests: New file, extracted from
25223         modules/fcntl-h-tests.
25224         * modules/fcntl-h-tests: Depend on it.
25225         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
25226         * modules/glob-tests: Depend on it.
25227         * modules/iconv-h-c++-tests: New file, extracted from
25228         modules/iconv-h-tests.
25229         * modules/iconv-h-tests: Depend on it.
25230         * modules/langinfo-c++-tests: New file, extracted from
25231         modules/langinfo-tests.
25232         * modules/langinfo-tests: Depend on it.
25233         * modules/locale-c++-tests: New file, extracted from
25234         modules/locale-tests.
25235         * modules/locale-tests: Depend on it.
25236         * modules/math-c++-tests: New file, extracted from modules/math-tests.
25237         * modules/math-tests: Depend on it.
25238         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
25239         * modules/pty-tests: Depend on it.
25240         * modules/search-c++-tests: New file, extracted from
25241         modules/search-tests.
25242         * modules/search-tests: Depend on it.
25243         * modules/signal-c++-tests: New file, extracted from
25244         modules/signal-tests.
25245         * modules/signal-tests: Depend on it.
25246         * modules/spawn-c++-tests: New file, extracted from
25247         modules/spawn-tests.
25248         * modules/spawn-tests: Depend on it.
25249         * modules/stdio-c++-tests: New file, extracted from
25250         modules/stdio-tests.
25251         * modules/stdio-tests: Depend on it.
25252         * modules/stdlib-c++-tests: New file, extracted from
25253         modules/stdlib-tests.
25254         * modules/stdlib-tests: Depend on it.
25255         * modules/string-c++-tests: New file, extracted from
25256         modules/string-tests.
25257         * modules/string-tests: Depend on it.
25258         * modules/sys_ioctl-c++-tests: New file, extracted from
25259         modules/sys_ioctl-tests.
25260         * modules/sys_ioctl-tests: Depend on it.
25261         * modules/sys_select-c++-tests: New file, extracted from
25262         modules/sys_select-tests.
25263         * modules/sys_select-tests: Depend on it.
25264         * modules/sys_socket-c++-tests: New file, extracted from
25265         modules/sys_socket-tests.
25266         * modules/sys_socket-tests: Depend on it.
25267         * modules/sys_stat-c++-tests: New file, extracted from
25268         modules/sys_stat-tests.
25269         * modules/sys_stat-tests: Depend on it.
25270         * modules/sys_time-c++-tests: New file, extracted from
25271         modules/sys_time-tests.
25272         * modules/sys_time-tests: Depend on it.
25273         * modules/time-c++-tests: New file, extracted from modules/time-tests.
25274         * modules/time-tests: Depend on it.
25275         * modules/unistd-c++-tests: New file, extracted from
25276         modules/unistd-tests.
25277         * modules/unistd-tests: Depend on it.
25278         * modules/wchar-c++-tests: New file, extracted from
25279         modules/wchar-tests.
25280         * modules/wchar-tests: Depend on it.
25281         * modules/wctype-c++-tests: New file, extracted from
25282         modules/wctype-tests.
25283         * modules/wctype-tests: Depend on it.
25284         Reported by Simon Josefsson.
25285
25286 2010-03-28  Bruno Haible  <bruno@clisp.org>
25287
25288         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
25289         * gnulib-tool (func_exists_module): New function, extracted from
25290         func_verify_module.
25291         (func_verify_module): Use it.
25292         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
25293         'foo' only if 'foo' exists.
25294         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
25295         module.
25296
25297 2010-03-28  Bruno Haible  <bruno@clisp.org>
25298
25299         gnulib-tool: Add support for special categories of tests.
25300         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
25301         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
25302         (func_usage): Document them.
25303         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
25304         inc_unportable_tests, inc_all_tests): New variables.
25305         (func_acceptable): Consider these variables.
25306         (func_modules_transitive_closure): Make it work when the 'Status' field
25307         consists of multiple words.
25308         (func_import): Store and restore the values of inc_cxx_tests,
25309         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
25310         inc_all_tests in gnulib-comp.m4.
25311         (func_create_testdir): Set inc_all_tests to true.
25312         * doc/gnulib.texi (Extra tests modules): New section.
25313         Suggested by Jim Meyering.
25314
25315 2010-03-28  Bruno Haible  <bruno@clisp.org>
25316
25317         ansi-c++-opt: Allow turning off the C++ build by default.
25318         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
25319         gl_CXX_CHOICE_DEFAULT_NO is defined.
25320         Requested by Eric Blake.
25321
25322 2010-03-28  Bruno Haible  <bruno@clisp.org>
25323
25324         unistd: Avoid #define replacements in C++ mode.
25325         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
25326         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
25327         setsockopt, shutdown, select): In C++, attach a warning to the function
25328         if possible, rather than #defining the symbol to a dysfunctional alias.
25329         Reported by John W. Eaton <jwe@gnu.org>.
25330
25331 2010-03-28  Bruno Haible  <bruno@clisp.org>
25332
25333         Fix link errors on mingw.
25334         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
25335         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
25336         $(LIBSOCKET).
25337         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
25338         $(LIBSOCKET).
25339
25340 2010-03-28  Bruno Haible  <bruno@clisp.org>
25341             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25342
25343         lib-ignore: Determine different options for different compilers.
25344         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
25345         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
25346         Add comments.
25347         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
25348         * NEWS: Mention the change.
25349
25350 2010-03-27  Bruno Haible  <bruno@clisp.org>
25351
25352         Remove unused GNULIB_XYZ macro definitions.
25353         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
25354         * modules/fseek (configure.ac): Likewise.
25355         * modules/ioctl (configure.ac): Likewise.
25356         * modules/open (configure.ac): Likewise.
25357         * modules/stdlib-safer (configure.ac): Likewise.
25358
25359 2010-03-27  Bruno Haible  <bruno@clisp.org>
25360
25361         Add a remark about certain modules.
25362         * modules/malloc (Comment): New section.
25363         * modules/realloc (Comment): Likewise.
25364         * modules/sigpipe (Comment): Likewise.
25365
25366 2010-03-27  Bruno Haible  <bruno@clisp.org>
25367
25368         Resolve conflict between the two kinds of module indicators.
25369         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
25370         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
25371         * modules/canonicalize (configure.ac): Invoke
25372         gl_MODULE_INDICATOR_FOR_TESTS.
25373         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
25374         GNULIB_XYZ.
25375         * tests/test-dirent-c++.cc: Likewise.
25376         * tests/test-dirent-safer.c: Likewise.
25377         * tests/test-dup2.c: Likewise.
25378         * tests/test-fchdir.c: Likewise.
25379         * tests/test-fcntl-h-c++.cc: Likewise.
25380         * tests/test-getopt.c: Likewise.
25381         * tests/test-getopt.h: Likewise.
25382         * tests/test-langinfo-c++.cc: Likewise.
25383         * tests/test-locale-c++.cc: Likewise.
25384         * tests/test-math-c++.cc: Likewise.
25385         * tests/test-pty-c++.cc: Likewise.
25386         * tests/test-search-c++.cc: Likewise.
25387         * tests/test-signal-c++.cc: Likewise.
25388         * tests/test-spawn-c++.cc: Likewise.
25389         * tests/test-stdio-c++.cc: Likewise.
25390         * tests/test-stdlib-c++.cc: Likewise.
25391         * tests/test-string-c++.cc: Likewise.
25392         * tests/test-sys_ioctl-c++.cc: Likewise.
25393         * tests/test-sys_select-c++.cc: Likewise.
25394         * tests/test-sys_socket-c++.cc: Likewise.
25395         * tests/test-sys_stat-c++.cc: Likewise.
25396         * tests/test-sys_time-c++.cc: Likewise.
25397         * tests/test-time-c++.cc: Likewise.
25398         * tests/test-unistd-c++.cc: Likewise.
25399         * tests/test-wchar-c++.cc: Likewise.
25400         * tests/uninorm/test-u8-nfc.c: Likewise.
25401         * tests/uninorm/test-u8-nfd.c: Likewise.
25402         * tests/uninorm/test-u8-nfkc.c: Likewise.
25403         * tests/uninorm/test-u8-nfkd.c: Likewise.
25404         * tests/uninorm/test-u16-nfc.c: Likewise.
25405         * tests/uninorm/test-u16-nfd.c: Likewise.
25406         * tests/uninorm/test-u16-nfkc.c: Likewise.
25407         * tests/uninorm/test-u16-nfkd.c: Likewise.
25408         * tests/uninorm/test-u32-nfc.c: Likewise.
25409         * tests/uninorm/test-u32-nfc-big.c: Likewise.
25410         * tests/uninorm/test-u32-nfd.c: Likewise.
25411         * tests/uninorm/test-u32-nfd-big.c: Likewise.
25412         * tests/uninorm/test-u32-nfkc.c: Likewise.
25413         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
25414         * tests/uninorm/test-u32-nfkd.c: Likewise.
25415         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
25416         * tests/uninorm/test-u32-normalize-big.c: Likewise.
25417
25418 2010-03-27  Bruno Haible  <bruno@clisp.org>
25419
25420         Distinguish two kinds of module indicators.
25421         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
25422         gl_MODULE_INDICATOR.
25423         (gl_MODULE_INDICATOR): New macro.
25424         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
25425         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
25426         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
25427         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
25428         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
25429         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
25430         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
25431         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
25432         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
25433         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
25434         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
25435         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
25436         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
25437         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
25438         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
25439         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
25440         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
25441         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
25442         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
25443         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
25444         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
25445         * modules/cloexec (configure.ac): Likewise.
25446         * modules/getopt-gnu (configure.ac): Likewise.
25447         * modules/uninorm/u8-normalize (configure.ac): Likewise.
25448         * modules/uninorm/u16-normalize (configure.ac): Likewise.
25449         * modules/uninorm/u32-normalize (configure.ac): Likewise.
25450         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
25451
25452 2010-03-27  Bruno Haible  <bruno@clisp.org>
25453
25454         New module description field 'Comment'.
25455         * gnulib-tool: New option --extract-comment.
25456         (func_usage): Document it.
25457         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
25458         (func_get_comment): New function.
25459         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
25460
25461 2010-03-27  Bruno Haible  <bruno@clisp.org>
25462
25463         Addendum to 2010-02-07 commit.
25464         * gnulib-tool (func_usage): Document --extract-applicability option.
25465
25466 2010-03-27  Bruno Haible  <bruno@clisp.org>
25467
25468         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
25469         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
25470         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
25471         rather than link errors.
25472
25473 2010-03-27  Bruno Haible  <bruno@clisp.org>
25474
25475         Avoid side effects from tests-related modules on the compilation of lib.
25476         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
25477         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
25478         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
25479         parameter. Emit into AM_CPPFLAGS a definition of the designated C
25480         macro.
25481         (func_import): Define a witness macro. Assign it a value that depends
25482         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
25483         tests-related modules.
25484         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
25485         Reported by Jim Meyering.
25486
25487 2010-03-27  Bruno Haible  <bruno@clisp.org>
25488
25489         Factorize common .m4 code.
25490         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
25491         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
25492         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
25493         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
25494         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
25495         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
25496         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
25497         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
25498         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
25499         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
25500         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
25501         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
25502         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
25503         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
25504         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
25505         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
25506         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
25507         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
25508         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
25509         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
25510         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
25511         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
25512         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
25513         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
25514         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
25515         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
25516         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
25517         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
25518         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
25519         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
25520         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
25521         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
25522
25523 2010-03-27  Bruno Haible  <bruno@clisp.org>
25524
25525         Fix a compilation error on Cygwin with g++ >= 4.3.
25526         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
25527         if it is undefined or if we alias it to chmod.
25528         (lstat): Don't warn about the use of this function if it is undefined
25529         or if we alias it to stat.
25530         Reported by Simon Josefsson.
25531
25532 2010-03-27  Bruno Haible  <bruno@clisp.org>
25533
25534         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
25535         * modules/getlogin (configure.ac): Update.
25536
25537         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
25538         * modules/getlogin_r (configure.ac): Update.
25539
25540         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
25541         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
25542         * modules/inet_ntop (configure.ac): Update.
25543
25544         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
25545         * modules/inet_pton (configure.ac): Update.
25546
25547         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
25548         * modules/mbslen (configure.ac): Update.
25549
25550         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
25551         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
25552         * modules/forkpty (configure.ac): Update.
25553         * modules/openpty (configure.ac): Update.
25554
25555 2010-03-26  Simon Josefsson  <simon@josefsson.org>
25556
25557         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
25558         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
25559
25560 2010-03-25  Eric Blake  <eblake@redhat.com>
25561
25562         maint: use pragma consistently across replacement headers
25563         * lib/ctype.in.h (system_header): Hoist for consistent placement.
25564         * lib/dirent.in.h (system_header): Likewise.
25565         * lib/errno.in.h (system_header): Likewise.
25566         * lib/float.in.h (system_header): Likewise.
25567         * lib/getopt.in.h (system_header): Likewise.
25568         * lib/iconv.in.h (system_header): Likewise.
25569         * lib/inttypes.in.h (system_header): Likewise.
25570         * lib/langinfo.in.h (system_header): Likewise.
25571         * lib/locale.in.h (system_header): Likewise.
25572         * lib/math.in.h (system_header): Likewise.
25573         * lib/netdb.in.h (system_header): Likewise.
25574         * lib/netinet_in.in.h (system_header): Likewise.
25575         * lib/pty.in.h (system_header): Likewise.
25576         * lib/sched.in.h (system_header): Likewise.
25577         * lib/se-selinux.in.h (system_header): Likewise.
25578         * lib/search.in.h (system_header): Likewise.
25579         * lib/spawn.in.h (system_header): Likewise.
25580         * lib/stdarg.in.h (system_header): Likewise.
25581         * lib/stdint.in.h (system_header): Likewise.
25582         * lib/string.in.h (system_header): Likewise.
25583         * lib/strings.in.h (system_header): Likewise.
25584         * lib/sys_file.in.h (system_header): Likewise.
25585         * lib/sys_ioctl.in.h (system_header): Likewise.
25586         * lib/sys_socket.in.h (system_header): Likewise.
25587         * lib/sys_times.in.h (system_header): Likewise.
25588         * lib/sys_utsname.in.h (system_header): Likewise.
25589         * lib/sys_wait.in.h (system_header): Likewise.
25590         * lib/sysexits.in.h (system_header): Likewise.
25591         * lib/unistd.in.h (system_header): Likewise.
25592         * lib/wctype.in.h (system_header): Likewise.
25593
25594         arpa/inet: fix mingw compilation warning
25595         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
25596         Reported by Matthew Bolte.
25597
25598 2010-03-25  Bruno Haible  <bruno@clisp.org>
25599
25600         Avoid collision between gnulib wrapper and libintl wrapper.
25601         * lib/printf.c (printf): Don't define if a printf wrapper is already
25602         defined in intl/printf.c.
25603         Reported by Michel Boaventura <michel@michelboaventura.com>.
25604
25605 2010-03-25  Bruno Haible  <bruno@clisp.org>
25606
25607         Use ANSI C.
25608         * lib/readutmp.h (getutent): Provide ANSI C prototype.
25609
25610 2010-03-25  Bruno Haible  <bruno@clisp.org>
25611
25612         Minor formatting changes.
25613         * lib/acosl.c: Insert space before function argument list.
25614         * lib/argz.c: Likewise.
25615         * lib/asinl.c: Likewise.
25616         * lib/expl.c: Likewise.
25617         * lib/gen-uni-tables.c: Likewise.
25618         * lib/gettext.h: Likewise.
25619         * lib/glthread/lock.h: Likewise.
25620         * lib/tanl.c: Likewise.
25621         * lib/uniname/uniname.c: Likewise.
25622         * tests/test-idpriv-drop.c: Likewise.
25623         * tests/test-idpriv-droptemp.c: Likewise.
25624         * tests/test-lock.c: Likewise.
25625         * tests/test-tls.c: Likewise.
25626         * lib/argp-help.c: Insert space before function-like macro argument
25627         list.
25628         * lib/memcmp.c: Likewise.
25629         * tests/test-base64.c: Likewise.
25630         * lib/localename.c: Insert space before sizeof's argument list.
25631         * lib/safe-alloc.h: Likewise.
25632         * lib/file-set.h: Insert space before macro argument list.
25633         * tests/test-argp.c: Likewise.
25634         * lib/argp-namefrob.h: Insert space before function parameter list.
25635         * lib/getaddrinfo.c: Likewise.
25636         * lib/netdb.in.h: Likewise.
25637         * lib/parse-duration.h: Likewise.
25638         * lib/parse-duration.c: Likewise.
25639         * lib/poll.c: Likewise.
25640         * lib/select.c: Likewise.
25641         * lib/trim.h: Likewise.
25642         * tests/test-usleep.c: Likewise.
25643         * lib/ldexpl.c: Insert space before function parameter list and before
25644         function argument list.
25645         * lib/logl.c: Likewise.
25646         * lib/sqrtl.c: Likewise.
25647         * lib/trim.c: Likewise.
25648         * lib/cosl.c: Use GNU style indentation. Insert space before function
25649         argument list.
25650         * lib/sinl.c: Likewise.
25651         * lib/tsearch.c: Insert space after 'for'.
25652         Reported by Jim Meyering.
25653
25654 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
25655
25656         * maint.mk (sc_Wundef_boolean): Check for the presence of the
25657         config header before grepping, as it's not present before
25658         autoreconf/configure are run.  Reported by Simon Josefsson.
25659
25660 2010-03-23  Bruno Haible  <bruno@clisp.org>
25661
25662         pt_chown: Make it work with automake < 1.11.
25663         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
25664         Reported by Simon Josefsson.
25665
25666 2010-03-23  Bruno Haible  <bruno@clisp.org>
25667
25668         pt_chown: Don't depend on GPLed modules.
25669         * lib/pt_chown.c: Don't include idpriv.h.
25670         (main): Don't drop privileges.
25671         * modules/pt_chown (Depends-on): Remove idpriv-drop.
25672         Reported by Simon Josefsson.
25673
25674 2010-03-24  Simon Josefsson  <simon@josefsson.org>
25675
25676         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
25677         suggestions from karl@freefriends.org (Karl Berry).
25678
25679 2010-03-22  Eric Blake  <eblake@redhat.com>
25680
25681         gethostname: further tweaks
25682         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
25683         are overriding gethostname.
25684         Suggested by Bruno Haible.
25685
25686 2010-03-21  Bruno Haible  <bruno@clisp.org>
25687
25688         Fix comments.
25689         * lib/forkpty.c (rpl_forkpty): Fix comment.
25690         * lib/openpty.c (rpl_openpty): Likewise.
25691         Reported by Eric Blake.
25692
25693 2010-03-22  Eric Blake  <eblake@redhat.com>
25694
25695         gethostname: fix build on mingw
25696         * lib/unistd.in.h (includes): Work around fact that mingw
25697         <winsock2.h> re-includes <unistd.h>, by avoiding any
25698         redeclarations if we are being included by <winsock2.h>.
25699         Reported by Matthias Bolte.
25700
25701 2010-03-21  Bruno Haible  <bruno@clisp.org>
25702
25703         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
25704         * lib/forkpty.c (forkpty): New replacement function, from glibc with
25705         modifications.
25706         * lib/pty.in.h (forkpty): Update declaration. Add comments.
25707         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
25708         provide the replacement.
25709         * modules/forkpty (Depends-on): Add openpty, login_tty.
25710         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
25711         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
25712         * doc/glibc-functions/forkpty.texi: More supported platforms.
25713         * config/srclist.txt: Add forkpty.c (commented).
25714
25715 2010-03-21  Bruno Haible  <bruno@clisp.org>
25716
25717         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
25718         (Makefile.am): Verify that PTY_LIB is defined.
25719
25720         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
25721
25722 2010-03-21  Bruno Haible  <bruno@clisp.org>
25723
25724         Tests for module 'login_tty'.
25725         * modules/login_tty-tests: New file.
25726         * tests/test-login_tty.c: New file.
25727
25728         New module 'login_tty'.
25729         * lib/login_tty.c: New file.
25730         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
25731         * modules/login_tty: New file.
25732         * doc/glibc-functions/login_tty.texi: Mention the new module.
25733
25734 2010-03-21  Bruno Haible  <bruno@clisp.org>
25735
25736         login_tty: Documentation.
25737         * doc/glibc-functions/login_tty.texi: New file.
25738         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
25739
25740 2010-03-21  Bruno Haible  <bruno@clisp.org>
25741
25742         pty: Consistent macro naming.
25743         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
25744         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
25745         * modules/pty (configure.ac): Update.
25746
25747 2010-03-21  Bruno Haible  <bruno@clisp.org>
25748
25749         Tests for openpty: Make stricter.
25750         * tests/test-openpty.c (main): Add test of canonical processing and
25751         erase.
25752         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
25753
25754         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
25755         * lib/openpty.c (openpty): New replacement function.
25756         * lib/pty.in.h: Include <termios.h>.
25757         (openpty): Update declaration. Add comments.
25758         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
25759         is not declared, arrange to provide the replacement. Check for _getpty
25760         and posix_openpt.
25761         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
25762         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
25763         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
25764         * modules/pty-tests (test_pty_c___LDADD): New variable.
25765         * doc/glibc-functions/openpty.texi: More supported platforms.
25766
25767 2010-03-21  Bruno Haible  <bruno@clisp.org>
25768
25769         setenv: Tweaks.
25770         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
25771         the test program.
25772         * doc/posix-functions/setenv.texi: Update platforms list.
25773
25774 2010-03-21  Bruno Haible  <bruno@clisp.org>
25775
25776         New module 'unlockpt'.
25777         * lib/unlockpt.c: New file, from glibc with modifications.
25778         * m4/unlockpt.m4: New file.
25779         * modules/unlockpt: New file.
25780         * lib/stdlib.in.h (unlockpt): New declaration.
25781         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
25782         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
25783         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
25784         HAVE_UNLOCKPT.
25785         * doc/posix-functions/unlockpt.texi: Mention the new module.
25786         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
25787         * config/srclist.txt: Add unlockpt.c (commented).
25788
25789 2010-03-21  Jim Meyering  <meyering@redhat.com>
25790
25791         maint.mk: prohibit inclusion of "intprops.h" without use
25792         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
25793
25794 2010-03-21  Bruno Haible  <bruno@clisp.org>
25795
25796         New module 'grantpt'.
25797         * lib/grantpt.c: New file, from glibc with modifications.
25798         * m4/grantpt.m4: New file.
25799         * modules/grantpt: New file.
25800         * lib/stdlib.in.h (grantpt): New declaration.
25801         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
25802         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
25803         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
25804         HAVE_GRANTPT.
25805         * doc/posix-functions/grantpt.texi: Mention the new module.
25806         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
25807         * config/srclist.txt: Add grantpt.c (commented).
25808
25809 2010-03-21  Bruno Haible  <bruno@clisp.org>
25810
25811         New module 'pt_chown'.
25812         * lib/pt_chown.c: New file, from glibc with modifications.
25813         * lib/pty-private.h: New file, from glibc with modifications.
25814         * modules/pt_chown: New file.
25815         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
25816
25817 2010-03-21  Bruno Haible  <bruno@clisp.org>
25818
25819         Tests for module 'ptsname'.
25820         * modules/ptsname-tests: New file.
25821         * tests/test-ptsname.c: New file.
25822
25823         New module 'ptsname'.
25824         * lib/ptsname.c: New file, from glibc with modifications.
25825         * m4/ptsname.m4: New file.
25826         * modules/ptsname: New file.
25827         * lib/stdlib.in.h (ptsname): New declaration.
25828         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
25829         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
25830         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
25831         HAVE_PTSNAME.
25832         * doc/posix-functions/ptsname.texi: Mention the new module.
25833         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
25834         * config/srclist.txt: Add ptsname.c (commented).
25835
25836 2010-03-21  Bruno Haible  <bruno@clisp.org>
25837
25838         Tests for module 'ttyname_r'.
25839         * modules/ttyname_r-tests: New file.
25840         * tests/test-ttyname_r.c: New file.
25841
25842         New module 'ttyname_r'.
25843         * lib/ttyname_r.c: New file.
25844         * m4/ttyname_r.m4: New file.
25845         * modules/ttyname_r: New file.
25846         * lib/unistd.in.h (ttyname_r): New declaration.
25847         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
25848         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
25849         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
25850         HAVE_TTYNAME_R.
25851         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
25852         * doc/posix-functions/ttyname_r.texi: Mention the new module.
25853
25854 2010-03-20  Bruno Haible  <bruno@clisp.org>
25855
25856         signal: Undefine macro definitions in C++ mode.
25857         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
25858         sigfillset): Undefine macro definitions from the system header in C++
25859         mode.
25860         Reported by John W. Eaton <jwe@gnu.org>.
25861
25862 2010-03-20  Bruno Haible  <bruno@clisp.org>
25863
25864         Ensure no #include statements inside extern "C" { ... }.
25865         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
25866         contain #include statements.
25867         * lib/time.in.h: Likewise.
25868
25869 2010-03-20  Bruno Haible  <bruno@clisp.org>
25870
25871         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
25872         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
25873         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
25874         Reported by John W. Eaton <jwe@gnu.org>.
25875
25876 2010-03-20  Bruno Haible  <bruno@clisp.org>
25877
25878         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
25879         Reported by Jim Meyering.
25880
25881 2010-03-20  Bruno Haible  <bruno@clisp.org>
25882
25883         pipe: Set errno upon failure.
25884         * lib/pipe.h: Specify that when -1 is returned, errno is set.
25885         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
25886         errno value in error message.
25887
25888 2010-03-20  Bruno Haible  <bruno@clisp.org>
25889             Jim Meyering  <meyering@redhat.com>
25890
25891         lchown: Avoid "unused variable" warning.
25892         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
25893
25894 2010-03-20  Bruno Haible  <bruno@clisp.org>
25895
25896         Work around unlink() bug on MacOS X 10.5.6.
25897         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
25898         attempting to unlink a parent directory.
25899         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
25900         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
25901         activate for the replacement function.
25902         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
25903
25904 2010-03-20  Bruno Haible  <bruno@clisp.org>
25905
25906         Fix link errors on Solaris 8.
25907         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
25908         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
25909
25910 2010-03-19  Jim Meyering  <meyering@redhat.com>
25911
25912         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
25913         The _LIBC implementation of build_range_exp correctly honors the
25914         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
25915         However, the non-_LIBC implementation would ignore that syntax-bit
25916         flag and return REG_ERANGE unconditionally.
25917         This change makes it honor that flag.
25918         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
25919         Make two pointer parameters "const".
25920         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
25921         (parse_bracket_exp): Update caller.
25922
25923         regex.m4: correct the reversed range endpoint ([b-a]) test
25924         * m4/regex.m4: When requiring that [b-a] evoke failure,
25925         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
25926         test pass once again for x86-based systems.
25927
25928 2010-03-19  Bruno Haible  <bruno@clisp.org>
25929
25930         scandir: Fix link error on Solaris 8.
25931         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
25932         macros.
25933
25934 2010-03-19  Bruno Haible  <bruno@clisp.org>
25935
25936         getusershell: Fix documentation.
25937         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
25938         module.
25939         * doc/glibc-functions/setusershell.texi: Likewise.
25940
25941         getusershell: Provide declaration, missing on Solaris 9.
25942         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
25943         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
25944         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
25945         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
25946         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
25947         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
25948         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
25949         HAVE_GETUSERSHELL.
25950         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
25951
25952 2010-03-19  Bruno Haible  <bruno@clisp.org>
25953
25954         wctype: Provide iswblank function.
25955         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
25956         exists and is fine.
25957         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
25958         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
25959         * tests/test-wctype.c (main): Re-enable the iswblank tests.
25960         * doc/posix-functions/iswblank.texi: Update.
25961
25962 2010-03-19  Bruno Haible  <bruno@clisp.org>
25963
25964         Tests of module 'pty' in C++ mode.
25965         * modules/pty-tests: New file.
25966         * tests/test-pty-c++.cc: New file.
25967         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
25968
25969 2010-03-19  Eric Blake  <eblake@redhat.com>
25970
25971         logb: fix documentation
25972         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
25973         1.5 declaration bug.
25974
25975         forkpty, openpty: prefer glibc's const-safe prototype
25976         * lib/forkpty.c (rpl_forkpty): New file.
25977         * lib/openpty.c (rpl_openpty): Likewise.
25978         * modules/forkpty (Files): Distribute it.
25979         * modules/openpty (Files): Likewise.
25980         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
25981         check...
25982         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
25983         replacement for for non-const BSD signature.
25984         * modules/pty (Makefile.am): Substitute witnesses.
25985         * lib/pty.in.h (forkpty, openpty): Declare replacements.
25986         * tests/test-forkpty.c: Update signature check.
25987         * tests/test-openpty.c: Likewise.
25988         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
25989         * doc/glibc-functions/openpty.texi (openpty): Likewise.
25990
25991         forkpty, openpty: split functions into new modules
25992         * modules/pty (Makefile.am): Substitute new witnesses.
25993         (Libraries): Move library detection...
25994         * modules/forkpty: ...into new module.
25995         * modules/openpty: Another new module.
25996         * modules/pty-tests: Rename and split...
25997         * modules/forkpty-tests: ...to this...
25998         * modules/openpty-tests: ...and this.
25999         * tests/test-pty.c: Rename and split...
26000         * tests/test-forkpty.c: ...to this...
26001         * tests/test-openpty.c: ...and this.
26002         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
26003         (gl_PTY): Split library searching...
26004         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
26005         (gl_FORKPTY, gl_OPENPTY): New macros.
26006         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
26007         * NEWS: Mention the split.
26008         * MODULES.html.sh (Misc): Document the modules.
26009         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
26010         * doc/glibc-functions/openpty.texi (openpty): Likewise.
26011
26012         pty: improve replacement header
26013         * lib/pty.in.h: New file.
26014         * modules/pty (Files): Ship it.
26015         (Makefile.am): Always build replacement.
26016         * m4/pty.m4: Rename...
26017         * m4/pty_h.m4: ...to this.
26018         (gl_PTY): Modernize setting of witness macros; update check of
26019         forkpty to take proper advantage of cache.
26020         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
26021
26022         getopt: avoid compiler warning
26023         * lib/getopt.c (attribute_hidden): Remove unused macro.
26024
26025 2010-03-18  Bruno Haible  <bruno@clisp.org>
26026
26027         Fix link errors on Solaris 8.
26028         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
26029         * modules/search-tests (test_search_c___LDADD): Likewise.
26030         * modules/signal-tests (test_signal_c___LDADD): Likewise.
26031         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
26032         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
26033         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
26034         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
26035         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
26036         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
26037
26038 2010-03-18  Bruno Haible  <bruno@clisp.org>
26039
26040         Fix bug introduced on 2010-03-14.
26041         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
26042         (gl_SPAWN_H): Require it.
26043         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
26044         Reported by Simon Josefsson.
26045
26046 2010-03-18  Bruno Haible  <bruno@clisp.org>
26047
26048         Fix typo introduced on 2009-12-31.
26049         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
26050         posix_spawn_file_actions_adddup2.
26051
26052 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
26053         and Eric Blake  <eblake@redhat.com>
26054
26055         test-vc-list-files-git: make more robust
26056         * tests/test-vc-list-files-git.sh: Unset problematic environment
26057         variables.  Chain commands together.
26058
26059 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
26060
26061         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
26062         `AC_CHECK_DECL' invocation.
26063
26064 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
26065
26066         * lib/inttostr.c (inttostr): Make sure the invocation of verify
26067         appears before executable statements. Suggested by Petr Sumbera
26068         <Petr.Sumbera@Sun.COM>.
26069
26070 2010-03-14  Bruno Haible  <bruno@clisp.org>
26071
26072         * tests/test-flock.c (test_exclusive): Comment out a test that causes
26073         portability problems. Instead use a simpler test.
26074         (main): Check that invalid arguments are rejected only on Linux.
26075
26076 2010-03-14  Bruno Haible  <bruno@clisp.org>
26077
26078         Fix bug introduced on 2009-12-31.
26079         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
26080         gl_PREREQ_SYS_H_WINSOCK2 always.
26081         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
26082         SYS_SOCKET_H variable.
26083         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
26084         Update comments.
26085         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
26086         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
26087         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
26088         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
26089         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
26090
26091 2010-03-14  Bruno Haible  <bruno@clisp.org>
26092
26093         Fix values returned by sinl, cosl.
26094         * lib/trigl.h: Add specification comments.
26095         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
26096         that combines the values from the precomputed table with the values of
26097         the Chebyshev polynomials.
26098
26099 2010-03-14  Bruno Haible  <bruno@clisp.org>
26100
26101         Fix compilation error when modules 'posix_spawn[p]' are not used.
26102         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
26103         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
26104
26105 2010-03-14  Bruno Haible  <bruno@clisp.org>
26106
26107         Fix compilation error on mingw when module 'time_r' is not used.
26108         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
26109         is 1.
26110         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
26111         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
26112         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
26113         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
26114
26115 2010-03-14  Bruno Haible  <bruno@clisp.org>
26116
26117         Fix compilation error with Sun C.
26118         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
26119         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
26120         instead of GCC specific ULONG_LONG_MAX.
26121         * lib/xstrtoll.c: Likewise.
26122         * lib/xstrtoull.c: Likewise.
26123
26124 2010-03-13  Bruno Haible  <bruno@clisp.org>
26125
26126         Allow the user to disable C++ code and tests.
26127         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
26128         (gl_PROG_ANSI_CXX): Require it.
26129
26130 2010-03-13  Bruno Haible  <bruno@clisp.org>
26131
26132         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
26133         cases.
26134
26135 2010-03-13  Bruno Haible  <bruno@clisp.org>
26136
26137         Test that gnulib does not break the standard C++ headers.
26138         * tests/test-locale-c++2.cc: New file.
26139         * modules/locale-tests (Files): Add it.
26140         (Makefile.am): Compile it for test-locale-c++.
26141         * tests/test-math-c++2.cc: New file.
26142         * modules/math-tests (Files): Add it.
26143         (Makefile.am): Compile it for test-math-c++.
26144         * tests/test-signal-c++2.cc: New file.
26145         * modules/signal-tests (Files): Add it.
26146         (Makefile.am): Compile it for test-signal-c++.
26147         * tests/test-stdio-c++2.cc: New file.
26148         * modules/stdio-tests (Files): Add it.
26149         (Makefile.am): Compile it for test-stdio-c++.
26150         * tests/test-stdlib-c++2.cc: New file.
26151         * modules/stdlib-tests (Files): Add it.
26152         (Makefile.am): Compile it for test-stdlib-c++.
26153         * tests/test-string-c++2.cc: New file.
26154         * modules/string-tests (Files): Add it.
26155         (Makefile.am): Compile it for test-string-c++.
26156         * tests/test-time-c++2.cc: New file.
26157         * modules/time-tests (Files): Add it.
26158         (Makefile.am): Compile it for test-time-c++.
26159         Reported by John W. Eaton <jwe@gnu.org>.
26160
26161 2010-03-13  Bruno Haible  <bruno@clisp.org>
26162
26163         * gnulib-tool (func_usage): Clarify which options are available for
26164         --create-testdir and --create-megatestdir.
26165
26166 2010-03-13  Bruno Haible  <bruno@clisp.org>
26167
26168         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
26169         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
26170         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
26171         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
26172         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
26173         when appropriate.
26174         Reported by Jim Meyering.
26175
26176 2010-03-12  Simon Josefsson  <simon@josefsson.org>
26177
26178         * gnulib-tool (func_import): Explain origin of code.
26179
26180 2010-03-12  Bruno Haible  <bruno@clisp.org>
26181
26182         Fix problem with automake's definition of CXXLINK.
26183         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
26184         Reported by Simon Josefsson and Ludovic Courtès.
26185
26186 2010-03-12  Bruno Haible  <bruno@clisp.org>
26187
26188         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
26189         stable releases.
26190
26191 2010-03-11  Bruno Haible  <bruno@clisp.org>
26192
26193         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
26194         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
26195         whether the system provides one variant or multiple variants of the
26196         function.
26197         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
26198         C++ compilers.
26199         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
26200         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
26201         Reported by Jim Meyering.
26202
26203 2010-03-09  Simon Josefsson  <simon@josefsson.org>
26204
26205         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
26206
26207 2010-03-08  Bruno Haible  <bruno@clisp.org>
26208
26209         gnulib-tool: Add support for --libtool in --create-testdir.
26210         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
26211         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
26212
26213 2010-03-08  Eric Blake  <eblake@redhat.com>
26214
26215         gnulib-tool.texi: mention possibility of git submodule
26216         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
26217         submodules.
26218         * doc/.gitignore: Ignore another generated file.
26219
26220 2010-03-08  Karl Berry  <karl@gnu.org>
26221
26222         * doc/gnulib-tool.texi (VCS Issues): Mention third option
26223         of committing gnulib files while skipping others.
26224
26225 2010-03-07  Bruno Haible  <bruno@clisp.org>
26226
26227         Tests of module 'wctype' in C++ mode.
26228         * tests/test-wctype-c++.cc: New file.
26229         * modules/wctype-tests (Files): Add it and tests/signature.h.
26230         (Depends-on): Add ansi-c++-opt.
26231         (Makefile.am): Arrange to compile and run test-wctype-c++.
26232
26233         Tests of module 'wchar' in C++ mode.
26234         * tests/test-wchar-c++.cc: New file.
26235         * modules/wchar-tests (Files): Add it and tests/signature.h.
26236         (Depends-on): Add ansi-c++-opt.
26237         (Makefile.am): Arrange to compile and run test-wchar-c++.
26238         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
26239         gl_MODULE_INDICATOR.
26240
26241         Tests of module 'unistd' in C++ mode.
26242         * tests/test-unistd-c++.cc: New file.
26243         * modules/unistd-tests (Files): Add it and tests/signature.h.
26244         (Depends-on): Add ansi-c++-opt.
26245         (Makefile.am): Arrange to compile and run test-unistd-c++.
26246         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
26247         gl_MODULE_INDICATOR.
26248
26249         Tests of module 'time' in C++ mode.
26250         * tests/test-time-c++.cc: New file.
26251         * modules/time-tests (Files): Add it and tests/signature.h.
26252         (Depends-on): Add ansi-c++-opt.
26253         (Makefile.am): Arrange to compile and run test-time-c++.
26254         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
26255
26256         Tests of module 'sys_time' in C++ mode.
26257         * tests/test-sys_time-c++.cc: New file.
26258         * modules/sys_time-tests (Files): Add it and tests/signature.h.
26259         (Depends-on): Add ansi-c++-opt.
26260         (Makefile.am): Arrange to compile and run test-sys_time-c++.
26261         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
26262         gl_MODULE_INDICATOR.
26263
26264         Tests of module 'sys_stat' in C++ mode.
26265         * tests/test-sys_stat-c++.cc: New file.
26266         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
26267         (Depends-on): Add ansi-c++-opt.
26268         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
26269         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
26270         gl_MODULE_INDICATOR.
26271
26272         Tests of module 'sys_socket' in C++ mode.
26273         * tests/test-sys_socket-c++.cc: New file.
26274         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
26275         (Depends-on): Add ansi-c++-opt.
26276         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
26277         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
26278         gl_MODULE_INDICATOR.
26279
26280         Tests of module 'sys_select' in C++ mode.
26281         * tests/test-sys_select-c++.cc: New file.
26282         * modules/sys_select-tests (Files): Add it and tests/signature.h.
26283         (Depends-on): Add ansi-c++-opt.
26284         (Makefile.am): Arrange to compile and run test-sys_select-c++.
26285         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
26286         gl_MODULE_INDICATOR.
26287
26288         Tests of module 'sys_ioctl' in C++ mode.
26289         * tests/test-sys_ioctl-c++.cc: New file.
26290         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
26291         (Depends-on): Add ansi-c++-opt.
26292         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
26293         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
26294         gl_MODULE_INDICATOR.
26295
26296         Tests of module 'string' in C++ mode.
26297         * tests/test-string-c++.cc: New file.
26298         * modules/string-tests (Files): Add it and tests/signature.h.
26299         (Depends-on): Add ansi-c++-opt.
26300         (Makefile.am): Arrange to compile and run test-string-c++.
26301         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
26302         gl_MODULE_INDICATOR.
26303
26304         Tests of module 'stdlib' in C++ mode.
26305         * tests/test-stdlib-c++.cc: New file.
26306         * modules/stdlib-tests (Files): Add it and tests/signature.h.
26307         (Depends-on): Add ansi-c++-opt.
26308         (Makefile.am): Arrange to compile and run test-stdlib-c++.
26309         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
26310         gl_MODULE_INDICATOR.
26311
26312         Tests of module 'stdio' in C++ mode.
26313         * tests/test-stdio-c++.cc: New file.
26314         * modules/stdio-tests (Files): Add it and tests/signature.h.
26315         (Depends-on): Add ansi-c++-opt.
26316         (Makefile.am): Arrange to compile and run test-stdio-c++.
26317         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
26318         gl_MODULE_INDICATOR.
26319
26320         Tests of module 'spawn' in C++ mode.
26321         * tests/test-spawn-c++.cc: New file.
26322         * modules/spawn-tests (Files): Add it and tests/signature.h.
26323         (Depends-on): Add ansi-c++-opt.
26324         (Makefile.am): Arrange to compile and run test-spawn-c++.
26325         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
26326         gl_MODULE_INDICATOR.
26327
26328         Tests of module 'signal' in C++ mode.
26329         * tests/test-signal-c++.cc: New file.
26330         * modules/signal-tests (Files): Add it and tests/signature.h.
26331         (Depends-on): Add ansi-c++-opt.
26332         (Makefile.am): Arrange to compile and run test-signal-c++.
26333         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
26334         gl_MODULE_INDICATOR.
26335
26336         Tests of module 'search' in C++ mode.
26337         * tests/test-search-c++.cc: New file.
26338         * modules/search-tests (Files): Add it and tests/signature.h.
26339         (Depends-on): Add ansi-c++-opt.
26340         (Makefile.am): Arrange to compile and run test-search-c++.
26341         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
26342         gl_MODULE_INDICATOR.
26343
26344         Tests of module 'math' in C++ mode.
26345         * tests/test-math-c++.cc: New file.
26346         * modules/math-tests (Files): Add it and tests/signature.h.
26347         (Depends-on): Add ansi-c++-opt.
26348         (Makefile.am): Arrange to compile and run test-math-c++.
26349         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
26350
26351         Tests of module 'locale' in C++ mode.
26352         * tests/test-locale-c++.cc: New file.
26353         * modules/locale-tests (Files): Add it and tests/signature.h.
26354         (Depends-on): Add ansi-c++-opt.
26355         (Makefile.am): Arrange to compile and run test-locale-c++.
26356         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
26357         gl_MODULE_INDICATOR.
26358
26359         Tests of module 'langinfo' in C++ mode.
26360         * tests/test-langinfo-c++.cc: New file.
26361         * modules/langinfo-tests (Files): Add it and tests/signature.h.
26362         (Depends-on): Add ansi-c++-opt.
26363         (Makefile.am): Arrange to compile and run test-langinfo-c++.
26364         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
26365         gl_MODULE_INDICATOR.
26366
26367         Tests of module 'iconv-h' in C++ mode.
26368         * tests/test-iconv-h-c++.cc: New file.
26369         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
26370         (Depends-on): Add ansi-c++-opt.
26371         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
26372
26373         Tests of module 'glob' in C++ mode.
26374         * tests/test-glob-c++.cc: New file.
26375         * modules/glob-tests (Files): Add it.
26376         (Depends-on): Add ansi-c++-opt.
26377         (Makefile.am): Arrange to compile and run test-glob-c++.
26378
26379         Tests of module 'fcntl-h' in C++ mode.
26380         * tests/test-fcntl-h-c++.cc: New file.
26381         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
26382         (Depends-on): Add ansi-c++-opt.
26383         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
26384         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
26385         gl_MODULE_INDICATOR.
26386
26387         Tests of module 'dirent' in C++ mode.
26388         * tests/test-dirent-c++.cc: New file.
26389         * modules/dirent-tests (Files): Add it and tests/signature.h.
26390         (Depends-on): Add ansi-c++-opt.
26391         (Makefile.am): Arrange to compile and run test-dirent-c++.
26392         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
26393         gl_MODULE_INDICATOR.
26394
26395         New module 'ansi-c++-opt'.
26396         * modules/ansi-c++-opt: New file.
26397         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
26398
26399         Document C++ namespace mode.
26400         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
26401
26402         wctype: Avoid #define replacements in C++ mode.
26403         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
26404         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
26405         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
26406         In C++, define a namespaced alias symbol.
26407         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
26408         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
26409         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
26410         rule.
26411
26412         wchar: Avoid #define replacements in C++ mode.
26413         * lib/wchar.in.h: Include c++defs.h.
26414         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
26415         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
26416         symbol.
26417         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
26418         * modules/wchar (Depends-on): Add c++defs.
26419         (Makefile.am): Update wchar.h rule.
26420
26421         unistd: Avoid #define replacements in C++ mode.
26422         * lib/unistd.in.h: Include c++defs.h.
26423         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
26424         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
26425         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
26426         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
26427         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
26428         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
26429         symbol.
26430         (environ): Update.
26431         * modules/unistd (Depends-on): Add c++defs.
26432         (Makefile.am): Update unistd.h rule.
26433
26434         time: Avoid #define replacements in C++ mode.
26435         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
26436         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
26437         define a namespaced alias symbol.
26438         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
26439         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
26440         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
26441         * modules/time (Depends-on): Add c++defs, warn-on-use.
26442         (Makefile.am): Update time.h rule.
26443         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
26444         * modules/nanosleep (configure.ac): Likewise.
26445         * modules/strptime (configure.ac): Likewise.
26446         * modules/timegm (configure.ac): Likewise.
26447
26448         sys_time: Avoid #define replacements in C++ mode.
26449         * lib/sys_time.in.h: Include c++defs.h.
26450         (gettimeofday): In C++, define a namespaced alias symbol.
26451         * modules/sys_time (Depends-on): Add c++defs.
26452         (Makefile.am): Update sys/time.h rule.
26453
26454         sys_stat: Avoid #define replacements in C++ mode.
26455         * lib/sys_stat.in.h: Include c++defs.h.
26456         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
26457         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
26458         namespaced alias symbol.
26459         In C++, define a namespaced alias symbol.
26460         * modules/sys_stat (Depends-on): Add c++defs.
26461         (Makefile.am): Update sys/stat.h rule.
26462
26463         sys_socket: Avoid #define replacements in C++ mode.
26464         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
26465         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
26466         definitions also when the system has a <sys/socket.h>.
26467         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
26468         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
26469         In C++, define a namespaced alias symbol.
26470         * modules/sys_socket (Depends-on): Add c++defs.
26471         (Makefile.am): Update sys/socket.h rule.
26472
26473         sys_select: Avoid #define replacements in C++ mode.
26474         * lib/sys_select.in.h: Include c++defs.h. Enable the function
26475         definitions also when the system has a <sys/select.h>.
26476         (select): In C++, define a namespaced alias symbol.
26477         * modules/sys_select (Depends-on): Add c++defs.
26478         (Makefile.am): Update sys/select.h rule.
26479
26480         sys_ioctl: Avoid #define replacements in C++ mode.
26481         * lib/sys_ioctl.in.h: Include c++defs.h.
26482         (ioctl): In C++, define a namespaced alias symbol.
26483         * modules/sys_ioctl (Depends-on): Add c++defs.
26484         (Makefile.am): Update sys/ioctl.h rule.
26485
26486         string: Avoid #define replacements in C++ mode.
26487         * lib/string.in.h: Include c++defs.h.
26488         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
26489         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
26490         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
26491         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
26492         strsignal, strverscmp): In C++, define a namespaced alias symbol.
26493         * modules/string (Depends-on): Add c++defs.
26494         (Makefile.am): Update string.h rule.
26495
26496         stdlib: Avoid #define replacements in C++ mode.
26497         * lib/stdlib.in.h: Include c++defs.h.
26498         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
26499         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
26500         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
26501         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
26502         symbol.
26503         * modules/stdlib (Depends-on): Add c++defs.
26504         (Makefile.am): Update stdlib.h rule.
26505
26506         stdio: Avoid #define replacements in C++ mode.
26507         * lib/stdio.in.h: Include c++defs.h.
26508         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
26509         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
26510         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
26511         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
26512         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
26513         namespaced alias symbol.
26514         * modules/stdio (Depends-on): Add c++defs.
26515         (Makefile.am): Update stdio.h rule.
26516
26517         spawn: Avoid #define replacements in C++ mode.
26518         * lib/spawn.in.h: Include c++defs.h.
26519         (posix_spawn, posix_spawnp, posix_spawnattr_init,
26520         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
26521         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
26522         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
26523         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
26524         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
26525         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
26526         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
26527         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
26528         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
26529         In C++, define a namespaced alias symbol.
26530         * modules/spawn (Depends-on): Add c++defs.
26531         (Makefile.am): Update spawn.h rule.
26532
26533         signal: Avoid #define replacements in C++ mode.
26534         * lib/signal.in.h: Include c++defs.h.
26535         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
26536         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
26537         namespaced alias symbol.
26538         * modules/signal (Depends-on): Add c++defs.
26539         (Makefile.am): Update signal.h rule.
26540
26541         search: Avoid #define replacements in C++ mode.
26542         * lib/search.in.h: Include c++defs.h.
26543         (_gl_search_compar_fn, _gl_search_action_fn): New types.
26544         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
26545         symbol.
26546         * modules/search (Depends-on): Add c++defs.
26547         (Makefile.am): Update search.h rule.
26548
26549         math: Avoid #define replacements in C++ mode.
26550         * lib/math.in.h: Include c++defs.h.
26551         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
26552         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
26553         trunc, truncl): In C++, define a namespaced alias symbol.
26554         * modules/math (Depends-on): Add c++defs.
26555         (Makefile.am): Update math.h rule.
26556
26557         locale: Avoid #define replacements in C++ mode.
26558         * lib/locale.in.h: Include c++defs.h.
26559         (duplocale): In C++, define a namespaced alias symbol.
26560         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
26561         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
26562         * modules/locale (Depends-on): Add c++defs.
26563         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
26564
26565         langinfo: Avoid #define replacements in C++ mode.
26566         * lib/langinfo.in.h: Include c++defs.h.
26567         (nl_langinfo): In C++, define a namespaced alias symbol.
26568         * modules/langinfo (Depends-on): Add c++defs.
26569         (Makefile.am): Update langinfo.h rule.
26570
26571         iconv-h: Avoid #define replacements in C++ mode.
26572         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
26573         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
26574         symbol.
26575         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
26576         whenever iconv is present.
26577         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
26578         (Makefile.am): Update iconv.h rule.
26579
26580         glob: Avoid #define replacements in C++ mode.
26581         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
26582         (_gl_glob_errfunc_fn): New type.
26583         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
26584         symbol.
26585         * modules/glob (Depends-on): Add c++defs, warn-on-use.
26586         (Makefile.am): Update glob.h rule.
26587
26588         fcntl-h: Avoid #define replacements in C++ mode.
26589         * lib/fcntl.in.h: Include c++defs.h.
26590         (fcntl, open, openat): In C++, define a namespaced alias symbol.
26591         * modules/fcntl-h (Depends-on): Add c++defs.
26592         (Makefile.am): Update fcntl.h rule.
26593
26594         dirent: Avoid #define replacements in C++ mode.
26595         * lib/dirent.in.h: Include c++defs.h.
26596         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
26597         namespaced alias symbol.
26598         (dirfd): Update declaration.
26599         * modules/dirent (Depends-on): Add c++defs.
26600         (Makefile.am): Update dirent.h rule.
26601
26602         ctype: Make it usable in C++ code.
26603         * lib/ctype.in.h: Include c++defs.h.
26604         (isblank): Declare as extern "C".
26605         * modules/ctype (Depends-on): Add c++defs.
26606         (Makefile.am): Update ctype.h rule.
26607
26608         New module 'c++defs'.
26609         * modules/c++defs: New file.
26610         * build-aux/c++defs.h: New file.
26611         Reported by John W. Eaton <jwe@gnu.org>.
26612
26613 2010-03-07  Bruno Haible  <bruno@clisp.org>
26614
26615         logb: Provide missing declaration for Cygwin.
26616         * lib/math.in.h (logb): New declaration.
26617         * m4/logb.m4: New file.
26618         * modules/logb (Files): Add m4/logb.m4.
26619         (Depends-on): Add math.
26620         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
26621         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
26622         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
26623         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
26624         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
26625
26626 2010-03-07  Bruno Haible  <bruno@clisp.org>
26627
26628         Fix test-cond link error.
26629         * tests/test-cond.c: Include <stdio.h>.
26630
26631 2010-03-07  Bruno Haible  <bruno@clisp.org>
26632
26633         Fix test-dirent-safer link error.
26634         * modules/dirent-safer-tests (Makefile.am): Define
26635         test_dirent_safer_LDADD.
26636
26637 2010-03-07  Bruno Haible  <bruno@clisp.org>
26638
26639         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
26640         among default module list.
26641
26642 2010-03-07  Bruno Haible  <bruno@clisp.org>
26643
26644         Fix link error on platforms with GNU libiconv.
26645         * modules/unistr/u8-strcoll-tests (Makefile): Define
26646         test_u8_strcoll_LDADD.
26647         * modules/unistr/u16-strcoll-tests (Makefile): Define
26648         test_u16_strcoll_LDADD.
26649         * modules/unistr/u32-strcoll-tests (Makefile): Define
26650         test_u32_strcoll_LDADD.
26651
26652 2010-03-07  Bruno Haible  <bruno@clisp.org>
26653
26654         Use POSIX declarations for socket functions.
26655         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
26656         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
26657         rpl_sendto): Change declaration to match POSIX.
26658         * lib/connect.c (rpl_connect): Likewise.
26659         * lib/accept.c (rpl_accept): Likewise.
26660         * lib/bind.c (rpl_bind): Likewise.
26661         * lib/getpeername.c (rpl_getpeername): Likewise.
26662         * lib/getsockname.c (rpl_getsockname): Likewise.
26663         * lib/recv.c (rpl_recv): Likewise.
26664         * lib/send.c (rpl_send): Likewise.
26665         * lib/recvfrom.c (rpl_recvfrom): Likewise.
26666         * lib/sendto.c (rpl_sendto): Likewise.
26667
26668 2010-03-06  Bruno Haible  <bruno@clisp.org>
26669
26670         Clarify access, euidaccess, faccessat.
26671         * doc/posix-functions/faccessat.texi: Mention security problem under
26672         "Other problems", not "Portability problems".
26673         * doc/posix-functions/access.texi: Likewise. Mention a related security
26674         problem.
26675         * doc/glibc-functions/euidaccess.texi: Mention security problems.
26676         * lib/euidaccess.c: Add comments about platforms.
26677         * lib/unistd.in.h (access, euidaccess): Add warnings.
26678
26679 2010-03-07  Bruno Haible  <bruno@clisp.org>
26680
26681         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
26682         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
26683         (POSIX_SPAWN_SETSCHEDULER): Likewise.
26684         (POSIX_SPAWN_USEVFORK): Define in a way that works when
26685         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
26686         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
26687         declare when POSIX_SPAWN_SETSCHEDULER is zero.
26688         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
26689         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
26690         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
26691         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
26692         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
26693         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
26694         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
26695         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
26696         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
26697         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
26698         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
26699         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
26700         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
26701         Likewise.
26702         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
26703         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
26704         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
26705         Likewise.
26706         * tests/test-spawn.c (main): Make it work when
26707         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
26708
26709 2010-03-07  Bruno Haible  <bruno@clisp.org>
26710
26711         Fix incorrect Makefile.am generation in German locale.
26712         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
26713         Execute sed command with character range in C locale.
26714
26715 2010-03-06  Bruno Haible  <bruno@clisp.org>
26716
26717         Tests for module 'iconv-h'.
26718         * modules/iconv-h-tests: New file.
26719         * tests/test-iconv-h.c: New file.
26720
26721         New module 'iconv-h'.
26722         * modules/iconv-h: New file.
26723         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
26724         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
26725         (configure.ac): Remove gl_ICONV_H.
26726         (Makefile.am): Remove rule for iconv.h.
26727
26728 2010-03-06  Bruno Haible  <bruno@clisp.org>
26729
26730         More consistent naming of *.m4 files.
26731         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
26732         * modules/wctype (Files): Update.
26733
26734         More consistent naming of *.m4 files.
26735         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
26736         * modules/wchar (Files): Update.
26737
26738 2010-03-06  Jim Meyering  <meyering@redhat.com>
26739
26740         euidaccess: relax license to LGPLv2+
26741         * modules/euidaccess (License): Relax to LGPLv2+.
26742
26743 2010-03-06  Bruno Haible  <bruno@clisp.org>
26744
26745         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
26746         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
26747         (Makefile.am): Augment lib_SOURCES instead.
26748
26749 2010-03-04  Jim Meyering  <meyering@redhat.com>
26750
26751         utime: remove obsolete module
26752         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
26753         unnecessary for years, and has been marked as obsolete for 10 months.
26754         * modules/utime: Remove file.
26755         * lib/utime.c: Remove file.
26756         * m4/utime.m4: Remove file.
26757         * m4/utimes-null.m4: Remove file.
26758         * doc/posix-functions/utime.texi (utime): Remove reference to
26759         the module.  Move the sole "fixed by gnulib" item into the
26760         "problems not fixed by Gnulib" list.
26761         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
26762
26763 2010-03-05  Simon Josefsson  <simon@josefsson.org>
26764
26765         * modules/exit (License): Relax license to LGPLv2+.
26766         (Status): Mark as obsolete.
26767         * NEWS: Mention deprecated 'exit' module.
26768         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
26769         of now obsolete 'exit'.
26770
26771 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26772
26773         fts-lgpl: remove unused module
26774         * modules/fts-lgpl: Remove.
26775         * MODULES.html.sh (func_all_modules): Adjust.
26776         * check-module (find_included_lib_files): Adjust.
26777         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
26778
26779 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
26780
26781         copy-acl: enhance Solaris ACL error handling
26782         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
26783         * lib/set-mode-acl.c (qset_acl): Likewise.
26784
26785 2010-03-02  Bruno Haible  <bruno@clisp.org>
26786
26787         spawn: Don't override the system defined values on FreeBSD 8.
26788         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
26789         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
26790         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
26791         if HAVE_POSIX_SPAWN is 1.
26792         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
26793
26794 2010-03-01  Bruno Haible  <bruno@clisp.org>
26795
26796         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
26797         regarding Automake.
26798
26799 2010-02-25  Bruno Haible  <bruno@clisp.org>
26800
26801         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
26802         * gnulib-tool: Define 'echo' as a function only before the ksh alias
26803         setting, not afterwards.
26804         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
26805
26806 2010-02-24  Eric Blake  <eblake@redhat.com>
26807
26808         bootstrap, git-version-gen: use timestamp
26809         * build-aux/git-version-gen (scriptversion): Force UTC.
26810         * build-aux/bootstrap (scriptversion): New variable.
26811
26812         bootstrap: allow older git
26813         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
26814         older than 1.6.4.  Requested by the libvirt project.
26815
26816 2010-02-23  Eric Blake  <eblake@redhat.com>
26817
26818         warn-on-use: work with old autoconf
26819         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
26820         AS_VAR semantics of autoconf 2.60.
26821         Reported by Bruno Haible.
26822
26823         bootstrap: improve some comments
26824         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
26825         clarification comments.
26826
26827         gettimeofday: provide correct function
26828         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
26829         when replacement is declared, otherwise provide gettimeofday.
26830         Reported by Michael Goffioul.
26831
26832 2010-02-23  Jim Meyering  <meyering@redhat.com>
26833
26834         lib-ignore: relax license to "unlimited", not LGPLv2+
26835         * modules/lib-ignore (License): Relax to "unlimited".
26836
26837 2010-02-23  Jim Meyering  <meyering@redhat.com>
26838
26839         lib-ignore: relax license to LGPLv2+
26840         * modules/lib-ignore (License): Relax to LGPLv2+.
26841
26842 2010-02-22  Eric Blake  <eblake@redhat.com>
26843
26844         lseek: avoid bash 3.2 broken pipe bug
26845         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
26846         warning from bash 3.2.
26847         Reported by Ben Pfaff, with analysis from Bruno Haible.
26848
26849         bootstrap: support non-FSF copyright holder
26850         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
26851         bootstrap.conf override of COPYRIGHT_HOLDER.
26852         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
26853
26854         bootstrap: interoperate with gettext 0.14.1
26855         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
26856
26857         bootstrap: allow for alternate submodule location
26858         * build-aux/bootstrap (gnulib_path): New variable; use instead of
26859         hardcoding submodule location.
26860         (gnulib_mk): Allow direct use of Makefile.am.
26861
26862         bootstrap: use GNULIB_SRCDIR to reduce disk usage
26863         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
26864         rather than reconfiguring where the submodule points.
26865
26866         gettimeofday: restore support for platforms that lack function
26867         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
26868         replacement if function is missing.
26869         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
26870         * modules/sys_time (Makefile.am): Substitute it.
26871         * lib/sys_time.in.h (gettimeofday): Check it.
26872         Reported by Michael Goffioul.
26873
26874 2010-02-21  Bruno Haible  <bruno@clisp.org>
26875
26876         * lib/stdio.in.h (obstack_printf): Fix typo.
26877
26878 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
26879
26880         vc-list-files: use bzr ls's -R option
26881         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
26882         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
26883
26884 2010-02-21  Jim Meyering  <meyering@redhat.com>
26885
26886         init.sh: fix EXEEXT shims to work also for names like test-prog
26887         * tests/init.sh: Re-exec a better shell, when needed.
26888         If the current shell lacks support for posix $(...), an init.sh-using
26889         test will now try to find a shell that supports that.  If EXEEXT is
26890         nonempty, we also require support for hyphen-in-alias-name and shell
26891         substitutions like ${var#glob}.  Failure to find such a shell results
26892         in a skipped test.
26893
26894 2010-02-21  Bruno Haible  <bruno@clisp.org>
26895
26896         Really work around around "broken pipe" error message from bash 3.2.
26897         * gnulib-tool (func_reset_sigpipe): Remove function.
26898         (echo): In bash 3.2, define to a function that uses printf.
26899         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
26900
26901 2010-02-20  Bruno Haible  <bruno@clisp.org>
26902
26903         Restore support for automake 1.9.6 with autoconf 2.61.
26904         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
26905         Reported by James Youngman <jay@gnu.org>.
26906
26907 2010-02-20  Bruno Haible  <bruno@clisp.org>
26908
26909         Improve *printf warning condition.
26910         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
26911         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
26912         and the function is overridden due to SIGPIPE emulation.
26913
26914 2010-02-20  Bruno Haible  <bruno@clisp.org>
26915
26916         * lib/stdio.in.h: Tweak comments.
26917
26918 2010-02-19  Bruno Haible  <bruno@clisp.org>
26919
26920         Make it easier to find modules. New gnulib-tool option '--find'.
26921         * gnulib-tool: New option --find.
26922         (func_usage): Document it.
26923         (func_sanitize_modulelist): New function, extracted from
26924         func_all_modules.
26925         (func_all_modules): Invoke it.
26926         * doc/gnulib-tool.texi (Which modules?): New node.
26927
26928 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
26929
26930         * lib/sys_select.in.h: Provide select replacement even if
26931         sys/select.h exists on a system, for Interix.
26932
26933 2010-02-18  Jim Meyering  <meyering@redhat.com>
26934
26935         init.sh: don't use $(...) just yet
26936         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
26937         to accommodate e.g., Solaris' /bin/sh.
26938
26939 2010-02-17  Bruno Haible  <bruno@clisp.org>
26940
26941         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
26942         Reported by Ludovic Courtès <ludo@gnu.org>.
26943
26944 2010-02-16  Simon Josefsson  <simon@josefsson.org>
26945
26946         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
26947         linking with -lintl.
26948
26949 2010-02-17  Simon Josefsson  <simon@josefsson.org>
26950
26951         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
26952         if not provided by the system's netdb.h.  Reported by
26953         ludo@gnu.org (Ludovic Courtès).
26954
26955 2010-02-15  Jim Meyering  <meyering@redhat.com>
26956
26957         init.sh: improve portability and efficiency
26958         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
26959         "dummy" in a for loop.
26960         Use '!', not '^' to select the complement of a character set used
26961         in a "case" statement.
26962         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
26963         Suggestions from Eric Blake.
26964
26965         init.sh: automatically accommodate programs with the .exe suffix
26966         Automatically arrange for an invocation of "prog" to execute the
26967         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
26968         may use the simpler "prog", yet still work when built on a system
26969         that requires specifying the added suffix.
26970         Do this by constructing a function named "prog" that invokes
26971         "prog.exe" for each .exe file in selected directories.
26972         * tests/init.sh (find_exe_basenames_): New function.
26973         (create_exe_shim_functions_): New function.
26974         (path_prepend_): Use it.
26975
26976         maint.mk: mark syntax-check sc_*.m rules as .PHONY
26977         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
26978         "make -t syntax-check" doesn't create a ton of sc_*.m files.
26979
26980 2010-02-14  Jim Meyering  <meyering@redhat.com>
26981
26982         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
26983         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
26984         (sc_prohibit_hash_pjw_without_use): New rule.
26985
26986         maint.mk: allow the default upload destination dir to be overridden
26987         * top/maint.mk (upload_dest_dir_): Define with a default that
26988         preserves the status quo.
26989         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
26990         Reported by Peter Simons.
26991
26992         maint.mk: prohibit inclusion of "hash.h" without_use
26993         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
26994
26995 2010-02-10  Jim Meyering  <meyering@redhat.com>
26996
26997         maint.mk: prohibit inclusion of "ignore-value.h" without_use
26998         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
26999
27000 2010-02-09  Eric Blake  <ebb9@byu.net>
27001         and Bruno Haible  <bruno@clisp.org>
27002
27003         obstack-printf-posix: ensure declaration
27004         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
27005         extracted from gl_FUNC_OBSTACK_PRINTF.
27006         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
27007         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
27008         Likewise.
27009         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
27010         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
27011         0.
27012
27013 2010-02-08  Bruno Haible  <bruno@clisp.org>
27014
27015         gnulib-tool: Fix typo in 2010-02-07 commit.
27016         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
27017         Reported by Eric Blake.
27018
27019 2010-02-07  Bruno Haible  <bruno@clisp.org>
27020
27021         gnulib-tool: Fix up caching patches.
27022         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
27023         option --no-cache. Use associative arrays when supported by the shell.
27024         (sed_comments): New variable.
27025         (modcache): Renamed from do_cache.
27026         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
27027         abbreviate unnecessarily.
27028         (have_associative): New variable.
27029         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
27030         way also for ksh and zsh.
27031         (func_init_sed_convert_to_cache_statements): New function, extracted
27032         from func_cache_lookup_module. Add support for associative arrays.
27033         Don't set the c_MODULE_cached variable here. Ignore all lines before
27034         the first field header. Remove only the final newline, not all trailing
27035         newlines. Support empty fields correctly. Limit the use of 'eval' to
27036         assignments.
27037         (func_get_description, func_get_status, func_get_notice,
27038         func_get_applicability, func_get_filelist, func_get_dependencies,
27039         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
27040         func_get_automake_snippet, func_get_include_directive,
27041         func_get_link_directive, func_get_license, func_get_maintainer):
27042         Update documentation. List the unoptimized code first. Add support for
27043         associative arrays. Limit the use of 'eval' to assignments.
27044         (func_get_applicability): Undo stylistic pessimisations.
27045         (func_get_automake_snippet, func_get_include_directive): Reduce code
27046         duplication.
27047         (func_modules_transitive_closure, func_modules_add_dummy,
27048         func_modules_notice, func_modules_to_filelist, func_add_file,
27049         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
27050         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
27051         func_create_testdir, func_create_megatestdir): Update documentation.
27052
27053 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27054
27055         * gnulib-tool (func_cache_lookup_module): Store the module name
27056         belonging to the cache variable; error out if two different
27057         module names map to the same cache variable name.
27058
27059 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27060
27061         gnulib-tool: Make caching optional.
27062         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
27063         Update matching short versions of --no-changelog.
27064         (func_usage): Update.
27065         (sed_extract_cache_prog): Renamed from ...
27066         (sed_extract_prog): ... this; revert to old extraction script.
27067         (func_get_description, func_get_status)
27068         (func_get_notice, func_get_applicability, func_get_filelist)
27069         (func_get_dependencies, func_get_autoconf_early_snippet)
27070         (func_get_autoconf_snippet, func_get_automake_snippet)
27071         (func_get_include_directive, func_get_link_directive)
27072         (func_get_license, func_get_maintainer): If $do_cache is false,
27073         use old, non-caching extraction scripts.
27074         Suggestion by Bruno Haible.
27075
27076 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27077
27078         gnulib-tool: cache module metainformation.
27079         * gnulib-tool (sed_extract_prog): Match newline before each
27080         header, and rewrite header to a shell variable suffix.
27081         (func_cache_var, func_cache_lookup_module): New functions,
27082         to turn a module name into a cache variable prefix, and to
27083         look up and cache module metainformation.
27084         (func_get_description, func_get_status)
27085         (func_get_notice, func_get_applicability, func_get_filelist)
27086         (func_get_dependencies, func_get_autoconf_early_snippet)
27087         (func_get_autoconf_snippet, func_get_automake_snippet)
27088         (func_get_include_directive, func_get_link_directive)
27089         (func_get_license, func_get_maintainer): Use
27090         func_cache_lookup_module.
27091
27092 2010-02-07  Bruno Haible  <bruno@clisp.org>
27093
27094         fnctl: Fix missing dependency.
27095         * modules/fcntl (Depends-on): Add getdtablesize.
27096         Reported by John W. Eaton <jwe@gnu.org>.
27097
27098 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
27099
27100         Argp: fix recognition of short alias options.
27101
27102         * lib/argp-parse.c (convert_options): Fix improper use of
27103         `|' between character values.
27104         * tests/test-argp.c (group1_option): New alias option
27105         --read (-r).
27106         (group1_parser): Special handling for 'r'.
27107         (test15): New test case.
27108         (test_fun): Add test15.
27109         * tests/test-argp-2.sh: Update expected --help and --usage
27110         outputs.
27111
27112 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
27113
27114         * tests/test-argp.c: Fix indentation.
27115
27116 2010-02-04  Eric Blake  <ebb9@byu.net>
27117
27118         gettimeofday: expose type of second argument
27119         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
27120         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
27121         * tests/test-gettimeofday.c: Use it to silence warning.
27122         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
27123         the issue.
27124
27125 2010-02-03  Jim Meyering  <meyering@redhat.com>
27126
27127         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
27128         * lib/regcomp.c (TYPE_SIGNED): Define.
27129         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
27130
27131         regcomp.c: avoid a new -Wshadow warning
27132         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
27133
27134 2010-02-01  Jim Meyering  <meyering@redhat.com>
27135
27136         removing useless parentheses in cpp #define directives
27137         For motivation, see commit c0221df4, "define STREQ(a,b)
27138         consistently, removing useless parentheses"
27139         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
27140         * lib/mountlist.c (MNT_IGNORE): Likewise.
27141         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
27142
27143 2010-02-01  Eric Blake  <ebb9@byu.net>
27144
27145         sys_time: use link-warning
27146         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
27147         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
27148         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
27149         * modules/sys_time (Depends-on): Add warn-on-use.
27150         (Makefile.am): Always build replacement.
27151         (configure.ac): Update substitutions.
27152         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
27153         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
27154         bother with SYS_TIME_H.
27155         * modules/gettimeofday (configure.ac): Declare indicator.
27156         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
27157         in use.
27158
27159         closein-tests: silence compiler warning
27160         * tests/test-closein.c (main): Ignore fread result.
27161         * modules/closein-tests (Depends-on): Add ignore-value.
27162
27163         tests: silence warning about system return
27164         * tests/test-areadlink-with-size.c (main): Ignore system result.
27165         * tests/test-areadlink.c (main): Likewise.
27166         * tests/test-areadlinkat-with-size.c (main): Likewise.
27167         * tests/test-areadlinkat.c (main): Likewise.
27168         * tests/test-canonicalize-lgpl.c (main): Likewise.
27169         * tests/test-canonicalize.c (main): Likewise.
27170         * tests/test-chown.c (main): Likewise.
27171         * tests/test-fchownat.c (main): Likewise.
27172         * tests/test-fdutimensat.c (main): Likewise.
27173         * tests/test-fstatat.c (main): Likewise.
27174         * tests/test-futimens.c (main): Likewise.
27175         * tests/test-lchown.c (main): Likewise.
27176         * tests/test-link.c (main): Likewise.
27177         * tests/test-linkat.c (main): Likewise.
27178         * tests/test-lstat.c (main): Likewise.
27179         * tests/test-mkdir.c (main): Likewise.
27180         * tests/test-mkdirat.c (main): Likewise.
27181         * tests/test-mkfifo.c (main): Likewise.
27182         * tests/test-mkfifoat.c (main): Likewise.
27183         * tests/test-mknod.c (main): Likewise.
27184         * tests/test-readlink.c (main): Likewise.
27185         * tests/test-remove.c (main): Likewise.
27186         * tests/test-rename.c (main): Likewise.
27187         * tests/test-renameat.c (main): Likewise.
27188         * tests/test-rmdir.c (main): Likewise.
27189         * tests/test-symlink.c (main): Likewise.
27190         * tests/test-symlinkat.c (main): Likewise.
27191         * tests/test-unlink.c (main): Likewise.
27192         * tests/test-unlinkat.c (main): Likewise.
27193         * tests/test-utimens.c (main): Likewise.
27194         * tests/test-utimensat.c (main): Likewise.
27195         * modules/areadlink-tests (Depends-on): Add ignore-value.
27196         * modules/areadlink-with-size-tests (Depends-on): Likewise.
27197         * modules/areadlinkat-tests (Depends-on): Likewise.
27198         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
27199         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
27200         * modules/canonicalize-tests (Depends-on): Likewise.
27201         * modules/chown-tests (Depends-on): Likewise.
27202         * modules/fdutimensat-tests (Depends-on): Likewise.
27203         * modules/futimens-tests (Depends-on): Likewise.
27204         * modules/lchown-tests (Depends-on): Likewise.
27205         * modules/link-tests (Depends-on): Likewise.
27206         * modules/linkat-tests (Depends-on): Likewise.
27207         * modules/lstat-tests (Depends-on): Likewise.
27208         * modules/mkdir-tests (Depends-on): Likewise.
27209         * modules/mkfifo-tests (Depends-on): Likewise.
27210         * modules/mkfifoat-tests (Depends-on): Likewise.
27211         * modules/mknod-tests (Depends-on): Likewise.
27212         * modules/openat-tests (Depends-on): Likewise.
27213         * modules/readlink-tests (Depends-on): Likewise.
27214         * modules/remove-tests (Depends-on): Likewise.
27215         * modules/rename-tests (Depends-on): Likewise.
27216         * modules/renameat-tests (Depends-on): Likewise.
27217         * modules/rmdir-tests (Depends-on): Likewise.
27218         * modules/symlink-tests (Depends-on): Likewise.
27219         * modules/symlinkat-tests (Depends-on): Likewise.
27220         * modules/unlink-tests (Depends-on): Likewise.
27221         * modules/utimens-tests (Depends-on): Likewise.
27222         * modules/utimensat-tests (Depends-on): Likewise.
27223
27224 2010-01-31  Bruno Haible  <bruno@clisp.org>
27225
27226         Perform the same test for many <math.h> functions.
27227         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
27228         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
27229         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
27230         of gl_MATHFUNC.
27231         * modules/acos (configure.ac): Likewise.
27232         * modules/asin (configure.ac): Likewise.
27233         * modules/atan (configure.ac): Likewise.
27234         * modules/atan2 (configure.ac): Likewise.
27235         * modules/cbrt (configure.ac): Likewise.
27236         * modules/copysign (configure.ac): Likewise.
27237         * modules/cos (configure.ac): Likewise.
27238         * modules/cosh (configure.ac): Likewise.
27239         * modules/erf (configure.ac): Likewise.
27240         * modules/erfc (configure.ac): Likewise.
27241         * modules/exp (configure.ac): Likewise.
27242         * modules/fmod (configure.ac): Likewise.
27243         * modules/hypot (configure.ac): Likewise.
27244         * modules/j0 (configure.ac): Likewise.
27245         * modules/j1 (configure.ac): Likewise.
27246         * modules/jn (configure.ac): Likewise.
27247         * modules/lgamma (configure.ac): Likewise.
27248         * modules/log (configure.ac): Likewise.
27249         * modules/log10 (configure.ac): Likewise.
27250         * modules/log1p (configure.ac): Likewise.
27251         * modules/pow (configure.ac): Likewise.
27252         * modules/remainder (configure.ac): Likewise.
27253         * modules/sin (configure.ac): Likewise.
27254         * modules/sinh (configure.ac): Likewise.
27255         * modules/tan (configure.ac): Likewise.
27256         * modules/tanh (configure.ac): Likewise.
27257         * modules/y0 (configure.ac): Likewise.
27258         * modules/y1 (configure.ac): Likewise.
27259         * modules/yn (configure.ac): Likewise.
27260         Suggested by Paolo Bonzini.
27261
27262 2010-01-31  Bruno Haible  <bruno@clisp.org>
27263
27264         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
27265
27266 2010-01-31  Bruno Haible  <bruno@clisp.org>
27267
27268         Work around getdelim() bug on FreeBSD 8.0.
27269         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
27270         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
27271         not work.
27272         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
27273         is 1.
27274         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
27275         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
27276         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
27277         a non-zero size.
27278         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
27279
27280 2010-01-31  Bruno Haible  <bruno@clisp.org>
27281
27282         Work around getline() bug on FreeBSD 8.0.
27283         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
27284         and a non-zero size.
27285         * tests/test-getline.c (main): Likewise.
27286         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
27287         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
27288
27289 2010-01-28  Eric Blake  <ebb9@byu.net>
27290
27291         regex: fix build failure
27292         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
27293         platforms.
27294
27295 2010-01-28  Jim Meyering  <meyering@redhat.com>
27296
27297         regex: do not ignore memory allocation failure
27298         * lib/regex_internal.c (create_cd_newstate): Detect
27299         re_node_set_init_copy failure.   Extracted from glibc commit
27300         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
27301
27302         regex: sync more white-space changes from libc
27303         * lib/regex_internal.c: White-space only changes.
27304         * lib/regexec.c: Likewise.
27305
27306         regex: add many uses of __attribute_warn_unused_result__
27307         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
27308         * lib/regexec.c: Likewise.
27309         Extracted from a messy glibc commit.
27310
27311         regcomp.c: spelling and merge-artifact from glibc
27312         * lib/regcomp.c: Merge remainder of glibc's
27313         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
27314
27315         regcomp.c: sync white-space changes from glibc
27316         * lib/regcomp.c: Merge to accommodate white space
27317         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
27318
27319         regcomp.c: do not ignore internal return values
27320         * lib/regcomp.c: Do not ignore internal return values.
27321         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
27322         but without its white-space changes and spelling fixes.
27323
27324         regex_internal.h: define __attribute_warn_unused_result__
27325         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
27326
27327         maint: add a syntax-check rule to check for vulnerable Makefile.in
27328         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
27329
27330 2010-01-27  Jim Meyering  <meyering@redhat.com>
27331
27332         ncftpput-ftp: clean up spaces
27333         * build-aux/ncftpput-ftp: Make Copyright line consistent.
27334         Remove trailing blanks.
27335
27336 2010-01-27  Simon Josefsson  <simon@josefsson.org>
27337
27338         * build-aux/git-version-gen: Fix copyright statement.
27339         * build-aux/gnupload: Likewise.
27340         * tests/test-arcfour.c: Likewise.
27341         * tests/test-arctwo.c: Likewise.
27342         * tests/test-count-one-bits.c: Likewise.
27343         * tests/test-crc.c: Likewise.
27344         * tests/test-des.c: Likewise.
27345         * tests/test-gc-arcfour.c: Likewise.
27346         * tests/test-gc-arctwo.c: Likewise.
27347         * tests/test-gc-des.c: Likewise.
27348         * tests/test-gc-hmac-md5.c: Likewise.
27349         * tests/test-gc-hmac-sha1.c: Likewise.
27350         * tests/test-gc-md2.c: Likewise.
27351         * tests/test-gc-md4.c: Likewise.
27352         * tests/test-gc-md5.c: Likewise.
27353         * tests/test-gc-pbkdf2-sha1.c: Likewise.
27354         * tests/test-gc-rijndael.c: Likewise.
27355         * tests/test-gc-sha1.c: Likewise.
27356         * tests/test-gc.c: Likewise.
27357         * tests/test-gethostname.c: Likewise.
27358         * tests/test-gettimeofday.c: Likewise.
27359         * tests/test-hash.c: Likewise.
27360         * tests/test-hmac-md5.c: Likewise.
27361         * tests/test-hmac-sha1.c: Likewise.
27362         * tests/test-md2.c: Likewise.
27363         * tests/test-md4.c: Likewise.
27364         * tests/test-md5.c: Likewise.
27365         * tests/test-memchr.c: Likewise.
27366         * tests/test-memchr2.c: Likewise.
27367         * tests/test-memcmp.c: Likewise.
27368         * tests/test-memmem.c: Likewise.
27369         * tests/test-memrchr.c: Likewise.
27370         * tests/test-rawmemchr.c: Likewise.
27371         * tests/test-read-file.c: Likewise.
27372         * tests/test-rijndael.c: Likewise.
27373         * tests/test-sockets.c: Likewise.
27374         * tests/test-strchrnul.c: Likewise.
27375         * tests/test-strstr.c: Likewise.
27376         * tests/test-strtod.c: Likewise.
27377         * build-aux/ncftpput-ftp: Likewise.
27378
27379 2010-01-26  Eric Blake  <ebb9@byu.net>
27380
27381         ignore-value: update recommended header name
27382         * modules/ignore-value (Include): Only use <> for headers that
27383         exist in glibc.
27384
27385 2010-01-26  Jim Meyering  <meyering@redhat.com>
27386
27387         test-userspec.c: avoid compiler warnings
27388         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
27389         and "initialization discards qualifiers..." warnings.
27390         Put the first "uid" in its own scope, and make char* members "const".
27391
27392 2010-01-25  Bruno Haible  <bruno@clisp.org>
27393
27394         gnulib-tool: Make warning diagnostics consistent.
27395         * gnulib-tool (func_warning): New function.
27396         Use it everywhere where gnulib-tool produces output to stderr and it is
27397         not a fatal error.
27398
27399 2010-01-25  Bruno Haible  <bruno@clisp.org>
27400
27401         Fix test dependencies.
27402         * modules/xstrtol-tests (Depends-on): Add inttypes.
27403         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
27404
27405 2010-01-25 Pádraig Brady <P@draigBrady.com>
27406
27407         syntax-check: detect incorrect boolean macro values in config.h
27408         * modules/maintainer-makefile (configure.ac): Parameterize the location
27409         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
27410         The logic is from Eric Blake and the location indicated by Jim Meyering.
27411         Note the more natural CONFIG_HEADER name is prohibited by automake
27412         for backwards compatibility reasons.
27413         * top/maint.mk (sc_Wundef_boolean): New rule.
27414
27415 2010-01-25  Jim Meyering  <meyering@redhat.com>
27416
27417         bootstrap: detect MacOS 10.6's shasum, too
27418         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
27419         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
27420
27421 2010-01-23  Jim Meyering  <meyering@redhat.com>
27422
27423         xstrtoll: new module
27424         * modules/xstrtoll: New file.
27425         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
27426         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
27427         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
27428         ./configure fails if you use this module and lack "long long".
27429         * modules/xstrtoll-tests: New module.
27430         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
27431         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
27432         new init.sh-based test framework.
27433
27434 2010-01-24  Bruno Haible  <bruno@clisp.org>
27435
27436         Tests for module 'yn'.
27437         * modules/yn-tests: New file.
27438         * tests/test-yn.c: New file.
27439
27440         Tests for module 'y1'.
27441         * modules/y1-tests: New file.
27442         * tests/test-y1.c: New file.
27443
27444         Tests for module 'y0'.
27445         * modules/y0-tests: New file.
27446         * tests/test-y0.c: New file.
27447
27448         Tests for module 'tanh'.
27449         * modules/tanh-tests: New file.
27450         * tests/test-tanh.c: New file.
27451
27452         Tests for module 'tan'.
27453         * modules/tan-tests: New file.
27454         * tests/test-tan.c: New file.
27455
27456         Tests for module 'sqrt'.
27457         * modules/sqrt-tests: New file.
27458         * tests/test-sqrt.c: New file.
27459
27460         Tests for module 'sinh'.
27461         * modules/sinh-tests: New file.
27462         * tests/test-sinh.c: New file.
27463
27464         Tests for module 'sin'.
27465         * modules/sin-tests: New file.
27466         * tests/test-sin.c: New file.
27467
27468         Tests for module 'rint'.
27469         * modules/rint-tests: New file.
27470         * tests/test-rint.c: New file.
27471
27472         Tests for module 'remainder'.
27473         * modules/remainder-tests: New file.
27474         * tests/test-remainder.c: New file.
27475
27476         Tests for module 'pow'.
27477         * modules/pow-tests: New file.
27478         * tests/test-pow.c: New file.
27479
27480         Tests for module 'nextafter'.
27481         * modules/nextafter-tests: New file.
27482         * tests/test-nextafter.c: New file.
27483
27484         Tests for module 'modf'.
27485         * modules/modf-tests: New file.
27486         * tests/test-modf.c: New file.
27487
27488         Tests for module 'logb'.
27489         * modules/logb-tests: New file.
27490         * tests/test-logb.c: New file.
27491
27492         Tests for module 'log1p'.
27493         * modules/log1p-tests: New file.
27494         * tests/test-log1p.c: New file.
27495
27496         Tests for module 'log10'.
27497         * modules/log10-tests: New file.
27498         * tests/test-log10.c: New file.
27499
27500         Tests for module 'log'.
27501         * modules/log-tests: New file.
27502         * tests/test-log.c: New file.
27503
27504         Tests for module 'lgamma'.
27505         * modules/lgamma-tests: New file.
27506         * tests/test-lgamma.c: New file.
27507
27508         Tests for module 'ldexp'.
27509         * modules/ldexp-tests: New file.
27510         * tests/test-ldexp.c: New file.
27511
27512         Tests for module 'jn'.
27513         * modules/jn-tests: New file.
27514         * tests/test-jn.c: New file.
27515
27516         Tests for module 'j1'.
27517         * modules/j1-tests: New file.
27518         * tests/test-j1.c: New file.
27519
27520         Tests for module 'j0'.
27521         * modules/j0-tests: New file.
27522         * tests/test-j0.c: New file.
27523
27524         Tests for module 'hypot'.
27525         * modules/hypot-tests: New file.
27526         * tests/test-hypot.c: New file.
27527
27528         Tests for module 'fmod'.
27529         * modules/fmod-tests: New file.
27530         * tests/test-fmod.c: New file.
27531
27532         Tests for module 'fabs'.
27533         * modules/fabs-tests: New file.
27534         * tests/test-fabs.c: New file.
27535
27536         Tests for module 'exp'.
27537         * modules/exp-tests: New file.
27538         * tests/test-exp.c: New file.
27539
27540         Tests for module 'erfc'.
27541         * modules/erfc-tests: New file.
27542         * tests/test-erfc.c: New file.
27543
27544         Tests for module 'erf'.
27545         * modules/erf-tests: New file.
27546         * tests/test-erf.c: New file.
27547
27548         Tests for module 'cosh'.
27549         * modules/cosh-tests: New file.
27550         * tests/test-cosh.c: New file.
27551
27552         Tests for module 'cos'.
27553         * modules/cos-tests: New file.
27554         * tests/test-cos.c: New file.
27555
27556         Tests for module 'copysign'.
27557         * modules/copysign-tests: New file.
27558         * tests/test-copysign.c: New file.
27559
27560         Tests for module 'cbrt'.
27561         * modules/cbrt-tests: New file.
27562         * tests/test-cbrt.c: New file.
27563
27564         Tests for module 'atan2'.
27565         * modules/atan2-tests: New file.
27566         * tests/test-atan2.c: New file.
27567
27568         Tests for module 'atan'.
27569         * modules/atan-tests: New file.
27570         * tests/test-atan.c: New file.
27571
27572         Tests for module 'asin'.
27573         * modules/asin-tests: New file.
27574         * tests/test-asin.c: New file.
27575
27576         Tests for module 'acos'.
27577         * modules/acos-tests: New file.
27578         * tests/test-acos.c: New file.
27579
27580 2010-01-24  Bruno Haible  <bruno@clisp.org>
27581
27582         Fix tests for common <math.h> functions.
27583         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
27584         code snippet that references the function pointer, rather than merely
27585         calling the function. Substitute the FUNC_LIBM variable.
27586         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
27587         * modules/acos (configure.ac): Likewise.
27588         * modules/asin (configure.ac): Likewise.
27589         * modules/atan (configure.ac): Likewise.
27590         * modules/atan2 (configure.ac): Likewise.
27591         * modules/cbrt (configure.ac): Likewise.
27592         * modules/copysign (configure.ac): Likewise.
27593         * modules/cos (configure.ac): Likewise.
27594         * modules/cosh (configure.ac): Likewise.
27595         * modules/erf (configure.ac): Likewise.
27596         * modules/erfc (configure.ac): Likewise.
27597         * modules/exp (configure.ac): Likewise.
27598         * modules/fabs (configure.ac): Likewise.
27599         * modules/fmod (configure.ac): Likewise.
27600         * modules/hypot (configure.ac): Likewise.
27601         * modules/j0 (configure.ac): Likewise.
27602         * modules/j1 (configure.ac): Likewise.
27603         * modules/jn (configure.ac): Likewise.
27604         * modules/ldexp (configure.ac): Likewise.
27605         * modules/lgamma (configure.ac): Likewise.
27606         * modules/log (configure.ac): Likewise.
27607         * modules/log10 (configure.ac): Likewise.
27608         * modules/log1p (configure.ac): Likewise.
27609         * modules/logb (configure.ac): Likewise.
27610         * modules/modf (configure.ac): Likewise.
27611         * modules/nextafter (configure.ac): Likewise.
27612         * modules/pow (configure.ac): Likewise.
27613         * modules/remainder (configure.ac): Likewise.
27614         * modules/rint (configure.ac): Likewise.
27615         * modules/sin (configure.ac): Likewise.
27616         * modules/sinh (configure.ac): Likewise.
27617         * modules/tan (configure.ac): Likewise.
27618         * modules/tanh (configure.ac): Likewise.
27619         * modules/y0 (configure.ac): Likewise.
27620         * modules/y1 (configure.ac): Likewise.
27621         * modules/yn (configure.ac): Likewise.
27622
27623 2010-01-24  Bruno Haible  <bruno@clisp.org>
27624
27625         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
27626         * tests/test-acosl.c (x): New variable.
27627         (main): Store argument in x and fetch it from x.
27628         * tests/test-asinl.c (x): New variable.
27629         (main): Store argument in x and fetch it from x.
27630         * tests/test-atanl.c (x): New variable.
27631         (main): Store argument in x and fetch it from x.
27632         * tests/test-cosl.c (x): New variable.
27633         (main): Store argument in x and fetch it from x.
27634         * tests/test-expl.c (x): New variable.
27635         (main): Store argument in x and fetch it from x.
27636         * tests/test-logl.c (x): New variable.
27637         (main): Store argument in x and fetch it from x.
27638         * tests/test-sinl.c (x): New variable.
27639         (main): Store argument in x and fetch it from x.
27640         * tests/test-sqrtl.c (x): New variable.
27641         (main): Store argument in x and fetch it from x.
27642         * tests/test-tanl.c (x): New variable.
27643         (main): Store argument in x and fetch it from x.
27644
27645 2010-01-24  Bruno Haible  <bruno@clisp.org>
27646
27647         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
27648         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
27649         assignments to the initial TESTS_ENVIRONMENT.
27650         * doc/gnulib.texi (Unit test modules): Document it.
27651         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
27652         TESTS_ENVIRONMENT.
27653         * modules/btowc-tests (Makefile.am): Likewise.
27654         * modules/c-stack-tests (Makefile.am): Likewise.
27655         * modules/c-strcase-tests (Makefile.am): Likewise.
27656         * modules/copy-file-tests (Makefile.am): Likewise.
27657         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
27658         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
27659         * modules/mbrtowc-tests (Makefile.am): Likewise.
27660         * modules/mbscasecmp-tests (Makefile.am): Likewise.
27661         * modules/mbscasestr-tests (Makefile.am): Likewise.
27662         * modules/mbschr-tests (Makefile.am): Likewise.
27663         * modules/mbscspn-tests (Makefile.am): Likewise.
27664         * modules/mbsinit-tests (Makefile.am): Likewise.
27665         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
27666         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
27667         * modules/mbspbrk-tests (Makefile.am): Likewise.
27668         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
27669         * modules/mbsrchr-tests (Makefile.am): Likewise.
27670         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
27671         * modules/mbsspn-tests (Makefile.am): Likewise.
27672         * modules/mbsstr-tests (Makefile.am): Likewise.
27673         * modules/nl_langinfo-tests (Makefile.am): Likewise.
27674         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
27675         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
27676         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
27677         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
27678         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
27679         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
27680         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
27681         * modules/wcrtomb-tests (Makefile.am): Likewise.
27682         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
27683         * modules/wcsrtombs-tests (Makefile.am): Likewise.
27684         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
27685         assignments from TESTS_ENVIRONMENT.
27686         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
27687         augmentation.
27688         * modules/argp-version-etc-tests (Makefile.am): Likewise.
27689         * modules/atexit-tests (Makefile.am): Likewise.
27690         * modules/binary-io-tests (Makefile.am): Likewise.
27691         * modules/closein-tests (Makefile.am): Likewise.
27692         * modules/dprintf-posix-tests (Makefile.am): Likewise.
27693         * modules/exclude-tests (Makefile.am): Likewise.
27694         * modules/fflush-tests (Makefile.am): Likewise.
27695         * modules/fpending-tests (Makefile.am): Likewise.
27696         * modules/fprintf-posix-tests (Makefile.am): Likewise.
27697         * modules/freadahead-tests (Makefile.am): Likewise.
27698         * modules/freadptr-tests (Makefile.am): Likewise.
27699         * modules/freadseek-tests (Makefile.am): Likewise.
27700         * modules/fseek-tests (Makefile.am): Likewise.
27701         * modules/fseeko-tests (Makefile.am): Likewise.
27702         * modules/ftell-tests (Makefile.am): Likewise.
27703         * modules/ftello-tests (Makefile.am): Likewise.
27704         * modules/idpriv-drop-tests (Makefile.am): Likewise.
27705         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
27706         * modules/lseek-tests (Makefile.am): Likewise.
27707         * modules/parse-duration-tests (Makefile.am): Likewise.
27708         * modules/perror-tests (Makefile.am): Likewise.
27709         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
27710         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
27711         * modules/pipe-tests (Makefile.am): Likewise.
27712         * modules/pread-tests (Makefile.am): Likewise.
27713         * modules/printf-posix-tests (Makefile.am): Likewise.
27714         * modules/select-tests (Makefile.am): Likewise.
27715         * modules/sigpipe-tests (Makefile.am): Likewise.
27716         * modules/tsearch-tests (Makefile.am): Likewise.
27717         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
27718         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
27719         * modules/uniname/uniname-tests (Makefile.am): Likewise.
27720         * modules/uniwidth/width-tests (Makefile.am): Likewise.
27721         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
27722         * modules/version-etc-tests (Makefile.am): Likewise.
27723         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
27724         * modules/vprintf-posix-tests (Makefile.am): Likewise.
27725         * modules/xalloc-die-tests (Makefile.am): Likewise.
27726         * modules/xprintf-posix-tests (Makefile.am): Likewise.
27727         * modules/xstrtoimax-tests (Makefile.am): Likewise.
27728         * modules/xstrtol-tests (Makefile.am): Likewise.
27729         * modules/xstrtoumax-tests (Makefile.am): Likewise.
27730         * modules/yesno-tests (Makefile.am): Likewise.
27731         Suggested by Jim Meyering.
27732
27733 2010-01-24  Bruno Haible  <bruno@clisp.org>
27734
27735         More documentation.
27736         * doc/gnulib.texi (Writing modules): New chapter.
27737         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
27738         the new chapter.
27739
27740 2010-01-24  Jim Meyering  <meyering@redhat.com>
27741
27742         maint.mk: do not prepend "./" after filtering
27743         * top/maint.mk (_prepend_srcdir_prefix): New variable
27744         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
27745         "./" when $(srcdir) is ".".
27746
27747         define STREQ(a,b) consistently, removing useless parentheses
27748         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
27749         since the only risk is that "a" or "b" contains an unparenthesized
27750         comma, but if either did that, STREQ would have 3 or more arguments.
27751         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
27752         * lib/fts.c (STREQ): Remove unnecessary parentheses.
27753         * lib/hash-triple.c (STREQ): Likewise.
27754         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
27755         * lib/getugroups.c (STREQ): Likewise.
27756
27757 2010-01-23  Jim Meyering  <meyering@redhat.com>
27758
27759         maint.mk: fix syntax-check in a non-srcdir build directory
27760         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
27761         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
27762
27763 2010-01-22  Jim Meyering  <meyering@redhat.com>
27764
27765         userspec: add unit tests
27766         * tests/test-userspec.c: New file.
27767         * modules/userspec-tests: Likewise.
27768
27769 2010-01-21  Jim Meyering  <meyering@redhat.com>
27770
27771         maint.mk: handle source file names containing "." robustly
27772         * top/maint.mk (_dot_escaped_srcdir): Define.
27773         (VC_LIST): Use it in LHS of sed substitution.
27774
27775 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
27776
27777         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
27778         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
27779         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
27780         from a non-srcdir build.
27781
27782 2010-01-20  Eric Blake  <ebb9@byu.net>
27783
27784         warn-on-use: use instead of link-warning
27785         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
27786         * modules/unistd (Depends-on, Makefile.am): Likewise.
27787         * modules/arpa_inet (Depends-on): Replace link-warning with
27788         warn-on-use.
27789         (Makefile.am): Update rules accordingly.
27790         * modules/ctype (Depends-on, Makefile.am): Likewise.
27791         * modules/dirent (Depends-on, Makefile.am): Likewise.
27792         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
27793         * modules/inttypes (Depends-on, Makefile.am): Likewise.
27794         * modules/langinfo (Depends-on, Makefile.am): Likewise.
27795         * modules/locale (Depends-on, Makefile.am): Likewise.
27796         * modules/math (Depends-on, Makefile.am): Likewise.
27797         * modules/search (Depends-on, Makefile.am): Likewise.
27798         * modules/signal (Depends-on, Makefile.am): Likewise.
27799         * modules/spawn (Depends-on, Makefile.am): Likewise.
27800         * modules/stdlib (Depends-on, Makefile.am): Likewise.
27801         * modules/string (Depends-on, Makefile.am): Likewise.
27802         * modules/strings (Depends-on, Makefile.am): Likewise.
27803         * modules/sys_file (Depends-on, Makefile.am): Likewise.
27804         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
27805         * modules/sys_select (Depends-on, Makefile.am): Likewise.
27806         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
27807         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
27808         * modules/sys_times (Depends-on, Makefile.am): Likewise.
27809         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
27810         * modules/wchar (Depends-on, Makefile.am): Likewise.
27811         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
27812         should be poisoned.
27813         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
27814         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
27815         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
27816         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
27817         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
27818         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
27819         * m4/math_h.m4 (gl_MATH_H): Likewise.
27820         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
27821         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
27822         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
27823         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
27824         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
27825         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
27826         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
27827         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
27828         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
27829         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
27830         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
27831         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
27832         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
27833         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
27834         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
27835         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
27836         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
27837         GL_LINK_WARNING.
27838         * lib/ctype.in.h: Likewise.
27839         * lib/dirent.in.h: Likewise.
27840         * lib/fcntl.in.h: Likewise.
27841         * lib/inttypes.in.h: Likewise.
27842         * lib/langinfo.in.h: Likewise.
27843         * lib/locale.in.h: Likewise.
27844         * lib/math.in.h: Likewise.
27845         * lib/search.in.h: Likewise.
27846         * lib/signal.in.h: Likewise.
27847         * lib/spawn.in.h: Likewise.
27848         * lib/stdio.in.h: Likewise.
27849         * lib/stdlib.in.h: Likewise.
27850         * lib/string.in.h: Likewise.
27851         * lib/strings.in.h: Likewise.
27852         * lib/sys_file.in.h: Likewise.
27853         * lib/sys_ioctl.in.h: Likewise.
27854         * lib/sys_select.in.h: Likewise.
27855         * lib/sys_socket.in.h: Likewise.
27856         * lib/sys_stat.in.h: Likewise.
27857         * lib/sys_times.in.h: Likewise.
27858         * lib/sys_utsname.in.h: Likewise.
27859         * lib/unistd.in.h: Likewise.
27860         * lib/wchar.in.h: Likewise.
27861
27862 2010-01-20  Bruno Haible  <bruno@clisp.org>
27863
27864         Avoid duplicate -lm.
27865         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
27866         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
27867         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
27868         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
27869         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
27870         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
27871         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
27872         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
27873         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
27874         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
27875         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
27876         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
27877         Reported by Paolo Bonzini.
27878
27879 2010-01-19  Bruno Haible  <bruno@clisp.org>
27880
27881         langinfo, nl_langinfo: Relicense under LGPLv2+.
27882         * modules/langinfo (License): Change to LGPLv2+.
27883         * modules/nl_langinfo (License): Likewise.
27884         Patch by David Lutterkort <lutter@redhat.com>.
27885
27886 2010-01-19  Bruno Haible  <bruno@clisp.org>
27887
27888         Avoid compilation error with cc on OSF/1 5.1.
27889         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
27890         statement, not before.
27891         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27892
27893 2010-01-18  Bruno Haible  <bruno@clisp.org>
27894
27895         Avoid a link error due to the __printf__ symbol.
27896         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
27897         and 2.6.x.
27898         (__format__, __printf__): Remove definitions.
27899         * lib/argp-fmtstream.h: Likewise.
27900         * lib/argp.h: Likewise.
27901         * lib/error.h: Likewise.
27902         * lib/vasnprintf.h: Likewise.
27903         * lib/xprintf.h: Likewise.
27904         * lib/xvasprintf.h: Likewise.
27905         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27906
27907 2010-01-18  Bruno Haible  <bruno@clisp.org>
27908
27909         Tests for module 'tanl'.
27910         * modules/tanl-tests: New file.
27911         * tests/test-tanl.c: New file.
27912
27913         Tests for module 'sqrtl'.
27914         * modules/sqrtl-tests: New file.
27915         * tests/test-sqrtl.c: New file.
27916
27917         Tests for module 'sinl'.
27918         * modules/sinl-tests: New file.
27919         * tests/test-sinl.c: New file.
27920
27921         Tests for module 'logl'.
27922         * modules/logl-tests: New file.
27923         * tests/test-logl.c: New file.
27924
27925         Tests for module 'expl'.
27926         * modules/expl-tests: New file.
27927         * tests/test-expl.c: New file.
27928
27929         Tests for module 'cosl'.
27930         * modules/cosl-tests: New file.
27931         * tests/test-cosl.c: New file.
27932
27933         Tests for module 'atanl'.
27934         * modules/atanl-tests: New file.
27935         * tests/test-atanl.c: New file.
27936
27937         Tests for module 'asinl'.
27938         * modules/asinl-tests: New file.
27939         * tests/test-asinl.c: New file.
27940
27941         Tests for module 'acosl'.
27942         * modules/acosl-tests: New file.
27943         * tests/test-acosl.c: New file.
27944
27945         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
27946         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
27947         tanl): Use the standard gnulib idiom.
27948         * lib/cosl.c: Don't include trigl.c and sincosl.c.
27949         * lib/sinl.c: Likewise.
27950         * lib/tanl.c: Don't include trigl.c.
27951         (kernel_tanl): Make static.
27952         * lib/sincosl.c: Include trigl.h first.
27953         * lib/trigl.c: Likewise.
27954         * m4/acosl.m4: New file.
27955         * m4/asinl.m4: New file.
27956         * m4/atanl.m4: New file.
27957         * m4/cosl.m4: New file.
27958         * m4/expl.m4: New file.
27959         * m4/logl.m4: New file.
27960         * m4/sinl.m4: New file.
27961         * m4/sqrtl.m4: New file.
27962         * m4/tanl.m4: New file.
27963         * m4/mathl.m4: Remove file.
27964         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
27965         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
27966         Don't initialize GNULIB_MATHL.
27967         * modules/acosl: New file.
27968         * modules/asinl: New file.
27969         * modules/atanl: New file.
27970         * modules/cosl: New file.
27971         * modules/expl: New file.
27972         * modules/logl: New file.
27973         * modules/sinl: New file.
27974         * modules/sqrtl: New file.
27975         * modules/tanl: New file.
27976         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
27977         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
27978         substitute GNULIB_MATHL.
27979         * modules/mathl: Rewritten.
27980         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
27981         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
27982         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
27983         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
27984         * doc/posix-functions/expl.texi: Mention the 'expl' module.
27985         * doc/posix-functions/logl.texi: Mention the 'logl' module.
27986         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
27987         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
27988         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
27989
27990 2010-01-18  Bruno Haible  <bruno@clisp.org>
27991
27992         sqrt: Make gl_FUNC_SQRT requirable.
27993         * m4/sqrt.m4: New file.
27994         * modules/sqrt (Files): Add it.
27995         (configure.ac): Invoke gl_FUNC_SQRT.
27996
27997 2010-01-18  Bruno Haible  <bruno@clisp.org>
27998
27999         New modules for common <math.h> functions.
28000         * m4/mathfunc.m4: New file.
28001         * modules/acos: New file.
28002         * modules/asin: New file.
28003         * modules/atan: New file.
28004         * modules/atan2: New file.
28005         * modules/cbrt: New file.
28006         * modules/copysign: New file.
28007         * modules/cos: New file.
28008         * modules/cosh: New file.
28009         * modules/erf: New file.
28010         * modules/erfc: New file.
28011         * modules/exp: New file.
28012         * modules/fabs: New file.
28013         * modules/fmod: New file.
28014         * modules/hypot: New file.
28015         * modules/j0: New file.
28016         * modules/j1: New file.
28017         * modules/jn: New file.
28018         * modules/ldexp: New file.
28019         * modules/lgamma: New file.
28020         * modules/log: New file.
28021         * modules/log10: New file.
28022         * modules/log1p: New file.
28023         * modules/logb: New file.
28024         * modules/modf: New file.
28025         * modules/nextafter: New file.
28026         * modules/pow: New file.
28027         * modules/remainder: New file.
28028         * modules/rint: New file.
28029         * modules/sin: New file.
28030         * modules/sinh: New file.
28031         * modules/sqrt: New file.
28032         * modules/tan: New file.
28033         * modules/tanh: New file.
28034         * modules/y0: New file.
28035         * modules/y1: New file.
28036         * modules/yn: New file.
28037         * doc/posix-functions/acos.texi: Mention the 'acos' module.
28038         * doc/posix-functions/asin.texi: Mention the 'asin' module.
28039         * doc/posix-functions/atan.texi: Mention the 'atan' module.
28040         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
28041         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
28042         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
28043         * doc/posix-functions/cos.texi: Mention the 'cos' module.
28044         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
28045         * doc/posix-functions/erf.texi: Mention the 'erf' module.
28046         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
28047         * doc/posix-functions/exp.texi: Mention the 'exp' module.
28048         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
28049         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
28050         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
28051         * doc/posix-functions/j0.texi: Mention the 'j0' module.
28052         * doc/posix-functions/j1.texi: Mention the 'j1' module.
28053         * doc/posix-functions/jn.texi: Mention the 'jn' module.
28054         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
28055         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
28056         * doc/posix-functions/log.texi: Mention the 'log' module.
28057         * doc/posix-functions/log10.texi: Mention the 'log10' module.
28058         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
28059         * doc/posix-functions/logb.texi: Mention the 'logb' module.
28060         * doc/posix-functions/modf.texi: Mention the 'modf' module.
28061         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
28062         * doc/posix-functions/pow.texi: Mention the 'pow' module.
28063         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
28064         * doc/posix-functions/rint.texi: Mention the 'rint' module.
28065         * doc/posix-functions/sin.texi: Mention the 'sin' module.
28066         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
28067         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
28068         * doc/posix-functions/tan.texi: Mention the 'tan' module.
28069         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
28070         * doc/posix-functions/y0.texi: Mention the 'y0' module.
28071         * doc/posix-functions/y1.texi: Mention the 'y1' module.
28072         * doc/posix-functions/yn.texi: Mention the 'yn' module.
28073
28074 2010-01-18  Jim Meyering  <meyering@redhat.com>
28075
28076         ignore-value: relax license to LGPLv2+
28077         * modules/ignore-value (License): Relax to LGPLv2+.
28078
28079         getdate: don't leak when TZ contains two or more '"'s
28080         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
28081         double quote in TZ after the first one.
28082
28083         readtokens: do not leak internal token_lengths buffer
28084         * lib/readtokens.c (readtokens): Free the local, lengths,
28085         when the supplied "token_lengths" parameter is NULL.
28086
28087 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28088
28089         Fix a couple of missing LIBTHREAD link failures on AIX.
28090         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
28091         $(LIBTHREAD).
28092         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
28093
28094         Link test-poll against INET_PTON_LIB.
28095         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
28096         for inet_pton on Solaris 10.
28097
28098 2010-01-17  Bruno Haible  <bruno@clisp.org>
28099
28100         unistdio/*-sprintf: Fix typo in module description.
28101         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
28102         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
28103         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
28104         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
28105         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
28106         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
28107         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
28108         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28109
28110 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28111
28112         gnulib-tool: fix filelist for AIX, HP-UX ksh.
28113         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
28114         variables in shell case patterns, for AIX and HP-UX ksh.
28115
28116         Split large sed scripts, for HP-UX sed.
28117         * modules/stdio: Split sed scripts around 50 sed commands,
28118         to avoid HP-UX limit of 99 commands, in the near future.
28119         * modules/string: Likewise.
28120         * modules/unistd: Likewise.
28121
28122         gnulib-tool: avoid writing in the current directory.
28123         * gnulib-tool (func_emit_lib_Makefile_am)
28124         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
28125         not in the current directory, so concurrent gnulib-tool
28126         instances do not interfere.
28127
28128 2010-01-16  Jim Meyering  <meyering@redhat.com>
28129
28130         doc: update users.txt
28131         * users.txt: Add grep.
28132         (diffutils, gzip): Update URLs.
28133
28134 2010-01-12  Bruno Haible  <bruno@clisp.org>
28135
28136         posix_spawn: Avoid test failure on Cygwin.
28137         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
28138         characters.
28139         Reported by Simon Josefsson.
28140
28141 2010-01-12  Bruno Haible  <bruno@clisp.org>
28142
28143         * tests/test-cond.c (main): When skipping the test, show the reason.
28144
28145 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28146
28147         * lib/striconv.c (str_cd_iconv): Avoid if before free.
28148
28149 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28150
28151         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
28152         VC_LIST_ALWAYS_EXCLUDE_REGEX.
28153
28154 2010-01-12  Eric Blake  <ebb9@byu.net>
28155
28156         build: guarantee AS_VAR_IF
28157         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
28158         (gl_AS_VAR_IF): Move...
28159         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
28160         Reported by Simon Josefsson.
28161
28162 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28163
28164         * lib/stdio.in.h: Fix typo.
28165
28166 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28167
28168         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
28169         libgpg-error.
28170
28171 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28172
28173         * tests/test-xalloc-die.sh: Use $EXEEXT.
28174
28175 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28176             Bruno Haible  <bruno@clisp.org>
28177
28178         getlogin, getlogin_r: Avoid test failure.
28179         * tests/test-getlogin.c: Include <stdio.h>.
28180         (main): Skip the test when the function fails because stdin is not a
28181         tty.
28182         * tests/test-getlogin_r.c: Include <stdio.h>.
28183         (main): Skip the test when the function fails because stdin is not a
28184         tty.
28185
28186 2010-01-11  Eric Blake  <ebb9@byu.net>
28187
28188         tests: avoid more large file warnings
28189         * tests/test-fflush.c: Avoid warning about ftell use.
28190         * tests/test-fseek.c: Avoid warning about fseek use.
28191
28192 2010-01-10  Bruno Haible  <bruno@clisp.org>
28193
28194         nproc: Work better on Linux when /proc and /sys are not mounted.
28195         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
28196         as lower bound when, on glibc/Linux systems,
28197         sysconf (_SC_NPROCESSORS_CONF) returns 1.
28198         Suggested by Pádraig Brady <P@draigbrady.com>.
28199         Reported by Dmitry V. Levin <ldv@altlinux.org>.
28200
28201         nproc: Refactor.
28202         * lib/nproc.c (num_processors_via_affinity_mask): New function,
28203         extracted from num_processors.
28204         (num_processors): Call it.
28205
28206 2010-01-11  Jim Meyering  <meyering@redhat.com>
28207
28208         utimecmp: avoid new warning from upcoming gcc-4.5.0
28209         * lib/utimecmp.c (BILLION): Define using #define rather than an
28210         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
28211
28212 2010-01-11  Eric Blake  <ebb9@byu.net>
28213
28214         math: add portability warnings for classification macros
28215         * modules/math (Depends-on): Add warn-on-use.
28216         (Makefile.am): Provide new substitutions.
28217         * m4/math_h.m4 (gl_MATH_H): Require inline.
28218         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
28219         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
28220         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
28221         implement warnings.
28222
28223         unistd: warn on use of environ without module
28224         * modules/unistd (Depends-on): Add warn-on-use.
28225         (Makefile.am): Provide new substitutions.
28226         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
28227         * lib/unistd.in.h (environ): Wrap with a warning helper function.
28228
28229         stdio: warn on suspicious uses
28230         * modules/stdio (Depends-on): Add warn-on-use.
28231         (Makefile.am): Provide new substitutions.
28232         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
28233         fseeko.
28234         * lib/stdio.in.h (gets): Always warn on use.
28235         (fseek, ftell): Adjust when warnings are issued, and honor
28236         _GL_NO_LARGE_FILES as a way to silence the warning.
28237         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
28238         any warning about large file offsets.
28239         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
28240         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
28241         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
28242         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
28243         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
28244         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
28245         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
28246         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
28247
28248         warn-on-use: new module
28249         * modules/warn-on-use: New file.
28250         * build-aux/warn-on-use.h: Likewise.
28251         * m4/warn-on-use.m4: Likewise.
28252         * MODULES.html.sh (Support for building): Mention it.
28253
28254 2010-01-10  Bruno Haible  <bruno@clisp.org>
28255
28256         Tests for module 'unistr/u32-strdup'.
28257         * modules/unistr/u32-strdup-tests: New file.
28258         * tests/unistr/test-u32-strdup.c: New file.
28259
28260         Tests for module 'unistr/u16-strdup'.
28261         * modules/unistr/u16-strdup-tests: New file.
28262         * tests/unistr/test-u16-strdup.c: New file.
28263
28264         Tests for module 'unistr/u8-strdup'.
28265         * modules/unistr/u8-strdup-tests: New file.
28266         * tests/unistr/test-u8-strdup.c: New file.
28267         * tests/unistr/test-strdup.h: New file.
28268
28269         Tests for module 'unistr/u32-strncmp'.
28270         * modules/unistr/u32-strncmp-tests: New file.
28271         * tests/unistr/test-u32-strncmp.c: New file.
28272
28273         Tests for module 'unistr/u16-strncmp'.
28274         * modules/unistr/u16-strncmp-tests: New file.
28275         * tests/unistr/test-u16-strncmp.c: New file.
28276
28277         Tests for module 'unistr/u8-strncmp'.
28278         * modules/unistr/u8-strncmp-tests: New file.
28279         * tests/unistr/test-u8-strncmp.c: New file.
28280         * tests/unistr/test-strncmp.h: New file.
28281
28282         Tests for module 'unistr/u32-strcoll'.
28283         * modules/unistr/u32-strcoll-tests: New file.
28284         * tests/unistr/test-u32-strcoll.c: New file.
28285
28286         Tests for module 'unistr/u16-strcoll'.
28287         * modules/unistr/u16-strcoll-tests: New file.
28288         * tests/unistr/test-u16-strcoll.c: New file.
28289
28290         Tests for module 'unistr/u8-strcoll'.
28291         * modules/unistr/u8-strcoll-tests: New file.
28292         * tests/unistr/test-u8-strcoll.c: New file.
28293
28294         Tests for module 'unistr/u32-strcmp'.
28295         * modules/unistr/u32-strcmp-tests: New file.
28296         * tests/unistr/test-u32-strcmp.c: New file.
28297         * tests/unistr/test-u32-strcmp.h: New file.
28298
28299         Tests for module 'unistr/u16-strcmp'.
28300         * modules/unistr/u16-strcmp-tests: New file.
28301         * tests/unistr/test-u16-strcmp.c: New file.
28302         * tests/unistr/test-u16-strcmp.h: New file.
28303
28304         Tests for module 'unistr/u8-strcmp'.
28305         * modules/unistr/u8-strcmp-tests: New file.
28306         * tests/unistr/test-u8-strcmp.c: New file.
28307         * tests/unistr/test-u8-strcmp.h: New file.
28308         * tests/unistr/test-strcmp.h: New file.
28309
28310         Tests for module 'unistr/u32-strncat'.
28311         * modules/unistr/u32-strncat-tests: New file.
28312         * tests/unistr/test-u32-strncat.c: New file.
28313
28314         Tests for module 'unistr/u16-strncat'.
28315         * modules/unistr/u16-strncat-tests: New file.
28316         * tests/unistr/test-u16-strncat.c: New file.
28317
28318         Tests for module 'unistr/u8-strncat'.
28319         * modules/unistr/u8-strncat-tests: New file.
28320         * tests/unistr/test-u8-strncat.c: New file.
28321         * tests/unistr/test-strncat.h: New file.
28322
28323         Tests for module 'unistr/u32-strcat'.
28324         * modules/unistr/u32-strcat-tests: New file.
28325         * tests/unistr/test-u32-strcat.c: New file.
28326
28327         Tests for module 'unistr/u16-strcat'.
28328         * modules/unistr/u16-strcat-tests: New file.
28329         * tests/unistr/test-u16-strcat.c: New file.
28330
28331         Tests for module 'unistr/u8-strcat'.
28332         * modules/unistr/u8-strcat-tests: New file.
28333         * tests/unistr/test-u8-strcat.c: New file.
28334         * tests/unistr/test-strcat.h: New file.
28335
28336         Tests for module 'unistr/u32-stpncpy'.
28337         * modules/unistr/u32-stpncpy-tests: New file.
28338         * tests/unistr/test-u32-stpncpy.c: New file.
28339
28340         Tests for module 'unistr/u16-stpncpy'.
28341         * modules/unistr/u16-stpncpy-tests: New file.
28342         * tests/unistr/test-u16-stpncpy.c: New file.
28343
28344         Tests for module 'unistr/u8-stpncpy'.
28345         * modules/unistr/u8-stpncpy-tests: New file.
28346         * tests/unistr/test-u8-stpncpy.c: New file.
28347         * tests/unistr/test-stpncpy.h: New file.
28348
28349         Tests for module 'unistr/u32-strncpy'.
28350         * modules/unistr/u32-strncpy-tests: New file.
28351         * tests/unistr/test-u32-strncpy.c: New file.
28352
28353         Tests for module 'unistr/u16-strncpy'.
28354         * modules/unistr/u16-strncpy-tests: New file.
28355         * tests/unistr/test-u16-strncpy.c: New file.
28356
28357         Tests for module 'unistr/u8-strncpy'.
28358         * modules/unistr/u8-strncpy-tests: New file.
28359         * tests/unistr/test-u8-strncpy.c: New file.
28360         * tests/unistr/test-strncpy.h: New file.
28361
28362         Tests for module 'unistr/u32-stpcpy'.
28363         * modules/unistr/u32-stpcpy-tests: New file.
28364         * tests/unistr/test-u32-stpcpy.c: New file.
28365
28366         Tests for module 'unistr/u16-stpcpy'.
28367         * modules/unistr/u16-stpcpy-tests: New file.
28368         * tests/unistr/test-u16-stpcpy.c: New file.
28369
28370         Tests for module 'unistr/u8-stpcpy'.
28371         * modules/unistr/u8-stpcpy-tests: New file.
28372         * tests/unistr/test-u8-stpcpy.c: New file.
28373         * tests/unistr/test-stpcpy.h: New file.
28374
28375         Tests for module 'unistr/u32-strcpy'.
28376         * modules/unistr/u32-strcpy-tests: New file.
28377         * tests/unistr/test-u32-strcpy.c: New file.
28378
28379         Tests for module 'unistr/u16-strcpy'.
28380         * modules/unistr/u16-strcpy-tests: New file.
28381         * tests/unistr/test-u16-strcpy.c: New file.
28382
28383         Tests for module 'unistr/u8-strcpy'.
28384         * modules/unistr/u8-strcpy-tests: New file.
28385         * tests/unistr/test-u8-strcpy.c: New file.
28386         * tests/unistr/test-strcpy.h: New file.
28387
28388         Tests for module 'unistr/u32-strnlen'.
28389         * modules/unistr/u32-strnlen-tests: New file.
28390         * tests/unistr/test-u32-strnlen.c: New file.
28391
28392         Tests for module 'unistr/u16-strnlen'.
28393         * modules/unistr/u16-strnlen-tests: New file.
28394         * tests/unistr/test-u16-strnlen.c: New file.
28395
28396         Tests for module 'unistr/u8-strnlen'.
28397         * modules/unistr/u8-strnlen-tests: New file.
28398         * tests/unistr/test-u8-strnlen.c: New file.
28399         * tests/unistr/test-strnlen.h: New file.
28400
28401         Tests for module 'unistr/u32-strlen'.
28402         * modules/unistr/u32-strlen-tests: New file.
28403         * tests/unistr/test-u32-strlen.c: New file.
28404
28405         Tests for module 'unistr/u16-strlen'.
28406         * modules/unistr/u16-strlen-tests: New file.
28407         * tests/unistr/test-u16-strlen.c: New file.
28408
28409         Tests for module 'unistr/u8-strlen'.
28410         * modules/unistr/u8-strlen-tests: New file.
28411         * tests/unistr/test-u8-strlen.c: New file.
28412
28413         Tests for module 'unistr/u32-prev'.
28414         * modules/unistr/u32-prev-tests: New file.
28415         * tests/unistr/test-u32-prev.c: New file.
28416
28417         Tests for module 'unistr/u16-prev'.
28418         * modules/unistr/u16-prev-tests: New file.
28419         * tests/unistr/test-u16-prev.c: New file.
28420
28421         Tests for module 'unistr/u8-prev'.
28422         * modules/unistr/u8-prev-tests: New file.
28423         * tests/unistr/test-u8-prev.c: New file.
28424
28425         Tests for module 'unistr/u32-next'.
28426         * modules/unistr/u32-next-tests: New file.
28427         * tests/unistr/test-u32-next.c: New file.
28428
28429         Tests for module 'unistr/u16-next'.
28430         * modules/unistr/u16-next-tests: New file.
28431         * tests/unistr/test-u16-next.c: New file.
28432
28433         Tests for module 'unistr/u8-next'.
28434         * modules/unistr/u8-next-tests: New file.
28435         * tests/unistr/test-u8-next.c: New file.
28436
28437         Tests for module 'unistr/u32-strmbtouc'.
28438         * modules/unistr/u32-strmbtouc-tests: New file.
28439         * tests/unistr/test-u32-strmbtouc.c: New file.
28440
28441         Tests for module 'unistr/u16-strmbtouc'.
28442         * modules/unistr/u16-strmbtouc-tests: New file.
28443         * tests/unistr/test-u16-strmbtouc.c: New file.
28444
28445         Tests for module 'unistr/u8-strmbtouc'.
28446         * modules/unistr/u8-strmbtouc-tests: New file.
28447         * tests/unistr/test-u8-strmbtouc.c: New file.
28448
28449         Tests for module 'unistr/u32-strmblen'.
28450         * modules/unistr/u32-strmblen-tests: New file.
28451         * tests/unistr/test-u32-strmblen.c: New file.
28452
28453         Tests for module 'unistr/u16-strmblen'.
28454         * modules/unistr/u16-strmblen-tests: New file.
28455         * tests/unistr/test-u16-strmblen.c: New file.
28456
28457         Tests for module 'unistr/u8-strmblen'.
28458         * modules/unistr/u8-strmblen-tests: New file.
28459         * tests/unistr/test-u8-strmblen.c: New file.
28460
28461         Tests for module 'unistr/u32-cpy-alloc'.
28462         * modules/unistr/u32-cpy-alloc-tests: New file.
28463         * tests/unistr/test-u32-cpy-alloc.c: New file.
28464
28465         Tests for module 'unistr/u16-cpy-alloc'.
28466         * modules/unistr/u16-cpy-alloc-tests: New file.
28467         * tests/unistr/test-u16-cpy-alloc.c: New file.
28468
28469         Tests for module 'unistr/u8-cpy-alloc'.
28470         * modules/unistr/u8-cpy-alloc-tests: New file.
28471         * tests/unistr/test-u8-cpy-alloc.c: New file.
28472         * tests/unistr/test-cpy-alloc.h: New file.
28473
28474         Tests for module 'unistr/u32-mbsnlen'.
28475         * modules/unistr/u32-mbsnlen-tests: New file.
28476         * tests/unistr/test-u32-mbsnlen.c: New file.
28477
28478         Tests for module 'unistr/u16-mbsnlen'.
28479         * modules/unistr/u16-mbsnlen-tests: New file.
28480         * tests/unistr/test-u16-mbsnlen.c: New file.
28481
28482         Tests for module 'unistr/u8-mbsnlen'.
28483         * modules/unistr/u8-mbsnlen-tests: New file.
28484         * tests/unistr/test-u8-mbsnlen.c: New file.
28485
28486         Tests for module 'unistr/u32-chr'.
28487         * modules/unistr/u32-chr-tests: New file.
28488         * tests/unistr/test-u32-chr.c: New file.
28489
28490         Tests for module 'unistr/u16-chr'.
28491         * modules/unistr/u16-chr-tests: New file.
28492         * tests/unistr/test-u16-chr.c: New file.
28493
28494         Tests for module 'unistr/u8-chr'.
28495         * modules/unistr/u8-chr-tests: New file.
28496         * tests/unistr/test-u8-chr.c: New file.
28497         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
28498
28499         Tests for module 'unistr/u32-cmp2'.
28500         * modules/unistr/u32-cmp2-tests: New file.
28501         * tests/unistr/test-u32-cmp2.c: New file.
28502
28503         Tests for module 'unistr/u16-cmp2'.
28504         * modules/unistr/u16-cmp2-tests: New file.
28505         * tests/unistr/test-u16-cmp2.c: New file.
28506
28507         Tests for module 'unistr/u8-cmp2'.
28508         * modules/unistr/u8-cmp2-tests: New file.
28509         * tests/unistr/test-u8-cmp2.c: New file.
28510         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
28511
28512         Tests for module 'unistr/u32-cmp'.
28513         * modules/unistr/u32-cmp-tests: New file.
28514         * tests/unistr/test-u32-cmp.c: New file.
28515
28516         Tests for module 'unistr/u16-cmp'.
28517         * modules/unistr/u16-cmp-tests: New file.
28518         * tests/unistr/test-u16-cmp.c: New file.
28519
28520         Tests for module 'unistr/u8-cmp'.
28521         * modules/unistr/u8-cmp-tests: New file.
28522         * tests/unistr/test-u8-cmp.c: New file.
28523         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
28524
28525         Tests for module 'unistr/u32-set'.
28526         * modules/unistr/u32-set-tests: New file.
28527         * tests/unistr/test-u32-set.c: New file.
28528
28529         Tests for module 'unistr/u16-set'.
28530         * modules/unistr/u16-set-tests: New file.
28531         * tests/unistr/test-u16-set.c: New file.
28532
28533         Tests for module 'unistr/u8-set'.
28534         * modules/unistr/u8-set-tests: New file.
28535         * tests/unistr/test-u8-set.c: New file.
28536         * tests/unistr/test-set.h: New file.
28537
28538         Tests for module 'unistr/u32-move'.
28539         * modules/unistr/u32-move-tests: New file.
28540         * tests/unistr/test-u32-move.c: New file.
28541
28542         Tests for module 'unistr/u16-move'.
28543         * modules/unistr/u16-move-tests: New file.
28544         * tests/unistr/test-u16-move.c: New file.
28545
28546         Tests for module 'unistr/u8-move'.
28547         * modules/unistr/u8-move-tests: New file.
28548         * tests/unistr/test-u8-move.c: New file.
28549         * tests/unistr/test-move.h: New file.
28550
28551         Tests for module 'unistr/u32-cpy'.
28552         * modules/unistr/u32-cpy-tests: New file.
28553         * tests/unistr/test-u32-cpy.c: New file.
28554
28555         Tests for module 'unistr/u16-cpy'.
28556         * modules/unistr/u16-cpy-tests: New file.
28557         * tests/unistr/test-u16-cpy.c: New file.
28558
28559         Tests for module 'unistr/u8-cpy'.
28560         * modules/unistr/u8-cpy-tests: New file.
28561         * tests/unistr/test-u8-cpy.c: New file.
28562         * tests/unistr/test-cpy.h: New file.
28563
28564 2010-01-09  Bruno Haible  <bruno@clisp.org>
28565
28566         Tests for module 'unistr/u32-uctomb'.
28567         * modules/unistr/u32-uctomb-tests: New file.
28568         * tests/unistr/test-u32-uctomb.c: New file.
28569
28570         Tests for module 'unistr/u16-uctomb'.
28571         * modules/unistr/u16-uctomb-tests: New file.
28572         * tests/unistr/test-u16-uctomb.c: New file.
28573
28574         Tests for module 'unistr/u8-uctomb'.
28575         * modules/unistr/u8-uctomb-tests: New file.
28576         * tests/unistr/test-u8-uctomb.c: New file.
28577
28578         Tests for module 'unistr/u32-mbtoucr'.
28579         * modules/unistr/u32-mbtoucr-tests: New file.
28580         * tests/unistr/test-u32-mbtoucr.c: New file.
28581
28582         Tests for module 'unistr/u16-mbtoucr'.
28583         * modules/unistr/u16-mbtoucr-tests: New file.
28584         * tests/unistr/test-u16-mbtoucr.c: New file.
28585
28586         Tests for module 'unistr/u8-mbtoucr'.
28587         * modules/unistr/u8-mbtoucr-tests: New file.
28588         * tests/unistr/test-u8-mbtoucr.c: New file.
28589
28590         Tests for module 'unistr/u32-mbtouc'.
28591         * modules/unistr/u32-mbtouc-tests: New file.
28592         * tests/unistr/test-u32-mbtouc.c: New file.
28593
28594         Tests for module 'unistr/u16-mbtouc'.
28595         * modules/unistr/u16-mbtouc-tests: New file.
28596         * tests/unistr/test-u16-mbtouc.c: New file.
28597
28598         Tests for module 'unistr/u8-mbtouc'.
28599         * modules/unistr/u8-mbtouc-tests: New file.
28600         * tests/unistr/test-u8-mbtouc.c: New file.
28601
28602         Tests for module 'unistr/u32-mbtouc-unsafe'.
28603         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
28604         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
28605         * tests/unistr/test-u32-mbtouc.h: New file.
28606
28607         Tests for module 'unistr/u16-mbtouc-unsafe'.
28608         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
28609         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
28610         * tests/unistr/test-u16-mbtouc.h: New file.
28611
28612         Tests for module 'unistr/u8-mbtouc-unsafe'.
28613         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
28614         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
28615         * tests/unistr/test-u8-mbtouc.h: New file.
28616
28617         Tests for module 'unistr/u32-mblen'.
28618         * modules/unistr/u32-mblen-tests: New file.
28619         * tests/unistr/test-u32-mblen.c: New file.
28620
28621         Tests for module 'unistr/u16-mblen'.
28622         * modules/unistr/u16-mblen-tests: New file.
28623         * tests/unistr/test-u16-mblen.c: New file.
28624
28625         Tests for module 'unistr/u8-mblen'.
28626         * modules/unistr/u8-mblen-tests: New file.
28627         * tests/unistr/test-u8-mblen.c: New file.
28628
28629         Tests for module 'unistr/u32-to-u16'.
28630         * modules/unistr/u32-to-u16-tests: New file.
28631         * tests/unistr/test-u32-to-u16.c: New file.
28632
28633         Tests for module 'unistr/u32-to-u8'.
28634         * modules/unistr/u32-to-u8-tests: New file.
28635         * tests/unistr/test-u32-to-u8.c: New file.
28636
28637         Tests for module 'unistr/u16-to-u32'.
28638         * modules/unistr/u16-to-u32-tests: New file.
28639         * tests/unistr/test-u16-to-u32.c: New file.
28640
28641         Tests for module 'unistr/u16-to-u8'.
28642         * modules/unistr/u16-to-u8-tests: New file.
28643         * tests/unistr/test-u16-to-u8.c: New file.
28644
28645         Tests for module 'unistr/u8-to-u32'.
28646         * modules/unistr/u8-to-u32-tests: New file.
28647         * tests/unistr/test-u8-to-u32.c: New file.
28648
28649         Tests for module 'unistr/u8-to-u16'.
28650         * modules/unistr/u8-to-u16-tests: New file.
28651         * tests/unistr/test-u8-to-u16.c: New file.
28652
28653         Tests for module 'unistr/u32-check'.
28654         * modules/unistr/u32-check-tests: New file.
28655         * tests/unistr/test-u32-check.c: New file.
28656
28657         Tests for module 'unistr/u16-check'.
28658         * modules/unistr/u16-check-tests: New file.
28659         * tests/unistr/test-u16-check.c: New file.
28660
28661         Tests for module 'unistr/u8-check'.
28662         * modules/unistr/u8-check-tests: New file.
28663         * tests/unistr/test-u8-check.c: New file.
28664
28665         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
28666         (category_equals): New function.
28667         (main): Add more tests.
28668         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
28669
28670         * tests/unictype/test-bidi_byname.c (main): Add more tests.
28671
28672 2010-01-10  Bruno Haible  <bruno@clisp.org>
28673
28674         unistr/u*-strcoll: Try harder to distinguish different strings.
28675         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
28676         compare s1 and s2 to see if they are different.
28677
28678 2010-01-10  Bruno Haible  <bruno@clisp.org>
28679
28680         unistr/u*-stpncpy: Fix the return value.
28681         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
28682         description of the return value consistent with stpncpy in glibc.
28683         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
28684         written non-NUL unit.
28685
28686 2010-01-10  Bruno Haible  <bruno@clisp.org>
28687
28688         unistr/u*-next: Add missing dependencies.
28689         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
28690         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
28691         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
28692
28693 2010-01-10  Bruno Haible  <bruno@clisp.org>
28694
28695         unistr/u8-mbsnlen: Fix return value for incomplete character.
28696         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
28697         u8_mblen.
28698         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
28699         Remove unistr/u8-mblen.
28700         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
28701         u16_mblen.
28702         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
28703         Remove unistr/u16-mblen.
28704
28705 2010-01-10  Bruno Haible  <bruno@clisp.org>
28706
28707         wchar: Fix compilation error when <wchar.h> is used from coreutils.
28708         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
28709         Reported by Brian Gough <bjg@gnu.org> and
28710         Chris Clayton <chris2553@googlemail.com> via
28711         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
28712
28713 2010-01-09  Bruno Haible  <bruno@clisp.org>
28714
28715         unistr/u16-to-u32: Reject invalid input.
28716         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
28717         u16_mbtouc.
28718         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
28719         Remove unistr/u16-mbtouc.
28720
28721         unistr/u16-to-u8: Reject invalid input.
28722         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
28723         u16_mbtouc.
28724         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
28725         Remove unistr/u16-mbtouc.
28726
28727         unistr/u8-to-u32: Reject invalid input.
28728         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
28729         u8_mbtouc.
28730         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
28731         Remove unistr/u8-mbtouc.
28732
28733         unistr/u8-to-u16: Reject invalid input.
28734         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
28735         u8_mbtouc.
28736         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
28737         Remove unistr/u8-mbtouc.
28738
28739 2010-01-09  Bruno Haible  <bruno@clisp.org>
28740
28741         Tests for module 'getlogin'.
28742         * modules/getlogin-tests: New file.
28743         * tests/test-getlogin.c: New file.
28744
28745         New module 'getlogin'.
28746         * lib/unistd.in.h (getlogin): New declaration.
28747         * lib/getlogin.c: New file.
28748         * m4/getlogin.m4: New file.
28749         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
28750         HAVE_GETLOGIN.
28751         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
28752         HAVE_GETLOGIN.
28753         * modules/getlogin: New file.
28754         * doc/posix-functions/getlogin.texi: Mention the new module.
28755         Reported by John W. Eaton <jwe@gnu.org>.
28756
28757 2010-01-09  Bruno Haible  <bruno@clisp.org>
28758
28759         getlogin_r: Support for native Windows.
28760         * lib/getlogin_r.c: Include <windows.h>
28761         (getlogin_r): Implement for native Windows.
28762         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
28763         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
28764         via John W. Eaton <jwe@gnu.org>.
28765
28766 2010-01-09  Bruno Haible  <bruno@clisp.org>
28767
28768         getlogin_r: Small fixes.
28769         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
28770         succeeds.
28771         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
28772         before testing whether getlogin_r is declared. No need to set
28773         HAVE_DECL_GETLOGIN_R to 1.
28774         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
28775
28776 2010-01-09  Bruno Haible  <bruno@clisp.org>
28777
28778         * lib/unistd.in.h (getlogin_r): Add comment.
28779
28780 2010-01-09  Bruno Haible  <bruno@clisp.org>
28781
28782         Tests for module 'getlogin_r'.
28783         * modules/getlogin_r-tests: New file.
28784         * tests/test-getlogin_r.c: New file.
28785
28786 2010-01-09  Jim Meyering  <meyering@redhat.com>
28787
28788         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
28789         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
28790         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
28791
28792 2010-01-08  Simon Josefsson  <simon@josefsson.org>
28793
28794         * lib/dup2.c (rpl_dup2): Improve comment.
28795
28796 2010-01-08  Eric Blake  <ebb9@byu.net>
28797
28798         maint.mk: allow packages to add makefile @@ exceptions
28799         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
28800         (sc_makefile_check): Rename...
28801         (sc_makefile_at_at_check): ...to this, and use hook.
28802
28803         dup2: work around mingw bug
28804         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
28805         Reported by Simon Josefsson.
28806
28807 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
28808
28809         glob: Fix C++ compilation.
28810         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
28811         C++.
28812
28813 2010-01-07  Bruno Haible  <bruno@clisp.org>
28814
28815         Fix indentation of wctype.in.h, broken since 2007-01-06.
28816         * lib/wctype.in.h: Fix indentation of preprocessor directives.
28817
28818 2010-01-07  Bruno Haible  <bruno@clisp.org>
28819
28820         mbslen: Avoid collision with system function.
28821         * lib/string.in.h [MirBSD]: Include <wchar.h>.
28822         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
28823         * m4/mbslen.m4: New file.
28824         * modules/mbslen (Files): Add it.
28825         (configure.ac): Invoke gl_MBSLEN.
28826         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
28827         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
28828         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
28829         via Ian Beckwith <ianb@erislabs.net>.
28830
28831 2010-01-07  Bruno Haible  <bruno@clisp.org>
28832
28833         dirent: Document the last fix.
28834         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
28835
28836 2010-01-07  Bruno Haible  <bruno@clisp.org>
28837
28838         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
28839         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
28840         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
28841         va_list are defined.
28842         * doc/posix-headers/stdio.texi: Document the bug of missing types.
28843         Reported by Eric Blake.
28844
28845 2010-01-07  Bruno Haible  <bruno@clisp.org>
28846
28847         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
28848         * modules/xlist (Depends-on): Add 'list',
28849         * modules/xoset (Depends-on): Add 'oset'.
28850         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28851
28852 2010-01-07  Bruno Haible  <bruno@clisp.org>
28853
28854         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
28855         * doc/posix-functions/strncasecmp.texi: Likewise.
28856
28857 2010-01-07  Bruno Haible  <bruno@clisp.org>
28858
28859         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
28860
28861 2010-01-07  John W. Eaton  <jwe@octave.org>
28862
28863         wctype: allow C++ use
28864         * lib/wctype.in.h: Add extern "C" block for C++.
28865
28866 2010-01-06  Eric Blake  <ebb9@byu.net>
28867
28868         maint.mk: detect incorrect GFDL usage
28869         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
28870
28871 2010-01-06  Jim Meyering  <meyering@redhat.com>
28872         and Eric Blake  <ebb9@byu.net>
28873
28874         maint.mk: ignore multi-line copyright in NEWS
28875         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
28876
28877 2010-01-06  Eric Blake  <ebb9@byu.net>
28878
28879         select: add missing dependency
28880         * modules/select-tests (Depends-on): Move sockets dependency...
28881         * modules/select (Depends-on): ...here.
28882         Reported by Ian Beckwith.
28883
28884         doc: regenerate INSTALL
28885         * doc/INSTALL: Reflect recent autoconf update.
28886         * doc/INSTALL.ISO: Likewise.
28887         * doc/INSTALL.UTF-8: Likewise.
28888
28889         pread: fix compilation on glibc
28890         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
28891         Reported by Ralf Wildenhues.
28892
28893         dirent: fix test failure
28894         * lib/dirent.in.h (includes): Guarantee ino_t.
28895         Reported by Ralf Wildenhues.
28896
28897 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
28898
28899         linkat, renameat: avoid bad free
28900         * lib/at-func2.c (at_func2): Fix typo.
28901         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
28902
28903 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28904
28905         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
28906         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
28907         to avoid failure of symlink test later.
28908
28909 2010-01-06  Eric Blake  <ebb9@byu.net>
28910
28911         stdio, unistd: guarantee ssize_t
28912         * lib/unistd.in.h (includes): Ensure that types required by POSIX
28913         2008 are exposed when needed.
28914         * lib/stdio.in.h (includes): Likewise.
28915         Reported by Ralf Wildenhues.
28916
28917 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
28918
28919         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
28920         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
28921         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
28922
28923 2010-01-06  Jim Meyering  <meyering@redhat.com>
28924
28925         readtokens: this module *does* require xalloc.h
28926         It uses only functions that were omitted by the old syntax-check rule.
28927         * lib/readtokens.c: Include "xalloc.h" once again.
28928         * modules/readtokens (Depends-on): Add xalloc.
28929         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
28930
28931 2010-01-05  Eric Blake  <ebb9@byu.net>
28932
28933         maint: support 'make announcement' from a VPATH build
28934         * top/maint.mk (announcement): Look for correct NEWS file.
28935
28936 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
28937
28938         utimens (fdutimens): ignore a negative FD, per contract
28939         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
28940         when we have a valid file descriptor.  Otherwise, using a brand
28941         new glibc (with just-patched futimens that now fails with EBADF)
28942         would cause this function to fail with ENOSYS.
28943         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
28944         See also http://bugzilla.redhat.com/552320.
28945
28946 2010-01-05  Eric Blake  <ebb9@byu.net>
28947
28948         strcase: document what it provides
28949         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
28950         gnulib module.
28951         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
28952         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
28953
28954 2010-01-05  Jim Meyering  <meyering@redhat.com>
28955
28956         maint: remove useless inclusions of "xalloc.h"
28957         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
28958         * lib/readtokens.c: Likewise.
28959         * lib/same.c: Likewise.
28960         * modules/getloadavg (Depends-on): Remove xalloc.
28961         * modules/readtokens: Likewise.
28962         * modules/same: Likewise.
28963
28964         maint.mk: include 4 more function names in alloca.h-checking regexp
28965         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
28966         regexp.  Before, we would give a false-positive (saying alloca.h
28967         is included unnecessarily) when the only uses involved omitted symbols.
28968
28969         xalloc.h: use consistent formatting
28970         * lib/xalloc.h: Move declarations to start in the first column.
28971
28972 2010-01-05  Eric Blake  <ebb9@byu.net>
28973
28974         mkdir: avoid xalloc
28975         * lib/mkdir.c (includes): Drop unused header.
28976         Reported by John W. Eaton.
28977
28978 2010-01-04  Jim Meyering  <meyering@redhat.com>
28979
28980         nl_langinfo: avoid configure-time syntax error
28981         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
28982         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
28983         the empty string.  Don't let that provoke a shell syntax error.
28984
28985         regcomp, regexec, fnmatch: avoid array bounds read error
28986         * lib/regcomp.c (build_equiv_class): From glibc:
28987         Use only the low 24 bits of a findidx return value as an index
28988         into the weights array.  Patch by Ulrich Drepper:
28989         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
28990         * lib/regexec.c (check_node_accept_bytes): Likewise.
28991         * lib/fnmatch_loop.c (FCT): Likewise.
28992
28993         regcomp: skip collseq lookup when there are no rules
28994         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
28995         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
28996
28997         regcomp: recognize ill-formed { } expressions
28998         * lib/regcomp.c (parse_dup_op): From glibc:
28999         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
29000
29001         regcomp: fix typo in comment
29002         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
29003         s/satisfy/satisfies/.
29004
29005         regcomp: sync from glibc: remove dead store
29006         * lib/regcomp.c (duplicate_node_closure): Remove useless
29007         search_duplicated_node call and dead store.
29008
29009         regcomp: sync from glibc; always use nl_langinfo
29010         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
29011         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
29012         * modules/regex (Depends-on): Add nl_langinfo.
29013
29014 2010-01-04  Eric Blake  <ebb9@byu.net>
29015
29016         fdopendir: fix configure test
29017         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
29018
29019 2010-01-01  Bruno Haible  <bruno@clisp.org>
29020
29021         wchar: Remove unused configure check.
29022         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
29023
29024 2010-01-01  Eric Blake  <ebb9@byu.net>
29025
29026         headers: make check of system header explicit
29027         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
29028         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
29029         ourselves.
29030         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
29031         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
29032         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
29033         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
29034         internals.
29035         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
29036         missing.
29037         Suggested by Bruno Haible.
29038
29039 2010-01-01  Jim Meyering  <meyering@redhat.com>
29040
29041         ChangeLog: tweak to eliminate unnecessary copyright line
29042         * ChangeLog: Remove a copyright line that was mistakenly updated
29043         by today's update-copyright run.  Reported by Eric Blake.
29044
29045         test-update-copyright: don't let envvar setting cause test failure
29046         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
29047
29048 2010-01-01  Bruno Haible  <bruno@clisp.org>
29049
29050         localename: Avoid gcc warning.
29051         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
29052         function if it is not used.
29053
29054 2010-01-01  Jim Meyering  <meyering@redhat.com>
29055
29056         update nearly all FSF copyright year lists to include 2010
29057         Use the same procedure as for 2009, outlined in
29058         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
29059
29060         version-etc: set COPYRIGHT_YEAR to 2010
29061         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
29062
29063 2009-12-31  Eric Blake  <ebb9@byu.net>
29064
29065         doc: correct availability of cygwin 1.5.x getopt
29066         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
29067         variables.
29068         * doc/posix-functions/opterr.texi (opterr): Likewise.
29069         * doc/posix-functions/optind.texi (optind): Likewise.
29070         * doc/posix-functions/optopt.texi (optopt): Likewise.
29071         * doc/posix-functions/tzname.texi (tzname): Likewise.
29072
29073         openat: update maintainer
29074         * modules/openat (Maintainer): Add myself.
29075
29076         utimens: avoid shadowing warning
29077         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
29078         buffers into one, to avoid shadowing, as well as avoiding a
29079         redundant stat.
29080         Reported by Jim Meyering.
29081
29082         test-dup2: avoid compiler warning
29083         * tests/test-dup2.c (is_inheritable): Only define if used.
29084
29085 2010-01-01  Bruno Haible  <bruno@clisp.org>
29086
29087         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
29088         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
29089         defined, use wctomb instead of wcrtomb.
29090
29091 2010-01-01  Bruno Haible  <bruno@clisp.org>
29092
29093         iconv: Reject native Solaris iconv.
29094         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
29095         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
29096
29097 2009-12-31  Bruno Haible  <bruno@clisp.org>
29098
29099         * tests/test-signal.c (main): Remove test of 'SIG'.
29100
29101 2009-12-31  Bruno Haible  <bruno@clisp.org>
29102
29103         spawn: Fix incomplete fix.
29104         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
29105         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
29106         warnings for GNULIB_POSIXCHECK again.
29107         Reported by Eric Blake.
29108
29109 2009-12-31  Bruno Haible  <bruno@clisp.org>
29110
29111         Avoid namespace pollution on glibc systems.
29112         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
29113         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
29114         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
29115         glibc systems.
29116
29117 2009-12-31  Bruno Haible  <bruno@clisp.org>
29118
29119         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
29120         (gl_REPLACE_WCHAR_H): Turn into a no-op.
29121         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
29122         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
29123         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
29124         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
29125         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
29126
29127 2009-12-31  Bruno Haible  <bruno@clisp.org>
29128
29129         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
29130         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
29131         afterwards.
29132
29133 2009-12-31  Bruno Haible  <bruno@clisp.org>
29134
29135         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
29136         SYS_UTSNAME_H.
29137
29138 2009-12-31  Bruno Haible  <bruno@clisp.org>
29139
29140         spawn: Fix misapplied patch.
29141         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
29142         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
29143         warnings for GNULIB_POSIXCHECK.
29144
29145 2009-12-31  Bruno Haible  <bruno@clisp.org>
29146
29147         times: Update after sys_times changed.
29148         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
29149         * modules/times (Files): Add it.
29150         (configure.ac): Invoke gl_FUNC_TIMES.
29151
29152 2009-12-31  Bruno Haible  <bruno@clisp.org>
29153
29154         Use AC_C_INLINE where necessary.
29155         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
29156         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
29157         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
29158         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
29159         * m4/mbfile.m4 (gl_MBFILE): Likewise.
29160         * m4/mbiter.m4 (gl_MBITER): Likewise.
29161         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
29162         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
29163         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
29164         * modules/u64 (configure.ac): Likewise.
29165
29166 2009-12-31  Bruno Haible  <bruno@clisp.org>
29167
29168         Use AC_C_INLINE instead of module 'inline' where possible.
29169         * modules/inline (Description): Clarify purpose.
29170         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
29171         * modules/count-one-bits (Depends-on): Remove inline.
29172         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
29173         * modules/openat (Depends-on): Remove inline.
29174         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
29175         instead of depending on module 'inline'.
29176         * modules/filevercmp (Depends-on, configure.ac): Likewise.
29177         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
29178         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
29179         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
29180         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
29181         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
29182         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
29183         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
29184         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
29185         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
29186         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
29187         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
29188         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
29189         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
29190         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
29191         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
29192         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
29193         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
29194         Likewise.
29195         * modules/unictype/property-ascii-hex-digit (Depends-on,
29196         configure.ac): Likewise.
29197         * modules/unictype/property-bidi-arabic-digit (Depends-on,
29198         configure.ac): Likewise.
29199         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
29200         configure.ac): Likewise.
29201         * modules/unictype/property-bidi-block-separator (Depends-on,
29202         configure.ac): Likewise.
29203         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
29204         configure.ac): Likewise.
29205         * modules/unictype/property-bidi-common-separator (Depends-on,
29206         configure.ac): Likewise.
29207         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
29208         Likewise.
29209         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
29210         configure.ac): Likewise.
29211         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
29212         configure.ac): Likewise.
29213         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
29214         configure.ac): Likewise.
29215         * modules/unictype/property-bidi-european-digit (Depends-on,
29216         configure.ac): Likewise.
29217         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
29218         configure.ac): Likewise.
29219         * modules/unictype/property-bidi-left-to-right (Depends-on,
29220         configure.ac): Likewise.
29221         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
29222         configure.ac): Likewise.
29223         * modules/unictype/property-bidi-other-neutral (Depends-on,
29224         configure.ac): Likewise.
29225         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
29226         Likewise.
29227         * modules/unictype/property-bidi-segment-separator (Depends-on,
29228         configure.ac): Likewise.
29229         * modules/unictype/property-bidi-whitespace (Depends-on,
29230         configure.ac): Likewise.
29231         * modules/unictype/property-combining (Depends-on, configure.ac):
29232         Likewise.
29233         * modules/unictype/property-composite (Depends-on, configure.ac):
29234         Likewise.
29235         * modules/unictype/property-currency-symbol (Depends-on,
29236         configure.ac): Likewise.
29237         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
29238         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
29239         Likewise.
29240         * modules/unictype/property-default-ignorable-code-point (Depends-on,
29241         configure.ac): Likewise.
29242         * modules/unictype/property-deprecated (Depends-on, configure.ac):
29243         Likewise.
29244         * modules/unictype/property-diacritic (Depends-on, configure.ac):
29245         Likewise.
29246         * modules/unictype/property-extender (Depends-on, configure.ac):
29247         Likewise.
29248         * modules/unictype/property-format-control (Depends-on, configure.ac):
29249         Likewise.
29250         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
29251         Likewise.
29252         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
29253         Likewise.
29254         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
29255         Likewise.
29256         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
29257         Likewise.
29258         * modules/unictype/property-hyphen (Depends-on, configure.ac):
29259         Likewise.
29260         * modules/unictype/property-id-continue (Depends-on, configure.ac):
29261         Likewise.
29262         * modules/unictype/property-id-start (Depends-on, configure.ac):
29263         Likewise.
29264         * modules/unictype/property-ideographic (Depends-on, configure.ac):
29265         Likewise.
29266         * modules/unictype/property-ids-binary-operator (Depends-on,
29267         configure.ac): Likewise.
29268         * modules/unictype/property-ids-trinary-operator (Depends-on,
29269         configure.ac): Likewise.
29270         * modules/unictype/property-ignorable-control (Depends-on,
29271         configure.ac): Likewise.
29272         * modules/unictype/property-iso-control (Depends-on, configure.ac):
29273         Likewise.
29274         * modules/unictype/property-join-control (Depends-on, configure.ac):
29275         Likewise.
29276         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
29277         Likewise.
29278         * modules/unictype/property-line-separator (Depends-on, configure.ac):
29279         Likewise.
29280         * modules/unictype/property-logical-order-exception (Depends-on,
29281         configure.ac): Likewise.
29282         * modules/unictype/property-lowercase (Depends-on, configure.ac):
29283         Likewise.
29284         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
29285         * modules/unictype/property-non-break (Depends-on, configure.ac):
29286         Likewise.
29287         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
29288         Likewise.
29289         * modules/unictype/property-numeric (Depends-on, configure.ac):
29290         Likewise.
29291         * modules/unictype/property-other-alphabetic (Depends-on,
29292         configure.ac): Likewise.
29293         * modules/unictype/property-other-default-ignorable-code-point
29294         (Depends-on, configure.ac): Likewise.
29295         * modules/unictype/property-other-grapheme-extend (Depends-on,
29296         configure.ac): Likewise.
29297         * modules/unictype/property-other-id-continue (Depends-on,
29298         configure.ac): Likewise.
29299         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
29300         Likewise.
29301         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
29302         Likewise.
29303         * modules/unictype/property-other-math (Depends-on, configure.ac):
29304         Likewise.
29305         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
29306         Likewise.
29307         * modules/unictype/property-paired-punctuation (Depends-on,
29308         configure.ac): Likewise.
29309         * modules/unictype/property-paragraph-separator (Depends-on,
29310         configure.ac): Likewise.
29311         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
29312         Likewise.
29313         * modules/unictype/property-pattern-white-space (Depends-on,
29314         configure.ac): Likewise.
29315         * modules/unictype/property-private-use (Depends-on, configure.ac):
29316         Likewise.
29317         * modules/unictype/property-punctuation (Depends-on, configure.ac):
29318         Likewise.
29319         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
29320         Likewise.
29321         * modules/unictype/property-radical (Depends-on, configure.ac):
29322         Likewise.
29323         * modules/unictype/property-sentence-terminal (Depends-on,
29324         configure.ac): Likewise.
29325         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
29326         Likewise.
29327         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
29328         * modules/unictype/property-terminal-punctuation (Depends-on,
29329         configure.ac): Likewise.
29330         * modules/unictype/property-titlecase (Depends-on, configure.ac):
29331         Likewise.
29332         * modules/unictype/property-unassigned-code-value (Depends-on,
29333         configure.ac): Likewise.
29334         * modules/unictype/property-unified-ideograph (Depends-on,
29335         configure.ac): Likewise.
29336         * modules/unictype/property-uppercase (Depends-on, configure.ac):
29337         Likewise.
29338         * modules/unictype/property-variation-selector (Depends-on,
29339         configure.ac): Likewise.
29340         * modules/unictype/property-white-space (Depends-on, configure.ac):
29341         Likewise.
29342         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
29343         Likewise.
29344         * modules/unictype/property-xid-start (Depends-on, configure.ac):
29345         Likewise.
29346         * modules/unictype/property-zero-width (Depends-on, configure.ac):
29347         Likewise.
29348         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
29349         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
29350         Likewise.
29351
29352 2009-12-31  Bruno Haible  <bruno@clisp.org>
29353
29354         Remove unnecessary AC_C_INLINE invocation.
29355         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
29356         since 2009-08-21.
29357
29358 2009-12-31  Jim Meyering  <meyering@redhat.com>
29359
29360         maint.mk: don't require explicit gpg_key_ID in cfg.mk
29361         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
29362         With this change, we can all remove the gpg_key_ID = ... definition
29363         from our respective cfg.mk files.
29364
29365         maint.mk: create announcement template in ~/, not in /tmp
29366         * top/maint.mk (emit_upload_commands): Adjust.
29367         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
29368         Remove temporary file, .ci-msg.
29369
29370 2009-12-31  Eric Blake  <ebb9@byu.net>
29371
29372         link-warning: always build headers with link warnings
29373         * modules/arpa_inet (Makefile.am): Always build replacement
29374         header.
29375         * modules/ctype (Makefile.am): Likewise.
29376         * modules/dirent (Makefile.am): Likewise.
29377         * modules/inttypes (Makefile.am): Likewise.
29378         * modules/langinfo (Makefile.am): Likewise.
29379         * modules/locale (Makefile.am): Likewise.
29380         * modules/spawn (Makefile.am): Likewise.
29381         * modules/sys_file (Makefile.am): Likewise.
29382         * modules/sys_ioctl (Makefile.am): Likewise.
29383         * modules/sys_select (Makefile.am): Likewise.
29384         * modules/sys_socket (Makefile.am): Likewise.
29385         * modules/sys_times (Makefile.am): Likewise.
29386         * modules/sys_utsname (Makefile.am): Likewise.
29387         * modules/sys_wait (Makefile.am): Likewise.
29388         * modules/wchar (Makefile.am): Likewise.
29389         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
29390         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
29391         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
29392         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
29393         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
29394         Likewise.
29395         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
29396         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
29397         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
29398         Likewise.
29399         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
29400         Likewise.
29401         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
29402         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
29403         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
29404         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
29405         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
29406         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
29407         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
29408         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
29409         (gl_WCHAR_H_DEFAULTS): Likewise.
29410
29411 2009-12-31  Eric Blake  <ebb9@byu.net>
29412
29413         signal, spawn: use link warnings
29414         * lib/signal.in.h (sigset_t): Make unconditional.
29415         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
29416         (sigpending, sigprocmask, sigaction): Add link warnings.
29417         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
29418         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
29419         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
29420         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
29421         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
29422         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
29423         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
29424         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
29425         (posix_spawn_file_actions_destroy)
29426         (posix_spawn_file_actions_addopen)
29427         (posix_spawn_file_actions_addclose)
29428         (posix_spawn_file_actions_adddup2): Likewise.
29429         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
29430         * tests/test-signal.c (main): Enhance test.
29431
29432         spawn: improve wrapper support
29433         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
29434         (gl_SPAWN_H_DEFAULTS): New defaults.
29435         * modules/spawn (Makefile.am): Substitute them.
29436         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
29437         Only declare if missing or broken.
29438
29439         sys_times, sys_utsname: use include_next
29440         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
29441         header.
29442         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
29443         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
29444         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
29445         * modules/sys_times (Depends-on): Add include_next.
29446         (Makefile.am): Substitute additional values.
29447         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
29448         * lib/sys_times.in.h (includes): Include native header, if
29449         available.
29450         * lib/sys_utsname.in.h (includes): Likewise.
29451         * tests/test-sys_times.c (main): Enhance test.
29452
29453         fdutimensat: revert prior patch
29454         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
29455         utimens.h.
29456         Reported by Bruno Haible.
29457
29458 2009-12-30  Eric Blake  <ebb9@byu.net>
29459
29460         sys_wait: drop link-warning dependency
29461         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
29462         link-warning efforts.
29463         * lib/sys_wait.in.h: Likewise.
29464
29465         fdutimensat: remove bogus dependency
29466         * modules/fdutimensat (Depends-on): Drop inline.
29467
29468         unistd: fix typo
29469         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
29470
29471 2009-12-30  Bruno Haible  <bruno@clisp.org>
29472
29473         Fix compilation error with Solaris cc.
29474         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
29475         * lib/unicase/u16-is-invariant.c: Likewise.
29476         * lib/unicase/u32-is-invariant.c: Likewise.
29477         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
29478
29479 2009-12-30  Bruno Haible  <bruno@clisp.org>
29480
29481         Fix test crash.
29482         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
29483         locales.
29484         Reported by Simon Josefsson <simon@josefsson.org>.
29485
29486 2009-12-30  Bruno Haible  <bruno@clisp.org>
29487
29488         Fix compilation error on most platforms.
29489         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
29490         Reported by Simon Josefsson <simon@josefsson.org>
29491         and Nelson H. F. Beebe <beebe@math.utah.edu>.
29492
29493 2009-12-30  Eric Blake  <ebb9@byu.net>
29494
29495         futimens, utimensat: work around ntfs-3g bug
29496         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
29497         a ctime bug is present, and expand workaround to cover ntfs-3g.
29498         * lib/utimens.c (fdutimens, lutimens): Likewise.
29499         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
29500         (validate_timespec): Adjust return value.
29501         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
29502         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
29503         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
29504
29505 2009-12-29  Eric Blake  <ebb9@byu.net>
29506
29507         link-warning: make usage consistent
29508         * modules/ctype (Depends-on): Add link-warning.
29509         (Makefile.am): Update rules accordingly.
29510         * modules/langinfo (Depends-on, Makefile.am): Likewise.
29511         * modules/locale (Depends-on, Makefile.am): Likewise.
29512         * modules/sys_file (Makefile.am): Likewise.
29513         * modules/getopt-posix (Makefile.am): Delete unused link warning
29514         efforts.
29515         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
29516         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
29517         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
29518         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
29519
29520         stdio: remove unused variables
29521         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
29522         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
29523         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
29524
29525         tests: test more substitute headers
29526         * modules/ctype-tests: New file.
29527         * modules/dirent-tests: Likewise.
29528         * modules/spawn-tests: Likewise.
29529         * modules/sys_file-tests: Likewise.
29530         * modules/sys_ioctl-tests: Likewise.
29531         * modules/sys_wait-tests: Likewise.
29532         * tests/test-ctype.c: Likewise.
29533         * tests/test-dirent.c: Likewise.
29534         * tests/test-spawn.c: Likewise.
29535         * tests/test-sys_file.c: Likewise.
29536         * tests/test-sys_ioctl.c: Likewise.
29537         * tests/test-sys_wait.c: Likewise.
29538         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
29539         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
29540         whether or not flock is in use.
29541
29542         tests: remove License section from module
29543         * modules/arpa_inet-tests: Remove unneeded section.
29544         * modules/byteswap-tests: Likewise.
29545         * modules/ceilf-tests: Likewise.
29546         * modules/ceill-tests: Likewise.
29547         * modules/crypto/des-tests: Likewise.
29548         * modules/crypto/gc-arcfour-tests: Likewise.
29549         * modules/crypto/gc-arctwo-tests: Likewise.
29550         * modules/crypto/gc-des-tests: Likewise.
29551         * modules/crypto/gc-hmac-md5-tests: Likewise.
29552         * modules/crypto/gc-hmac-sha1-tests: Likewise.
29553         * modules/crypto/gc-md2-tests: Likewise.
29554         * modules/crypto/gc-md4-tests: Likewise.
29555         * modules/crypto/gc-md5-tests: Likewise.
29556         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
29557         * modules/crypto/gc-rijndael-tests: Likewise.
29558         * modules/crypto/gc-sha1-tests: Likewise.
29559         * modules/crypto/gc-tests: Likewise.
29560         * modules/crypto/md2-tests: Likewise.
29561         * modules/crypto/md4-tests: Likewise.
29562         * modules/fcntl-h-tests: Likewise.
29563         * modules/floorf-tests: Likewise.
29564         * modules/floorl-tests: Likewise.
29565         * modules/frexp-nolibm-tests: Likewise.
29566         * modules/frexp-tests: Likewise.
29567         * modules/frexpl-nolibm-tests: Likewise.
29568         * modules/frexpl-tests: Likewise.
29569         * modules/getaddrinfo-tests: Likewise.
29570         * modules/inttypes-tests: Likewise.
29571         * modules/isfinite-tests: Likewise.
29572         * modules/isinf-tests: Likewise.
29573         * modules/ldexpl-tests: Likewise.
29574         * modules/locale-tests: Likewise.
29575         * modules/math-tests: Likewise.
29576         * modules/netdb-tests: Likewise.
29577         * modules/netinet_in-tests: Likewise.
29578         * modules/printf-frexp-tests: Likewise.
29579         * modules/printf-frexpl-tests: Likewise.
29580         * modules/priv-set-tests: Likewise.
29581         * modules/random_r-tests: Likewise.
29582         * modules/round-tests: Likewise.
29583         * modules/roundf-tests: Likewise.
29584         * modules/roundl-tests: Likewise.
29585         * modules/search-tests: Likewise.
29586         * modules/select-tests: Likewise.
29587         * modules/signal-tests: Likewise.
29588         * modules/stdbool-tests: Likewise.
29589         * modules/stddef-tests: Likewise.
29590         * modules/stdint-tests: Likewise.
29591         * modules/stdio-tests: Likewise.
29592         * modules/stdlib-tests: Likewise.
29593         * modules/string-tests: Likewise.
29594         * modules/strings-tests: Likewise.
29595         * modules/sys_select-tests: Likewise.
29596         * modules/sys_socket-tests: Likewise.
29597         * modules/sys_stat-tests: Likewise.
29598         * modules/sys_time-tests: Likewise.
29599         * modules/sys_utsname-tests: Likewise.
29600         * modules/sysexits-tests: Likewise.
29601         * modules/time-tests: Likewise.
29602         * modules/trunc-tests: Likewise.
29603         * modules/truncf-tests: Likewise.
29604         * modules/truncl-tests: Likewise.
29605         * modules/tsearch-tests: Likewise.
29606         * modules/unistd-tests: Likewise.
29607         * modules/wchar-tests: Likewise.
29608         * modules/wctype-tests: Likewise.
29609
29610         tests: fix license on several tests
29611         * tests/test-des.c: Update to GPLv3+.
29612         * tests/test-flock.c: Likewise.
29613         * tests/test-fsync.c: Likewise.
29614         * tests/test-futimens.h: Likewise.
29615         * tests/test-gc-arcfour.c: Likewise.
29616         * tests/test-gc-arctwo.c: Likewise.
29617         * tests/test-gc-des.c: Likewise.
29618         * tests/test-gc-hmac-md5.c: Likewise.
29619         * tests/test-gc-hmac-sha1.c: Likewise.
29620         * tests/test-gc-md2.c: Likewise.
29621         * tests/test-gc-md4.c: Likewise.
29622         * tests/test-gc-md5.c: Likewise.
29623         * tests/test-gc-pbkdf2-sha1.c: Likewise.
29624         * tests/test-gc-rijndael.c: Likewise.
29625         * tests/test-gc-sha1.c: Likewise.
29626         * tests/test-gc.c: Likewise.
29627         * tests/test-getcwd.c: Likewise.
29628         * tests/test-link.c: Likewise.
29629         * tests/test-link.h: Likewise.
29630         * tests/test-lutimens.h: Likewise.
29631         * tests/test-md2.c: Likewise.
29632         * tests/test-md4.c: Likewise.
29633         * tests/test-mkdir.h: Likewise.
29634         * tests/test-rename.c: Likewise.
29635         * tests/test-rename.h: Likewise.
29636         * tests/test-safe-alloc.c: Likewise.
29637         * tests/test-utimens-common.h: Likewise.
29638         * tests/test-utimens.h: Likewise.
29639
29640         maint: sync license texts
29641         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
29642         * doc/gpl-3.0.texi: Revert copyright year update.
29643         * doc/lgpl-3.0.texi: Likewise.
29644
29645 2009-12-29  Jim Meyering  <meyering@redhat.com>
29646
29647         update nearly all FSF copyright year lists to include 2009
29648         The files named by the following are exempted:
29649             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
29650               test -f "$dst" && { echo "$dst"; continue; }
29651               test -d "$dst" || continue
29652               echo "$dst"/$(basename "$src")
29653             done > exempt
29654             git ls-files tests/unictype >> exempt
29655         In the remaining files, convert to all-interval notation if
29656         - there is already at least one year interval like 2000-2003
29657         - the file is maintained by me
29658         - the file is in lib/uni*/, where that style already prevails
29659         Otherwise, use update-copyright's default.
29660
29661 2009-12-29  Simon Josefsson  <simon@josefsson.org>
29662         and Eric Blake  <ebb9@byu.net>
29663
29664         tests: don't require debug system() to pass
29665         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
29666         * tests/test-rmdir.h (test_rmdir_func): Likewise.
29667         * tests/test-unlink.h (test_unlink_func): Likewise.
29668         * tests/test-fstatat.c (main): ...into callers.
29669         * tests/test-lstat.c (main): Likewise.
29670         * tests/test-rmdir.c (main): Likewise.
29671         * tests/test-unlink.c (main): Likewise.
29672         * tests/test-unlinkat.c (main): Likewise.
29673         * tests/test-areadlink-with-size.c (main): Don't require a
29674         debug-only system call to pass, aiding cross-testing to mingw.
29675         * tests/test-areadlink.c (main): Likewise.
29676         * tests/test-areadlinkat-with-size.c (main): Likewise.
29677         * tests/test-areadlinkat.c (main): Likewise.
29678         * tests/test-canonicalize-lgpl.c (main): Likewise.
29679         * tests/test-canonicalize.c (main): Likewise.
29680         * tests/test-chown.c (main): Likewise.
29681         * tests/test-fchownat.c (main): Likewise.
29682         * tests/test-lchown.c (main): Likewise.
29683         * tests/test-fdutimensat.c (main): Likewise.
29684         * tests/test-futimens.c (main): Likewise.
29685         * tests/test-link.c (main): Likewise.
29686         * tests/test-linkat.c (main): Likewise.
29687         * tests/test-mkdir.c (main): Likewise.
29688         * tests/test-mkdirat.c (main): Likewise.
29689         * tests/test-mkfifo.c (main): Likewise.
29690         * tests/test-mkfifoat.c (main): Likewise.
29691         * tests/test-mknod.c (main): Likewise.
29692         * tests/test-readlink.c (main): Likewise.
29693         * tests/test-remove.c (main): Likewise.
29694         * tests/test-rename.c (main): Likewise.
29695         * tests/test-renameat.c (main): Likewise.
29696         * tests/test-symlink.c (main): Likewise.
29697         * tests/test-symlinkat.c (main): Likewise.
29698         * tests/test-utimens.c (main): Likewise.
29699         * tests/test-utimensat.c (main): Likewise.
29700
29701 2009-12-29  Simon Josefsson  <simon@josefsson.org>
29702
29703         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
29704         on $(UNUSED_PARAMETER_H) to avoid build failure.
29705
29706 2009-12-28  Jim Meyering  <meyering@redhat.com>
29707
29708         update-copyright: you may specify a max. line length other than 72
29709         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
29710
29711         maint: use consistent FSF copyright line syntax
29712         * lib/posixtm.c: Add missing comma in FSF copyright line.
29713         * lib/posixtm.h: Likewise.
29714         * lib/getugroups.c: Add missing ", Inc.".
29715
29716         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
29717         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
29718         FSF copyright line.  Remove trailing blanks.
29719
29720 2009-12-28  Eric Blake  <ebb9@byu.net>
29721
29722         test-dup2: reduce dependencies
29723         * modules/cloexec (Configure.ac): Set witness.
29724         * modules/dup2-tests (Depends-on): Drop cloexec.
29725         * tests/test-dup2.c (main): Skip portion of test if cloexec module
29726         not present.
29727         Suggested by Bruno Haible.
29728
29729 2009-12-26  Bruno Haible  <bruno@clisp.org>
29730
29731         Remove an unneeded dependency.
29732         * modules/fseterr (Depends-on): Remove dup2.
29733
29734 2009-12-26  Eric Blake  <ebb9@byu.net>
29735
29736         tests: use macros.h in more places
29737         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
29738         (ASSERT_STREAM): Provide default of stderr.
29739         * tests/test-dirent-safer.c: Include macros.h, using alternate
29740         stream for assertions.
29741         * tests/test-dup-safer.c: Likewise.
29742         * tests/test-freopen-safer.c: Likewise.
29743         * tests/test-getopt.c: Likewise.
29744         * tests/test-openat-safer.c: Likewise.
29745         * tests/test-pipe.c: Likewise.
29746         * tests/test-popen-safer.c: Likewise.
29747         * modules/dirent-safer-tests (Files): Include macros.h.
29748         * modules/unistd-safer-tests (Files): Likewise.
29749         * modules/freopen-safer-tests (Files): Likewise.
29750         * modules/getopt-posix-tests (Files): Likewise.
29751         * modules/openat-safer-tests (Files): Likewise.
29752         * modules/pipe-tests (Files): Likewise.
29753
29754 2009-12-26  Bruno Haible  <bruno@clisp.org>
29755
29756         javacomp: Portability fix.
29757         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
29758         that it also works on Solaris.
29759
29760 2009-12-26  Bruno Haible  <bruno@clisp.org>
29761
29762         localename: Fix storage allocation of gl_locale_name_thread's result.
29763         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
29764         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
29765         all platforms that have 'uselocale'.
29766         (gl_locale_name_thread_unsafe): New function, extracted from
29767         gl_locale_name_thread.
29768         (gl_locale_name_thread): Call struniq on all platforms that have
29769         'uselocale'.
29770         * tests/test-localename.c (test_locale_name_thread): Check that the
29771         resulting strings are permanently allocated.
29772         * modules/localename-tests (Depends-on): Add strdup.
29773
29774 2009-12-26  Bruno Haible  <bruno@clisp.org>
29775
29776         * tests/test-localename.c (categories): Fill in the strings.
29777
29778 2009-12-26  Jim Meyering  <meyering@redhat.com>
29779
29780         isdir: complete the removal of m4/isdir.m4
29781         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
29782
29783         isdir: clean up, since at least grep still uses it
29784         * lib/isdir.c: Include "isdir.h".
29785         (S_ISDIR): Remove now-unneeded definition.
29786         * modules/isdir (Files): Add lib/isdir.h.
29787         * lib/isdir.h: New file, with declaration.
29788         * m4/isdir.m4: Remove file -- unneeded.
29789
29790 2009-12-25  Bruno Haible  <bruno@clisp.org>
29791
29792         selinux-h: Make generated .h files standalone.
29793         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
29794         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
29795         * lib/se-selinux.in.h: Likewise.
29796         * modules/selinux-h (Depends-on): Add unused-parameter.
29797         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
29798         selinux/selinux.h and selinux/context.h.
29799         Suggested by Eric Blake.
29800
29801 2009-12-25  Bruno Haible  <bruno@clisp.org>
29802
29803         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
29804         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
29805         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
29806         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
29807         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
29808
29809 2009-12-24  Bruno Haible  <bruno@clisp.org>
29810
29811         openat: Fix warning.
29812         * lib/openat-proc.c: Include <unistd.h>.
29813
29814 2009-12-24  Bruno Haible  <bruno@clisp.org>
29815
29816         New module 'unused-parameter'.
29817         * build-aux/unused-parameter.h: New file, extracted from earlier
29818         gnulib-common.m4.
29819         * modules/unused-parameter: New file.
29820         * lib/unistr.h: Include unused-parameter.h.
29821         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
29822         _GL_UNUSED.
29823         * modules/unistr/base (Depends-on): Add unused-parameter.
29824
29825 2009-12-24  Bruno Haible  <bruno@clisp.org>
29826
29827         Add missing dependencies to 'extensions' module.
29828         * m4/extensions.m4: Add comment.
29829         * modules/accept4 (Depends-on): Add extensions.
29830         * modules/dup3 (Depends-on): Likewise.
29831         * modules/fcntl (Depends-on): Likewise.
29832         * modules/futimens (Depends-on): Likewise.
29833         * modules/mknod (Depends-on): Likewise.
29834         * modules/pipe2 (Depends-on): Likewise.
29835         * modules/stat-time (Depends-on): Likewise.
29836         * modules/strcasestr-simple (Depends-on): Likewise.
29837         * modules/strsignal (Depends-on): Likewise.
29838         * modules/utimensat (Depends-on): Likewise.
29839         * modules/localcharset (Depends-on): Likewise. Needed because of
29840         gl_FCNTL_O_FLAGS.
29841         * modules/wcrtomb (Depends-on): Likewise. Needed because of
29842         AC_TYPE_MBSTATE_T.
29843         * modules/wcsnrtombs (Depends-on): Likewise.
29844         * modules/wcsrtombs (Depends-on): Likewise.
29845
29846 2009-12-24  Bruno Haible  <bruno@clisp.org>
29847
29848         binary-io: Avoid gcc warning due to SET_BINARY.
29849         * lib/binary-io.h (SET_BINARY): Cast the result to void.
29850         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
29851
29852 2009-12-24  Bruno Haible  <bruno@clisp.org>
29853
29854         Avoid future namespace pollution on glibc systems.
29855         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
29856         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
29857         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
29858         glibc systems.
29859
29860 2009-12-24  Bruno Haible  <bruno@clisp.org>
29861
29862         Refactor common macros used in tests.
29863         * tests/macros.h: New file.
29864         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
29865         and/or <stdlib.h>, if appropriate.
29866         (ASSERT, SIZEOF): Remove macros.
29867         * tests/test-areadlink-with-size.c: Likewise.
29868         * tests/test-areadlinkat.c: Likewise.
29869         * tests/test-areadlinkat-with-size.c: Likewise.
29870         * tests/test-argmatch.c: Likewise.
29871         * tests/test-argv-iter.c: Likewise.
29872         * tests/test-array-mergesort.c: Likewise.
29873         * tests/test-array_list.c: Likewise.
29874         * tests/test-array_oset.c: Likewise.
29875         * tests/test-avltree_list.c: Likewise.
29876         * tests/test-avltree_oset.c: Likewise.
29877         * tests/test-avltreehash_list.c: Likewise.
29878         * tests/test-base64.c: Likewise.
29879         * tests/test-binary-io.c: Likewise.
29880         * tests/test-bitrotate.c: Likewise.
29881         * tests/test-btowc.c: Likewise.
29882         * tests/test-byteswap.c: Likewise.
29883         * tests/test-c-ctype.c: Likewise.
29884         * tests/test-c-stack.c: Likewise.
29885         * tests/test-c-strcasecmp.c: Likewise.
29886         * tests/test-c-strcasestr.c: Likewise.
29887         * tests/test-c-strncasecmp.c: Likewise.
29888         * tests/test-c-strstr.c: Likewise.
29889         * tests/test-canonicalize-lgpl.c: Likewise.
29890         * tests/test-canonicalize.c: Likewise.
29891         * tests/test-carray_list.c: Likewise.
29892         * tests/test-ceilf1.c: Likewise.
29893         * tests/test-ceilf2.c: Likewise.
29894         * tests/test-ceill.c: Likewise.
29895         * tests/test-chown.c: Likewise.
29896         * tests/test-cloexec.c: Likewise.
29897         * tests/test-copy-acl.c: Likewise.
29898         * tests/test-copy-file.c: Likewise.
29899         * tests/test-count-one-bits.c: Likewise.
29900         * tests/test-dprintf-posix.c: Likewise.
29901         * tests/test-dup2.c: Likewise.
29902         * tests/test-dup3.c: Likewise.
29903         * tests/test-duplocale.c: Likewise.
29904         * tests/test-fbufmode.c: Likewise.
29905         * tests/test-fchdir.c: Likewise.
29906         * tests/test-fchownat.c: Likewise.
29907         * tests/test-fcntl-safer.c: Likewise.
29908         * tests/test-fcntl.c: Likewise.
29909         * tests/test-fdopendir.c: Likewise.
29910         * tests/test-fdutimensat.c: Likewise.
29911         * tests/test-fflush2.c: Likewise.
29912         * tests/test-file-has-acl.c: Likewise.
29913         * tests/test-filevercmp.c: Likewise.
29914         * tests/test-flock.c: Likewise.
29915         * tests/test-floorf1.c: Likewise.
29916         * tests/test-floorf2.c: Likewise.
29917         * tests/test-floorl.c: Likewise.
29918         * tests/test-fnmatch.c: Likewise.
29919         * tests/test-fopen.h: Likewise.
29920         * tests/test-fpending.c: Likewise.
29921         * tests/test-fprintf-posix.c: Likewise.
29922         * tests/test-fpurge.c: Likewise.
29923         * tests/test-freadable.c: Likewise.
29924         * tests/test-freadahead.c: Likewise.
29925         * tests/test-freading.c: Likewise.
29926         * tests/test-freadptr.c: Likewise.
29927         * tests/test-freadptr2.c: Likewise.
29928         * tests/test-freadseek.c: Likewise.
29929         * tests/test-freopen.c: Likewise.
29930         * tests/test-frexp.c: Likewise.
29931         * tests/test-frexpl.c: Likewise.
29932         * tests/test-fseek.c: Likewise.
29933         * tests/test-fseeko.c: Likewise.
29934         * tests/test-fstatat.c: Likewise.
29935         * tests/test-fstrcmp.c: Likewise.
29936         * tests/test-fsync.c: Likewise.
29937         * tests/test-ftell.c: Likewise.
29938         * tests/test-ftello.c: Likewise.
29939         * tests/test-func.c: Likewise.
29940         * tests/test-futimens.c: Likewise.
29941         * tests/test-fwritable.c: Likewise.
29942         * tests/test-fwriting.c: Likewise.
29943         * tests/test-getcwd.c: Likewise.
29944         * tests/test-getdate.c: Likewise.
29945         * tests/test-getdelim.c: Likewise.
29946         * tests/test-getdtablesize.c: Likewise.
29947         * tests/test-getgroups.c: Likewise.
29948         * tests/test-getline.c: Likewise.
29949         * tests/test-getndelim2.c: Likewise.
29950         * tests/test-glob.c: Likewise.
29951         * tests/test-hash.c: Likewise.
29952         * tests/test-i-ring.c: Likewise.
29953         * tests/test-iconv-utf.c: Likewise.
29954         * tests/test-iconv.c: Likewise.
29955         * tests/test-idpriv-drop.c: Likewise.
29956         * tests/test-idpriv-droptemp.c: Likewise.
29957         * tests/test-inet_ntop.c: Likewise.
29958         * tests/test-inet_pton.c: Likewise.
29959         * tests/test-isblank.c: Likewise.
29960         * tests/test-isfinite.c: Likewise.
29961         * tests/test-isinf.c: Likewise.
29962         * tests/test-isnan.c: Likewise.
29963         * tests/test-isnand.h: Likewise.
29964         * tests/test-isnanf.h: Likewise.
29965         * tests/test-isnanl.h: Likewise.
29966         * tests/test-lchown.c: Likewise.
29967         * tests/test-ldexpl.c: Likewise.
29968         * tests/test-link.c: Likewise.
29969         * tests/test-linkat.c: Likewise.
29970         * tests/test-linked_list.c: Likewise.
29971         * tests/test-linkedhash_list.c: Likewise.
29972         * tests/test-localename.c: Likewise.
29973         * tests/test-lseek.c: Likewise.
29974         * tests/test-lstat.c: Likewise.
29975         * tests/test-mbmemcasecmp.c: Likewise.
29976         * tests/test-mbmemcasecoll.c: Likewise.
29977         * tests/test-mbrtowc.c: Likewise.
29978         * tests/test-mbscasecmp.c: Likewise.
29979         * tests/test-mbscasestr1.c: Likewise.
29980         * tests/test-mbscasestr2.c: Likewise.
29981         * tests/test-mbscasestr3.c: Likewise.
29982         * tests/test-mbscasestr4.c: Likewise.
29983         * tests/test-mbschr.c: Likewise.
29984         * tests/test-mbscspn.c: Likewise.
29985         * tests/test-mbsinit.c: Likewise.
29986         * tests/test-mbsncasecmp.c: Likewise.
29987         * tests/test-mbsnrtowcs.c: Likewise.
29988         * tests/test-mbspbrk.c: Likewise.
29989         * tests/test-mbspcasecmp.c: Likewise.
29990         * tests/test-mbsrchr.c: Likewise.
29991         * tests/test-mbsrtowcs.c: Likewise.
29992         * tests/test-mbsspn.c: Likewise.
29993         * tests/test-mbsstr1.c: Likewise.
29994         * tests/test-mbsstr2.c: Likewise.
29995         * tests/test-mbsstr3.c: Likewise.
29996         * tests/test-memchr.c: Likewise.
29997         * tests/test-memchr2.c: Likewise.
29998         * tests/test-memcmp.c: Likewise.
29999         * tests/test-memmem.c: Likewise.
30000         * tests/test-memrchr.c: Likewise.
30001         * tests/test-mkdir.c: Likewise.
30002         * tests/test-mkdirat.c: Likewise.
30003         * tests/test-mkfifo.c: Likewise.
30004         * tests/test-mkfifoat.c: Likewise.
30005         * tests/test-mknod.c: Likewise.
30006         * tests/test-nanosleep.c: Likewise.
30007         * tests/test-nl_langinfo.c: Likewise.
30008         * tests/test-obstack-printf.c: Likewise.
30009         * tests/test-open.c: Likewise.
30010         * tests/test-openat.c: Likewise.
30011         * tests/test-pipe-filter-gi1.c: Likewise.
30012         * tests/test-pipe-filter-gi2-main.c: Likewise.
30013         * tests/test-pipe-filter-ii1.c: Likewise.
30014         * tests/test-pipe-filter-ii2-main.c: Likewise.
30015         * tests/test-pipe2.c: Likewise.
30016         * tests/test-popen.h: Likewise.
30017         * tests/test-posixtm.c: Likewise.
30018         * tests/test-pread.c: Likewise.
30019         * tests/test-printf-frexp.c: Likewise.
30020         * tests/test-printf-frexpl.c: Likewise.
30021         * tests/test-printf-posix.c: Likewise.
30022         * tests/test-priv-set.c: Likewise.
30023         * tests/test-quotearg.c: Likewise.
30024         * tests/test-random_r.c: Likewise.
30025         * tests/test-rawmemchr.c: Likewise.
30026         * tests/test-rbtree_list.c: Likewise.
30027         * tests/test-rbtree_oset.c: Likewise.
30028         * tests/test-rbtreehash_list.c: Likewise.
30029         * tests/test-readlink.c: Likewise.
30030         * tests/test-remove.c: Likewise.
30031         * tests/test-rename.c: Likewise.
30032         * tests/test-renameat.c: Likewise.
30033         * tests/test-rmdir.c: Likewise.
30034         * tests/test-round1.c: Likewise.
30035         * tests/test-roundf1.c: Likewise.
30036         * tests/test-roundl.c: Likewise.
30037         * tests/test-safe-alloc.c: Likewise.
30038         * tests/test-sameacls.c: Likewise.
30039         * tests/test-set-mode-acl.c: Likewise.
30040         * tests/test-setenv.c: Likewise.
30041         * tests/test-sigaction.c: Likewise.
30042         * tests/test-signbit.c: Likewise.
30043         * tests/test-sleep.c: Likewise.
30044         * tests/test-snprintf-posix.c: Likewise.
30045         * tests/test-snprintf.c: Likewise.
30046         * tests/test-sprintf-posix.c: Likewise.
30047         * tests/test-stat-time.c: Likewise.
30048         * tests/test-stat.c: Likewise.
30049         * tests/test-strcasestr.c: Likewise.
30050         * tests/test-strchrnul.c: Likewise.
30051         * tests/test-strerror.c: Likewise.
30052         * tests/test-striconv.c: Likewise.
30053         * tests/test-striconveh.c: Likewise.
30054         * tests/test-striconveha.c: Likewise.
30055         * tests/test-strsignal.c: Likewise.
30056         * tests/test-strstr.c: Likewise.
30057         * tests/test-strtod.c: Likewise.
30058         * tests/test-strverscmp.c: Likewise.
30059         * tests/test-symlink.c: Likewise.
30060         * tests/test-symlinkat.c: Likewise.
30061         * tests/test-trunc1.c: Likewise.
30062         * tests/test-trunc2.c: Likewise.
30063         * tests/test-truncf1.c: Likewise.
30064         * tests/test-truncf2.c: Likewise.
30065         * tests/test-truncl.c: Likewise.
30066         * tests/test-uname.c: Likewise.
30067         * tests/test-unlink.c: Likewise.
30068         * tests/test-unlinkat.c: Likewise.
30069         * tests/test-unsetenv.c: Likewise.
30070         * tests/test-usleep.c: Likewise.
30071         * tests/test-utimens.c: Likewise.
30072         * tests/test-utimensat.c: Likewise.
30073         * tests/test-vasnprintf-posix.c: Likewise.
30074         * tests/test-vasnprintf-posix2.c: Likewise.
30075         * tests/test-vasnprintf.c: Likewise.
30076         * tests/test-vasprintf-posix.c: Likewise.
30077         * tests/test-vasprintf.c: Likewise.
30078         * tests/test-vdprintf-posix.c: Likewise.
30079         * tests/test-vfprintf-posix.c: Likewise.
30080         * tests/test-vprintf-posix.c: Likewise.
30081         * tests/test-vsnprintf-posix.c: Likewise.
30082         * tests/test-vsnprintf.c: Likewise.
30083         * tests/test-vsprintf-posix.c: Likewise.
30084         * tests/test-wcrtomb.c: Likewise.
30085         * tests/test-wcsnrtombs.c: Likewise.
30086         * tests/test-wcsrtombs.c: Likewise.
30087         * tests/test-wctype.c: Likewise.
30088         * tests/test-wcwidth.c: Likewise.
30089         * tests/test-xfprintf-posix.c: Likewise.
30090         * tests/test-xmemdup0.c: Likewise.
30091         * tests/test-xprintf-posix.c: Likewise.
30092         * tests/test-xvasprintf.c: Likewise.
30093         * tests/unicase/test-locale-language.c: Likewise.
30094         * tests/unicase/test-mapping-part1.h: Likewise.
30095         * tests/unicase/test-predicate-part1.h: Likewise.
30096         * tests/unicase/test-u8-casecmp.c: Likewise.
30097         * tests/unicase/test-u8-casecoll.c: Likewise.
30098         * tests/unicase/test-u8-casefold.c: Likewise.
30099         * tests/unicase/test-u8-is-cased.c: Likewise.
30100         * tests/unicase/test-u8-is-casefolded.c: Likewise.
30101         * tests/unicase/test-u8-is-lowercase.c: Likewise.
30102         * tests/unicase/test-u8-is-titlecase.c: Likewise.
30103         * tests/unicase/test-u8-is-uppercase.c: Likewise.
30104         * tests/unicase/test-u8-tolower.c: Likewise.
30105         * tests/unicase/test-u8-totitle.c: Likewise.
30106         * tests/unicase/test-u8-toupper.c: Likewise.
30107         * tests/unicase/test-u16-casecmp.c: Likewise.
30108         * tests/unicase/test-u16-casecoll.c: Likewise.
30109         * tests/unicase/test-u16-casefold.c: Likewise.
30110         * tests/unicase/test-u16-is-cased.c: Likewise.
30111         * tests/unicase/test-u16-is-casefolded.c: Likewise.
30112         * tests/unicase/test-u16-is-lowercase.c: Likewise.
30113         * tests/unicase/test-u16-is-titlecase.c: Likewise.
30114         * tests/unicase/test-u16-is-uppercase.c: Likewise.
30115         * tests/unicase/test-u16-tolower.c: Likewise.
30116         * tests/unicase/test-u16-totitle.c: Likewise.
30117         * tests/unicase/test-u16-toupper.c: Likewise.
30118         * tests/unicase/test-u32-casecmp.c: Likewise.
30119         * tests/unicase/test-u32-casecoll.c: Likewise.
30120         * tests/unicase/test-u32-casefold.c: Likewise.
30121         * tests/unicase/test-u32-is-cased.c: Likewise.
30122         * tests/unicase/test-u32-is-casefolded.c: Likewise.
30123         * tests/unicase/test-u32-is-lowercase.c: Likewise.
30124         * tests/unicase/test-u32-is-titlecase.c: Likewise.
30125         * tests/unicase/test-u32-is-uppercase.c: Likewise.
30126         * tests/unicase/test-u32-tolower.c: Likewise.
30127         * tests/unicase/test-u32-totitle.c: Likewise.
30128         * tests/unicase/test-u32-toupper.c: Likewise.
30129         * tests/unicase/test-ulc-casecmp.c: Likewise.
30130         * tests/unicase/test-ulc-casecoll.c: Likewise.
30131         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
30132         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
30133         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
30134         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
30135         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
30136         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
30137         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
30138         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
30139         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
30140         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
30141         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
30142         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
30143         * tests/unictype/test-bidi_byname.c: Likewise.
30144         * tests/unictype/test-bidi_name.c: Likewise.
30145         * tests/unictype/test-bidi_of.c: Likewise.
30146         * tests/unictype/test-bidi_test.c: Likewise.
30147         * tests/unictype/test-block_list.c: Likewise.
30148         * tests/unictype/test-block_of.c: Likewise.
30149         * tests/unictype/test-block_test.c: Likewise.
30150         * tests/unictype/test-categ_and.c: Likewise.
30151         * tests/unictype/test-categ_and_not.c: Likewise.
30152         * tests/unictype/test-categ_byname.c: Likewise.
30153         * tests/unictype/test-categ_name.c: Likewise.
30154         * tests/unictype/test-categ_none.c: Likewise.
30155         * tests/unictype/test-categ_of.c: Likewise.
30156         * tests/unictype/test-categ_or.c: Likewise.
30157         * tests/unictype/test-categ_test_withtable.c: Likewise.
30158         * tests/unictype/test-combining.c: Likewise.
30159         * tests/unictype/test-decdigit.c: Likewise.
30160         * tests/unictype/test-digit.c: Likewise.
30161         * tests/unictype/test-mirror.c: Likewise.
30162         * tests/unictype/test-numeric.c: Likewise.
30163         * tests/unictype/test-pr_byname.c: Likewise.
30164         * tests/unictype/test-pr_test.c: Likewise.
30165         * tests/unictype/test-predicate-part1.h: Likewise.
30166         * tests/unictype/test-scripts.c: Likewise.
30167         * tests/unictype/test-sy_c_ident.c: Likewise.
30168         * tests/unictype/test-sy_java_ident.c: Likewise.
30169         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
30170         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
30171         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
30172         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
30173         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
30174         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
30175         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
30176         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
30177         * tests/uninorm/test-canonical-decomposition.c: Likewise.
30178         * tests/uninorm/test-compat-decomposition.c: Likewise.
30179         * tests/uninorm/test-composition.c: Likewise.
30180         * tests/uninorm/test-decomposing-form.c: Likewise.
30181         * tests/uninorm/test-decomposition.c: Likewise.
30182         * tests/uninorm/test-u8-nfc.c: Likewise.
30183         * tests/uninorm/test-u8-nfd.c: Likewise.
30184         * tests/uninorm/test-u8-nfkc.c: Likewise.
30185         * tests/uninorm/test-u8-nfkd.c: Likewise.
30186         * tests/uninorm/test-u8-normcmp.c: Likewise.
30187         * tests/uninorm/test-u8-normcoll.c: Likewise.
30188         * tests/uninorm/test-u16-nfc.c: Likewise.
30189         * tests/uninorm/test-u16-nfd.c: Likewise.
30190         * tests/uninorm/test-u16-nfkc.c: Likewise.
30191         * tests/uninorm/test-u16-nfkd.c: Likewise.
30192         * tests/uninorm/test-u16-normcmp.c: Likewise.
30193         * tests/uninorm/test-u16-normcoll.c: Likewise.
30194         * tests/uninorm/test-u32-nfc.c: Likewise.
30195         * tests/uninorm/test-u32-nfd.c: Likewise.
30196         * tests/uninorm/test-u32-nfkc.c: Likewise.
30197         * tests/uninorm/test-u32-nfkd.c: Likewise.
30198         * tests/uninorm/test-u32-normalize-big.c: Likewise.
30199         * tests/uninorm/test-u32-normcmp.c: Likewise.
30200         * tests/uninorm/test-u32-normcoll.c: Likewise.
30201         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
30202         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
30203         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
30204         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
30205         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
30206         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
30207         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
30208         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
30209         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
30210         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
30211         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
30212         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
30213         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
30214         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
30215         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
30216         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
30217         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
30218         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
30219         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
30220         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
30221         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
30222         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
30223         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
30224         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
30225         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
30226         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
30227         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
30228         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
30229         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
30230         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
30231         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
30232         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
30233         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
30234         * tests/uniwidth/test-u8-strwidth.c: Likewise.
30235         * tests/uniwidth/test-u8-width.c: Likewise.
30236         * tests/uniwidth/test-u16-strwidth.c: Likewise.
30237         * tests/uniwidth/test-u16-width.c: Likewise.
30238         * tests/uniwidth/test-u32-strwidth.c: Likewise.
30239         * tests/uniwidth/test-u32-width.c: Likewise.
30240         * tests/uniwidth/test-uc_width.c: Likewise.
30241         * tests/uniwidth/test-uc_width2.c: Likewise.
30242         * modules/acl-tests (Files): Add tests/macros.h.
30243         * modules/areadlink-tests (Files): Likewise.
30244         * modules/areadlink-with-size-tests (Files): Likewise.
30245         * modules/areadlinkat-tests (Files): Likewise.
30246         * modules/areadlinkat-with-size-tests (Files): Likewise.
30247         * modules/argmatch-tests (Files): Likewise.
30248         * modules/argv-iter-tests (Files): Likewise.
30249         * modules/array-list-tests (Files): Likewise.
30250         * modules/array-mergesort-tests (Files): Likewise.
30251         * modules/array-oset-tests (Files): Likewise.
30252         * modules/avltree-list-tests (Files): Likewise.
30253         * modules/avltree-oset-tests (Files): Likewise.
30254         * modules/avltreehash-list-tests (Files): Likewise.
30255         * modules/base64-tests (Files): Likewise.
30256         * modules/binary-io-tests (Files): Likewise.
30257         * modules/bitrotate-tests (Files): Likewise.
30258         * modules/btowc-tests (Files): Likewise.
30259         * modules/byteswap-tests (Files): Likewise.
30260         * modules/c-ctype-tests (Files): Likewise.
30261         * modules/c-stack-tests (Files): Likewise.
30262         * modules/c-strcase-tests (Files): Likewise.
30263         * modules/c-strcasestr-tests (Files): Likewise.
30264         * modules/c-strstr-tests (Files): Likewise.
30265         * modules/canonicalize-lgpl-tests (Files): Likewise.
30266         * modules/canonicalize-tests (Files): Likewise.
30267         * modules/carray-list-tests (Files): Likewise.
30268         * modules/ceilf-tests (Files): Likewise.
30269         * modules/ceill-tests (Files): Likewise.
30270         * modules/chown-tests (Files): Likewise.
30271         * modules/cloexec-tests (Files): Likewise.
30272         * modules/copy-file-tests (Files): Likewise.
30273         * modules/count-one-bits-tests (Files): Likewise.
30274         * modules/dprintf-posix-tests (Files): Likewise.
30275         * modules/dup2-tests (Files): Likewise.
30276         * modules/dup3-tests (Files): Likewise.
30277         * modules/duplocale-tests (Files): Likewise.
30278         * modules/fbufmode-tests (Files): Likewise.
30279         * modules/fchdir-tests (Files): Likewise.
30280         * modules/fcntl-safer-tests (Files): Likewise.
30281         * modules/fcntl-tests (Files): Likewise.
30282         * modules/fdopendir-tests (Files): Likewise.
30283         * modules/fdutimensat-tests (Files): Likewise.
30284         * modules/fflush-tests (Files): Likewise.
30285         * modules/filevercmp-tests (Files): Likewise.
30286         * modules/flock-tests (Files): Likewise.
30287         * modules/floorf-tests (Files): Likewise.
30288         * modules/floorl-tests (Files): Likewise.
30289         * modules/fnmatch-tests (Files): Likewise.
30290         * modules/fopen-safer-tests (Files): Likewise.
30291         * modules/fopen-tests (Files): Likewise.
30292         * modules/fpending-tests (Files): Likewise.
30293         * modules/fprintf-posix-tests (Files): Likewise.
30294         * modules/fpurge-tests (Files): Likewise.
30295         * modules/freadable-tests (Files): Likewise.
30296         * modules/freadahead-tests (Files): Likewise.
30297         * modules/freading-tests (Files): Likewise.
30298         * modules/freadptr-tests (Files): Likewise.
30299         * modules/freadseek-tests (Files): Likewise.
30300         * modules/freopen-tests (Files): Likewise.
30301         * modules/frexp-nolibm-tests (Files): Likewise.
30302         * modules/frexp-tests (Files): Likewise.
30303         * modules/frexpl-nolibm-tests (Files): Likewise.
30304         * modules/frexpl-tests (Files): Likewise.
30305         * modules/fseek-tests (Files): Likewise.
30306         * modules/fseeko-tests (Files): Likewise.
30307         * modules/fstrcmp-tests (Files): Likewise.
30308         * modules/fsync-tests (Files): Likewise.
30309         * modules/ftell-tests (Files): Likewise.
30310         * modules/ftello-tests (Files): Likewise.
30311         * modules/func-tests (Files): Likewise.
30312         * modules/futimens-tests (Files): Likewise.
30313         * modules/fwritable-tests (Files): Likewise.
30314         * modules/fwriting-tests (Files): Likewise.
30315         * modules/getcwd-tests (Files): Likewise.
30316         * modules/getdate-tests (Files): Likewise.
30317         * modules/getdelim-tests (Files): Likewise.
30318         * modules/getdtablesize-tests (Files): Likewise.
30319         * modules/getgroups-tests (Files): Likewise.
30320         * modules/getline-tests (Files): Likewise.
30321         * modules/getndelim2-tests (Files): Likewise.
30322         * modules/glob-tests (Files): Likewise.
30323         * modules/hash-tests (Files): Likewise.
30324         * modules/i-ring-tests (Files): Likewise.
30325         * modules/iconv-tests (Files): Likewise.
30326         * modules/iconv_open-utf-tests (Files): Likewise.
30327         * modules/idpriv-drop-tests (Files): Likewise.
30328         * modules/idpriv-droptemp-tests (Files): Likewise.
30329         * modules/inet_ntop-tests (Files): Likewise.
30330         * modules/inet_pton-tests (Files): Likewise.
30331         * modules/isblank-tests (Files): Likewise.
30332         * modules/isfinite-tests (Files): Likewise.
30333         * modules/isinf-tests (Files): Likewise.
30334         * modules/isnan-tests (Files): Likewise.
30335         * modules/isnand-nolibm-tests (Files): Likewise.
30336         * modules/isnand-tests (Files): Likewise.
30337         * modules/isnanf-nolibm-tests (Files): Likewise.
30338         * modules/isnanf-tests (Files): Likewise.
30339         * modules/isnanl-nolibm-tests (Files): Likewise.
30340         * modules/isnanl-tests (Files): Likewise.
30341         * modules/lchown-tests (Files): Likewise.
30342         * modules/ldexpl-tests (Files): Likewise.
30343         * modules/link-tests (Files): Likewise.
30344         * modules/linkat-tests (Files): Likewise.
30345         * modules/linked-list-tests (Files): Likewise.
30346         * modules/linkedhash-list-tests (Files): Likewise.
30347         * modules/localename-tests (Files): Likewise.
30348         * modules/lseek-tests (Files): Likewise.
30349         * modules/lstat-tests (Files): Likewise.
30350         * modules/mbmemcasecmp-tests (Files): Likewise.
30351         * modules/mbmemcasecoll-tests (Files): Likewise.
30352         * modules/mbrtowc-tests (Files): Likewise.
30353         * modules/mbscasecmp-tests (Files): Likewise.
30354         * modules/mbscasestr-tests (Files): Likewise.
30355         * modules/mbschr-tests (Files): Likewise.
30356         * modules/mbscspn-tests (Files): Likewise.
30357         * modules/mbsinit-tests (Files): Likewise.
30358         * modules/mbsncasecmp-tests (Files): Likewise.
30359         * modules/mbsnrtowcs-tests (Files): Likewise.
30360         * modules/mbspbrk-tests (Files): Likewise.
30361         * modules/mbspcasecmp-tests (Files): Likewise.
30362         * modules/mbsrchr-tests (Files): Likewise.
30363         * modules/mbsrtowcs-tests (Files): Likewise.
30364         * modules/mbsspn-tests (Files): Likewise.
30365         * modules/mbsstr-tests (Files): Likewise.
30366         * modules/memchr-tests (Files): Likewise.
30367         * modules/memchr2-tests (Files): Likewise.
30368         * modules/memcmp-tests (Files): Likewise.
30369         * modules/memmem-tests (Files): Likewise.
30370         * modules/memrchr-tests (Files): Likewise.
30371         * modules/mkdir-tests (Files): Likewise.
30372         * modules/mkfifo-tests (Files): Likewise.
30373         * modules/mkfifoat-tests (Files): Likewise.
30374         * modules/mknod-tests (Files): Likewise.
30375         * modules/nanosleep-tests (Files): Likewise.
30376         * modules/nl_langinfo-tests (Files): Likewise.
30377         * modules/obstack-printf-tests (Files): Likewise.
30378         * modules/open-tests (Files): Likewise.
30379         * modules/openat-tests (Files): Likewise.
30380         * modules/pipe-filter-gi-tests (Files): Likewise.
30381         * modules/pipe-filter-ii-tests (Files): Likewise.
30382         * modules/pipe2-tests (Files): Likewise.
30383         * modules/popen-safer-tests (Files): Likewise.
30384         * modules/popen-tests (Files): Likewise.
30385         * modules/posixtm-tests (Files): Likewise.
30386         * modules/pread-tests (Files): Likewise.
30387         * modules/printf-frexp-tests (Files): Likewise.
30388         * modules/printf-frexpl-tests (Files): Likewise.
30389         * modules/printf-posix-tests (Files): Likewise.
30390         * modules/priv-set-tests (Files): Likewise.
30391         * modules/quotearg-tests (Files): Likewise.
30392         * modules/random_r-tests (Files): Likewise.
30393         * modules/rawmemchr-tests (Files): Likewise.
30394         * modules/rbtree-list-tests (Files): Likewise.
30395         * modules/rbtree-oset-tests (Files): Likewise.
30396         * modules/rbtreehash-list-tests (Files): Likewise.
30397         * modules/readlink-tests (Files): Likewise.
30398         * modules/remove-tests (Files): Likewise.
30399         * modules/rename-tests (Files): Likewise.
30400         * modules/renameat-tests (Files): Likewise.
30401         * modules/rmdir-tests (Files): Likewise.
30402         * modules/round-tests (Files): Likewise.
30403         * modules/roundf-tests (Files): Likewise.
30404         * modules/roundl-tests (Files): Likewise.
30405         * modules/safe-alloc-tests (Files): Likewise.
30406         * modules/setenv-tests (Files): Likewise.
30407         * modules/sigaction-tests (Files): Likewise.
30408         * modules/signbit-tests (Files): Likewise.
30409         * modules/sleep-tests (Files): Likewise.
30410         * modules/snprintf-posix-tests (Files): Likewise.
30411         * modules/snprintf-tests (Files): Likewise.
30412         * modules/sprintf-posix-tests (Files): Likewise.
30413         * modules/stat-tests (Files): Likewise.
30414         * modules/stat-time-tests (Files): Likewise.
30415         * modules/strcasestr-tests (Files): Likewise.
30416         * modules/strchrnul-tests (Files): Likewise.
30417         * modules/strerror-tests (Files): Likewise.
30418         * modules/striconv-tests (Files): Likewise.
30419         * modules/striconveh-tests (Files): Likewise.
30420         * modules/striconveha-tests (Files): Likewise.
30421         * modules/strsignal-tests (Files): Likewise.
30422         * modules/strstr-tests (Files): Likewise.
30423         * modules/strtod-tests (Files): Likewise.
30424         * modules/strverscmp-tests (Files): Likewise.
30425         * modules/symlink-tests (Files): Likewise.
30426         * modules/symlinkat-tests (Files): Likewise.
30427         * modules/trunc-tests (Files): Likewise.
30428         * modules/truncf-tests (Files): Likewise.
30429         * modules/truncl-tests (Files): Likewise.
30430         * modules/uname-tests (Files): Likewise.
30431         * modules/unicase/cased-tests (Files): Likewise.
30432         * modules/unicase/ignorable-tests (Files): Likewise.
30433         * modules/unicase/locale-language-tests (Files): Likewise.
30434         * modules/unicase/tolower-tests (Files): Likewise.
30435         * modules/unicase/totitle-tests (Files): Likewise.
30436         * modules/unicase/toupper-tests (Files): Likewise.
30437         * modules/unicase/u8-casecmp-tests (Files): Likewise.
30438         * modules/unicase/u8-casecoll-tests (Files): Likewise.
30439         * modules/unicase/u8-casefold-tests (Files): Likewise.
30440         * modules/unicase/u8-is-cased-tests (Files): Likewise.
30441         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
30442         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
30443         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
30444         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
30445         * modules/unicase/u8-tolower-tests (Files): Likewise.
30446         * modules/unicase/u8-totitle-tests (Files): Likewise.
30447         * modules/unicase/u8-toupper-tests (Files): Likewise.
30448         * modules/unicase/u16-casecmp-tests (Files): Likewise.
30449         * modules/unicase/u16-casecoll-tests (Files): Likewise.
30450         * modules/unicase/u16-casefold-tests (Files): Likewise.
30451         * modules/unicase/u16-is-cased-tests (Files): Likewise.
30452         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
30453         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
30454         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
30455         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
30456         * modules/unicase/u16-tolower-tests (Files): Likewise.
30457         * modules/unicase/u16-totitle-tests (Files): Likewise.
30458         * modules/unicase/u16-toupper-tests (Files): Likewise.
30459         * modules/unicase/u32-casecmp-tests (Files): Likewise.
30460         * modules/unicase/u32-casecoll-tests (Files): Likewise.
30461         * modules/unicase/u32-casefold-tests (Files): Likewise.
30462         * modules/unicase/u32-is-cased-tests (Files): Likewise.
30463         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
30464         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
30465         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
30466         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
30467         * modules/unicase/u32-tolower-tests (Files): Likewise.
30468         * modules/unicase/u32-totitle-tests (Files): Likewise.
30469         * modules/unicase/u32-toupper-tests (Files): Likewise.
30470         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
30471         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
30472         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
30473         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
30474         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
30475         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
30476         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
30477         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
30478         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
30479         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
30480         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
30481         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
30482         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
30483         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
30484         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
30485         * modules/unictype/bidicategory-name-tests (Files): Likewise.
30486         * modules/unictype/bidicategory-of-tests (Files): Likewise.
30487         * modules/unictype/bidicategory-test-tests (Files): Likewise.
30488         * modules/unictype/block-list-tests (Files): Likewise.
30489         * modules/unictype/block-of-tests (Files): Likewise.
30490         * modules/unictype/block-test-tests (Files): Likewise.
30491         * modules/unictype/category-C-tests (Files): Likewise.
30492         * modules/unictype/category-Cc-tests (Files): Likewise.
30493         * modules/unictype/category-Cf-tests (Files): Likewise.
30494         * modules/unictype/category-Cn-tests (Files): Likewise.
30495         * modules/unictype/category-Co-tests (Files): Likewise.
30496         * modules/unictype/category-Cs-tests (Files): Likewise.
30497         * modules/unictype/category-L-tests (Files): Likewise.
30498         * modules/unictype/category-Ll-tests (Files): Likewise.
30499         * modules/unictype/category-Lm-tests (Files): Likewise.
30500         * modules/unictype/category-Lo-tests (Files): Likewise.
30501         * modules/unictype/category-Lt-tests (Files): Likewise.
30502         * modules/unictype/category-Lu-tests (Files): Likewise.
30503         * modules/unictype/category-M-tests (Files): Likewise.
30504         * modules/unictype/category-Mc-tests (Files): Likewise.
30505         * modules/unictype/category-Me-tests (Files): Likewise.
30506         * modules/unictype/category-Mn-tests (Files): Likewise.
30507         * modules/unictype/category-N-tests (Files): Likewise.
30508         * modules/unictype/category-Nd-tests (Files): Likewise.
30509         * modules/unictype/category-Nl-tests (Files): Likewise.
30510         * modules/unictype/category-No-tests (Files): Likewise.
30511         * modules/unictype/category-P-tests (Files): Likewise.
30512         * modules/unictype/category-Pc-tests (Files): Likewise.
30513         * modules/unictype/category-Pd-tests (Files): Likewise.
30514         * modules/unictype/category-Pe-tests (Files): Likewise.
30515         * modules/unictype/category-Pf-tests (Files): Likewise.
30516         * modules/unictype/category-Pi-tests (Files): Likewise.
30517         * modules/unictype/category-Po-tests (Files): Likewise.
30518         * modules/unictype/category-Ps-tests (Files): Likewise.
30519         * modules/unictype/category-S-tests (Files): Likewise.
30520         * modules/unictype/category-Sc-tests (Files): Likewise.
30521         * modules/unictype/category-Sk-tests (Files): Likewise.
30522         * modules/unictype/category-Sm-tests (Files): Likewise.
30523         * modules/unictype/category-So-tests (Files): Likewise.
30524         * modules/unictype/category-Z-tests (Files): Likewise.
30525         * modules/unictype/category-Zl-tests (Files): Likewise.
30526         * modules/unictype/category-Zp-tests (Files): Likewise.
30527         * modules/unictype/category-Zs-tests (Files): Likewise.
30528         * modules/unictype/category-and-not-tests (Files): Likewise.
30529         * modules/unictype/category-and-tests (Files): Likewise.
30530         * modules/unictype/category-byname-tests (Files): Likewise.
30531         * modules/unictype/category-name-tests (Files): Likewise.
30532         * modules/unictype/category-none-tests (Files): Likewise.
30533         * modules/unictype/category-of-tests (Files): Likewise.
30534         * modules/unictype/category-or-tests (Files): Likewise.
30535         * modules/unictype/category-test-withtable-tests (Files): Likewise.
30536         * modules/unictype/combining-class-tests (Files): Likewise.
30537         * modules/unictype/ctype-alnum-tests (Files): Likewise.
30538         * modules/unictype/ctype-alpha-tests (Files): Likewise.
30539         * modules/unictype/ctype-blank-tests (Files): Likewise.
30540         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
30541         * modules/unictype/ctype-digit-tests (Files): Likewise.
30542         * modules/unictype/ctype-graph-tests (Files): Likewise.
30543         * modules/unictype/ctype-lower-tests (Files): Likewise.
30544         * modules/unictype/ctype-print-tests (Files): Likewise.
30545         * modules/unictype/ctype-punct-tests (Files): Likewise.
30546         * modules/unictype/ctype-space-tests (Files): Likewise.
30547         * modules/unictype/ctype-upper-tests (Files): Likewise.
30548         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
30549         * modules/unictype/decimal-digit-tests (Files): Likewise.
30550         * modules/unictype/digit-tests (Files): Likewise.
30551         * modules/unictype/mirror-tests (Files): Likewise.
30552         * modules/unictype/numeric-tests (Files): Likewise.
30553         * modules/unictype/property-alphabetic-tests (Files): Likewise.
30554         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
30555         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
30556         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
30557         Likewise.
30558         * modules/unictype/property-bidi-block-separator-tests (Files):
30559         Likewise.
30560         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
30561         Likewise.
30562         * modules/unictype/property-bidi-common-separator-tests (Files):
30563         Likewise.
30564         * modules/unictype/property-bidi-control-tests (Files): Likewise.
30565         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
30566         Likewise.
30567         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
30568         Likewise.
30569         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
30570         Likewise.
30571         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
30572         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
30573         Likewise.
30574         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
30575         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
30576         Likewise.
30577         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
30578         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
30579         * modules/unictype/property-bidi-segment-separator-tests (Files):
30580         Likewise.
30581         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
30582         * modules/unictype/property-byname-tests (Files): Likewise.
30583         * modules/unictype/property-combining-tests (Files): Likewise.
30584         * modules/unictype/property-composite-tests (Files): Likewise.
30585         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
30586         * modules/unictype/property-dash-tests (Files): Likewise.
30587         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
30588         * modules/unictype/property-default-ignorable-code-point-tests (Files):
30589         Likewise.
30590         * modules/unictype/property-deprecated-tests (Files): Likewise.
30591         * modules/unictype/property-diacritic-tests (Files): Likewise.
30592         * modules/unictype/property-extender-tests (Files): Likewise.
30593         * modules/unictype/property-format-control-tests (Files): Likewise.
30594         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
30595         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
30596         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
30597         * modules/unictype/property-hex-digit-tests (Files): Likewise.
30598         * modules/unictype/property-hyphen-tests (Files): Likewise.
30599         * modules/unictype/property-id-continue-tests (Files): Likewise.
30600         * modules/unictype/property-id-start-tests (Files): Likewise.
30601         * modules/unictype/property-ideographic-tests (Files): Likewise.
30602         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
30603         * modules/unictype/property-ids-trinary-operator-tests (Files):
30604         Likewise.
30605         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
30606         * modules/unictype/property-iso-control-tests (Files): Likewise.
30607         * modules/unictype/property-join-control-tests (Files): Likewise.
30608         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
30609         * modules/unictype/property-line-separator-tests (Files): Likewise.
30610         * modules/unictype/property-logical-order-exception-tests (Files):
30611         Likewise.
30612         * modules/unictype/property-lowercase-tests (Files): Likewise.
30613         * modules/unictype/property-math-tests (Files): Likewise.
30614         * modules/unictype/property-non-break-tests (Files): Likewise.
30615         * modules/unictype/property-not-a-character-tests (Files): Likewise.
30616         * modules/unictype/property-numeric-tests (Files): Likewise.
30617         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
30618         * modules/unictype/property-other-default-ignorable-code-point-tests
30619         (Files): Likewise.
30620         * modules/unictype/property-other-grapheme-extend-tests (Files):
30621         Likewise.
30622         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
30623         * modules/unictype/property-other-id-start-tests (Files): Likewise.
30624         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
30625         * modules/unictype/property-other-math-tests (Files): Likewise.
30626         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
30627         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
30628         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
30629         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
30630         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
30631         * modules/unictype/property-private-use-tests (Files): Likewise.
30632         * modules/unictype/property-punctuation-tests (Files): Likewise.
30633         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
30634         * modules/unictype/property-radical-tests (Files): Likewise.
30635         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
30636         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
30637         * modules/unictype/property-space-tests (Files): Likewise.
30638         * modules/unictype/property-terminal-punctuation-tests (Files):
30639         Likewise.
30640         * modules/unictype/property-test-tests (Files): Likewise.
30641         * modules/unictype/property-titlecase-tests (Files): Likewise.
30642         * modules/unictype/property-unassigned-code-value-tests (Files):
30643         Likewise.
30644         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
30645         * modules/unictype/property-uppercase-tests (Files): Likewise.
30646         * modules/unictype/property-variation-selector-tests (Files): Likewise.
30647         * modules/unictype/property-white-space-tests (Files): Likewise.
30648         * modules/unictype/property-xid-continue-tests (Files): Likewise.
30649         * modules/unictype/property-xid-start-tests (Files): Likewise.
30650         * modules/unictype/property-zero-width-tests (Files): Likewise.
30651         * modules/unictype/scripts-tests (Files): Likewise.
30652         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
30653         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
30654         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
30655         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
30656         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
30657         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
30658         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
30659         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
30660         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
30661         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
30662         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
30663         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
30664         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
30665         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
30666         * modules/uninorm/composition-tests (Files): Likewise.
30667         * modules/uninorm/decomposing-form-tests (Files): Likewise.
30668         * modules/uninorm/decomposition-tests (Files): Likewise.
30669         * modules/uninorm/filter-tests (Files): Likewise.
30670         * modules/uninorm/nfc-tests (Files): Likewise.
30671         * modules/uninorm/nfd-tests (Files): Likewise.
30672         * modules/uninorm/nfkc-tests (Files): Likewise.
30673         * modules/uninorm/nfkd-tests (Files): Likewise.
30674         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
30675         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
30676         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
30677         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
30678         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
30679         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
30680         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
30681         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
30682         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
30683         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
30684         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
30685         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
30686         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
30687         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
30688         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
30689         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
30690         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
30691         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
30692         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
30693         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
30694         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
30695         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
30696         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
30697         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
30698         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
30699         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
30700         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
30701         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
30702         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
30703         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
30704         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
30705         * modules/uniwidth/u8-width-tests (Files): Likewise.
30706         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
30707         * modules/uniwidth/u16-width-tests (Files): Likewise.
30708         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
30709         * modules/uniwidth/u32-width-tests (Files): Likewise.
30710         * modules/uniwidth/width-tests (Files): Likewise.
30711         * modules/unlink-tests (Files): Likewise.
30712         * modules/unsetenv-tests (Files): Likewise.
30713         * modules/usleep-tests (Files): Likewise.
30714         * modules/utimens-tests (Files): Likewise.
30715         * modules/utimensat-tests (Files): Likewise.
30716         * modules/vasnprintf-posix-tests (Files): Likewise.
30717         * modules/vasnprintf-tests (Files): Likewise.
30718         * modules/vasprintf-posix-tests (Files): Likewise.
30719         * modules/vasprintf-tests (Files): Likewise.
30720         * modules/vdprintf-posix-tests (Files): Likewise.
30721         * modules/vfprintf-posix-tests (Files): Likewise.
30722         * modules/vprintf-posix-tests (Files): Likewise.
30723         * modules/vsnprintf-posix-tests (Files): Likewise.
30724         * modules/vsnprintf-tests (Files): Likewise.
30725         * modules/vsprintf-posix-tests (Files): Likewise.
30726         * modules/wcrtomb-tests (Files): Likewise.
30727         * modules/wcsnrtombs-tests (Files): Likewise.
30728         * modules/wcsrtombs-tests (Files): Likewise.
30729         * modules/wctype-tests (Files): Likewise.
30730         * modules/wcwidth-tests (Files): Likewise.
30731         * modules/xmemdup0-tests (Files): Likewise.
30732         * modules/xprintf-posix-tests (Files): Likewise.
30733         * modules/xvasprintf-tests (Files): Likewise.
30734
30735 2009-12-24  Eric Blake  <ebb9@byu.net>
30736
30737         test-nanosleep: fix typo
30738         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
30739         patch.
30740         Reported by Bruno Haible.
30741
30742 2009-12-24  Bruno Haible  <bruno@clisp.org>
30743
30744         Reduce namespace pollution on glibc systems.
30745         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
30746         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
30747         systems.
30748         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
30749         <getopt.h> on glibc systems.
30750         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
30751         systems.
30752         * lib/fcntl.c: Include <unistd.h> here instead.
30753
30754 2009-12-24  Bruno Haible  <bruno@clisp.org>
30755
30756         * lib/stdlib.in.h (includes): Fix typo in today's commit.
30757
30758 2009-12-24  Eric Blake  <ebb9@byu.net>
30759
30760         tests: add signature checks
30761         * tests/signature.h (SIGNATURE_CHECK): New file.
30762         * modules/atexit-tests (Files): Use it.
30763         * modules/btowc-tests (Files): Likewise.
30764         * modules/canonicalize-lgpl-tests (Files): Likewise.
30765         * modules/ceilf-tests (Files): Likewise.
30766         * modules/ceill-tests (Files): Likewise.
30767         * modules/chown-tests (Files): Likewise.
30768         * modules/dprintf-posix-tests (Files): Likewise.
30769         * modules/dup2-tests (Files): Likewise.
30770         * modules/dup3-tests (Files): Likewise.
30771         * modules/duplocale-tests (Files): Likewise.
30772         * modules/fchdir-tests (Files): Likewise.
30773         * modules/fcntl-tests (Files): Likewise.
30774         * modules/fdopendir-tests (Files): Likewise.
30775         * modules/fflush-tests (Files): Likewise.
30776         * modules/flock-tests (Files): Likewise.
30777         * modules/floorf-tests (Files): Likewise.
30778         * modules/floorl-tests (Files): Likewise.
30779         * modules/fnmatch-tests (Files): Likewise.
30780         * modules/fopen-tests (Files): Likewise.
30781         * modules/fprintf-posix-tests (Files): Likewise.
30782         * modules/freopen-tests (Files): Likewise.
30783         * modules/frexp-nolibm-tests (Files): Likewise.
30784         * modules/frexp-tests (Files): Likewise.
30785         * modules/frexpl-nolibm-tests (Files): Likewise.
30786         * modules/frexpl-tests (Files): Likewise.
30787         * modules/fseek-tests (Files): Likewise.
30788         * modules/fseeko-tests (Files): Likewise.
30789         * modules/fsync-tests (Files): Likewise.
30790         * modules/ftell-tests (Files): Likewise.
30791         * modules/ftello-tests (Files): Likewise.
30792         * modules/futimens-tests (Files): Likewise.
30793         * modules/getaddrinfo-tests (Files): Likewise.
30794         * modules/getcwd-tests (Files): Likewise.
30795         * modules/getdelim-tests (Files): Likewise.
30796         * modules/getdtablesize-tests (Files): Likewise.
30797         * modules/getgroups-tests (Files): Likewise.
30798         * modules/gethostname-tests (Files): Likewise.
30799         * modules/getline-tests (Files): Likewise.
30800         * modules/getopt-posix-tests (Files): Likewise.
30801         * modules/gettimeofday-tests (Files): Likewise.
30802         * modules/glob-tests (Files): Likewise.
30803         * modules/iconv-tests (Files): Likewise.
30804         * modules/inet_ntop-tests (Files): Likewise.
30805         * modules/inet_pton-tests (Files): Likewise.
30806         * modules/isblank-tests (Files): Likewise.
30807         * modules/lchown-tests (Files): Likewise.
30808         * modules/ldexpl-tests (Files): Likewise.
30809         * modules/link-tests (Files): Likewise.
30810         * modules/linkat-tests (Files): Likewise.
30811         * modules/lseek-tests (Files): Likewise.
30812         * modules/lstat-tests (Files): Likewise.
30813         * modules/mbrtowc-tests (Files): Likewise.
30814         * modules/mbsinit-tests (Files): Likewise.
30815         * modules/mbsnrtowcs-tests (Files): Likewise.
30816         * modules/mbsrtowcs-tests (Files): Likewise.
30817         * modules/memchr-tests (Files): Likewise.
30818         * modules/memcmp-tests (Files): Likewise.
30819         * modules/memmem-tests (Files): Likewise.
30820         * modules/memrchr-tests (Files): Likewise.
30821         * modules/mkdir-tests (Files): Likewise.
30822         * modules/mkfifo-tests (Files): Likewise.
30823         * modules/mkfifoat-tests (Files): Likewise.
30824         * modules/mknod-tests (Files): Likewise.
30825         * modules/nanosleep-tests (Files): Likewise.
30826         * modules/nl_langinfo-tests (Files): Likewise.
30827         * modules/obstack-printf-tests (Files): Likewise.
30828         * modules/open-tests (Files): Likewise.
30829         * modules/openat-tests (Files): Likewise.
30830         * modules/perror-tests (Files): Likewise.
30831         * modules/pipe2-tests (Files): Likewise.
30832         * modules/poll-tests (Files): Likewise.
30833         * modules/popen-tests (Files): Likewise.
30834         * modules/posix_spawn-tests (Files): Likewise.
30835         * modules/posix_spawnp-tests (Files): Likewise.
30836         * modules/pread-tests (Files): Likewise.
30837         * modules/printf-posix-tests (Files): Likewise.
30838         * modules/pty-tests (Files): Likewise.
30839         * modules/random_r-tests (Files): Likewise.
30840         * modules/rawmemchr-tests (Files): Likewise.
30841         * modules/readlink-tests (Files): Likewise.
30842         * modules/remove-tests (Files): Likewise.
30843         * modules/rename-tests (Files): Likewise.
30844         * modules/renameat-tests (Files): Likewise.
30845         * modules/rmdir-tests (Files): Likewise.
30846         * modules/round-tests (Files): Likewise.
30847         * modules/roundf-tests (Files): Likewise.
30848         * modules/roundl-tests (Files): Likewise.
30849         * modules/select-tests (Files): Likewise.
30850         * modules/setenv-tests (Files): Likewise.
30851         * modules/sigaction-tests (Files): Likewise.
30852         * modules/sleep-tests (Files): Likewise.
30853         * modules/snprintf-posix-tests (Files): Likewise.
30854         * modules/snprintf-tests (Files): Likewise.
30855         * modules/sprintf-posix-tests (Files): Likewise.
30856         * modules/stat-tests (Files): Likewise.
30857         * modules/strcasestr-tests (Files): Likewise.
30858         * modules/strchrnul-tests (Files): Likewise.
30859         * modules/strerror-tests (Files): Likewise.
30860         * modules/strsignal-tests (Files): Likewise.
30861         * modules/strstr-tests (Files): Likewise.
30862         * modules/strtod-tests (Files): Likewise.
30863         * modules/strverscmp-tests (Files): Likewise.
30864         * modules/symlink-tests (Files): Likewise.
30865         * modules/symlinkat-tests (Files): Likewise.
30866         * modules/times-tests (Files): Likewise.
30867         * modules/trunc-tests (Files): Likewise.
30868         * modules/truncf-tests (Files): Likewise.
30869         * modules/truncl-tests (Files): Likewise.
30870         * modules/tsearch-tests (Files): Likewise.
30871         * modules/uname-tests (Files): Likewise.
30872         * modules/unlink-tests (Files): Likewise.
30873         * modules/unsetenv-tests (Files): Likewise.
30874         * modules/usleep-tests (Files): Likewise.
30875         * modules/utimensat-tests (Files): Likewise.
30876         * modules/vasprintf-tests (Files): Likewise.
30877         * modules/vdprintf-posix-tests (Files): Likewise.
30878         * modules/vfprintf-posix-tests (Files): Likewise.
30879         * modules/vprintf-posix-tests (Files): Likewise.
30880         * modules/vsnprintf-posix-tests (Files): Likewise.
30881         * modules/vsnprintf-tests (Files): Likewise.
30882         * modules/vsprintf-posix-tests (Files): Likewise.
30883         * modules/wcrtomb-tests (Files): Likewise.
30884         * modules/wcsnrtombs-tests (Files): Likewise.
30885         * modules/wcsrtombs-tests (Files): Likewise.
30886         * modules/wcwidth-tests (Files): Likewise.
30887         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
30888         * tests/test-isinf.c (isinf): Likewise.
30889         * tests/test-isnan.c (isnan): Likewise.
30890         * tests/test-signbit.c (signbit): Likewise.
30891         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
30892         declaration, either as macro or with correct signature.
30893         (select): Ensure function under test is declared with correct
30894         signature in correct header.
30895         * tests/test-atexit.c (atexit): Likewise.
30896         * tests/test-btowc.c (btowc): Likewise.
30897         * tests/test-canonicalize-lgpl.c (realpath)
30898         (canonicalize_file_name): Likewise.
30899         * tests/test-ceilf1.c (ceilf): Likewise.
30900         * tests/test-ceill.c (ceill): Likewise.
30901         * tests/test-chown.c (chown): Likewise.
30902         * tests/test-dprintf-posix.c (dprintf): Likewise.
30903         * tests/test-dup2.c (dup2): Likewise.
30904         * tests/test-dup3.c (dup3): Likewise.
30905         * tests/test-duplocale.c (duplocale): Likewise.
30906         * tests/test-fchdir.c (fchdir): Likewise.
30907         * tests/test-fchownat.c (fchownat): Likewise.
30908         * tests/test-fcntl.c (fcntl): Likewise.
30909         * tests/test-fdopendir.c (fdopendir): Likewise.
30910         * tests/test-fflush.c (fflush): Likewise.
30911         * tests/test-flock.c (flock): Likewise.
30912         * tests/test-floorf1.c (floorf): Likewise.
30913         * tests/test-floorl.c (floorl): Likewise.
30914         * tests/test-fnmatch.c (fnmatch): Likewise.
30915         * tests/test-fopen.c (fopen): Likewise.
30916         * tests/test-fprintf-posix.c (fprintf): Likewise.
30917         * tests/test-freopen.c (freopen): Likewise.
30918         * tests/test-frexp.c (frexp): Likewise.
30919         * tests/test-frexpl.c (frexpl): Likewise.
30920         * tests/test-fseek.c (fseek): Likewise.
30921         * tests/test-fseeko.c (fseeko): Likewise.
30922         * tests/test-fstatat.c (fstatat): Likewise.
30923         * tests/test-fsync.c (fsync): Likewise.
30924         * tests/test-ftell.c (ftell): Likewise.
30925         * tests/test-ftello.c (ftello): Likewise.
30926         * tests/test-futimens.c (futimens): Likewise.
30927         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
30928         (gai_strerror): Likewise.
30929         * tests/test-getcwd.c (getcwd): Likewise.
30930         * tests/test-getdelim.c (getdelim): Likewise.
30931         * tests/test-getdtablesize.c (getdtablesize): Likewise.
30932         * tests/test-getgroups.c (getgroups): Likewise.
30933         * tests/test-gethostname.c (gethostname): Likewise.
30934         * tests/test-getline.c (getline): Likewise.
30935         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
30936         Likewise.
30937         * tests/test-gettimeofday.c (gettimeofday): Likewise.
30938         * tests/test-glob.c (glob, globfree): Likewise.
30939         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
30940         * tests/test-inet_ntop.c (inet_ntop): Likewise.
30941         * tests/test-inet_pton.c (inet_pton): Likewise.
30942         * tests/test-isblank.c (isblank): Likewise.
30943         * tests/test-lchown.c (lchown): Likewise.
30944         * tests/test-ldexpl.c (ldexpl): Likewise.
30945         * tests/test-link.c (link): Likewise.
30946         * tests/test-linkat.c (linkat): Likewise.
30947         * tests/test-lseek.c (lseek): Likewise.
30948         * tests/test-lstat.c (lstat): Likewise.
30949         * tests/test-mbrtowc.c (mbrtowc): Likewise.
30950         * tests/test-mbsinit.c (mbsinit): Likewise.
30951         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
30952         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
30953         * tests/test-memchr.c (memchr): Likewise.
30954         * tests/test-memcmp.c (memcmp): Likewise.
30955         * tests/test-memmem.c (memmem): Likewise.
30956         * tests/test-memrchr.c (memrchr): Likewise.
30957         * tests/test-mkdir.c (mkdir): Likewise.
30958         * tests/test-mkdirat.c (mkdirat): Likewise.
30959         * tests/test-mkfifo.c (mkfifo): Likewise.
30960         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
30961         * tests/test-mknod.c (mknod): Likewise.
30962         * tests/test-nanosleep.c (nanosleep): Likewise.
30963         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
30964         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
30965         Likewise.
30966         * tests/test-open.c (open): Likewise.
30967         * tests/test-openat.c (openat): Likewise.
30968         * tests/test-perror.c (perror): Likewise.
30969         * tests/test-pipe2.c (pipe2): Likewise.
30970         * tests/test-poll.c (poll): Likewise.
30971         * tests/test-popen.c (popen, pclose): Likewise.
30972         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
30973         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
30974         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
30975         (posix_spawn_file_actions_destroy)
30976         (posix_spawn_file_actions_addclose)
30977         (posix_spawn_file_actions_addopen)
30978         (posix_spawn_file_actions_adddup2): Likewise.
30979         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
30980         * tests/test-pread.c (pread): Likewise.
30981         * tests/test-printf-posix.c (printf): Likewise.
30982         * tests/test-pty.c (openpty, forkpty): Likewise.
30983         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
30984         (random_r): Likewise.
30985         * tests/test-rawmemchr.c (rawmemchr): Likewise.
30986         * tests/test-readlink.c (readlink): Likewise.
30987         * tests/test-remove.c (remove): Likewise.
30988         * tests/test-rename.c (rename): Likewise.
30989         * tests/test-renameat.c (renameat): Likewise.
30990         * tests/test-rmdir.c (rmdir): Likewise.
30991         * tests/test-round1.c (round): Likewise.
30992         * tests/test-roundf1.c (roundf): Likewise.
30993         * tests/test-roundl.c (roundl): Likewise.
30994         * tests/test-setenv.c (setenv): Likewise.
30995         * tests/test-sigaction.c (sigaction): Likewise.
30996         * tests/test-sleep.c (sleep): Likewise.
30997         * tests/test-snprintf.c (snprintf): Likewise.
30998         * tests/test-sprintf-posix.c (sprintf): Likewise.
30999         * tests/test-stat.c (stat): Likewise.
31000         * tests/test-stpncpy.c (stpncpy): Likewise.
31001         * tests/test-strcasestr.c (strcasestr): Likewise.
31002         * tests/test-strchrnul.c (strchrnul): Likewise.
31003         * tests/test-strerror.c (strerror): Likewise.
31004         * tests/test-strsignal.c (strsignal): Likewise.
31005         * tests/test-strstr.c (strstr): Likewise.
31006         * tests/test-strtod.c (strtod): Likewise.
31007         * tests/test-strverscmp.c (strverscmp): Likewise.
31008         * tests/test-symlink.c (symlink): Likewise.
31009         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
31010         * tests/test-times.c (times): Likewise.
31011         * tests/test-trunc1.c (trunc): Likewise.
31012         * tests/test-truncf1.c (truncf): Likewise.
31013         * tests/test-truncl.c (truncl): Likewise.
31014         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
31015         Likewise.
31016         * tests/test-uname.c (uname): Likewise.
31017         * tests/test-unlink.c (unlink): Likewise.
31018         * tests/test-unlinkat.c (unlinkat): Likewise.
31019         * tests/test-unsetenv.c (unsetenv): Likewise.
31020         * tests/test-usleep.c (usleep): Likewise.
31021         * tests/test-utimensat.c (utimensat): Likewise.
31022         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
31023         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
31024         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
31025         * tests/test-vprintf-posix.c (vprintf): Likewise.
31026         * tests/test-vsnprintf.c (vsnprintf): Likewise.
31027         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
31028         * tests/test-wcrtomb.c (wcrtomb): Likewise.
31029         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
31030         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
31031         * tests/test-wcwidth.c (wcwidth): Likewise.
31032
31033         build: pull in conditional headers during GNULIB_POSIXCHECK
31034         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
31035         definitions from any conditionally-included headers.
31036         * lib/stdlib.in.h (includes): Likewise.
31037         * lib/unistd.in.h (includes): Likewise.
31038
31039 2009-12-24  Bruno Haible  <bruno@clisp.org>
31040
31041         * tests/test-argv-iter.c: Include header file being tested immediately
31042         after config.h.
31043         * tests/test-base64.c: Likewise.
31044         * tests/test-flock.c: Likewise.
31045         * tests/test-fsync.c: Likewise.
31046         * tests/test-getdate.c: Likewise.
31047         * tests/test-getndelim2.c: Likewise.
31048         * tests/test-isfinite.c: Likewise.
31049         * tests/test-isinf.c: Likewise.
31050         * tests/test-strerror.c: Likewise.
31051         * tests/test-strsignal.c: Likewise.
31052
31053 2009-12-23  Eric Blake  <ebb9@byu.net>
31054
31055         unistd: work around cygwin bug
31056         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
31057         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
31058         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
31059
31060 2009-12-23  Bruno Haible  <bruno@clisp.org>
31061
31062         localename: More tests.
31063         * tests/test-localename.c (SIZEOF): New macro.
31064         (categories): New variable.
31065         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
31066         test_locale_name_default): Add test w.r.t. thread locale.
31067         (test_locale_name_thread): New function.
31068         (main): Invoke it.
31069
31070         localename: Make aware of thread locale.
31071         * lib/localename.h (gl_locale_name_thread): New declaration.
31072         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
31073         behaviour with respect to thread locale.
31074         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
31075         <langinfo.h>, glthread/lock.h.
31076         (SIZE_BITS): New macro.
31077         (string_hash): New function.
31078         (struct hash_node): New type.
31079         (HASH_TABLE_SIZE): New macro.
31080         (struniq_hash_table, struniq_lock): New variables.
31081         (struniq): New function.
31082         (gl_locale_name_thread): New function.
31083         (gl_locale_name): Invoke it.
31084         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
31085         * modules/localename (Depends-on): Add lock.
31086         Reported by Mike Gran <spk121@yahoo.com>.
31087
31088 2009-12-23  Eric Blake  <ebb9@byu.net>
31089
31090         va-args: new module
31091         * modules/va-args: New file.
31092         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
31093         * MODULES.html.sh (Core language properties): Mention it.
31094
31095         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
31096         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
31097         named alias for __attribute__((__unused__)).
31098         * lib/chown.c: Update client.
31099         * lib/fchmodat.c: Likewise.
31100         * lib/fts.c: Likewise.
31101         * lib/getdate.y: Likewise.
31102         * lib/getgroups.c: Likewise.
31103         * lib/getopt.c: Likewise.
31104         * lib/getugroups.c: Likewise.
31105         * lib/mkdir.c: Likewise.
31106         * lib/mkfifo.c: Likewise.
31107         * lib/mkfifoat.c: Likewise.
31108         * lib/mknod.c: Likewise.
31109         * lib/mknodat.c: Likewise.
31110         * lib/readlink.c: Likewise.
31111         * lib/se-context.in.h: Likewise.
31112         * lib/se-selinux.in.h: Likewise.
31113         * lib/sockets.c: Likewise.
31114         * lib/symlink.c: Likewise.
31115         * lib/symlinkat.c: Likewise.
31116         * lib/unicodeio.c: Likewise.
31117         * lib/unistr.h: Likewise.
31118         * tests/test-areadlink.c: Likewise.
31119         * tests/test-areadlinkat.c: Likewise.
31120         * tests/test-filenamecat.c: Likewise.
31121         * tests/test-fseeko.c: Likewise.
31122         * tests/test-ftello.c: Likewise.
31123         * tests/test-getdate.c: Likewise.
31124         * tests/test-getgroups.c: Likewise.
31125         * tests/test-gethostname.c: Likewise.
31126         * tests/test-quotearg.c: Likewise.
31127         * tests/test-version-etc.c: Likewise.
31128         * tests/test-xalloc-die.c: Likewise.
31129         * tests/test-xfprintf-posix.c: Likewise.
31130         * tests/test-xprintf-posix.c: Likewise.
31131         * tests/test-xvasprintf.c: Likewise.
31132
31133         tests: avoid compiler warnings
31134         * tests/test-fcntl.c (main): Delete unused parameters.
31135         * tests/test-freopen-safer.c (main): Likewise.
31136         * tests/test-xalloc-die.c (main): Mark unused parameters.
31137         * tests/test-fseeko.c (main): Likewise.
31138         * tests/test-ftello.c (main): Likewise.
31139         * tests/test-nanosleep.c (main): Avoid declaration warning.
31140         * tests/test-sleep.c (main): Likewise.
31141         * tests/test-unsetenv.c (main): Silence warning about string
31142         literal.
31143         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
31144
31145 2009-12-23  Bruno Haible  <bruno@clisp.org>
31146
31147         * tests/test-localename.c (test_locale_name): New function, extracted
31148         from main. Also test mixed situations.
31149         (test_locale_name_posix, test_locale_name_environ,
31150         test_locale_name_default): New functions.
31151         (main): Invoke them all.
31152         * modules/localename-tests (configure.ac): Test for newlocale.
31153
31154 2009-12-23  Bruno Haible  <bruno@clisp.org>
31155
31156         unistd: Ensure getcwd gets declared before being overridden.
31157         * lib/unistd.in.h: Conditionally include <io.h>.
31158
31159 2009-12-22  Bruno Haible  <bruno@clisp.org>
31160
31161         wchar: Diagnose broken combination of glibc and gcc versions and flags.
31162         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
31163         (gl_WCHAR_H): Invoke it.
31164         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
31165         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
31166         Reported by Karl Berry <karl@freefriends.org>.
31167
31168 2009-12-22  Eric Blake  <ebb9@byu.net>
31169
31170         math, unistd: avoid redundant includes
31171         * lib/math.in.h (isnan): No need to re-include <math.h>.
31172         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
31173
31174         getsubopt: work around cygwin bug
31175         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
31176         avoid conflicting with system getsubopt.
31177         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
31178         bug.
31179
31180         getopt: synchronize from glibc
31181         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
31182         parameter order.  Adjust all callers.
31183         (_getopt_internal_r, main): Adjust quoting in error messages.
31184         Drop considerations for outdated POSIX 1003.2 error message.
31185         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
31186         callers.
31187         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
31188
31189         test-getopt: test stderr behavior
31190         * modules/getopt-posix-tests (Depends-on): Add dup2.
31191         * tests/test-getopt.c (ASSERT): Avoid stderr.
31192         (main): Move stderr to a temporary file.
31193         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
31194         Instead, add parameter to inform caller if output occurred.
31195         (test_getopt): Adjust all existing tests to expect silence, and
31196         add new tests of leading ":".
31197         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
31198         glibc shortcomings with leading "-:" or "+:" in optstring.
31199         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
31200         Likewise.
31201         * doc/posix-functions/getopt.texi (getopt): Likewise.
31202
31203         test-getopt: enhance test
31204         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
31205         supports optind=0.
31206         * tests/test-getopt.c (OPTIND_MIN): Move...
31207         * tests/test-getopt.h (OPTIND_MIN): ...here.
31208         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
31209         Require that optind=0 works, since modern BSD supports it in
31210         addition to optreset, and since coreutils expects it.
31211         (test_getopt_long_only): New test.
31212         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
31213         glibc shortcomings with 'W;', and enforcement of optind=0.
31214         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
31215         Likewise.
31216
31217 2009-12-21  Bruno Haible  <bruno@clisp.org>
31218
31219         localename: Improvements for MacOS X and Cygwin.
31220         * lib/localename.h (gl_locale_name_environ): New declaration.
31221         * lib/localename.c (gl_locale_name_environ): New function, extracted from
31222         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
31223         (gl_locale_name_posix): Invoke it.
31224         (gl_locale_name_default): Add comments. Use Windows native API also on
31225         Cygwin.
31226
31227 2009-12-21  Bruno Haible  <bruno@clisp.org>
31228
31229         Update list of Win32 locale ids.
31230         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
31231         (LANG_SAMI): Renamed from LANG_SAAMI.
31232         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
31233         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
31234         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
31235         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
31236         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
31237         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
31238         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
31239         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
31240         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
31241         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
31242         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
31243         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
31244         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
31245         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
31246         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
31247         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
31248         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
31249         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
31250         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
31251         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
31252         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
31253         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
31254         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
31255         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
31256         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
31257         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
31258         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
31259         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
31260         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
31261         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
31262         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
31263         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
31264         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
31265         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
31266         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
31267         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
31268         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
31269         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
31270         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
31271         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
31272         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
31273         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
31274         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
31275         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
31276         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
31277         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
31278         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
31279         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
31280         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
31281         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
31282         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
31283         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
31284         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
31285         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
31286         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
31287         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
31288         Add more languages and countries for Sami, Sorbian. Add more countries
31289         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
31290         for Pashto. Change country for Syriac, Tswana.
31291
31292 2009-12-21  Eric Blake  <ebb9@byu.net>
31293
31294         test-utimens: avoid spurious failure
31295         * tests/test-chown.h (nap): Factor...
31296         * tests/nap.h: ...into new file.
31297         * tests/test-lchown.h (nap): Avoid duplication.
31298         * tests/test-utimens-common.h (nap): Use shared implementation,
31299         necessary on file systems with 1-second resolution.
31300         * modules/chown-tests (Files): Include new file.
31301         * modules/fdutimensat-tests (Files): Likewise.
31302         * modules/futimens-tests (Files): Likewise.
31303         * modules/lchown-tests (Files): Likewise.
31304         * modules/openat-tests (Files): Likewise.
31305         * modules/utimens-tests (Files): Likewise.
31306         * modules/utimensat-tests (Files): Likewise.
31307
31308 2009-12-19  Eric Blake  <ebb9@byu.net>
31309
31310         futimens, utimensat: work around Linux bug
31311         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
31312         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
31313         * lib/utimensat.c (rpl_utimensat): Work around it.
31314         * lib/futimens.c (rpl_futimens): Adjust comment.
31315
31316         utimens: work around Linux ctime bug
31317         * lib/utimens.c (detect_ctime_bug): New helper function.
31318         (update_timespec): Differentiate between workaround needed for
31319         this bug vs. what is needed for systems that lack utimensat.
31320         (fdutimens, lutimens): Work around bug.
31321
31322         utimens: check for ctime update
31323         * tests/test-utimens-common.h (check_ctime): Define.
31324         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
31325         * tests/test-futimens.h (test_futimens): Likewise.
31326         * tests/test-lutimens.h (test_lutimens): Likewise.
31327         * doc/posix-functions/futimens.texi (futimens): Document the bug.
31328         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
31329
31330 2009-12-19  Bruno Haible  <bruno@clisp.org>
31331
31332         dprintf-posix: Check against memory leak fixed on 2009-12-15.
31333         * tests/test-dprintf-posix2.sh: New file.
31334         * tests/test-dprintf-posix2.c: New file.
31335         * modules/dprintf-posix-tests (Files): Add them.
31336         (configure.ac): Check for getrlimit and setrlimit.
31337         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
31338
31339 2009-12-19  Bruno Haible  <bruno@clisp.org>
31340
31341         fprintf-posix: Check against memory leak fixed on 2009-12-15.
31342         * tests/test-fprintf-posix3.sh: New file.
31343         * tests/test-fprintf-posix3.c: New file.
31344         * modules/fprintf-posix-tests (Files): Add them.
31345         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
31346
31347 2009-12-19  Eric Blake  <ebb9@byu.net>
31348
31349         dirfd: fix prototype
31350         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
31351         * lib/dirfd.c (dirfd): Likewise.
31352
31353         canonicalize: reduce memory usage
31354         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
31355         allocation to size.
31356         Reported by Solar Designer <solar@openwall.com>.
31357
31358 2009-12-19  Bruno Haible  <bruno@clisp.org>
31359
31360         New module attribute 'Applicability'.
31361         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
31362         * gnulib-tool: New option --extract-applicability.
31363         (func_usage): Document it.
31364         (sed_extract_prog): Recognize it.
31365         (func_get_applicability): New function.
31366         (func_import): Generalize handling of 'link-warning' module.
31367         * modules/link-warning (Applicability): New section.
31368         * modules/arg-nonnull (Applicability): New section.
31369         Repoted by Simon Josefsson <simon@josefsson.org>.
31370
31371 2009-12-19  Bruno Haible  <bruno@clisp.org>
31372
31373         fflush: tweak
31374         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
31375         * lib/fseeko.c (rpl_fseeko): Likewise.
31376
31377 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
31378
31379         * lib/gl_list.h: Fix typo in comment.
31380
31381 2009-12-16  Eric Blake  <ebb9@byu.net>
31382
31383         fcntl: use to simplify other modules
31384         * modules/cloexec (Depends-on): Add fcntl.
31385         * modules/fchdir (Depends-on): Likewise.
31386         * modules/fd-safer-flag (Depends-on): Likewise.
31387         * modules/unistd-safer (Depends-on): Likewise.
31388         * modules/dup3 (configure.ac): Set module indicator.
31389         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
31390         missing.
31391         * lib/fchdir.c (_gl_register_dup): Fix comment.
31392         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
31393         * lib/dup-safer.c (dup_safer): Likewise.
31394         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
31395         * lib/dup3.c (dup3): Likewise.
31396         * tests/test-fchdir.c (main): Enhance test.
31397         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
31398
31399         fcntl: port portions of fcntl to mingw
31400         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
31401         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
31402         replacement for mingw.
31403         * modules/fcntl (Description): Update.
31404         (Depends-on): Add dup2.
31405         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
31406         * modules/fcntl-h (Makefile.am): Substitute it.
31407         * lib/fcntl.in.h (fcntl): Update declaration.
31408         (F_DUPFD, F_GETFD): New macros, when needed.
31409         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
31410         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
31411         * tests/test-fcntl.c (check_flags, main): Enhance test for items
31412         we now guarantee.
31413
31414         fcntl: work around cygwin bug in F_DUPFD
31415         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
31416         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
31417         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
31418         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
31419         * doc/posix-functions/fcntl.texi (fcntl): Document it.
31420
31421         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
31422         * modules/fcntl (Files): List new files.
31423         (configure.ac): Run a test.
31424         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
31425         * lib/fcntl.c (rpl_fcntl): Likewise.
31426         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
31427         (gl_FCNTL_H): Always replace fcntl.h.
31428         * modules/fcntl-h (Makefile.am): Substitute witnesses.
31429         * lib/fcntl.in.h (fcntl): Declare replacement.
31430         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
31431         needed, plus a witness.
31432         * doc/posix-functions/fcntl.texi (fcntl): Document this.
31433         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
31434         * tests/test-fcntl.c: New file.
31435         * modules/fcntl-tests: Likewise.
31436
31437         binary-io: avoid potential compilation warning
31438         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
31439         directives.
31440
31441         fflush: avoid compilation error on NetBSD
31442         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
31443         between off_t and fpos_t, since the latter is sometimes a struct.
31444         * lib/fseeko.c (rpl_fseeko): Likewise.
31445         Reported by Alexander Nasonov <alnsn@yandex.ru>.
31446
31447 2009-12-15  Eric Blake  <ebb9@byu.net>
31448
31449         fcntl-h, stdio, sys_ioctl: fix declarations
31450         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
31451         function must not take arguments.
31452         * lib/sys_ioctl.in.h (ioctl): Likewise.
31453         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
31454         (open): Add a link warning.
31455
31456 2009-12-15  Jim Meyering  <meyering@redhat.com>
31457
31458         areadlink, areadlink-with-size: relax license to LGPLv2+
31459         * modules/areadlink (License): Relax to LGPLv2+.
31460         * modules/areadlink-with-size (License): Likewise.
31461
31462 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
31463             Bruno Haible  <bruno@clisp.org>
31464
31465         *printf: Fix memory leak.
31466         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
31467         * lib/vfprintf.c (vfprintf): Likewise.
31468         * lib/dprintf.c (dprintf): Likewise.
31469         * lib/vdprintf.c (vdprintf): Likewise.
31470
31471 2009-12-14  Eric Blake  <ebb9@byu.net>
31472
31473         accept4: adjust module dependencies
31474         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
31475
31476         utimens: one more try at avoiding compiler warning
31477         * lib/utimens.c (lutimens): Lower scope of result.
31478
31479 2009-12-13  Bruno Haible  <bruno@clisp.org>
31480
31481         Move the malloc checking from module 'list' to new module 'xlist'.
31482         * modules/xlist: New file.
31483         * lib/gl_xlist.h: New file.
31484         * lib/gl_xlist.c: New file.
31485         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
31486         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
31487         gl_list_add_last, gl_list_add_before, gl_list_add_after,
31488         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
31489         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
31490         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
31491         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
31492         gl_sortedlist_nx_add): New declarations.
31493         (struct gl_list_implementation): Rename and change methods accordingly.
31494         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
31495         (gl_list_nx_create): Renamed from gl_list_create.
31496         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
31497         (gl_list_nx_set_at): Renamed from gl_list_set_at.
31498         (gl_list_nx_add_first): Renamed from gl_list_add_first.
31499         (gl_list_nx_add_last): Renamed from gl_list_add_last.
31500         (gl_list_nx_add_before): Renamed from gl_list_add_before.
31501         (gl_list_nx_add_after): Renamed from gl_list_add_after.
31502         (gl_list_nx_add_at): Renamed from gl_list_add_at.
31503         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
31504         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
31505         gl_list_create_empty.
31506         (gl_list_nx_create): Renamed from gl_list_create.
31507         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
31508         (gl_list_nx_set_at): Renamed from gl_list_set_at.
31509         (gl_list_nx_add_first): Renamed from gl_list_add_first.
31510         (gl_list_nx_add_last): Renamed from gl_list_add_last.
31511         (gl_list_nx_add_before): Renamed from gl_list_add_before.
31512         (gl_list_nx_add_after): Renamed from gl_list_add_after.
31513         (gl_list_nx_add_at): Renamed from gl_list_add_at.
31514         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
31515         * lib/gl_array_list.c: Don't include xalloc.h.
31516         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
31517         NULL upon out-of-memory.
31518         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
31519         out-of-memory.
31520         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
31521         Change return type to 'int'.
31522         (gl_array_nx_set_at): Renamed from gl_array_set_at.
31523         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
31524         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
31525         upon out-of-memory.
31526         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
31527         upon out-of-memory.
31528         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
31529         upon out-of-memory.
31530         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
31531         upon out-of-memory.
31532         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
31533         out-of-memory.
31534         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
31535         Update.
31536         (gl_array_list_implementation): Update.
31537         * lib/gl_carray_list.c: Don't include xalloc.h.
31538         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
31539         Return NULL upon out-of-memory.
31540         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
31541         out-of-memory.
31542         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
31543         Change return type to 'int'.
31544         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
31545         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
31546         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
31547         upon out-of-memory.
31548         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
31549         upon out-of-memory.
31550         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
31551         out-of-memory.
31552         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
31553         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
31554         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
31555         Update.
31556         (gl_carray_list_implementation): Update.
31557         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
31558         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
31559         gl_linked_create_empty. Return NULL upon out-of-memory.
31560         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
31561         out-of-memory.
31562         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
31563         Change return type to 'int'. Return -1 upon out-of-memory.
31564         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
31565         out-of-memory.
31566         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
31567         upon out-of-memory.
31568         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
31569         upon out-of-memory.
31570         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
31571         NULL upon out-of-memory.
31572         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
31573         upon out-of-memory.
31574         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
31575         out-of-memory.
31576         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
31577         Update.
31578         * lib/gl_linked_list.c: Don't include xalloc.h.
31579         (gl_linked_list_implementation): Update.
31580         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
31581         (add_to_bucket): Change return type to 'int'.
31582         (gl_linkedhash_list_implementation): Update.
31583         * lib/gl_anytree_list1.h (free_subtree): New function.
31584         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
31585         gl_tree_create_empty. Return NULL upon out-of-memory.
31586         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
31587         Change return type to 'int'. Return -1 upon out-of-memory.
31588         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
31589         out-of-memory.
31590         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
31591         (gl_tree_remove_node): New function, moved here from
31592         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
31593         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
31594         Update.
31595         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
31596         malloc, not xmalloc. Return NULL upon out-of-memory.
31597         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
31598         out-of-memory.
31599         (gl_tree_remove_node_from_tree): New function, extracted from
31600         gl_tree_remove_node.
31601         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
31602         upon out-of-memory.
31603         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
31604         out-of-memory.
31605         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
31606         upon out-of-memory.
31607         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
31608         upon out-of-memory.
31609         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
31610         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
31611         not xmalloc. Return NULL upon out-of-memory.
31612         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
31613         out-of-memory.
31614         (gl_tree_remove_node_from_tree): New function, extracted from
31615         gl_tree_remove_node.
31616         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
31617         upon out-of-memory.
31618         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
31619         out-of-memory.
31620         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
31621         upon out-of-memory.
31622         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
31623         upon out-of-memory.
31624         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
31625         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
31626         gl_anytree_list1.h before gl_anyavltree_list2.h.
31627         (gl_avltree_list_implementation): Update.
31628         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
31629         gl_anytree_list1.h before gl_anyavltree_list2.h.
31630         (gl_rbtree_list_implementation): Update.
31631         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
31632         Change return type to 'int'. Return -1 upon out-of-memory. Use
31633         __builtin_expect.
31634         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
31635         (gl_avltreehash_list_implementation): Update.
31636         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
31637         (gl_rbtreehash_list_implementation): Update.
31638         * modules/array-list (Depends-on): Remove xalloc.
31639         * modules/carray-list (Depends-on): Likewise.
31640         * modules/linked-list (Depends-on): Likewise.
31641         * modules/linkedhash-list (Depends-on): Likewise.
31642         * modules/avltree-list (Depends-on): Likewise.
31643         * modules/rbtree-list (Depends-on): Likewise.
31644         * modules/avltreehash-list (Depends-on): Likewise.
31645         * modules/rbtreehash-list (Depends-on): Likewise.
31646
31647         * modules/xsublist: New file.
31648         * lib/gl_xsublist.h: New file.
31649         * lib/gl_xsublist.c: New file.
31650         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
31651         (gl_sublist_nx_create): New declaration.
31652         * lib/gl_sublist.c: Don't include xalloc.h.
31653         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
31654         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
31655         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
31656         Change return type to 'int'. Return -1 upon out-of-memory.
31657         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
31658         upon out-of-memory.
31659         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
31660         NULL upon out-of-memory.
31661         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
31662         upon out-of-memory.
31663         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
31664         NULL upon out-of-memory.
31665         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
31666         NULL upon out-of-memory.
31667         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
31668         upon out-of-memory.
31669         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
31670         (gl_sublist_list_implementation): Update.
31671         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
31672         upon out-of-memory.
31673         * modules/sublist (Depends-on): Remove xalloc.
31674
31675         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
31676         * tests/test-carray_list.c: Likewise.
31677         * tests/test-linked_list.c: Likewise.
31678         * tests/test-linkedhash_list.c: Likewise.
31679         * tests/test-avltree_list.c: Likewise.
31680         * tests/test-rbtree_list.c: Likewise.
31681         * tests/test-avltreehash_list.c: Likewise.
31682         * tests/test-rbtreehash_list.c: Likewise.
31683         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
31684         * modules/carray-list-tests (Makefile.am): Likewise.
31685         * modules/linked-list-tests (Makefile.am): Likewise.
31686         * modules/linkedhash-list-tests (Makefile.am): Likewise.
31687         * modules/avltree-list-tests (Makefile.am): Likewise.
31688         * modules/rbtree-list-tests (Makefile.am): Likewise.
31689         * modules/avltreehash-list-tests (Makefile.am): Likewise.
31690         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
31691
31692         * NEWS: Mention the changes.
31693
31694         * lib/clean-temp.c: Include gl_xlist.h.
31695         * modules/clean-temp (Depends-on): Add xlist.
31696
31697         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
31698         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
31699
31700         * tests/test-array_oset.c: Include gl_xlist.h.
31701         * modules/array-oset-tests (Depends-on): Add xlist.
31702
31703         Reported by José E. Marchesi <jemarch@gnu.org>.
31704
31705 2009-12-13  Bruno Haible  <bruno@clisp.org>
31706
31707         Move the malloc checking from module 'oset' to new module 'xoset'.
31708         * modules/xoset: New file.
31709         * lib/gl_xoset.h: New file.
31710         * lib/gl_xoset.c: New file.
31711         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
31712         declarations.
31713         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
31714         (struct gl_oset_implementation): Rename and change methods accordingly.
31715         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
31716         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
31717         'int'. Mark as __warn_unused_result__.
31718         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
31719         gl_oset_create_empty.
31720         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
31721         'int'.
31722         * lib/gl_array_oset.c: Don't include xalloc.h.
31723         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
31724         malloc, not xmalloc.
31725         (grow): Change return type to 'int'. Don't call xalloc_die.
31726         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
31727         to 'int'.
31728         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
31729         'int'.
31730         (gl_array_oset_implementation): Update.
31731         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
31732         gl_tree_create_empty.
31733         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
31734         'int'.
31735         * lib/gl_avltree_oset.c: Don't include xalloc.h.
31736         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
31737         xmalloc.
31738         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
31739         not xmalloc.
31740         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
31741         xmalloc.
31742         (gl_avltree_oset_implementation): Update.
31743         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
31744         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
31745         xmalloc.
31746         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
31747         not xmalloc.
31748         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
31749         xmalloc.
31750         (gl_rbtree_oset_implementation): Update.
31751         * modules/array-oset (Depends-on): Remove xalloc.
31752         * modules/avltree-oset (Depends-on): Likewise.
31753         * modules/rbtree-oset (Depends-on): Likewise.
31754         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
31755         * tests/test-avltree_oset.c: Likewise.
31756         * tests/test-rbtree_oset.c: Likewise.
31757         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
31758         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
31759         * modules/rbtree-oset-tests (Makefile.am): Likewise.
31760         * NEWS: Mention the change.
31761
31762 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
31763
31764         maint.mk: allow a project to override release-prep commands
31765         * top/maint.mk (alpha, beta, stable): Move release-preparatory
31766         commands into a new rule.
31767         (release-prep): New rule.
31768         (release-prep-hook): New overridable variable.
31769
31770 2009-12-13  Bruno Haible  <bruno@clisp.org>
31771
31772         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
31773
31774 2009-12-13  Jim Meyering  <meyering@redhat.com>
31775
31776         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
31777         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
31778
31779 2009-12-12  Bruno Haible  <bruno@clisp.org>
31780
31781         duplocale: Tweak.
31782         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
31783
31784 2009-12-12  Karl Berry  <karl@gnu.org>
31785
31786         * config/srclist.txt (strtoll.c): tab changes, no more sync.
31787
31788 2009-12-12  Bruno Haible  <bruno@clisp.org>
31789
31790         * m4/po.m4: Undo incorrect untabification.
31791
31792 2009-12-12  Bruno Haible  <bruno@clisp.org>
31793
31794         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
31795         * modules/c-strtod (Depends-on): Add locale.
31796         * modules/c-strtold (Depends-on): Likewise.
31797
31798 2009-12-12  Bruno Haible  <bruno@clisp.org>
31799
31800         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
31801
31802 2009-12-11  Eric Blake  <ebb9@byu.net>
31803
31804         setenv: relax requirement in light of POSIX ruling
31805         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
31806         not NULL.
31807         * tests/test-setenv.c (main): Relax test.
31808         * tests/test-unsetenv.c (main): Likewise.
31809         * doc/posix-functions/setenv.texi (setenv): Document this.
31810         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
31811
31812 2009-12-11  Bruno Haible  <bruno@clisp.org>
31813
31814         New module 'fd-safer-flag'.
31815         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
31816         * lib/dup-safer.c (dup_safer_flag): Remove function.
31817         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
31818         * lib/fd-safer.c (fd_safer_flag): Remove function.
31819         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
31820         * modules/cloexec (configure.ac): Drop indicator macro.
31821         * modules/fd-safer-flag: New file.
31822         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
31823         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
31824         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
31825
31826 2009-12-11  Bruno Haible  <bruno@clisp.org>
31827
31828         Tests for module 'nl_langinfo'.
31829         * modules/nl_langinfo-tests: New file.
31830         * tests/test-nl_langinfo.sh: New file.
31831         * tests/test-nl_langinfo.c: New file.
31832
31833         New module 'nl_langinfo'.
31834         * lib/nl_langinfo.c: New file.
31835         * m4/nl_langinfo.m4: New file.
31836         * modules/nl_langinfo: New file.
31837         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
31838
31839 2009-12-11  Bruno Haible  <bruno@clisp.org>
31840
31841         Tests for module 'langinfo'.
31842         * modules/langinfo-tests: New file.
31843         * tests/test-langinfo.c: New file.
31844
31845         New module 'langinfo'.
31846         * lib/langinfo.in.h: New file.
31847         * m4/langinfo_h.m4: New file.
31848         * modules/langinfo: New file.
31849         * doc/posix-headers/langinfo.texi: Mention the new module.
31850
31851 2009-12-11  Bruno Haible  <bruno@clisp.org>
31852
31853         * lib/config.charset: Untabify.
31854
31855 2009-12-11  Bruno Haible  <bruno@clisp.org>
31856
31857         * modules/unistd-safer (configure.ac): Drop indicator macro.
31858
31859 2009-12-11  Bruno Haible  <bruno@clisp.org>
31860
31861         Move pipe2-safer code to its own file.
31862         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
31863         * lib/pipe-safer.c (pipe2_safer): Remove function.
31864         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
31865         (Makefile.am): Add it to lib_SOURCES.
31866
31867 2009-12-10  Bruno Haible  <bruno@clisp.org>
31868
31869         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
31870
31871 2009-12-10  Bruno Haible  <bruno@clisp.org>
31872
31873         Declare which arguments expect non-NULL values, for GCC and clang.
31874         * build-aux/arg-nonnull.h: New file.
31875         * modules/arg-nonnull: New file.
31876         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
31877         (inet_ntop, inet_pton): Use it.
31878         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
31879         (closedir, dirfd, opendir, scandir, alphasort): Use it.
31880         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
31881         (open, openat): Use it.
31882         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
31883         (fnmatch): Use it.
31884         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
31885         (getopt, getopt_long, getopt_long_only): Use it.
31886         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
31887         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
31888         Use it.
31889         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
31890         (iconv_open): Use it.
31891         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
31892         (strtoimax, strtoumax): Use it.
31893         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
31894         (duplocale): Use it.
31895         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
31896         (frexp, frexpl): Use it.
31897         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
31898         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
31899         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
31900         (tsearch, tfind, tdelete, twalk): Use it.
31901         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
31902         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
31903         sigpending): Use it.
31904         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
31905         (posix_spawn, posix_spawnp, posix_spawnattr_init,
31906         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
31907         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
31908         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
31909         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
31910         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
31911         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
31912         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
31913         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
31914         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
31915         Use it.
31916         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
31917         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
31918         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
31919         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
31920         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
31921         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
31922         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
31923         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
31924         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
31925         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
31926         strtoull, unsetenv): Use it.
31927         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
31928         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
31929         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
31930         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
31931         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
31932         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
31933         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
31934         (strcasecmp, strncasecmp): Use it.
31935         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
31936         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
31937         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
31938         rpl_setsockopt): Use it.
31939         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
31940         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
31941         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
31942         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
31943         (gettimeofday): Use it.
31944         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
31945         (times): Use it.
31946         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
31947         (uname): Use it.
31948         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
31949         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
31950         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
31951         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
31952         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
31953         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
31954         unlinkat, write): Use it.
31955         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
31956         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
31957         * lib/argv-iter.h: Include arg-nonnull.h.
31958         (_ATTRIBUTE_NONNULL_): Remove macro.
31959         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
31960         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
31961         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
31962         optimization.
31963         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
31964         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
31965         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
31966         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
31967         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
31968         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
31969         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
31970         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
31971         * modules/arpa_inet (Depends-on): Add arg-nonnull.
31972         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
31973         * modules/dirent (Depends-on): Add arg-nonnull.
31974         (Makefile.am): Insert arg-nonnull.h into dirent.h.
31975         * modules/fcntl-h (Depends-on): Add arg-nonnull.
31976         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
31977         * modules/fnmatch (Depends-on): Add arg-nonnull.
31978         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
31979         * modules/getopt-posix (Depends-on): Add arg-nonnull.
31980         (Makefile.am): Insert arg-nonnull.h into getopt.h.
31981         * modules/glob (Depends-on): Add arg-nonnull.
31982         (Makefile.am): Insert arg-nonnull.h into glob.h.
31983         * modules/iconv_open (Depends-on): Add arg-nonnull.
31984         (Makefile.am): Insert arg-nonnull.h into iconv.h.
31985         * modules/inttypes (Depends-on): Add arg-nonnull.
31986         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
31987         * modules/locale (Depends-on): Add arg-nonnull.
31988         (Makefile.am): Insert arg-nonnull.h into locale.h.
31989         * modules/math (Depends-on): Add arg-nonnull.
31990         (Makefile.am): Insert arg-nonnull.h into math.h.
31991         * modules/netdb (Depends-on): Add arg-nonnull.
31992         (Makefile.am): Insert arg-nonnull.h into netdb.h.
31993         * modules/search (Depends-on): Add arg-nonnull.
31994         (Makefile.am): Insert arg-nonnull.h into search.h.
31995         * modules/signal (Depends-on): Add arg-nonnull.
31996         (Makefile.am): Insert arg-nonnull.h into signal.h.
31997         * modules/spawn (Depends-on): Add arg-nonnull.
31998         (Makefile.am): Insert arg-nonnull.h into spawn.h.
31999         * modules/stdio (Depends-on): Add arg-nonnull.
32000         (Makefile.am): Insert arg-nonnull.h into stdio.h.
32001         * modules/stdlib (Depends-on): Add arg-nonnull.
32002         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
32003         * modules/string (Depends-on): Add arg-nonnull.
32004         (Makefile.am): Insert arg-nonnull.h into string.h.
32005         * modules/strings (Depends-on): Add arg-nonnull.
32006         (Makefile.am): Insert arg-nonnull.h into strings.h.
32007         * modules/sys_socket (Depends-on): Add arg-nonnull.
32008         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
32009         * modules/sys_stat (Depends-on): Add arg-nonnull.
32010         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
32011         * modules/sys_time (Depends-on): Add arg-nonnull.
32012         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
32013         * modules/sys_times (Depends-on): Add arg-nonnull.
32014         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
32015         * modules/sys_utsname (Depends-on): Add arg-nonnull.
32016         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
32017         * modules/time (Depends-on): Add arg-nonnull.
32018         (Makefile.am): Insert arg-nonnull.h into time.h.
32019         * modules/unistd (Depends-on): Add arg-nonnull.
32020         (Makefile.am): Insert arg-nonnull.h into unistd.h.
32021         * modules/wchar (Depends-on): Add arg-nonnull.
32022         (Makefile.am): Insert arg-nonnull.h into wchar.h.
32023         * modules/argv-iter (Depends-on): Add arg-nonnull.
32024         * tests/test-canonicalize.c (null_ptr): New function.
32025         (main): Use it.
32026         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
32027         (main): Use it.
32028         * tests/test-memmem.c (null_ptr): New function.
32029         (main): Use it.
32030         Reported by Jim Meyering.
32031
32032 2009-12-10  Bruno Haible  <bruno@clisp.org>
32033
32034         Use spaces for indentation, not tabs.
32035         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
32036         * m4/*.m4: Untabify.
32037         * build-aux/*.h: Untabify.
32038         * tests/**/*.[hc]: Untabify.
32039         * README: New section "Indent with spaces, not TABs", based on
32040         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
32041         * NEWS: Mention the change.
32042
32043 2009-12-10  Bruno Haible  <bruno@clisp.org>
32044
32045         pty test: Fix link error.
32046         * modules/pty-tests (Makefile.am): Add the default LDADD value to
32047         test_pty_LDADD.
32048
32049 2009-12-07  Simon Josefsson  <simon@josefsson.org>
32050
32051         * modules/pty: New file.
32052         * modules/pty-tests: New file.
32053         * m4/pty.m4: New file.
32054         * tests/test-pty.c: New file.
32055         * doc/glibc-headers/pty.texi: Modified.
32056         * doc/glibc-functions/forkpty.texi: Modified.
32057         * doc/glibc-functions/openpty.texi: Modified.
32058
32059 2009-12-10  Bruno Haible  <bruno@clisp.org>
32060
32061         Avoid syntax error in C++ mode.
32062         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
32063
32064 2009-12-10  Bruno Haible  <bruno@clisp.org>
32065
32066         Use sed with option -e.
32067         * gnulib-tool (func_version, func_emit_copyright_notice,
32068         func_emit_initmacro_end, func_import, func_create_testdir): Pass
32069         option -e to sed.
32070         * modules/link-warning (Makefile.am): Likewise.
32071
32072 2009-12-10  Jim Meyering  <meyering@redhat.com>
32073
32074         mgetgroups: do not write bytes beyond end of malloc'd buffer
32075         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
32076         username, we call getgroups with a one-element-shorter buffer,
32077         but still told it the length was original, max_n_groups.
32078
32079 2009-12-09  Eric Blake  <ebb9@byu.net>
32080
32081         cloexec: relax license
32082         * modules/cloexec (Maintainer): Add myself.
32083         (License): Use LGPL, not GPL.
32084
32085         link-warning: optimize generation
32086         * modules/link-warning (Makefile.am): Reduce process usage.
32087
32088 2009-12-09  Bruno Haible  <bruno@clisp.org>
32089
32090         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
32091         workaround was added on 2009-11-17.
32092
32093 2009-12-09  Jim Meyering  <meyering@redhat.com>
32094             Bruno Haible  <bruno@clisp.org>
32095
32096         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
32097         * modules/link-warning (Makefile.am): Make the comment-removing sed
32098         command more robust in the face of bootstrap-prepended comment lines.
32099
32100 2009-12-09  Bruno Haible  <bruno@clisp.org>
32101
32102         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
32103         most one group.
32104
32105 2009-12-09  Simon Josefsson <simon@josefsson.org>
32106             Bruno Haible  <bruno@clisp.org>
32107
32108         * build-aux/link-warning.h: Add copyright notice.
32109         * modules/link-warning (Makefile.am): Generate link-warning.h from
32110         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
32111         * NEWS: Mention change in link-warning module.
32112         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
32113         * modules/dirent (Makefile.am): Add dependency to dirent.h.
32114         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
32115         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
32116         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
32117         * modules/math (Makefile.am): Add dependency to math.h.
32118         * modules/search (Makefile.am): Add dependency to search.h.
32119         * modules/signal (Makefile.am): Add dependency to signal.h.
32120         * modules/spawn (Makefile.am): Add dependency to spawn.h.
32121         * modules/stdio (Makefile.am): Add dependency to stdio.h.
32122         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
32123         * modules/string (Makefile.am): Add dependency to string.h.
32124         * modules/strings (Makefile.am): Add dependency to strings.h.
32125         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
32126         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
32127         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
32128         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
32129         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
32130         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
32131         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
32132         * modules/unistd (Makefile.am): Add dependency to unistd.h.
32133         * modules/wchar (Makefile.am): Add dependency to wchar.h.
32134
32135 2009-12-09  Bruno Haible  <bruno@clisp.org>
32136
32137         fchdir: Optimize away rpl_fstat when possible.
32138         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
32139         REPLACE_OPEN_DIRECTORY.
32140         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
32141
32142 2009-12-09  Bruno Haible  <bruno@clisp.org>
32143
32144         * lib/fchdir.c: Update comment.
32145
32146 2009-12-09  Bruno Haible  <bruno@clisp.org>
32147
32148         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
32149
32150 2009-12-08  Eric Blake  <ebb9@byu.net>
32151
32152         fchdir: avoid memory leak on re-registration.
32153         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
32154
32155 2009-12-08  Jim Meyering  <meyering@redhat.com>
32156
32157         init.sh: avoid Solaris 10 /bin/sh portability problem
32158         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
32159         sourced script:
32160           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
32161           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
32162           bar
32163         tests/init.sh relied on that, accepting a --set-path=DIR argument,
32164         and two tests used that idiom.
32165         * tests/init.sh: Update suggested usage comments.
32166         (path_prepend_): New function, to be used in place
32167         of the --src-path=DIR option.
32168         (setup_): Move PATH-prepending code into path_prepend_.
32169         * tests/test-pread.sh: Adapt to new usage.
32170         * tests/test-xalloc-die.sh: Likewise.
32171
32172 2009-12-08  Simon Josefsson  <simon@josefsson.org>
32173
32174         * doc/gnulib.texi (Glibc pty.h): Add.
32175         * doc/glibc-functions/forkpty.texi: Add.
32176         * doc/glibc-functions/openpty.texi: Add.
32177         Suggested by Bruno Haible.
32178
32179 2009-12-08  Eric Blake  <ebb9@byu.net>
32180
32181         fchdir: fix logic bugs
32182         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
32183         * tests/test-fchdir.c (main): Enhance test.
32184         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
32185         is in use.
32186
32187         dup2: fix logic bugs
32188         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
32189         REPLACE_DUP2 to decide when rpl_dup2 is needed.
32190         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
32191         exists.
32192         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
32193
32194 2009-12-07  Eric Blake  <ebb9@byu.net>
32195
32196         unlink: fix m4 detection
32197         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
32198
32199         unistd-safer: add unit test
32200         * modules/unistd-safer-tests: New file.
32201         * tests/test-dup-safer.c: Likewise.
32202         * tests/test-cloexec.c (setmode): Avoid compiler warning.
32203         * tests/test-dup2.c (setmode): Likewise.
32204         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
32205
32206         cloexec: preserve text vs. binary across dup_cloexec
32207         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
32208         mode.
32209         * modules/dup2-tests (Depends-on): Add binary-io.
32210         * modules/cloexec-tests (Depends-on): Likewise.
32211         * tests/test-dup2.c (setmode, is_mode): New helpers.
32212         (main): Add tests that translation mode is preserved.
32213         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
32214         Reported by Bruno Haible.
32215
32216         mgetgroups: reduce duplicate listings
32217         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
32218         resulting array.
32219         * tests/test-chown.h (test_chown): Simplify client.
32220         * tests/test-lchown.h (test_lchown): Likewise.
32221
32222 2009-12-06  Bruno Haible  <bruno@clisp.org>
32223
32224         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
32225         value.
32226
32227 2009-12-06  Bruno Haible  <bruno@clisp.org>
32228
32229         * lib/progname.c: Include stdio.h, stdlib.h.
32230         (set_program_name): Reject a NULL argument.
32231
32232 2009-12-05  Eric Blake  <ebb9@byu.net>
32233
32234         pipe2-safer: new module
32235         * modules/pipe2-safer: New file.
32236         * lib/unistd-safer.h (pipe2_safer): New prototype.
32237         * lib/unistd--.h (pipe2): New wrapper.
32238         * lib/pipe-safer.c (pipe2_safer): New function.
32239         * modules/pipe (Depends-on): Add pipe2-safer.
32240         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
32241
32242         stdlib-safer: preserve cloexec flag for mkostemp[s]
32243         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
32244         fd_safer_flag.
32245
32246         unistd-safer: allow preservation of cloexec status via flag
32247         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
32248         prototypes.
32249         * lib/dup-safer.c (dup_safer_flag): New function.
32250         * lib/fd-safer.c (fd_safer_flag): Likewise.
32251         * modules/cloexec (configure.ac): Set witness.
32252
32253         test-dup2: enhance test
32254         * modules/dup2-tests (Depends-on): Add cloexec.
32255         * tests/test-dup2.c (main): Enhance test.
32256
32257         cloexec: add dup_cloexec
32258         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
32259         header and comments.
32260         * lib/cloexec.c (set_cloexec_flag): Add comments.
32261         (dup_cloexec): New function, with mingw implementation borrowed
32262         from...
32263         * lib/w32spawn.h (dup_noinherit): ...here.
32264         * modules/execute (Depends-on): Add cloexec.
32265         * modules/pipe (Depends-on): Likewise.
32266         * modules/cloexec (Depends-on): Add dup2.
32267         * modules/cloexec-tests (Files): New file.
32268         * tests/test-cloexec.c: Likewise.
32269
32270         test-xalloc-die: fix test for mingw
32271         * modules/xalloc-die-tests (Files): Add tests/init.sh.
32272         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
32273         directory and .exe suffix off argv[0] output.
32274
32275         test-fseeko: fix test for mingw
32276         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
32277         than undefining fseek, so test will pass on mingw.
32278
32279 2009-12-05  Bruno Haible  <bruno@clisp.org>
32280
32281         * lib/progname.h (set_program_name): Clarify specification.
32282         * lib/progname.c (set_program_name): Likewise.
32283         Reported by Jim Meyering.
32284
32285 2009-12-05  Jim Meyering  <meyering@redhat.com>
32286
32287         maint.mk: backslash-escape parens in default regexp
32288         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
32289         backslash-escape the literal parentheses.
32290
32291         maint.mk: news-date-check: use grep -E
32292         * top/maint.mk (today): Define a Make variable, not a...
32293         (news-date-check): ...shell variable.
32294         (news-date-regexp): Use the Make variable.
32295         Use grep's -E option.  Change the failing diagnostic to mention
32296         the variable, $(news-date-regexp).
32297
32298 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
32299
32300         maintainer-makefile: allow customization of NEWS entry format
32301         * top/maint.mk (news-date-regexp): New overridable variable.
32302         (news-date-check): Use it.
32303
32304 2009-12-04  Eric Blake  <ebb9@byu.net>
32305
32306         mgetgroups: add xgetgroups, and avoid ENOSYS failures
32307         * lib/mgetgroups.h (xgetgroups): New prototype.
32308         * lib/mgetgroups.c (xgetgroups): New wrapper.
32309         (mgetgroups): Handle ENOSYS.
32310         * modules/mgetgroups (Depends-on): Add realloc.
32311         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
32312
32313         mgetgroups: avoid argument promotion issues with -1
32314         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
32315         for invalid gid_t.
32316         * tests/test-chown.h (getegid, test_chown): Likewise.
32317         * tests/test-lchown.h (getegid, test_lchown): Likewise.
32318
32319 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
32320
32321         exclude: Fix header file problems.
32322         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
32323
32324 2009-12-01  Jim Meyering  <meyering@redhat.com>
32325
32326         fts: fts_open: do not let an empty string cause immediate failure
32327         This is required in support of GNU rm, for which the command
32328         "rm A '' B" must process and remove both A and B, in spite of
32329         the empty string argument.
32330         * lib/fts.c (fts_open): Do not let the presence of an empty string
32331         cause fts_open to fail immediately.  Most fts-using tools must be
32332         able to process all arguments, in order, and can be expected to
32333         diagnose such arguments themselves.
32334
32335 2009-11-30  Eric Blake  <ebb9@byu.net>
32336
32337         utimens: fix compilation error
32338         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
32339         Declare variable at right scope.
32340
32341 2009-11-29  Jim Meyering  <meyering@redhat.com>
32342
32343         bootstrap: handle perl-5.11's changed --version output
32344         * build-aux/bootstrap (get_version): Handle perl separately,
32345         since perl-5.11's --version output is different.
32346
32347 2009-11-28  Jim Meyering  <meyering@redhat.com>
32348
32349         userspec: depend on the inttostr module, too
32350         * modules/userspec (Depends-on): Add inttostr.
32351
32352         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
32353         * lib/userspec.c (parse_with_separator): Do not accept a user ID
32354         number of MAXUID when it evaluates to (uid_t) -1.
32355         Likewise for group ID.  Reported by Matt McCutchen in
32356         <http://savannah.gnu.org/bugs/?28113>
32357
32358         userspec: reformat to use spaces, not TABs
32359         * lib/userspec.c: Expand TABs to spaces.
32360         Add Emacs' "indent-tabs-mode: nil" hint.
32361
32362 2009-11-27  Eric Blake  <ebb9@byu.net>
32363
32364         getopt-gnu: flush out another BSD bug
32365         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
32366         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
32367         flush out BSD bug.
32368         * tests/test-getopt.h (test_getopt): End lists with NULL.
32369         * tests/test-getopt_long.h (test_getopt_long): Likewise.
32370         (test_getopt_long_posix): Enhance test.
32371         * modules/getopt-posix-tests (Depends-on): Add stdbool.
32372         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
32373         getopt-gnu.
32374         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
32375         Likewise.
32376
32377 2009-11-27  Simon Josefsson  <simon@josefsson.org>
32378
32379         * modules/idpriv-droptemp-tests (Notice): Fix text.
32380
32381 2009-11-27  Jim Meyering  <meyering@redhat.com>
32382
32383         test-xalloc-die: avoid spurious failure due to libtool argv difference
32384         In a libtool-enabled project, this test would fail due to a difference
32385         in the emitted program name, e.g.,
32386         -test-xalloc-die: memory exhausted
32387         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
32388         Use program to avoid that.
32389         * modules/xalloc-die-tests (Depends-on): Add progname.
32390         * tests/test-xalloc-die.c: Include progname.h".
32391         (program_name): Remove decl.
32392         (main): Call set_program_name.
32393         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
32394
32395 2009-11-26  Richard Jones  <rjones@redhat.com>
32396
32397         w32sock: leave win32 error in place.
32398         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
32399
32400 2009-11-26  Eric Blake  <ebb9@byu.net>
32401
32402         init.sh: suggest to use skip_ and fail_ functions in comments
32403         * tests/init.sh: Add a sentence.
32404
32405 2009-11-25  Bruno Haible  <bruno@clisp.org>
32406
32407         init.sh: add documentation in comments
32408         * tests/init.sh: Add some developer and user documentation.
32409
32410 2009-11-26  Jim Meyering  <meyering@redhat.com>
32411
32412         init.sh: accommodate even those who specify bogus srcdir manually
32413         * tests/init.sh: Normally, srcdir is guaranteed by automake and
32414         configure-time tests to be sanitized, so that there is no need to
32415         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
32416         (with no double quotes) suffices.  However, since tests may be
32417         invoked manually, and since you may explicitly set srcdir to the
32418         name of a directory containing spaces, do quote its uses here.
32419         * tests/test-pread.sh: Likewise.
32420         Suggested by Bruno Haible.
32421
32422         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
32423         * tests/test-pread.sh: Write no data into the pipe, because
32424         test-pread actually reads none.  This avoids a diagnostic,
32425         "bash: echo: write error: Broken pipe", that arises in the unusual
32426         event something is ignoring SIGPIPE, and might be interpreted
32427         as some sort of failure.  Reported by Bruno Haible.
32428
32429 2009-11-25  Jim Meyering  <meyering@redhat.com>
32430
32431         test-pread: cover failure with ESPIPE and EINVAL
32432         * tests/test-pread.c (main): Test for failure, too.
32433         * tests/test-pread.sh: Invoke with stdin on a pipe.
32434         Suggested by Eric Blake.
32435
32436         pread: improvement and fix
32437         * modules/pread (Depends-on): Depend on lseek, for portability to
32438         e.g., mingw.  Suggested by Eric Blake.
32439         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
32440
32441         unistd.in.h: correct declaration of pread
32442         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
32443         Reported by Richard W.M. Jones.
32444
32445         test-pread.sh: distribute the test script
32446         * modules/pread-tests (Files): Include test-pread.sh.
32447
32448         test-pread.sh: clean up
32449         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
32450         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
32451         That is unnecessary, since it's always ".".
32452         Suggestion from Eric Blake.
32453
32454         test-pread.sh: make executable
32455         * tests/test-pread.sh: Set executable bit.
32456         Reported by Eric Blake.
32457
32458         correct typo in test-pread.sh
32459         * tests/test-pread.sh: Add #! line.
32460
32461         test pread
32462         * tests/test-pread.c: New file.
32463         * tests/test-pread.sh: Likewise.
32464         * modules/pread-tests: Likewise.
32465
32466         pread: new module
32467         * modules/pread: New file.
32468         * lib/unistd.in.h (pread): Define/declare.
32469         * lib/pread.c (pread): New file.
32470         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
32471         * modules/unistd (Makefile.am): Substitute witnesses.
32472         * doc/posix-functions/pread.texi (pread): Update.
32473         * MODULES.html.sh: Add pread.
32474
32475 2009-11-25  Jim Meyering  <meyering@redhat.com>
32476
32477         tests/init.sh: new file to be used via most *.sh tests
32478         * tests/init.sh: New file.
32479
32480 2009-11-25  Eric Blake  <ebb9@byu.net>
32481
32482         utimens: work around older Linux failure with symlinks
32483         * lib/utimens.c (lutimensat_works_really): New variable.
32484         (fdutimens, lutimens): Use it to manage kernels that support
32485         nanosecond times on files, but not on symlinks.
32486         Reported by OndÅ™ej Vašík.
32487
32488         utimes: fix configure grammar
32489         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
32490
32491 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
32492
32493         regex: Fix fastmap for multibyte character ranges.
32494         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
32495         characters when a multibyte character range is included.
32496
32497 2009-11-22  Andy Wingo  <wingo@pobox.com>
32498
32499         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
32500         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
32501
32502 2009-11-24  Bruno Haible  <bruno@clisp.org>
32503
32504         doc: Most *_l functions exist in MacOS X 10.5.
32505         * doc/posix-functions/duplocale.texi: Update platforms list.
32506         * doc/posix-functions/freelocale.texi: Likewise.
32507         * doc/posix-functions/newlocale.texi: Likewise.
32508         * doc/posix-functions/uselocale.texi: Likewise.
32509         * doc/posix-functions/isalnum_l.texi: Likewise.
32510         * doc/posix-functions/isalpha_l.texi: Likewise.
32511         * doc/posix-functions/isblank_l.texi: Likewise.
32512         * doc/posix-functions/iscntrl_l.texi: Likewise.
32513         * doc/posix-functions/isdigit_l.texi: Likewise.
32514         * doc/posix-functions/isgraph_l.texi: Likewise.
32515         * doc/posix-functions/islower_l.texi: Likewise.
32516         * doc/posix-functions/isprint_l.texi: Likewise.
32517         * doc/posix-functions/ispunct_l.texi: Likewise.
32518         * doc/posix-functions/isspace_l.texi: Likewise.
32519         * doc/posix-functions/isupper_l.texi: Likewise.
32520         * doc/posix-functions/iswalnum_l.texi: Likewise.
32521         * doc/posix-functions/iswalpha_l.texi: Likewise.
32522         * doc/posix-functions/iswblank_l.texi: Likewise.
32523         * doc/posix-functions/iswcntrl_l.texi: Likewise.
32524         * doc/posix-functions/iswctype_l.texi: Likewise.
32525         * doc/posix-functions/iswdigit_l.texi: Likewise.
32526         * doc/posix-functions/iswgraph_l.texi: Likewise.
32527         * doc/posix-functions/iswlower_l.texi: Likewise.
32528         * doc/posix-functions/iswprint_l.texi: Likewise.
32529         * doc/posix-functions/iswpunct_l.texi: Likewise.
32530         * doc/posix-functions/iswspace_l.texi: Likewise.
32531         * doc/posix-functions/iswupper_l.texi: Likewise.
32532         * doc/posix-functions/iswxdigit_l.texi: Likewise.
32533         * doc/posix-functions/isxdigit_l.texi: Likewise.
32534         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
32535         * doc/posix-functions/strcasecmp_l.texi: Likewise.
32536         * doc/posix-functions/strcoll_l.texi: Likewise.
32537         * doc/posix-functions/strfmon_l.texi: Likewise.
32538         * doc/posix-functions/strftime_l.texi: Likewise.
32539         * doc/posix-functions/strncasecmp_l.texi: Likewise.
32540         * doc/posix-functions/strxfrm_l.texi: Likewise.
32541         * doc/posix-functions/tolower_l.texi: Likewise.
32542         * doc/posix-functions/toupper_l.texi: Likewise.
32543         * doc/posix-functions/towctrans_l.texi: Likewise.
32544         * doc/posix-functions/towlower_l.texi: Likewise.
32545         * doc/posix-functions/towupper_l.texi: Likewise.
32546         * doc/posix-functions/wcscoll_l.texi: Likewise.
32547         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
32548         * doc/posix-functions/wctrans_l.texi: Likewise.
32549         * doc/posix-functions/wctype_l.texi: Likewise.
32550         * doc/glibc-functions/strptime_l.texi: Likewise.
32551         * doc/glibc-functions/strtod_l.texi: Likewise.
32552         * doc/glibc-functions/strtof_l.texi: Likewise.
32553         * doc/glibc-functions/strtol_l.texi: Likewise.
32554         * doc/glibc-functions/strtold_l.texi: Likewise.
32555         * doc/glibc-functions/strtoll_l.texi: Likewise.
32556         * doc/glibc-functions/strtoul_l.texi: Likewise.
32557         * doc/glibc-functions/strtoull_l.texi: Likewise.
32558         * doc/glibc-functions/wcsftime_l.texi: Likewise.
32559         * doc/glibc-functions/wcstod_l.texi: Likewise.
32560         * doc/glibc-functions/wcstof_l.texi: Likewise.
32561         * doc/glibc-functions/wcstol_l.texi: Likewise.
32562         * doc/glibc-functions/wcstold_l.texi: Likewise.
32563         * doc/glibc-functions/wcstoll_l.texi: Likewise.
32564         * doc/glibc-functions/wcstoul_l.texi: Likewise.
32565         * doc/glibc-functions/wcstoull_l.texi: Likewise.
32566
32567 2009-11-24  Bruno Haible  <bruno@clisp.org>
32568
32569         duplocale: Fix logic bug.
32570         * lib/duplocale.c: Don't include <langinfo.h>.
32571         (_NL_LOCALE_NAME): Remove macro.
32572         (rpl_duplocale): Use setlocale instead of nl_langinfo.
32573         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
32574
32575 2009-11-23  Jim Meyering  <meyering@redhat.com>
32576
32577         test-update-copyright: don't hard-code /usr/bin/perl
32578         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
32579         perl to print the current year.  Gilles Espinasse reported that
32580         the replaced use of perl was hard-coded as /usr/bin/perl.
32581
32582 2009-11-23  Bruno Haible  <bruno@clisp.org>
32583
32584         duplocale: Add support for glibc 2.3.x.
32585         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
32586
32587 2009-11-22  Bruno Haible  <bruno@clisp.org>
32588
32589         vasnprintf: Tiny optimization.
32590         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
32591         MacOS X.
32592
32593 2009-11-22  Bruno Haible  <bruno@clisp.org>
32594
32595         Tests for module 'duplocale'.
32596         * modules/duplocale-tests: New file.
32597         * tests/test-duplocale.c: New file.
32598
32599         New module 'duplocale'.
32600         * m4/duplocale.m4: New file.
32601         * lib/locale.in.h (duplocale): New declaration.
32602         * lib/duplocale.c: New file.
32603         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
32604         gl_LOCALE_H_DEFAULTS): New macros.
32605         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
32606         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
32607         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
32608         REPLACE_DUPLOCALE.
32609         * modules/duplocale: New file.
32610         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
32611
32612 2009-11-22  Bruno Haible  <bruno@clisp.org>
32613
32614         * modules/locale-tests (configure.ac): Test for newlocale function.
32615         * tests/test-locale.c: When the system has extended locale functions,
32616         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
32617
32618         locale: Make locale_t available when possible.
32619         * lib/locale.in.h: Include <xlocale.h> when it exists.
32620         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
32621         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
32622         * modules/locale (Depends-on): Add extensions.
32623         (Makefile.am): Also substitute HAVE_XLOCALE_H.
32624         * doc/posix-headers/locale.texi: Document the problem with locale_t.
32625
32626 2009-11-22  Bruno Haible  <bruno@clisp.org>
32627
32628         Add comments.
32629         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
32630         invocation.
32631         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
32632         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
32633         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
32634
32635 2009-11-22  Bruno Haible  <bruno@clisp.org>
32636
32637         error: account for the possibility of freopen (stdout).
32638         * lib/error.c: Include <unistd.h>.
32639         (flush_stdout): New function, extracted from error and error_at_line.
32640         Determine stdout's fd dynamically.
32641         (error, error_at_line): Invoke flush_stdout.
32642         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
32643         * modules/error (Depends-on): Add unistd.
32644
32645 2009-11-22  Bruno Haible  <bruno@clisp.org>
32646
32647         diffseq: Add comment.
32648         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
32649
32650 2009-11-22  Jim Meyering  <meyering@redhat.com>
32651
32652         c-stack: avoid defining an unused static function
32653         * lib/c-stack.c (find_stack_direction): Do not define this function
32654         when it will not be used.
32655
32656         diffseq: avoid spurious gcc warnings
32657         * lib/diffseq.h (IF_LINT2): Define.
32658         (compareseq): Use it to initialize two members of "part".
32659         This avoids two used-uninitialized warnings.
32660
32661 2009-11-21  Jim Meyering  <meyering@redhat.com>
32662
32663         c-stack: avoid "ignoring return value of `write'" warning
32664         * lib/c-stack.c: Include "ignore-value.h".
32665         (die): Explicitly ignore each write return value.
32666         * modules/c-stack (Depends-on): Add ignore-value.
32667
32668 2009-11-21  Bruno Haible  <bruno@clisp.org>
32669
32670         diffseq: reduce scope of variable 'best'.
32671         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
32672         variable, earlier used for two different purposes.
32673
32674 2009-11-21  Jim Meyering  <meyering@redhat.com>
32675
32676         diffseq: remove useless assignment to "best"
32677         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
32678         assignment.  At that point "best" is already guaranteed to be zero.
32679
32680 2009-11-20  Eric Blake  <ebb9@byu.net>
32681
32682         build: mention ftp redirector in release announcements
32683         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
32684         values that used to come from cfg.mk; mention FTP redirect URL.
32685         * build-aux/announce-gen: Mention the mirror list.
32686         Suggested by Karl Berry.
32687
32688         nanosleep: improve port to mingw
32689         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
32690         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
32691         LIB_NANOSLEEP, but only when needed.
32692         * modules/select (Link): Document LIBSOCKET.
32693         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
32694         enough.
32695
32696         nanosleep: work around cygwin bug
32697         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
32698         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
32699         bug.
32700         (getnow): Delete, not needed.
32701         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
32702         LIB_CLOCK_GETTIME.
32703         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
32704         clock-time, gettime.
32705         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
32706         bug.
32707         * modules/nanosleep-tests: New test.
32708         * tests/test-nanosleep.c: New file.
32709
32710         sleep: work around cygwin bug
32711         * lib/sleep.c (rpl_sleep): Work around the bug.
32712         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
32713         (gl_PREREQ_SLEEP): Delete unused macro.
32714         * modules/sleep (Depends-on): Add verify.
32715         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
32716         * modules/unistd (Makefile.am): Substitute witness.
32717         * lib/unistd.in.h (sleep): Update prototype.
32718         * doc/posix-functions/sleep.texi (sleep): Document the bug.
32719         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
32720         * modules/sleep-tests (Depends-on): Check for alarm.
32721
32722 2009-11-20  Jim Meyering  <meyering@redhat.com>
32723
32724         maint.mk: improve sc_prohibit_magic_number_exit
32725         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
32726         so it does not match uses like System.exit(1).
32727         Add comments showing how to correct all offenders.
32728
32729 2009-11-19  Eric Blake  <ebb9@byu.net>
32730
32731         xalloc-die-tests: add missing library
32732         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
32733
32734         test-xvasprintf: silence compiler warnings
32735         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
32736         empty string from gcc.
32737
32738 2009-11-19  Jim Meyering  <meyering@redhat.com>
32739
32740         xfreopen: new module, from coreutils
32741         * modules/xfreopen: New module.
32742         * lib/xfreopen.c: New file.
32743         * lib/xfreopen.h: New file.
32744         * MODULES.html.sh (File stream based Input/Output"): Add it.
32745
32746 2009-11-19  Eric Blake  <ebb9@byu.net>
32747
32748         manywarnings: depend on warnings
32749         * modules/manywarnings (Depends-on): Add warnings.
32750
32751         build: avoid compiler warnings
32752         * lib/select.c (rpl_select): Delete unused variable.
32753         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
32754
32755 2009-11-18  Eric Blake  <ebb9@byu.net>
32756
32757         tests: avoid false negative with --with-packager
32758         * tests/test-version-etc.sh: Discard packager information.
32759         * tests/test-argp-version-etc-1.sh: Likewise.
32760         Reported by Mike Frysinger.
32761
32762         utimens: fix regression on Solaris
32763         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
32764         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
32765         can only change fd timestamps via futimesat.  Instead, use an
32766         additional witness macro to avoid BSD bug.
32767         Reported by Jim Meyering.
32768
32769 2009-11-17  Eric Blake  <ebb9@byu.net>
32770
32771         usleep: use it to simplify tests
32772         * modules/stat-time-tests (Depends-on): Add usleep.
32773         (configure.ac): Drop usleep check.
32774         * modules/chown-tests (Depends-on, configure.ac): Likewise.
32775         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
32776         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
32777         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
32778         * modules/openat-tests (Depends-on, configure.ac): Likewise.
32779         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
32780         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
32781         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
32782         Likewise.
32783         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
32784         * tests/test-lchown.h (nap): Likewise.
32785         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
32786         * tests/test-stat-time.c (nap): Likewise.
32787         * tests/test-utimens-common.h (nap): Update comments.
32788
32789         usleep: new module
32790         * modules/usleep: New file.
32791         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
32792         * lib/usleep.c (usleep): Likewise.
32793         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
32794         * modules/unistd (Makefile.am): Substitute witnesses.
32795         * lib/unistd.in.h (usleep): Add declaration.
32796         * doc/pastposix-functions/usleep.texi (usleep): Document this.
32797         * MODULES.html.sh (Date and time): Likewise.
32798         * modules/usleep-tests (Depends-on): New test.
32799         * tests/test-usleep.c: New file.
32800
32801         chown: work around OpenBSD bug
32802         * lib/chown.c (rpl_chown): Work around the bug.
32803         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
32804         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
32805         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
32806         * modules/chown (Depends-on): Add stdbool.
32807         * modules/lchown (Depends-on): Likewise.
32808         * doc/posix-functions/chown.texi (chown): Document the bug.
32809         * doc/posix-functions/lchown.texi (lchown): Likewise.
32810         * tests/test-lchown.h (test_chown): Relax test.
32811
32812         mkstemp: avoid conflict with C++ keyword template
32813         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
32814         * lib/mkostemp.c (mkostemp): Likewise.
32815         * lib/mkostemps.c (mkostemps): Likewise.
32816         * lib/mkstemp.c (mkstemp): Likewise.
32817         * lib/mkstemps.c (mkstemps): Likewise.
32818
32819         xalloc-die-tests: optimize
32820         * tests/test-xalloc-die.sh: Reduce number of processes.
32821
32822 2009-11-17  Simon Josefsson  <simon@josefsson.org>
32823
32824         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
32825         patch from ludo@gnu.org (Ludovic Courtès).
32826
32827 2009-11-17  Jim Meyering  <meyering@redhat.com>
32828
32829         version-etc: use proper license string
32830         * modules/version-etc (License): Use LGPL, not LGPLv3+.
32831         * modules/version-etc-fsf: Likewise.
32832
32833 2009-11-17  Simon Josefsson  <simon@josefsson.org>
32834
32835         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
32836         printed to stdout.  Deal with EOL differences.
32837
32838 2009-11-17  Eric Blake  <ebb9@byu.net>
32839
32840         unsetenv: work around Solaris bug
32841         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
32842         * lib/unsetenv.c (rpl_unsetenv): Work around it.
32843         Reported by Jim Meyering.
32844
32845         vasnprintf: avoid compiler warnings
32846         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
32847         variables.
32848         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
32849
32850 2009-11-17  Simon Josefsson  <simon@josefsson.org>
32851
32852         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
32853         settings since xalloc-die is no longer the self test,
32854         xalloc-die.sh is.
32855
32856 2009-11-17  Jim Meyering  <meyering@redhat.com>
32857
32858         test-xalloc-die.sh: make the code agree with the commit log
32859         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
32860         at the end, just in case you happen to have a test-xalloc-die
32861         program in some other PATH directory.
32862
32863         test-xalloc-die.sh: fix a portability bug
32864         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
32865         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
32866         Otherwise, argv[0] (as often seen in diagnostics) would be too
32867         system-dependent, sometimes with, and sometimes without the leading "./".
32868
32869         version-etc-fsf: relax license to LGPLv3+
32870         * modules/version-etc-fsf (License): Relax license.
32871
32872 2009-11-16  Eric Blake  <ebb9@byu.net>
32873
32874         xalloc-die-tests: avoid printing null pointer
32875         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
32876         shell script.
32877         * tests/test-xalloc-die.c (program_name): Declare.
32878         * tests/test-xalloc-die.sh (tmpfiles): New file.
32879
32880         setenv, unsetenv: work around various bugs
32881         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
32882         (setenv) [HAVE_SETENV]: Work around bugs.
32883         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
32884         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
32885         for bugs.
32886         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
32887         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
32888         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
32889         * modules/stdlib (Makefile.am): Update substitutions.
32890         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
32891         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
32892         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
32893         * modules/setenv-tests: New test.
32894         * modules/unsetenv-tests: Likewise.
32895         * tests/test-setenv.c: New file.
32896         * tests/test-unsetenv.c: Likewise.
32897
32898 2009-11-16  Jim Meyering  <meyering@redhat.com>
32899
32900         version-etc: relax license to LGPLv3+
32901         * modules/version-etc (License): Relax license.
32902
32903         better AC_REQUIRE expanded-before-required-warning avoidance
32904         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
32905         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
32906         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
32907         which is no longer needed.
32908
32909 2009-11-16  Eric Blake  <ebb9@byu.net>
32910
32911         test-freading: clean up temporary file
32912         * tests/test-freading.c (main): Remove file on success, and use
32913         ASSERT more liberally.
32914         Reported by Jim Meyering.
32915
32916 2009-11-16  Jim Meyering  <meyering@redhat.com>
32917
32918         avoid new AC_REQUIRE expanded-before-required warnings
32919         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
32920         merely using it.
32921         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
32922         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
32923
32924 2009-11-15  Simon Josefsson  <simon@josefsson.org>
32925
32926         * tests/test-xalloc-die.c: New file.
32927         * modules/xalloc-die-tests: New file.
32928         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
32929         XFAIL_TESTS so it can be appended by modules.
32930
32931 2009-11-15  Simon Josefsson  <simon@josefsson.org>
32932
32933         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
32934         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
32935
32936 2009-11-14  Eric Blake  <ebb9@byu.net>
32937
32938         fnmatch: avoid compiler warning
32939         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
32940         to silence compiler warning about mismatch signedness in ?:.
32941         Reported by Robert Millan.
32942
32943         intprops: add double-inclusion guard
32944         * lib/intprops.h: Allow idempotent includes.
32945         Suggested by Bruce Korb.
32946
32947         openat: detect Solaris fchownat bug
32948         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
32949         penalizing glibc chownat when only lchownat is broken.
32950         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
32951         trailing slash bugs.
32952         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
32953         * modules/openat-tests (Files): Include more files.
32954         (Depends-on): Add mgetgroups, sleep, stat-time.
32955         (configure.ac): Add additional checks.
32956         (Makefile.am): Build new test.
32957         * tests/test-fchownat.c: New file.
32958
32959         lchown: detect Solaris and FreeBSD bug
32960         * lib/lchown.c (rpl_lchown): Work around bug.
32961         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
32962         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
32963         * modules/unistd (Makefile.am): Populate it.
32964         * lib/unistd.in.h (lchown): Update declaration.
32965         * doc/posix-functions/lchown.texi (lchown): Document the bug.
32966         * modules/lchown-tests: New file.
32967         * tests/test-lchown.h (test_lchown): Likewise.
32968         * tests/test-lchown.c (main): Likewise.
32969
32970         chown: detect Solaris and FreeBSD bug
32971         * lib/chown.c (rpl_chown): Work around bug.
32972         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
32973         (gl_PREREQ_CHOWN): Delete.
32974         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
32975         * modules/unistd (Makefile.am): Populate it.
32976         * lib/unistd.in.h (chown): Update declaration.
32977         * lib/lchown.c (chown): Update client.
32978         * modules/lchown (Depends-on): Add lstat.
32979         * doc/posix-functions/chown.texi (chown): Document the bug.
32980         * doc/posix-functions/getgroups.texi (getgroups): Document
32981         getgroups pitfall.
32982         * modules/chown-tests: New file.
32983         * tests/test-chown.h (test_chown): Likewise.
32984         * tests/test-chown.c (main): Likewise.
32985
32986 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
32987
32988         gnulib-tool: correctly detect absence of m4 directories
32989         * gnulib-tool: Avoid extra newline on data passed to wc -l.
32990
32991 2009-11-14  Jim Meyering  <meyering@redhat.com>
32992
32993         maint.mk: Prohibit inclusion of "xalloc.h" without use.
32994         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
32995
32996 2009-11-14  John W. Eaton  <jwe@gnu.org>
32997
32998         strftime.h: wrap funtion declaration in extern "C" block
32999         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
33000
33001 2009-11-13  Eric Blake  <ebb9@byu.net>
33002
33003         getgroups: avoid compiler warning
33004         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
33005
33006         getgroups: work around FreeBSD bug
33007         * lib/getgroups.c (rpl_getgroups): Work around the bug.
33008         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
33009         * doc/posix-functions/getgroups.texi (getgroups): Document it.
33010         * tests/test-getgroups.c (main): Fix buffer overrun.
33011
33012         getgroups: avoid compilation failure
33013         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
33014         * modules/getgroups (Depends-on): Add stdint.
33015
33016 2009-11-13  Jim Meyering  <meyering@redhat.com>
33017
33018         test-getgroups: avoid compilation failure
33019         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
33020
33021 2009-11-13  Eric Blake  <ebb9@byu.net>
33022
33023         mgetgroups: new module, taken from coreutils
33024         * modules/mgetgroups: New file.
33025         * lib/mgetgroups.h: Likewise.
33026         * lib/mgetgroups.c (mgetgroups): Likewise.
33027         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
33028         * MODULES.html.sh (Users and groups): Mention it.
33029
33030         getgroups: don't expose GETGROUPS_T to user
33031         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
33032         an element at a time if GETGROUPS_T is wrong size.
33033         * lib/getugroups.h (getugroups): Change signature.
33034         * lib/unistd.in.h (getgroups): Likewise.
33035         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
33036         signature needs fixing.
33037         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
33038         AC_TYPE_GETGROUPS.
33039         * modules/group-member (Depends-on): Add getgroups.
33040         * lib/group-member.c (group_info, get_group_info): Use gid_t.
33041         (group_member): Rely on getgroups replacement.
33042         * lib/getugroups.c (getugroups): Use gid_t.
33043         * tests/test-getgroups.c (main): Likewise.
33044         * NEWS: Mention the signature change.
33045         * doc/posix-functions/getgroups.texi (getgroups): Mention the
33046         problem with signature.
33047         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
33048         GETGROUPS_T is still useful for setgroups.
33049
33050         getgroups, getugroups: provide stubs for mingw
33051         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
33052         * lib/getugroups.c (getugroups): Likewise.
33053         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
33054         function.  Modernize replacement scheme.
33055         (gl_PREREQ_GETGROUPS): Delete.
33056         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
33057         * modules/getgroups (configure.ac): Declare witness.
33058         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
33059         * modules/unistd (Depends-on): Substitute witness.
33060         * lib/unistd.in.h (getgroups): Declare replacement.
33061
33062         getgroups: avoid calling exit
33063         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
33064         drop xalloc.
33065         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
33066         dependencies.
33067         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
33068         exiting, in the rare case of malloc failure.
33069
33070         getgroups: fix logic error
33071         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
33072         has more than 20 groups.
33073         * modules/getgroups-tests: New test.
33074         * tests/test-getgroups.c: New file.
33075
33076 2009-11-13  Simon Josefsson  <simon@josefsson.org>
33077
33078         * tests/test-base64.c: Improve.
33079
33080 2009-11-13  Simon Josefsson  <simon@josefsson.org>
33081
33082         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
33083         Blake <ebb9@byu.net>.
33084
33085 2009-11-13  Simon Josefsson  <simon@josefsson.org>
33086
33087         * tests/test-xvasprintf.c: Add %s%s related checks.
33088
33089 2009-11-12  Eric Blake  <ebb9@byu.net>
33090
33091         version-etc: match standards.texi style
33092         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
33093         and use <> only for URLs.
33094
33095 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
33096
33097         fts: do not fail on a submount during traversal
33098         * lib/fts.c (fts_build): Read the stat info again after opening
33099         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
33100         Original report at http://bugzilla.redhat.com/501848.
33101
33102 2009-11-12  Jim Meyering  <meyering@redhat.com>
33103
33104         bootstrap: sync from coreutils
33105         * build-aux/bootstrap (bootstrap_epilogue): New function.
33106         Use git_modules_config in one more place.  This make bootstrap's
33107         --gnulib-srcdir option more useful for testing.
33108
33109         bootstrap: generalize autoheader check
33110         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
33111         AC_CONFIG_HEADERS.
33112
33113 2009-11-11  Eric Blake  <ebb9@byu.net>
33114
33115         mkfifoat: use new modules for Solaris and BSD bugs
33116         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
33117         * lib/mkfifoat.c (mknodat): Split...
33118         * lib/mknodat.c (mknodat): ...into new file.
33119         * modules/mkfifoat (Files): Ship new file.
33120         (Depends-on): Add mkfifo, mknod.
33121         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
33122         (Depends-on): Add symlink.
33123         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
33124         redundant with test_mkfifo.h.
33125         (do_mkfifoat, do_mknodat): New helpers.
33126
33127         mknod: new module
33128         * modules/mknod: New file.
33129         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
33130         * lib/mknod.c (mknod): Likewise.
33131         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
33132         defaults.
33133         * modules/sys_stat (Makefile.am): Substitute them.
33134         * lib/sys_stat.in.h (mknod): Declare replacement.
33135         * MODULES.html.sh (Support for systems lacking POSIX:2008):
33136         Document it.
33137         * doc/posix-functions/mknod.texi (mknod): Likewise.
33138         * modules/mknod-tests: New test.
33139         * tests/test-mknod.c: Likewise.
33140
33141         mkfifo: new module
33142         * modules/mkfifo: New file.
33143         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
33144         * lib/mkfifo.c (mkfifo): Likewise.
33145         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
33146         defaults.
33147         * modules/sys_stat (Makefile.am): Substitute them.
33148         * lib/sys_stat.in.h (mkfifo): Declare replacement.
33149         * MODULES.html.sh (Support for systems lacking POSIX:2008):
33150         Document it.
33151         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
33152         * modules/mkfifo-tests: New test.
33153         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
33154         from test-mkfifoat.c.
33155         * tests/test-mkfifo.c: New file.
33156
33157         readlink: detect FreeBSD bug
33158         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
33159         slash on symlink.
33160         * doc/posix-functions/readlink.texi (readlink): Document the bug.
33161         * tests/test-readlink.h (test_readlink): Enhance test.
33162
33163         symlink: detect FreeBSD bug
33164         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
33165         slash on symlink.
33166         * doc/posix-functions/symlink.texi (symlink): Document the bug.
33167         * tests/test-symlink.h (test_symlink): Enhance test.
33168
33169 2009-11-10  Eric Blake  <ebb9@byu.net>
33170
33171         link: detect FreeBSD bug
33172         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
33173         symlink.
33174         * doc/posix-functions/link.texi (link): Document the bug.
33175         * tests/test-link.h (test_link): Enhance test.
33176         * tests/test-linkat.c (main): Update caller.
33177
33178         unlink, remove: detect FreeBSD bug
33179         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
33180         slash on symlink.
33181         * doc/posix-functions/unlink.texi (unlink): Document the bug.
33182         * doc/posix-functions/remove.texi (remove): Likewise.
33183         * tests/test-unlink.h (test_unlink): Enhance test.
33184         * tests/test-remove.c (main): Likewise.
33185
33186 2009-11-09  Eric Blake  <ebb9@byu.net>
33187
33188         rename: detect FreeBSD bug
33189         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
33190         slash on symlink.
33191         * modules/renameat-tests (Depends-on): Add filenamecat.
33192         * tests/test-rename.h (test_rename): Allow one more errno.
33193         * tests/test-renameat.c (main): Likewise.
33194         * doc/posix-functions/rename.texi (rename): Document the bug.
33195
33196         open: detect FreeBSD bug
33197         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
33198         symlink.
33199         * doc/posix-functions/open.texi (open): Document the bug.
33200         * doc/posix-functions/utimes.texi (utimes): Likewise.
33201         * tests/test-open.h (test_open): Add parameters, and test symlink
33202         handling.
33203         * tests/test-open.c (main): Adjust caller.
33204         * tests/test-fcntl-safer.c (main): Likewise.
33205         * modules/open-tests (Depends-on): Add stdbool, symlink.
33206         * modules/fcntl-safer-tests (Depends-on): Likewise.
33207         * tests/test-openat.c (main): Add test-open tests.
33208
33209         stat: detect FreeBSD bug
33210         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
33211         symlink.
33212         * doc/posix-functions/stat.texi (stat): Document the bug.
33213         * tests/test-stat.h (test_stat_func): Add argument.
33214         * tests/test-stat.c (main): Adjust caller.
33215         * tests/test-fstatat.c (main): Likewise.
33216         * modules/stat-tests (Depends-on): Add stdbool, symlink.
33217         Reported by Jim Meyering.
33218
33219 2009-11-09  James Youngman  <jay@gnu.org>
33220
33221         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
33222         * lib/strftime.c: Correct placement of #include "ignore-value.h".
33223
33224 2009-11-08  Jim Meyering  <meyering@redhat.com>
33225
33226         utimens: remove invalid futimesat call
33227         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
33228         It used the file descriptor of the target file as the DIR_FD
33229         parameter and NULL as the file name.  That caused failure with
33230         errno == EFAULT on FreeBSD-8.0-rc2
33231
33232 2009-11-07  Eric Blake  <ebb9@byu.net>
33233
33234         fflush, freadseek: use fseeko, not fseek
33235         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
33236         (clear_ungetc_buffer): Avoid potential problems on large files.
33237         * lib/freadseek.c (freadseek): Likewise.
33238         * modules/freadseek (Depends-on): Add fseeko.
33239         * modules/fseek (configure.ac): Set a witness.
33240         * tests/test-fflush.c (main): Use fseeko.
33241         * tests/test-fpurge.c (fseek): Disable link warning.
33242         * tests/test-freadable.c (fseek): Likewise.
33243         * tests/test-freading.c (fseek): Likewise.
33244         * tests/test-fseeko.c (fseek): Likewise.
33245         * tests/test-ftell.c (fseek): Likewise.
33246         * tests/test-ftello.c (fseek): Likewise.
33247         * tests/test-fwritable.c (fseek): Likewise.
33248         * tests/test-fwriting.c (fseek): Likewise.
33249
33250 2009-11-06  Simon Josefsson  <simon@josefsson.org>
33251
33252         * modules/memchr (Depends-on): Drop getpagesize dependency.
33253
33254 2009-11-06  Simon Josefsson  <simon@josefsson.org>
33255
33256         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
33257         Reported by Ludovic Courtès.
33258         * build-aux/pmccabe2html: Improve example usage.
33259         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
33260
33261 2009-11-06  Jim Meyering  <meyering@redhat.com>
33262
33263         do-release-commit-and-tag: New module.
33264         Automate the release-commit and tag process.
33265         * build-aux/do-release-commit-and-tag: New script, from coreutils.
33266         * modules/do-release-commit-and-tag: New file.
33267         * MODULES.html.sh (Support for maintaining and releasing): Add it.
33268
33269 2009-11-06  Simon Josefsson  <simon@josefsson.org>
33270
33271         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
33272         because test-select.c uses inet_pton.
33273
33274 2009-11-06  Simon Josefsson  <simon@josefsson.org>
33275
33276         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
33277         GETADDRINFO_LIB.  Bump serial number.
33278         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
33279         Suggested by Eric Blake <ebb9@byu.net>.
33280
33281 2009-11-05  Eric Blake  <ebb9@byu.net>
33282
33283         strtod: detect darwin bug
33284         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
33285         Reported by Leo Davis.
33286
33287         freopen-safer: new module
33288         * modules/freopen-safer: New module.
33289         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
33290         * lib/freopen-safer.c (freopen_safer): New file.
33291         * lib/stdio-safer.h (freopen_safer): New declaration.
33292         * lib/stdio--.h (freopen): New override.
33293         * MODULES.html.sh (File stream based Input/Output): Mention it.
33294         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
33295         freopen-safer module.
33296         * doc/posix-functions/stderr.texi (stderr): Likewise.
33297         * doc/posix-functions/stdin.texi (stdin): Likewise.
33298         * doc/posix-functions/stdout.texi (stdout): Likewise.
33299         * modules/freopen-safer-tests: New test.
33300         * tests/test-reopen-safer.c: New file.
33301
33302 2009-11-05  Jim Meyering  <meyering@redhat.com>
33303
33304         maint.mk: Prohibit inclusion of "close-stream.h" without use.
33305         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
33306
33307 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33308
33309         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
33310
33311 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33312
33313         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
33314
33315 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33316
33317         Fix link error.
33318         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
33319         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
33320
33321 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33322
33323         * tests/test-func.c: Also test value of __func__.
33324
33325 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33326
33327         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
33328         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
33329
33330 2009-11-05  Bruno Haible  <bruno@clisp.org>
33331
33332         Fix link error.
33333         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
33334         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
33335         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
33336
33337 2009-11-05  Bruno Haible  <bruno@clisp.org>
33338
33339         Tests for module 'inet_pton'.
33340         * modules/inet_pton-tests: New file.
33341         * tests/test-inet_pton.c: New file.
33342
33343 2009-11-05  Bruno Haible  <bruno@clisp.org>
33344
33345         Tests for module 'inet_ntop'.
33346         * modules/inet_ntop-tests: New file.
33347         * tests/test-inet_ntop.c: New file.
33348
33349 2009-11-04  Eric Blake  <ebb9@byu.net>
33350
33351         stdlib-safer: wrap all mkstemp variants
33352         * modules/mkostemp (configure.ac): Set witness.
33353         * modules/mkostemps (configure.ac): Likewise.
33354         * modules/mkstemps (configure.ac): Likewise.
33355         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
33356         (mkstemps_safer): Wrap more functions.
33357         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
33358         wrapping.
33359         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
33360         (mkstemps_safer): Implement the wrappers.
33361
33362         mkstemps, mkostemps: new modules
33363         * modules/mkostemps: New module.
33364         * modules/mkstemps: Likewise.
33365         * lib/mkostemps.c (mkostemps): New file.
33366         * lib/mkstemps.c (mkstemps): Likewise.
33367         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
33368         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
33369         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
33370         * modules/stdlib (Makefile.am): Substitute them.
33371         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
33372         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
33373         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
33374         * doc/gnulib.texi (Glibc stdlib.h): Include them.
33375         * MODULES.html.sh (File system functions): Mention them.
33376
33377         tempname: resync from glibc
33378         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
33379         same values for __GT_FILE as glibc.  Abort even when assertions
33380         are disabled.
33381         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
33382         match its value otherwise.  Allow idempotent inclusion.
33383         * lib/mkdtemp.c (mkdtemp): Adjust caller.
33384         * lib/mkostemp.c (mkostemp): Likewise.
33385         * lib/mkstemp.c (mkstemp): Likewise.
33386         * lib/tmpfile.c (tmpfile): Likewise.
33387         * NEWS: Document this.
33388
33389         utimens: fix use of futimens on older Linux
33390         * lib/utimens.c (fdutimens): Use updated, rather than original,
33391         timespec to avoid bug in older Linux kernel.
33392         Reported by Simon Josefsson.
33393
33394 2009-11-04  Bruno Haible  <bruno@clisp.org>
33395
33396         Make num_processors more flexible and consistent.
33397         * lib/nproc.h (enum nproc_query): New type.
33398         (num_processors): Add a 'query' argument.
33399         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
33400         (num_processors): Add a 'query' argument. Test the value of the
33401         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
33402         mingw, count the number of CPUs available for the current process.
33403         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
33404         Check for sched_getaffinity and sched_getaffinity_np.
33405         * modules/nproc (Depends-on): Add c-ctype, extensions.
33406         * NEWS: Mention the change.
33407
33408 2009-11-03  Bruno Haible  <bruno@clisp.org>
33409
33410         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
33411
33412 2009-11-03  Jim Meyering  <meyering@redhat.com>
33413
33414         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
33415         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
33416         if it is defined.
33417
33418 2009-11-02  Eric Blake  <ebb9@byu.net>
33419
33420         mktime, timegm: share common declaration
33421         * lib/mktime-internal.h: New file.
33422         * lib/mktime.c: Use it rather than open-coding a declaration.
33423         * lib/timegm.c: Likewise.
33424         * modules/mktime (Files): Ship it.
33425         * modules/timegm (Files): Likewise.
33426         Suggested by Bruno Haible.
33427
33428         test-update-copyright: update test to match script changes
33429         * tests/test-update-copyright.sh: Avoid hard-coding perl
33430         location.  Don't update *.bak created by earlier runs.
33431
33432 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
33433             Simon Josefsson  <simon@josefsson.org>
33434             Bruno Haible  <bruno@clisp.org>
33435
33436         Fix link error on Solaris 8.
33437         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
33438         also in libnsl. Define also INET_PTON_LIB.
33439         * modules/inet_pton (Link): New section.
33440
33441 2009-11-02  Simon Josefsson  <simon@josefsson.org>
33442             Bruno Haible  <bruno@clisp.org>
33443
33444         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
33445         * modules/inet_ntop (Link): New section.
33446         Reported by Boyan Kasarov <bkasarov@gmail.com>.
33447
33448 2009-11-02  Eric Blake  <ebb9@byu.net>
33449
33450         maint: avoid compiler warnings in m4 macros
33451         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
33452         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
33453
33454 2009-11-02  Simon Josefsson  <simon@josefsson.org>
33455
33456         * m4/pmccabe2html.m4: Remove file.
33457         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
33458         function.  Change maintainer.
33459         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
33460         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
33461         Courtès).
33462
33463 2009-10-31  Eric Blake  <ebb9@byu.net>
33464
33465         fseeko: fix m4 regression
33466         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
33467         regression from 2009-10-27.
33468         Reported by Ralf Wildenhues.
33469
33470 2009-10-31  Jim Meyering  <meyering@redhat.com>
33471
33472         inttostr: aesthetics and improved (compile-time) safety
33473         Define inttype_is_signed rather than inttype_is_unsigned,
33474         since the sole use is via "#if inttype_is_signed".
33475         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
33476         inttype_is_unsigned.
33477         * lib/offtostr.c (inttype_is_signed): Likewise.
33478         * lib/uinttostr.c (inttype_is_signed): Likewise.
33479         * lib/umaxtostr.c (inttype_is_signed): Likewise.
33480         * lib/inttostr.c (inttostr): Use verify to cross-check the
33481         inttype_is_signed value and the signedness of the actual type.
33482         * modules/inttostr (Depends-on): Add verify.
33483
33484 2009-10-30  Eric Blake  <ebb9@byu.net>
33485
33486         build: avoid compiler warnings
33487         * lib/fchmodat.c (lchmod): Mark unused variables.
33488         * lib/getopt.c (_getopt_initialize): Likewise.
33489         * lib/mktime.c (__mktime_internal): Provide prototype.
33490         * lib/inttostr.c (inttostr): Avoid compiler warning even with
33491         older gcc that do not understand #pragma GCC diagnostic.
33492         * lib/uinttostr.c (inttype_is_unsigned): Define.
33493         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
33494
33495 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
33496
33497         stat: fix compilation on AIX
33498         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
33499         only see struct stat64.
33500
33501 2009-10-30  Eric Blake  <ebb9@byu.net>
33502
33503         exclude: make more robust
33504         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
33505         rather than masking a coding bug.
33506         Suggested by Bruno Haible.
33507
33508 2009-10-30  Jim Meyering  <meyering@redhat.com>
33509
33510         perl scripts: remove #!/usr/bin/perl in favor of more portable...
33511         Rather than putting #!/usr/bin/perl on the first line,
33512         start with a variant of what's recommended by "man perlrun" that
33513         invokes the first "perl" program from your shell's search path.
33514         * build-aux/gitlog-to-changelog: Replace #!... as above.
33515         Add a "Local Variables" perl mode setting.
33516         Prompted by a patch from Ludovic Courtès.
33517         Improved by Eric Blake.
33518         * build-aux/useless-if-before-free: Likewise.
33519         * build-aux/announce-gen: Likewise.
33520         * build-aux/update-copyright: Likewise.
33521
33522 2009-10-29  Eric Blake  <ebb9@byu.net>
33523
33524         filenamecat-lgpl: adjust clients
33525         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
33526         filenamecat.
33527         * modules/renameat (Depends-on): Likewise.
33528
33529         filenamecat: split into filenamecat-lgpl
33530         * modules/filenamecat-lgpl: New module.
33531         * modules/filenamecat (Files): Move library-safe files into
33532         filenamecat-lgpl.
33533         (Depends-on): Add filenamecat-lgpl.
33534         (configure.ac): Declare witness.
33535         * lib/filenamecat.h (file_name_concat): Only declare when using
33536         GPL module.
33537         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
33538         Move...
33539         * lib/filenamecat-lgpl.c: ...into new file.
33540         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
33541         (gl_FILE_NAME_CONCAT): Use it.
33542         * MODULES.html.sh (File system functions): Mention new module.
33543
33544         argp: avoid memory leak
33545         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
33546         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
33547         base_name, since the latter malloc()s and can call exit().
33548         Leak introduced 2006-07-03.
33549
33550         dirname-lgpl: adjust clients that don't need full dirname
33551         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
33552         * modules/filenamecat (Depends-on): Likewise.
33553         * modules/linkat (Depends-on): Likewise.
33554         * modules/mkancesdirs (Depends-on): Likewise.
33555         * modules/mkdir (Depends-on): Likewise.
33556         * modules/openat (Depends-on): Likewise.
33557         * modules/savewd (Depends-on): Likewise.
33558         * modules/rename (Depends-on): Likewise.
33559         (License): Relax license.
33560         * modules/mkdir-tests (Depends-on): Drop progname.
33561         (Makefile.am): Delete unneeded LDADD.
33562         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
33563
33564         dirname: split into dirname-lgpl
33565         * modules/dirname-lgpl: New module.
33566         * modules/dirname (Files): Move library-safe files into
33567         dirname-lgpl.
33568         (Depends-on): Add dirname-lgpl.
33569         (configure.ac): Declare witness.
33570         * modules/double-slash-root (License): Relax license.
33571         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
33572         module.
33573         * lib/dirname.c (dir_len, mdir_name): Move...
33574         * lib/dirname-lgpl.c: ...into new file.
33575         * lib/basename.c (last_component, base_len): Move...
33576         * lib/basename-lgpl.c: ...into new file.
33577         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
33578         (gl_DIRNAME): Use it.
33579         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
33580         Mention new module.
33581         * modules/dirname-tests (Depends-on): Add progname.
33582         * tests/test-dirname.c (program_name): Delete.
33583
33584         mkdir: make safe for libraries
33585         * modules/mkdir (Depends-on): Drop xalloc.
33586         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
33587         exit.
33588
33589         tests: avoid some compiler warnings
33590         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
33591         literals.
33592         * tests/test-memchr.c (main): Avoid type mismatch.
33593         * tests/test-arpa_inet.c (main): Avoid unused parameters.
33594         * tests/test-base64.c (main): Likewise.
33595         * tests/test-getdelim.c (main): Likewise.
33596         * tests/test-gethostname.c (main): Likewise.
33597         * tests/test-getline.c (main): Likewise.
33598         * tests/test-netinet_in.c (main): Likewise.
33599         * tests/test-select.c (open_server_socket, main): Likewise.
33600         * tests/test-select-stdin.c (main): Likewise.
33601         * tests/test-sockets.c (main): Likewise.
33602         * tests/test-strsignal.c (main): Likewise.
33603         * tests/test-sys_select.c (main): Likewise.
33604         * tests/test-sys_socket.c (main): Likewise.
33605         * tests/test-u64.c (main): Likewise.
33606         * tests/test-xfprintf-posix.c (main): Likewise.
33607         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
33608
33609         sockets: avoid compiler warning
33610         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
33611
33612         maint: detect usage(1) and other suspicious exits
33613         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
33614
33615 2009-10-29  Jim Meyering  <meyering@redhat.com>
33616
33617         timespec: long-to-int truncation could make timespec_cmp malfunction
33618         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
33619         a multiple of 2^32 nanoseconds as no difference.
33620
33621 2009-10-28  Jim Meyering  <meyering@redhat.com>
33622
33623         fprintftime: wrap macro code argument in "do {...} while(0)"
33624         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
33625         cpy macro must be a statement that can be followed by a semicolon.
33626         Now that the else clause contains a comment and is hence longer
33627         than one line, I require curly braces.  That in turn requires
33628         that we wrap this code block in the standard do...while(0).
33629
33630         fprintftime: remove stray semicolon from previous change
33631         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
33632
33633         fprintftime: avoid a warning about ignored fwrite return value
33634         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
33635         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
33636         that is unsafe.
33637         * modules/fprintftime (Depends-on): Add ignore-value.
33638
33639         exclude: avoid an unwarranted warning
33640         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
33641
33642 2009-10-27  Eric Blake  <ebb9@byu.net>
33643
33644         fseek: avoid compilation failure when fflush is replaced
33645         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
33646         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
33647         module is in use.
33648         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
33649         module is not in use; since REPLACE_FSEEK worked otherwise.
33650         (GNULIB_FTELLO): Likewise for ftell.
33651         Reported by Ian Beckwith and others.
33652
33653 2009-10-27  Bruno Haible  <bruno@clisp.org>
33654
33655         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
33656         Reported by Jim Meyering.
33657
33658 2009-10-27  Jim Meyering  <jim@meyering.net>
33659             Bruno Haible  <bruno@clisp.org>
33660
33661         Avoid warning despite dropping the return value of fwrite.
33662         * lib/unicodeio.c: Include ignore-value.h.
33663         (fwrite_success_callback): Explicitly ignore fwrite's return value.
33664         * modules/unicodeio (Depends-on): Add ignore-value.
33665
33666 2009-10-26  Eric Blake  <ebb9@byu.net>
33667
33668         areadlinkat: fix fallback path
33669         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
33670         pointer and zero.
33671
33672 2009-10-22  Pádraig Brady  <P@draigBrady.com>
33673
33674         Use a better IO block size for modern systems
33675         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
33676         * lib/md2.c: Likewise.
33677         * lib/md4.c: Likewise.
33678         * lib/md5.c: Likewise.
33679         * lib/sha1.c: Likewise.
33680         * lib/sha256.c: Likewise.
33681         * lib/sha512.c: Likewise.
33682
33683 2009-10-22  Eric Blake  <ebb9@byu.net>
33684
33685         tests: avoid several compiler warnings
33686         * tests/test-getcwd.c (main): Avoid buffer underflow.
33687         * tests/test-getdate.c (main): String literals are not safe with
33688         putenv, so use setenv.  Declare unused argument.
33689         * modules/getdate-tests (Depends-on): Add setenv.
33690         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
33691         problems with string literals in char *.
33692         * tests/test-hash.c (main): Avoid shadowing declaration.
33693         (insert_new): Treat string literals as char const *.
33694         * tests/test-getopt.h (test_getopt): Likewise.
33695         (getopt_loop): Alter types to minimize casting elsewhere.
33696         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
33697         (test_getopt_long_posix): Likewise.
33698         (do_getopt_long): Add wrapper to minimize casting.
33699         * tests/test-atexit.c (clear_temp_file): Use void.
33700         * tests/test-areadlink-with-size.c (main): Declare unused
33701         arguments.
33702         * tests/test-areadlink.c (main): Likewise.
33703         * tests/test-areadlinkat-with-size.c (main): Likewise.
33704         * tests/test-areadlinkat.c (main): Likewise.
33705         * tests/test-canonicalize-lgpl.c (main): Likewise.
33706         * tests/test-canonicalize.c (main): Likewise.
33707         * tests/test-dirent-safer.c (main): Likewise.
33708         * tests/test-dirname.c (main): Likewise.
33709         * tests/test-dup2.c (main): Likewise.
33710         * tests/test-fchdir.c (main): Likewise.
33711         * tests/test-fcntl-h.c (main): Likewise.
33712         * tests/test-fcntl-safer.c (main): Likewise.
33713         * tests/test-fdopendir.c (main): Likewise.
33714         * tests/test-fdutimensat.c (main): Likewise.
33715         * tests/test-fflush.c (main): Likewise.
33716         * tests/test-filenamecat.c (main): Likewise.
33717         * tests/test-filevercmp.c (main): Likewise.
33718         * tests/test-fopen-safer.c (main): Likewise.
33719         * tests/test-fopen.c (main): Likewise.
33720         * tests/test-fpending.c (main): Likewise.
33721         * tests/test-fpurge.c (main): Likewise.
33722         * tests/test-freading.c (main): Likewise.
33723         * tests/test-fstatat.c (main): Likewise.
33724         * tests/test-fsync.c (main): Likewise.
33725         * tests/test-futimens.c (main): Likewise.
33726         * tests/test-getndelim2.c (main): Likewise.
33727         * tests/test-gettimeofday.c (main): Likewise.
33728         * tests/test-getopt.c (main): Likewise.
33729         * tests/test-i-ring.c (main): Likewise.
33730         * tests/test-inttypes.c (main): Likewise.
33731         * tests/test-link.c (main): Likewise.
33732         * tests/test-lstat.c (main): Likewise.
33733         * tests/test-math.c (main): Likewise.
33734         * tests/test-md5.c (main): Likewise.
33735         * tests/test-memchr2.c (main): Likewise.
33736         * tests/test-memrchr.c (main): Likewise.
33737         * tests/test-mkdir.c (main): Likewise.
33738         * tests/test-mkdirat.c (main): Likewise.
33739         * tests/test-mkfifoat.c (main): Likewise.
33740         * tests/test-open.c (main): Likewise.
33741         * tests/test-openat-safer.c (main): Likewise.
33742         * tests/test-openat.c (main): Likewise.
33743         * tests/test-quotearg.c (main): Likewise.
33744         * tests/test-rawmemchr.c (main): Likewise.
33745         * tests/test-readlink.c (main): Likewise.
33746         * tests/test-remove.c (main): Likewise.
33747         * tests/test-rename.c (main): Likewise.
33748         * tests/test-renameat.c (main): Likewise.
33749         * tests/test-rmdir.c (main): Likewise.
33750         * tests/test-sha1.c (main): Likewise.
33751         * tests/test-signal.c (main): Likewise.
33752         * tests/test-sigaction.c (main): Likewise.
33753         * tests/test-stat.c (main): Likewise.
33754         * tests/test-stat-time.c (main): Likewise.
33755         * tests/test-stddef.c (main): Likewise.
33756         * tests/test-stdint.c (main): Likewise.
33757         * tests/test-stdio.c (main): Likewise.
33758         * tests/test-stdlib.c (main): Likewise.
33759         * tests/test-strchrnul.c (main): Likewise.
33760         * tests/test-strerror.c (main): Likewise.
33761         * tests/test-string.c (main): Likewise.
33762         * tests/test-strtod.c (main): Likewise.
33763         * tests/test-strverscmp.c (main): Likewise.
33764         * tests/test-symlink.c (main): Likewise.
33765         * tests/test-symlinkat.c (main): Likewise.
33766         * tests/test-sys_stat.c (main): Likewise.
33767         * tests/test-sys_time.c (main): Likewise.
33768         * tests/test-time.c (main): Likewise.
33769         * tests/test-unistd.c (main): Likewise.
33770         * tests/test-unlink.c (main): Likewise.
33771         * tests/test-unlinkat.c (main): Likewise.
33772         * tests/test-utimens.c (main): Likewise.
33773         * tests/test-utimensat.c (main): Likewise.
33774         * tests/test-version-etc.c (main): Likewise.
33775         * tests/test-wchar.c (main): Likewise.
33776         * tests/test-wctype.c (main): Likewise.
33777         * tests/test-xprintf-posix.c (main): Likewise.
33778         * tests/test-posixtm.c (main): Likewise.
33779         (STREQ): Delete unused macro.
33780         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
33781         shadowed variables.
33782         * tests/test-memchr.c (main): Likewise.
33783
33784 2009-10-21  Eric Blake  <ebb9@byu.net>
33785
33786         areadlinkat: avoid failure on older glibc
33787         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
33788         rather than mis-comparing 0 against FUNC_RESULT of char*.
33789
33790 2009-10-21  Bruno Haible  <bruno@clisp.org>
33791
33792         * modules/stpncpy (License): Relicense under LGPLv2+.
33793         Reported by David Lutterkort <lutter@redhat.com>.
33794
33795 2009-10-20  Eric Blake  <ebb9@byu.net>
33796
33797         utimensat: work around Solaris 9 bug
33798         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
33799         has trailing slash bugs.
33800         * tests/test-lutimens.h (test_lutimens): Enhance test.
33801         * tests/test-utimens.h (test_utimens): Likewise.
33802         * doc/posix-functions/utime.texi (utime): Enhance documentation.
33803         * doc/posix-functions/utimes.texi (utimes): Likewise.
33804         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
33805         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
33806         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
33807         * doc/posix-functions/futimens.texi (futimens): Likewise.
33808
33809         fdutimensat: new module
33810         * modules/fdutimensat: New file.
33811         * lib/fdutimensat.c (fdutimensat): Likewise.
33812         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
33813         * MODULES.html.sh (File system functions): Mention module.
33814         * modules/fdutimensat-tests: New test.
33815         * tests/test-fdutimensat.c: Likewise.
33816
33817         doc: regenerate INSTALL
33818         * doc/INSTALL: Reflect recent autoconf update.
33819         * doc/INSTALL.ISO: Likewise.
33820         * doc/INSTALL.UTF-8: Likewise.
33821
33822 2009-10-20  Pádraig Brady  <P@draigBrady.com>
33823
33824         acl: warn if ACL support is not detected
33825         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
33826
33827 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
33828
33829         * lib/nproc.h: Add extern "C" block for C++.
33830
33831 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
33832             Bruno Haible  <bruno@clisp.org>
33833
33834         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
33835         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
33836         * doc/posix-functions/isalpha.texi: Likewise.
33837         * doc/posix-functions/isblank.texi: Likewise.
33838         * doc/posix-functions/iscntrl.texi: Likewise.
33839         * doc/posix-functions/isdigit.texi: Likewise.
33840         * doc/posix-functions/isgraph.texi: Likewise.
33841         * doc/posix-functions/islower.texi: Likewise.
33842         * doc/posix-functions/isprint.texi: Likewise.
33843         * doc/posix-functions/ispunct.texi: Likewise.
33844         * doc/posix-functions/isspace.texi: Likewise.
33845         * doc/posix-functions/isupper.texi: Likewise.
33846         * doc/posix-functions/isxdigit.texi: Likewise.
33847
33848 2009-10-18  Bruno Haible  <bruno@clisp.org>
33849
33850         Tests for module 'isblank'.
33851         * modules/isblank-tests: New file.
33852         * tests/test-isblank.c: New file.
33853
33854         New module 'isblank'.
33855         * lib/isblank.c: New file.
33856         * m4/isblank.m4: New file.
33857         * modules/isblank: New file.
33858         * doc/posix-functions/isblank.texi: Mention the new module.
33859
33860 2009-10-18  Bruno Haible  <bruno@clisp.org>
33861
33862         New module 'ctype'.
33863         * lib/ctype.in.h: New file.
33864         * m4/ctype.m4: New file.
33865         * modules/ctype: New file.
33866         * doc/posix-headers/ctype.texi: Mention the new module.
33867
33868 2009-10-18  Jim Meyering  <meyering@redhat.com>
33869
33870         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
33871         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
33872         right after its initialization, rather than farther down.
33873         Keeping these in close proximity makes it easier to ensure
33874         that each such variable is initialized.  E.g.,
33875
33876             LIB_CLOCK_GETTIME=
33877             AC_SUBST([LIB_CLOCK_GETTIME])
33878
33879         This change also increments these serial numbers.
33880         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
33881         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
33882         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
33883
33884 2009-10-18  Bruno Haible  <bruno@clisp.org>
33885
33886         Don't let environment variables perturb build.
33887         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
33888         (gl_PREREQ_GETHRXTIME): ... not here.
33889
33890 2009-10-18  Bruno Haible  <bruno@clisp.org>
33891
33892         Avoid symlink attack in localcharset module.
33893         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
33894         (O_NOFOLLOW): Define fallback.
33895         (get_charset_aliases): Don't open the file if it is a symbolic link.
33896         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
33897         gl_FCNTL_H.
33898         (gl_FCNTL_H): Require it.
33899         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
33900         * modules/localcharset (Files): Add m4/fcntl_h.m4.
33901         Reported by Fergal Glynn <fglynn@veracode.com>.
33902
33903 2009-10-18  Bruno Haible  <bruno@clisp.org>
33904
33905         Implement nproc for mingw.
33906         * lib/nproc.c: Include <windows.h>
33907         (num_processors): On native Windows platforms, try GetSystemInfo.
33908
33909 2009-10-18  Bruno Haible  <bruno@clisp.org>
33910
33911         Implement nproc for IRIX.
33912         * lib/nproc.c: Include <sys/sysmp.h>.
33913         (num_processors): On IRIX systems, try sysmp.
33914         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
33915
33916 2009-10-18  Bruno Haible  <bruno@clisp.org>
33917
33918         Implement nproc for HP-UX.
33919         * lib/nproc.c: Include <sys/pstat.h>
33920         (num_processors): On HP-UX systems, try pstat_getdynamic.
33921         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
33922         pstat_getdynamic.
33923
33924 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
33925             Bruno Haible  <bruno@clisp.org>
33926
33927         Implement nproc for NetBSD, OpenBSD.
33928         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
33929         (ARRAY_SIZE): New macro.
33930         (num_processors): On BSD systems, try sysctl of HW_NCPU.
33931         * m4/nproc.m4: New file.
33932         * modules/nproc (Files): Add m4/nproc.m4.
33933         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
33934         (Makefile.am): Instead, augment lib_SOURCES.
33935
33936 2009-10-18  Bruno Haible  <bruno@clisp.org>
33937
33938         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
33939         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
33940         sys/param.h.
33941
33942 2009-10-16  Eric Blake  <ebb9@byu.net>
33943
33944         utimensat: new module
33945         * modules/utimensat: New file.
33946         * lib/utimensat.c (utimensat): Likewise.
33947         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
33948         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
33949         so we can work around Linux bugs.
33950         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
33951         * modules/sys_stat (Makefile.am): Substitute them.
33952         * lib/sys_stat.in.h (utimensat): Declare it.
33953         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
33954         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
33955         * modules/utimensat-tests: New test.
33956         * tests/test-utimensat.c: Likewise.
33957
33958         utimens: let lutimens work on non-symlinks
33959         * lib/utimens.c (lutimens): Fall back to utimens rather than
33960         failing with ENOSYS, when file is not a symlink.
33961         (utimens): Reduce redirection.
33962         * tests/test-lutimens.h (test_lutimens): Update test to cover
33963         non-symlinks.
33964         * tests/test-utimens.h (test_utimens): Update test to cover
33965         symlinks.
33966         * tests/test-utimens.c (main): Update caller.
33967
33968         utimens: cache whether utimensat syscall works
33969         * lib/utimens.c (utimensat_works_really): New cache variable.
33970         (fdutimens, lutimens): Use it to avoid failing syscall.
33971
33972         test-stat-time, test-utimens: improve portability
33973         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
33974         ext4 on alpha, and for cygwin.
33975         * tests/test-utimens-common.h: New file.
33976         (nap): Factor delays into single function.
33977         * tests/test-lutimens.h (test_lutimens): Use new header.
33978         * tests/test-futimens.h (test_futimens): Likewise.
33979         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
33980         timestamps to occur from same machine, as was done previously for
33981         test_utimens.
33982         * modules/utimens-tests (Files): Ship new file.
33983         * modules/futimens-tests (Files): Likewise.
33984         Reported in part by Jim Meyering.
33985
33986         sys_stat: sort replacement declarations
33987         * lib/sys_stat.in.h: Sort declarations.
33988         * lib/futimens.c (futimens): Fix typo.
33989
33990 2009-10-15  Jim Meyering  <meyering@redhat.com>
33991
33992         don't let environment settings perturb build
33993         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
33994         could cause a configure-time and/or build-time malfunction.
33995         Typically, a configure-time function-in-library test is performed
33996         via code like this:
33997
33998           LIB_VAR=
33999           AC_SUBST([LIB_VAR])
34000           prefix_saved_LIBS=$LIBS
34001             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
34002                        [test "$ac_cv_search_FUNC" = "none required" ||
34003                         LIB_VAR=$ac_cv_search_FUNC])
34004           LIBS=$prefix_saved_LIBS
34005
34006         However, in each of the files affected by this change, the LIB_VAR=
34007         initialization was omitted.  Thus, when set in the environment, its
34008         value would propagate into generated Makefiles when FUNC is not found
34009         in LIB_NAME.
34010         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
34011         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
34012         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
34013
34014 2009-10-14  Eric Blake  <ebb9@byu.net>
34015
34016         fchdir: avoid infinite recursion in mingw
34017         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
34018         recursing.
34019
34020         test-stat-time: port to mingw
34021         * tests/test-stat-time.c (force_unlink): Return a value.
34022         (test_ctime) [W32]: Fix compilation error.
34023         (nap): Don't call usleep with too large an argument.  Use
34024         force_unlink.
34025         * doc/pastposix-functions/usleep.texi (usleep): Document the
34026         portability issue.
34027
34028 2009-10-13  Jim Meyering  <meyering@redhat.com>
34029
34030         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
34031         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
34032         * modules/pipe-filter-ii: Likewise.
34033         * modules/sys_socket-tests: Likewise.
34034         * modules/tsearch-tests: Likewise.
34035         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
34036         (check): Depend on it.
34037
34038 2009-10-12  Eric Blake  <ebb9@byu.net>
34039
34040         utimens-tests: port to NFS file systems
34041         * tests/test-utimens.h (test_utimens): Refactor utimecmp
34042         comparisons to avoid spurious failures from timestamp drift
34043         between NFS machines.
34044
34045 2009-10-12  Eric Blake  <ebb9@byu.net>
34046
34047         stat-time-tests: minor cleanups
34048         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
34049         * tests/test-stat-time.c (nap): Separate assignment from call.
34050         Suggested by Paolo Bonzini and Bruno Haible.
34051
34052         sys_stat: guarantee struct timespec
34053         * lib/sys_stat.in.h (includes): Always include <time.h>
34054         * modules/sys_stat (Depends-on): Add time.
34055         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
34056         mode_t permission values.
34057         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
34058         get at subsecond timestamps.
34059
34060 2009-10-10  Eric Blake  <ebb9@byu.net>
34061
34062         futimens: new module
34063         * modules/futimens: New file.
34064         * lib/futimens.c (futimens): Likewise.
34065         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
34066         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
34067         we can work around Linux bugs.
34068         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
34069         * modules/sys_stat (Makefile.am): Substitute them.
34070         * lib/sys_stat.in.h (futimens): Declare it.
34071         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34072         * doc/posix-functions/futimens.texi (futimens): Likewise.
34073         * modules/futimens-tests: New test.
34074         * tests/test-futimens.c: Likewise.
34075
34076         utimens: introduce fdutimens
34077         * lib/utimens.h (fdutimens): New prototype.
34078         * lib/utimens.c (gl_futimens): Move guts...
34079         (fdutimens): ...to new interface.
34080         * tests/test-utimens.c (do_fdutimens): Use it.
34081
34082         utimens: add UTIME_NOW and UTIME_OMIT support
34083         * lib/utimens.c (validate_timespec, update_timespec): New helper
34084         functions.
34085         (gl_futimens, lutimens): Use them.
34086         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
34087         stdbool, sys_stat.
34088         (Link): Mention resulting library dependency.
34089         * modules/utimecmp (Link): Likewise.
34090         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
34091         (Makefile.am): Pick up library dependency.
34092         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
34093         definition.
34094         * tests/test-sys_stat.c: Test the definitions.
34095         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
34096         * NEWS: Document library dependency.
34097
34098         utimecmp: support symlink timestamps
34099         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
34100         hashing when possible.  Use pathconf when available.
34101         (SYSCALL_RESOLUTION): Recognize tighter resolution.
34102         * modules/utimecmp (Depends-on): Add lstat.
34103
34104         utimens: add lutimens interface
34105         * lib/utimens.c (lutimens): New function.
34106         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
34107         * lib/utimens.h (lutimens): Declare new interface.
34108         * tests/test-utimens.c (main): Enhance test.
34109         * tests/test-lutimens.h (test_lutimens): New file.
34110         * modules/utimens-tests (Files): Distribute it.
34111         (Depends-on): Add symlink.
34112         (configure.ac): Check for usleep.
34113
34114         utimens: validate futimens usage
34115         * lib/utimens.c (gl_futimens): Require valid fd up front, using
34116         fewer syscalls on failure later on.  Avoid compiler warning on
34117         mingw.
34118         * modules/utimens (Depends-on): Add dup2.
34119
34120         utimens: add test
34121         * modules/utimens-tests: New test.
34122         * tests/test-utimens.h: New file.
34123         * tests/test-futimens.h: Likewise.
34124         * tests/test-utimens.c: Likewise.
34125
34126         doc: mention timestamp portability issues
34127         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
34128         instead.
34129         * doc/posix-functions/utime.texi (utime): Likewise.
34130         * doc/posix-functions/utimes.texi (utimes): Likewise.
34131         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
34132         instead.
34133         * doc/posix-functions/futimens.texi (futimens): Mention utimens
34134         module.
34135         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
34136         Mention weakness with symlink timestamps.
34137         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
34138         to utimensat/futimens instead.
34139         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
34140
34141         test-dup2: enhance test
34142         * tests/test-dup2.c (main): Also check AT_FDCWD.
34143
34144         test-stat-time: avoid more spurious failures
34145         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
34146         xfs; and avoid race if the two timestamps cross quantization edge.
34147
34148         relocatable: prefer 'file system' over 'filesystem'
34149         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
34150         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
34151         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
34152         * doc/relocatable.texi (Enabling Relocatability): Likewise.
34153         * lib/relocatable.c (compute_curr_prefix): Likewise.
34154
34155 2009-10-10  Jim Meyering  <meyering@redhat.com>
34156
34157         stat-time-tests: check for the usleep function
34158         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
34159
34160 2009-10-10  Bruno Haible  <bruno@clisp.org>
34161
34162         * modules/xnanosleep: Put the Link section after the Include section.
34163
34164 2009-10-09  Eric Blake  <ebb9@byu.net>
34165
34166         dup2: work around FreeBSD 6.1 bug
34167         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
34168         * doc/posix-functions/dup2.texi (dup2): Document it.
34169         Reported by Nelson H. F. Beebe and Jim Meyering.
34170
34171         test-stat-time: port to buggy NFS clients
34172         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
34173         (test_ctime): Also skip test if mtime and ctime are skewed.
34174
34175         maint: prefer 'file system' over 'filesystem'
34176         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
34177         * doc/posix-functions/lstat.texi (lstat): Likewise.
34178         * lib/file-has-acl.c (file_has_acl): Likewise.
34179         * lib/fwriteerror.c [TEST]: Likewise.
34180         * tests/test-areadlink.h (test_areadlink): Likewise.
34181         * tests/test-areadlinkat-with-size.c (main): Likewise.
34182         * tests/test-areadlinkat.c (main): Likewise.
34183         * tests/test-canonicalize-lgpl.c (main): Likewise.
34184         * tests/test-canonicalize.c (main): Likewise.
34185         * tests/test-fstatat.c (main): Likewise.
34186         * tests/test-linkat.c (main): Likewise.
34187         * tests/test-lstat.h (test_lstat_func): Likewise.
34188         * tests/test-mkdir.h (test_mkdir): Likewise.
34189         * tests/test-readlink.h (test_readlink): Likewise.
34190         * tests/test-remove.c (main): Likewise.
34191         * tests/test-rename.h (test_rename): Likewise.
34192         * tests/test-renameat.c (main): Likewise.
34193         * tests/test-rmdir.h (test_rmdir_func): Likewise.
34194         * tests/test-symlink.h (test_symlink): Likewise.
34195         * tests/test-symlinkat.c (main): Likewise.
34196         * tests/test-unlink.h (test_unlink_func): Likewise.
34197         * tests/test-unlinkat.c (main): Likewise.
34198
34199         maint: make realtime library usage explicit
34200         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
34201         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
34202         * modules/settime (Link): Likewise.
34203         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
34204
34205         test-stat-time: speed up execution
34206         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
34207         warning on mingw.
34208         (nap): New helper function.
34209         (prepare_test): Use it to reduce sleep time.
34210         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
34211         execution.
34212         * modules/stat-time-tests (configure.ac): Check for usleep.
34213
34214 2009-10-09  Jim Meyering  <meyering@redhat.com>
34215
34216         selinux-h: always use getfilecon wrappers
34217         * lib/getfilecon.c: New file.
34218         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
34219         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
34220         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
34221         (fgetfilecon): Provide a stub.
34222         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
34223         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
34224         file unconditionally.
34225         When <selinux/selinux.h> is found, arrange to use wrappers.
34226         * modules/selinux-h (Files): Add getfilecon.c.
34227         (Makefile.am): Substitute include-next-related bits
34228         into the now-always-generated selinux/selinux.h file.
34229         * doc/glibc-functions/lgetfilecon.texi: New file.
34230         * doc/glibc-functions/fgetfilecon.texi: New file.
34231         * doc/glibc-functions/getfilecon.texi: New file.
34232         * doc/glibc-functions/getfilecon-desc.texi: New file.
34233         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
34234         which to pull in the new files.
34235         * MODULES.html.sh (Misc): Add selinux-h.
34236
34237 2009-10-08  Jim Meyering  <meyering@redhat.com>
34238
34239         unistd: fix comment typo
34240         * lib/unistd.in.h (euidaccess): Fix a comment typo.
34241
34242 2009-10-08  Eric Blake  <ebb9@byu.net>
34243
34244         areadlink: use SIZE_MAX consistently
34245         * modules/areadlink (Depends-on): Add stdint.
34246         * modules/areadlink-with-size (Depends-on): Likewise.
34247         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
34248         gives NULL; drop sys/types, since unistd gives size_t; and add
34249         stdint for SIZE_MAX.
34250         (SIZE_MAX): Rely on headers.
34251         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
34252         and add stdint.
34253         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
34254         (SIZE_MAX): Likewise.
34255         (INITIAL_BUF_SIZE): Turn into enum.
34256         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
34257
34258 2009-10-08  Jim Meyering  <meyering@redhat.com>
34259
34260         areadlinkat: avoid compilation failure
34261         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
34262         Fix typo in comment.
34263
34264 2009-10-07  Eric Blake  <ebb9@byu.net>
34265
34266         areadlinkat-with-size: new module
34267         * modules/areadlinkat-with-size: New module.
34268         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
34269         * lib/areadlink.h (areadlinkat): Declare it.
34270         * MODULES.html.sh (File system functions): Mention it.
34271         * modules/areadlinkat-with-size-tests: New test.
34272         * tests/test-areadlinkat-with-size.c: New file.
34273
34274         xreadlinkat: new module
34275         * modules/xreadlinkat: New module.
34276         * lib/xreadlinkat.c (xreadlinkat): New file.
34277         * lib/xreadlink.h (xreadlinkat): Declare it.
34278         * MODULES.html.sh (File system functions): Mention it.
34279
34280         areadlinkat: new module
34281         * lib/at-func.c (FUNC_FAIL): New define.
34282         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
34283         * modules/areadlinkat: New module.
34284         * lib/linkat.c (areadlinkat): Move...
34285         * lib/areadlinkat.c (areadlinkat): ...to new file.
34286         * lib/areadlink.h (areadlinkat): Declare it.
34287         * modules/linkat (Depends-on): Add areadlinkat.
34288         * MODULES.html.sh (File system functions): Mention it.
34289         * modules/areadlinkat-tests: New test.
34290         * tests/test-areadlinkat.c: New file.
34291
34292         areadlink, areadlink-with-size: add tests
34293         * modules/areadlink-tests: New test.
34294         * modules/areadlink-with-size-tests: Likewise.
34295         * tests/test-areadlink.h: New file.
34296         * tests/test-areadlink.c: Likewise.
34297         * tests/test-areadlink-with-size.c: Likewise.
34298
34299         maint: minor cleanups
34300         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
34301         _UNUSED_PARAMETER_ instead.
34302         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
34303         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
34304         * modules/linkat-tests (Files): Distribute test-link.h.
34305
34306         openat, utimens: whitespace cleanup
34307         * lib/openat.c: Prefer space throughout, rather than mix of 8
34308         spaces vs. tabs.
34309         * lib/at-func.c: Likewise.
34310         * lib/utimens.c: Likewise.
34311
34312         openat: avoid using wrong fd
34313         * lib/openat.c (openat_permissive): Reject user's fd if saving the
34314         working directory chooses same fd.
34315         * lib/at-func.c (AT_FUNC_NAME): Likewise.
34316
34317         mkdir, mkdirat: fix cygwin 1.5.x bug
34318         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
34319         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
34320         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
34321         bug.
34322         (gl_PREREQ_MKDIR): Delete unused macro.
34323         * modules/mkdir (Files): Track file rename.
34324         (configure.ac): Update macro name.
34325         * modules/openat (Depends-on): Add mkdir.
34326         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
34327
34328         mkdir, mkdirat: add tests
34329         * modules/mkdir-tests: New test.
34330         * tests/test-mkdir.h: New file.
34331         * tests/test-mkdir.c: Likewise.
34332         * tests/test-mkdirat.c: Likewise.
34333         * modules/openat-tests (Files): Add new files.
34334         (Makefile.am): Run new test.
34335
34336 2009-10-06  Eric Blake  <ebb9@byu.net>
34337
34338         doc: tweak *at function documentation
34339         * doc/posix-functions/faccessat.texi (faccessat): Mention
34340         known issue with replacement.
34341         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
34342         * doc/posix-functions/linkat.texi (linkat): Likewise.
34343         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
34344         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
34345         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
34346         * doc/posix-functions/renameat.texi (renameat): Likewise.
34347         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
34348
34349         openat: fix GNU/Hurd bug in unlinkat
34350         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
34351         broken.
34352         * doc/posix-functions/unlink.texi (unlink): Document this.
34353         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
34354
34355         fdopendir: fix GNU/Hurd bug
34356         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
34357         allowing non-directory fds.
34358         * lib/fdopendir.c (rpl_fdopendir): Work around it.
34359         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
34360         * modules/dirent (Makefile.am): Substitute it.
34361         * lib/dirent.in.h (fdopendir): Declare replacement.
34362         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
34363         * tests/test-fdopendir.c (main): Test something other than
34364         /dev/null, since on Hurd that behaves like a directory.
34365
34366         test-symlink: port to GNU/Hurd
34367         * tests/test-symlink.h (test_symlink): Relax expected errno.
34368
34369         doc: tweak more cygwin information
34370         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
34371         now compatible with glibc.
34372         * doc/posix-functions/getopt.texi (getopt): Likewise.
34373
34374         getopt-gnu: add another test
34375         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
34376         guarantee behavior relied on by m4.
34377         * tests/test-getopt.c (main): Use it.
34378         * modules/getopt-posix-tests (Depends-on): Add setenv.
34379         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
34380
34381         getopt: fix compilation on darwin
34382         * lib/getopt.in.h (includes): Leave breadcrumbs during system
34383         include.
34384         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
34385         Reported by Ludovic Courtès.
34386
34387 2009-10-06  Bruno Haible  <bruno@clisp.org>
34388
34389         * modules/size_max (Description): Discourage its use.
34390         Reported by Simon Josefsson.
34391
34392 2009-10-06  Jim Meyering  <meyering@redhat.com>
34393
34394         linkat: avoid compilation failure
34395         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
34396
34397 2009-10-05  Eric Blake  <ebb9@byu.net>
34398
34399         linkat: support Linux 2.6.17
34400         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
34401         linkat on Linux, but allow cache variable override.
34402         * lib/linkat.c (rpl_linkat): Define override.
34403         * modules/linkat (Depends-on): Add symlinkat.
34404         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
34405         * modules/unistd (Makefile.am): Substitute it.
34406         * lib/unistd.in.h (linkat): Declare replacement.
34407         Reported by Pádraig Brady.
34408
34409         quotearg: port test to systems with C.UTF-8 locale
34410         * tests/test-quotearg.c (struct result_strings): Add another
34411         member, differentiating between C.ASCII and C.UTF-8 handling.
34412         (compare_strings): Add parameter.
34413         (main): Adjust all callers.
34414
34415         getopt: avoid clash with FreeBSD _getopt_internal
34416         * lib/getopt.in.h (_getopt_internal): Override the name.
34417         * lib/getopt_int.h (includes): Pick up any overrides.
34418         Reported by Reuben Thomas.
34419
34420         hash: allow C89 compilation
34421         * lib/hash.c (check_tuning): Move declaration before statement.
34422         Reported by Reuben Thomas.
34423
34424 2009-10-05  Karl Berry  <karl@gnu.org>
34425
34426         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
34427
34428 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
34429             Bruno Haible  <bruno@clisp.org>
34430
34431         * lib/uname.c (uname): Use a table-driven algorithm to compute
34432         Windows NT versions.
34433
34434 2009-10-04  Bruno Haible  <bruno@clisp.org>
34435
34436         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
34437         program_invocation_short_name.
34438         * modules/progname (configure.ac): Test for presence of
34439         program_invocation_short_name.
34440         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
34441
34442 2009-10-04  Bruno Haible  <bruno@clisp.org>
34443
34444         * lib/progname.c (set_program_name): Fix comment.
34445         Reported by Jim Meyering.
34446
34447 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
34448             Bruno Haible  <bruno@clisp.org>
34449
34450         * lib/uname.c: Include <string.h>.
34451         (uname): Do only one call to GetVersionEx in the common case.
34452
34453 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
34454             Bruno Haible  <bruno@clisp.org>
34455
34456         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
34457         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
34458         (uname): Add support for Windows CE and various non-x86 CPU types.
34459
34460 2009-10-03  Bruno Haible  <bruno@clisp.org>
34461
34462         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
34463         invocation to tests/configure.ac.
34464         Reported by Ian Beckwith <ianb@erislabs.net>.
34465
34466 2009-10-02  Eric Blake  <ebb9@byu.net>
34467
34468         fchdir: avoid compiler warning
34469         * lib/fchdir.c (canonicalize_file_name)
34470         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
34471
34472         test-open: support mingw errno values
34473         * tests/test-open.h (test_open): Relax test.
34474         * tests/test-fopen.h (test_fopen): Likewise.
34475         * tests/test-openat-safer.c (main): Likewise.
34476
34477         open: fix opening directory on mingw
34478         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
34479
34480         test-open: on GNU/Hurd, /dev/null is a directory
34481         * tests/test-fopen.h (main): Rename...
34482         (test_fopen): ...to this.  Use a guaranteed non-directory when
34483         confirming open behavior on trailing slash.
34484         * tests/test-openat-safer.c (main): Likewise.
34485         * tests/test-open.h (main): Likewise....
34486         (test_open): ...to this.
34487         * tests/test-fopen.c (main): Adjust caller.
34488         * tests/test-fopen-safer.c (main): Likewise.
34489         * tests/test-open.c (main): Likewise.
34490         * tests/test-fcntl-safer.c (main): Likewise.
34491         Reported by Samuel Thibault.
34492
34493         rename, fchdir: don't ignore chdir failure
34494         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
34495         * lib/rename.c (rpl_rename) [W32]: Likewise.
34496         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
34497         an empty destination directory if source cannot be renamed,
34498         although there is still possibility for failure.
34499         * doc/posix-functions/rename.texi (rename): Document the race.
34500         Reported by Jim Meyering.
34501
34502         maint: cleanup whitespace in recent commits
34503         * lib/rename.c (rpl_rename): Remove tabs.
34504         * tests/test-link.h (test_link): Likewise.
34505         * lib/fchdir.c (get_name): Likewise.
34506         Reported by Jim Meyering.
34507
34508 2009-10-02  Ben Pfaff  <blp@gnu.org>
34509
34510         relocatable-prog-wrapper: Add missing dependency on
34511         double-slash-root.
34512         * modules/relocatable-prog-wrapper: Add dependency.
34513         Reported by Ian Beckwith <ianb@erislabs.net>.
34514
34515 2009-10-02  Eric Blake  <ebb9@byu.net>
34516
34517         renameat: fix Solaris bugs
34518         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
34519         needed fixing.
34520         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
34521         * modules/stdio (Makefile.am): Substitute it.
34522         * lib/stdio.in.h (renameat): Declare replacement.
34523         * lib/renameat.c (rpl_renameat): Implement fix.
34524
34525         renameat: new module
34526         * modules/renameat: New file.
34527         * lib/renameat.c (renameat): Likewise.
34528         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
34529         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
34530         * modules/stdio (Makefile.am): Substitute them.
34531         * lib/stdio.in.h (renameat): Declare it.
34532         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34533         * doc/posix-functions/renameat.texi (renameat): Likewise.
34534         * modules/renameat-tests: New test.
34535         * tests/test-renameat.c: Likewise.
34536
34537         rename: fix mingw bugs
34538         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
34539         directory overwrite bugs.
34540
34541         rename: fix another cygwin 1.5 bug
34542         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
34543         checks.
34544         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
34545         unnecessary cygwin workarounds.  Also work around bug with moving
34546         full directory onto an empty one.
34547         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
34548
34549         rename-dest-slash: merge into rename module
34550         * modules/rename-dest-slash (Status): Mark obsolete.
34551         (Depends-on): Add rename.
34552         (Files): Let rename do it all.
34553         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
34554         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
34555         * m4/rename-dest-slash.m4: ...so this file can be deleted.
34556         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
34557         * lib/rename.c (rpl_rename): Update comments.
34558
34559         rename: fix cygwin 1.5.x bugs
34560         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
34561         * lib/rename.c (rpl_rename): Work around them.
34562         * modules/rename (Depends-on): Add same-inode.
34563
34564         rename: fix Solaris 10 bug
34565         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
34566         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
34567         was the only bug.
34568
34569         rename: fix Solaris 9 bug
34570         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
34571         on non-directory.  Avoid calling exit.
34572         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
34573         strdup.
34574         * modules/rename-tests (Depends-on): Drop lstat.
34575         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
34576         (gl_PREREQ_RENAME): Delete unused macro.
34577
34578         rename-dest-slash: fix NetBSD bug
34579         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
34580         links.
34581         * modules/rename-dest-slash (Depends-on): Add same-inode.
34582
34583         rename-tests: new test, exposes several platform bugs
34584         * modules/rename-tests: New file.
34585         * tests/test-rename.h: Likewise.
34586         * tests/test-rename.c: Likewise.
34587         * doc/posix-functions/rename.texi (rename): Improve documentation,
34588         including bugs that will eventually be fixed in gnulib.
34589
34590 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
34591
34592         * lib/uname.c: Include <stdlib.h>
34593         (uname): Assume version info is available.
34594
34595 2009-10-02  Jim Meyering  <meyering@redhat.com>
34596
34597         gnu-web-doc-update: correct --help output
34598         * build-aux/gnu-web-doc-update: Make --help output relevant.
34599
34600         gnu-web-doc-update: add standard options
34601         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
34602
34603         gnu-web-doc-update: New module.
34604         Use this script to automatically update the on-line web documentation
34605         for your GNU project at http://www.gnu.org/software/$pkg/manual/
34606         * modules/gnu-web-doc-update: New file, from coreutils.
34607         * build-aux/gnu-web-doc-update: New script.
34608
34609 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
34610
34611         link: LoadLibrary is not needed.
34612         * lib/link.c: Use GetModuleHandle.
34613
34614 2009-10-01  Eric Blake  <ebb9@byu.net>
34615
34616         getopt: bump serial number
34617         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
34618         change.
34619
34620         tests: tighten link, rmdir, and remove tests
34621         * tests/test-link.h (includes): No need to use <config.h> here.
34622         Clean up if directory hard link was created, otherwise test for
34623         trailing '.'.
34624         * tests/test-linkat.c (main): Simplify.
34625         * tests/test-remove.c (main): Enhance test for trailing '.'.
34626         * tests/test-rmdir.h (test_rmdir_func): Likewise.
34627
34628 2009-10-01  Jim Meyering  <meyering@redhat.com>
34629
34630         maint.mk: requiring "make major" was annoying, for a "minor" release.
34631         What is intended is "stable", to contrast with alpha and beta,
34632         so require "make stable", not "make major".
34633         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
34634         (get_tool_versions): Likewise.
34635         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
34636
34637 2009-09-30  Ben Pfaff  <blp@gnu.org>
34638
34639         Fix broken build of replacement for Windows tmpfile().
34640         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
34641         flags argument added along with the 'mkostemp' module.
34642
34643 2009-09-28  Bruno Haible  <bruno@clisp.org>
34644
34645         Avoid identifier clash with POSIX function 'remove' defined as a macro.
34646         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
34647         to 'remove_elt'.
34648         (gl_list_remove): Update.
34649         * lib/gl_list.c (gl_list_remove): Update.
34650         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
34651         to 'remove_elt'.
34652         (gl_oset_remove): Update.
34653         * lib/gl_list.c (gl_oset_remove): Update.
34654         Reported by Eric Blake.
34655
34656 2009-09-28  Eric Blake  <ebb9@byu.net>
34657
34658         doc: mention yet more cygwin 1.7 status
34659         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
34660         cygwin.
34661         * doc/glibc-functions/execvpe.texi (execvpe): New file.
34662         * doc/gnulib.texi (Glibc unistd.h): Mention it.
34663
34664         argp: fix test failure
34665         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
34666         that are not upper-case.  Pass correct range to tolower.
34667
34668 2009-09-27  Jim Meyering  <meyering@redhat.com>
34669
34670         test-yesno: work around sparc-dash here-document infelicity
34671         Without this change, the literal \177 byte in a here document
34672         would make dash 0.5.5.1-3 access uninitialized memory.
34673         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
34674         Instead, use a marker, "@", and filter through tr to create the desired
34675         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
34676
34677 2009-09-27  Bruno Haible  <bruno@clisp.org>
34678
34679         Disable untested support for new flavours of ACLs on AIX.
34680         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
34681         progress.
34682         * lib/set-mode-acl.c (qset_acl): Likewise.
34683
34684 2008-12-07  Bruno Haible  <bruno@clisp.org>
34685
34686         Add support for new flavours of ACLs on AIX. (Untested.)
34687         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
34688         (file_has_acl): Add support for newer AIX.
34689         * lib/set-mode-acl.c (qset_acl): Likewise.
34690         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
34691         Rainer Tammer <tammer@tammer.net>.
34692
34693 2009-09-26  Eric Blake  <ebb9@byu.net>
34694
34695         argp: fix compilation of getopt
34696         * lib/getopt.in.h (includes): Use different guard than glibc.
34697         Reported by Sergey Poznyakoff.
34698
34699         doc: mention more cygwin 1.7 status
34700         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
34701         bug.
34702         * doc/posix-functions/execl.texi (execl): Likewise.
34703         * doc/posix-functions/execle.texi (execle): Likewise.
34704         * doc/posix-functions/execlp.texi (execlp): Likewise.
34705         * doc/posix-functions/execv.texi (execv): Likewise.
34706         * doc/posix-functions/execve.texi (execve): Likewise.
34707         * doc/posix-functions/execvp.texi (execvp): Likewise.
34708         * doc/glibc-functions/canonicalize_file_name.texi
34709         (canonicalize_file_name): Cygwin 1.7 now provides this.
34710         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
34711         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
34712         on AT_SYMLINK_NOFOLLOW.
34713
34714 2009-09-24  Eric Blake  <ebb9@byu.net>
34715
34716         test-linkat: make test more robust
34717         * tests/test-linkat.c (main): Avoid collision with EEXIST.
34718
34719         getopt: fix inclusion guards for cygwin
34720         * modules/getopt-posix (Depends-on): Add include-next.
34721         (Makefile.am): Substitute more items in replacement header.
34722         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
34723         <getopt.h>.
34724         * lib/getopt.in.h (includes): Use split inclusion guard, and
34725         prefer <getopt.h> over include <unistd.h> when one is present.
34726         (option): Also override name of 'struct option'.
34727
34728         same-inode: revert prior change; it is not yet ready
34729         * NEWS: Undo mention of this change.
34730         * lib/same-inode.h (same-inode.h): Undo tri-state change.
34731         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
34732         * lib/cycle-check.c (cycle_check): Likewise.
34733         * lib/same.c (same_name): Likewise.
34734         * lib/at-func2.c (at_func2): Likewise.
34735
34736 2009-09-23  Eric Blake  <ebb9@byu.net>
34737
34738         linkat: new module
34739         * modules/linkat: New file.
34740         * lib/at-func2.c (at_func2): Likewise.
34741         * lib/linkat.c (linkat): Likewise.
34742         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
34743         * lib/openat-priv.h (at_func2): Add declaration.
34744         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
34745         * modules/unistd (Makefile.am): Substitute them.
34746         * lib/unistd.in.h (linkat): Declare it.
34747         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34748         * doc/posix-functions/linkat.texi (linkat): Likewise.
34749         * doc/posix-functions/link.texi (link): Tweak wording.
34750         * tests/test-link.c (main): Move guts...
34751         * tests/test-link.h (test_link): ...into new file.
34752         * modules/linkat-tests: New test.
34753         * tests/test-linkat.c: Likewise.
34754         * modules/link-tests (Files): Ship new file.
34755         (Depends-on): Add stdbool.
34756
34757         dirname: add library-safe mdir_name
34758         * lib/dirname.h (mdir_name): New prototype.
34759         * lib/dirname.c (dir_name): Move guts...
34760         (mdir_name): ...to new function that avoids xalloc_die.
34761
34762         fchdir: another mingw fix
34763         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
34764         * lib/fchdir.c (get_name): New helper method; skips canonicalize
34765         on mingw (where it has not yet been ported), and make it optional
34766         elsewhere.
34767         (_gl_register_fd): Use it.
34768
34769         same-inode: make SAME_INODE tri-state, to port to mingw
34770         * NEWS: Mention this change.
34771         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
34772         st_ino always being 0.
34773         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
34774         * lib/cycle-check.c (cycle_check): Likewise.
34775         * lib/same.c (same_name): Likewise.
34776
34777         lstat: avoid mingw compilation error
34778         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
34779         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
34780         lstat ourselves.
34781         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
34782         was adequate.
34783         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
34784         the checks for lstat.
34785         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
34786
34787         link: fix test failure on Solaris 9
34788         * lib/link.c (rpl_link): Don't assume link will catch bogus
34789         trailing slash on source.
34790
34791         test-symlinkat: enhance test
34792         * tests/test-readlink.c (main): Move guts...
34793         * tests/test-readlink.h (test_readlink): ...into new file.
34794         * tests/test-symlink.c (main): Move guts...
34795         * tests/test-symlink.h (test_symlink): ...into new file.
34796         * tests/test-symlinkat.c (main): Use new files for further
34797         coverage.
34798         (do_symlink, do_readlink): New helper functions.
34799         * modules/symlink-tests (Files): Ship new file.
34800         (Depends-on): Add stdbool.
34801         * modules/readlink-tests (Files): Ship new file.
34802         (Depends-on): Add stdbool.
34803         * modules/symlinkat-tests (Files): Use new files.
34804
34805 2009-09-23  Eric Blake  <ebb9@byu.net>
34806
34807         readlink: document portability issue with symlink length
34808         * doc/posix-functions/lstat.texi (lstat): Mention that some file
34809         systems have bogus st_size on symlinks, and mention the
34810         areadlink-with-size module.
34811         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
34812         * doc/posix-functions/readlink.texi (readlink): Mention the
34813         areadlink module, and ERANGE failure.
34814         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
34815         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
34816
34817         readlink: fix Solaris 9 bug with trailing slash
34818         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
34819         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
34820         * doc/posix-functions/readlink.texi (readlink): Document this.
34821         * modules/readlink-tests: New test.
34822         * tests/test-readlink.c: Likewise.
34823
34824         readlink: fix cygwin 1.5.x bug with return type
34825         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
34826         * lib/unistd.in.h (readlink): Use ssize_t.
34827         * lib/readlink.c (readlink): Likewise.
34828         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
34829         * modules/unistd (Makefile.am): Substitute it.
34830         * lib/unistd.in.h (readlink): Declare replacement.
34831         * doc/posix-functions/readlink.texi (readlink): Document this.
34832
34833         symlink: use throughout gnulib
34834         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
34835         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
34836         symlink is not used.
34837         * modules/symlinkat (Depends-on): Add symlink.
34838         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
34839         * modules/canonicalize-tests (Depends-on): Likewise.
34840         * modules/lstat-tests (Depends-on): Likewise.
34841         * modules/openat-tests (Depends-on): Likewise.
34842         * modules/remove-tests (Depends-on): Likewise.
34843         * modules/rmdir-tests (Depends-on): Likewise.
34844         * modules/unlink-tests (Depends-on): Likewise.
34845         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
34846         * tests/test-canonicalize.c (symlink): Likewise.
34847         * tests/test-fstatat.c (symlink): Likewise.
34848         * tests/test-lstat.c (symlink): Likewise.
34849         * tests/test-remove.c (symlink): Likewise.
34850         * tests/test-rmdir.c (symlink): Likewise.
34851         * tests/test-unlink.c (symlink): Likewise.
34852         * tests/test-unlinkat.c (symlink): Likewise.
34853
34854         symlink: new module, for Solaris 9 bug
34855         * modules/symlink: New file.
34856         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
34857         * lib/symlink.c: Likewise.
34858         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
34859         * modules/unistd (Makefile.am): Substitute them.
34860         * lib/unistd.in.h (symlink): Declare replacement.
34861         * MODULES.html.sh (File system functions): Mention it.
34862         * doc/posix-functions/symlink.texi (symlink): Likewise.
34863         * modules/symlink-tests: New test.
34864         * tests/test-symlink.c: Likewise.
34865
34866 2009-09-23  Bruno Haible  <bruno@clisp.org>
34867
34868         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
34869         when needed.
34870         Test case: gnulib-tool --import --with-tests atexit inttypes.
34871         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
34872
34873 2009-09-23  Bruno Haible  <bruno@clisp.org>
34874
34875         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
34876         subcommand, not in a subshell.
34877
34878 2009-09-22  Eric Blake  <ebb9@byu.net>
34879
34880         unistd: sort replacement declarations
34881         * lib/unistd.in.h: Sort declarations.
34882
34883         open, openat: minor optimization
34884         * lib/open.c (open): If open succeeded, len is non-zero.
34885         * lib/openat.c (rpl_openat): Likewise.
34886
34887         link-follow: ensure correct result
34888         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
34889         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
34890         distinguish between possible failures.
34891
34892 2009-09-21  Eric Blake  <ebb9@byu.net>
34893
34894         fts: avoid compiler warning
34895         * lib/fts.c (dirent_inode_sort_may_be_useful)
34896         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
34897
34898 2009-09-19  Bruno Haible  <bruno@clisp.org>
34899
34900         * lib/progreloc.c (canonicalize_file_name): New declaration.
34901
34902 2009-09-19  Eric Blake  <ebb9@byu.net>
34903
34904         link: fix quoting
34905         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
34906
34907         openat: fix openat bugs on Solaris 9
34908         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
34909         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
34910         * modules/openat (Depends-on): Add open.
34911         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
34912         * modules/fcntl-h (Makefile.am): Substitute it.
34913         * lib/fcntl.in.h (openat): Declare replacement.
34914         * doc/posix-functions/openat.texi (openat): Document this.
34915
34916         openat: move fstatat and unlinkat into correct files
34917         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
34918         compiled.
34919         * lib/openat.c (fstatat, unlinkat): Move...
34920         * lib/fstatat.c (fstatat): ...into correct files.
34921         * lib/unlinkat.c (unlinkat): Likewise.
34922
34923         openat: fix unlinkat bugs on Solaris 9
34924         * lib/unlinkat.c (unlinkat): New file.
34925         * modules/openat (Depends-on): Add unlink.
34926         (Files): Distribute it.
34927         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
34928         trailing slash behavior is broken.
34929         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
34930         * modules/unistd (Makefile.am): Substitute it.
34931         * lib/unistd.in.h (unlinkat): Declare replacement.
34932         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
34933
34934         openat: fix fstatat bugs on Solaris 9
34935         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
34936         stat.
34937         * doc/posix-functions/fstatat.texi (fstatat): Document this.
34938
34939         test-unlinkat: enhance test, to expose Solaris 9 bug
34940         * tests/test-unlink.c (main): Factor guts...
34941         * tests/test-unlink.h (test_rmdir_func): ...into new file.
34942         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
34943         * tests/test-rmdir.c (main): Adjust caller.
34944         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
34945         (unlinker): New helper function.
34946         (rmdirat): Enhance check.
34947         * modules/rmdir-tests (Depends-on): Add stdbool.
34948         * modules/unlink-tests (Depends-on): Likewise.
34949         (Files): Add test-unlink.h.
34950         * modules/openat-tests (Files): Likewise.
34951         (Depends-on): Add unlinkdir.
34952
34953         test-fstatat: new test, to expose Solaris 9 bugs
34954         * tests/test-stat.c (main): Factor guts...
34955         * tests/test-stat.h (test_stat_func): ...into new file.
34956         * tests/test-lstat.c (main): Factor guts...
34957         * tests/test-lstat.h (test_lstat_func): ...into new file.
34958         * tests/test-fstatat.c: New file.
34959         * modules/stat-tests (Files): Add test-stat.h.
34960         * modules/lstat-tests (Files): Add test-lstat.h.
34961         (Depends-on): Add stdbool.
34962         * modules/openat-tests (Depends-on): Add pathmax.
34963         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
34964         (Makefile.am): Run new test.
34965
34966         remove: new module, for mingw and Solaris 9 bugs
34967         * modules/remove: New file.
34968         * lib/remove.c: Likewise.
34969         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
34970         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
34971         * modules/stdio (Makefile.am): Use them.
34972         * lib/stdio.in.h (remove): Declare replacement.
34973         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34974         * doc/posix-functions/remove.texi (remove): Likewise.
34975         * modules/remove-tests: New test.
34976         * tests/test-remove.c: Likewise.
34977
34978         unlink: new module, for Solaris 9 bug
34979         * modules/unlink: New file.
34980         * lib/unlink.c: Likewise.
34981         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
34982         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
34983         * modules/unistd (Makefile.am): Use them.
34984         * lib/unistd.in.h (stat): Declare replacement.
34985         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34986         * doc/posix-functions/unlink.texi (unlink): Likewise.
34987         * modules/unlink-tests: New test.
34988         * tests/test-unlink.c: Likewise.
34989
34990         lstat: fix Solaris 9 bug
34991         * lib/lstat.c (lstat): Also check for trailing slash on
34992         non-symlink, non-directories.  Use stat module to simplify logic.
34993         * doc/posix-functions/lstat.texi (lstat): Document it.
34994         * modules/lstat-tests (Depends-on): Add errno, same-inode.
34995         (configure.ac): Check for symlink.
34996         * tests/test-lstat.c (main): Add more tests.
34997
34998         stat: add as dependency to other modules
34999         * modules/chown (Depends-on): Add stat.
35000         * modules/euidaccess (Depends-on): Likewise.
35001         * modules/fchdir (Depends-on): Likewise.
35002         * modules/isdir (Depends-on): Likewise.
35003         * modules/link (Depends-on): Likewise.
35004         * modules/lstat (Depends-on): Likewise.
35005         * modules/mkdir-p (Depends-on): Likewise.
35006         * modules/modechange (Depends-on): Likewise.
35007         * modules/open (Depends-on): Likewise.
35008         * modules/readlink (Depends-on): Likewise.
35009         * modules/same (Depends-on): Likewise.
35010
35011         stat: fix Solaris 9 bug
35012         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
35013         slash.
35014         * lib/stat.c (rpl_stat): Work around it.
35015         * doc/posix-functions/stat.texi (stat): Update documentation.
35016
35017         stat: new module, for mingw bug
35018         * modules/stat: New file.
35019         * lib/stat.c: Likewise.
35020         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
35021         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
35022         * modules/sys_stat (Makefile.am): Use them.
35023         * lib/sys_stat.in.h (stat): Declare replacement.
35024         * lib/openat.c (fstatat): Deal with lstat and stat being function
35025         macros.
35026         * modules/openat (Depends-on): Add inline.
35027         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35028         * doc/posix-functions/stat.texi (stat): Likewise.
35029         * modules/stat-tests: New test.
35030         * tests/test-stat.c: Likewise.
35031
35032 2009-09-19  Jim Meyering  <meyering@redhat.com>
35033
35034         syntax-check: detect unnecessary inclusion of canonicalize.h
35035         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
35036
35037 2009-09-19  Eric Blake  <ebb9@byu.net>
35038
35039         canonicalize-lgpl: adjust clients to use correct header
35040         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
35041         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
35042         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
35043         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
35044         * lib/progreloc.c (includes): Likewise.
35045
35046 2009-09-19  Jim Meyering  <meyering@redhat.com>
35047
35048         test-posixtm.c: correct a comment
35049         * tests/test-posixtm.c: Correct first-line comment.
35050         Spotted by Eric Blake.
35051
35052 2009-09-16  Jim Meyering  <meyering@redhat.com>
35053
35054         posixtm-tests: make T const-correct; add a test case
35055         * tests/test-posixtm.c (T): Declare const.
35056         Add a test for -(2^31+1).
35057         Remove useless can-succeed-only-in-2002 test.
35058
35059         posixtm-tests: adjust the sole failing test
35060         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
35061         expected output matches what mktime now produces.  Cross-checked via
35062         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
35063
35064         posixtm: move #ifdef'd tests into a new module
35065         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
35066         * tests/test-posixtm.c: ... this new file.
35067         * modules/posixtm-tests: New module.
35068
35069 2009-09-19  Eric Blake  <ebb9@byu.net>
35070
35071         openat: simplify use of at-func.c
35072         * lib/at-func.c (includes): Include prerequisites here, to
35073         simplify requirements on client files.
35074         * lib/openat-priv.h: Add double-inclusion guard.
35075         * lib/faccessat.c (includes): Simplify.
35076         * lib/fchmodat.c (includes): Likewise.
35077         * lib/fchownat.c (includes): Likewise.
35078         * lib/mkdirat.c (includes): Likewise.
35079         * lib/mkfifoat.c (includes): Likewise.
35080         * lib/symlinkat.c (includes): Likewise.
35081
35082         openat: allow return of fd 0
35083         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
35084         * modules/save-cwd (Depends-on): Replace fcntl-safer with
35085         unistd-safer.
35086         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
35087         <fcntl.h>; this module does not leak fds.
35088         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
35089         must be allowed to return 0, leaving openat_safer to add the
35090         safety.
35091         (openat_permissive): Avoid writing to just-opened fd 2 if
35092         restoring the current directory fails.
35093         * lib/openat-die.c (openat_restore_fail): Add comment.
35094         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
35095         (save_cwd): Guarantee safe fd, but without use of open_safer.
35096         * tests/test-openat.c: New test.
35097         * modules/openat-tests (Files, Makefile.am): Distribute and build
35098         new file.
35099
35100         relocatable-prog-wrapper: fix build
35101         * modules/relocatable-prog-wrapper (Files): Update name of
35102         canonicalize m4 file, broken on 2009-09-17.
35103         Reported by emad hajjar <aleppos@hotmail.com>.
35104
35105 2009-09-19  Bruno Haible  <bruno@clisp.org>
35106
35107         * lib/safe-alloc.h: Use the standard header with GPL copyright.
35108         * lib/safe-alloc.c: Likewise.
35109         Reported by Ian Beckwith <ianb@erislabs.net>.
35110
35111 2009-09-18  Bruno Haible  <bruno@clisp.org>
35112
35113         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
35114         Reported by <erobles@sensacd.com.mx>.
35115
35116 2009-09-17  Eric Blake  <ebb9@byu.net>
35117
35118         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
35119         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
35120         slashes when checking if last component is missing.
35121         * tests/test-canonicalize.c (main): Test this.
35122
35123         canonicalize, canonicalize-lgpl: honor // if distinct from /
35124         * modules/canonicalize (Files): Add double-slash-root.m4.
35125         * modules/canonicalize-lgpl (Files): Likewise.
35126         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
35127         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
35128         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
35129         fallback definition.
35130         (canonicalize_filename_mode): Use it to protect //.
35131         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
35132         (__realpath): Likewise.
35133         * tests/test-canonicalize.c (main): Test this.
35134         * tests/test-canonicalize-lgpl.c (main): Likewise.
35135         * modules/canonicalize-tests (Depends-on): Add same-inode.
35136         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
35137
35138         canonicalize-lgpl: fix glibc bug with trailing slash
35139         * m4/canonicalize-lgpl.m4: Move contents...
35140         * m4/canonicalize.m4: ...here.
35141         (gl_CANONICALIZE_LGPL): Factor realpath check...
35142         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
35143         glibc 2.3.5 bug, fixed 2005-04-27.
35144         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
35145         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
35146         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
35147         * modules/canonicalize-lgpl (Files): Manage file rename.
35148         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
35149         * modules/stdlib (Makefile.am): Substitute witness.
35150         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
35151         is needed.
35152         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
35153         replacement is required.
35154         * lib/canonicalize.c (canonicalize_file_name): Likewise.
35155         * doc/glibc-functions/canonicalize_file_name.texi
35156         (canonicalize_file_name): Document this.
35157         * doc/posix-functions/realpath.texi (realpath): Likewise.
35158
35159         canonicalize-lgpl: reject non-directory with trailing slash
35160         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
35161         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
35162         catches failures in glibc 2.3.5.
35163         * tests/test-canonicalize.c (main): Likewise.
35164
35165         canonicalize-lgpl: use native realpath if it works
35166         * lib/canonicalize-lgpl.c (realpath): Guard with
35167         FUNC_REALPATH_WORKS.
35168         * lib/stdlib.in.h (realpath): Make declaration optional based on
35169         HAVE_REALPATH.
35170         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
35171         native realpath works.
35172         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
35173         * modules/stdlib (Makefile.am): Substitute witness.
35174
35175         canonicalize, canonicalize-lgpl: use <stdlib.h>
35176         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
35177         (Include): Mention <stdlib.h>.
35178         (configure.ac): Mention functions we provide.
35179         * modules/canonicalize (configure.ac): Likewise.
35180         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
35181         realpath if canonicalize_file_name is missing.
35182         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
35183         * modules/stdlib (Makefile.am): Substitute witnesses.
35184         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
35185         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
35186         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
35187         * NEWS: Document this.
35188         * doc/glibc-functions/canonicalize_file_name.texi
35189         (canonicalize_file_name): Likewise.
35190         * doc/posix-functions/realpath.texi (realpath): Likewise.
35191         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
35192
35193         test-canonicalize: consolidate into single C program
35194         * tests/test-canonicalize.sh: Delete; move setup into...
35195         * tests/test-canonicalize.c (main): ...the program, making it
35196         easier to run in debugger.  Add some tests.
35197         * modules/canonicalize-tests (Files): Remove unused file.
35198         (Depends-on): Add progname.
35199         (configure.ac, Makefile.am): Simplify.
35200
35201         test-canonicalize-lgpl: consolidate into single C program
35202         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
35203         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
35204         easier to run in debugger.  Add some tests.
35205         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
35206         (configure.ac, Makefile.am): Simplify.
35207
35208         canonicalize: avoid resolvepath
35209         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
35210         unnecessary checks.
35211         * lib/canonicalize.c (includes): Simplify.
35212         (canonicalize_file_name): Drop resolvepath implementation.
35213         * modules/canonicalize (Depends-on): Drop filenamecat.
35214
35215         canonicalize: don't lose errno
35216         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
35217         over calls to free.
35218
35219         canonicalize: simplify errno handling
35220         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
35221         assignment.
35222
35223         canonicalize, canonicalize-lgpl: update module dependencies
35224         * modules/canonicalize (Depends-on): Add extensions, lstat,
35225         pathmax, stdlib.
35226         (Files): Drop pathmax.h.
35227         (configure.ac): Adjust macro name.
35228         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
35229         lstat, stdlib, sys_stat.
35230         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
35231         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
35232         extensions.
35233         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
35234         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
35235         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
35236         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
35237         declaration, if available.
35238         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
35239         we can rely on the readlink module.
35240         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
35241         (includes): Use <unistd.h> unconditionally.
35242
35243 2009-09-17  Eric Blake  <ebb9@byu.net>
35244
35245         maint: make Include sections of modules consistent
35246         * modules/alloca: Use only header name; no need to list #include.
35247         * modules/alloca-opt: Likewise.
35248         * modules/arpa_inet: Likewise.
35249         * modules/canon-host: Likewise.
35250         * modules/configmake: Likewise.
35251         * modules/dirent: Likewise.
35252         * modules/eealloc: Likewise.
35253         * modules/environ: Likewise.
35254         * modules/fchdir: Likewise.
35255         * modules/fcntl: Likewise.
35256         * modules/fcntl-h: Likewise.
35257         * modules/gethrxtime: Likewise.
35258         * modules/gettime: Likewise.
35259         * modules/ignore-value: Likewise.
35260         * modules/inet_ntop: Likewise.
35261         * modules/inet_pton: Likewise.
35262         * modules/inttypes: Likewise.
35263         * modules/isnand-nolibm: Likewise.
35264         * modules/isnanf-nolibm: Likewise.
35265         * modules/mbchar: Likewise.
35266         * modules/mbfile: Likewise.
35267         * modules/mbiter: Likewise.
35268         * modules/mbuiter: Likewise.
35269         * modules/netdb: Likewise.
35270         * modules/netinet_in: Likewise.
35271         * modules/nproc: Likewise.
35272         * modules/pagealign_alloc: Likewise.
35273         * modules/poll: Likewise.
35274         * modules/printf-frexp: Likewise.
35275         * modules/pthread: Likewise.
35276         * modules/putenv: Likewise.
35277         * modules/random_r: Likewise.
35278         * modules/relocatable-prog: Likewise.
35279         * modules/search: Likewise.
35280         * modules/select: Likewise.
35281         * modules/selinux-h: Likewise.
35282         * modules/settime: Likewise.
35283         * modules/signal: Likewise.
35284         * modules/size_max: Likewise.
35285         * modules/socklen: Likewise.
35286         * modules/ssize_t: Likewise.
35287         * modules/stdarg: Likewise.
35288         * modules/stdbool: Likewise.
35289         * modules/stddef: Likewise.
35290         * modules/stdint: Likewise.
35291         * modules/stdio: Likewise.
35292         * modules/stdlib: Likewise.
35293         * modules/string: Likewise.
35294         * modules/strings: Likewise.
35295         * modules/sys_file: Likewise.
35296         * modules/sys_ioctl: Likewise.
35297         * modules/sys_select: Likewise.
35298         * modules/sys_socket: Likewise.
35299         * modules/sys_stat: Likewise.
35300         * modules/sys_time: Likewise.
35301         * modules/sys_times: Likewise.
35302         * modules/sys_utsname: Likewise.
35303         * modules/sys_wait: Likewise.
35304         * modules/sysexits: Likewise.
35305         * modules/time: Likewise.
35306         * modules/times: Likewise.
35307         * modules/tmpfile: Likewise.
35308         * modules/trim: Likewise.
35309         * modules/unistd: Likewise.
35310         * modules/wchar: Likewise.
35311         * modules/wctype: Likewise.
35312
35313 2009-09-17  Bruno Haible  <bruno@clisp.org>
35314
35315         Make getdate.y compile on QNX and NetBSD 5 / i386.
35316         * m4/getdate.m4 (gl_GETDATE): Conditionally define
35317         TIME_T_FITS_IN_LONG_INT.
35318         * lib/getdate.y (long_time_t): New type.
35319         (relative_time): Change type of 'seconds' field to long_time_t.
35320         (get_date): Update types of local variables. Check against overflow
35321         during conversion from long_time_t to time_t.
35322         Reported by Matt Kraai <kraai@ftbfs.org>
35323         and Hasso Tepper <hasso@netbsd.org>.
35324
35325 2009-09-17  Bruno Haible  <bruno@clisp.org>
35326
35327         * modules/COPYING: Update copyright years.
35328         * modules/README: Likeiwse.
35329         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
35330         Reported by Ian Beckwith <ianb@erislabs.net>.
35331
35332 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
35333
35334         * users.txt: Update references for gnuit package.
35335
35336 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
35337
35338         * m4/getdelim.m4: Fix typo in copyright line.
35339
35340 2009-09-17  Bruno Haible  <bruno@clisp.org>
35341
35342         * lib/atoll.c: Use the standard header with GPL copyright.
35343         * lib/argz.in.h: Likewise.
35344         * lib/glob.c: Likewise.
35345         * lib/glob-libc.h: Likewise.
35346         * lib/random_r.c: Likewise.
35347         * lib/siglist.h: Likewise.
35348         * lib/strsignal.c: Likewise.
35349         Reported by Ian Beckwith <ianb@erislabs.net>.
35350
35351 2009-09-17  Eric Blake  <ebb9@byu.net>
35352
35353         rmdir: ensure correct dependency order
35354         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
35355
35356 2009-09-17  Bruno Haible  <bruno@clisp.org>
35357
35358         Disable assertion that fails on NetBSD 5 / i386.
35359         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
35360         Reported by Sam Steingold <sds@gnu.org>
35361         and Hasso Tepper <hasso@netbsd.org>.
35362
35363 2009-09-16  Eric Blake  <ebb9@byu.net>
35364
35365         unlinkdir: port to mingw
35366         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
35367         on which no one can unlink a directory.
35368
35369         stdlib: sort witness names
35370         * modules/stdlib (Makefile.am): Sort replacements.
35371         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
35372         * lib/stdlib.in.h: Likewise.
35373
35374         parse-duration-tests: avoid link failure
35375         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
35376         LIBINTL.
35377         Reported by Tom G. Christensen.
35378
35379         openat-tests: ensure unlinkat behaves like rmdir
35380         * tests/test-rmdir.c (main): Factor guts...
35381         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
35382         * modules/rmdir-tests (Files): Ship new file.
35383         * modules/openat-tests: New test.
35384         * tests/test-unlinkat.c: Likewise.
35385
35386         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
35387         * modules/rmdir-errno (Status, Notice): Now obsolete.
35388
35389         rmdir: work around cygwin 1.5.x and mingw bugs
35390         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
35391         * lib/rmdir.c (rmdir): Work around it.
35392         * modules/rmdir (Status, Notice): No longer obsolete.
35393         (Files): Add dos.m4.
35394         (Depends-on): Add unistd.
35395         (configure.ac): Set witnesses.
35396         (License): Relax to LGPLv2+.
35397         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
35398         * modules/unistd (Makefile.am): Substitute witnesses.
35399         * lib/unistd.in.h (rmdir): Declare replacement.
35400         * doc/posix-functions/rmdir.texi (rmdir): Document this.
35401         * modules/rmdir-tests: New tests.
35402         * tests/test-rmdir.c: Likewise.
35403
35404 2009-09-15  Eric Blake  <ebb9@byu.net>
35405
35406         fchdir: improve use of replacement functions
35407         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
35408         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
35409         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
35410         REPLACE_CLOSEDIR.
35411         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
35412         * modules/sys_stat (Makefile.am): Substitute correct witness.
35413         * modules/dirent (Makefile.am): Likewise.
35414         * modules/unistd (Makefile.am): Likewise.
35415         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
35416         * lib/unistd.in.h (dup): Likewise.
35417         * lib/sys_stat.in.h (fstat): Likewise.
35418
35419         maint: ignore gnulib-tool temp files
35420         * .gitignore: Ignore files created during gnulib-tool --test.
35421
35422 2009-09-13  Jim Meyering  <meyering@redhat.com>
35423
35424         posixtm: don't reject a time that specify "60" as the number of seconds
35425         * lib/posixtm.c (posixtime): The code to reject invalid dates
35426         would also reject a time specified with the .60 suffix.
35427         But POSIX allows that, in order to accommodate leap seconds.
35428         So don't reject it.
35429         (main): Adjust tests accordingly.
35430         * modules/posixtm (Depends-on): Add stpcpy.
35431
35432 2009-09-11  Jim Meyering  <meyering@redhat.com>
35433
35434         announce-gen: include [$release_type] in emitted Subject:
35435         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
35436         e.g., [stable] in the emitted Subject: line.
35437
35438 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35439
35440         Remove obsolete macros from several modules.
35441         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
35442         obsolete Autoconf macros with their modern counterparts.
35443         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
35444         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
35445         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
35446         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
35447         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
35448         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
35449         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
35450         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
35451         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
35452         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
35453         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
35454         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
35455         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
35456         * m4/sockets.m4 (gl_SOCKETS): Likewise.
35457         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
35458         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
35459         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
35460         * m4/time_r.m4 (gl_TIME_R): Likewise.
35461         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
35462         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
35463         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
35464
35465         Fix copyright header in build-aux scripts.
35466         * build-aux/git-version-gen: Fix copyright header to match GPLv3
35467         recommendation.
35468         * build-aux/ncftpput-ftp: Likewise.
35469         * build-aux/update-copyright: Likewise.
35470
35471 2009-09-09  Eric Blake  <ebb9@byu.net>
35472
35473         test-link: allow Linux choice of errno
35474         * tests/test-link.c (main): Relax test for alternate error.
35475
35476         strndup: fix improper m4 caching
35477         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
35478         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
35479         (gl_PREREQ_STRNDUP): Delete.
35480         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
35481         * modules/string (Makefile.am): Substitute it.
35482         * lib/string.in.h (strndup): Modernize prototype.
35483
35484         getcwd: port to mingw
35485         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
35486         different from the POSIX assumptions made throughout the getcwd
35487         module; fortunately, the mingw getcwd does not need replacement.
35488         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
35489         * modules/getcwd-tests: New test.
35490         * tests/test-getcwd.c: Likewise.
35491
35492         link: fix platform bugs
35493         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
35494         * lib/link.c (link): Work around them.  Fix related mingw bug.
35495         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
35496         * modules/unistd (Makefile.am): Substitute it.
35497         * lib/unistd.in.h (link): Declare replacement.
35498         * doc/posix-functions/link.texi (link): Document this.
35499         * modules/link (Depends-on): Add strdup-posix, sys_stat.
35500
35501         test-link: consolidate into single C program, test more cases
35502         * tests/test-link.sh: Delete.
35503         * tests/test-link.c: Test more error conditions.  Exposes bugs on
35504         at least Cygwin and Solaris.
35505         * modules/link-tests (Files): Remove unused file.
35506         (Depends-on): Add errno, sys_stat.
35507         (Makefile.am): Simplify.
35508
35509 2009-09-08  Bruno Haible  <bruno@clisp.org>
35510
35511         Work around towlower, towupper bug on mingw.
35512         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
35513         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
35514         * doc/posix-functions/towlower.texi: Mention the mingw bug.
35515         * doc/posix-functions/towupper.texi: Likewise.
35516         Reported by Eric Blake.
35517
35518 2009-09-08  Jim Meyering  <meyering@redhat.com>
35519
35520         build: don't try to run autoheader if we don't use it
35521         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
35522         is not used in configure.ac.
35523
35524 2009-09-08  Eric Blake  <ebb9@byu.net>
35525
35526         euidaccess: fix compilation error
35527         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
35528
35529         rawmemchr: relax license
35530         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
35531         okay.
35532         Reported by Jim Meyering.
35533
35534         mkfifoat: new module
35535         * modules/mkfifoat: New file.
35536         * lib/mkfifoat.c: Likewise.
35537         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
35538         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
35539         * modules/sys_stat (Makefile.am): Use them.
35540         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
35541         * MODULES.html.sh (File system functions): Mention module.
35542         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
35543         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
35544         * modules/mkfifoat-tests: New test.
35545         * tests/test-mkfifoat.c: Likewise.
35546
35547         strchrnul: relax license
35548         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
35549         okay.
35550         Reported by Jim Meyering.
35551
35552 2009-09-08  Eric Blake  <ebb9@byu.net>
35553
35554         fstatat: fix compilation on Solaris
35555         * lib/fstatat.c (includes): Add fcntl.h.
35556         Reported by Pádraig Brady.
35557
35558 2009-09-07  Eric Blake  <ebb9@byu.net>
35559
35560         rename: modernize replacement
35561         * modules/rename (Depends-on): Add stdio.
35562         (configure.ac): Declare witness.
35563         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
35564         stdio take care of replacement.
35565         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
35566         * modules/stdio (Makefile.am): Substitute them.
35567         * lib/stdio.in.h (rename): Declare replacement.
35568         * lib/rename.c (includes): Allow cross-compilation to non-windows
35569         machines.
35570         * doc/posix-functions/rename.texi (rename): Improve
35571         documentation.
35572
35573         stdio: sort witness names
35574         * modules/stdio (Makefile.am): Sort replacements.
35575         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
35576         * lib/stdio.in.h: Likewise.
35577
35578         getcwd: minor cleanups
35579         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
35580         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
35581
35582         openat: provide more convenience names
35583         * modules/faccessat (configure.ac): Add C witness.
35584         * lib/unistd.in.h (readlinkat): Fix typo.
35585         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
35586         convenience wrappers.
35587         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
35588         wrappers in syntax checks.
35589
35590 2009-09-06  Eric Blake  <ebb9@byu.net>
35591
35592         doc: fix comments in recent patches
35593         * lib/faccessat.c: Mention correct function.
35594         * lib/fchmodat.c: Likewise.
35595         * lib/fchownat.c: Likewise.
35596         * lib/symlinkat.c: Likewise.
35597         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
35598         constants.
35599
35600         faccessat, symlinkat: continue cleanup of previous patch
35601         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
35602         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
35603         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
35604         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
35605         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
35606         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
35607         set.
35608
35609 2009-09-06  Bruno Haible  <bruno@clisp.org>
35610
35611         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
35612         (fstatat): Declare if GNULIB_FSTATAT is set.
35613         (mkdirat): Declare if GNULIB_MKDIRAT is set.
35614         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
35615         (unlinkat): Declare if GNULIB_UNLINKAT is set.
35616         * modules/fcntl-h (Files): Remove m4/openat.m4.
35617         * modules/sys_stat (Files): Remove m4/openat.m4.
35618         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
35619         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
35620         * modules/unistd (Files): Remove m4/openat.m4.
35621         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
35622         GNULIB_OPENAT.
35623         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
35624         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
35625         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
35626         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
35627         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
35628         gl_OPENAT_DEFAULTS.
35629         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
35630         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
35631         Don't require gl_OPENAT_DEFAULTS.
35632         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
35633         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
35634         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
35635         (gl_OPENAT_DEFAULTS): Remove macro.
35636
35637 2009-09-06  Bruno Haible  <bruno@clisp.org>
35638
35639         * modules/openat (configure.ac): Remove unneeded witness.
35640
35641 2009-09-06  Bruno Haible  <bruno@clisp.org>
35642
35643         Set errno to ENOSYS when a function is entirely unsupported.
35644         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
35645         EOPNOTSUPP.
35646         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
35647         * modules/chown (Depends-on): Remove errno.
35648
35649 2009-09-06  Bruno Haible  <bruno@clisp.org>
35650
35651         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
35652
35653 2009-09-06  Bruno Haible  <bruno@clisp.org>
35654
35655         * lib/sys_stat.in.h: Fix preprocessor command indentation.
35656
35657 2009-09-06  Ben Pfaff  <blp@gnu.org>
35658             Bruno Haible  <bruno@clisp.org>
35659
35660         Work around a glibc bug in strtok_r.
35661         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
35662         Undefine if UNDEFINE_STRTOK_R is set.
35663         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
35664         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
35665         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
35666         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
35667         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
35668         UNDEFINE_STRTOK_R.
35669         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
35670
35671 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
35672
35673         exclude: minor fix
35674         * lib/exclude.c: Include wctype.h
35675
35676 2009-09-06  Akim Demaille  <demaille@gostai.com>
35677
35678         bootstrap: improve error message
35679         * build-aux/bootstrap (find_tool): Upon failure, report the list
35680         of candidates.
35681         Honor the initial value of the envvar.
35682
35683 2009-09-05  Eric Blake  <ebb9@byu.net>
35684
35685         symlinkat: new module
35686         * modules/symlinkat: New file.
35687         * lib/symlinkat.c: Likewise.
35688         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
35689         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
35690         * modules/unistd (Makefile.am): Use them.
35691         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
35692         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
35693         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
35694         * MODULES.html.sh (File system functions): Mention module.
35695         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
35696         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
35697         * modules/symlinkat-tests: New test.
35698         * tests/test-symlinkat.c: Likewise.
35699
35700         test-openat-safer: add more checks
35701         * tests/test-openat-safer.c (main): Check more code paths.
35702
35703 2009-09-05  Jim Meyering  <meyering@redhat.com>
35704
35705         syntax-check: detect unnecessary inclusion of openat.h
35706         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
35707
35708 2009-09-05  Bruno Haible  <bruno@clisp.org>
35709
35710         Support towlower, towupper.
35711         * doc/posix-functions/towlower.texi: Mention module wctype.
35712         * doc/posix-functions/towupper.texi: Likewise.
35713         * lib/wctype.in.h (towlower, towupper): New functions.
35714         * tests/test-wctype.c: Include stdio.h, stdlib.h.
35715         (ASSERT): New macro.
35716         (e): New variable.
35717         (main): Test also towlower, towupper. Test WEOF argument.
35718         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
35719
35720 2009-09-05  Bruno Haible  <bruno@clisp.org>
35721
35722         Fix conversion behaviour when the input is invalid.
35723         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
35724         mark occurring in first pass of indirect conversion.
35725         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
35726         input.
35727         Found by clang's static analyzer.
35728
35729 2009-09-05  Bruno Haible  <bruno@clisp.org>
35730
35731         * tests/test-striconveh.c (main): Test indirect conversion on platforms
35732         where direct conversion is possible.
35733
35734 2009-09-04  Eric Blake  <ebb9@byu.net>
35735
35736         openat: fail with ENOENT on empty name
35737         * lib/openat-proc.c (openat_proc_name): Special-case the empty
35738         buffer.
35739
35740         link-follow: fix logic bug in prior patch
35741         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
35742         reversed sense of yes and no in prior patch.  Avoid confusing
35743         compilation failure with desired semantics.
35744
35745         link-follow: accomodate mingw and cross-compilation
35746         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
35747         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
35748         cross-compilation results to -1, to make linkat easier to
35749         implement when cross-compiling.  Trivially support mingw.
35750         * modules/link-follow (configure.ac): Call new name.
35751         * NEWS: Mention this.
35752
35753 2009-09-03  Eric Blake  <ebb9@byu.net>
35754
35755         faccessat: compile replacement
35756         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
35757         needed.
35758
35759         fts: fix compilation error
35760         * lib/fts.c (includes): Re-add "openat.h", for
35761         openat_needs_fchdir.
35762
35763         faccessat: new module
35764         * modules/faccessat: New file.
35765         * lib/faccessat.c: Likewise.
35766         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
35767         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
35768         * modules/unistd (Makefile.am): Use it.
35769         * lib/unistd.in.h (faccessat): Declare it.
35770         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
35771         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
35772         * MODULES.html.sh (File system functions): Mention it.
35773         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
35774         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
35775
35776         euidaccess: prefer POSIX over non-standard implementation
35777         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
35778         * lib/euidaccess.c (euidaccess): Use it if available.
35779
35780         openat: make template easier to use
35781         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
35782         AT_FUNC_F2 to be undefined.
35783         (VALIDATE_FLAG): New macro; use it to reject bad flags.
35784         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
35785         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
35786         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
35787         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
35788         Likewise.
35789         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
35790         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
35791         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
35792         Likewise.
35793
35794         openat: declare in POSIX headers
35795         * NEWS: Mention this.
35796         * modules/openat (configure.ac): Declare witnesses.
35797         (Depends-on): Add fcntl-h, sys_stat, unistd.
35798         (Include): Mention correct headers.
35799         * modules/fcntl-h (Depends-on): Add link-warning.
35800         (Files): Add openat.m4.
35801         (Makefile.am): Substitute witnesses.
35802         * modules/sys_stat (Files, Makefile.am): Likewise.
35803         * modules/unistd (Files, Makefile.am): Likewise.
35804         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
35805         (gl_OPENAT_DEFAULTS): New macro.
35806         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
35807         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
35808         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
35809         (SYS_STAT_H): Remove unused variable.
35810         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
35811         * lib/fcntl--.h (includes): Remove unneeded header.
35812         * lib/openat-safer.c (includes): Likewise.
35813         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
35814         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
35815         appropriate headers.
35816         (__OPENAT_PREFIX): Delete.
35817         * lib/fcntl.in.h (openat): Provide declaration.
35818         (AT_FDCWD): Fix Solaris bug.
35819         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
35820         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
35821         * lib/fchmodat.c (includes):  Adjust to find declaration.
35822         * lib/fchownat.c (includes): Likewise.
35823         * lib/mkdirat.c (includes): Likewise.
35824         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
35825         still visible.
35826
35827 2009-09-02  Eric Blake  <ebb9@byu.net>
35828
35829         errno: use consistently
35830         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
35831         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
35832         * lib/canonicalize.c (ELOOP): Likewise.
35833         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
35834         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
35835         * lib/lchown.c (EOPNOTSUPP): Likewise.
35836         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
35837         * lib/savewd.c (ESTALE): Likewise.
35838         * lib/settime.c (ENOSYS): Likewise.
35839         * lib/utimens.c (ENOSYS): Likewise.
35840         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
35841         * lib/chdir-safer.c (ELOOP): Likewise.
35842         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
35843         * modules/c-stack (Depends-on): Add errno.
35844         * modules/canonicalize (Depends-on): Likewise.
35845         * modules/chdir-safer (Depends-on): Likewise.
35846         * modules/fdopendir (Depends-on): Likewise.
35847         * modules/inet_ntop (Depends-on): Likewise.
35848         * modules/inet_pton (Depends-on): Likewise.
35849         * modules/lchown (Depends-on): Likewise.
35850         * modules/openat (Depends-on): Likewise.
35851         * modules/savewd (Depends-on): Likewise.
35852         * modules/settime (Depends-on): Likewise.
35853         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
35854
35855         fts: avoid leaking fds
35856         * modules/fts (Depends-on): Add cloexec.
35857         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
35858         flag.
35859
35860         fts: make directory fds more robust
35861         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
35862         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
35863
35864         backupfile, chdir-long, fts, savedir: make safer
35865         * lib/backupfile.c (includes): Use "dirent--.h", since
35866         numbered_backup can write to stderr during readdir.
35867         * lib/savedir.c (includes): Likewise.
35868         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
35869         emulation can write to stderr on failure.
35870         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
35871         * lib/getcwd.c: Document why opendir_safer is unused.
35872         * lib/glob.c: Likewise.
35873         * lib/scandir.c: Likewise.
35874         * lib/openat-proc.c: Likewise, for open_safer.
35875         * modules/backupfile (Depends-on): Add dirent-safer.
35876         * modules/savedir (Depends-on): Likewise.
35877         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
35878         * modules/chdir-long (Depends-on): Add openat-safer.
35879
35880         openat-safer: new module
35881         * modules/openat-safer: New file.
35882         * lib/openat-safer.c: Likewise.
35883         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
35884         * lib/fcntl-safer.h (openat_safer): Declare.
35885         * lib/fcntl--.h (openat): Override.
35886         * MODULES.html.sh (File descriptor based I/O): Mention it.
35887         * lib/openat.h: Add double-inclusion guards.
35888         * lib/openat.c (includes): Only include "fcntl-safer.h", not
35889         "fcntl--.h", so we can implement openat.
35890         * modules/openat-safer-tests: New test.
35891         * tests/test-openat-safer.c: New file.
35892
35893         dirent-safer: new module
35894         * modules/dirent-safer: New file.
35895         * lib/dirent--.h: Likewise.
35896         * lib/dirent-safer.h: Likewise.
35897         * lib/opendir-safer.c: Likewise.
35898         * m4/dirent-safer.m4: Likewise.
35899         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
35900         * modules/dirent-safer-tests: New test.
35901         * tests/test-dirent-safer.c: New file.
35902         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
35903
35904         fdopendir: optimize on mingw
35905         * lib/unistd.in.h (_gl_directory_name): New prototype.
35906         * lib/fchdir.c (_gl_directory_name): Implement it.
35907         (fchdir): Use it to simplify implementation.
35908         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
35909         fchdir, when available, to avoid calling [f]chdir().
35910
35911         fdopendir: split into its own module
35912         * lib/openat.c (fdopendir): Move...
35913         * lib/fdopendir.c: ...into new file.
35914         * modules/fdopendir: New module.
35915         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
35916         * modules/openat (Depends-on): Add fdopendir.
35917         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
35918         fdopendir here.
35919         * modules/savedir (Depends-on): Only need fdopendir, not full
35920         openat.
35921         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
35922         * lib/openat.h (fdopendir): Drop prototype.
35923         * lib/dirent.in.h (fdopendir): Provide prototype.
35924         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
35925         * modules/dirent (Makefile.am): Substitute them.
35926         * MODULES.html.sh (File system functions): Mention it.
35927         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
35928         * modules/fdopendir-tests: New file.
35929         * tests/test-fdopendir.c: Likewise.
35930
35931         fchdir: use more consistent macro convention
35932         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
35933         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
35934         REPLACE_FCHDIR, rather than relying on config.h macros.
35935         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
35936         inside a single make-time REPLACE_FCHDIR block, rather than using
35937         the config.h FCHDIR_REPLACEMENT.
35938         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
35939         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
35940         Manage fstat replacement.
35941         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
35942         REPLACE_FCHDIR.
35943         * modules/sys_stat (Files): Add m4/unistd_h.m4.
35944         (Makefile.am): Substitute REPLACE_FCHDIR.
35945         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
35946         FCHDIR_REPLACEMENT.
35947         * lib/dup-safer.c (dup_safer): Likewise.
35948         * lib/dup2.c (rpl_dup2): Likewise.
35949         * lib/dup3.c (rpl_dup3): Likewise.
35950         * lib/open.c (rpl_open): Likewise.
35951
35952         fchdir: simplify error handling, and support dup3
35953         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
35954         stdbool, malloc-posix, realloc-posix.
35955         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
35956         (ensure_dirs_slot): Return false on allocation failure.
35957         (rpl_dup2): Delete.
35958         (_gl_register_dup): New function.
35959         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
35960         (_gl_register_fd): Close fd on allocation failure.
35961         * lib/fcntl.in.h (_gl_register_fd): Update signature.
35962         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
35963         prototype.
35964         (rpl_dup2_fchdir): Delete prototype.
35965         * lib/open.c (open): Update caller.
35966         * lib/dup2.c (dup2): Track fchdir metadata.
35967         * lib/dup3.c (dup3): Likewise.
35968         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
35969         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
35970
35971 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35972
35973         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
35974         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
35975         don't pass arguments to AC_OUTPUT.
35976
35977 2009-09-02  Bruno Haible  <bruno@clisp.org>
35978
35979         * modules/mkdtemp (License): Relicense under LGPLv2+.
35980         Reported by Paolo Bonzini.
35981
35982 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35983
35984         Replace uses of obsolete autoconf macros in Jim's modules.
35985         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
35986         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
35987         can evoke a warning from autoconf when run with -Wobsolete
35988         enabled.  They were declared obsolete for good reasons (see
35989         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
35990         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
35991         should not continue using the deprecated macros.
35992         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
35993         obsolete Autoconf macros with modern counterparts.
35994         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
35995         * m4/dos.m4 (gl_AC_DOS): Likewise.
35996         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
35997         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
35998         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
35999         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
36000         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
36001         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
36002         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
36003         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
36004         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
36005         Likewise.
36006         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
36007         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
36008         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
36009         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
36010         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
36011         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
36012
36013 2009-09-01  Eric Blake  <ebb9@byu.net>
36014
36015         fchdir: fix off-by-one bug in previous patch
36016         * lib/fchdir.c (rpl_fstat): Use correct bounds.
36017         (_gl_unregister_fd): Delete useless if.
36018
36019 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
36020
36021         maint.mk: sort the list of syntax-check rules
36022         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
36023         easier to get a sense of progress when the rules are run sequentially
36024         and take a long time.
36025
36026 2009-09-01  Simon Josefsson  <simon@josefsson.org>
36027
36028         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
36029         * modules/netinet_in: Likewise.
36030         * modules/sys_file: Likewise.
36031         * modules/sys_ioctl: Likewise.
36032         * modules/sys_select: Likewise.
36033         * modules/sys_socket: Likewise.
36034         * modules/sys_stat: Likewise.
36035         * modules/sys_time: Likewise.
36036         * modules/sys_times: Likewise.
36037         * modules/sys_utsname: Likewise.
36038         * modules/sys_wait: Likewise.
36039
36040 2009-09-01  Jim Meyering  <meyering@redhat.com>
36041
36042         fts: help ensure that return values are not ignored
36043         * lib/fts_.h (__GNUC_PREREQ): Define.
36044         (__attribute_warn_unused_result__): Define.
36045         (fts_children, fts_close, fts_open, fts_read): Declare with
36046         __attribute_warn_unused_result__.
36047
36048         fts: fts_close now fails also when closing a dir file descriptor fails
36049         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
36050         and propagate to caller, along with errno.
36051
36052         announce-gen: correct formatting in --help output
36053         * build-aux/announce-gen (usage): Move the one-line description in
36054         --help output "up", to where it belongs, just after Usage:.
36055
36056 2009-08-31  Eric Blake  <ebb9@byu.net>
36057
36058         fchdir: port to mingw
36059         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
36060         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
36061         opened, then use a substitute.
36062         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
36063         replacement.
36064         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
36065         (_gl_register_fd): No need to check stat if open already filters
36066         all directories.
36067         (fchdir): Fix error condition to match POSIX.
36068         * modules/fchdir (Depends-on): Add sys_stat.
36069         * doc/posix-functions/open.texi (open): Document the limitation.
36070         * modules/fchdir-tests: New file.
36071         * tests/test-fchdir.c: Likewise.
36072
36073         canonicalize: allow cross-testing from cygwin to mingw
36074         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
36075         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
36076         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
36077         Likewise.
36078         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
36079         target does not support symlinks.
36080         * tests/test-canonicalize-lgpl.sh: Likewise.
36081
36082         chown: avoid compilation warning on mingw
36083         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
36084         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
36085         mingw.
36086         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
36087         * modules/chown (Depends-on): Add errno.
36088
36089 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
36090
36091         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
36092         command.
36093
36094 2009-08-31  Jim Meyering  <meyering@redhat.com>
36095
36096         canonicalize: remove useless initialization
36097         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
36098         initialization of local, "end".
36099
36100 2009-08-30  Bruno Haible  <bruno@clisp.org>
36101
36102         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
36103         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
36104         ENOSYS.
36105
36106 2009-08-30  Bruno Haible  <bruno@clisp.org>
36107
36108         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
36109         /usr/xpg4/bin/tr when it exists.
36110         * tests/test-pipe-filter-gi1.sh: Likewise.
36111
36112 2009-08-30  Bruno Haible  <bruno@clisp.org>
36113
36114         Work around deficient /usr/bin/id program on Solaris.
36115         * tests/test-file-has-acl.sh (ID): New variable.
36116         * tests/test-set-mode-acl.sh (ID): Likewise.
36117         * tests/test-copy-acl.sh (ID): Likewise.
36118         * tests/test-copy-file.sh (ID): Likewise.
36119
36120 2009-08-30  Bruno Haible  <bruno@clisp.org>
36121
36122         New module 'xstriconveh'.
36123         * lib/xstriconveh.h: New file.
36124         * lib/xstriconveh.c: New file.
36125         * modules/xstriconveh: New file.
36126
36127 2009-08-30  Bruno Haible  <bruno@clisp.org>
36128
36129         Make it easier to use mem_cd_iconveh.
36130         * lib/striconveh.h (iconveh_t): New type.
36131         (iconveh_open, iconveh_close): New declarations.
36132         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
36133         with a single 'const iconveh_t *' argument.
36134         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
36135         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
36136         with a single 'const iconveh_t *' argument.
36137         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
36138         * tests/test-striconveh.c (main): Update.
36139         * NEWS: Mention the change.
36140
36141 2009-08-30  Bruno Haible  <bruno@clisp.org>
36142
36143         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
36144         problem.
36145
36146 2009-08-30  Bruno Haible  <bruno@clisp.org>
36147
36148         Work around iconv_open problem on Solaris.
36149         * lib/iconv_open-solaris.gperf: New file.
36150         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
36151         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
36152         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
36153         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
36154         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
36155         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
36156
36157 2009-08-29  Jim Meyering  <meyering@redhat.com>
36158
36159         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
36160         * top/maint.mk (cvs-check): Remove target; it was just an alias
36161         to the better-named vc-diff-check.
36162         (maintainer-distcheck): Remove rule.  It was used only from
36163         the (alpha/beta/major) target, and all of its commands but one
36164         were coreutils-specific.
36165         (vc-dist): Remove rule.
36166         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
36167         Run vc-diff-check, not vc-dist.
36168         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
36169
36170 2009-08-27  Bruno Haible  <bruno@clisp.org>
36171
36172         * tests/test-bitrotate.c (main): Remove test that uses a shift count
36173         of 0.
36174
36175 2009-08-27  Bruno Haible  <bruno@clisp.org>
36176
36177         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
36178         compilers.
36179         * doc/func.texi: Document the SunPRO C bug.
36180
36181 2009-08-27  Bruno Haible  <bruno@clisp.org>
36182
36183         Fix link error on Solaris.
36184         * tests/test-parse-duration.c (xstrdup): Remove function.
36185
36186 2009-08-26  Pádraig Brady  <P@draigbrady.com>
36187
36188         ignore-value: handle pointer types, too
36189         * lib/ignore-value.h (__attribute__): Remove definition.
36190         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
36191         of a more concise and more-often effective "(void) i" statement.
36192         (ignore_ptr): New function to suppress warnings from functions that
36193         return pointers, and to make it explicit that one function doesn't
36194         handle all cases.
36195
36196 2009-08-25  Bruno Haible  <bruno@clisp.org>
36197
36198         dup2: work around a Linux bug.
36199         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
36200         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
36201         * doc/posix-functions/dup2.texi: Mention the Linux bug.
36202         Reported by Simon Josefsson.
36203
36204 2009-08-25  Jim Meyering  <meyering@redhat.com>
36205
36206         libguestfs uses gnulib
36207         * users.txt: Add libguestfs.
36208
36209 2009-08-24  Eric Blake  <ebb9@byu.net>
36210
36211         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
36212         * lib/pipe2.c (includes): Add binary-io.h.
36213         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
36214
36215 2009-08-24  Bruno Haible  <bruno@clisp.org>
36216
36217         Tolerate declared but missing accept4 syscall.
36218         * lib/accept4.c (accept4): Invoke original accept4 function first, if
36219         available.
36220         * lib/sys_socket.in.h (accept4): If the function is already present,
36221         override it.
36222         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
36223         * modules/accept4 (Makefile.am): Compile accept4.c always.
36224         Reported by Paolo Bonzini and Eric Blake.
36225
36226 2009-08-23  Bruno Haible  <bruno@clisp.org>
36227
36228         New module 'accept4'.
36229         * lib/sys_socket.in.h (accept4): New declaration.
36230         * lib/accept4.c: New file.
36231         * m4/accept4.m4: New file.
36232         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
36233         GNULIB_ACCEPT4, HAVE_ACCEPT4.
36234         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
36235         HAVE_ACCEPT4.
36236         * modules/accept4: New file.
36237         * doc/glibc-functions/accept4.texi: Mention the new module.
36238
36239 2009-08-24  Jim Meyering  <meyering@redhat.com>
36240
36241         progname: also set global program_invocation_name, when possible
36242         Before this change, a libtool-enabled program that calls glibc's
36243         error function would report the program name as
36244         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
36245         * modules/progname (configure.ac): Check for a declaration of
36246         program_invocation_name.
36247         * lib/progname.c:  Include <errno.h>.
36248         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
36249         Set program_invocation_name.
36250
36251 2009-08-23  Bruno Haible  <bruno@clisp.org>
36252
36253         * lib/dup3.c: Include <string.h>.
36254
36255 2009-08-23  Bruno Haible  <bruno@clisp.org>
36256
36257         * lib/dup3.c (dup3): Test only once whether the system actually exists.
36258         * lib/pipe2.c (pipe2): Likewise.
36259         Suggested by Eric Blake.
36260
36261 2009-08-23  Bruno Haible  <bruno@clisp.org>
36262
36263         Tolerate declared but missing dup3 syscall.
36264         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
36265         * lib/unistd.in.h (dup3): If the function is already present,
36266         override it.
36267         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
36268         * modules/dup3 (Makefile.am): Compile dup3.c always.
36269         Reported by Paolo Bonzini.
36270
36271 2009-08-23  Bruno Haible  <bruno@clisp.org>
36272
36273         Tolerate declared but missing pipe2 syscall.
36274         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
36275         available.
36276         * lib/unistd.in.h (pipe2): If the function is already present,
36277         override it.
36278         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
36279         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
36280         Reported by Paolo Bonzini.
36281
36282 2009-08-23  Bruno Haible  <bruno@clisp.org>
36283
36284         * lib/pipe2.c (pipe2): Move #ifs inside function.
36285
36286 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
36287
36288         quotearg: document limitations of quote_these_too
36289         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
36290         those limitations are created.
36291         * lib/quotearg.h (set_char_quoting): Document that digits and
36292         letters that are special after backslash are not permitted.
36293         (quotearg_char): Cross-reference set_char_quoting documentation.
36294
36295 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
36296
36297         quotearg: implement custom_quoting_style
36298         * lib/quotearg.c: (struct quoting_options): Add left_quote and
36299         right_quote fields.
36300         (set_custom_quoting): New public function.
36301         (quotearg_buffer_restyled): Add left_quote and right_quote
36302         arguments, handle them very much like locale quoting, and update
36303         all uses.
36304         (quotearg_n_custom): New public function.
36305         (quotearg_n_custom_mem): New public function.
36306         (quotearg_custom): New public function.
36307         (quotearg_custom_mem): New public function.
36308         * lib/quotearg.h: Prototype and document new public functions.
36309         (enum quoting_style): For escape_quoting_style and
36310         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
36311         ignored even though they're otherwise like c_quoting_style.
36312         Add custom_quoting_style member and document with comparison to
36313         clocale_quoting_style.
36314         * tests/test-quotearg.c (custom_quotes): New array.
36315         (custom_results): New array.
36316         (main): Extend to test custom quoting.
36317
36318 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
36319
36320         quotearg: fix right quote escaping when it's in quote_these_too
36321         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
36322         quote, be sure to prepend only one backslash.
36323         * tests/test-quotearg.c (use_quote_double_quotes): New function.
36324         (main): Test it.
36325
36326 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
36327
36328         quotearg-tests: test escaping of embedded locale quotes
36329         * tests/test-quotearg.c (struct result_strings): Add member for
36330         new input.
36331         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
36332         (inputs): Add new input.
36333         (results_g): Add expected results.
36334         (flag_results): Likewise.
36335         (locale_results): Likewise.
36336         (compare_strings): Check those.
36337
36338 2009-08-23  Bruno Haible  <bruno@clisp.org>
36339
36340         Tests for module 'dup3'.
36341         * modules/dup3-tests: New file.
36342         * tests/test-dup3.c: New file.
36343
36344         New module 'dup3'.
36345         * lib/unistd.in.h (dup3): New declaration.
36346         * lib/dup3.c: New file.
36347         * m4/dup3.m4: New file.
36348         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
36349         HAVE_DUP3.
36350         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
36351         * modules/dup3: New file.
36352         * doc/glibc-functions/dup3.texi: Mention the new module.
36353
36354 2009-08-23  Bruno Haible  <bruno@clisp.org>
36355
36356         Tweak the dup2 test.
36357         * tests/test-dup2.c (main): Create the test file empty. Verify that an
36358         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
36359         the test file is still empty. Fix argument order of lseek.
36360
36361 2009-08-23  Bruno Haible  <bruno@clisp.org>
36362
36363         Avoid test link errors when the modules getopt-gnu, gettext are used.
36364         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
36365         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36366
36367 2009-08-23  Bruno Haible  <bruno@clisp.org>
36368
36369         Fix getdtablesize() on mingw.
36370         * lib/getdtablesize.c (getdtablesize): Implement differently.
36371         * lib/unistd.in.h (getdtablesize): Improve comment.
36372
36373 2009-08-23  Bruno Haible  <bruno@clisp.org>
36374
36375         New module 'mkostemp'.
36376         Based on Ulrich Drepper's 2007-08-10 change in glibc.
36377         * lib/stdlib.in.h (mksotemp): New declaration.
36378         * lib/mkostemp.c: New file, from glibc with modifications.
36379         * lib/tempname.h (GT_FILE): Remove outdated comment.
36380         (gen_tempname): Add flags argument.
36381         * lib/tempname.c (__GT_BIGFILE): Remove macro.
36382         (__GT_FILE): Map to 1.
36383         (small_open, large_open): Remove macros.
36384         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
36385         * lib/mkstemp.c (mkstemp): Update.
36386         * lib/mkdtemp.c (mkdtemp): Likewise.
36387         * m4/mkostemp.m4: New file.
36388         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
36389         HAVE_MKOSTEMP.
36390         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
36391         HAVE_MKOSTEMP.
36392         * modules/mkostemp: New file, based on modules/mkstemp.
36393         * doc/glibc-functions/mkostemp.texi: Mention the new module.
36394         * NEWS: Mention the change.
36395
36396 2009-08-23  Bruno Haible  <bruno@clisp.org>
36397
36398         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
36399         Reported by Eric Blake.
36400
36401 2009-08-23  Bruno Haible  <bruno@clisp.org>
36402
36403         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
36404         Reported by Eric Blake.
36405
36406 2009-08-23  Bruno Haible  <bruno@clisp.org>
36407
36408         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
36409         * modules/pipe2 (Depends-on): Likewise.
36410
36411 2009-08-23  Eric Blake  <ebb9@byu.net>
36412
36413         fcntl-h: add O_TTY_INIT support
36414         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
36415         * tests/test-fcntl-h.c (o): Test it.
36416         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
36417
36418         fcntl-h: rename from fcntl, in preparation for fcntl(2)
36419         * modules/fcntl: Move <fcntl.h> header replacement...
36420         * modules/fcntl-h: ...to new name, so as not to collide with
36421         like-named function.
36422         * tests/test-fcntl.c: Rename...
36423         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
36424         * modules/fcntl-tests: Rename...
36425         * modules/fcntl-h-tests: ...to this.  Update test file name.
36426         * modules/chdir-long (Depends-on): Update clients.
36427         * modules/chdir-safer (Depends-on): Likewise.
36428         * modules/fcntl-safer (Depends-on): Likewise.
36429         * modules/fts (Depends-on): Likewise.
36430         * modules/mkancesdirs (Depends-on): Likewise.
36431         * modules/mkdir-p (Depends-on): Likewise.
36432         * modules/open (Depends-on): Likewise.
36433         * modules/savewd (Depends-on): Likewise.
36434         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
36435         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
36436
36437 2009-08-22  Bruno Haible  <bruno@clisp.org>
36438
36439         * modules/binary-io (License): Relicense under LGPL.
36440         * modules/pipe2 (License): Likewise.
36441
36442 2009-08-22  Bruno Haible  <bruno@clisp.org>
36443
36444         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
36445         return value.
36446         * lib/pipe-filter-gi.c (filter_init): Likewise.
36447         Reported by Eric Blake.
36448
36449 2009-08-22  Bruno Haible  <bruno@clisp.org>
36450
36451         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
36452         * modules/pipe (Depends-on): Add pipe2.
36453
36454 2009-08-22  Bruno Haible  <bruno@clisp.org>
36455
36456         Tests for module 'pipe2'.
36457         * modules/pipe2-tests: New file.
36458         * tests/test-pipe2.c: New file.
36459
36460         New module 'pipe2'.
36461         * lib/unistd.in.h (pipe2): New declaration.
36462         * lib/pipe2.c: New file.
36463         * m4/pipe2.m4: New file.
36464         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
36465         HAVE_PIPE2.
36466         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
36467         * modules/pipe2: New file.
36468         * doc/glibc-functions/pipe2.texi: Mention the new module.
36469
36470 2009-08-22  Bruno Haible  <bruno@clisp.org>
36471
36472         Reference some new glibc functions.
36473         * doc/glibc-functions/accept4.texi: New file.
36474         * doc/glibc-functions/dup3.texi: New file.
36475         * doc/glibc-functions/mkostemp.texi: New file.
36476         * doc/glibc-functions/pipe2.texi: New file.
36477         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
36478         (Glibc sys/socket.h): Refer to accept4.
36479         (Glibc unistd.h): Refer to dup3, pipe2.
36480         Reported by Eric Blake.
36481
36482 2009-08-22  Jim Meyering  <meyering@redhat.com>
36483             Bruno Haible  <bruno@clisp.org>
36484
36485         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
36486         This makes it so packages using automake-1.11's silent-rules option
36487         can print e.g., a single "GEN    configmake.h" line, rather than
36488         the 30+ statements that perform the job.  If you want to see the
36489         actual commands, you can still run "make V=1".
36490         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
36491         so that make output is abbreviated when those variables are defined
36492         appropriately.
36493         * modules/argz: Likewise.
36494         * modules/arpa_inet: Likewise.
36495         * modules/byteswap: Likewise.
36496         * modules/configmake: Likewise.
36497         * modules/dirent: Likewise.
36498         * modules/errno: Likewise.
36499         * modules/fcntl: Likewise.
36500         * modules/float: Likewise.
36501         * modules/fnmatch: Likewise.
36502         * modules/getopt-posix: Likewise.
36503         * modules/glob: Likewise.
36504         * modules/iconv_open: Likewise.
36505         * modules/inttypes: Likewise.
36506         * modules/localcharset: Likewise.
36507         * modules/locale: Likewise.
36508         * modules/math: Likewise.
36509         * modules/netdb: Likewise.
36510         * modules/netinet_in: Likewise.
36511         * modules/poll: Likewise.
36512         * modules/posix_spawnp-tests: Likewise.
36513         * modules/sched: Likewise.
36514         * modules/search: Likewise.
36515         * modules/selinux-h: Likewise.
36516         * modules/signal: Likewise.
36517         * modules/spawn: Likewise.
36518         * modules/stdarg: Likewise.
36519         * modules/stdbool: Likewise.
36520         * modules/stddef: Likewise.
36521         * modules/stdint: Likewise.
36522         * modules/stdio: Likewise.
36523         * modules/stdlib: Likewise.
36524         * modules/string: Likewise.
36525         * modules/strings: Likewise.
36526         * modules/sys_file: Likewise.
36527         * modules/sys_ioctl: Likewise.
36528         * modules/sys_select: Likewise.
36529         * modules/sys_socket: Likewise.
36530         * modules/sys_stat: Likewise.
36531         * modules/sys_time: Likewise.
36532         * modules/sys_times: Likewise.
36533         * modules/sys_utsname: Likewise.
36534         * modules/sys_wait: Likewise.
36535         * modules/sysexits: Likewise.
36536         * modules/time: Likewise.
36537         * modules/unistd: Likewise.
36538         * modules/wchar: Likewise.
36539         * modules/wctype: Likewise.
36540
36541 2009-08-22  Jim Meyering  <meyering@redhat.com>
36542
36543         announce-gen: detect write failure
36544         * build-aux/announce-gen: Add Coda at end.
36545         Remove equivalent-but-more-verbose block at top.
36546
36547 2009-08-19  Akim Demaille  <demaille@gostai.com>
36548
36549         bootstrap: --help to stdout.
36550         * bootstrap (usage): Don't send --help to stderr.
36551         Use a here doc instead of a long string.
36552
36553 2009-08-21  Eric Blake  <ebb9@byu.net>
36554
36555         test-popen-safer: split from test-popen
36556         * tests/test-popen.c (main): Move...
36557         * tests/test-popen.h: ...into new file.
36558         * tests/test-popen-safer2.c: New file.
36559         * modules/popen-tests (Files): Add test-popen.h.
36560         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
36561         Suggested by Bruno Haible.
36562
36563         test-fcntl-safer: split from test-open
36564         * tests/test-open.c (main): Move...
36565         * tests/test-open.h: ...into new file.
36566         * tests/test-fcntl-safer.c: New file.
36567         * modules/open-tests (Files): Add test-open.h.
36568         * modules/fcntl-safer-tests: New file.
36569         Suggested by Bruno Haible.
36570
36571         test-fopen-safer: split from test-fopen
36572         * tests/test-fopen.c (main): Move...
36573         * tests/test-fopen.h: ...into new file.
36574         * tests/test-fopen-safer.c: New file.
36575         * modules/fopen-tests (Files): Add test-fopen.h.
36576         * modules/fopen-safer-tests: New file.
36577         Suggested by Bruno Haible.
36578
36579 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
36580
36581         popen-safer: test O_CLOEXEC at run-time.
36582         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
36583
36584 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
36585
36586         fcntl: move more flags to the header
36587         * lib/cloexec.c: Do not define FD_CLOEXEC here.
36588         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
36589         * lib/fcntl.in.h: Do both things here.
36590
36591 2009-08-21  Jim Meyering  <meyering@redhat.com>
36592
36593         consistently remove $@-t before redirecting to it
36594         * modules/argz: Remove $@-t and $@ before redirecting to the former.
36595         * modules/alloca-opt: Likewise.
36596         * modules/byteswap: Likewise.
36597         * modules/fnmatch: Likewise.
36598         * modules/getopt-posix: Likewise.
36599         * modules/glob: Likewise.
36600         * modules/poll: Likewise.
36601         * modules/posix_spawnp-tests: Likewise.
36602         * modules/sys_socket: Likewise.
36603         * modules/sysexits: Likewise.
36604
36605 2009-08-21  Eric Blake  <ebb9@byu.net>
36606
36607         popen: simplify access to original popen
36608         * lib/popen.c (rpl_popen): No need to worry about popen being a
36609         macro.
36610         Reported by Bruno Haible.
36611
36612 2009-08-20  Eric Blake  <ebb9@byu.net>
36613
36614         build: avoid some compiler warnings
36615         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
36616         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
36617         type.
36618         (new_exclude_segment, excluded_file_pattern_p)
36619         (excluded_file_name_p): Reduce scope.
36620         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
36621         old-style declaration.
36622
36623 2009-08-20  Simon Josefsson  <simon@josefsson.org>
36624
36625         * tests/test-exclude1.sh: Handle Windows EOL.
36626         * tests/test-exclude2.sh: Likewise.
36627         * tests/test-exclude3.sh: Likewise.
36628         * tests/test-exclude4.sh: Likewise.
36629         * tests/test-exclude5.sh: Likewise.
36630         * tests/test-exclude6.sh: Likewise.
36631         * tests/test-exclude7.sh: Likewise.
36632
36633 2009-08-19  Akim Demaille  <demaille@gostai.com>
36634
36635         bootstrap: find sha1sum when named gsha1sum.
36636         * bootstrap (find_tool): New.
36637         ($SHA1SUM): New.
36638         Use it.
36639
36640 2009-08-20  Jim Meyering  <meyering@redhat.com>
36641
36642         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
36643         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
36644         expression that converts "." in a file name to "\." in the resulting
36645         regexp.  Start with a dummy statement, so that prior shell variable
36646         definitions are expanded portably.  Reported by Simon Josefsson.
36647
36648 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
36649
36650         Fix polling for writeability of a screen buffer.
36651         * lib/poll.c: Distinguish input and screen buffers for the
36652         Win32 implementation.
36653         * lib/select.c: Likewise.
36654
36655 2009-08-19  Eric Blake  <ebb9@byu.net>
36656
36657         popen-safer: prevent popen from clobbering std descriptors
36658         * modules/popen-safer: New file.
36659         * lib/popen-safer.c: Likewise.
36660         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
36661         * lib/stdio--.h (popen): Provide override.
36662         * lib/stdio-safer.h (popen_safer): Provide declaration.
36663         * tests/test-popen.c (includes): Partially test this.
36664         * modules/popen-safer-tests: New file, for more tests.
36665         * tests/test-popen-safer.c: Likewise.
36666         * MODULES.html.sh (file stream based Input/Output): Mention it.
36667
36668         tests: test some of the *-safer modules
36669         * modules/fopen-safer (Depends-on): Add fopen.
36670         * modules/fcntl-safer (Depends-on): Add fcntl.
36671         * modules/stdlib-safer (Depends-on): Add stdlib.
36672         (configure.ac): Set indicator.
36673         * modules/unistd-safer (configure.ac): Likewise.
36674         * modules/tmpfile-safer (configure.ac): Likewise.
36675         (Depends-on): Add tmpfile.
36676         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
36677         active.
36678         * tests/test-fopen.c (includes): Test safer versions when they are
36679         in use.
36680         * tests/test-open.c (includes): Likewise.
36681
36682         popen: fix cygwin 1.5 bug when stdin closed
36683         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
36684         * modules/popen: New file.
36685         * modules/popen-tests: Likewise.
36686         * tests/test-popen.c: Likewise.
36687         * m4/popen.m4: Likewise.
36688         * lib/popen.c: Likewise.
36689         * lib/stdio.in.h (popen): New declaration.
36690         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
36691         * modules/stdio (Makefile.am): Likewise.
36692         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
36693
36694 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
36695
36696         maint.mk: give full control over update-copyright exclusions
36697         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
36698         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
36699         (update-copyright): Don't force inclusion of top-level
36700         ChangeLog.  Don't force exclusion of all COPYING files, but make
36701         them the default exclusion instead.
36702
36703 2009-08-16  Bruno Haible  <bruno@clisp.org>
36704
36705         Fix test failures on Solaris 10.
36706         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
36707         tests when Solaris iconv() is used.
36708         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
36709         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
36710         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
36711         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
36712         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
36713
36714 2009-08-16  Bruno Haible  <bruno@clisp.org>
36715
36716         Fix test failures on Solaris 10.
36717         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
36718         'tr' program and pass it as first argument.
36719         * tests/test-pipe-filter-gi1.sh: Likewise.
36720         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
36721         program as first argument.
36722         * tests/test-pipe-filter-gi1.c (main): Likewise.
36723
36724 2009-08-16  Eric Blake  <ebb9@byu.net>
36725
36726         fpurge: fix previous commits
36727         * modules/fpurge (Makefile.am): Make replacement conditional,
36728         partially reverting 2007-04-29 change; missed in previous
36729         attempt.
36730         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
36731         is missing.
36732
36733 2009-08-16  Bruno Haible  <bruno@clisp.org>
36734
36735         Clarify fpurge's effect on the file position.
36736         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
36737         * tests/test-fpurge.c (main): Make a second pass for checking the file
36738         position.
36739
36740 2009-08-16  Bruno Haible  <bruno@clisp.org>
36741
36742         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
36743         declaration of fpurge is missing.
36744         * tests/test-fpurge.c (main): Check that the file has not more contents
36745         than expected. Close the file before removing it.
36746
36747 2009-08-15  Eric Blake  <ebb9@byu.net>
36748
36749         fpurge: don't wrap working cygwin implementation
36750         * lib/fpurge.c (fpurge): Fix comment typo.
36751         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
36752         1.7 to avoid replacement.
36753         * tests/test-fpurge.c (main): Enhance test.
36754
36755 2009-08-15  Eric Blake  <ebb9@byu.net>
36756         and Jim Meyering  <meyering@redhat.com>
36757
36758         test-update-copyright: skip if perl is insufficient
36759         * tests/test-update-copyright.sh: Failure to run maintainer tool
36760         should not cause testsuite failure on cygwin 1.5.
36761
36762 2009-08-14  Eric Blake  <ebb9@byu.net>
36763
36764         doc: mention more functions added in cygwin 1.7.0
36765         * doc/posix-headers/limits.texi (limits.h): Update for recent
36766         cygwin additions.
36767         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
36768         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
36769         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
36770         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
36771         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
36772
36773 2009-08-14  Eric Blake  <ebb9@byu.net>
36774
36775         maint.mk: simplify update-copyright rule
36776         * top/maint.mk (update-copyright-local): Delete, and document how
36777         to do it in cfg.mk instead.
36778         (update-copyright-exclude-regexp): Delete, and document how to do
36779         it in .x-update-copyright instead.
36780         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
36781         exclude ChangeLog.
36782
36783 2009-08-14  Bruno Haible  <bruno@clisp.org>
36784
36785         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
36786
36787 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
36788
36789         maint.mk: support update-copyright-env
36790         * top/maint.mk (update-copyright-env): Define place-holder.
36791         (update-copyright): Expand $(update-copyright-env) before
36792         invoking update-copyright.
36793
36794 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
36795
36796         update-copyright: implement forced reformatting
36797         * build-aux/update-copyright: Implement and document
36798         UPDATE_COPYRIGHT_FORCE.
36799         * tests/test-update-copyright.sh: Test it.
36800
36801 2009-08-14  Eric Blake  <ebb9@byu.net>
36802         and Bruno Haible  <bruno@clisp.org>
36803
36804         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
36805         * tests/test-locale.c: Revert previous patch related to NULL.
36806         * tests/test-stdio.c: Likewise.
36807         * tests/test-stdlib.c: Likewise.
36808         * tests/test-string.c: Likewise.
36809         * tests/test-unistd.c: Likewise.
36810         * modules/time-tests (Depends-on): Add verify.
36811         * modules/wchar-tests (Depends-on): Likewise.
36812         * tests/test-time.c: Test for NULL compliance.
36813         * tests/test-wchar.c: Likewise.
36814         * modules/locale (Depends-on): Add stddef.
36815         * modules/stdio (Depends-on): Likewise.
36816         * modules/stdlib (Depends-on): Likewise.
36817         * modules/string (Depends-on): Likewise.
36818         * modules/time (Depends-on): Likewise.
36819         * modules/unistd (Depends-on): Likewise.
36820         * modules/wchar (Depends-on): Likewise.
36821         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
36822         * lib/stdlib.in.h (includes): Likewise.
36823         * lib/string.in.h (includes): Likewise.
36824         * lib/time.in.h (includes): Likewise.
36825         * lib/unistd.in.h (includes): Likewise.
36826         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
36827         replaced.
36828         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
36829         * m4/stddef_h.m4: New file.
36830         * modules/stddef: Likewise.
36831         * lib/stddef.in.h: Likewise.
36832         * modules/stddef-tests: Likewise.
36833         * tests/test-stddef.c: Likewise.
36834         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
36835         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
36836         * doc/posix-headers/locale.texi (locale.h): Likewise.
36837         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
36838         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
36839         * doc/posix-headers/string.texi (string.h): Likewise.
36840         * doc/posix-headers/time.texi (time.h): Likewise.
36841         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
36842         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
36843
36844 2009-08-14  Eric Blake  <ebb9@byu.net>
36845
36846         doc: improve git diff of texinfo files
36847         * .gitattributes: Add rule for *.texi files, with hint on how to
36848         use it.
36849         Copied from m4, and based on a report by Bruno Haible.
36850
36851 2009-08-14  Bruno Haible  <bruno@clisp.org>
36852
36853         Disable multithread support by default on Cygwin 1.5.x for real.
36854         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
36855
36856 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
36857
36858         update-copyright: much ado about intervals
36859         * build-aux/update-copyright: Implement and document
36860         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
36861         of copyright year intervals.
36862         Also, document UPDATE_COPYRIGHT_YEAR.
36863         * tests/test-update-copyright.sh: Test it.
36864
36865         update-copyright: convert 2-digit to 4-digit years
36866         * build-aux/update-copyright: Implement and document.
36867         * tests/test-update-copyright.sh: Update.
36868
36869 2009-08-14  Jim Meyering  <meyering@redhat.com>
36870
36871         test-exclude: avoid coreutils "make check" failure
36872         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
36873         just as in test-argmatch.c.
36874
36875 2009-08-13  Eric Blake  <ebb9@byu.net>
36876
36877         test-dup2: fix bad assumption
36878         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
36879         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
36880
36881         test-version-etc: fix CRLF portability issue
36882         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
36883         recognize \r.
36884         * tests/test-argp-version-etc-1.sh: Likewise.
36885
36886         getopt: update client modules
36887         * modules/argp (Depends-on): Use getopt-gnu.
36888         * modules/git-merge-changelog (Depends-on): Likewise.
36889         * modules/long-options (Depends-on): Likewise.
36890         * modules/xstrtol (Depends-on): Likewise.
36891
36892 2009-08-13  Simon Josefsson  <simon@josefsson.org>
36893
36894         * tests/test-version-etc.sh: Don't fail on different
36895         project/version.  Don't fail on CRLF differences.  Rewrite to use
36896         multiple -e instead of multiple sed forks, suggested by Eric Blake
36897         <ebb9@byu.net>.
36898         * tests/test-argp-version-etc-1.sh: Likewise.
36899
36900 2009-08-13  Simon Josefsson  <simon@josefsson.org>
36901
36902         * tests/test-version-etc.sh: Don't fail on different
36903         project/version.
36904
36905 2009-08-12  Bruno Haible  <bruno@clisp.org>
36906
36907         Tests for modules 'getopt-posix', 'getopt-gnu'.
36908         * modules/getopt-posix-tests: New file.
36909         * tests/test-getopt.c: New file.
36910         * tests/test-getopt.h: New file.
36911         * tests/test-getopt_long.h: New file.
36912
36913         New modules 'getopt-posix', 'getopt-gnu'.
36914         * modules/getopt-gnu: New file, renamed from modules/getopt.
36915         * modules/getopt-posix: New file.
36916         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
36917         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
36918         (gl_GETOPT): Remove macro.
36919         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
36920         Disable the test against BSD systems that declare optreset. Test
36921         against mingw bug. Test against lack of support of optional arguments
36922         on many platforms.
36923         * doc/glibc-headers/getopt.texi: Update module name and list of
36924         relevant platforms.
36925         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
36926         'getopt-gnu' and more portability problems.
36927         * NEWS: Mention the changes.
36928
36929 2009-08-12  Bruno Haible  <bruno@clisp.org>
36930
36931         Ensure that optarg etc. get declared by <unistd.h>.
36932         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
36933         AC_USE_SYSTEM_EXTENSIONS.
36934         * modules/getopt (Depends-on): Add 'extensions'.
36935
36936 2009-08-12  Bruno Haible  <bruno@clisp.org>
36937
36938         Avoid test link errors.
36939         * modules/pipe-filter-ii-tests (Makefile.am): Define
36940         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
36941         * modules/pipe-filter-gi-tests (Makefile.am): Define
36942         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
36943         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36944
36945 2009-08-12  Bruno Haible  <bruno@clisp.org>
36946
36947         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
36948         gl_GETOPT_SUBSTITUTE before.
36949         (gl_GETOPT): Use it.
36950         * m4/argp.m4 (gl_ARGP): Update.
36951         Reported by Sergey Poznyakoff.
36952
36953         * m4/getopt.m4: Reorder macros.
36954         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
36955         (gl_GETOPT_SUBSTITUTE): Remove macro.
36956
36957 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
36958
36959         Minor improvement in gitlog-to-changelog
36960
36961         * build-aux/gitlog-to-changelog: New option `--format' makes
36962         output format string configurable.
36963
36964 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
36965
36966         Optimize exclude: use hash tables for non-wildcard patterns.
36967
36968         * lib/exclude.c: Include hash.h and mbuiter.h
36969         (struct exclude_pattern, exclude_segment): New data types.
36970         (struct exclude): Rewrite.
36971         (fnmatch_pattern_has_wildcards): New function.
36972         (new_exclude_segment, free_exclude_segment): New functions.
36973         (excluded_file_pattern_p, excluded_file_name_p): New functions.
36974         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
36975         * lib/exclude.h (is_fnmatch_pattern): New prototype.
36976         * modules/exclude: Depend on hash and mbuiter.
36977
36978         * modules/exclude-tests: New file.
36979         * tests/test-exclude.c: New file.
36980         * tests/test-exclude1.sh: New file.
36981         * tests/test-exclude2.sh: New file.
36982         * tests/test-exclude3.sh: New file.
36983         * tests/test-exclude4.sh: New file.
36984         * tests/test-exclude5.sh: New file.
36985         * tests/test-exclude6.sh: New file.
36986         * tests/test-exclude7.sh: New file.
36987
36988 2009-08-12  Bruno Haible  <bruno@clisp.org>
36989
36990         Ensure that getopt() gets declared by <unistd.h>.
36991         * lib/unistd.in.h: Conditionally include getopt.h.
36992         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
36993         Set GNULIB_UNISTD_H_GETOPT.
36994         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
36995         GNULIB_UNISTD_H_GETOPT.
36996         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
36997
36998 2009-08-12  Bruno Haible  <bruno@clisp.org>
36999
37000         Clarify logic.
37001         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
37002         gl_replace_getopt instead of GETOPT_H.
37003
37004 2009-08-12  Bruno Haible  <bruno@clisp.org>
37005
37006         * m4/getopt.m4: Add comments.
37007
37008 2009-08-12  Bruno Haible  <bruno@clisp.org>
37009
37010         Disable multithread support by default on Cygwin 1.5.x.
37011         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
37012         set gl_use_threads=no if not specified otherwise.
37013
37014 2009-08-11  Bruno Haible  <bruno@clisp.org>
37015
37016         Avoid compilation error on NetBSD 5.0.
37017         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
37018         * tests/test-stdio.c: Likewise.
37019         * tests/test-stdlib.c: Likewise.
37020         * tests/test-string.c: Likewise.
37021         * tests/test-unistd.c: Likewise.
37022         Reported by Greg Troxel <gdt@ir.bbn.com>
37023         at <https://savannah.gnu.org/support/?106973>.
37024
37025 2009-08-11  Bruno Haible  <bruno@clisp.org>
37026
37027         * modules/dup2-tests (Depends-on): Remove close.
37028
37029         Undo 2009-07-19 commit.
37030         * modules/acl-tests (Depends-on): Remove close.
37031         * modules/binary-io-tests (Depends-on): Likewise.
37032         * modules/closein-tests (Depends-on): Likewise.
37033         * modules/flock-tests (Depends-on): Likewise.
37034         * modules/fsync-tests (Depends-on): Likewise.
37035         * modules/lseek-tests (Depends-on): Likewise.
37036         * modules/pipe-tests (Depends-on): Likewise.
37037         * modules/posix_spawn-tests (Depends-on): Likewise.
37038         * modules/posix_spawnp-tests (Depends-on): Likewise.
37039         * modules/stat-time-tests (Depends-on): Likewise.
37040         * modules/yesno-tests (Depends-on): Likewise.
37041
37042 2009-08-10  Bruno Haible  <bruno@clisp.org>
37043
37044         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
37045
37046 2009-08-10  Bruno Haible  <bruno@clisp.org>
37047
37048         Fix a gcc warning.
37049         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
37050
37051 2009-08-10  Bruno Haible  <bruno@clisp.org>
37052
37053         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
37054         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
37055         not only the first time.
37056         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
37057         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
37058         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
37059         is 1, not only the the first time.
37060
37061 2009-08-10  Bruno Haible  <bruno@clisp.org>
37062
37063         Make it possible to use module 'gethostname' without module 'close'.
37064         * lib/unistd.in.h (close): Evoke a link error only if
37065         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
37066         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
37067         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
37068         * modules/unistd (Makefile.am): Substitute
37069         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
37070         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
37071         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
37072         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
37073         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
37074         * modules/sys_ioctl (Makefile.am): Substitute
37075         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
37076         * modules/socket (configure.ac): On native Windows, set
37077         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
37078         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
37079         Reported by Sam Steingold <sds@gnu.org>.
37080
37081 2009-08-10  Bruno Haible  <bruno@clisp.org>
37082
37083         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
37084         * modules/ioctl (configure.ac): Likewise.
37085
37086 2009-08-10  Bruno Haible  <bruno@clisp.org>
37087
37088         Avoid collision between gnulib wrapper and libintl wrapper.
37089         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
37090         already defined in intl/printf.c.
37091         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
37092         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
37093
37094 2009-08-09  Bruno Haible  <bruno@clisp.org>
37095
37096         Make <sys/select.h> really self-contained, also on Solaris 10.
37097         * lib/sys_select.in.h: Include <string.h>.
37098         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
37099         Solaris 10 problem.
37100         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
37101         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
37102         Reported by Jim Meyering.
37103
37104 2009-08-09  Bruno Haible  <bruno@clisp.org>
37105
37106         Avoid warnings from 'aclocal' that are due to a use of macro name
37107         AM_XGETTEXT_OPTION that is not defined in automake.
37108         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
37109         automake.
37110         * modules/error (configure.ac): Likewise.
37111         * modules/propername (configure.ac): Likewise.
37112         * modules/vasprintf (configure.ac): Likewise.
37113         * modules/verror (configure.ac): Likewise.
37114         * modules/xprintf (configure.ac): Likewise.
37115         * modules/xvasprintf (configure.ac): Likewise.
37116
37117 2009-08-08  Bruno Haible  <bruno@clisp.org>
37118
37119         Avoid compilation error in C++ mode.
37120         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
37121         Reported by Sam Steingold <sds@gnu.org>.
37122
37123 2009-08-08  Bruno Haible  <bruno@clisp.org>
37124
37125         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
37126         for the various Unix platforms.
37127         * doc/posix-headers/limits.texi: Update platforms list regarding
37128         HOST_NAME_MAX.
37129         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37130
37131 2009-08-07  Jim Meyering  <meyering@redhat.com>
37132
37133         selinux-at: fix typo in a comment
37134         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
37135         Spotted by Paolo Bonzini.
37136
37137         selinux-at: remove redundant m4 code, add documentation
37138         * modules/selinux-at (configure.ac): Remove redundant code.
37139         LIB_SELINUX is already set via the dependent module, selinux-h.
37140         (Include): Add quotes around selinux-at.h.
37141         * lib/selinux-at.h: Add documentation.
37142         Reported by Bruno Haible in
37143         http://marc.info/?l=gnulib-bug&m=124958988300749
37144
37145 2009-08-07  Bruno Haible  <bruno@clisp.org>
37146
37147         Avoid link error on MacOS X 10.3 and 10.4.
37148         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
37149         on non-ELF systems.
37150         * lib/argp-pv.c (argp_program_version): Likewise.
37151         Reported by Simon Josefsson.
37152
37153 2009-08-07  Simon Josefsson  <simon@josefsson.org>
37154
37155         * tests/test-version-etc.sh: Use $EXEEXT.
37156
37157 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
37158
37159         update-copyright: update documentation to point to maint.mk
37160         * build-aux/update-copyright: Here.
37161
37162 2009-08-06  Jim Meyering  <meyering@redhat.com>
37163
37164         maint.mk: support update-copyright-local
37165         * top/maint.mk (update-copyright-local): Define place-holder.
37166         (update-copyright): Depend on $(update-copyright-local).
37167
37168 2009-08-06  Jim Meyering  <meyering@redhat.com>
37169
37170         selinux-at: new module
37171         Initially written for coreutils, this module will soon be
37172         used by findutils, too.
37173         * MODULES.html.sh [Misc]: Add selinux-at.
37174         * lib/selinux-at.h: New file, from coreutils.
37175         * lib/selinux-at.c: Likewise.
37176         * modules/selinux-at: Likewise.
37177         (License): Change from LGPL to GPL, since it depends
37178         on the GPL'd openat module.
37179
37180         doc: update README
37181         * README: Remove references to cogito.
37182         Remove cvs-repo-updating instructions from 2007.
37183         Don't imply that CVS is better if you have limited disk space.
37184
37185 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37186
37187         update-copyright: support C-style comments
37188         * build-aux/update-copyright: Implement and document.
37189         * tests/test-update-copyright.sh: Test.
37190
37191 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37192
37193         update-copyright: support omitted "(C)"
37194         * build-aux/update-copyright: Implement and document.  Also,
37195         allow variable whitespace before "(C)".
37196         * tests/test-update-copyright.sh: Test.
37197
37198 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37199
37200         update-copyright: don't trip on non-FSF copyright statements
37201         * build-aux/update-copyright: Fix so that the first correctly
37202         formatted FSF copyright statement is recognized no matter what
37203         appears before it.  Update documentation.
37204         * tests/test-update-copyright.sh: Test that.
37205
37206 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37207
37208         update-copyright: clean up code a little
37209         * build-aux/update-copyright: Append "_re" to the name of any
37210         variable holding a regular expression.
37211         Replace "old" and "new" with "stmt" in variable names.
37212         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
37213         handled correctly.
37214         Format code more consistently.
37215
37216 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37217
37218         update-copyright-tests: improve portability
37219         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
37220         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
37221
37222 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
37223
37224         update-copyright: support @copyright{} and &copy;
37225         * build-aux/update-copyright: Implement and document.
37226         * tests/test-update-copyright.sh: Test.
37227
37228 2009-08-04  Jim Meyering  <meyering@redhat.com>
37229
37230         update-copyright-tests: correctly test EOL=\r\n handling
37231         * tests/test-update-copyright.sh: Put \r at the end of some lines
37232         for the dos-eol tests.  Based on a patch by Joel E. Denny.
37233
37234         maint.mk: make update-copyright exclusion list more configurable
37235         * top/maint.mk (update-copyright): Default to excluding COPYING,
37236         but allow an override, in case someone does want to update that file.
37237
37238         maint.mk: don't update copyright date in COPYING
37239         * top/maint.mk (update-copyright): Exclude COPYING.
37240
37241         maint.mk: add a copyright-updating rule
37242         * top/maint.mk (update-copyright): New rule.
37243         Derived from coreutils/Makefile.am.
37244
37245         update-copyright: rename some variables
37246         * build-aux/update-copyright: Rename a few variables for clarity.
37247         Tweak syntax.  List Joel E. Denny as coauthor.
37248
37249 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
37250
37251         update-copyright: fix bug for 2-digit last year and add tests
37252         * build-aux/update-copyright: Fix bug.
37253         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
37254         specified.
37255         * modules/update-copyright-tests: New
37256         * tests/test-update-copyright.sh: New.
37257
37258 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
37259
37260         update-copyright: handle leading tabs in line prefix
37261         * build-aux/update-copyright: Count leading tabs as 8 spaces
37262         when computing margin.  This helps with the formatting of
37263         ChangeLogs, for example.
37264         Fix documentation a little.
37265
37266 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
37267
37268         update-copyright: support EOL=\r\n
37269         * build-aux/update-copyright: Implement that.
37270
37271 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
37272
37273         update-copyright: automatically format copyright statements
37274         * build-aux/update-copyright: Implement that.
37275         Also, be a little more predictable and safer by always failing
37276         when the full copyright format is not perfectly recognized as an
37277         unbroken whole.  Discussed at
37278         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
37279         Rewrite documentation.
37280
37281 2009-08-03  Bruno Haible  <bruno@clisp.org>
37282
37283         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
37284
37285 2009-08-02  Bruno Haible  <bruno@clisp.org>
37286
37287         Tests for module 'uname'.
37288         * modules/uname-tests: New file.
37289         * tests/test-uname.c: New file.
37290
37291         New module 'uname'.
37292         * lib/uname.c: New file.
37293         * m4/uname.m4: New file.
37294         * modules/uname: New file.
37295         * doc/posix-functions/uname.texi: Mention the new module.
37296
37297 2009-08-02  Bruno Haible  <bruno@clisp.org>
37298
37299         Tests for module 'sys_utsname'.
37300         * modules/sys_utsname-tests: New file.
37301         * tests/test-sys_utsname.c: New file.
37302
37303         New module 'sys_utsname'.
37304         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
37305         * m4/sys_utsname_h.m4: New file.
37306         * modules/sys_utsname: New file.
37307         * doc/posix-headers/sys_utsname.texi: Mention the new module.
37308
37309 2009-08-02  Bruno Haible  <bruno@clisp.org>
37310
37311         Implicitly initialize the sockets library.
37312         * lib/gethostname.c: Include sockets.h.
37313         (rpl_gethostname): Invoke gl_sockets_startup.
37314         * lib/socket.c: Include sockets.h.
37315         (rpl_socket): Invoke gl_sockets_startup.
37316         * modules/gethostname (Depends-on): Add sockets.
37317         * modules/socket (Depends-on): Likewise.
37318         * tests/test-poll.c: Don't include sockets.h.
37319         (main): Don't invoke gl_sockets_startup.
37320         * tests/test-select.c: Don't include sockets.h.
37321         (main): Don't invoke gl_sockets_startup.
37322
37323 2009-08-02  Bruno Haible  <bruno@clisp.org>
37324
37325         Allow multiple calls to gl_sockets_startup.
37326         * lib/sockets.c (initialized_sockets_version): New variable.
37327         (gl_sockets_startup): Do nothing if already called for this or a higher
37328         version.
37329         (gl_sockets_cleanup): Reset initialized_sockets_version.
37330
37331 2009-08-03  Simon Josefsson  <simon@josefsson.org>
37332
37333         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
37334         different project/version.
37335
37336 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
37337             Bruno Haible  <bruno@clisp.org>
37338
37339         Tests for module 'pipe-filter-gi'.
37340         * modules/pipe-filter-gi-tests: New file.
37341         * tests/test-pipe-filter-gi1.sh: New file.
37342         * tests/test-pipe-filter-gi1.c: New file.
37343         * tests/test-pipe-filter-gi2.sh: New file.
37344         * tests/test-pipe-filter-gi2-main.c: New file.
37345         * tests/test-pipe-filter-gi2-child.c: New file.
37346
37347         New module 'pipe-filter-gi'.
37348         * lib/pipe-filter-gi.c: New file.
37349         * modules/pipe-filter-gi: New file.
37350
37351 2009-08-02  Bruno Haible  <bruno@clisp.org>
37352             Paolo Bonzini  <bonzini@gnu.org>
37353
37354         Tests for module 'pipe-filter-ii'.
37355         * modules/pipe-filter-ii-tests: New file.
37356         * tests/test-pipe-filter-ii1.sh: New file.
37357         * tests/test-pipe-filter-ii1.c: New file.
37358         * tests/test-pipe-filter-ii2.sh: New file.
37359         * tests/test-pipe-filter-ii2-main.c: New file.
37360         * tests/test-pipe-filter-ii2-child.c: New file.
37361
37362         New module 'pipe-filter-ii'.
37363         * lib/pipe-filter.h: New file.
37364         * lib/pipe-filter-ii.c: New file.
37365         * lib/pipe-filter-aux.h: New file.
37366         * modules/pipe-filter-ii: New file.
37367
37368 2009-08-02  Simon Josefsson  <simon@josefsson.org>
37369
37370         * lib/gc-libgcrypt.c: Change copyright to FSF.
37371         * lib/gc-gnulib.c: Likewise.
37372
37373 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
37374
37375         * lib/gethostname.c: Include limits.h.
37376
37377 2009-08-02  Simon Josefsson  <simon@josefsson.org>
37378             Bruno Haible  <bruno@clisp.org>
37379
37380         Ensure HOST_NAME_MAX as part of the gethostname module.
37381         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
37382         define also HOST_NAME_MAX.
37383         * tests/test-gethostname.c: Include <limits.h>.
37384         (main): Check also HOST_NAME_MAX.
37385         * doc/posix-headers/limits.texi: Document the mingw problem.
37386
37387 2009-08-02  Bruno Haible  <bruno@clisp.org>
37388
37389         * lib/gethostname.c (gethostname): Fix handling of large len argument.
37390         Add comments.
37391
37392 2009-03-31  Simon Josefsson  <simon@josefsson.org>
37393
37394         * lib/gethostname.c: Add Windows wrapper.
37395         * m4/gethostname.m4: Look for gethostname in -lws2_32.
37396         * modules/gethostname: Depend on sys_socket & errno, for also
37397         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
37398         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
37399
37400 2009-07-31  Jim Meyering  <meyering@redhat.com>
37401
37402         getloadavg: fix symbol name in comment
37403         * lib/getloadavg.c: Correct a typo I introduced when adding
37404         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
37405         Matt Kraai spotted the problem.
37406
37407 2009-07-29  Matt Kraai  <mkraai@beckman.com>
37408
37409         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
37410         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
37411         code also if ! defined N_NAME_POINTER.
37412         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
37413         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
37414         but the n_name member is a 12-byte array.
37415
37416 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
37417
37418         update-copyright: generalize comment handling
37419         * build-aux/update-copyright: Handle copyright statements
37420         within more comment styles.
37421         Document usage.
37422         Report any file with an external copyright holder or parse failure.
37423
37424 2009-07-29  Jim Meyering  <meyering@redhat.com>
37425
37426         mktime: correct setting of REPLACE_MKTIME
37427         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
37428
37429         update-copyright: new module
37430         * modules/update-copyright: New file.
37431         * build-aux/update-copyright: New file.
37432         * MODULES.html.sh (maint+release support): Add update-copyright.
37433
37434 2009-07-27  Bruno Haible  <bruno@clisp.org>
37435
37436         Fix compilation error when <ctime> is used and mktime is replaced.
37437         * lib/time.in.h (mktime): New declaration.
37438         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
37439         REPLACE_MKTIME instead of defining mktime in config.h.
37440         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
37441         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
37442         Reported by Ross McFarland <rwmcfa1@neces.com>.
37443
37444 2009-07-27  Bruno Haible  <bruno@clisp.org>
37445
37446         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
37447         Reported by Matt Kraai <mkraai@beckman.com>.
37448
37449 2009-07-25  Jim Meyering  <meyering@redhat.com>
37450
37451         maint.mk: avoid warnings about missing files
37452         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
37453         diagnostic when .prev-version does not exist.
37454         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
37455         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
37456         nonexistent cfg.mk.
37457         Suggestions from Simon Josefsson.
37458
37459 2009-07-25  Bruno Haible  <bruno@clisp.org>
37460
37461         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
37462         defined as macros. Needed on QNX 6.4.1.
37463         Reported by Matt Kraai <mkraai@beckman.com>.
37464
37465 2009-07-23  Jim Meyering  <meyering@redhat.com>
37466
37467         maint.mk: invoke "make dist" with a working value of XZ_OPT
37468         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
37469
37470 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
37471
37472         Make fseeko.c compile on QNX.
37473         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
37474
37475 2009-07-22  Peter Simons  <simons@cryp.to>
37476
37477         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
37478         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
37479         * lib/md4.h: Likewise.
37480         * lib/md5.h: Likewise.
37481         * lib/sha1.h: Likewise.
37482         * lib/sha256.h: Likewise.
37483         * lib/sha512.h: Likewise.
37484
37485         tests-sha1: don't assign literal string to 'char *' variable
37486         * tests/test-sha1.c (main): Declare locals with "const" to match
37487         attributes of the right hand side.
37488
37489 2009-07-21  Eric Blake  <ebb9@byu.net>
37490
37491         dup2: fix more mingw problems
37492         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
37493         fd to itself.
37494         * doc/posix-functions/dup2.texi (dup2): Document the bug.
37495         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
37496         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
37497         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
37498         care of mingw bugs.
37499
37500 2009-07-21  Jim Meyering  <meyering@redhat.com>
37501
37502         vc-list-files: avoid failure when /bin/sh is dash
37503         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
37504         On some Debian based systems, /bin/sh is a symlink to dash, and running
37505         this command would omit the "/" following each 'tests' prefix:
37506           dash -x build-aux/vc-list-files -C . tests
37507         That is because bash and dash work differently:
37508           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
37509           bash ok
37510           dash odd
37511
37512 2009-07-21  Eric Blake  <ebb9@byu.net>
37513
37514         dup2-tests: test previous patch
37515         * modules/dup2-tests: New file.
37516         * tests/test-dup2.c: Likewise.
37517         * tests/test-open.c (main): Avoid unspecified behavior.
37518         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
37519         test.
37520
37521         dup2: work around mingw and cygwin 1.5 bug
37522         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
37523         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
37524         * modules/unistd (Makefile.am): Substitute it.
37525         * lib/unistd.in.h (dup2): Declare the replacement.
37526         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
37527         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
37528         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
37529         * modules/execute (Depends-on): Add dup2.
37530         * modules/fseterr (Depends-on): Likewise.
37531         * modules/pipe (Depends-on): Likewise.
37532         * modules/posix_spawn-internal (Depends-on): Likewise.
37533
37534 2009-07-21  Bruno Haible  <bruno@clisp.org>
37535
37536         * modules/.gitattributes: New file.
37537
37538 2009-07-20  Bruno Haible  <bruno@clisp.org>
37539
37540         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
37541         (main): Use it.
37542
37543 2009-07-20  Eric Blake  <ebb9@byu.net>
37544
37545         test-pipe: make a bit more robust.
37546         * tests/test-pipe.c (myerr): Allow error messages regardless of
37547         what we do to stderr.
37548         (test_pipe): Rearrange to avoid deadlock.
37549         (child_main): Try a larger read, to ensure we avoided deadlock.
37550         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
37551         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
37552         if misused.
37553
37554 2009-07-19  Jim Meyering  <meyering@redhat.com>
37555
37556         fts: avoid false-positive cycle-detection
37557         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
37558         for each new command line argument.
37559
37560 2009-07-19  Bruno Haible  <bruno@clisp.org>
37561
37562         Fix build error on mingw with the modules sys_select and unistd.
37563         * modules/acl-tests (Depends-on): Add close.
37564         * modules/binary-io-tests (Depends-on): Likewise.
37565         * modules/closein-tests (Depends-on): Likewise.
37566         * modules/flock-tests (Depends-on): Likewise.
37567         * modules/fsync-tests (Depends-on): Likewise.
37568         * modules/lseek-tests (Depends-on): Likewise.
37569         * modules/pipe-tests (Depends-on): Likewise.
37570         * modules/posix_spawn-tests (Depends-on): Likewise.
37571         * modules/posix_spawnp-tests (Depends-on): Likewise.
37572         * modules/stat-time-tests (Depends-on): Likewise.
37573         * modules/yesno-tests (Depends-on): Likewise.
37574
37575 2009-07-19  Bruno Haible  <bruno@clisp.org>
37576
37577         Unify conditionals.
37578         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
37579         macros, not at the compiler macros.
37580         * lib/pipe.c: Likewise.
37581         * lib/execute.c: Likewise.
37582         * lib/spawni.c: Likewise.
37583
37584 2009-07-19  Bruno Haible  <bruno@clisp.org>
37585
37586         Fix handling of closed stdin/stdout/stderr on mingw.
37587         * lib/w32spawn.h: Include unistd.h.
37588         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
37589         file descriptor with O_NOINHERIT flag.
37590         (fd_safer_noinherit): New function, based on fd-safer.c.
37591         (dup_safer_noinherit): New function, based on dup-safer.c.
37592         (undup_safer_noinherit): New function.
37593         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
37594         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
37595         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
37596         instead of fd_safer.
37597         * tests/test-pipe.c: Include <windows.h>.
37598         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
37599         result.
37600
37601         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
37602         from main.
37603         (test_pipe): Pass an extra argument for disambiguation.
37604         (main): Invoke parent_main or child_main.
37605
37606         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
37607         consistently.
37608
37609 2009-07-18  Eric Blake  <ebb9@byu.net>
37610
37611         test-pipe: fix mingw build
37612         * tests/test-pipe.c (main): Avoid fcntl on mingw.
37613
37614 2009-07-18  Bruno Haible  <bruno@clisp.org>
37615
37616         * modules/pipe-tests (Makefile.am): Fix typo.
37617
37618 2009-07-18  Eric Blake  <ebb9@byu.net>
37619
37620         error: fix mingw build
37621         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
37622         Reported by Bruno Haible.
37623
37624         error: avoid undefined use of stdout
37625         * lib/error.c (error, error_at_line): Check that fd 1 is open
37626         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
37627         is handling faults and the close_stdout module wants to report the
37628         detection of closed stdout as an error.
37629
37630 2009-07-17  Eric Blake  <ebb9@byu.net>
37631
37632         pipe: be robust in face of closed fds
37633         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
37634         should cause child to misbehave.
37635         * modules/pipe-tests: New module.
37636         * tests/test-pipe.c: New file.
37637         * tests/test-pipe.sh: New file.
37638         Reported by Akim Demaille.
37639
37640 2009-07-14  Bruno Haible  <bruno@clisp.org>
37641
37642         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
37643         Reported by anonymous kc.
37644
37645 2009-07-07  Jim Meyering  <meyering@redhat.com>
37646
37647         maint.mk: don't look for translatable strings in *.m4 or *.mk
37648         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
37649         when searching for translatable strings.
37650
37651 2009-07-05  Jim Meyering  <meyering@redhat.com>
37652
37653         remove superfluous parentheses in STREQ definition
37654         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
37655         * lib/getugroups.c (STREQ): Likewise.
37656         * lib/fnmatch.c (STREQ): Likewise.
37657         Spotted by Bruno Haible.
37658
37659 2009-07-04  Jim Meyering  <meyering@redhat.com>
37660
37661         argv-iter: new module
37662         * MODULES.html.sh: Add argv-iter.
37663         * lib/argv-iter.c, lib/argv-iter.h: New files.
37664         * modules/argv-iter: New file.
37665         * modules/argv-iter-tests: New file.
37666         * tests/test-argv-iter.c: Test it.
37667
37668 2009-07-04  Bruno Haible  <bruno@clisp.org>
37669
37670         Fix assertion.
37671         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
37672         contains more exact copies of a given entry than file2, leave the extra
37673         copies unpaired rather than aborting.
37674         Reported by Eric Blake.
37675
37676 2009-07-02  Bruno Haible  <bruno@clisp.org>
37677
37678         Speedup git-merge-changelog for git cherry-pick.
37679         * lib/git-merge-changelog.c (struct entries_mapping): New type.
37680         (entries_mapping_get): New function, extracted from compute_mapping.
37681         (entries_mapping_reverse_get): New function.
37682         (compute_mapping): Add a 'full' argument. Return the result in a
37683         'struct entries_mapping'.
37684         (main): Update. Access the mappings through entries_mapping_get.
37685         Reported by Eric Blake.
37686
37687 2009-07-02  Bruno Haible  <bruno@clisp.org>
37688
37689         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
37690         best_i.
37691
37692 2009-07-02  Bruno Haible  <bruno@clisp.org>
37693
37694         Speed up approximate search for matching ChangeLog entries.
37695         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
37696         argument. Call fstrcmp_bounded instead of fstrcmp.
37697         (compute_mapping, try_split_merged_entry, main): Update callers.
37698
37699 2009-07-02  Bruno Haible  <bruno@clisp.org>
37700
37701         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
37702
37703 2009-06-30  Bruno Haible  <bruno@clisp.org>
37704
37705         Reduce the number of uc_is_cased calls.
37706         * lib/unicase.h (casing_suffix_context_t): Add
37707         'first_char_except_ignorable' field.
37708         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
37709         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
37710         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
37711         Update initializer.
37712         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
37713         case-ignorable characters.
37714         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
37715         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
37716         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
37717         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
37718         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
37719
37720 2009-06-30  Bruno Haible  <bruno@clisp.org>
37721
37722         Tests for module 'unicase/ignorable'.
37723         * modules/unicase/ignorable-tests: New file.
37724         * tests/unicase/test-ignorable.c: New file, generated by
37725         gen-uni-tables.
37726
37727         Tests for module 'unicase/cased'.
37728         * modules/unicase/cased-tests: New file.
37729         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
37730         * tests/unicase/test-predicate-part1.h: New file, derived from
37731         tests/unictype/test-predicate-part1.h.
37732         * tests/unicase/test-predicate-part2.h: New file, same as
37733         tests/unictype/test-predicate-part2.h.
37734
37735         Fix evaluation of "Before C" condition of FINAL_SIGMA.
37736         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
37737         (output_casing_properties): New function.
37738         (main): Call it.
37739         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
37740         * lib/unicase/cased.c: Include unictype/bitmap.h.
37741         (uc_is_cased): Define through a bitmap lookup.
37742         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
37743         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
37744         (uc_is_case_ignorable): Define through a bitmap lookup.
37745         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
37746         lib/unictype/bitmap.h.
37747         (Depends-on): Add inline. Clean up.
37748         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
37749         lib/unictype/bitmap.h.
37750         (Depends-on): Add inline. Clean up.
37751         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
37752         recognition.
37753         * tests/unicase/test-u16-tolower.c (main): Likewise.
37754         * tests/unicase/test-u32-tolower.c (main): Likewise.
37755
37756 2009-06-30  Bruno Haible  <bruno@clisp.org>
37757
37758         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
37759         * lib/unicase/u16-casemap.c: Likewise.
37760         * lib/unicase/u32-casemap.c: Likewise.
37761
37762 2009-06-29  Bruno Haible  <bruno@clisp.org>
37763
37764         Define u32_casefold as a wrapper around u32_ct_casefold.
37765         * lib/unicase/u32-casefold.c: Update.
37766         * modules/unicase/u32-casefold (Depends-on): Add
37767         unicase/u32-ct-casefold, unicase/empty-prefix-context,
37768         unicase/empty-suffix-context. Clean up.
37769
37770         Define u16_casefold as a wrapper around u16_ct_casefold.
37771         * lib/unicase/u16-casefold.c: Update.
37772         * modules/unicase/u16-casefold (Depends-on): Add
37773         unicase/u16-ct-casefold, unicase/empty-prefix-context,
37774         unicase/empty-suffix-context. Clean up.
37775
37776         Define u8_casefold as a wrapper around u8_ct_casefold.
37777         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
37778         * lib/unicase/u8-casefold.c: Update.
37779         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
37780         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
37781
37782         Define u32_totitle as a wrapper around u32_ct_totitle.
37783         * lib/unicase/u32-totitle.c: Update.
37784         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
37785         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
37786
37787         Define u16_totitle as a wrapper around u16_ct_totitle.
37788         * lib/unicase/u16-totitle.c: Update.
37789         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
37790         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
37791
37792         Define u8_totitle as a wrapper around u8_ct_totitle.
37793         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
37794         functions.
37795         (FUNC): Delegate to U_CT_TOTITLE.
37796         * lib/unicase/u8-totitle.c: Update.
37797         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
37798         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
37799
37800         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
37801         invocation.
37802         * modules/unicase/u32-tolower (Depends-on): Add
37803         unicase/empty-prefix-context, unicase/empty-suffix-context.
37804
37805         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
37806         invocation.
37807         * modules/unicase/u16-tolower (Depends-on): Add
37808         unicase/empty-prefix-context, unicase/empty-suffix-context.
37809
37810         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
37811         * modules/unicase/u8-tolower (Depends-on): Add
37812         unicase/empty-prefix-context, unicase/empty-suffix-context.
37813
37814         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
37815         invocation.
37816         * modules/unicase/u32-toupper (Depends-on): Add
37817         unicase/empty-prefix-context, unicase/empty-suffix-context.
37818
37819         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
37820         invocation.
37821         * modules/unicase/u16-toupper (Depends-on): Add
37822         unicase/empty-prefix-context, unicase/empty-suffix-context.
37823
37824         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
37825         * modules/unicase/u8-toupper (Depends-on): Add
37826         unicase/empty-prefix-context, unicase/empty-suffix-context.
37827
37828         New module 'unicase/u32-ct-casefold'.
37829         * lib/unicase/u32-ct-casefold.c: New file.
37830         * modules/unicase/u32-ct-casefold: New file.
37831
37832         New module 'unicase/u16-ct-casefold'.
37833         * lib/unicase/u16-ct-casefold.c: New file.
37834         * modules/unicase/u16-ct-casefold: New file.
37835
37836         New module 'unicase/u8-ct-casefold'.
37837         * lib/unicase/u8-ct-casefold.c: New file.
37838         * lib/unicase/u-ct-casefold.h: New file, derived from
37839         lib/unicase/u-casefold.h.
37840         * modules/unicase/u8-ct-casefold: New file.
37841
37842         New module 'unicase/u32-ct-totitle'.
37843         * lib/unicase/u32-ct-totitle.c: New file.
37844         * modules/unicase/u32-ct-totitle: New file.
37845
37846         New module 'unicase/u16-ct-totitle'.
37847         * lib/unicase/u16-ct-totitle.c: New file.
37848         * modules/unicase/u16-ct-totitle: New file.
37849
37850         New module 'unicase/u8-ct-totitle'.
37851         * lib/unicase/u8-ct-totitle.c: New file.
37852         * lib/unicase/u-ct-totitle.h: New file, derived from
37853         lib/unicase/u-totitle.h.
37854         * modules/unicase/u8-ct-totitle: New file.
37855
37856         New module 'unicase/u32-ct-tolower'.
37857         * lib/unicase/u32-ct-tolower.c: New file.
37858         * modules/unicase/u32-ct-tolower: New file.
37859
37860         New module 'unicase/u16-ct-tolower'.
37861         * lib/unicase/u16-ct-tolower.c: New file.
37862         * modules/unicase/u16-ct-tolower: New file.
37863
37864         New module 'unicase/u8-ct-tolower'.
37865         * lib/unicase/u8-ct-tolower.c: New file.
37866         * modules/unicase/u8-ct-tolower: New file.
37867
37868         New module 'unicase/u32-ct-toupper'.
37869         * lib/unicase/u32-ct-toupper.c: New file.
37870         * modules/unicase/u32-ct-toupper: New file.
37871
37872         New module 'unicase/u16-ct-toupper'.
37873         * lib/unicase/u16-ct-toupper.c: New file.
37874         * modules/unicase/u16-ct-toupper: New file.
37875
37876         New module 'unicase/u8-ct-toupper'.
37877         * lib/unicase/u8-ct-toupper.c: New file.
37878         * modules/unicase/u8-ct-toupper: New file.
37879
37880         Add context arguments to u*_casemap functions.
37881         * lib/unicase/unicasemap.h: Include unicase.h.
37882         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
37883         suffix_context arguments.
37884         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
37885         functions.
37886         (FUNC): Add prefix_context and suffix_context arguments. Use
37887         uc_is_cased and uc_is_case_ignorable.
37888         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
37889         * lib/unicase/u16-casemap.c: Likewise.
37890         * lib/unicase/u32-casemap.c: Likewise.
37891         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
37892         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
37893         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
37894         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
37895         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
37896         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
37897
37898         New module 'unicase/u32-suffix-context'.
37899         * lib/unicase/u32-suffix-context.c: New file.
37900         * modules/unicase/u32-suffix-context: New file.
37901
37902         New module 'unicase/u16-suffix-context'.
37903         * lib/unicase/u16-suffix-context.c: New file.
37904         * modules/unicase/u16-suffix-context: New file.
37905
37906         New module 'unicase/u8-suffix-context'.
37907         * lib/unicase/u8-suffix-context.c: New file.
37908         * lib/unicase/u-suffix-context.h: New file.
37909         * modules/unicase/u8-suffix-context: New file.
37910
37911         New module 'unicase/empty-suffix-context'.
37912         * lib/unicase/empty-suffix-context.c: New file.
37913         * modules/unicase/empty-suffix-context: New file.
37914
37915         New module 'unicase/u32-prefix-context'.
37916         * lib/unicase/u32-prefix-context.c: New file.
37917         * modules/unicase/u32-prefix-context: New file.
37918
37919         New module 'unicase/u16-prefix-context'.
37920         * lib/unicase/u16-prefix-context.c: New file.
37921         * modules/unicase/u16-prefix-context: New file.
37922
37923         New module 'unicase/u8-prefix-context'.
37924         * lib/unicase/u8-prefix-context.c: New file.
37925         * lib/unicase/u-prefix-context.h: New file.
37926         * lib/unicase/context.h: New file.
37927         * modules/unicase/u8-prefix-context: New file.
37928
37929         New module 'unicase/empty-prefix-context'.
37930         * lib/unicase/empty-prefix-context.c: New file.
37931         * modules/unicase/empty-prefix-context: New file.
37932
37933         New module 'unicase/ignorable'.
37934         * lib/unicase/ignorable.c: New file.
37935         * modules/unicase/ignorable: New file.
37936
37937         New module 'unicase/cased'.
37938         * lib/unicase/caseprop.h: New file.
37939         * lib/unicase/cased.c: New file.
37940         * modules/unicase/cased: New file.
37941
37942         New functions for case mapping of substrings.
37943         * lib/unicase.h (casing_prefix_context_t): New type.
37944         (unicase_empty_prefix_context): New variable.
37945         (u8_casing_prefix_context, u16_casing_prefix_context,
37946         u32_casing_prefix_context, u8_casing_prefixes_context,
37947         u16_casing_prefixes_context, u32_casing_prefixes_context): New
37948         declarations.
37949         (casing_suffix_context_t): New type.
37950         (unicase_empty_suffix_context): New variable.
37951         (u8_casing_suffix_context, u16_casing_suffix_context,
37952         u32_casing_suffix_context, u8_casing_suffixes_context,
37953         u16_casing_suffixes_context, u32_casing_suffixes_context,
37954         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
37955         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
37956         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
37957         declarations.
37958
37959 2009-06-28  Jim Meyering  <meyering@redhat.com>
37960
37961         boostrap: indent only with spaces
37962         * build-aux/bootstrap: Indent only with spaces, never TABs.
37963
37964         bootstrap: split long lines
37965         * build-aux/bootstrap: Keep line length < 80.
37966
37967         bootstrap: sync from coreutils
37968         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
37969         just as autoreconf does.  Verify a list of prerequisite
37970         package-name,version-number pairs if defined in bootstrap.conf.
37971         Refer to README-prereq, if prerequisites are not satisfied.
37972
37973 2009-06-27  Eric Blake  <ebb9@byu.net>
37974
37975         tests: add test for bogus NULL definition
37976         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
37977         * tests/test-stdlib.c: Likewise.
37978         * tests/test-string.c: Likewise.
37979         * tests/test-locale.c: Likewise.
37980         * tests/test-unistd.c: Likewise.
37981         * modules/stdio-tests (Depends-on): Add verify.
37982         * modules/stdlib-tests (Depends-on): Likewise.
37983         * modules/string-tests (Depends-on): Likewise.
37984         * modules/locale-tests (Depends-on): Likewise.
37985         * modules/unistd-tests (Depends-on): Likewise.
37986
37987 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
37988
37989         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
37990         self-explaining comment.
37991         * m4/selinux-selinux-h: Update serial.
37992         (gl_LIBSELINUX): New macro, adding a warning for missing development
37993         packages to code extracted from...
37994         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
37995         Add warning for missing development packages here, too.
37996
37997 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
37998
37999         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
38000
38001 2009-06-25  Eric Blake  <ebb9@byu.net>
38002
38003         version-etc: fix regression
38004         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
38005         gcc.
38006         (version_etc): Use it, to catch bugs with trailing NULL.
38007         * lib/version-etc.c (version_etc_arn): Delete unused argument.
38008         (version_etc_va): Fix logic bug.
38009         * modules/version-etc-tests: Add test.
38010         * tests/test-version-etc.c: New file.
38011         * tests/test-version-etc.sh: Likewise.
38012
38013 2009-06-25  Sam Steingold  <sds@gnu.org>
38014
38015         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
38016         mbtowc declaration.
38017
38018 2009-06-25  Eric Blake  <ebb9@byu.net>
38019
38020         fpurge: migrate into <stdio.h>
38021         * lib/fpurge.h: Delete...
38022         * lib/stdio.in.h (fpurge): ...and declare here, instead.
38023         * lib/fpurge.c (fpurge): Change declaring header.
38024         * modules/fpurge (Files): Drop deleted file.
38025         (Depends-on): Add stdio.
38026         (configure.ac): Set witness.
38027         * modules/stdio (Makefile.am): Support fpurge macros.
38028         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
38029         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
38030         * lib/fflush.c: Update client.
38031         * tests/test-fpurge.c: Likewise.
38032         * NEWS: Mention the change.
38033
38034 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
38035
38036         * lib/argp-version-etc.c (program_authors): Add const
38037         qualifier.
38038         * lib/version-etc.c: Fix typos in the comments.
38039         * modules/argp-version-etc: Depends on version-etc.
38040
38041 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
38042
38043         argp-version-etc: new module.
38044
38045         * lib/argp-version-etc.c: New file.
38046         * lib/argp-version-etc.h: New file.
38047         * modules/argp-version-etc: New file.
38048         * modules/argp-version-etc-tests: New file.
38049         * tests/test-argp-version-etc.c: New test.
38050         * tests/test-argp-version-etc-1.sh: New test.
38051
38052 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
38053
38054         Provide additional interfaces and documentation for version-etc
38055         module.
38056
38057         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
38058         interfaces.
38059         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
38060         prototypes.
38061
38062 2009-06-24  Bruno Haible  <bruno@clisp.org>
38063
38064         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
38065         HAVE_LIB${NAME} macro.
38066         Reported by Sam Steingold <sds@gnu.org>.
38067
38068 2009-06-23  Simon Josefsson  <simon@josefsson.org>
38069
38070         * modules/hash-tests (test_hash_LDADD): Link to libintl when
38071         needed.
38072
38073 2009-06-21  Bruno Haible  <bruno@clisp.org>
38074
38075         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
38076         work.
38077         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
38078         together with LIB${NAME}, LTLIB${NAME}.
38079         Reported by Sam Steingold <sds@gnu.org>.
38080
38081 2009-06-20  Jim Meyering  <meyering@redhat.com>
38082
38083         tests: make sc_require_test_exit_idiom more generic
38084         * top/maint.mk (Exit_witness_file): New overridable variable.
38085         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
38086         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
38087
38088 2009-06-19  Jim Meyering  <meyering@redhat.com>
38089
38090         hash: reverse order of src/dst parameters in an internal interface
38091         * lib/hash.c (transfer_entries): Reverse order of parameters to
38092         put DST before SRC.  Adjust callers.
38093
38094         tests: test-hash: avoid wholesale duplication
38095         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
38096         Instead, use a loop and add a single conditional.
38097
38098         tests: test-hash: allow seed selection via a command line argument
38099         * tests/test-hash.c (get_seed): New function.
38100         (main): Use it.
38101
38102 2009-06-19  Eric Blake  <ebb9@byu.net>
38103
38104         hash: avoid memory leak on allocation failure
38105         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
38106         failure.  Factor repeated algorithm...
38107         (transfer_entries): ...into new helper routine.
38108         (hash_delete): React to hash_rehash return value.
38109
38110         hash: reduce memory pressure in hash_rehash no-op case
38111         * lib/hash.c (next_prime): Avoid overflow.
38112         (hash_initialize): Factor bucket size computation...
38113         (compute_bucket_size): ...into new helper function.
38114         (hash_rehash): Use new function and open coding to reduce memory
38115         pressure, and avoid a memory leak in USE_OBSTACK code.
38116         Reported by Jim Meyering.
38117
38118 2009-06-18  Eric Blake  <ebb9@byu.net>
38119
38120         hash: make rotation more obvious
38121         * modules/hash (Depends-on): Add bitrotate and stdint.
38122         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
38123         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
38124         (SIZE_MAX): Rely on headers for definition.
38125         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
38126         (raw_hasher): Use rotr_sz.
38127         Suggested by Jim Meyering.
38128
38129         hash: fix memory leak in last patch
38130         * lib/hash.c (hash_rehash): Avoid memory leak.
38131
38132         hash: avoid no-op rehashing
38133         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
38134
38135         hash: provide default callback functions
38136         * lib/hash.c (raw_hasher, raw_comparator): New functions.
38137         (hash_initialize): Use them as defaults.
38138         * tests/test-hash.c (main): Test this.
38139
38140         hash: minor optimization
38141         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
38142         when possible.
38143         (hash_initialize): Document this promise.
38144         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
38145         * tests/test-hash.c (hash_compare_strings): Test this.
38146
38147 2009-06-18  Bruno Haible  <bruno@clisp.org>
38148
38149         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
38150         going to be replaced anyway.
38151
38152 2009-06-18  Bruno Haible  <bruno@clisp.org>
38153
38154         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
38155         in one place.
38156         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
38157         be replaced anyway.
38158
38159 2009-06-18  Eric Blake  <ebb9@byu.net>
38160
38161         hash: check for resize before insertion
38162         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
38163         threshold before insertion, so that a pathological hash_rehash
38164         that fills every bucket can still trigger another rehash.
38165
38166 2009-06-18  Jim Meyering  <meyering@redhat.com>
38167
38168         hash-tests: add a loop around the small tests
38169         * tests/test-hash.c (main): Repeat small tests with selected
38170         small initial table sizes.
38171
38172 2009-06-17  Eric Blake  <ebb9@byu.net>
38173
38174         hash: minor cleanups
38175         * lib/hash.h (hash_entry): Make opaque, by moving...
38176         * lib/hash.c (hash_entry): ...here.
38177         (hash_insert): Clarify restrictions on what can be inserted.
38178         (hash_get_next): Clarify when it is safe to remove an element
38179         during traversal.
38180         (check_tuning): Skip verification when tuning is known safe.
38181         (hash_initialize): Clarify restrictions on tuning.
38182
38183 2009-06-17  Jim Meyering  <jim@meyering.net>
38184         and Eric Blake  <ebb9@byu.net>
38185
38186         hash-tests: new module
38187         * modules/hash-tests: New file.
38188         * tests/test-hash.c: New file.
38189
38190 2009-06-17  Eric Blake  <ebb9@byu.net>
38191
38192         strstr-simple: document new module
38193         * MODULES.html.sh: Document new module.
38194
38195         strstr, strcasestr: replace on platforms with broken memchr
38196         * modules/strstr: Split into...
38197         * modules/strstr-simple: ...new module that does not care about
38198         performance, but does care about glibc bug.
38199         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
38200         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
38201         if platform memchr is broken, per Debian bug 521737.
38202         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
38203         memchr.
38204         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
38205         * doc/posix-functions/strstr.texi (strstr): Document the fix.
38206         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
38207         * modules/mountlist (Depends-on): Add strstr-simple.
38208         * modules/gen-uni-tables (Depends-on): Likewise.
38209         * modules/argz (Depends-on): Add strstr.
38210
38211 2009-06-17  Bruno Haible  <bruno@clisp.org>
38212
38213         * modules/posix_spawn-internal (Depends-on): Add errno.
38214
38215 2009-06-17  Bruno Haible  <bruno@clisp.org>
38216
38217         Define missing ESTALE on Interix 3.5.
38218         * lib/errno.in.h (ESTALE): Assign a value if missing.
38219         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
38220         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
38221         missing.
38222         * doc/posix-headers/errno.texi: Mention the Interix bug.
38223         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
38224
38225 2009-06-15  Eric Blake  <ebb9@byu.net>
38226
38227         memchr, memchr2: add valgrind exception
38228         * lib/memchr.valgrind: New file.
38229         * lib/memchr2.valgrind: New file.
38230         * modules/memchr (Files): Distribute valgrind file.
38231         * modules/memchr2 (Files): Likewise.
38232
38233         docs: memchr is no longer obsolete
38234         * MODULES.html.sh: Move memchr from obsolete to string.h section.
38235         * lib/string.in.h (memchr): Simplify logic.
38236
38237 2009-06-14  Jim Meyering  <meyering@redhat.com>
38238
38239         link-follow: fix the "checking..." message to not mention trailing slash
38240         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
38241         never considered trailing slashes.
38242
38243 2009-06-14  Bruno Haible  <bruno@clisp.org>
38244
38245         * m4/memchr.m4: Mention also the bug on IA-64.
38246         * doc/posix-functions/memchr.texi: Likewise.
38247
38248 2009-06-12  Eric Blake  <ebb9@byu.net>
38249
38250         memchr: detect broken x86_64 and alpha implementations
38251         * modules/memchr-tests (Depends-on): Move mmap detection...
38252         * modules/memchr (Depends-on): ...here.
38253         (configure.ac): Set indicator.
38254         * lib/string.in.h (memchr): Declare replacement.
38255         * modules/string (Makefile.am): Trigger replacement.
38256         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
38257         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
38258         bugs.
38259         * doc/posix-functions/memchr.texi (memchr): Document the bug.
38260         * modules/getpagesize (License): Relax license.
38261
38262 2009-06-11  Bruno Haible  <bruno@clisp.org>
38263
38264         * lib/idpriv.h: Add more references.
38265
38266 2009-06-08  Bruno Haible  <bruno@clisp.org>
38267
38268         Tests for module 'idpriv-droptemp'.
38269         * modules/idpriv-droptemp-tests: New file.
38270         * tests/test-idpriv-droptemp.sh: New file.
38271         * tests/test-idpriv-droptemp.su.sh: New file.
38272         * tests/test-idpriv-droptemp.c: New file.
38273
38274         New module 'idpriv-droptemp'.
38275         * lib/idpriv-droptemp.c: New file.
38276         * modules/idpriv-droptemp: New file.
38277
38278 2009-06-08  Bruno Haible  <bruno@clisp.org>
38279
38280         Tests for module 'idpriv-drop'.
38281         * modules/idpriv-drop-tests: New file.
38282         * tests/test-idpriv-drop.sh: New file.
38283         * tests/test-idpriv-drop.su.sh: New file.
38284         * tests/test-idpriv-drop.c: New file.
38285
38286         New module 'idpriv-drop'.
38287         * lib/idpriv.h: New file.
38288         * lib-idpriv-drop.c: New file.
38289         * m4/idpriv.m4: New file.
38290         * modules/idpriv-drop: New file.
38291
38292 2009-06-08  Bruno Haible  <bruno@clisp.org>
38293
38294         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
38295         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
38296         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
38297         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
38298         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
38299         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
38300         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
38301
38302 2009-06-08  Eric Blake  <ebb9@byu.net>
38303
38304         test-strstr: use memory fence, when possible
38305         * tests/test-strstr.c (main): Use memory fence, in order to be
38306         more likely to trigger Debian bug 521737.
38307         * modules/strstr-tests (Files): Pull in additional files.
38308
38309         memchr: no longer obsolete, for wider field testing
38310         * modules/memchr (Status, Notice): Delete, this module is no
38311         longer obsolete.
38312         * modules/vasnprintf (Depends-on): Add memchr.
38313
38314 2009-06-07  Jim Meyering  <meyering@redhat.com>
38315
38316         hash: declare some functions with the warn_unused_result attribute
38317         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
38318
38319 2009-06-07  Bruno Haible  <bruno@clisp.org>
38320
38321         * tests/test-alignof.c: Don't test int64_t if it does not exist.
38322         Reported by Eric Blake.
38323
38324 2009-06-06  Eric Blake  <ebb9@byu.net>
38325
38326         test-alignof: fix typo with long double
38327         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
38328         compiler error.
38329
38330 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
38331
38332         Escape non-texinfo { and }s.
38333         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
38334         markup error.
38335
38336 2009-06-04  Jim Meyering  <meyering@redhat.com>
38337
38338         gitlog-to-changelog: don't infloop on an empty commit log
38339         * build-aux/gitlog-to-changelog: Warn about an empty log message.
38340         Reported by Boris Petersen <transacid@centerim.org>.
38341
38342 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
38343
38344         version-etc: extend for packagers
38345         Add three new configure options, intended for packagers:
38346           --with-packager="packager name"
38347           --with-packager-version="packager-specific version"
38348           --with-packager-bug-reports="packager bug reporting"
38349         An example with coreutils:
38350           $ ./configure \
38351             --with-packager=Gentoo \
38352             --with-packager-bug-report=http://bugs.gentoo.org/ \
38353             --with-packager-version="patchset 1.6"
38354           $ ./src/ls --version | head -n2
38355           ls (GNU coreutils) 7.1-dirty
38356           Packaged by Gentoo (patchset 1.6)
38357         Note that the bug reporting info via --help doesn't show up because
38358         coreutils uses its own custom emit_bug_reporting_address() implementation
38359         in src/system.h.  If it didn't, it'd look like:
38360           $ ./src/ls --help | tail -n4
38361           Report bugs to <bug-coreutils@gnu.org>.
38362           Report Gentoo bugs to <http://bugs.gentoo.org/>.
38363           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
38364           General help using GNU software: <http://www.gnu.org/gethelp/>.
38365         * lib/version-etc.c: Print new information, if provided.
38366         * m4/version-etc.m4: New file.
38367         * modules/version-etc (Files): Add m4/version-etc.m4.
38368         (configure.ac): Add gl_VERSION_ETC.
38369
38370 2009-05-31  Bruno Haible  <bruno@clisp.org>
38371
38372         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
38373         and 'int64_t'.
38374         * modules/alignof-tests (Dependencies): Add stdint.
38375         Reported by Eric Blake.
38376
38377 2009-05-31  Bruno Haible  <bruno@clisp.org>
38378
38379         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
38380         restriction due to compiler bugs.
38381         Reported by Eric Blake.
38382
38383 2009-05-31  Simon Josefsson  <simon@josefsson.org>
38384             Bruno Haible  <bruno@clisp.org>
38385
38386         Fix test-alignof failure.
38387         * lib/alignof.h (alignof_slot): New macro.
38388         (alignof_type): New macro, with the same semantics as the previous
38389         'alignof'.
38390         (alignof): Alias to alignof_slot.
38391         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
38392         check that the results are usable as constant expressions.
38393
38394 2009-05-31  Bruno Haible  <bruno@clisp.org>
38395
38396         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
38397         * tests/test-memchr.c (main): Check that memchr does not read past the
38398         first occurrence of the byte.
38399         * tests/test-strstr.c (main): Update comment.
38400         Suggested by Eric Blake.
38401
38402 2009-05-30  Bruno Haible  <bruno@clisp.org>
38403
38404         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
38405         detail how to use dumpbin.
38406         Reported by David Byron <dbyron@dbyron.com>.
38407
38408 2009-06-02  Simon Josefsson  <simon@josefsson.org>
38409
38410         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
38411
38412 2009-06-02  Simon Josefsson  <simon@josefsson.org>
38413
38414         * m4/manywarnings.m4: Add GCC 4.4 warnings.
38415
38416 2009-05-28  Bruno Haible  <bruno@clisp.org>
38417
38418         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
38419         build-aux/ files.
38420
38421 2009-05-28  Simon Josefsson  <simon@josefsson.org>
38422
38423         * gnulib-tool (func_import): Transform license on build-aux/ files too.
38424
38425 2009-05-27  Simon Josefsson  <simon@josefsson.org>
38426
38427         * gnulib-tool (sed_transform_main_lib_file)
38428         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
38429         regexps.
38430
38431 2009-05-26  Simon Josefsson  <simon@josefsson.org>
38432
38433         * tests/test-strstr.c: Add another self-test.
38434         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
38435         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
38436
38437 2009-05-23  Bruno Haible  <bruno@clisp.org>
38438
38439         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
38440         change.
38441
38442 2009-05-21  Bruno Haible  <bruno@clisp.org>
38443
38444         Simplify use of mode_t varargs.
38445         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
38446         uses 'mode_t' or 'int'.
38447         * lib/openat.c (openat): Likewise.
38448         * lib/open-safer.c (open_safer): Likewise.
38449         * m4/mode_t.m4: New file.
38450         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
38451         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
38452         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
38453         * modules/open (Files): Add m4/mode_t.m4.
38454         * modules/openat (Files): Likewise.
38455         * modules/fcntl-safer (Files): Likewise.
38456         Suggested by Eric Blake.
38457
38458 2009-05-21  Pádraig Brady  <P@draigbrady.com>
38459
38460         * doc/glibc-functions/fallocate.texi: New file.
38461         * doc/gnulib.texi: Include it.
38462
38463 2009-05-21  Eric Blake  <ebb9@byu.net>
38464             Bruno Haible  <bruno@clisp.org>
38465
38466         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
38467         invocations.
38468         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
38469
38470 2009-05-21  Eric Blake  <ebb9@byu.net>
38471             Bruno Haible  <bruno@clisp.org>
38472
38473         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
38474         include_next. Fix of 2008-11-20 commit.
38475         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
38476         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
38477         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
38478         NEXT_MATH_H.
38479         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
38480         instead of NEXT_MATH_H.
38481
38482 2009-05-21  Bruno Haible  <bruno@clisp.org>
38483
38484         Avoid redefinition warnings for SIZE_MAX.
38485         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
38486         Reported by Simon Josefsson.
38487
38488 2009-05-21  Bruno Haible  <bruno@clisp.org>
38489
38490         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
38491         AC_CACHE_VAL.
38492
38493 2009-05-20  Bruno Haible  <bruno@clisp.org>
38494
38495         Make zeroptr.h work on mingw.
38496         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
38497         mprotect.
38498         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
38499         * modules/memchr2-tests (configure.ac): Likewise.
38500         * modules/memcmp-tests (configure.ac): Likewise.
38501         * modules/memmem-tests (configure.ac): Likewise.
38502         * modules/memrchr-tests (configure.ac): Likewise.
38503         Reported by Simon Josefsson.
38504
38505 2009-05-20  Simon Josefsson  <simon@josefsson.org>
38506
38507         * tests/test-glob.c: Include string.h for strcmp prototype.
38508
38509 2009-05-20  Simon Josefsson  <simon@josefsson.org>
38510
38511         * modules/getdelim (Depends-on): Add explicit stdint, although it
38512         was implicitly already pulled in via realloc-posix.
38513         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
38514
38515 2009-05-20  Simon Josefsson  <simon@josefsson.org>
38516
38517         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
38518         G. Christensen" <tgc@jupiterrise.com>.
38519         * m4/sys_socket_h.m4: Check for sa_family_t.
38520         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
38521         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
38522         * tests/test-sys_socket.c: Check that sa_family_t works.
38523
38524 2009-05-18  Eric Blake  <ebb9@byu.net>
38525
38526         maint.mk: allow gnulib_dir in VPATH build
38527         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
38528
38529 2009-05-15  Jim Meyering  <meyering@redhat.com>
38530
38531         maint.mk: Give gnulib_dir a default definition.
38532         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
38533         Thus, most packages no longer need to specify this variable in cfg.mk
38534
38535 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
38536
38537         rename.m4: fix typos that would make non-mingw cross-configure fail
38538         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
38539
38540 2009-05-13  Eric Blake  <ebb9@byu.net>
38541
38542         mmap-anon: avoid out-of-order autoconf expansion
38543         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
38544         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
38545         * modules/memchr-tests (Depends-on): Add extensions.
38546         * modules/memchr2-tests (Depends-on): Add extensions.
38547         * modules/memcmp-tests (Depends-on): Add extensions.
38548         * modules/memmem-tests (Depends-on): Add extensions.
38549         * modules/memrchr-tests (Depends-on): Add extensions.
38550
38551 2009-05-13  Bruno Haible  <bruno@clisp.org>
38552
38553         Make some tests ISO C 99 compliant.
38554         * tests/zerosize-ptr.h: New file.
38555         * tests/test-memchr.c: Include zerosize-ptr.h.
38556         (main): Use a zero-size object pointer instead of NULL.
38557         * tests/test-memchr2.c: Include zerosize-ptr.h.
38558         (main): Use a zero-size object pointer instead of NULL.
38559         * tests/test-memcmp.c: Include zerosize-ptr.h.
38560         (main): Use a zero-size object pointer instead of NULL.
38561         * tests/test-memmem.c: Include zerosize-ptr.h.
38562         (main): Use a zero-size object pointer instead of NULL.
38563         * tests/test-memrchr.c: Include zerosize-ptr.h.
38564         (main): Use a zero-size object pointer instead of NULL.
38565         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
38566         m4/mmap-anon.m4.
38567         (Depends-on): Add getpagesize.
38568         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38569         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
38570         m4/mmap-anon.m4.
38571         (Depends-on): Add getpagesize.
38572         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38573         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
38574         m4/mmap-anon.m4.
38575         (Depends-on): Add getpagesize.
38576         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38577         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
38578         m4/mmap-anon.m4.
38579         (Depends-on): Add getpagesize.
38580         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38581         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
38582         m4/mmap-anon.m4.
38583         (Depends-on): Add getpagesize.
38584         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38585
38586 2009-05-12  Bruno Haible  <bruno@clisp.org>
38587
38588         Tests for module 'alignof'.
38589         * modules/alignof-tests: New file.
38590         * tests/test-alignof.c: New file.
38591
38592 2009-05-12  Bruno Haible  <bruno@clisp.org>
38593
38594         Fix alignof macro.
38595         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
38596         vendor compilers that are always correct.
38597
38598 2009-05-12  Bruno Haible  <bruno@clisp.org>
38599
38600         Make the MAP_ANONYMOUS detection work on HP-UX 11.
38601         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
38602         not whether its fully works.
38603
38604 2009-05-12  Bruno Haible  <bruno@clisp.org>
38605
38606         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
38607
38608 2009-05-12  Jim Meyering  <meyering@redhat.com>
38609
38610         * top/maint.mk: Adjust backslash alignment.
38611
38612 2009-05-11  Simon Josefsson  <simon@josefsson.org>
38613
38614         * top/maint.mk: Make $(srcdir)/build-aux configurable.
38615
38616 2009-05-11  Eric Blake  <ebb9@byu.net>
38617
38618         argp: avoid undefined behavior
38619         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
38620         macros.
38621
38622 2009-05-08  Simon Josefsson  <simon@josefsson.org>
38623
38624         * tests/test-vc-list-files-git.sh: Do git config of user.email and
38625         user.name to prevent git commit from complaining.
38626
38627 2009-05-10  Bruno Haible  <bruno@clisp.org>
38628
38629         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
38630         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
38631         it rewrites every file name only once.
38632         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
38633
38634 2009-05-08  Bruno Haible  <bruno@clisp.org>
38635
38636         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
38637         instead of 'max'.
38638
38639 2009-05-08  Simon Josefsson  <simon@josefsson.org>
38640
38641         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
38642         sockaddr_storage test.
38643
38644 2009-05-07  Simon Josefsson  <simon@josefsson.org>
38645
38646         * modules/sys_socket (Makefile.am): Substitute
38647         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
38648         * m4/sys_socket_h.m4: Check for sockaddr_storage.
38649         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
38650         * tests/test-sys_socket.c: Check sockaddr_storage.
38651
38652 2009-05-08  Bruno Haible  <bruno@clisp.org>
38653
38654         New module 'alignof'.
38655         * lib/alignof.h: New file.
38656         * modules/alignof: New file.
38657
38658 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
38659             Bruno Haible  <bruno@clisp.org>
38660
38661         Fix test-file-has-acl on FreeBSD.
38662         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
38663         mask is implicitly added.
38664         * tests/test-file-has-acl.c: Include <signal.h>.
38665         (main): Terminate the test after 5 seconds.
38666         * modules/acl-tests (configure.ac): Check for alarm function.
38667
38668 2009-05-04  Bruno Haible  <bruno@clisp.org>
38669
38670         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
38671         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
38672         * modules/errno (configure.ac): Drop AC_REQUIRE.
38673         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
38674         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
38675
38676 2009-05-04  Simon Josefsson  <simon@josefsson.org>
38677
38678         * modules/glob-tests: New module.
38679         * tests/test-glob.c: Add.
38680
38681 2009-05-04  Simon Josefsson  <simon@josefsson.org>
38682
38683         * modules/fnmatch-tests: New module.
38684         * tests/test-fnmatch.c: Add.
38685
38686 2009-05-04  Eric Blake  <ebb9@byu.net>
38687
38688         maint: make the new no-submodule-changes rule VPATH-safe
38689         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
38690
38691 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
38692             Bruno Haible  <bruno@clisp.org>
38693
38694         acl: Fix infinite loop on FreeBSD.
38695         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
38696         of return value from acl_get_entry.
38697         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
38698         Likewise.
38699
38700 2009-05-03  Bruno Haible  <bruno@clisp.org>
38701
38702         * lib/acl-internal.h (acl_entries): Clarify return value.
38703         * lib/acl_entries.c (acl_entries): Likewise.
38704
38705 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
38706
38707         Bug fix in acl module.
38708         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
38709
38710 2009-05-03  Bruno Haible  <bruno@clisp.org>
38711
38712         Create gperf-generated file in the source dir, not in the build dir.
38713         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
38714         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
38715         * modules/unicase/locale-language (unicase/locale-languages.h):
38716         Likewise.
38717         * modules/unicase/special-casing (unicase/special-casing-table.h):
38718         Likewise.
38719         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
38720         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
38721         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
38722         Reported by Ralf Wildenhues.
38723
38724 2009-05-03  Bruno Haible  <bruno@clisp.org>
38725
38726         * modules/fnmatch (Description, configure.ac): Taken from
38727         fnmatch-posix.
38728         * modules/fnmatch-posix: Turn into a symbolic reference to the
38729         'fnmatch' module, and deprecate.
38730         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
38731
38732 2009-05-03  Bruno Haible  <bruno@clisp.org>
38733
38734         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
38735         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
38736         Reported by Ralf Wildenhues.
38737
38738 2009-05-04  Simon Josefsson  <simon@josefsson.org>
38739
38740         * m4/fnmatch.m4: Fix fnmatch re-define.
38741
38742 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
38743
38744         priv-set: new module and tests; adapt write-any-file
38745         * lib/priv-set.c: New file.
38746         * lib/priv-set.h: New file.
38747         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
38748         * lib/write-any-file.c: Simplify by using priv-set module.
38749         * m4/priv-set.m4: New file.
38750         * modules/priv-set: New file.
38751         * modules/unlinkdir: Add dependency on priv-set module.
38752         * modules/write-any-file: Likewise.
38753
38754         Tests for module 'priv-set'.
38755         * modules/priv-set-tests: New file.
38756         * tests/test-priv-set.c: New file.
38757
38758 2009-05-03  Jim Meyering  <meyering@redhat.com>
38759             Bruno Haible  <bruno@clisp.org>
38760
38761         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
38762         use the converted UTF-8 variant of the name instead.
38763
38764 2009-05-03  Jim Meyering  <meyering@redhat.com>
38765
38766         tests: tighten some getdate tests
38767         * tests/test-getdate.c (main): Tighten tests: require equality,
38768         not just greater than.  Set TZ envvar to UTC0.
38769
38770 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
38771
38772         getdate: correctly interpret "next monday" when run on a Monday
38773         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
38774         that e.g., "next tues" (when run on a tuesday) results in a date
38775         that is one week in the future, and not today's date.
38776         I.e., add a week when the wday is the same as the current one.
38777         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
38778         and earlier by Martin Bernreuther and Jan Minář.
38779         * tests/test-getdate.c (main): Check that "next DAY" is always in
38780         the future and that "last DAY" is always in the past.
38781
38782 2009-05-02  Jim Meyering  <meyering@redhat.com>
38783
38784         build: ensure that a release build fails when a submodule is unclean
38785         * top/maint.mk (no-submodule-changes): New rule.
38786         (alpha beta major): Depend on it.
38787
38788 2009-05-02  Bruno Haible  <bruno@clisp.org>
38789
38790         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
38791         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
38792         shell variable gl_fnmatch_required to detect which variant is
38793         requested.
38794         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
38795         gl_FUNC_FNMATCH_POSIX.
38796         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
38797         exclude fnmatch-posix.
38798
38799 2009-05-02  Bruno Haible  <bruno@clisp.org>
38800
38801         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
38802         * modules/mbsrtowcs (License): Change to LGPLv2+.
38803         * modules/strnlen1 (License): Likewise.
38804         Reported by Simon Josefsson.
38805
38806 2009-05-02  Bruno Haible  <bruno@clisp.org>
38807
38808         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
38809         "cross".
38810         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
38811         gnulib-tool was called with option --source-base=lib.
38812
38813 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38814
38815         Use automake *-local hooks without commands, for extensibility.
38816         * modules/localcharset (Makefile.am): Rename install-exec-local
38817         rule to install-exec-localcharset, and make it a prerequisite of
38818         install-exec-local.  Likewise, rename the uninstall-local rule to
38819         uninstall-localcharset, and make it a prerequisite of the former.
38820
38821 2009-05-01  Bruno Haible  <bruno@clisp.org>
38822
38823         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
38824         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
38825         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
38826         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
38827         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
38828         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
38829         m4/locale-zh.m4, m4/codeset.m4.
38830
38831         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
38832         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
38833         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
38834         m4/locale-zh.m4.
38835
38836         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
38837         REPLACE_WCRTOMB if mbstate_t must be replaced.
38838         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
38839         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
38840
38841 2009-05-01  Bruno Haible  <bruno@clisp.org>
38842
38843         Avoid compiler warnings when redefining macros defined by <libintl.h>.
38844         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
38845         dngettext, dcngettext, textdomain, bindtextdomain,
38846         bind_textdomain_codeset): Undefine before redefining.
38847
38848 2009-04-30  Bruno Haible  <bruno@clisp.org>
38849
38850         Fix bug introduced on 2009-04-25.
38851         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
38852         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
38853         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
38854         is defined.
38855         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
38856         is defined.
38857         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
38858         is defined.
38859         Reported by Elbert_Pol <elbert.pol@gmail.com>.
38860
38861 2009-04-28  Bruno Haible  <bruno@clisp.org>
38862
38863         Comment tweaks.
38864         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
38865         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
38866         * lib/unicase.h (u*_casexfrm): Likewise.
38867         Reported by Paolo Bonzini.
38868
38869 2009-04-28  Bruno Haible  <bruno@clisp.org>
38870
38871         Fix a compilation error.
38872         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
38873         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
38874         Reported by Jim Meyering.
38875
38876 2009-04-27  Bruno Haible  <bruno@clisp.org>
38877
38878         New module 'libunistring'.
38879         * modules/libunistring: New file.
38880         * m4/libunistring.m4: New file.
38881         * MODULES.html.sh (Unicode string functions): Add it.
38882
38883 2009-04-27  Eric Blake  <ebb9@byu.net>
38884
38885         maint.mk: allow package-specific header to provide <config.h>
38886         * top/maint.mk (sc_require_config_h): New variable.
38887         (sc_require_config_h, sc_require_config_h_first): Use it.
38888
38889 2009-04-27  Simon Josefsson  <simon@josefsson.org>
38890
38891         * top/maint.mk (sc_avoid_if_before_free): Except
38892         useless-if-before-free script.
38893
38894 2009-04-27  Eric Blake  <ebb9@byu.net>
38895
38896         maintainer-makefile: depend on all required helper scripts
38897         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
38898         useless-if-before-free.
38899         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
38900         version, rather than assuming gnulib checkout is available.
38901         Reported by Simen Josefsson.
38902
38903 2009-04-26  Bruno Haible  <bruno@clisp.org>
38904
38905         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
38906         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
38907         "../" or "..".
38908
38909 2009-04-26  Bruno Haible  <bruno@clisp.org>
38910
38911         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
38912         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
38913         AC_LIB_HAVE_LINKFLAGS.
38914
38915 2009-04-26  Bruno Haible  <bruno@clisp.org>
38916
38917         Simplify calling convention of u*_conv_from_encoding.
38918         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
38919         u32_conv_from_encoding): Expect a resultbuf argument and return the
38920         result directly as a pointer.
38921         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
38922         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
38923         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
38924         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
38925         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
38926         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
38927         Update.
38928         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
38929         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
38930         * lib/vasnprintf.c (VASNPRINTF): Update.
38931         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
38932         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
38933         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
38934         * NEWS: Mention the change.
38935
38936 2009-04-26  Bruno Haible  <bruno@clisp.org>
38937
38938         Simplify calling convention of u*_conv_to_encoding.
38939         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
38940         u32_conv_to_encoding): Expect a resultbuf argument and return the
38941         result directly as a pointer.
38942         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
38943         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
38944         freeing scaled_offsets if mem_iconveha failed.
38945         * lib/unicase/u-casexfrm.h (FUNC): Update.
38946         * lib/uninorm/u-normxfrm.h (FUNC): Update.
38947         * lib/vasnprintf.c (VASNPRINTF): Update.
38948         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
38949         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
38950         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
38951         * NEWS: Mention the change.
38952
38953 2009-04-26  Bruno Haible  <bruno@clisp.org>
38954
38955         Avoid test failures on AIX and OSF/1.
38956         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
38957         malloc(0).
38958         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
38959         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
38960         Likewise.
38961         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
38962         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
38963         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
38964         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
38965         * doc/posix-functions/malloc.texi: Document the portability problem
38966         related to malloc(0).
38967
38968 2009-04-26  Bruno Haible  <bruno@clisp.org>
38969
38970         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
38971         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
38972         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
38973
38974 2009-04-25  Bruno Haible  <bruno@clisp.org>
38975
38976         Avoid link error when creating a namespace clean library.
38977         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
38978         as macro with arguments if already defined as an alias.
38979         * lib/signbitf.c (gl_signbitf): Don't undefine.
38980         * lib/signbitd.c (gl_signbitd): Don't undefine.
38981         * lib/signbitl.c (gl_signbitl): Don't undefine.
38982
38983 2009-04-25  Jim Meyering  <meyering@redhat.com>
38984
38985         vc-list-files: fix another quoting bug
38986         * build-aux/vc-list-files: Avoid sed backslash expansion
38987         of pathological directory names.
38988
38989 2009-04-25  Eric Blake  <ebb9@byu.net>
38990
38991         vc-list-files: fix shell quoting error
38992         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
38993         timestamp.
38994
38995 2009-04-25  Jim Meyering  <meyering@redhat.com>
38996
38997         vc-list-files: restore lost functionality with subdir argument
38998         * build-aux/vc-list-files: When given a non-"." sub-directory
38999         argument, substitute the $dir/ prefix back onto each resulting name.
39000         Otherwise, coreutils' root_tests check would fail.
39001
39002 2009-04-24  Eric Blake  <ebb9@byu.net>
39003
39004         vc-list-files: ignore git symlinks
39005         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
39006         than ls-files, to ignore git symlinks.
39007
39008         maint.mk: import improvements from m4
39009         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
39010         (move_if_change): Delete unused macro.
39011         (news-date-check, vc-diff-check): Support VPATH builds.
39012         (announcement): Likewise.  Split --bootstrap-tools list...
39013         (boostrap-tools): ...into separate list, which can be overridden
39014         in cfg.mk.
39015         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
39016         requiring dependency on useless-if-before-free module.
39017         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
39018         Support VPATH builds.
39019
39020 2009-04-24  Jim Meyering  <meyering@redhat.com>
39021
39022         maint.mk: remove coreutils-specific rules and variables
39023         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
39024         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
39025         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
39026
39027         maint.mk: remove obsolete rule
39028         * top/maint.mk (rel-check): Remove rule.
39029         (WGET, WGETFLAGS): Remove now-unused variables.
39030
39031 2009-04-24  Simon Josefsson  <simon@josefsson.org>
39032
39033         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
39034         consistency.
39035
39036         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
39037         '$(PATH_SEPARATOR)' instead of ':'.
39038
39039 2009-04-24  Simon Josefsson  <simon@josefsson.org>
39040
39041         * lib/getopt1.c (main): Use 'const' for static array.
39042
39043 2009-04-24  Simon Josefsson  <simon@josefsson.org>
39044
39045         * top/maint.mk: Sync with coreutils.
39046         * NEWS: Explain incompatibilities.
39047
39048 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39049             Bruno Haible  <bruno@clisp.org>
39050
39051         Fix cross-compilation results.
39052         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
39053         statement, as third argument of AC_TRY_RUN.
39054         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
39055         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
39056         Likewise.
39057         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
39058         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
39059         Likewise.
39060         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
39061         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
39062         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
39063
39064 2009-04-20  Bruno Haible  <bruno@clisp.org>
39065
39066         Avoid test failure on mingw.
39067         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
39068
39069 2009-04-20  Bruno Haible  <bruno@clisp.org>
39070
39071         Avoid compilation error on mingw.
39072         * modules/localename-tests (Depends-on): Add locale.
39073
39074 2009-04-19  Bruno Haible  <bruno@clisp.org>
39075
39076         Support for building a shared library on Windows platforms.
39077         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
39078         (main): Test the presence of UNINORM_NFC here.
39079         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
39080         (main): Test the presence of UNINORM_NFD here.
39081         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
39082         (main): Test the presence of UNINORM_NFKC here.
39083         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
39084         (main): Test the presence of UNINORM_NFKD here.
39085
39086 2009-04-19  Bruno Haible  <bruno@clisp.org>
39087
39088         Avoid a compiler warning.
39089         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
39090         Change type of variable 'sequence'.
39091
39092 2009-04-19  Bruno Haible  <bruno@clisp.org>
39093
39094         * modules/configmake (Makefile.am): When the contents of configmake.h
39095         does not change, arrange to preserve its modification time.
39096
39097 2009-04-17  Simon Josefsson  <simon@josefsson.org>
39098
39099         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
39100         gettext domain.
39101
39102 2009-04-16  Jim Meyering  <meyering@redhat.com>
39103
39104         useless-if-before-free: improve conversion code
39105         * build-aux/useless-if-before-free: Adjust code-in-comment to match
39106         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
39107
39108 2009-04-14  Bruno Haible  <bruno@clisp.org>
39109
39110         * modules/fcntl (Depends-on): Add extensions.
39111         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
39112
39113 2009-04-12  Ben Pfaff  <blp@gnu.org>
39114
39115         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
39116         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
39117
39118 2009-03-20  Ben Pfaff  <blp@gnu.org>
39119
39120         Make rename replace existing destinations on Windows.
39121         * m4/rename.m4: Add test for Mingw.
39122         * lib/rename.c: Add rename replacement that uses MoveFileEx with
39123         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
39124         * doc/posix-functions/rename.texi: Document.
39125
39126 2009-04-10  Bruno Haible  <bruno@clisp.org>
39127
39128         New include file "iconveh.h".
39129         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
39130         * lib/striconveh.h: Include it.
39131         (enum iconv_ilseq_handler): Remove definition.
39132         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
39133         striconveh.h.
39134         * lib/striconveha.c: Include striconveh.h.
39135         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
39136         * modules/striconveh (Files): Add lib/iconveh.h.
39137         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
39138         lib/striconveh.h.
39139
39140 2009-04-10  Bruno Haible  <bruno@clisp.org>
39141
39142         * lib/uniconv.h: Update comment.
39143
39144 2009-04-10  Bruno Haible  <bruno@clisp.org>
39145
39146         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
39147         always.
39148         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
39149         * lib/unistr/u16-mbtouc-aux.c: Likewise.
39150         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
39151         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
39152         "unistring-notinline.h", so that the function gets defined always.
39153         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
39154         * lib/unistr/u8-uctomb.c: Likewise.
39155         * lib/unistr/u16-mbtouc.c: Likewise.
39156         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
39157         * lib/unistr/u16-uctomb.c: Likewise.
39158         * lib/unistr/u32-mbtouc.c: Likewise.
39159         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
39160         * lib/unistr/u32-uctomb.c: Likewise.
39161
39162 2009-04-10  Bruno Haible  <bruno@clisp.org>
39163
39164         Mark 'utime' obsolete.
39165         * modules/utime (Status, Notice): New sections.
39166         Suggested by Jim Meyering.
39167
39168         Fix cross-compile guess for utime test.
39169         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
39170         autoconf.
39171         * doc/posix-functions/utime.texi: Give more precisions.
39172         Reported by Jan <ipif@ymail.com>.
39173
39174 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
39175
39176         filevercmp: correct today's change
39177         * lib/filevercmp.c: Also handle coreutils' test inputs.
39178         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
39179
39180         Fix regression in 'filevercmp' module. Thanks Sven Joachim
39181         for reporting it.
39182         * lib/filevercmp.c: Special handle for "", "." and "..".
39183         * tests/test-filevercmp.c: Enlarge the set suite.
39184
39185 2009-04-07  Jim Meyering  <meyering@redhat.com>
39186
39187         useless-if-before-free: show how to remove braced useless free, too
39188         * build-aux/useless-if-before-free: still only in a comment, though.
39189
39190 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
39191
39192         maint.mk: import changes to syntax-check macros from coreutils
39193         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
39194         Use them in the relevant macros.
39195
39196 2009-04-06  Bruno Haible  <bruno@clisp.org>
39197
39198         Fix unportable use of bit-fields.
39199         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
39200         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
39201         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
39202
39203 2009-04-06  Bruno Haible  <bruno@clisp.org>
39204
39205         Avoid test failures on AIX and OSF/1.
39206         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
39207         that malloc(0) = NULL.
39208         * tests/unicase/test-u8-tolower.c (check): Likewise.
39209         * tests/unicase/test-u8-totitle.c (check): Likewise.
39210         * tests/unicase/test-u8-toupper.c (check): Likewise.
39211         * tests/unicase/test-u16-casefold.c (check): Likewise.
39212         * tests/unicase/test-u16-tolower.c (check): Likewise.
39213         * tests/unicase/test-u16-totitle.c (check): Likewise.
39214         * tests/unicase/test-u16-toupper.c (check): Likewise.
39215         * tests/unicase/test-u32-casefold.c (check): Likewise.
39216         * tests/unicase/test-u32-tolower.c (check): Likewise.
39217         * tests/unicase/test-u32-totitle.c (check): Likewise.
39218         * tests/unicase/test-u32-toupper.c (check): Likewise.
39219         * tests/uninorm/test-u8-nfc.c (check): Likewise.
39220         * tests/uninorm/test-u8-nfd.c (check): Likewise.
39221         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
39222         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
39223         * tests/uninorm/test-u16-nfc.c (check): Likewise.
39224         * tests/uninorm/test-u16-nfd.c (check): Likewise.
39225         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
39226         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
39227         * tests/uninorm/test-u32-nfc.c (check): Likewise.
39228         * tests/uninorm/test-u32-nfd.c (check): Likewise.
39229         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
39230         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
39231
39232 2009-04-05  Bruno Haible  <bruno@clisp.org>
39233
39234         Work around an autoconf limitation.
39235         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
39236         comment line if it would be longer than 3 KB.
39237
39238 2009-04-05  Bruno Haible  <bruno@clisp.org>
39239
39240         Avoid test failure with libiconv-1.13.
39241         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
39242         of the expected test results.
39243
39244 2009-04-05  Bruno Haible  <bruno@clisp.org>
39245
39246         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
39247         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
39248         that it should be installed.
39249
39250 2009-04-05  Bruno Haible  <bruno@clisp.org>
39251
39252         * gnulib-tool: New option --copy-file.
39253         (func_usage): Document it.
39254         (func_dest_tmpfilename): Moved out of func_import.
39255         (func_add_file, func_update_file): New functions, extracted from
39256         func_import.
39257         (func_import): Update.
39258
39259 2009-04-05  Karl Berry  <karl@gnu.org>
39260
39261         * README: prominently mention gnulib-tool.
39262         Rearrange sections so getting the code is near the top.
39263
39264 2009-04-05  Bruno Haible  <bruno@clisp.org>
39265
39266         * lib/unicase.h: Mention u*_cmp2.
39267         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
39268         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
39269         * lib/unicase/ulc-casecmp.c: Likewise.
39270         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
39271         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
39272         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
39273         unistr/u8-cmp.
39274         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
39275         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
39276         unistr/u16-cmp.
39277         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
39278         unistr/u32-cmp.
39279
39280         * lib/uninorm.h: Mention u*_cmp2.
39281         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
39282         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
39283         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
39284         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
39285         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
39286         unistr/u8-cmp.
39287         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
39288         unistr/u16-cmp.
39289         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
39290         unistr/u32-cmp.
39291
39292         New module 'unistr/u32-cmp2'.
39293         * lib/unistr/u32-cmp2.c: New file.
39294         * modules/unistr/u32-cmp2: New file.
39295
39296         New module 'unistr/u16-cmp2'.
39297         * lib/unistr/u16-cmp2.c: New file.
39298         * modules/unistr/u16-cmp2: New file.
39299
39300         New module 'unistr/u8-cmp2'.
39301         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
39302         * lib/unistr/u8-cmp2.c: New file.
39303         * lib/unistr/u-cmp2.h: New file.
39304         * modules/unistr/u8-cmp2: New file.
39305
39306 2009-04-05  Bruno Haible  <bruno@clisp.org>
39307
39308         * lib/unictype.h (uc_property_is_valid): New macro.
39309         * tests/unictype/test-pr_byname.c (main): Use it.
39310
39311         * lib/unistr.h: Doc fixes.
39312         * lib/uniconv.h: Doc fixes.
39313         * lib/unictype.h: Doc fixes.
39314
39315 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
39316
39317         Port coreutils 7.2 to Solaris 8.
39318
39319         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
39320         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
39321         for Solaris 8.  This is a bit of a hack, as it means it's the
39322         caller's responsibility to add -lnsl if needed, but most likely it
39323         won't be needed since only getaddrinfo uses this and getaddrinfo
39324         isn't needed on Solaris 8.
39325
39326         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
39327         problem to Solaris 8 encountered with coreutils 7.2, which
39328         resulted in a message "fnmatch.c:292: warning: passing argument 4
39329         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
39330         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
39331
39332 2009-04-03  Simon Josefsson  <simon@josefsson.org>
39333
39334         * m4/ld-version-script.m4: Add FIXME comment.
39335
39336 2009-04-02  Simon Josefsson  <simon@josefsson.org>
39337
39338         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
39339         SOVERSION variable.
39340
39341 2009-04-02  Bruno Haible  <bruno@clisp.org>
39342
39343         * Makefile (info, html, dvi, pdf): Combine the rules.
39344         Suggested by Jim Meyering.
39345
39346 2009-04-01  Bruno Haible  <bruno@clisp.org>
39347
39348         * Makefile (info, html, dvi, pdf): New targets.
39349         Reported by Reuben Thomas <rrt@sc3d.org>.
39350
39351 2009-04-01  Bruno Haible  <bruno@clisp.org>
39352
39353         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
39354         can be put into PATH.
39355         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
39356
39357 2009-04-01  Bruno Haible  <bruno@clisp.org>
39358
39359         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
39360
39361 2009-04-01  Bruno Haible  <bruno@clisp.org>
39362
39363         Rename module 'visibility'.
39364         * modules/lib-symbol-visibility: Renamed from modules/visibility.
39365         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
39366         * doc/gnulib.texi: Update.
39367         * MODULES.html.sh (Misc): Update.
39368         * NEWS: Mention the change.
39369
39370 2009-04-01  Simon Josefsson  <simon@josefsson.org>
39371
39372         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
39373         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
39374         Eric Blake <ebb9@byu.net> for review.
39375         * MODULES.html.sh: Add lib-msvc-compat.
39376         * doc/gnulib.texi: Link to new section.
39377         * m4/ld-output-def.m4: New file.
39378         * doc/ld-output-def.texi: New file.
39379
39380 2009-04-01  Simon Josefsson  <simon@josefsson.org>
39381
39382         Rename ld-version-script to lib-symbol-versions.  Suggested by
39383         Bruno Haible <bruno@clisp.org>.
39384         * modules/ld-version-script: Renamed to lib-symbol-versions.
39385         * doc/ld-version-script.texi: Fix module name.
39386         * MODULES.html.sh: Add lib-symbol-versions.
39387
39388 2009-03-31  Simon Josefsson  <simon@josefsson.org>
39389
39390         * modules/u64-tests: New file.
39391         * tests/test-u64.c: New file.
39392
39393 2009-03-04  Simon Josefsson  <simon@josefsson.org>
39394
39395         * MODULES.html.sh: Mention u64.
39396         * modules/u64: New module.
39397         * modules/crypto/sha512: Depend on u64 module instead of providing
39398         u64.h.
39399
39400 2009-03-27  Eric Blake  <ebb9@byu.net>
39401
39402         test-strerror: make debugging EAI_SYSTEM easier
39403         * modules/getaddrinfo-tests (Depends-on): Add strerror.
39404         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
39405         failure was EAI_SYSTEM.
39406
39407 2009-03-25  Bruno Haible  <bruno@clisp.org>
39408
39409         Fix a problem with --enable-relocatable on Solaris 7.
39410         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
39411         since 2008-02-24.
39412
39413 2009-03-25  Eric Blake  <ebb9@byu.net>
39414
39415         test-sockets: avoid gcc warning
39416         * tests/test-sockets.c (main): Silence compiler warning.
39417
39418 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
39419
39420         New modules nproc, pthread, contributed by Glen Lenker.
39421
39422         * MODULES.html.sh: Add pthread, nproc.
39423         * lib/nproc.c: New file.
39424         * lib/nproc.h: New file.
39425         * lib/pthread.in.h: New file.
39426         * m4/pthread.m4: New file.
39427         * modules/nproc: New file.
39428         * modules/pthread: New file.
39429
39430 2009-03-24  Simon Josefsson  <simon@josefsson.org>
39431
39432         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
39433         New variable.
39434
39435 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
39436
39437         filevercmp: handle simple~ and numbered.~3~ backup suffixes
39438         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
39439         * tests/test-filevercmp.c: Add tests for backup suffixes.
39440
39441 2009-03-24  Simon Josefsson  <simon@josefsson.org>
39442
39443         * modules/stdlib (Depends-on): Add stdint, needed when defining
39444         struct random_data on, for example, HP-UX 10.20.  Reported by
39445         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
39446
39447 2009-03-24  Simon Josefsson  <simon@josefsson.org>
39448
39449         * lib/readline.c (readline): Call fflush on stdout after printing
39450         prompt.
39451
39452 2009-03-20  Bruno Haible  <bruno@clisp.org>
39453
39454         Remove dependency from 'close' module to -lws2_32 on native Windows.
39455         * lib/close-hook.h: New file.
39456         * lib/close-hook.c: New file.
39457         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
39458         w32sock.h.
39459         (_gl_close_fd_maybe_socket): Remove function.
39460         (rpl_close): Invoke execute_all_close_hooks instead of
39461         _gl_close_fd_maybe_socket.
39462         * lib/sockets.c: Include close-hook.h, w32sock.h.
39463         (close_fd_maybe_socket): New function, essentially from lib/close.c.
39464         (close_sockets_hook): New variable.
39465         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
39466         (gl_sockets_cleanup): Unregister it.
39467         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
39468         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
39469         * modules/close-hook: New file.
39470         * modules/close (Files): Remove lib/w32sock.h.
39471         (Depends-on): Add close-hook.
39472         (Link): Remove section.
39473         * modules/sockets (Files): Add lib/w32sock.h.
39474         (Depends-on): Add close-hook.
39475         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
39476         invocation.
39477         * NEWS: Mention that LIB_CLOSE is gone.
39478
39479 2009-03-23  Eric Blake  <ebb9@byu.net>
39480
39481         signal-tests: test previous patch
39482         * tests/test-signal.c: New file.
39483         * modules/signal-tests: Likewise.
39484
39485         signal.h: always support 'volatile sig_atomic_t'
39486         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
39487         (gl_SIGNAL_H_DEFAULTS): Add a default.
39488         * modules/signal (Makefile.am): Substitute if needed.
39489         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
39490         users can blindly add volatile.
39491         * doc/posix-headers/signal.texi (signal.h): Document it.
39492         Reported by Matthew Woehlke.
39493
39494 2009-03-23  Jim Meyering  <meyering@redhat.com>
39495
39496         pathmax: PATH_MAX: use pathconf only when available
39497         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
39498         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
39499         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
39500         This avoids a link failure in a PSP cross-compilation environment
39501         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
39502
39503         * lib/vasnprintf.c (divide): Fix typo in comment.
39504
39505 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39506
39507         * gnulib-tool (func_filter_filelist): Fix comment.
39508
39509 2009-03-20  Bruno Haible  <bruno@clisp.org>
39510
39511         Make sockets.h self-contained.
39512         * lib/sockets.c: Include sockets.h first.
39513         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
39514
39515 2009-03-19  Eric Blake  <ebb9@byu.net>
39516
39517         doc: mention more functions added in cygwin 1.7.0
39518         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
39519         addition.
39520         * doc/posix-functions/log2f.texi: Likewise.
39521
39522 2009-03-19  Jim Meyering  <meyering@redhat.com>
39523
39524         fsusage: avoid syntax error due to statement-before-declaration
39525         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
39526         after all declarations.  Reported by Matthew Woehlke in
39527         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
39528
39529 2009-03-18  Eric Blake  <ebb9@byu.net>
39530
39531         build-aux/compile: sync from automake
39532         * build-aux/compile: New file, from automake.
39533         * config/srclist.txt: Mention build-aux/compile.
39534
39535 2009-03-17  Bruno Haible  <bruno@clisp.org>
39536
39537         * lib/git-merge-changelog.c: Fix typo in comment.
39538         Reported by Reuben Thomas <rrt@sc3d.org>.
39539
39540 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
39541
39542         * m4/regex.m4: update and improve help for
39543         --without-included-regex.
39544
39545 2009-03-17  Simon Josefsson  <simon@josefsson.org>
39546
39547         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
39548         failure on missing include files.
39549
39550 2009-03-17  Eric Blake  <ebb9@byu.net>
39551
39552         doc: mention more functions added in cygwin 1.7.0
39553         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
39554         addition.
39555         * doc/posix-functions/fwscanf.texi: Likewise.
39556         * doc/posix-functions/swprintf.texi: Likewise.
39557         * doc/posix-functions/swscanf.texi: Likewise.
39558         * doc/posix-functions/vfwprintf.texi: Likewise.
39559         * doc/posix-functions/vfwscanf.texi: Likewise.
39560         * doc/posix-functions/vswprintf.texi: Likewise.
39561         * doc/posix-functions/vswscanf.texi: Likewise.
39562         * doc/posix-functions/vwprintf.texi: Likewise.
39563         * doc/posix-functions/vwscanf.texi: Likewise.
39564         * doc/posix-functions/wcscasecmp.texi: Likewise.
39565         * doc/posix-functions/wcsdup.texi: Likewise.
39566         * doc/posix-functions/wcsftime.texi: Likewise.
39567         * doc/posix-functions/wcsncasecmp.texi: Likewise.
39568         * doc/posix-functions/wprintf.texi: Likewise.
39569         * doc/posix-functions/wscanf.texi: Likewise.
39570         * doc/glibc-functions/gethostbyname2.texi: Likewise.
39571
39572 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39573
39574         maint.mk: really add $(AM_MAKEFLAGS)
39575         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
39576         was inadvertently omitted in the last commit.
39577         Spotted by Bruno Haible.
39578
39579         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
39580         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
39581         $(AM_MAKEFLAGS)' rather than plain `make'.
39582
39583         gnulib-tool: execute $MAKE not make
39584         * gnulib-tool: Default $MAKE to 'make'.
39585         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
39586         than make.  Initialize $MAKE in the do-autobuild script.
39587
39588         gnulib-tool: use $MAKE not make in generated files
39589         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
39590         make, in generated files.  Initialize $MAKE in the do-autobuild
39591         script.
39592
39593         * top/GNUmakefile (_have-git-version-gen): Fix typo.
39594
39595         GNUmakefile: disable parallelism only for multiple, recursive targets
39596         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
39597         additions in the Makefile.
39598         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
39599         by Automake.
39600         (.NOTPARALLEL): Only disable parallel builds if multiple targets
39601         are listed on the command line and at least one of them is
39602         listed in $(ALL_RECURSIVE_TARGETS).
39603
39604 2009-03-14  Bruno Haible  <bruno@clisp.org>
39605
39606         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
39607         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
39608         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
39609         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
39610         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
39611         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
39612         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
39613         unistr/u8-uctomb.
39614         * modules/unistr/u8-strchr (Depends-on): Likewise.
39615         * modules/unistr/u8-strrchr (Depends-on): Likewise.
39616         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
39617         unistr/u16-uctomb.
39618         * modules/unistr/u16-strchr (Depends-on): Likewise.
39619         * modules/unistr/u16-strrchr (Depends-on): Likewise.
39620
39621 2009-03-12  Bruno Haible  <bruno@clisp.org>
39622
39623         Work around select() bug on Interix 3.5.
39624         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
39625         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
39626         * m4/select.m4: New file.
39627         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
39628         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
39629         * modules/select (Files): Add m4/select.m4.
39630         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
39631         * modules/nanosleep (Depends-on): Add select.
39632         * modules/poll (Depends-on): Likewise.
39633         * doc/posix-functions/select.texi: Mention the Interix bug.
39634         Reported by Markus Duft <mduft@gentoo.org>.
39635
39636         * lib/select.c: Renamed from lib/winsock-select.c.
39637         * modules/select (Files): Add lib/select.c, remove
39638         lib/winsock-select.c.
39639         (configure.ac): Update.
39640
39641 2009-03-12  Jim Meyering  <meyering@redhat.com>
39642
39643         avoid gcc warnings about unused macro definitions
39644         * lib/readtokens.c (STREQ): Remove unused definition.
39645         * lib/xmalloc.c (SIZE_MAX): Likewise.
39646         * lib/openat-die.c (N_): Likewise.
39647         * lib/mountlist.c (SIZE_MAX): Remove definition.
39648         Instead, include <stdint.h>.
39649         * lib/readutmp.c: Likewise.
39650         * modules/readutmp (Depends-on): Add stdint.
39651         * modules/mountlist (Depends-on): Add stdint.
39652         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
39653
39654 2009-03-10  Bruno Haible  <bruno@clisp.org>
39655
39656         Tests for module 'mbmemcasecoll'.
39657         * modules/mbmemcasecoll-tests: New file.
39658         * tests/test-mbmemcasecoll1.sh: New file.
39659         * tests/test-mbmemcasecoll2.sh: New file.
39660         * tests/test-mbmemcasecoll3.sh: New file.
39661         * tests/test-mbmemcasecoll.c: New file.
39662
39663         New module 'mbmemcasecoll'.
39664         * lib/mbmemcasecoll.h: New file.
39665         * lib/mbmemcasecoll.c: New file.
39666         * modules/mbmemcasecoll: New file.
39667
39668         * tests/test-mbmemcasecmp.h: New file, extracted from
39669         tests/test-mbmemcasecmp.c.
39670         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
39671         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
39672         (main): Update.
39673         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
39674
39675 2009-03-09  Bruno Haible  <bruno@clisp.org>
39676
39677         Tests for module 'mbmemcasecmp'.
39678         * modules/mbmemcasecmp-tests: New file.
39679         * tests/test-mbmemcasecmp1.sh: New file.
39680         * tests/test-mbmemcasecmp2.sh: New file.
39681         * tests/test-mbmemcasecmp3.sh: New file.
39682         * tests/test-mbmemcasecmp.c: New file.
39683
39684         New module 'mbmemcasecmp'.
39685         * lib/mbmemcasecmp.h: New file.
39686         * lib/mbmemcasecmp.c: New file.
39687         * modules/mbmemcasecmp: New file.
39688
39689 2009-03-09  Bruno Haible  <bruno@clisp.org>
39690
39691         Tests for module 'unicase/ulc-casecoll'.
39692         * modules/unicase/ulc-casecoll-tests: New file.
39693         * tests/unicase/test-ulc-casecoll1.sh: New file.
39694         * tests/unicase/test-ulc-casecoll2.sh: New file.
39695         * tests/unicase/test-ulc-casecoll.c: New file.
39696
39697         New module 'unicase/ulc-casecoll'.
39698         * lib/unicase.h (ulc_casecoll): New declaration.
39699         * lib/unicase/ulc-casecoll.c: New file.
39700         * modules/unicase/ulc-casecoll: New file.
39701
39702         New module 'unicase/ulc-casexfrm'.
39703         * lib/unicase.h (ulc_casexfrm): New declaration.
39704         * lib/unicase/ulc-casexfrm.c: New file.
39705         * modules/unicase/ulc-casexfrm: New file.
39706
39707 2009-03-09  Bruno Haible  <bruno@clisp.org>
39708
39709         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
39710         invocations.
39711
39712         * m4/mbscasecmp.m4: Remove file.
39713         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
39714         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
39715
39716         * m4/mbscasestr.m4: Remove file.
39717         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
39718         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
39719
39720         * m4/mbschr.m4: Remove file.
39721         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
39722         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
39723
39724         * m4/mbscspn.m4: Remove file.
39725         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
39726         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
39727
39728         * m4/mbslen.m4: Remove file.
39729         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
39730         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
39731
39732         * m4/mbsncasecmp.m4: Remove file.
39733         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
39734         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
39735
39736         * m4/mbsnlen.m4: Remove file.
39737         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
39738         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
39739
39740         * m4/mbspbrk.m4: Remove file.
39741         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
39742         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
39743
39744         * m4/mbspcasecmp.m4: Remove file.
39745         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
39746         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
39747
39748         * m4/mbsrchr.m4: Remove file.
39749         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
39750         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
39751
39752         * m4/mbssep.m4: Remove file.
39753         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
39754         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
39755
39756         * m4/mbsspn.m4: Remove file.
39757         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
39758         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
39759
39760         * m4/mbsstr.m4: Remove file.
39761         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
39762         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
39763
39764         * m4/mbstok_r.m4: Remove file.
39765         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
39766         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
39767
39768         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
39769
39770         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
39771         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
39772
39773         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
39774
39775 2009-03-08  Bruno Haible  <bruno@clisp.org>
39776
39777         Tests for module 'unicase/ulc-casecmp'.
39778         * modules/unicase/ulc-casecmp-tests: New file.
39779         * tests/unicase/test-ulc-casecmp1.sh: New file.
39780         * tests/unicase/test-ulc-casecmp2.sh: New file.
39781         * tests/unicase/test-ulc-casecmp.c: New file.
39782
39783         New module 'unicase/ulc-casecmp'.
39784         * lib/unicase.h (ulc_casecmp): New declaration.
39785         * lib/unicase/ulc-casecmp.c: New file.
39786         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
39787         'const SRC_UNIT *'.
39788         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
39789         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
39790         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
39791         * modules/unicase/ulc-casecmp: New file.
39792
39793         Tests for module 'unicase/u32-is-cased'.
39794         * modules/unicase/u32-is-cased-tests: New file.
39795         * tests/unicase/test-u32-is-cased.c: New file.
39796
39797         Tests for module 'unicase/u16-is-cased'.
39798         * modules/unicase/u16-is-cased-tests: New file.
39799         * tests/unicase/test-u16-is-cased.c: New file.
39800
39801         Tests for module 'unicase/u8-is-cased'.
39802         * modules/unicase/u8-is-cased-tests: New file.
39803         * tests/unicase/test-u8-is-cased.c: New file.
39804         * tests/unicase/test-is-cased.h: New file.
39805
39806         New module 'unicase/u32-is-cased'.
39807         * lib/unicase/u32-is-cased.c: New file.
39808         * modules/unicase/u32-is-cased: New file.
39809
39810         New module 'unicase/u16-is-cased'.
39811         * lib/unicase/u16-is-cased.c: New file.
39812         * modules/unicase/u16-is-cased: New file.
39813
39814         New module 'unicase/u8-is-cased'.
39815         * lib/unicase/u8-is-cased.c: New file.
39816         * lib/unicase/u-is-cased.h: New file.
39817         * modules/unicase/u8-is-cased: New file.
39818
39819         Tests for module 'unicase/u32-is-casefolded'.
39820         * modules/unicase/u32-is-casefolded-tests: New file.
39821         * tests/unicase/test-u32-is-casefolded.c: New file.
39822
39823         Tests for module 'unicase/u16-is-casefolded'.
39824         * modules/unicase/u16-is-casefolded-tests: New file.
39825         * tests/unicase/test-u16-is-casefolded.c: New file.
39826
39827         Tests for module 'unicase/u8-is-casefolded'.
39828         * modules/unicase/u8-is-casefolded-tests: New file.
39829         * tests/unicase/test-u8-is-casefolded.c: New file.
39830         * tests/unicase/test-is-casefolded.h: New file.
39831
39832         New module 'unicase/u32-is-casefolded'.
39833         * lib/unicase/u32-is-casefolded.c: New file.
39834         * modules/unicase/u32-is-casefolded: New file.
39835
39836         New module 'unicase/u16-is-casefolded'.
39837         * lib/unicase/u16-is-casefolded.c: New file.
39838         * modules/unicase/u16-is-casefolded: New file.
39839
39840         New module 'unicase/u8-is-casefolded'.
39841         * lib/unicase/u8-is-casefolded.c: New file.
39842         * modules/unicase/u8-is-casefolded: New file.
39843
39844         Tests for module 'unicase/u32-is-titlecase'.
39845         * modules/unicase/u32-is-titlecase-tests: New file.
39846         * tests/unicase/test-u32-is-titlecase.c: New file.
39847
39848         Tests for module 'unicase/u16-is-titlecase'.
39849         * modules/unicase/u16-is-titlecase-tests: New file.
39850         * tests/unicase/test-u16-is-titlecase.c: New file.
39851
39852         Tests for module 'unicase/u8-is-titlecase'.
39853         * modules/unicase/u8-is-titlecase-tests: New file.
39854         * tests/unicase/test-u8-is-titlecase.c: New file.
39855         * tests/unicase/test-is-titlecase.h: New file.
39856
39857         New module 'unicase/u32-is-titlecase'.
39858         * lib/unicase/u32-is-titlecase.c: New file.
39859         * modules/unicase/u32-is-titlecase: New file.
39860
39861         New module 'unicase/u16-is-titlecase'.
39862         * lib/unicase/u16-is-titlecase.c: New file.
39863         * modules/unicase/u16-is-titlecase: New file.
39864
39865         New module 'unicase/u8-is-titlecase'.
39866         * lib/unicase/u8-is-titlecase.c: New file.
39867         * modules/unicase/u8-is-titlecase: New file.
39868
39869         Tests for module 'unicase/u32-is-lowercase'.
39870         * modules/unicase/u32-is-lowercase-tests: New file.
39871         * tests/unicase/test-u32-is-lowercase.c: New file.
39872
39873         Tests for module 'unicase/u16-is-lowercase'.
39874         * modules/unicase/u16-is-lowercase-tests: New file.
39875         * tests/unicase/test-u16-is-lowercase.c: New file.
39876
39877         Tests for module 'unicase/u8-is-lowercase'.
39878         * modules/unicase/u8-is-lowercase-tests: New file.
39879         * tests/unicase/test-u8-is-lowercase.c: New file.
39880         * tests/unicase/test-is-lowercase.h: New file.
39881
39882         New module 'unicase/u32-is-lowercase'.
39883         * lib/unicase/u32-is-lowercase.c: New file.
39884         * modules/unicase/u32-is-lowercase: New file.
39885
39886         New module 'unicase/u16-is-lowercase'.
39887         * lib/unicase/u16-is-lowercase.c: New file.
39888         * modules/unicase/u16-is-lowercase: New file.
39889
39890         New module 'unicase/u8-is-lowercase'.
39891         * lib/unicase/u8-is-lowercase.c: New file.
39892         * modules/unicase/u8-is-lowercase: New file.
39893
39894         Tests for module 'unicase/u32-is-uppercase'.
39895         * modules/unicase/u32-is-uppercase-tests: New file.
39896         * tests/unicase/test-u32-is-uppercase.c: New file.
39897
39898         Tests for module 'unicase/u16-is-uppercase'.
39899         * modules/unicase/u16-is-uppercase-tests: New file.
39900         * tests/unicase/test-u16-is-uppercase.c: New file.
39901
39902         Tests for module 'unicase/u8-is-uppercase'.
39903         * modules/unicase/u8-is-uppercase-tests: New file.
39904         * tests/unicase/test-u8-is-uppercase.c: New file.
39905         * tests/unicase/test-is-uppercase.h: New file.
39906
39907         New module 'unicase/u32-is-uppercase'.
39908         * lib/unicase/u32-is-uppercase.c: New file.
39909         * modules/unicase/u32-is-uppercase: New file.
39910
39911         New module 'unicase/u16-is-uppercase'.
39912         * lib/unicase/u16-is-uppercase.c: New file.
39913         * modules/unicase/u16-is-uppercase: New file.
39914
39915         New module 'unicase/u8-is-uppercase'.
39916         * lib/unicase/u8-is-uppercase.c: New file.
39917         * modules/unicase/u8-is-uppercase: New file.
39918
39919         New module 'unicase/u32-is-invariant'.
39920         * lib/unicase/u32-is-invariant.c: New file.
39921         * modules/unicase/u32-is-invariant: New file.
39922
39923         New module 'unicase/u16-is-invariant'.
39924         * lib/unicase/u16-is-invariant.c: New file.
39925         * modules/unicase/u16-is-invariant: New file.
39926
39927         New module 'unicase/u8-is-invariant'.
39928         * lib/unicase/u8-is-invariant.c: New file.
39929         * lib/unicase/invariant.h: New file.
39930         * lib/unicase/u-is-invariant.h: New file.
39931         * modules/unicase/u8-is-invariant: New file.
39932
39933         Tests for module 'unicase/u32-casecoll'.
39934         * modules/unicase/u32-casecoll-tests: New file.
39935         * tests/unicase/test-u32-casecoll.c: New file.
39936
39937         Tests for module 'unicase/u16-casecoll'.
39938         * modules/unicase/u16-casecoll-tests: New file.
39939         * tests/unicase/test-u16-casecoll.c: New file.
39940
39941         Tests for module 'unicase/u8-casecoll'.
39942         * modules/unicase/u8-casecoll-tests: New file.
39943         * tests/unicase/test-u8-casecoll.c: New file.
39944
39945         New module 'unicase/u32-casecoll'.
39946         * lib/unicase/u32-casecoll.c: New file.
39947         * modules/unicase/u32-casecoll: New file.
39948
39949         New module 'unicase/u16-casecoll'.
39950         * lib/unicase/u16-casecoll.c: New file.
39951         * modules/unicase/u16-casecoll: New file.
39952
39953         New module 'unicase/u8-casecoll'.
39954         * lib/unicase/u8-casecoll.c: New file.
39955         * lib/unicase/u-casecoll.h: New file.
39956         * modules/unicase/u8-casecoll: New file.
39957
39958         New module 'unicase/u32-casexfrm'.
39959         * lib/unicase/u32-casexfrm.c: New file.
39960         * modules/unicase/u32-casexfrm: New file.
39961
39962         New module 'unicase/u16-casexfrm'.
39963         * lib/unicase/u16-casexfrm.c: New file.
39964         * modules/unicase/u16-casexfrm: New file.
39965
39966         New module 'unicase/u8-casexfrm'.
39967         * lib/unicase/u8-casexfrm.c: New file.
39968         * lib/unicase/u-casexfrm.h: New file.
39969         * modules/unicase/u8-casexfrm: New file.
39970
39971         Tests for module 'unicase/u32-casecmp'.
39972         * modules/unicase/u32-casecmp-tests: New file.
39973         * tests/unicase/test-u32-casecmp.c: New file.
39974
39975         Tests for module 'unicase/u16-casecmp'.
39976         * modules/unicase/u16-casecmp-tests: New file.
39977         * tests/unicase/test-u16-casecmp.c: New file.
39978
39979         Tests for module 'unicase/u8-casecmp'.
39980         * modules/unicase/u8-casecmp-tests: New file.
39981         * tests/unicase/test-u8-casecmp.c: New file.
39982         * tests/unicase/test-casecmp.h: New file.
39983
39984         New module 'unicase/u32-casecmp'.
39985         * lib/unicase/u32-casecmp.c: New file.
39986         * modules/unicase/u32-casecmp: New file.
39987
39988         New module 'unicase/u16-casecmp'.
39989         * lib/unicase/u16-casecmp.c: New file.
39990         * modules/unicase/u16-casecmp: New file.
39991
39992         New module 'unicase/u8-casecmp'.
39993         * lib/unicase/u8-casecmp.c: New file.
39994         * lib/unicase/u-casecmp.h: New file.
39995         * modules/unicase/u8-casecmp: New file.
39996
39997         Tests for module 'unicase/u32-casefold'.
39998         * modules/unicase/u32-casefold-tests: New file.
39999         * tests/unicase/test-u32-casefold.c: New file.
40000
40001         Tests for module 'unicase/u16-casefold'.
40002         * modules/unicase/u16-casefold-tests: New file.
40003         * tests/unicase/test-u16-casefold.c: New file.
40004
40005         Tests for module 'unicase/u8-casefold'.
40006         * modules/unicase/u8-casefold-tests: New file.
40007         * tests/unicase/test-u8-casefold.c: New file.
40008
40009         New module 'unicase/u32-casefold'.
40010         * lib/unicase/u32-casefold.c: New file.
40011         * modules/unicase/u32-casefold: New file.
40012
40013         New module 'unicase/u16-casefold'.
40014         * lib/unicase/u16-casefold.c: New file.
40015         * modules/unicase/u16-casefold: New file.
40016
40017         New module 'unicase/u8-casefold'.
40018         * lib/unicase/u8-casefold.c: New file.
40019         * lib/unicase/u-casefold.h: New file.
40020         * modules/unicase/u8-casefold: New file.
40021
40022         New module 'unicase/tocasefold'.
40023         * lib/unicase/casefold.h: New file.
40024         * lib/unicase/tocasefold.c: New file.
40025         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
40026         * modules/unicase/tocasefold: New file.
40027
40028         Tests for module 'unicase/u32-totitle'.
40029         * modules/unicase/u32-totitle-tests: New file.
40030         * tests/unicase/test-u32-totitle.c: New file.
40031
40032         Tests for module 'unicase/u16-totitle'.
40033         * modules/unicase/u16-totitle-tests: New file.
40034         * tests/unicase/test-u16-totitle.c: New file.
40035
40036         Tests for module 'unicase/u8-totitle'.
40037         * modules/unicase/u8-totitle-tests: New file.
40038         * tests/unicase/test-u8-totitle.c: New file.
40039
40040         New module 'unicase/u32-totitle'.
40041         * lib/unicase/u32-totitle.c: New file.
40042         * modules/unicase/u32-totitle: New file.
40043
40044         New module 'unicase/u16-totitle'.
40045         * lib/unicase/u16-totitle.c: New file.
40046         * modules/unicase/u16-totitle: New file.
40047
40048         New module 'unicase/u8-totitle'.
40049         * lib/unicase/u8-totitle.c: New file.
40050         * lib/unicase/u-totitle.h: New file.
40051         * modules/unicase/u8-totitle: New file.
40052
40053         Tests for module 'unicase/u32-tolower'.
40054         * modules/unicase/u32-tolower-tests: New file.
40055         * tests/unicase/test-u32-tolower.c: New file.
40056
40057         Tests for module 'unicase/u16-tolower'.
40058         * modules/unicase/u16-tolower-tests: New file.
40059         * tests/unicase/test-u16-tolower.c: New file.
40060
40061         Tests for module 'unicase/u8-tolower'.
40062         * modules/unicase/u8-tolower-tests: New file.
40063         * tests/unicase/test-u8-tolower.c: New file.
40064
40065         New module 'unicase/u32-tolower'.
40066         * lib/unicase/u32-tolower.c: New file.
40067         * modules/unicase/u32-tolower: New file.
40068
40069         New module 'unicase/u16-tolower'.
40070         * lib/unicase/u16-tolower.c: New file.
40071         * modules/unicase/u16-tolower: New file.
40072
40073         New module 'unicase/u8-tolower'.
40074         * lib/unicase/u8-tolower.c: New file.
40075         * modules/unicase/u8-tolower: New file.
40076
40077         Tests for module 'unicase/u32-toupper'.
40078         * modules/unicase/u32-toupper-tests: New file.
40079         * tests/unicase/test-u32-toupper.c: New file.
40080
40081         Tests for module 'unicase/u16-toupper'.
40082         * modules/unicase/u16-toupper-tests: New file.
40083         * tests/unicase/test-u16-toupper.c: New file.
40084
40085         Tests for module 'unicase/u8-toupper'.
40086         * modules/unicase/u8-toupper-tests: New file.
40087         * tests/unicase/test-u8-toupper.c: New file.
40088
40089         New module 'unicase/u32-toupper'.
40090         * lib/unicase/u32-toupper.c: New file.
40091         * modules/unicase/u32-toupper: New file.
40092
40093         New module 'unicase/u16-toupper'.
40094         * lib/unicase/u16-toupper.c: New file.
40095         * modules/unicase/u16-toupper: New file.
40096
40097         New module 'unicase/u8-toupper'.
40098         * lib/unicase/u8-toupper.c: New file.
40099         * modules/unicase/u8-toupper: New file.
40100
40101         New module 'unicase/u32-casemap'.
40102         * lib/unicase/u32-casemap.c: New file.
40103         * modules/unicase/u32-casemap: New file.
40104
40105         New module 'unicase/u16-casemap'.
40106         * lib/unicase/u16-casemap.c: New file.
40107         * modules/unicase/u16-casemap: New file.
40108
40109         New module 'unicase/u8-casemap'.
40110         * lib/unicase/unicasemap.h: New file.
40111         * lib/unicase/u8-casemap.c: New file.
40112         * lib/unicase/u-casemap.h: New file.
40113         * modules/unicase/u8-casemap: New file.
40114
40115         New module 'unicase/special-casing'.
40116         * lib/unicase/special-casing.h: New file.
40117         * lib/unicase/special-casing.c: New file.
40118         * lib/unicase/special-casing-table.gperf: New file, generated by
40119         gen-uni-tables.c.
40120         * modules/unicase/special-casing: New file.
40121
40122         Tests for module 'unicase/locale-language'.
40123         * modules/unicase/locale-language-tests: New file.
40124         * tests/unicase/test-locale-language.sh: New file.
40125         * tests/unicase/test-locale-language.c: New file.
40126
40127         New module 'unicase/locale-language'.
40128         * lib/unicase/locale-language.c: New file.
40129         * lib/unicase/locale-languages.gperf: New file.
40130         * modules/unicase/locale-language: New file.
40131
40132         Generate more tables for case conversion and case folding.
40133         * lib/gen-uni-tables.c (SCC_*): New enum items.
40134         (struct special_casing_rule): New type.
40135         (casing_rules, num_casing_rules, allocated_casing_rules): New
40136         variables.
40137         (add_casing_rule, fill_casing_rules): New functions.
40138         (struct casefold_rule): New type.
40139         (casefolding_rules, num_casefolding_rules,
40140         allocated_casefolding_rules): New variables.
40141         (fill_casefolding_rules): New function.
40142         (unicode_casefold): New variable.
40143         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
40144         sort_casing_rules, output_casing_rules): New functions.
40145         (main): Accept to more arguments: SpecialCasing.txt and
40146         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
40147         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
40148         Output mapping for casefolding.
40149
40150         * lib/unicase.h: Include stdbool.h, uninorm.h.
40151         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
40152         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
40153         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
40154         arguments.
40155         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
40156         resultp arguments.
40157         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
40158         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
40159         resultp arguments.
40160         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
40161         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
40162         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
40163         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
40164         declarations.
40165         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
40166
40167 2009-03-08  Bruno Haible  <bruno@clisp.org>
40168
40169         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
40170         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
40171         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
40172         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
40173
40174 2009-03-07  Bruno Haible  <bruno@clisp.org>
40175
40176         Adjust u*_normcmp, u*_normcoll API.
40177         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
40178         u16_normcoll, u32_normcoll): Change failure conventions.
40179         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
40180         errno and return -1.
40181         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
40182
40183 2009-03-07  Bruno Haible  <bruno@clisp.org>
40184
40185         Tests for module 'uninorm/u32-normcoll'.
40186         * modules/uninorm/u32-normcoll-tests: New file.
40187         * tests/uninorm/test-u32-normcoll.c: New file.
40188
40189         Tests for module 'uninorm/u16-normcoll'.
40190         * modules/uninorm/u16-normcoll-tests: New file.
40191         * tests/uninorm/test-u16-normcoll.c: New file.
40192
40193         Tests for module 'uninorm/u8-normcoll'.
40194         * modules/uninorm/u8-normcoll-tests: New file.
40195         * tests/uninorm/test-u8-normcoll.c: New file.
40196
40197 2009-03-07  Bruno Haible  <bruno@clisp.org>
40198
40199         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
40200         tests/uninorm/test-u32-normcmp.c.
40201         * tests/uninorm/test-u32-normcmp.c: Include it.
40202         (test_nonascii): New function, extracted from main. Add some more
40203         tests.
40204         (main): Invoke test_ascii and test_nonascii.
40205         * modules/uninorm/u32-normcmp-tests (Files): Add
40206         tests/uninorm/test-u32-normcmp.h.
40207         (Depends-on): Remove uninorm/u32-normcmp.
40208
40209         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
40210         tests/uninorm/test-u16-normcmp.c.
40211         * tests/uninorm/test-u16-normcmp.c: Include it.
40212         (test_nonascii): New function, extracted from main. Add some more
40213         tests.
40214         (main): Invoke test_ascii and test_nonascii.
40215         * modules/uninorm/u16-normcmp-tests (Files): Add
40216         tests/uninorm/test-u16-normcmp.h.
40217         (Depends-on): Remove uninorm/u16-normcmp.
40218
40219         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
40220         tests/uninorm/test-u8-normcmp.c.
40221         * tests/uninorm/test-u8-normcmp.c: Include it.
40222         (test_nonascii): New function, extracted from main. Add some more
40223         tests.
40224         (main): Invoke test_ascii and test_nonascii.
40225         * modules/uninorm/u8-normcmp-tests (Files): Add
40226         tests/uninorm/test-u8-normcmp.h.
40227         (Depends-on): Remove uninorm/u8-normcmp.
40228
40229 2009-03-07  Bruno Haible  <bruno@clisp.org>
40230
40231         New module 'uninorm/u32-normcoll'.
40232         * lib/uninorm/u32-normcoll.c: New file.
40233         * modules/uninorm/u32-normcoll: New file.
40234
40235         New module 'uninorm/u16-normcoll'.
40236         * lib/uninorm/u16-normcoll.c: New file.
40237         * modules/uninorm/u16-normcoll: New file.
40238
40239         New module 'uninorm/u8-normcoll'.
40240         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
40241         declarations.
40242         * lib/uninorm/u8-normcoll.c: New file.
40243         * lib/uninorm/u-normcoll.h: New file.
40244         * modules/uninorm/u8-normcoll: New file.
40245
40246         New module 'uninorm/u32-normxfrm'.
40247         * lib/uninorm/u32-normxfrm.c: New file.
40248         * modules/uninorm/u32-normxfrm: New file.
40249
40250         New module 'uninorm/u16-normxfrm'.
40251         * lib/uninorm/u16-normxfrm.c: New file.
40252         * modules/uninorm/u16-normxfrm: New file.
40253
40254         New module 'uninorm/u8-normxfrm'.
40255         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
40256         declarations.
40257         * lib/uninorm/u8-normxfrm.c: New file.
40258         * lib/uninorm/u-normxfrm.h: New file.
40259         * modules/uninorm/u8-normxfrm: New file.
40260
40261 2009-03-07  Bruno Haible  <bruno@clisp.org>
40262
40263         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
40264         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
40265         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
40266
40267 2009-03-07  Bruno Haible  <bruno@clisp.org>
40268
40269         New module 'memxfrm'.
40270         * lib/memxfrm.h: New file.
40271         * lib/memxfrm.c: New file.
40272         * modules/memxfrm: New file.
40273
40274 2009-03-07  Bruno Haible  <bruno@clisp.org>
40275
40276         New module 'memcmp2'.
40277         * lib/memcmp2.h: New file.
40278         * lib/memcmp2.c: New file.
40279         * modules/memcmp2: New file.
40280
40281 2009-03-07  Bruno Haible  <bruno@clisp.org>
40282
40283         Tests for module 'uninorm/decomposing-form'.
40284         * modules/uninorm/decomposing-form-tests: New file.
40285         * tests/uninorm/test-decomposing-form.c: New file.
40286
40287         New module 'uninorm/decomposing-form'.
40288         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
40289         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
40290         Add 'decomposing_variant' field.
40291         * lib/uninorm/decomposing-form.c: New file.
40292         * lib/uninorm/nfc.c (uninorm_nfc): Update.
40293         * lib/uninorm/nfd.c (uninorm_nfd): Update.
40294         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
40295         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
40296         * modules/uninorm/decomposing-form: New file.
40297         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
40298         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
40299
40300 2009-03-07  Bruno Haible  <bruno@clisp.org>
40301
40302         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
40303         strings.
40304
40305 2009-03-06  Bruno Haible  <bruno@clisp.org>
40306
40307         Tests for module 'uninorm/u32-normcmp'.
40308         * tests/uninorm/test-u32-normcmp.c: New file.
40309         * modules/uninorm/u32-normcmp-tests: New file.
40310
40311         Tests for module 'uninorm/u16-normcmp'.
40312         * tests/uninorm/test-u16-normcmp.c: New file.
40313         * modules/uninorm/u16-normcmp-tests: New file.
40314
40315         Tests for module 'uninorm/u8-normcmp'.
40316         * tests/uninorm/test-u8-normcmp.c: New file.
40317         * modules/uninorm/u8-normcmp-tests: New file.
40318
40319         New module 'uninorm/u32-normcmp'.
40320         * lib/uninorm/u32-normcmp.c: New file.
40321         * modules/uninorm/u32-normcmp: New file.
40322
40323         New module 'uninorm/u16-normcmp'.
40324         * lib/uninorm/u16-normcmp.c: New file.
40325         * modules/uninorm/u16-normcmp: New file.
40326
40327         New module 'uninorm/u8-normcmp'.
40328         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
40329         declarations.
40330         * lib/uninorm/u8-normcmp.c: New file.
40331         * lib/uninorm/u-normcmp.h: New file.
40332         * modules/uninorm/u8-normcmp: New file.
40333
40334 2009-03-06  Bruno Haible  <bruno@clisp.org>
40335
40336         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
40337         Reported by Eric Blake.
40338
40339 2009-03-06  Eric Blake  <ebb9@byu.net>
40340             Bruno Haible  <bruno@clisp.org>
40341
40342         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
40343         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
40344         condition.
40345         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
40346         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
40347         condition.
40348         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
40349
40350 2009-03-06  Eric Blake  <ebb9@byu.net>
40351
40352         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
40353         to avoid compiler warnings.
40354         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
40355
40356 2009-03-05  Bruno Haible  <bruno@clisp.org>
40357
40358         * tests/test-ftell.c (main): Disable test beyond end of file on
40359         FreeMiNT.
40360         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
40361
40362 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
40363
40364         * lib/filevercmp.c: Move hidden files up in ordering.
40365         * tests/test-filevercmp.c: Add tests for hidden files.
40366
40367 2009-03-04  Bruno Haible  <bruno@clisp.org>
40368
40369         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
40370         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
40371         AM_CFLAGS.
40372         Reported by Simon Josefsson.
40373
40374 2009-03-03  Bruno Haible  <bruno@clisp.org>
40375
40376         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
40377         Reported by Simon Josefsson.
40378
40379         * doc/ld-version-script.texi: Update node reference.
40380
40381 2009-03-03  Bruno Haible  <bruno@clisp.org>
40382
40383         * modules/visibility (License): Change to 'unlimited'.
40384         Suggested by Simon Josefsson.
40385
40386 2009-03-03  Jim Meyering  <meyering@redhat.com>
40387
40388         unlinkdir: cannot_unlink_dir may modify process state
40389         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
40390         it's neither thread-safe nor appropriate for use in a library.
40391
40392 2009-03-03  Eric Blake  <ebb9@byu.net>
40393
40394         test-closein: silence test under Darwin
40395         * tests/test-closein.sh: Ignore stderr from cat, since we don't
40396         care if it dies from EPIPE or EBADF.
40397
40398 2009-03-03  Bruno Haible  <bruno@clisp.org>
40399
40400         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
40401         earlier.
40402         * doc/visibility.texi: Fix @node and @section.
40403
40404 2009-03-03  Simon Josefsson  <simon@josefsson.org>
40405
40406         * doc/gnulib.texi: Link to sections for ld version script and
40407         visibility.
40408         * doc/visibility.texi: Add @node and @section.
40409         * modules/ld-version-script: New module.
40410         * m4/ld-version-script.m4: New file.
40411         * doc/ld-version-script.texi: New file.
40412
40413 2009-03-02  David Lutterkort  <lutter@redhat.com>
40414
40415         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
40416         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40417
40418 2009-03-02  Bruno Haible  <bruno@clisp.org>
40419
40420         * doc/visibility.texi: Mention libtool's -export-symbols option.
40421
40422 2009-03-02  Jim Meyering  <meyering@redhat.com>
40423
40424         announce-gen: new option: --no-print-checksums
40425         * build-aux/announce-gen (usage): Describe it.
40426         (print_checksums): Print a newline here, not in the [*] footnote.
40427         (main): Honor it.
40428
40429 2009-03-01  Bruno Haible  <bruno@clisp.org>
40430
40431         Use socklen_t in the native Windows replacements prototypes.
40432         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
40433         instead of 'int'.
40434         * lib/getsockopt.c (rpl_getsockopt): Likewise.
40435         * lib/setsockopt.c (rpl_setsockopt): Likewise.
40436         * modules/getsockopt (Depends-on): Add socklen.
40437         * modules/setsockopt (Depends-on): Add socklen.
40438
40439 2009-03-01  Bruno Haible  <bruno@clisp.org>
40440
40441         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
40442         least 4.2.
40443
40444 2009-03-01  Eric Blake  <ebb9@byu.net>
40445             Bruno Haible  <bruno@clisp.org>
40446
40447         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
40448         error messages.
40449         * lib/wait-process.c (wait_subprocess): Omit error message about
40450         deadly signal sent to the child of termsigp != NULL.
40451
40452 2009-03-01  Eric Blake  <ebb9@byu.net>
40453
40454         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
40455
40456 2009-03-01  Bruno Haible  <bruno@clisp.org>
40457
40458         Avoid a gcc warning.
40459         * tests/test-sched.c (b): Make global.
40460         Reported by Eric Blake.
40461
40462 2009-01-19  Martin Lambers  <marlam@marlam.de>
40463
40464         Provide POSIX semantics for socket timeout options on W32.
40465         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
40466         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
40467         * modules/setsockopt: Depend on sys_time module for struct timeval.
40468         * modules/getsockopt: Depend on sys_time module for struct timeval.
40469
40470 2009-03-01  Simon Josefsson  <simon@josefsson.org>
40471
40472         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
40473         __USE_GNU, for consistency with netdb.in.h.
40474         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40475
40476 2009-03-01  Bruno Haible  <bruno@clisp.org>
40477
40478         More support for FreeMiNT.
40479         * lib/fseeko.c (rpl_fseeko): Complete last commit.
40480         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40481
40482 2009-03-01  Bruno Haible  <bruno@clisp.org>
40483
40484         More support for FreeMiNT.
40485         * lib/fpurge.c (fpurge): Correct last commit.
40486         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40487
40488 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40489
40490         Fix unportable awk script in vc-list-files.
40491         * build-aux/vc-list-files: In the replacement awk script, use
40492         substr with a second argument of 1, not zero.
40493         Report by Simon Josefsson.
40494
40495 2009-02-28  Bruno Haible  <bruno@clisp.org>
40496
40497         More support for FreeMiNT.
40498         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
40499         to FreeMiNT today.
40500         * lib/fwriting.c (fwriting): Likewise.
40501         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
40502
40503 2009-02-28  Bruno Haible  <bruno@clisp.org>
40504
40505         * tests/test-freadseek.c (main): Disable test beyond end of file on
40506         FreeMiNT.
40507         * tests/test-ftello.c (main): Likewise.
40508         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
40509
40510 2009-02-28  Bruno Haible  <bruno@clisp.org>
40511
40512         Add tentative support for FreeMiNT.
40513         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
40514         * lib/fpurge.c (fpurge): Likewise.
40515         * lib/freadable.c (freadable): Likewise.
40516         * lib/freading.c (freading): Likewise.
40517         * lib/freadptr.c (freadptr): Likewise.
40518         * lib/freadseek.c (freadptrinc): Likewise.
40519         * lib/fseeko.c (rpl_fseeko): Likewise.
40520         * lib/fseterr.c (fseterr): Likewise.
40521         * lib/fwritable.c (fwritable): Likewise.
40522         * lib/fwriting.c (fwriting): Likewise.
40523         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
40524         Hourihane.
40525         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40526
40527 2009-02-28  Bruno Haible  <bruno@clisp.org>
40528
40529         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
40530         SIGCHLD.
40531         Reported by Jim Meyering.
40532
40533 2009-02-28  Bruno Haible  <bruno@clisp.org>
40534
40535         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
40536         Mention the results of these tests on various platforms.
40537         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
40538         order.
40539         * doc/posix-functions/printf.texi: Likewise.
40540         * doc/posix-functions/snprintf.texi: Likewise.
40541         * doc/posix-functions/sprintf.texi: Likewise.
40542         * doc/posix-functions/vfprintf.texi: Likewise.
40543         * doc/posix-functions/vprintf.texi: Likewise.
40544         * doc/posix-functions/vsnprintf.texi: Likewise.
40545         * doc/posix-functions/vsprintf.texi: Likewise.
40546         * doc/glibc-functions/obstack_printf.texi: Likewise.
40547         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
40548
40549 2009-02-28  Bruno Haible  <bruno@clisp.org>
40550
40551         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
40552         Reported by Loïc Minier <lool@dooz.org>.
40553
40554 2009-02-27  Bruno Haible  <bruno@clisp.org>
40555
40556         * gnulib-tool (func_import): Make the sed expression used to create the
40557         sed script for updating the .gitignore file POSIX compliant.
40558         Reported by Eric Blake.
40559
40560 2009-02-27  Bruno Haible  <bruno@clisp.org>
40561
40562         * gnulib-tool (sed): Don't alias as "sed --posix".
40563         Reported by Eric Blake.
40564
40565 2009-02-27  Bruno Haible  <bruno@clisp.org>
40566
40567         Avoid test link errors.
40568         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
40569         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
40570         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
40571         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
40572         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40573
40574 2009-02-27  Bruno Haible  <bruno@clisp.org>
40575
40576         Avoid spurious "(cached)" in configure output.
40577         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
40578         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
40579         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
40580         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
40581         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
40582         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
40583         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
40584         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
40585         Reported by Eric Blake.
40586
40587 2009-02-27  Eric Blake  <ebb9@byu.net>
40588
40589         printf: fix regression in previous patch
40590         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
40591
40592 2009-02-27  Bruno Haible  <bruno@clisp.org>
40593
40594         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
40595         value.
40596         * lib/stdint.in.h: Likewise.
40597         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
40598
40599 2009-02-27  Eric Blake  <ebb9@byu.net>
40600
40601         doc: mention more functions added in cygwin 1.7.0
40602         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
40603         addition.
40604         * doc/posix-functions/open_wmemstream.texi: Likewise.
40605         * doc/posix-functions/wcsnlen.texi: Likewise.
40606         * doc/posix-functions/wcsnrtombs.texi: Likewise.
40607         * doc/posix-functions/wcstod.texi: Likewise.
40608         * doc/posix-functions/wcstof.texi: Likewise.
40609         * doc/posix-functions/wcstoimax.texi: Likewise.
40610         * doc/posix-functions/wcstok.texi: Likewise.
40611         * doc/posix-functions/wcstoumax.texi: Likewise.
40612
40613         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
40614         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
40615         * doc/posix-functions/fprintf.texi: Update.
40616         * doc/posix-functions/printf.texi: Update.
40617         * doc/posix-functions/snprintf.texi: Update.
40618         * doc/posix-functions/sprintf.texi: Update.
40619         * doc/posix-functions/vfprintf.texi: Update.
40620         * doc/posix-functions/vprintf.texi: Update.
40621         * doc/posix-functions/vsnprintf.texi: Update.
40622         * doc/posix-functions/vsprintf.texi: Update.
40623         * doc/glibc-functions/obstack_printf.texi: Update.
40624         * doc/glibc-functions/obstack_vprintf.texi: Update.
40625
40626 2009-02-26  Eric Blake  <ebb9@byu.net>
40627
40628         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
40629         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
40630         compilation bug by using runtime conversion.
40631         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
40632         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
40633         * modules/ceill-tests (Files): Use nan.h.
40634         * modules/floorl-tests (Files): Likewise.
40635         * modules/frexpl-tests (Files): Likewise.
40636         * modules/isnanl-tests (Files): Likewise.
40637         * modules/ldexpl-tests (Files): Likewise.
40638         * modules/roundl-tests (Files): Likewise.
40639         * modules/truncl-tests (Files): Likewise.
40640         * tests/test-ceill.c (main): Use a working NaN.
40641         * tests/test-floorl.c (main): Likewise.
40642         * tests/test-frexpl.c (main): Likewise.
40643         * tests/test-isnan.c (test_long_double): Likewise.
40644         * tests/test-isnanl.h (main): Likewise.
40645         * tests/test-ldexpl.h (main): Likewise.
40646         * tests/test-roundl.h (main): Likewise.
40647         * tests/test-truncl.h (main): Likewise.
40648         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
40649
40650 2009-02-26  Eric Blake  <ebb9@byu.net>
40651             Bruno Haible  <bruno@clisp.org>
40652
40653         Work around a *printf bug with %ls on Solaris.
40654         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
40655         precision is specified, sprintf stops converting the wide string
40656         argument when the number of bytes that have been produced by this
40657         conversion equals or exceeds the precision.
40658         * doc/posix-functions/fprintf.texi: Update.
40659         * doc/posix-functions/printf.texi: Update.
40660         * doc/posix-functions/snprintf.texi: Update.
40661         * doc/posix-functions/sprintf.texi: Update.
40662         * doc/posix-functions/vfprintf.texi: Update.
40663         * doc/posix-functions/vprintf.texi: Update.
40664         * doc/posix-functions/vsnprintf.texi: Update.
40665         * doc/posix-functions/vsprintf.texi: Update.
40666         * doc/glibc-functions/obstack_printf.texi: Update.
40667         * doc/glibc-functions/obstack_vprintf.texi: Update.
40668
40669 2009-02-26  Eric Blake  <ebb9@byu.net>
40670
40671         stdlib: favor compiler check of random.h
40672         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
40673         to avoid an ObjC random.h installed by Swarm.
40674
40675 2009-02-26  Bruno Haible  <bruno@clisp.org>
40676
40677         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
40678         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
40679         Reported by Gary V. Vaughan <gary@gnu.org>.
40680
40681 2009-02-26  Bruno Haible  <bruno@clisp.org>
40682
40683         Fix *printf behaviour regarding the %ls directive.
40684         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
40685         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
40686         NEED_PRINTF_DIRECTIVE_LS.
40687         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
40688         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
40689         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
40690         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
40691         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
40692         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
40693         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
40694         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
40695         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
40696         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
40697         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
40698         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
40699         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
40700         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
40701         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
40702         * doc/posix-functions/fprintf.texi: Update.
40703         * doc/posix-functions/printf.texi: Update.
40704         * doc/posix-functions/snprintf.texi: Update.
40705         * doc/posix-functions/sprintf.texi: Update.
40706         * doc/posix-functions/vfprintf.texi: Update.
40707         * doc/posix-functions/vprintf.texi: Update.
40708         * doc/posix-functions/vsnprintf.texi: Update.
40709         * doc/posix-functions/vsprintf.texi: Update.
40710         * doc/glibc-functions/obstack_printf.texi: Update.
40711         * doc/glibc-functions/obstack_vprintf.texi: Update.
40712         Reported by Eric Blake.
40713
40714 2009-02-25  Bruno Haible  <bruno@clisp.org>
40715
40716         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
40717         with known value.
40718         Reported by Gary V. Vaughan <gary@gnu.org>.
40719
40720 2009-02-25  Bruno Haible  <bruno@clisp.org>
40721
40722         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
40723         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
40724         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
40725         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
40726         Reported by Gary V. Vaughan <gary@gnu.org>.
40727
40728 2009-02-25  Bruno Haible  <bruno@clisp.org>
40729
40730         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
40731         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
40732         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
40733         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
40734         Reported by Gary V. Vaughan <gary@gnu.org>.
40735
40736 2009-02-25  Eric Blake  <ebb9@byu.net>
40737
40738         tests: skip fseek/ftell tests if ungetc is broken
40739         * m4/ungetc.m4: New file.
40740         * modules/fseek-tests: Split test, so ungetc dependency is
40741         separate from rest of test.
40742         * modules/fseeko-tests: Likewise.
40743         * modules/ftell-tests: Likewise.
40744         * modules/ftello-tests: Likewise.
40745         * tests/test-fseek.c (main): Isolate ungetc dependency.
40746         * tests/test-fseeko.c (main): Likewise.
40747         * tests/test-ftell.c (main): Likewise.
40748         * tests/test-ftello.c (main): Likewise.
40749         * tests/test-fseek2.sh: New file.
40750         * tests/test-fseeko2.sh: Likewise.
40751         * tests/test-ftell2.sh: Likewise.
40752         * tests/test-ftello2.sh: Likewise.
40753
40754 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
40755
40756         test-getaddrinfo: fix usage of skip return code 77
40757         * tests/test-gettaddrinfo.c: Return skip code 77 only
40758         for first occurance of skip (4x77 is not 77)
40759
40760 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
40761
40762         strtod: avoid C99 decl-after-statement
40763         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
40764
40765 2009-02-24  Eric Blake  <ebb9@byu.net>
40766
40767         strtod: detect HP-UX 11.31 bug
40768         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
40769         Reported by Gary V. Vaughan.
40770
40771 2009-02-23  Bruno Haible  <bruno@clisp.org>
40772
40773         Fix invalid read past end of memory block.
40774         * lib/vasnprintf.c (DCHAR_SET): Define.
40775         (local_wcslen): Define only when needed.
40776         (local_strnlen, local_wcsnlen): New functions.
40777         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
40778         directives that involve a conversion ourselves.
40779         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
40780         wcsnlen, mbrtowc, wcrtomb.
40781         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
40782         * tests/test-vasprintf-posix.c (test_function): Likewise.
40783         * tests/test-snprintf-posix.h (test_function): Likewise.
40784         * tests/test-sprintf-posix.h (test_function): Likewise.
40785         Reported by Ben Pfaff <blp@cs.stanford.edu>.
40786
40787 2009-02-22  Bruno Haible  <bruno@clisp.org>
40788
40789         Implement new clarified decomposition of Hangul syllables.
40790         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
40791         of type LTV, return only a pairwise decomposition.
40792         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
40793         Likewise.
40794         * tests/uninorm/test-decomposition.c (main): Updated expected result.
40795         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
40796         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
40797
40798 2009-02-22  Bruno Haible  <bruno@clisp.org>
40799
40800         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
40801         zero-length results and shrink excess allocated memory.
40802         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
40803         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
40804         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
40805         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
40806         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
40807         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
40808         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
40809         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
40810         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
40811         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
40812         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
40813         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
40814
40815 2009-02-21  Bruno Haible  <bruno@clisp.org>
40816
40817         * doc/gnulib.texi: Include safe-alloc.texi earlier.
40818         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
40819         spaces after a period. Put a space between a macro name and its
40820         argument list. Trivial rewordings.
40821         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
40822         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
40823         (main): Return 0 explicitly.
40824
40825 2009-02-21  Bruno Haible  <bruno@clisp.org>
40826
40827         Tests for module 'uninorm/filter'.
40828         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
40829         * modules/uninorm/filter-tests: New file.
40830
40831         New module 'uninorm/filter'.
40832         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
40833         uninorm_filter_flush, uninorm_filter_free): New declarations.
40834         * lib/uninorm/uninorm-filter.c: New file.
40835         * modules/uninorm/filter: New file.
40836
40837 2009-02-21  Bruno Haible  <bruno@clisp.org>
40838
40839         Tests for module 'uninorm/nfkc'.
40840         * tests/uninorm/test-nfkc.c: New file.
40841         * tests/uninorm/test-u8-nfkc.c: New file.
40842         * tests/uninorm/test-u16-nfkc.c: New file.
40843         * tests/uninorm/test-u32-nfkc.c: New file.
40844         * tests/uninorm/test-u32-nfkc-big.sh: New file.
40845         * tests/uninorm/test-u32-nfkc-big.c: New file.
40846         * modules/uninorm/nfkc-tests: New file.
40847
40848         New module 'uninorm/nfkc'.
40849         * lib/uninorm/nfkc.c: New file.
40850         * modules/uninorm/nfkc: New file.
40851
40852         Tests for module 'uninorm/nfkd'.
40853         * tests/uninorm/test-nfkd.c: New file.
40854         * tests/uninorm/test-u8-nfkd.c: New file.
40855         * tests/uninorm/test-u16-nfkd.c: New file.
40856         * tests/uninorm/test-u32-nfkd.c: New file.
40857         * tests/uninorm/test-u32-nfkd-big.sh: New file.
40858         * tests/uninorm/test-u32-nfkd-big.c: New file.
40859         * modules/uninorm/nfkd-tests: New file.
40860
40861         New module 'uninorm/nfkd'.
40862         * lib/uninorm/nfkd.c: New file.
40863         * modules/uninorm/nfkd: New file.
40864
40865         Tests for module 'uninorm/nfc'.
40866         * tests/uninorm/test-nfc.c: New file.
40867         * tests/uninorm/test-u8-nfc.c: New file.
40868         * tests/uninorm/test-u16-nfc.c: New file.
40869         * tests/uninorm/test-u32-nfc.c: New file.
40870         * tests/uninorm/test-u32-nfc-big.sh: New file.
40871         * tests/uninorm/test-u32-nfc-big.c: New file.
40872         * modules/uninorm/nfc-tests: New file.
40873
40874         New module 'uninorm/nfc'.
40875         * lib/uninorm/nfc.c: New file.
40876         * modules/uninorm/nfc: New file.
40877
40878         Tests for module 'uninorm/nfd'.
40879         * tests/uninorm/test-nfd.c: New file.
40880         * tests/uninorm/test-u8-nfd.c: New file.
40881         * tests/uninorm/test-u16-nfd.c: New file.
40882         * tests/uninorm/test-u32-nfd.c: New file.
40883         * tests/uninorm/test-u32-nfd-big.sh: New file.
40884         * tests/uninorm/test-u32-nfd-big.c: New file.
40885         * tests/uninorm/test-u32-normalize-big.h: New file.
40886         * tests/uninorm/test-u32-normalize-big.c: New file.
40887         * tests/uninorm/NormalizationTest.txt: New file, created from
40888         Unicode 5.1.0 NormalizationTest.txt.
40889         * modules/uninorm/nfd-tests: New file.
40890
40891         New module 'uninorm/nfd'.
40892         * lib/uninorm/nfd.c: New file.
40893         * modules/uninorm/nfd: New file.
40894
40895         New module 'uninorm/u32-normalize'.
40896         * lib/uninorm/u32-normalize.c: New file.
40897         * modules/uninorm/u32-normalize: New file.
40898
40899         New module 'uninorm/u16-normalize'.
40900         * lib/uninorm/u16-normalize.c: New file.
40901         * modules/uninorm/u16-normalize: New file.
40902
40903         New module 'uninorm/u8-normalize'.
40904         * lib/uninorm/u8-normalize.c: New file.
40905         * lib/uninorm/normalize-internal.h: New file.
40906         * lib/uninorm/u-normalize-internal.h: New file.
40907         * modules/uninorm/u8-normalize: New file.
40908
40909         New module 'uninorm/decompose-internal'.
40910         * lib/uninorm/decompose-internal.c: New file.
40911         * modules/uninorm/decompose-internal: New file.
40912
40913         Tests for module 'uninorm/composition'.
40914         * tests/uninorm/test-composition.c: New file.
40915         * modules/uninorm/composition-tests: New file.
40916
40917         New module 'uninorm/composition'.
40918         * lib/uninorm/composition.c: New file.
40919         * lib/uninorm/composition-table.gperf: New file, generated by
40920         gen-uni-tables.
40921         * modules/uninorm/composition: New file.
40922
40923         Tests for module 'uninorm/compat-decomposition'.
40924         * tests/uninorm/test-compat-decomposition.c: New file.
40925         * modules/uninorm/compat-decomposition-tests: New file.
40926
40927         New module 'uninorm/compat-decomposition'.
40928         * lib/uninorm/decompose-internal.h: New file.
40929         * lib/uninorm/compat-decomposition.c: New file.
40930         * modules/uninorm/compat-decomposition: New file.
40931
40932         Tests for module 'uninorm/canonical-decomposition'.
40933         * tests/uninorm/test-canonical-decomposition.c: New file.
40934         * modules/uninorm/canonical-decomposition-tests: New file.
40935
40936         New module 'uninorm/canonical-decomposition'.
40937         * lib/uninorm/canonical-decomposition.c: New file.
40938         * modules/uninorm/canonical-decomposition: New file.
40939
40940         Tests for module 'uninorm/decomposition'.
40941         * tests/uninorm/test-decomposition.c: New file.
40942         * modules/uninorm/decomposition-tests: New file.
40943
40944         New module 'uninorm/decomposition'.
40945         * lib/uninorm/decomposition.c: New file.
40946         * modules/uninorm/decomposition: New file.
40947
40948         New module 'uninorm/decomposition-table'.
40949         * lib/uninorm/decomposition-table.h: New file.
40950         * lib/uninorm/decomposition-table.c: New file.
40951         * lib/uninorm/decomposition-table1.h: New file, generated by
40952         gen-uni-tables.
40953         * lib/uninorm/decomposition-table2.h: New file, generated by
40954         gen-uni-tables.
40955         * modules/uninorm/decomposition-table: New file.
40956
40957         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
40958         (UC_DECOMP_*): New enumeration items.
40959         (get_decomposition): New function.
40960         (struct decomp_table): New type.
40961         (output_decomposition, output_decomposition_tables): New functions.
40962         (unicode_composition_exclusions): New variable.
40963         (fill_composition_exclusions, debug_output_composition_tables): New
40964         functions.
40965         (main): Accept one more argument. Invoke fill_composition_exclusions.
40966         Output decomposition and composition tables.
40967
40968         New module 'uninorm/base'.
40969         * lib/uninorm.h: New file.
40970         * lib/unictype.h: Update comment.
40971         * modules/uninorm/base: New file.
40972
40973 2009-02-21  David Lutterkort  <lutter@redhat.com>
40974
40975         Tests for module 'safe-alloc'.
40976         * tests/test-safe-alloc.c: New file.
40977         * modules/safe-alloc-tests: New file.
40978
40979         New module 'safe-alloc'.
40980         * lib/safe-alloc.h: New file.
40981         * lib/safe-alloc.c: New file.
40982         * m4/safe-alloc.m4: New file.
40983         * modules/safe-alloc: New file.
40984         * doc/safe-alloc.texi: New file.
40985         * doc/gnulib.texi: Include it.
40986         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
40987         safe-alloc.
40988
40989 2009-02-18  Bruno Haible  <bruno@clisp.org>
40990
40991         Fix link error on non-glibc systems.
40992         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
40993         variable.
40994         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40995
40996 2009-02-18  Jim Meyering  <meyering@redhat.com>
40997
40998         fts: avoid used-uninitialized error due to recent change
40999         * lib/fts.c (fts_read): Guard uses of the new member,
41000         parent->fts_n_dirs_remaining, since it's not relevant for
41001         the parent of a directory specified on the command-line.
41002
41003 2009-02-17  James Youngman  <jay@gnu.org>
41004             Bruno Haible  <bruno@clisp.org>
41005
41006         * m4/include_next.m4: Reformulate comment.
41007
41008 2009-02-16  Jim Meyering  <meyering@redhat.com>
41009
41010         fts: add #if guards so that the fts_lgpl module still builds
41011         * lib/fts.c: Guard just-added hash-table-using parts with
41012         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
41013         Reported by Simon Josefsson.
41014
41015 2009-02-15  Bruno Haible  <bruno@clisp.org>
41016
41017         * modules/array-mergesort-tests: New file.
41018         * tests/test-array-mergesort.c: New file.
41019
41020         New module 'array-mergesort'.
41021         * modules/array-mergesort: New file.
41022         * lib/array-mergesort.h: New file.
41023
41024 2009-02-15  Bruno Haible  <bruno@clisp.org>
41025
41026         Fix 2009-02-07 commit.
41027         * lib/gen-uni-tables.c (output_predicate, output_category,
41028         output_combclass, output_bidi_category, output_decimal_digit,
41029         output_digit, output_numeric, output_mirror, output_scripts,
41030         output_ident_category, output_simple_mapping): Fix format directives.
41031         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
41032
41033 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
41034
41035         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
41036         fixes are available from IBM.
41037
41038 2009-02-13  Jim Meyering  <meyering@redhat.com>
41039
41040         fts: arrange not to stat non-directories in more cases
41041         This makes GNU find (when it doesn't need to stat each file)
41042         *much* more efficient at traversing reiserfs file systems.
41043         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
41044         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
41045         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
41046         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
41047         (leaf_optimization_applies): New function.
41048         (LCO_hash, LCO_compare): New helper functions.
41049         (link_count_optimize_ok): New function.
41050         (fts_stat): Initialize new member (if dir).
41051         (fts_read): Decrement parent's fts_n_dirs_remaining count if
41052         we've just stat'ed a directory.  Skip the stat call when possible.
41053         ---
41054         Note this AFS-related exchange:
41055         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
41056         and note find's pioctl call in find/fstype.c.
41057         But that is necessary only if you want to enable the
41058         optimization for AFS, and for now, I don't.
41059
41060         fts: move a function definition "up" (no semantic change)
41061         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
41062         "up" to precede upcoming use of a related function.
41063
41064 2009-02-11  Jim Meyering  <meyering@redhat.com>
41065
41066         fts: correct internal computation of nlinks (optimization-related)
41067         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
41068         whether the current entry is a directory, so don't test it.
41069
41070 2009-02-10  Bruno Haible  <bruno@clisp.org>
41071
41072         Tests for module 'uniwbrk/ulc-wordbreaks'.
41073         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
41074         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
41075         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
41076
41077         Tests for module 'uniwbrk/u32-wordbreaks'.
41078         * modules/uniwbrk/u32-wordbreaks-tests: New file.
41079         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
41080
41081         Tests for module 'uniwbrk/u16-wordbreaks'.
41082         * modules/uniwbrk/u16-wordbreaks-tests: New file.
41083         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
41084
41085         Tests for module 'uniwbrk/u8-wordbreaks'.
41086         * modules/uniwbrk/u8-wordbreaks-tests: New file.
41087         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
41088
41089 2009-02-10  Bruno Haible  <bruno@clisp.org>
41090
41091         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
41092         property.
41093         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
41094         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
41095         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
41096
41097 2009-02-10  Simon Josefsson  <simon@josefsson.org>
41098
41099         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
41100         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
41101
41102 2009-02-10  Bruno Haible  <bruno@clisp.org>
41103
41104         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
41105         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
41106         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
41107         * lib/unilbrk/u8-possible-linebreaks.c: Update.
41108         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
41109         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
41110
41111 2009-02-09  Simon Josefsson  <simon@josefsson.org>
41112
41113         * lib/sockets.h (gl_fd_to_handle): New function.
41114
41115         * tests/test-sockets.c: Call gl_fd_to_handle.
41116
41117 2009-02-09  Bruno Haible  <bruno@clisp.org>
41118
41119         * doc/havelib.texi: Document the conventions on bi-arch systems.
41120
41121 2009-02-08  Bruno Haible  <bruno@clisp.org>
41122
41123         Document the AC_LIB_LINKFLAGS macro.
41124         * doc/havelib.texi: New file, mostly written on 2005-05-24.
41125         * doc/gnulib.texi: Include it.
41126
41127 2009-02-08  Bruno Haible  <bruno@clisp.org>
41128
41129         Fix wrong order of sections, compared to TOC.
41130         * doc/gnulib.texi: Include relocatable-maint.texi after the
41131         "Regular expressions" node, not before.
41132
41133 2009-02-08  Bruno Haible  <bruno@clisp.org>
41134
41135         Tests for module 'unicase/totitle'.
41136         * modules/unicase/totitle-tests: New file.
41137
41138         Tests for module 'unicase/tolower'.
41139         * modules/unicase/tolower-tests: New file.
41140
41141         Tests for module 'unicase/toupper'.
41142         * modules/unicase/toupper-tests: New file.
41143         * tests/unicase/test-mapping-part1.h: New file.
41144         * tests/unicase/test-mapping-part2.h: New file.
41145
41146         New module 'unicase/totitle'.
41147         * modules/unicase/totitle: New file.
41148         * lib/unicase/totitle.c: New file.
41149
41150         New module 'unicase/tolower'.
41151         * modules/unicase/tolower: New file.
41152         * lib/unicase/tolower.c: New file.
41153
41154         New module 'unicase/toupper'.
41155         * modules/unicase/toupper: New file.
41156         * lib/unicase/toupper.c: New file.
41157         * lib/unicase/simple-mapping.h: New file.
41158
41159         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
41160         (mapping_table): New structure.
41161         (output_simple_mapping): New function.
41162         (main): Invoke output_simple_mapping_test and output_simple_mapping.
41163         * modules/gen-uni-tables (Description): Update.
41164         * lib/unicase/toupper.h: New file, automatically generated by
41165         gen-uni-tables.
41166         * lib/unicase/tolower.h: New file, automatically generated by
41167         gen-uni-tables.
41168         * lib/unicase/totitle.h: New file, automatically generated by
41169         gen-uni-tables.
41170         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
41171         gen-uni-tables.
41172         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
41173         gen-uni-tables.
41174         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
41175         gen-uni-tables.
41176
41177         New module 'unicase/base'.
41178         * modules/unicase/base: New file.
41179         * lib/unicase.h: New file.
41180
41181 2009-02-08  Bruno Haible  <bruno@clisp.org>
41182
41183         New module 'uniwbrk/ulc-wordbreaks'.
41184         * modules/uniwbrk/ulc-wordbreaks: New file.
41185         * lib/uniwbrk/ulc-wordbreaks.c: New file.
41186
41187         New module 'uniwbrk/u32-wordbreaks'.
41188         * modules/uniwbrk/u32-wordbreaks: New file.
41189         * lib/uniwbrk/u32-wordbreaks.c: New file.
41190
41191         New module 'uniwbrk/u16-wordbreaks'.
41192         * modules/uniwbrk/u16-wordbreaks: New file.
41193         * lib/uniwbrk/u16-wordbreaks.c: New file.
41194
41195         New module 'uniwbrk/u8-wordbreaks'.
41196         * modules/uniwbrk/u8-wordbreaks: New file.
41197         * lib/uniwbrk/u8-wordbreaks.c: New file.
41198         * lib/uniwbrk/u-wordbreaks.h: New file.
41199
41200         New module 'uniwbrk/table'.
41201         * modules/uniwbrk/table: New file.
41202         * lib/uniwbrk/wbrktable.h: New file.
41203         * lib/uniwbrk/wbrktable.c: New file.
41204
41205         New module 'uniwbrk/wordbreak-property'.
41206         * modules/uniwbrk/wordbreak-property: New file.
41207         * lib/uniwbrk/wordbreak-property.c: New file.
41208
41209         * lib/gen-uni-tables.c (WBP_*): New enum items.
41210         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
41211         (unicode_org_wbp): New variable.
41212         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
41213         New functions.
41214         (wbp_table): New structure.
41215         (output_wbp, output_wbrk_tables): New functions.
41216         (main): Accept additional argument. Invoke fill_org_wbp,
41217         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
41218         output_wbrk_tables.
41219         * modules/gen-uni-tables (Description): Update.
41220         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
41221         gen-uni-tables.
41222
41223         New module 'uniwbrk/base'.
41224         * modules/uniwbrk/base: New file.
41225         * lib/uniwbrk.h: New file.
41226
41227 2009-02-08  Bruno Haible  <bruno@clisp.org>
41228
41229         Update to Unicode 5.1.0.
41230         * lib/gen-uni-tables.c (is_property_alphabetic): Include
41231         U+2185..U+2188.
41232         (is_property_default_ignorable_code_point): Don't include characters
41233         of category Cc or Cs and not-a-characters.
41234         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
41235         U+0D79, U+109E, U+109F, U+A60C.
41236         * lib/unictype/bidi_of.h: Regenerated.
41237         * lib/unictype/blocks.h: Regenerated.
41238         * lib/unictype/categ_C.h: Regenerated.
41239         * lib/unictype/categ_Cf.h: Regenerated.
41240         * lib/unictype/categ_Cn.h: Regenerated.
41241         * lib/unictype/categ_L.h: Regenerated.
41242         * lib/unictype/categ_Ll.h: Regenerated.
41243         * lib/unictype/categ_Lm.h: Regenerated.
41244         * lib/unictype/categ_Lo.h: Regenerated.
41245         * lib/unictype/categ_Lu.h: Regenerated.
41246         * lib/unictype/categ_M.h: Regenerated.
41247         * lib/unictype/categ_Mc.h: Regenerated.
41248         * lib/unictype/categ_Me.h: Regenerated.
41249         * lib/unictype/categ_Mn.h: Regenerated.
41250         * lib/unictype/categ_N.h: Regenerated.
41251         * lib/unictype/categ_Nd.h: Regenerated.
41252         * lib/unictype/categ_Nl.h: Regenerated.
41253         * lib/unictype/categ_No.h: Regenerated.
41254         * lib/unictype/categ_P.h: Regenerated.
41255         * lib/unictype/categ_Pd.h: Regenerated.
41256         * lib/unictype/categ_Pe.h: Regenerated.
41257         * lib/unictype/categ_Pf.h: Regenerated.
41258         * lib/unictype/categ_Pi.h: Regenerated.
41259         * lib/unictype/categ_Po.h: Regenerated.
41260         * lib/unictype/categ_Ps.h: Regenerated.
41261         * lib/unictype/categ_S.h: Regenerated.
41262         * lib/unictype/categ_Sk.h: Regenerated.
41263         * lib/unictype/categ_Sm.h: Regenerated.
41264         * lib/unictype/categ_So.h: Regenerated.
41265         * lib/unictype/categ_of.h: Regenerated.
41266         * lib/unictype/combining.h: Regenerated.
41267         * lib/unictype/ctype_alnum.h: Regenerated.
41268         * lib/unictype/ctype_alpha.h: Regenerated.
41269         * lib/unictype/ctype_graph.h: Regenerated.
41270         * lib/unictype/ctype_lower.h: Regenerated.
41271         * lib/unictype/ctype_print.h: Regenerated.
41272         * lib/unictype/ctype_punct.h: Regenerated.
41273         * lib/unictype/ctype_upper.h: Regenerated.
41274         * lib/unictype/decdigit.h: Regenerated.
41275         * lib/unictype/digit.h: Regenerated.
41276         * lib/unictype/mirror.h: Regenerated.
41277         * lib/unictype/numeric.h: Regenerated.
41278         * lib/unictype/pr_alphabetic.h: Regenerated.
41279         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
41280         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
41281         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
41282         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
41283         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
41284         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
41285         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
41286         * lib/unictype/pr_combining.h: Regenerated.
41287         * lib/unictype/pr_dash.h: Regenerated.
41288         * lib/unictype/pr_decimal_digit.h: Regenerated.
41289         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
41290         * lib/unictype/pr_deprecated.h: Regenerated.
41291         * lib/unictype/pr_diacritic.h: Regenerated.
41292         * lib/unictype/pr_extender.h: Regenerated.
41293         * lib/unictype/pr_format_control.h: Regenerated.
41294         * lib/unictype/pr_grapheme_base.h: Regenerated.
41295         * lib/unictype/pr_grapheme_extend.h: Regenerated.
41296         * lib/unictype/pr_grapheme_link.h: Regenerated.
41297         * lib/unictype/pr_id_continue.h: Regenerated.
41298         * lib/unictype/pr_id_start.h: Regenerated.
41299         * lib/unictype/pr_ideographic.h: Regenerated.
41300         * lib/unictype/pr_ignorable_control.h: Regenerated.
41301         * lib/unictype/pr_lowercase.h: Regenerated.
41302         * lib/unictype/pr_math.h: Regenerated.
41303         * lib/unictype/pr_numeric.h: Regenerated.
41304         * lib/unictype/pr_other_alphabetic.h: Regenerated.
41305         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
41306         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
41307         * lib/unictype/pr_other_id_continue.h: Regenerated.
41308         * lib/unictype/pr_other_lowercase.h: Regenerated.
41309         * lib/unictype/pr_other_math.h: Regenerated.
41310         * lib/unictype/pr_punctuation.h: Regenerated.
41311         * lib/unictype/pr_sentence_terminal.h: Regenerated.
41312         * lib/unictype/pr_soft_dotted.h: Regenerated.
41313         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
41314         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
41315         * lib/unictype/pr_unified_ideograph.h: Regenerated.
41316         * lib/unictype/pr_uppercase.h: Regenerated.
41317         * lib/unictype/pr_xid_continue.h: Regenerated.
41318         * lib/unictype/pr_xid_start.h: Regenerated.
41319         * lib/unictype/pr_zero_width.h: Regenerated.
41320         * lib/unictype/scripts.h: Regenerated.
41321         * lib/unictype/scripts_byname.gperf: Regenerated.
41322         * lib/unictype/sy_java_ident.h: Regenerated.
41323         * lib/unilbrk/lbrkprop1.h: Regenerated.
41324         * lib/unilbrk/lbrkprop2.h: Regenerated.
41325         * tests/unictype/test-categ_C.c: Regenerated.
41326         * tests/unictype/test-categ_Cf.c: Regenerated.
41327         * tests/unictype/test-categ_Cn.c: Regenerated.
41328         * tests/unictype/test-categ_L.c: Regenerated.
41329         * tests/unictype/test-categ_Ll.c: Regenerated.
41330         * tests/unictype/test-categ_Lm.c: Regenerated.
41331         * tests/unictype/test-categ_Lo.c: Regenerated.
41332         * tests/unictype/test-categ_Lu.c: Regenerated.
41333         * tests/unictype/test-categ_M.c: Regenerated.
41334         * tests/unictype/test-categ_Mc.c: Regenerated.
41335         * tests/unictype/test-categ_Me.c: Regenerated.
41336         * tests/unictype/test-categ_Mn.c: Regenerated.
41337         * tests/unictype/test-categ_N.c: Regenerated.
41338         * tests/unictype/test-categ_Nd.c: Regenerated.
41339         * tests/unictype/test-categ_Nl.c: Regenerated.
41340         * tests/unictype/test-categ_No.c: Regenerated.
41341         * tests/unictype/test-categ_P.c: Regenerated.
41342         * tests/unictype/test-categ_Pd.c: Regenerated.
41343         * tests/unictype/test-categ_Pe.c: Regenerated.
41344         * tests/unictype/test-categ_Pf.c: Regenerated.
41345         * tests/unictype/test-categ_Pi.c: Regenerated.
41346         * tests/unictype/test-categ_Po.c: Regenerated.
41347         * tests/unictype/test-categ_Ps.c: Regenerated.
41348         * tests/unictype/test-categ_S.c: Regenerated.
41349         * tests/unictype/test-categ_Sk.c: Regenerated.
41350         * tests/unictype/test-categ_Sm.c: Regenerated.
41351         * tests/unictype/test-categ_So.c: Regenerated.
41352         * tests/unictype/test-ctype_alnum.c: Regenerated.
41353         * tests/unictype/test-ctype_alpha.c: Regenerated.
41354         * tests/unictype/test-ctype_graph.c: Regenerated.
41355         * tests/unictype/test-ctype_lower.c: Regenerated.
41356         * tests/unictype/test-ctype_print.c: Regenerated.
41357         * tests/unictype/test-ctype_punct.c: Regenerated.
41358         * tests/unictype/test-ctype_upper.c: Regenerated.
41359         * tests/unictype/test-decdigit.h: Regenerated.
41360         * tests/unictype/test-digit.h: Regenerated.
41361         * tests/unictype/test-numeric.h: Regenerated.
41362         * tests/unictype/test-pr_alphabetic.c: Regenerated.
41363         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
41364         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
41365         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
41366         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
41367         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
41368         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
41369         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
41370         * tests/unictype/test-pr_combining.c: Regenerated.
41371         * tests/unictype/test-pr_dash.c: Regenerated.
41372         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
41373         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
41374         * tests/unictype/test-pr_deprecated.c: Regenerated.
41375         * tests/unictype/test-pr_diacritic.c: Regenerated.
41376         * tests/unictype/test-pr_extender.c: Regenerated.
41377         * tests/unictype/test-pr_format_control.c: Regenerated.
41378         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
41379         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
41380         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
41381         * tests/unictype/test-pr_id_continue.c: Regenerated.
41382         * tests/unictype/test-pr_id_start.c: Regenerated.
41383         * tests/unictype/test-pr_ideographic.c: Regenerated.
41384         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
41385         * tests/unictype/test-pr_lowercase.c: Regenerated.
41386         * tests/unictype/test-pr_math.c: Regenerated.
41387         * tests/unictype/test-pr_numeric.c: Regenerated.
41388         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
41389         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
41390         Regenerated.
41391         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
41392         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
41393         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
41394         * tests/unictype/test-pr_other_math.c: Regenerated.
41395         * tests/unictype/test-pr_punctuation.c: Regenerated.
41396         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
41397         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
41398         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
41399         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
41400         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
41401         * tests/unictype/test-pr_uppercase.c: Regenerated.
41402         * tests/unictype/test-pr_xid_continue.c: Regenerated.
41403         * tests/unictype/test-pr_xid_start.c: Regenerated.
41404         * tests/unictype/test-pr_zero_width.c: Regenerated.
41405
41406         Update to Unicode 5.1.0.
41407         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
41408         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
41409         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
41410         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
41411         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
41412         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
41413         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
41414         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
41415         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
41416         (nonspacing_table_ind): Update.
41417         * tests/uniwidth/test-uc_width2.sh: Update expected result.
41418
41419         Update to Unicode 5.1.0.
41420         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
41421         code transform.
41422         * lib/uniname/uniname.c (unicode_character_name,
41423         unicode_name_character): Add the range 0x1Fxxx to the code transform.
41424         * lib/uniname/uninames.h: Regenerated.
41425         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
41426
41427 2009-02-07  Bruno Haible  <bruno@clisp.org>
41428
41429         Merge gen-ctype and gen-lbrk into a single program.
41430         * lib/gen-uni-tables.c: New file, incorporating
41431         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
41432         Add directory prefixes to the names of the generated files.
41433         * lib/unictype/gen-ctype.c: Remove file.
41434         * lib/unilbrk/gen-lbrk.c: Remove file.
41435         * modules/gen-uni-tables: New file.
41436         * modules/unictype/gen-ctype: Remove file.
41437         * modules/unilbrk/gen-lbrk: Remove file.
41438
41439 2009-02-07  Bruno Haible  <bruno@clisp.org>
41440
41441         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
41442
41443         New module 'unistr/u32-strcoll'.
41444         * modules/unistr/u32-strcoll: New file.
41445         * lib/unistr/u32-strcoll.c: New file.
41446
41447         New module 'unistr/u16-strcoll'.
41448         * modules/unistr/u16-strcoll: New file.
41449         * lib/unistr/u16-strcoll.c: New file.
41450
41451         New module 'unistr/u8-strcoll'.
41452         * modules/unistr/u8-strcoll: New file.
41453         * lib/unistr/u8-strcoll.c: New file.
41454         * lib/unistr/u-strcoll.h: New file.
41455
41456 2009-02-07  Bruno Haible  <bruno@clisp.org>
41457
41458         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
41459         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
41460         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
41461         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
41462         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
41463         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
41464
41465 2009-02-07  Bruno Haible  <bruno@clisp.org>
41466
41467         Make 64-bit clean.
41468         * lib/unictype/gen-ctype.c (output_predicate, output_category,
41469         output_combclass, output_bidi_category, output_decimal_digit,
41470         output_digit, output_numeric, output_mirror, output_scripts,
41471         output_ident_category): Use proper width specifier in format strings.
41472
41473 2009-02-07  Bruno Haible  <bruno@clisp.org>
41474
41475         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
41476         failure behaviour.
41477
41478 2009-02-07  Jim Meyering  <meyering@redhat.com>
41479
41480         regex: avoid compilation failure with upcoming gcc-4.4
41481         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
41482         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
41483         "... error: integer overflow in preprocessor expression".
41484
41485 2009-02-05  Ben Pfaff  <blp@gnu.org>
41486
41487         Fix link errors on Windows when close module is used.
41488         * modules/close: Add $(LIB_CLOSE) to Link section.
41489         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
41490         $(LIB_CLOSE) on Windows.
41491
41492 2009-02-05  Jim Meyering  <meyering@redhat.com>
41493
41494         still avoid unused-parameter warnings, but do it cleanly
41495         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
41496         (get_fs_usage): Cast to void instead.
41497         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
41498         (dev_from_mount_options, read_file_system_list): Cast to void.
41499         Prompted by Bruno Haible.
41500
41501 2009-02-04  Jim Meyering  <meyering@redhat.com>
41502
41503         fsusage.c: correct copyright year
41504         * lib/fsusage.c: Reflect year in which the change is pushed into
41505
41506         avoid misc. warnings
41507         * lib/fsusage.c (UNUSED_PARAM): Define.
41508         (get_fs_usage): Mark parameter "disk" as unused.
41509         * lib/getugroups.c (getgrent): Use "void" in prototype.
41510         * lib/mountlist.c: Mark unused parameters.
41511         (read_file_system_list): Declare a local with "const".
41512         * lib/nanosleep.c (getnow): Declare static.
41513         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
41514
41515         dirfd: set errno upon failure
41516         * lib/dirfd.c: Include <errno.h>.
41517         Set errno to ENOTSUP when returning -1.
41518         * modules/dirfd (Depends-on): Add errno.
41519         Suggested by John Kodis <kodis@comcast.net>.
41520
41521 2009-02-01  Bruno Haible  <bruno@clisp.org>
41522
41523         Don't assume sizeof (long) >= sizeof (void *).
41524         * lib/memcmp.c: Include stdint.h.
41525         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
41526         srcp2 to 'const byte *'.
41527         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
41528         types to uintptr_t.
41529         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
41530         * modules/memcmp (Depends-on): Add stdint.
41531         Reported by Ozkan Sezer <sezeroz@gmail.com>.
41532
41533 2009-01-30  Eric Blake  <ebb9@byu.net>
41534
41535         fix more require-before-expand issues
41536         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
41537         expand, AC_PROG_AWK.
41538         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
41539
41540 2009-01-28  Eric Blake  <ebb9@byu.net>
41541
41542         version-etc: use consistent URL formatting
41543         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
41544         Improve formatting.  Use fputs for string without %.
41545
41546 2009-01-28  Jim Meyering  <meyering@redhat.com>
41547
41548         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
41549         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
41550         "underquoted definition of NAME" from autoconf-2.59.
41551
41552 2009-01-28  Bruno Haible  <bruno@clisp.org>
41553
41554         * doc/gnulib.texi: Add "Obsolete modules" to index.
41555
41556 2009-01-28  Jim Meyering  <meyering@redhat.com>
41557
41558         useless-if-before-free: recognize more variants
41559         * build-aux/useless-if-before-free: Also recognize e.g.,
41560         if (NULL != p) free (p);
41561
41562 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
41563
41564         test-getaddrinfo: skip (don't fail) this test when there's no network
41565         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
41566         on the presumption that it means you lack network access.
41567
41568 2009-01-26  Jim Meyering  <meyering@redhat.com>
41569
41570         fflush: avoid warnings on modern systems
41571         * lib/fflush.c (rpl_fflush): Move declarations of locals,
41572         pos and result, into scopes where they're used.
41573
41574 2009-01-26  Eric Blake  <ebb9@byu.net>
41575
41576         Silence warning reintroduced by recent extensions patch.
41577         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
41578         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
41579         autoconf.
41580
41581         Backport improved autoconf semantics of AC_DEFUN_ONCE.
41582         * m4/00gnulib.m4: New file.
41583         * gnulib-tool (func_get_filelist): Always use it.
41584         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
41585         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
41586
41587 2009-01-25  Bruno Haible  <bruno@clisp.org>
41588
41589         Make test-quotearg work on MacOS X and AIX.
41590         * tests/test-quotearg.sh: New file.
41591         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
41592         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
41593         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
41594         include <libintl.h>.
41595         (fake_locale): Remove variable.
41596         (gettext, dgettext, dcgettext): Remove functions.
41597         (main): Instead of setting a fake locale, set a real locale. Call
41598         textdomain and bindtextdomain.
41599         * modules/quotearg-tests (Files): Add the new files.
41600         (Depends-on): Add gettext, setenv, unsetenv.
41601         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
41602         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
41603         Augment TESTS_ENVIRONMENT.
41604
41605 2009-01-25  Bruno Haible  <bruno@clisp.org>
41606
41607         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
41608         fr_FR.ISO8859-1 locale on MacOS X.
41609         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
41610         ja_JP.eucJP locale on MacOS X.
41611         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
41612         zh_CN.GB18030 locale on MacOS X.
41613
41614 2009-01-25  Bruno Haible  <bruno@clisp.org>
41615
41616         Avoid link errors on MacOS X 10.3.
41617         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
41618         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
41619
41620 2009-01-25  Bruno Haible  <bruno@clisp.org>
41621
41622         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
41623         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
41624         * modules/pipe (Files): Remove m4/posix_spawn.m4.
41625         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
41626         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
41627         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
41628         posix_spawnattr_init, posix_spawnattr_setsigmask,
41629         posix_spawnattr_setflags, posix_spawnattr_destroy.
41630
41631         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
41632         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
41633         * modules/execute (Files): Remove m4/posix_spawn.m4.
41634         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
41635         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
41636         posix_spawnattr_init, posix_spawnattr_setsigmask,
41637         posix_spawnattr_setflags, posix_spawnattr_destroy.
41638
41639 2009-01-25  Bruno Haible  <bruno@clisp.org>
41640
41641         * lib/glthread/threadlib.c: Include <stdlib.h>.
41642
41643 2009-01-25  Bruno Haible  <bruno@clisp.org>
41644
41645         * lib/glthread/threadlib.c (dummy): New declaration.
41646
41647 2009-01-25  Bruno Haible  <bruno@clisp.org>
41648
41649         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
41650         multibyte characters also for the GB18030 encoding. Don't crash when
41651         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
41652
41653 2009-01-25  Bruno Haible  <bruno@clisp.org>
41654
41655         Avoid redefining 'struct random_data' on OSF/1 5.1.
41656         * lib/stdlib.in.h: Include <random.h> if it exists.
41657         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
41658         HAVE_RANDOM_H. Include <random.h> when testing whether
41659         'struct random_data' exists.
41660         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
41661
41662 2009-01-25  Bruno Haible  <bruno@clisp.org>
41663
41664         Don't install charset.alias on MacOS X >= 10.3.
41665         * lib/localcharset.c (DARWIN7): New macro.
41666         (get_charset_aliases): Hardcode the result for Darwin7.
41667         * modules/localcharset (install-exec-local): Don't install
41668         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
41669
41670 2009-01-25  Bruno Haible  <bruno@clisp.org>
41671
41672         Don't install charset.alias on mingw and Cygwin.
41673         * modules/localcharset (install-exec-local): Don't install
41674         charset.alias on mingw and Cygwin, if the file does not yet exist.
41675         The result for these platforms is hardcoded in localcharset.c.
41676
41677 2009-01-25  Bruno Haible  <bruno@clisp.org>
41678
41679         Make it possible again to use AC_GNU_SOURCE together with gnulib.
41680         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
41681         before requiring AC_USE_SYSTEM_EXTENSIONS.
41682
41683 2009-01-25  Jim Meyering  <meyering@redhat.com>
41684
41685         c-strtod: avoid warnings
41686         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
41687         "assignment discards qualifiers from pointer target type" warnings.
41688
41689 2009-01-24  Bruno Haible  <bruno@clisp.org>
41690
41691         Add support for non-UTF-8 locales on MacOS X.
41692         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
41693         canonical encodings. For Darwin 7 and newer, don't map traditional
41694         encodings to UTF-8.
41695         Reported by Vincent Lefevre <vincent@vinc17.org>
41696         at <http://savannah.gnu.org/bugs/?25235>.
41697
41698 2009-01-24  Bruno Haible  <bruno@clisp.org>
41699
41700         * doc/gnulib.texi (Obsolete modules): New section.
41701         Reported by Mike Frysinger <vapier@gentoo.org>.
41702
41703 2009-01-24  Bruno Haible  <bruno@clisp.org>
41704
41705         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
41706         (%.dvi): New rule.
41707
41708 2009-01-24  Bruno Haible  <bruno@clisp.org>
41709
41710         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
41711         Reported by Eric Blake.
41712
41713 2009-01-24  Bruno Haible  <bruno@clisp.org>
41714
41715         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
41716         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
41717         Reported by Gary V. Vaughan <gary@gnu.org>.
41718
41719 2009-01-24  Bruno Haible  <bruno@clisp.org>
41720
41721         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
41722
41723 2009-01-23  Bruno Haible  <bruno@clisp.org>
41724
41725         Make c-strtod, c-strtold usable in libraries.
41726         * lib/c-strtod.c: Include string.h instead of xalloc.h.
41727         (C_STRTOD): Call strdup instead of xstrdup.
41728         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
41729         * modules/c-strtold (Depends-on): Likewise.
41730         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
41731         * NEWS: Mention the change.
41732         Reported by Michael Gold <mgold@ncf.ca>.
41733
41734 2009-01-23  Jim Meyering  <meyering@redhat.com>
41735
41736         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
41737         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
41738         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
41739
41740 2009-01-23  Simon Josefsson  <simon@josefsson.org>
41741
41742         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
41743         GNU CoreUtils.
41744         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
41745         * modules/version-etc (Description): Update.
41746
41747 2009-01-22  Bruno Haible  <bruno@clisp.org>
41748
41749         Cache the C locale object.
41750         * lib/c-strtod.c (c_locale_cache): New variable.
41751         (c_locale): New function.
41752         (C_STRTOD): Use it, and don't call freelocale.
41753         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
41754         Suggested by Paolo Bonzini.
41755
41756 2009-01-21  Bruno Haible  <bruno@clisp.org>
41757
41758         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
41759         conditions other than overflow.
41760
41761 2009-01-21  Bruno Haible  <bruno@clisp.org>
41762
41763         * lib/c-strtod.c: Include errno.h.
41764         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
41765         value from STRTOD_L and STRTOD.
41766
41767 2009-01-21  Bruno Haible  <bruno@clisp.org>
41768         and Jim Meyering  <meyering@redhat.com>
41769
41770         nanosleep: skip configure test (fail it) for apple universal builds
41771         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
41772         universal builds, assume that nanosleep does not work.
41773         * modules/nanosleep (Depends-on): Add multiarch.
41774
41775         mktime: skip configure test (fail it) for apple universal builds
41776         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
41777         universal builds, assume that mktime does not work.
41778         * modules/mktime (Depends-on): Add multiarch.
41779
41780 2009-01-21  Eric Blake  <ebb9@byu.net>
41781
41782         multiarch: avoid expand-before-require warning
41783         * modules/multiarch (configure.ac): Require, rather than expand,
41784         gl_MULTIARCH.
41785         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
41786         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
41787         enforce that all clients require it.  Partial reversion of
41788         2008-12-29 patch.
41789
41790         error: avoid expand-before-require warning
41791         * modules/errno (configure.ac): Require, rather than expand,
41792         gl_HEADER_ERRNO_H.
41793         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
41794         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
41795         enforce that all clients require it.
41796
41797         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
41798         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
41799         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
41800         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
41801
41802 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
41803
41804         Revert:
41805         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
41806
41807         regex: do not depend on obsolete modules.
41808         * modules/regex: Remove memcmp and memmove.
41809
41810 2009-01-20  Bruno Haible  <bruno@clisp.org>
41811
41812         Make the 'link' module link on Windows NT 4.
41813         * lib/link.c (_WIN32_WINNT): Don't define.
41814         (CreateHardLinkFuncType): New type.
41815         (CreateHardLinkFunc, initialized): New variables.
41816         (initialize): New function.
41817         (link): Invoke CreateHardLink indirectly through the function pointer.
41818
41819 2009-01-20  Bruno Haible  <bruno@clisp.org>
41820
41821         Fix compilation failure on mingw.
41822         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
41823
41824 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
41825
41826         * doc/c-strtod.texi: Mention a couple of restrictions.
41827
41828 2009-01-20  Jim Meyering  <meyering@redhat.com>
41829
41830         gettimeofday: move more declarations out of functions
41831         * lib/gettimeofday.c: Move extern declarations of tzset and
41832         gmtime out of containing functions.  Prompted by Bruno Haible.
41833
41834 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
41835
41836         regex: do not depend on obsolete modules.
41837         * modules/regex: Remove memcmp and memmove.
41838
41839 2009-01-19  Bruno Haible  <bruno@clisp.org>
41840
41841         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
41842         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
41843         gl_BIGENDIAN, not AC_C_BIGENDIAN.
41844         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
41845         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
41846
41847 2009-01-19  Bruno Haible  <bruno@clisp.org>
41848
41849         * tests/test-link.c: Include <errno.h>.
41850         (main): Exit with code 77 when a hard link cannot be created due to
41851         the file system.
41852         * tests/test-link.sh: Skip test when a hard link cannot be created due
41853         to the file system.
41854         Suggested by Eric Blake.
41855
41856 2009-01-19  Martin Lambers  <marlam@marlam.de>
41857
41858         * modules/link-tests: New file.
41859         * tests/test-link.sh: New file.
41860         * tests/test-link.c: New file.
41861
41862 2009-01-19  Eric Blake  <ebb9@byu.net>
41863
41864         doc: mention another function added in cygwin 1.7.0
41865         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
41866         Another new function in cygwin 1.7.
41867
41868 2009-01-19  Bruno Haible  <bruno@clisp.org>
41869
41870         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
41871         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
41872         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
41873         gl_BIGENDIAN, not AC_C_BIGENDIAN.
41874         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
41875         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
41876         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
41877         * m4/md4.m4 (gl_MD4): Likewise.
41878         * m4/md5.m4 (gl_MD5): Likewise.
41879         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
41880         * m4/sha1.m4 (gl_SHA1): Likewise.
41881         * m4/sha256.m4 (gl_SHA256): Likewise.
41882         * m4/sha512.m4 (gl_SHA512): Likewise.
41883
41884 2009-01-19  Bruno Haible  <bruno@clisp.org>
41885
41886         * modules/uniname/uniname-tests (Depends-on): Add progname.
41887         * tests/uniname/test-uninames.c: Include progname.h.
41888         (main): Call set_program_name.
41889
41890         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
41891         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
41892         (main): Call set_program_name.
41893
41894         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
41895         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
41896         (main): Call set_program_name.
41897
41898         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
41899         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
41900         (main): Call set_program_name.
41901
41902         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
41903         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
41904         (main): Call set_program_name.
41905
41906         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
41907         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
41908         (main): Call set_program_name.
41909
41910         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
41911         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
41912         (main): Call set_program_name.
41913
41914         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
41915         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
41916         (main): Call set_program_name.
41917
41918         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
41919         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
41920         (main): Call set_program_name.
41921
41922 2009-01-19  Eric Blake  <ebb9@byu.net>
41923
41924         test-unistd: test previous patch
41925         * tests/test-unistd.c: Test *_FILENO macros.
41926
41927         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
41928         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
41929         Guarantee a definition.
41930         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
41931         * modules/unistd-safer (Depends-on): Add dependency on unistd.
41932         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
41933         * lib/dup-safer.c (STDERR_FILENO): Likewise.
41934         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
41935         Likewise.
41936         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
41937         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
41938         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
41939         Likewise.
41940         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
41941         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
41942         (STDERR_FILENO): Likewise.
41943         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
41944         (STDERR_FILENO): Likewise.
41945         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
41946         (STDERR_FILENO): Likewise.
41947         Reported by Elbert Pol.
41948
41949 2009-01-19  Eric Blake  <ebb9@byu.net>
41950
41951         doc: mention more functions added in cygwin 1.7.0
41952         * doc/posix-functions/abort.texi (abort): Update wording related
41953         to cygwin.
41954         * doc/posix-functions/daylight.texi (daylight): Likewise.
41955         * doc/posix-functions/optarg.texi (optarg): Likewise.
41956         * doc/posix-functions/optarg.texi (opterr): Likewise.
41957         * doc/posix-functions/optarg.texi (optind): Likewise.
41958         * doc/posix-functions/optarg.texi (optopt): Likewise.
41959         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
41960         worked in 1.5.x, and was withdrawn in 1.7.
41961         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
41962         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
41963         cygwin versions.
41964         * doc/posix-functions/perror.texi (perror): Likewise.
41965         * doc/posix-functions/printf.texi (printf): Likewise.
41966         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
41967         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
41968         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
41969         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
41970         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
41971         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
41972         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
41973         Likewise.
41974         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
41975         Likewise.
41976         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
41977         this function.
41978         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
41979         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
41980         Likewise.
41981         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
41982         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
41983         * doc/posix-functions/confstr.texi (confstr): Likewise.
41984         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
41985         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
41986         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
41987         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
41988         * doc/posix-functions/fputws.texi (fputws): Likewise.
41989         * doc/posix-functions/fwide.texi (fwide): Likewise.
41990         * doc/posix-functions/getwc.texi (getwc): Likewise.
41991         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
41992         * doc/posix-functions/putwc.texi (putwc): Likewise.
41993         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
41994         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
41995         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
41996         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
41997         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
41998         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
41999         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
42000         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
42001         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
42002         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
42003         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
42004
42005 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
42006
42007         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
42008         * lib/ioctl.c: Include <sys/ioctl.h>.
42009
42010 2009-01-19  Simon Josefsson  <simon@josefsson.org>
42011
42012         * modules/getdate-tests (Depends-on): Add progname.
42013         * tests/test-getdate.c: Use progname module, to avoid link errors
42014         on non-glibc systems.
42015
42016 2009-01-18  Simon Josefsson  <simon@josefsson.org>
42017
42018         * modules/filenamecat-tests (Depends-on): Add progname.
42019         * modules/fstrcmp-tests (Depends-on): Likewise.
42020
42021         * tests/test-filenamecat.c: Use progname module, to avoid link
42022         errors on non-glibc systems.
42023         * tests/test-fstrcmp.c: Likewise.
42024
42025 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
42026
42027         gettimeofday: avoid warning: nested extern declaration of 'localtime'
42028         * lib/gettimeofday.c: Move extern declaration out of function.
42029
42030 2009-01-18  Bruno Haible  <bruno@clisp.org>
42031
42032         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
42033         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
42034         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
42035
42036 2009-01-18  Bruno Haible  <bruno@clisp.org>
42037
42038         * lib/strftime.c (MEMPCPY): Remove unused macro.
42039         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
42040
42041 2009-01-18  Martin Lambers  <marlam@marlam.de>
42042
42043         New module 'link'.
42044         * lib/unistd.in.h (link): New declaration.
42045         * lib/link.c: New file.
42046         * m4/link.m4: New file.
42047         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
42048         HAVE_LINK.
42049         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
42050         * modules/link: New file.
42051         * doc/posix-functions/link.texi: Mention the new module.
42052
42053 2009-01-18  Bruno Haible  <bruno@clisp.org>
42054
42055         * tests/test-avltree_list.c (main): Call set_program_name.
42056         * tests/test-avltree_oset.c (main): Likewise.
42057         * tests/test-obstack-printf.c: Include progname.h.
42058         (main): Call set_program_name.
42059         * tests/test-quotearg.c: Include progname.h.
42060         (main): Call set_program_name.
42061         * tests/test-xmemdup0.c: Include progname.h.
42062         (main): Call set_program_name.
42063
42064 2009-01-18  Bruno Haible  <bruno@clisp.org>
42065
42066         New module 'alphasort'.
42067         * lib/dirent.in.h (alphasort): New declaration.
42068         * lib/alphasort.c: New file, from glibc with modifications.
42069         * m4/alphasort.m4: New file.
42070         * modules/alphasort: New file.
42071         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
42072         HAVE_ALPHASORT.
42073         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
42074         HAVE_ALPHASORT.
42075         * doc/posix-functions/alphasort.texi: Mention the new module and the
42076         portability problems.
42077
42078 2009-01-18  Bruno Haible  <bruno@clisp.org>
42079
42080         New module 'scandir'.
42081         * lib/dirent.in.h (scandir): New declaration.
42082         * lib/scandir.c: New file, from glibc with modifications.
42083         * m4/scandir.m4: New file.
42084         * modules/scandir: New file.
42085         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
42086         HAVE_SCANDIR.
42087         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
42088         HAVE_SCANDIR.
42089         * doc/posix-functions/scandir.texi: Mention the new module and the
42090         portability problems.
42091
42092 2009-01-17  Bruno Haible  <bruno@clisp.org>
42093
42094         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
42095         Update documentation.
42096         (func_remove_suffix): Escape all dots in the suffix. Update
42097         documentation.
42098         (func_filter_filelist): Update documentation.
42099         Reported by Ralf Wildenhues.
42100
42101 2009-01-17  Bruno Haible  <bruno@clisp.org>
42102
42103         * modules/dprintf-posix-tests: New file.
42104         * tests/test-dprintf-posix.sh: New file.
42105         * tests/test-dprintf-posix.c: New file.
42106
42107         New modules 'dprintf', 'dprintf-posix'.
42108         * lib/stdio.in.h (dprintf): New declaration.
42109         * lib/dprintf.c: New file.
42110         * m4/dprintf.m4: New file.
42111         * m4/dprintf-posix.m4: New file.
42112         * modules/dprintf: New file.
42113         * modules/dprintf-posix: New file.
42114         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
42115         HAVE_DPRINTF, REPLACE_DPRINTF.
42116         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
42117         HAVE_DPRINTF, REPLACE_DPRINTF.
42118         * doc/posix-functions/dprintf.texi: Mention the new modules.
42119
42120 2009-01-17  Bruno Haible  <bruno@clisp.org>
42121
42122         * modules/vdprintf-posix-tests: New file.
42123         * tests/test-vdprintf-posix.sh: New file.
42124         * tests/test-vdprintf-posix.c: New file.
42125
42126         New modules 'vdprintf', 'vdprintf-posix'.
42127         * lib/stdio.in.h (vdprintf): New declaration.
42128         * lib/vdprintf.c: New file.
42129         * m4/vdprintf.m4: New file.
42130         * m4/vdprintf-posix.m4: New file.
42131         * modules/vdprintf: New file.
42132         * modules/vdprintf-posix: New file.
42133         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
42134         HAVE_VDPRINTF, REPLACE_VDPRINTF.
42135         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
42136         HAVE_VDPRINTF, REPLACE_VDPRINTF.
42137         * doc/posix-functions/vdprintf.texi: Mention the new modules.
42138
42139 2009-01-17  Bruno Haible  <bruno@clisp.org>
42140
42141         Fix replacement of fopen on mingw.
42142         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
42143         mingw.
42144
42145 2009-01-17  Bruno Haible  <bruno@clisp.org>
42146
42147         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
42148         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
42149
42150 2009-01-17  Bruno Haible  <bruno@clisp.org>
42151
42152         Avoid test-fflush2.sh failure on mingw.
42153         * tests/test-fflush2.c: Include binary-io.h.
42154         (main): Put standard input into binary mode.
42155         * modules/fflush-tests (Depends-on): Add binary-io.
42156
42157 2009-01-17  Bruno Haible  <bruno@clisp.org>
42158
42159         * lib/wchar.in.h: In another particular situation, include only the
42160         system's <wchar.h> file.
42161         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
42162         Reported by Albert Chin-A-Young <china@thewrittenword.com>
42163         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
42164
42165 2009-01-17  Bruno Haible  <bruno@clisp.org>
42166
42167         Support for stripping executables in --enable-relocatable.
42168         * build-aux/install-reloc: Expect one more argument, or an environment
42169         variable RELOC_STRIP_PROG. If set, strip the destination program and
42170         its wrapper.
42171         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
42172         RELOC_STRIP_PROG.
42173         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
42174         to set RELOCATABLE_STRIP.
42175         * NEWS: Mention the new Makefile requirement.
42176
42177 2009-01-17  Bruno Haible  <bruno@clisp.org>
42178
42179         * build-aux/install-reloc: Remove debugging information left over by
42180         C compiler on MacOS X.
42181
42182 2009-01-17  Bruno Haible  <bruno@clisp.org>
42183
42184         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
42185         * lib/progreloc.c (find_executable): Fix type of pointer passed to
42186         _NSGetExecutablePath.
42187
42188 2009-01-16  Jim Meyering  <meyering@redhat.com>
42189
42190         strerror: avoid warnings about discarding "const"
42191         * lib/strerror.c (rpl_strerror): Instead of returning a const
42192         string from each and every "case", use a variable, and add a single
42193         cast after the switch.
42194
42195 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
42196
42197         * lib/arpa_inet.in.h: Add extern "C" block for C++.
42198
42199 2009-01-16  Bruno Haible  <bruno@clisp.org>
42200
42201         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
42202         array initializer syntax that also works in C++ mode.
42203         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
42204
42205 2009-01-16  Jim Meyering  <meyering@redhat.com>
42206
42207         poll: suppress a warning
42208         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
42209         to ignore "...unsigned expression < 0 is always false" warnings.
42210
42211 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
42212
42213         poll: remove declarations of unused variables
42214         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
42215         sockbuf and optlen.
42216
42217 2009-01-15  Bruno Haible  <bruno@clisp.org>
42218
42219         Make fflush-after-ungetc POSIX compliant on BSD systems.
42220         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
42221         (clear_ungetc_buffer): Implement also for other systems.
42222         (rpl_fflush): On glibc systems, invoke
42223         clear_ungetc_buffer_preserving_position. Otherwise, invoke
42224         clear_ungetc_buffer after fetching the stream's position, not before.
42225
42226 2009-01-15  Bruno Haible  <bruno@clisp.org>
42227
42228         Make fflush-after-ungetc POSIX compliant on glibc systems.
42229         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
42230         after ungetc.
42231         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
42232         (rpl_fflush): On glibc systems, simply call the system's fflush
42233         function after clearing the ungetc buffer.
42234         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
42235         Instead, lseek only to the end of file, then use the system's fseeko
42236         for the rest. On glibc systems, reset the EOF indicator bit.
42237
42238 2009-01-15  Jim Meyering  <meyering@redhat.com>
42239
42240         openmp.m4: revert quote-adding change, for portability to older autoconf
42241         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
42242         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
42243         Simon Josefsson noticed the problem when using autoconf-2.61.
42244
42245 2009-01-15  Bruno Haible  <bruno@clisp.org>
42246
42247         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
42248         * tests/test-fflush2.c (ASSERT): Always fail.
42249         (main): Add two tests for fflush() after ungetc(), taking into account
42250         the Austin Group's clarification.
42251         Suggested by Eric Blake.
42252
42253 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
42254
42255         mktime.m4: remove K&R-style function prototypes
42256         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
42257         for the Sun C++ compiler.
42258
42259 2009-01-14  Bruno Haible  <bruno@clisp.org>
42260
42261         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
42262         while including <wchar.h>.
42263         * lib/wchar.in.h: In two particular situations on HP-UX, include only
42264         the system's <wchar.h> file.
42265         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
42266
42267 2009-01-14  Bruno Haible  <bruno@clisp.org>
42268
42269         * m4/csharp.m4: Don't mention gettext on the serial number line.
42270         * m4/csharpexec.m4: Likewise.
42271         * m4/eaccess.m4: Likewise.
42272         * m4/javaexec.m4: Likewise.
42273         * m4/sig_atomic_t.m4: Likewise.
42274         * m4/tmpdir.m4: Likewise.
42275         * m4/intldir.m4: Bump gettext version.
42276         * m4/lib-ld.m4: Likewise.
42277
42278 2009-01-14  Bruno Haible  <bruno@clisp.org>
42279
42280         * lib/progname.c (set_program_name): Add more comments.
42281         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
42282
42283 2009-01-14  Simon Josefsson  <simon@josefsson.org>
42284
42285         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
42286         were sys/stat.h does not define it.
42287
42288 2009-01-14  Jim Meyering  <meyering@redhat.com>
42289
42290         many *.m4 files: improve m4 quoting
42291         99% of this change was performed by running the following commands:
42292         git ls-files | grep '\.m4$' | xargs perl -pi \
42293           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
42294           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
42295           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
42296           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
42297         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
42298         The remainder were to add Copyright dates, increment serial numbers,
42299         undo some changes in comments, exclude m4/intl.m4, and add quotes
42300         around the "1" in ",1" where the unusual spacing prohibited the
42301         above regexps from doing the job.  For more details, see
42302         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
42303         * m4/acl.m4: Modified.
42304         * m4/afs.m4: Likewise.
42305         * m4/alloca.m4: Likewise.
42306         * m4/argp.m4: Likewise.
42307         * m4/argz.m4: Likewise.
42308         * m4/atexit.m4: Likewise.
42309         * m4/bison-i18n.m4: Likewise.
42310         * m4/bison.m4: Likewise.
42311         * m4/byteswap.m4: Likewise.
42312         * m4/c-stack.m4: Likewise.
42313         * m4/c-strtod.m4: Likewise.
42314         * m4/calloc.m4: Likewise.
42315         * m4/canonicalize-lgpl.m4: Likewise.
42316         * m4/chown.m4: Likewise.
42317         * m4/clock_time.m4: Likewise.
42318         * m4/codeset.m4: Likewise.
42319         * m4/copy-file.m4: Likewise.
42320         * m4/csharp.m4: Likewise.
42321         * m4/csharpcomp.m4: Likewise.
42322         * m4/csharpexec.m4: Likewise.
42323         * m4/d-ino.m4: Likewise.
42324         * m4/d-type.m4: Likewise.
42325         * m4/dirfd.m4: Likewise.
42326         * m4/double-slash-root.m4: Likewise.
42327         * m4/eaccess.m4: Likewise.
42328         * m4/eealloc.m4: Likewise.
42329         * m4/environ.m4: Likewise.
42330         * m4/errno_h.m4: Likewise.
42331         * m4/euidaccess.m4: Likewise.
42332         * m4/execute.m4: Likewise.
42333         * m4/fatal-signal.m4: Likewise.
42334         * m4/fchdir.m4: Likewise.
42335         * m4/fcntl_h.m4: Likewise.
42336         * m4/fileblocks.m4: Likewise.
42337         * m4/filenamecat.m4: Likewise.
42338         * m4/findprog.m4: Likewise.
42339         * m4/flexmember.m4: Likewise.
42340         * m4/fnmatch.m4: Likewise.
42341         * m4/fopen.m4: Likewise.
42342         * m4/fpending.m4: Likewise.
42343         * m4/fprintf-posix.m4: Likewise.
42344         * m4/free.m4: Likewise.
42345         * m4/frexp.m4: Likewise.
42346         * m4/frexpl.m4: Likewise.
42347         * m4/fsusage.m4: Likewise.
42348         * m4/ftruncate.m4: Likewise.
42349         * m4/gc-camellia.m4: Likewise.
42350         * m4/gc-random.m4: Likewise.
42351         * m4/gc.m4: Likewise.
42352         * m4/getaddrinfo.m4: Likewise.
42353         * m4/getcwd-abort-bug.m4: Likewise.
42354         * m4/getcwd-path-max.m4: Likewise.
42355         * m4/getdate.m4: Likewise.
42356         * m4/getdomainname.m4: Likewise.
42357         * m4/getgroups.m4: Likewise.
42358         * m4/gethostname.m4: Likewise.
42359         * m4/gethrxtime.m4: Likewise.
42360         * m4/getline.m4: Likewise.
42361         * m4/getloadavg.m4: Likewise.
42362         * m4/getndelim2.m4: Likewise.
42363         * m4/getpass.m4: Likewise.
42364         * m4/gettext.m4: Likewise.
42365         * m4/gettime.m4: Likewise.
42366         * m4/gettimeofday.m4: Likewise.
42367         * m4/gnulib-common.m4: Likewise.
42368         * m4/group-member.m4: Likewise.
42369         * m4/host-os.m4: Likewise.
42370         * m4/iconv.m4: Likewise.
42371         * m4/iconv_open.m4: Likewise.
42372         * m4/inet_ntop.m4: Likewise.
42373         * m4/inet_pton.m4: Likewise.
42374         * m4/inline.m4: Likewise.
42375         * m4/intldir.m4: Likewise.
42376         * m4/intlmacosx.m4: Likewise.
42377         * m4/intmax.m4: Likewise.
42378         * m4/intmax_t.m4: Likewise.
42379         * m4/inttypes.m4: Likewise.
42380         * m4/inttypes_h.m4: Likewise.
42381         * m4/inttypes-pri.m4: Likewise.
42382         * m4/isapipe.m4: Likewise.
42383         * m4/isnand.m4: Likewise.
42384         * m4/isnanf.m4: Likewise.
42385         * m4/isnanl.m4: Likewise.
42386         * m4/javacomp.m4: Likewise.
42387         * m4/javaexec.m4: Likewise.
42388         * m4/jm-winsz1.m4: Likewise.
42389         * m4/jm-winsz2.m4: Likewise.
42390         * m4/lchown.m4: Likewise.
42391         * m4/lcmessage.m4: Likewise.
42392         * m4/ldexpl.m4: Likewise.
42393         * m4/lib-ld.m4: Likewise.
42394         * m4/lib-link.m4: Likewise.
42395         * m4/libsigsegv.m4: Likewise.
42396         * m4/link-follow.m4: Likewise.
42397         * m4/localcharset.m4: Likewise.
42398         * m4/locale-fr.m4: Likewise.
42399         * m4/locale-ja.m4: Likewise.
42400         * m4/locale-tr.m4: Likewise.
42401         * m4/locale-zh.m4: Likewise.
42402         * m4/lock.m4: Likewise.
42403         * m4/longlong.m4: Likewise.
42404         * m4/ls-mntd-fs.m4: Likewise.
42405         * m4/lstat.m4: Likewise.
42406         * m4/malloc.m4: Likewise.
42407         * m4/mathl.m4: Likewise.
42408         * m4/mbrtowc.m4: Likewise.
42409         * m4/mbstate_t.m4: Likewise.
42410         * m4/mbswidth.m4: Likewise.
42411         * m4/memchr.m4: Likewise.
42412         * m4/memcmp.m4: Likewise.
42413         * m4/memcpy.m4: Likewise.
42414         * m4/memmem.m4: Likewise.
42415         * m4/memmove.m4: Likewise.
42416         * m4/mempcpy.m4: Likewise.
42417         * m4/memrchr.m4: Likewise.
42418         * m4/memset.m4: Likewise.
42419         * m4/minmax.m4: Likewise.
42420         * m4/mkdir-slash.m4: Likewise.
42421         * m4/mkdtemp.m4: Likewise.
42422         * m4/mktime.m4: Likewise.
42423         * m4/mmap-anon.m4: Likewise.
42424         * m4/mountlist.m4: Likewise.
42425         * m4/nanosleep.m4: Likewise.
42426         * m4/nls.m4: Likewise.
42427         * m4/nocrash.m4: Likewise.
42428         * m4/open.m4: Likewise.
42429         * m4/openat.m4: Likewise.
42430         * m4/openmp.m4: Likewise.
42431         * m4/pathmax.m4: Likewise.
42432         * m4/perl.m4: Likewise.
42433         * m4/physmem.m4: Likewise.
42434         * m4/pipe.m4: Likewise.
42435         * m4/po.m4: Likewise.
42436         * m4/poll.m4: Likewise.
42437         * m4/posixtm.m4: Likewise.
42438         * m4/posixver.m4: Likewise.
42439         * m4/printf-frexp.m4: Likewise.
42440         * m4/printf-frexpl.m4: Likewise.
42441         * m4/printf-posix.m4: Likewise.
42442         * m4/printf-posix-rpl.m4: Likewise.
42443         * m4/printf.m4: Likewise.
42444         * m4/progtest.m4: Likewise.
42445         * m4/putenv.m4: Likewise.
42446         * m4/readline.m4: Likewise.
42447         * m4/readlink.m4: Likewise.
42448         * m4/readutmp.m4: Likewise.
42449         * m4/realloc.m4: Likewise.
42450         * m4/regex.m4: Likewise.
42451         * m4/relocatable.m4: Likewise.
42452         * m4/relocatable-lib.m4: Likewise.
42453         * m4/rename-dest-slash.m4: Likewise.
42454         * m4/rename.m4: Likewise.
42455         * m4/rmdir-errno.m4: Likewise.
42456         * m4/rmdir.m4: Likewise.
42457         * m4/roundf.m4: Likewise.
42458         * m4/roundl.m4: Likewise.
42459         * m4/rpmatch.m4: Likewise.
42460         * m4/save-cwd.m4: Likewise.
42461         * m4/selinux-selinux-h.m4: Likewise.
42462         * m4/setenv.m4: Likewise.
42463         * m4/settime.m4: Likewise.
42464         * m4/sig2str.m4: Likewise.
42465         * m4/sig_atomic_t.m4: Likewise.
42466         * m4/signalblocking.m4: Likewise.
42467         * m4/signbit.m4: Likewise.
42468         * m4/sigpipe.m4: Likewise.
42469         * m4/sockets.m4: Likewise.
42470         * m4/sockpfaf.m4: Likewise.
42471         * m4/st_dm_mode.m4: Likewise.
42472         * m4/stat-time.m4: Likewise.
42473         * m4/stdbool.m4: Likewise.
42474         * m4/stdint.m4: Likewise.
42475         * m4/stdint_h.m4: Likewise.
42476         * m4/stpcpy.m4: Likewise.
42477         * m4/stpncpy.m4: Likewise.
42478         * m4/strcase.m4: Likewise.
42479         * m4/strchrnul.m4: Likewise.
42480         * m4/strcspn.m4: Likewise.
42481         * m4/strdup.m4: Likewise.
42482         * m4/strftime.m4: Likewise.
42483         * m4/strndup.m4: Likewise.
42484         * m4/strnlen.m4: Likewise.
42485         * m4/strpbrk.m4: Likewise.
42486         * m4/strptime.m4: Likewise.
42487         * m4/strsep.m4: Likewise.
42488         * m4/strtod.m4: Likewise.
42489         * m4/strtoimax.m4: Likewise.
42490         * m4/strtok_r.m4: Likewise.
42491         * m4/strtol.m4: Likewise.
42492         * m4/strtoll.m4: Likewise.
42493         * m4/strtoul.m4: Likewise.
42494         * m4/strtoull.m4: Likewise.
42495         * m4/strtoumax.m4: Likewise.
42496         * m4/strverscmp.m4: Likewise.
42497         * m4/threadlib.m4: Likewise.
42498         * m4/timegm.m4: Likewise.
42499         * m4/tm_gmtoff.m4: Likewise.
42500         * m4/tmpdir.m4: Likewise.
42501         * m4/tmpfile.m4: Likewise.
42502         * m4/tzset.m4: Likewise.
42503         * m4/uintmax_t.m4: Likewise.
42504         * m4/unlinkdir.m4: Likewise.
42505         * m4/unlocked-io.m4: Likewise.
42506         * m4/uptime.m4: Likewise.
42507         * m4/userspec.m4: Likewise.
42508         * m4/utimbuf.m4: Likewise.
42509         * m4/utime.m4: Likewise.
42510         * m4/utimes-null.m4: Likewise.
42511         * m4/utimes.m4: Likewise.
42512         * m4/vararrays.m4: Likewise.
42513         * m4/vasnprintf.m4: Likewise.
42514         * m4/vfprintf-posix.m4: Likewise.
42515         * m4/vprintf-posix.m4: Likewise.
42516         * m4/wait-process.m4: Likewise.
42517         * m4/wchar_t.m4: Likewise.
42518         * m4/wint_t.m4: Likewise.
42519         * m4/write-any-file.m4: Likewise.
42520         * m4/yield.m4: Likewise.
42521
42522 2009-01-13  Bruno Haible  <bruno@clisp.org>
42523
42524         Avoid test-copy-file.sh failures when ACL support insufficient.
42525         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
42526         TESTS_ENVIRONMENT.
42527         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
42528         Reported by Jim Meyering.
42529
42530 2009-01-13  Bruno Haible  <bruno@clisp.org>
42531
42532         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
42533         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
42534         * modules/unistdio/u8-printf-parse (Files): Likewise.
42535         * modules/unistdio/u32-printf-parse (Files): Likewise.
42536         * modules/unistdio/ulc-printf-parse (Files): Likewise.
42537
42538 2009-01-13  Simon Josefsson  <simon@josefsson.org>
42539
42540         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
42541         and m4/inttypes_h.m4 too.
42542
42543 2009-01-12  Eric Blake  <ebb9@byu.net>
42544
42545         tests: IRIX 6.2 cc can't compile -0.0 into .data
42546         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
42547         rather than at compile-time.
42548         * tests/test-floorl.c (minus_zero): Likewise.
42549         * tests/test-frexpl.c (minus_zero): Likewise.
42550         * tests/test-isnan.c (minus_zerol): Likewise.
42551         * tests/test-isnanl.h (minus_zero): Likewise.
42552         * tests/test-ldexpl.c (minus_zero): Likewise.
42553         * tests/test-roundl.c (minus_zero): Likewise.
42554         * tests/test-signbit.c (minus_zerol): Likewise.
42555         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
42556         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
42557         * tests/test-truncl.c (minus_zero): Likewise.
42558         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
42559         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
42560         Reported by Tom G. Christensen and Nelson H. F. Beebe.
42561
42562 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
42563
42564         regex: fix glibc bug 9697
42565         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
42566         handling.
42567
42568 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
42569
42570         regex: fix glibc bug 697
42571         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
42572         being NULL also if there are no backreferences.
42573
42574 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
42575
42576         regex: merge glibc changes
42577         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
42578         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
42579         re_string_skip_chars, re_string_reconstruct): Likewise.
42580         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
42581
42582 2009-01-07  Jim Meyering  <meyering@redhat.com>
42583
42584         poll: filter through cppi
42585         * lib/poll.c: Indent cpp directives to reflect nesting.
42586
42587 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
42588
42589         poll: don't return uninitialized
42590         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
42591
42592 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
42593
42594         avoid compile failure on AIX 6.1
42595         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
42596         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
42597
42598 2009-01-04  Jim Meyering  <meyering@redhat.com>
42599
42600         remove duplicate inclusion of <stdio.h>
42601         * tests/test-fprintf-posix.c: Likewise.
42602         * tests/test-printf-posix.c: Likewise.
42603         * tests/test-snprintf-posix.c: Likewise.
42604         * tests/test-sprintf-posix.c: Likewise.
42605         * tests/test-vasprintf-posix.c: Likewise.
42606         * tests/test-vfprintf-posix.c: Likewise.
42607         * tests/test-vprintf-posix.c: Likewise.
42608         * tests/test-vsnprintf-posix.c: Likewise.
42609         * tests/test-vsprintf-posix.c: Likewise.
42610
42611 2009-01-03  Jim Meyering  <meyering@redhat.com>
42612
42613         gnulib-tool: fix sed-based filtering
42614         * gnulib-tool (func_filter_filelist): Remove extra backslash
42615         in sed_fff_filter definition.
42616
42617 2009-01-02  Jim Meyering  <meyering@redhat.com>
42618
42619         strftime: avoid compilation failure on Solaris 2.6
42620         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
42621         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
42622         Don't #define mbrlen or mbsinit, since now they're guaranteed to
42623         be available.  Reported by Tom G. Christensen.  Details in
42624         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
42625
42626 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42627             Bruno Haible  <bruno@clisp.org>
42628
42629         Speed up gnulib-tool by doing more string processing through shell
42630         built-ins.
42631         * gnulib-tool (fast_func_append): New variable.
42632         (func_remove_prefix, func_remove_suffix): New functions.
42633         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
42634         (func_filter_filelist): New function.
42635         (func_get_dependencies): Use func_remove_suffix instead of sed.
42636         (func_get_automake_snippet): Use func_filter_filelist instead of a
42637         subshell and sed invocation.
42638
42639 2009-01-01  Bruno Haible  <bruno@clisp.org>
42640
42641         Fix a security bug.
42642         * gnulib-tool (func_import, import, update): Don't allow the characters
42643         '"', '$', '`', '\' in macro arguments that become part of commands that
42644         are evaluated.
42645
42646 2009-01-01  Bruno Haible  <bruno@clisp.org>
42647
42648         * gnulib-tool (func_reset_sigpipe): Add more comments.
42649
42650 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42651
42652         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
42653         func_emit_tests_Makefile_am, func_import): Abort loops early if we
42654         already know the answer.
42655
42656 2009-01-01  Jim Meyering  <meyering@redhat.com>
42657
42658         * lib/version-etc.c (version_etc_va): Update copyright year.
42659
42660 2008-12-30  Bruno Haible  <bruno@clisp.org>
42661
42662         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
42663         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
42664         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
42665
42666 2008-12-29  Eric Blake  <ebb9@byu.net>
42667
42668         multiarch: avoid autoconf AC_REQUIRE bug
42669         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
42670         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
42671         2.63 and older.
42672         Reported by Bruno Haible, and analyzed in
42673         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
42674
42675 2008-12-29  Bruno Haible  <bruno@clisp.org>
42676
42677         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
42678         files in subdirectories correctly.
42679         Reported by Ralf Wildenhues.
42680
42681 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42682
42683         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
42684         rather than 'join FILE -', for Solaris join.
42685
42686 2008-12-29  Bruno Haible  <bruno@clisp.org>
42687
42688         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
42689         quoting.
42690         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
42691         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
42692         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
42693         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
42694         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
42695         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
42696         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
42697         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
42698         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
42699         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
42700         * m4/nls.m4 (AM_NLS): Likewise.
42701         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
42702         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
42703         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
42704         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
42705         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
42706         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
42707         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
42708         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
42709         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
42710         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
42711         * m4/xsize.m4 (gl_XSIZE): Likewise.
42712         Suggested by Jim Meyering.
42713
42714 2008-11-17  Bruce Korb  <bkorb@gnu.org>
42715
42716         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
42717         * lib/parse-duration.c: use a switch instead of cascading if's.
42718
42719 2008-12-29  Eric Blake  <ebb9@byu.net>
42720
42721         wchar.h: supply WEOF on Irix 5.3
42722         * lib/wchar.in.h (wint_t): Also supply WEOF.
42723         * lib/wctype.in.h (wint_t): Likewise.
42724         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
42725         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
42726         Reported by Tom G. Christensen.
42727
42728 2008-12-26  Bruno Haible  <bruno@clisp.org>
42729
42730         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
42731         i486, i586, i686.
42732
42733 2008-12-26  Bruno Haible  <bruno@clisp.org>
42734
42735         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
42736
42737 2008-12-26  Bruno Haible  <bruno@clisp.org>
42738
42739         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
42740         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
42741         not __STDC_CONSTANT_MACROS.
42742         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
42743
42744 2008-12-25  Bruno Haible  <bruno@clisp.org>
42745
42746         Add support for universal builds to vasnprintf.
42747         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
42748         universal builds, guess no.
42749         * modules/vasnprintf-posix (Depends-on): Add multiarch.
42750         * modules/vasprintf-posix (Depends-on): Likewise.
42751         * modules/fprintf-posix (Depends-on): Likewise.
42752         * modules/vfprintf-posix (Depends-on): Likewise.
42753         * modules/snprintf-posix (Depends-on): Likewise.
42754         * modules/vsnprintf-posix (Depends-on): Likewise.
42755         * modules/sprintf-posix (Depends-on): Likewise.
42756         * modules/vsprintf-posix (Depends-on): Likewise.
42757         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
42758         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
42759         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
42760         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
42761         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
42762         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
42763         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
42764
42765         Add support for universal builds to <inttypes.h>.
42766         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
42767         _SCNu64_PREFIX): In Apple
42768         universal builds, define directly, using _LP64.
42769         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
42770         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
42771         * modules/inttypes (Depends-on): Add multiarch.
42772         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
42773
42774         Add support for universal builds to <stdint.h>.
42775         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
42776         universal builds, define directly, using _LP64.
42777         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
42778         Apple universal builds, don't test for the size and suffix of ptrdiff_t
42779         and size_t.
42780         * modules/stdint (Depends-on): Add multiarch.
42781         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
42782
42783         New module 'multiarch'.
42784         * modules/multiarch: New file.
42785         * m4/multiarch.m4: New file.
42786
42787 2008-12-25  Bruno Haible  <bruno@clisp.org>
42788
42789         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
42790
42791 2008-12-25  Bruno Haible  <bruno@clisp.org>
42792
42793         * modules/btowc (License): Relicense under LGPLv2+.
42794         * modules/mbsinit (License): Likewise.
42795         * modules/mbrtowc (License): Likewise.
42796         * modules/wcrtomb (License): Likewise.
42797         * modules/streq (License): Likewise.
42798         Reported by David Lutterkort <lutter@redhat.com>.
42799
42800 2008-12-23  Bruno Haible  <bruno@clisp.org>
42801
42802         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
42803
42804 2008-12-23  Bruno Haible  <bruno@clisp.org>
42805
42806         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
42807         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
42808         GETADDRINFO_LIB, not in LIBS.
42809         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
42810         * modules/canon-host (Link): Likewise.
42811         * NEWS: Mention the change.
42812         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
42813         GETADDRINFO_LIB.
42814
42815 2008-12-22  Bruno Haible  <bruno@clisp.org>
42816
42817         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
42818         * doc/posix-functions/iswalpha_l.texi: Likewise.
42819         * doc/posix-functions/iswblank_l.texi: Likewise.
42820         * doc/posix-functions/iswcntrl_l.texi: Likewise.
42821         * doc/posix-functions/iswctype_l.texi: Likewise.
42822         * doc/posix-functions/iswdigit_l.texi: Likewise.
42823         * doc/posix-functions/iswgraph_l.texi: Likewise.
42824         * doc/posix-functions/iswlower_l.texi: Likewise.
42825         * doc/posix-functions/iswprint_l.texi: Likewise.
42826         * doc/posix-functions/iswpunct_l.texi: Likewise.
42827         * doc/posix-functions/iswspace_l.texi: Likewise.
42828         * doc/posix-functions/iswupper_l.texi: Likewise.
42829         * doc/posix-functions/iswxdigit_l.texi: Likewise.
42830         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
42831         * doc/posix-functions/open_wmemstream.texi: Likewise.
42832         * doc/posix-functions/swscanf.texi: Likewise.
42833         * doc/posix-functions/towctrans_l.texi: Likewise.
42834         * doc/posix-functions/towlower.texi: Likewise.
42835         * doc/posix-functions/towlower_l.texi: Likewise.
42836         * doc/posix-functions/towupper.texi: Likewise.
42837         * doc/posix-functions/towupper_l.texi: Likewise.
42838         * doc/posix-functions/vfwprintf.texi: Likewise.
42839         * doc/posix-functions/vfwscanf.texi: Likewise.
42840         * doc/posix-functions/vswscanf.texi: Likewise.
42841         * doc/posix-functions/vwprintf.texi: Likewise.
42842         * doc/posix-functions/vwscanf.texi: Likewise.
42843         * doc/posix-functions/wcpcpy.texi: Likewise.
42844         * doc/posix-functions/wcpncpy.texi: Likewise.
42845         * doc/posix-functions/wcscasecmp.texi: Likewise.
42846         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
42847         * doc/posix-functions/wcscoll_l.texi: Likewise.
42848         * doc/posix-functions/wcsdup.texi: Likewise.
42849         * doc/posix-functions/wcsncasecmp.texi: Likewise.
42850         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
42851         * doc/posix-functions/wcsnlen.texi: Likewise.
42852         * doc/posix-functions/wcsnrtombs.texi: Likewise.
42853         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
42854         * doc/posix-functions/wctrans_l.texi: Likewise.
42855         * doc/posix-functions/wctype_l.texi: Likewise.
42856         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
42857         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
42858         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
42859         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
42860         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
42861         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
42862         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
42863         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
42864         * doc/glibc-functions/wcschrnul.texi: Likewise.
42865         * doc/glibc-functions/wcsftime_l.texi: Likewise.
42866         * doc/glibc-functions/wcstod_l.texi: Likewise.
42867         * doc/glibc-functions/wcstof_l.texi: Likewise.
42868         * doc/glibc-functions/wcstol_l.texi: Likewise.
42869         * doc/glibc-functions/wcstold_l.texi: Likewise.
42870         * doc/glibc-functions/wcstoll_l.texi: Likewise.
42871         * doc/glibc-functions/wcstoq.texi: Likewise.
42872         * doc/glibc-functions/wcstoul_l.texi: Likewise.
42873         * doc/glibc-functions/wcstoull_l.texi: Likewise.
42874         * doc/glibc-functions/wcstouq.texi: Likewise.
42875         * doc/glibc-functions/wmempcpy.texi: Likewise.
42876
42877 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
42878             Eric Blake  <ebb9@byu.net>
42879             Paolo Bonzini  <bonzini@gnu.org>
42880             Bruno Haible  <bruno@clisp.org>
42881
42882         Make c-stack work on Haiku.
42883         * lib/c-stack.c (SA_ONSTACK): Define fallback.
42884         (c_stack_action): Use SA_ONSTACK flag.
42885
42886 2008-12-22  Bruno Haible  <bruno@clisp.org>
42887
42888         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
42889
42890 2008-12-22  Bruno Haible  <bruno@clisp.org>
42891
42892         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
42893         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
42894         being overridden.
42895         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
42896         New macros.
42897         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
42898         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
42899         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
42900         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
42901
42902 2008-12-22  Bruno Haible  <bruno@clisp.org>
42903
42904         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
42905         from test code.
42906
42907 2008-12-22  Eric Blake  <ebb9@byu.net>
42908
42909         Avoid gcc warnings on cygwin.
42910         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
42911         Avoid unused variable.
42912         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
42913         Likewise.
42914
42915 2008-12-22  Bruno Haible  <bruno@clisp.org>
42916
42917         Remove HAVE_MBRTOWC conditionals.
42918         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
42919         (mbscasecmp): Assume mbrtowc function.
42920         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
42921         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
42922         * lib/mbschr.c: Include mbuiter.h unconditionally.
42923         (mbschr): Assume mbrtowc function.
42924         * lib/mbscspn.c: Include mbuiter.h unconditionally.
42925         (mbscspn): Assume mbrtowc function.
42926         * lib/mbslen.c: Include mbuiter.h unconditionally.
42927         (mbslen): Assume mbrtowc function.
42928         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
42929         (mbsncasecmp): Assume mbrtowc function.
42930         * lib/mbsnlen.c: Include mbiter.h unconditionally.
42931         (mbsnlen): Assume mbrtowc function.
42932         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
42933         (mbspbrk): Assume mbrtowc function.
42934         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
42935         (mbspcasecmp): Assume mbrtowc function.
42936         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
42937         (mbsrchr): Assume mbrtowc function.
42938         * lib/mbssep.c: Include mbuiter.h unconditionally.
42939         (mbssep): Assume mbrtowc function.
42940         * lib/mbsspn.c: Include mbuiter.h unconditionally.
42941         (mbsspn): Assume mbrtowc function.
42942         * lib/mbsstr.c: Include mbuiter.h unconditionally.
42943         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
42944         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
42945         (mbstok_r): Assume mbrtowc function.
42946         * lib/propername.c: Include mbuiter.h unconditionally.
42947         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
42948         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
42949         (trim2): Assume mbrtowc function.
42950         * lib/mbswidth.c (mbsinit): Remove fallback definition.
42951         (mbsnwidth): Assume mbrtowc function.
42952         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
42953         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
42954         fallback definitions.
42955         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
42956
42957 2008-12-22  Bruno Haible  <bruno@clisp.org>
42958
42959         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
42960
42961 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
42962
42963         * modules/regex: Request emulations for the mb*/wc* functions we need.
42964         * m4/regex.m4: Don't look for those functions here.
42965         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
42966
42967 2008-12-22  Bruno Haible  <bruno@clisp.org>
42968
42969         * modules/fnmatch (Depends-on): Remove duplicated dependency.
42970
42971 2008-12-21  Bruno Haible  <bruno@clisp.org>
42972
42973         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
42974         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
42975         (Include): Remove conditionalization.
42976         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
42977         (Include): Remove conditionalization.
42978         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
42979         (Include): Remove conditionalization.
42980         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
42981         * m4/mbfile.m4 (gl_MBFILE): Likewise.
42982         * NEWS: Mention the change.
42983         Reported by Alan Hourihane <alanh@fairlite.co.uk>
42984         via Sergey Poznyakoff <gray@gnu.org.ua>.
42985
42986 2008-12-21  Bruno Haible  <bruno@clisp.org>
42987
42988         * MODULES.html.sh (Extended multibyte and wide character utilities
42989         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
42990         wcrtomb, wcsrtombs.
42991         (Support for systems lacking POSIX:2008): Add accept, bind, close,
42992         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
42993         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
42994         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
42995
42996 2008-12-21  Bruno Haible  <bruno@clisp.org>
42997
42998         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
42999
43000 2008-12-21  Bruno Haible  <bruno@clisp.org>
43001
43002         * modules/wcsnrtombs-tests: New file.
43003         * tests/test-wcsnrtombs1.sh: New file.
43004         * tests/test-wcsnrtombs2.sh: New file.
43005         * tests/test-wcsnrtombs3.sh: New file.
43006         * tests/test-wcsnrtombs4.sh: New file.
43007         * tests/test-wcsnrtombs.c: New file.
43008
43009         New module 'wcsnrtombs'.
43010         * lib/wchar.in.h (wcsnrtombs): New declaration.
43011         * lib/wcsnrtombs.c: New file.
43012         * lib/wcsrtombs-state.c: New file.
43013         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
43014         (internal_state): Remove variable.
43015         * m4/wcsnrtombs.m4: New file.
43016         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
43017         compilation units.
43018         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
43019         HAVE_WCSNRTOMBS.
43020         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
43021         HAVE_WCSNRTOMBS.
43022         * modules/wcsnrtombs: New file.
43023         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
43024         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
43025
43026 2008-12-21  Bruno Haible  <bruno@clisp.org>
43027
43028         * modules/wcsrtombs-tests: New file.
43029         * tests/test-wcsrtombs1.sh: New file.
43030         * tests/test-wcsrtombs2.sh: New file.
43031         * tests/test-wcsrtombs3.sh: New file.
43032         * tests/test-wcsrtombs4.sh: New file.
43033         * tests/test-wcsrtombs.c: New file.
43034
43035         New module 'wcsrtombs'.
43036         * lib/wchar.in.h (wcsrtombs): New declaration.
43037         * lib/wcsrtombs.c: New file.
43038         * m4/wcsrtombs.m4: New file.
43039         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
43040         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
43041         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
43042         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
43043         * modules/wcsrtombs: New file.
43044         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
43045         bugs.
43046
43047 2008-12-21  Bruno Haible  <bruno@clisp.org>
43048
43049         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
43050         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
43051         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
43052         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
43053         if not correct.
43054         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
43055         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
43056         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
43057         m4/locale-zh.m4, m4/codeset.m4.
43058         * doc/posix-functions/wcrtomb.texi: Document the bug.
43059
43060 2008-12-21  Bruno Haible  <bruno@clisp.org>
43061
43062         Work around a btowc() bug on IRIX 6.5.
43063         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
43064         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
43065         REPLACE_WTOBC if not.
43066         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
43067         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
43068         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
43069
43070 2008-12-21  Bruno Haible  <bruno@clisp.org>
43071
43072         * modules/wcrtomb-tests: New file.
43073         * tests/test-wcrtomb.sh: New file.
43074         * tests/test-wcrtomb.c: New file.
43075
43076         New module 'wcrtomb'.
43077         * lib/wchar.in.h (wcrtomb): New declaration.
43078         * lib/wcrtomb.c: New file.
43079         * m4/wcrtomb.m4: New file.
43080         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
43081         HAVE_WCRTOMB.
43082         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
43083         HAVE_WCRTOMB.
43084         * modules/wcrtomb: New file.
43085         * doc/posix-functions/wcrtomb.texi: Mention the new module.
43086
43087 2008-12-21  Bruno Haible  <bruno@clisp.org>
43088
43089         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
43090         * modules/mbsrtowcs (Files): Likewise.
43091         * modules/wctob (Files): Likewise.
43092         * modules/c-strcase-tests (Files): Likewise.
43093         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
43094         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
43095         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
43096         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
43097         * modules/vasnprintf-posix-tests (Files): Likewise.
43098
43099 2008-12-21  William Pursell  <bill.pursell@gmail.com>
43100
43101         gitlog-to-changelog: pass all command-line arguments to git-log
43102         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
43103         it is sometimes convenient to filter the commits in various ways.
43104         gitlog-to-changelog only allows --since to specify a start date,
43105         but git-log itself supports many other filtering mechanisms.
43106         At the moment, I want to filter by branch name.  Rather than
43107         adding a --branch option to gitlog-to-changelog, it seems more
43108         flexible to simply pass all options directly to git-log and let
43109         git do the work.  Notice that this effectively makes --since a
43110         redundant option for gitlog-to-changelog, but removing it would
43111         require current usage to change since calls would then require
43112         an additional '--'.
43113
43114 2008-12-21  Bruno Haible  <bruno@clisp.org>
43115
43116         * modules/mbsnrtowcs-tests: New file.
43117         * tests/test-mbsnrtowcs1.sh: New file.
43118         * tests/test-mbsnrtowcs2.sh: New file.
43119         * tests/test-mbsnrtowcs3.sh: New file.
43120         * tests/test-mbsnrtowcs4.sh: New file.
43121         * tests/test-mbsnrtowcs.c: New file.
43122
43123         New module 'mbsnrtowcs'.
43124         * lib/wchar.in.h (mbsnrtowcs): New declaration.
43125         * lib/mbsnrtowcs.c: New file.
43126         * lib/mbsrtowcs-state.c: New file.
43127         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
43128         (internal_state): Remove variable.
43129         * m4/mbsnrtowcs.m4: New file.
43130         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
43131         compilation units.
43132         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
43133         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
43134         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
43135         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
43136         * modules/mbsnrtowcs: New file.
43137         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
43138         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
43139         portability problem.
43140
43141 2008-12-21  Bruno Haible  <bruno@clisp.org>
43142
43143         Work around mbsrtowcs bug.
43144         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
43145         (gl_FUNC_MBSRTOWCS): Invoke it.
43146         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
43147         m4/locale-zh.m4.
43148         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
43149
43150 2008-12-21  Bruno Haible  <bruno@clisp.org>
43151
43152         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
43153
43154 2008-12-21  Bruno Haible  <bruno@clisp.org>
43155
43156         Update doc for AIX.
43157         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
43158         16-bit wchar_t type.
43159         * doc/posix-functions/btowc.texi: Likewise.
43160         * doc/posix-functions/fgetwc.texi: Likewise.
43161         * doc/posix-functions/fgetws.texi: Likewise.
43162         * doc/posix-functions/fputwc.texi: Likewise.
43163         * doc/posix-functions/fputws.texi: Likewise.
43164         * doc/posix-functions/fwide.texi: Likewise.
43165         * doc/posix-functions/fwprintf.texi: Likewise.
43166         * doc/posix-functions/fwscanf.texi: Likewise.
43167         * doc/posix-functions/getwchar.texi: Likewise.
43168         * doc/posix-functions/getwc.texi: Likewise.
43169         * doc/posix-functions/iswalnum.texi: Likewise.
43170         * doc/posix-functions/iswalpha.texi: Likewise.
43171         * doc/posix-functions/iswblank.texi: Likewise.
43172         * doc/posix-functions/iswcntrl.texi: Likewise.
43173         * doc/posix-functions/iswctype.texi: Likewise.
43174         * doc/posix-functions/iswdigit.texi: Likewise.
43175         * doc/posix-functions/iswgraph.texi: Likewise.
43176         * doc/posix-functions/iswlower.texi: Likewise.
43177         * doc/posix-functions/iswprint.texi: Likewise.
43178         * doc/posix-functions/iswpunct.texi: Likewise.
43179         * doc/posix-functions/iswspace.texi: Likewise.
43180         * doc/posix-functions/iswupper.texi: Likewise.
43181         * doc/posix-functions/iswxdigit.texi: Likewise.
43182         * doc/posix-functions/mbrtowc.texi: Likewise.
43183         * doc/posix-functions/mbsrtowcs.texi: Likewise.
43184         * doc/posix-functions/mbstowcs.texi: Likewise.
43185         * doc/posix-functions/mbtowc.texi: Likewise.
43186         * doc/posix-functions/putwchar.texi: Likewise.
43187         * doc/posix-functions/putwc.texi: Likewise.
43188         * doc/posix-functions/swprintf.texi: Likewise.
43189         * doc/posix-functions/tolower.texi: Likewise.
43190         * doc/posix-functions/toupper.texi: Likewise.
43191         * doc/posix-functions/towctrans.texi: Likewise.
43192         * doc/posix-functions/ungetwc.texi: Likewise.
43193         * doc/posix-functions/vswprintf.texi: Likewise.
43194         * doc/posix-functions/wcrtomb.texi: Likewise.
43195         * doc/posix-functions/wcscat.texi: Likewise.
43196         * doc/posix-functions/wcschr.texi: Likewise.
43197         * doc/posix-functions/wcscmp.texi: Likewise.
43198         * doc/posix-functions/wcscoll.texi: Likewise.
43199         * doc/posix-functions/wcscpy.texi: Likewise.
43200         * doc/posix-functions/wcscspn.texi: Likewise.
43201         * doc/posix-functions/wcsftime.texi: Likewise.
43202         * doc/posix-functions/wcslen.texi: Likewise.
43203         * doc/posix-functions/wcsncat.texi: Likewise.
43204         * doc/posix-functions/wcsncmp.texi: Likewise.
43205         * doc/posix-functions/wcsncpy.texi: Likewise.
43206         * doc/posix-functions/wcspbrk.texi: Likewise.
43207         * doc/posix-functions/wcsrchr.texi: Likewise.
43208         * doc/posix-functions/wcsrtombs.texi: Likewise.
43209         * doc/posix-functions/wcsspn.texi: Likewise.
43210         * doc/posix-functions/wcsstr.texi: Likewise.
43211         * doc/posix-functions/wcstod.texi: Likewise.
43212         * doc/posix-functions/wcstof.texi: Likewise.
43213         * doc/posix-functions/wcstoimax.texi: Likewise.
43214         * doc/posix-functions/wcstok.texi: Likewise.
43215         * doc/posix-functions/wcstold.texi: Likewise.
43216         * doc/posix-functions/wcstoll.texi: Likewise.
43217         * doc/posix-functions/wcstol.texi: Likewise.
43218         * doc/posix-functions/wcstombs.texi: Likewise.
43219         * doc/posix-functions/wcstoull.texi: Likewise.
43220         * doc/posix-functions/wcstoul.texi: Likewise.
43221         * doc/posix-functions/wcstoumax.texi: Likewise.
43222         * doc/posix-functions/wcswidth.texi: Likewise.
43223         * doc/posix-functions/wcsxfrm.texi: Likewise.
43224         * doc/posix-functions/wctob.texi: Likewise.
43225         * doc/posix-functions/wctomb.texi: Likewise.
43226         * doc/posix-functions/wctrans.texi: Likewise.
43227         * doc/posix-functions/wctype.texi: Likewise.
43228         * doc/posix-functions/wcwidth.texi: Likewise.
43229         * doc/posix-functions/wmemchr.texi: Likewise.
43230         * doc/posix-functions/wmemcmp.texi: Likewise.
43231         * doc/posix-functions/wmemcpy.texi: Likewise.
43232         * doc/posix-functions/wmemmove.texi: Likewise.
43233         * doc/posix-functions/wmemset.texi: Likewise.
43234         * doc/posix-functions/wprintf.texi: Likewise.
43235         * doc/posix-functions/wscanf.texi: Likewise.
43236
43237 2008-12-21  Bruno Haible  <bruno@clisp.org>
43238
43239         Update doc for HP-UX 11.11.
43240         * doc/posix-functions/btowc.texi: Clarify that the function is missing
43241         in HP-UX version 11.00, not in all versions of HP-UX 11.
43242         * doc/posix-functions/fwide.texi: Likewise.
43243         * doc/posix-functions/fwprintf.texi: Likewise.
43244         * doc/posix-functions/fwscanf.texi: Likewise.
43245         * doc/posix-functions/inet_ntop.texi: Likewise.
43246         * doc/posix-functions/inet_pton.texi: Likewise.
43247         * doc/posix-functions/mbrlen.texi: Likewise.
43248         * doc/posix-functions/mbrtowc.texi: Likewise.
43249         * doc/posix-functions/mbsinit.texi: Likewise.
43250         * doc/posix-functions/mbsrtowcs.texi: Likewise.
43251         * doc/posix-functions/swprintf.texi: Likewise.
43252         * doc/posix-functions/swscanf.texi: Likewise.
43253         * doc/posix-functions/towctrans.texi: Likewise.
43254         * doc/posix-functions/vfwprintf.texi: Likewise.
43255         * doc/posix-functions/vswprintf.texi: Likewise.
43256         * doc/posix-functions/vwprintf.texi: Likewise.
43257         * doc/posix-functions/wcrtomb.texi: Likewise.
43258         * doc/posix-functions/wcsrtombs.texi: Likewise.
43259         * doc/posix-functions/wcsstr.texi: Likewise.
43260         * doc/posix-functions/wctob.texi: Likewise.
43261         * doc/posix-functions/wctrans.texi: Likewise.
43262         * doc/posix-functions/wmemchr.texi: Likewise.
43263         * doc/posix-functions/wmemcmp.texi: Likewise.
43264         * doc/posix-functions/wmemcpy.texi: Likewise.
43265         * doc/posix-functions/wmemmove.texi: Likewise.
43266         * doc/posix-functions/wmemset.texi: Likewise.
43267         * doc/posix-functions/wprintf.texi: Likewise.
43268         * doc/posix-functions/wscanf.texi: Likewise.
43269
43270 2008-12-21  Bruno Haible  <bruno@clisp.org>
43271
43272         Work around a portability problem.
43273         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
43274         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
43275
43276 2008-12-20  Bruno Haible  <bruno@clisp.org>
43277
43278         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
43279         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
43280         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
43281         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
43282         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
43283
43284         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
43285         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
43286         set.
43287         (GNULIB_defined_mbstate_t): New macro.
43288         (mbsinit): Redefine if REPLACE_MBSINIT is set.
43289         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
43290         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
43291         reuses the system's mbrtowc function but works around the bugs.
43292         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
43293         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
43294         macros.
43295         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
43296         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
43297         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
43298         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
43299         REPLACE_MBSINIT if mbsinit needs to be overridden.
43300         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
43301         REPLACE_MBSINIT, REPLACE_MBRTOWC.
43302         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
43303         REPLACE_MBSINIT, REPLACE_MBRTOWC.
43304         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
43305         m4/locale-zh.m4.
43306         (Depends): Add mbsinit.
43307         * modules/mbsinit (Depends): Add mbrtowc.
43308         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
43309
43310 2008-12-20  Bruno Haible  <bruno@clisp.org>
43311
43312         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
43313         so that there are no conversion errors on AIX.
43314         * tests/test-mbsrtowcs.c (main): LIkewise.
43315
43316 2008-12-20  Bruno Haible  <bruno@clisp.org>
43317
43318         Work around wctob bug on Solaris <= 9.
43319         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
43320         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
43321         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
43322         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
43323         * modules/wctob (Files): Add m4/locale-fr.m4.
43324         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
43325
43326 2008-12-20  Bruno Haible  <bruno@clisp.org>
43327
43328         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
43329         /dev/null.
43330         * tests/test-select-in.sh: Likewise.
43331         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43332
43333 2008-12-20  Bruno Haible  <bruno@clisp.org>
43334
43335         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
43336         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
43337         Cygwin 1.5.x.
43338
43339 2008-12-20  Bruno Haible  <bruno@clisp.org>
43340
43341         Ensure mbstate_t is defined on HP-UX 11.11.
43342         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
43343         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
43344         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
43345         AC_USE_SYSTEM_EXTENSIONS.
43346         * modules/fnmatch (Depends-on): Add extensions.
43347         * modules/mbrlen (Depends-on): Likewise.
43348         * modules/mbrtowc (Depends-on): Likewise.
43349         * modules/mbsinit (Depends-on): Likewise.
43350         * modules/mbsrtowcs (Depends-on): Likewise.
43351         * modules/mbswidth (Depends-on): Likewise.
43352         * modules/quotearg (Depends-on): Likewise.
43353         * modules/strftime (Depends-on): Likewise.
43354
43355 2008-12-20  Bruno Haible  <bruno@clisp.org>
43356
43357         Ensure wctob is declared on IRIX 6.5.
43358         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
43359         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
43360         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
43361         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
43362         of HAVE_WCTOB.
43363         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
43364         HAVE_WCTOB.
43365         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
43366
43367 2008-12-19  Bruno Haible  <bruno@clisp.org>
43368
43369         * modules/mbsrtowcs-tests: New file.
43370         * tests/test-mbsrtowcs1.sh: New file.
43371         * tests/test-mbsrtowcs2.sh: New file.
43372         * tests/test-mbsrtowcs3.sh: New file.
43373         * tests/test-mbsrtowcs4.sh: New file.
43374         * tests/test-mbsrtowcs.c: New file.
43375
43376         New module 'mbsrtowcs'.
43377         * lib/wchar.in.h (mbsrtowcs): New declaration.
43378         * lib/mbsrtowcs.c: New file.
43379         * m4/mbsrtowcs.m4: New file.
43380         * modules/mbsrtowcs: New file.
43381         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
43382         HAVE_MBSRTOWCS.
43383         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
43384         HAVE_MBSRTOWCS.
43385         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
43386
43387 2008-12-19  Bruno Haible  <bruno@clisp.org>
43388
43389         New module 'mbrlen'.
43390         * lib/wchar.in.h (mbrlen): New declaration.
43391         * lib/mbrlen.c: New file.
43392         * m4/mbrlen.m4: New file.
43393         * modules/mbrlen: New file.
43394         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
43395         HAVE_MBRLEN.
43396         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
43397         HAVE_MBRLEN.
43398         * doc/posix-functions/mbrlen.texi: Document the new module.
43399
43400 2008-12-19  Bruno Haible  <bruno@clisp.org>
43401
43402         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
43403         * modules/mbrtowc (Depends-on): Add verify.
43404         Suggested by Paul Eggert.
43405
43406 2008-12-18  Bruno Haible  <bruno@clisp.org>
43407
43408         * modules/mbsinit-tests: New file.
43409         * tests/test-mbsinit.sh: New file.
43410         * tests/test-mbsinit.c: New file.
43411
43412 2008-12-18  Bruno Haible  <bruno@clisp.org>
43413
43414         * modules/mbrtowc-tests: New file.
43415         * tests/test-mbrtowc1.sh: New file.
43416         * tests/test-mbrtowc2.sh: New file.
43417         * tests/test-mbrtowc3.sh: New file.
43418         * tests/test-mbrtowc4.sh: New file.
43419         * tests/test-mbrtowc.c: New file.
43420
43421         New module 'mbrtowc'.
43422         * lib/wchar.in.h (mbstate_t): Override when the system does not have
43423         mbsinit and mbrtowc.
43424         (mbrtowc): New declaration.
43425         * lib/mbrtowc.c: New file.
43426         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
43427         * modules/mbrtowc: New file.
43428         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
43429         HAVE_MBRTOWC.
43430         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
43431         HAVE_MBRTOWC.
43432         * doc/posix-functions/mbrtowc.texi: Document the new module.
43433
43434 2008-12-18  Bruno Haible  <bruno@clisp.org>
43435
43436         New module 'wctob'.
43437         * lib/wchar.in.h (wctob): New declaration.
43438         * lib/wctob.c: New file.
43439         * m4/wctob.m4: New file.
43440         * modules/wctob: New file.
43441         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
43442         HAVE_WCTOB.
43443         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
43444         * doc/posix-functions/wctob.texi: Document the new module.
43445
43446 2008-12-18  Bruno Haible  <bruno@clisp.org>
43447
43448         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
43449         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
43450
43451 2008-12-18  Simon Josefsson  <simon@josefsson.org>
43452
43453         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
43454         G. Christensen" <tgc@jupiterrise.com>.
43455
43456         * lib/flock.c: Need to include errno.h.  Reported by "Tom
43457         G. Christensen" <tgc@jupiterrise.com>.
43458
43459         * lib/flock.c: Need to include string.h.  Reported by "Tom
43460         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
43461         <ebb9@byu.net>.
43462
43463 2008-12-18  Bruno Haible  <bruno@clisp.org>
43464
43465         * m4/locale-ja.m4: New file, from GNU gettext.
43466
43467 2008-12-17  Bruno Haible  <bruno@clisp.org>
43468
43469         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
43470         Suggested by Eric Blake.
43471
43472 2008-12-17  Bruno Haible  <bruno@clisp.org>
43473
43474         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
43475
43476 2008-12-17  Bruno Haible  <bruno@clisp.org>
43477
43478         * lib/mbsinit.c: Include verify.h. Verify an assumption.
43479         * modules/mbsinit (Depends-on): Add verify.
43480         Suggested by Paul Eggert.
43481
43482 2008-12-17  Bruno Haible  <bruno@clisp.org>
43483
43484         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
43485         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
43486         gl_FUNC_MBRTOWC.
43487         * m4/mbiter.m4 (gl_MBITER): LIkewise.
43488         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
43489         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
43490         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
43491         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
43492         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
43493         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
43494         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
43495         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
43496         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
43497         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
43498         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
43499         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
43500         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
43501         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
43502         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
43503         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
43504         * modules/trim (configure.ac): Likewise.
43505
43506 2008-12-17  Bruno Haible  <bruno@clisp.org>
43507
43508         * modules/btowc-tests: New file.
43509         * tests/test-btowc1.sh: New file.
43510         * tests/test-btowc2.sh: New file.
43511         * tests/test-btowc.c: New file.
43512
43513         New module 'btowc'.
43514         * lib/wchar.in.h (btowc): New declaration.
43515         * lib/btowc.c: New file.
43516         * m4/btowc.m4: New file.
43517         * modules/btowc: New file.
43518         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
43519         HAVE_BTOWC.
43520         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
43521         * doc/posix-functions/btowc.texi: Document the new module.
43522
43523 2008-12-17  Bruno Haible  <bruno@clisp.org>
43524
43525         New module 'mbsinit'.
43526         * lib/wchar.in.h (mbsinit): New declaration.
43527         * lib/mbsinit.c: New file.
43528         * m4/mbsinit.m4: New file.
43529         * modules/mbsinit: New file.
43530         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
43531         HAVE_MBSINIT.
43532         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
43533         HAVE_MBSINIT.
43534         * doc/posix-functions/mbsinit.texi: Document the new module.
43535
43536 2008-12-16  Bruno Haible  <bruno@clisp.org>
43537
43538         * lib/unistd.in.h: Add comment.
43539         * tests/test-environ.c: Don't include <stdlib.h>.
43540
43541 2008-12-16  Bruno Haible  <bruno@clisp.org>
43542
43543         * lib/parse-duration.h (parse_duration): Document return value
43544         convention.
43545         * lib/parse-duration.c: Include specification header first. Add
43546         comments.
43547         (_): Remove macro.
43548         (parse_year_month_day, parse_hour_minute_second): Move side effects
43549         outside of strchr call.
43550         (parse_non_iso8601): Move side effects outside of isspace call.
43551         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
43552         call.
43553
43554 2008-12-16  Bruno Haible  <bruno@clisp.org>
43555
43556         * tests/test-parse-duration.sh: Produce no output when the test
43557         succeeds.
43558
43559 2008-12-16  Bruno Haible  <bruno@clisp.org>
43560
43561         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
43562         expressions.
43563
43564 2008-12-15  Bruno Haible  <bruno@clisp.org>
43565
43566         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
43567         * doc/glibc-functions/flistxattr.texi: Likewise.
43568         * doc/glibc-functions/fopencookie.texi: Likewise.
43569         * doc/glibc-functions/fremovexattr.texi: Likewise.
43570         * doc/glibc-functions/fsetxattr.texi: Likewise.
43571         * doc/glibc-functions/getxattr.texi: Likewise.
43572         * doc/glibc-functions/lgetxattr.texi: Likewise.
43573         * doc/glibc-functions/listxattr.texi: Likewise.
43574         * doc/glibc-functions/llistxattr.texi: Likewise.
43575         * doc/glibc-functions/lremovexattr.texi: Likewise.
43576         * doc/glibc-functions/lsetxattr.texi: Likewise.
43577         * doc/glibc-functions/removexattr.texi: Likewise.
43578         * doc/glibc-functions/setxattr.texi: Likewise.
43579         * doc/posix-functions/open_memstream.texi: Likewise.
43580
43581 2008-12-15  Eric Blake  <ebb9@byu.net>
43582
43583         Update doc for cygwin 1.7.
43584         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
43585         functions.
43586         * doc/posix-functions/fchmodat.texi: Likewise.
43587         * doc/posix-functions/fchownat.texi: Likewise.
43588         * doc/posix-functions/fdopendir.texi: Likewise.
43589         * doc/posix-functions/fmemopen.texi: Likewise.
43590         * doc/posix-functions/freeaddrinfo.texi: Likewise.
43591         * doc/posix-functions/fstatat.texi: Likewise.
43592         * doc/posix-functions/futimens.texi: Likewise.
43593         * doc/posix-functions/gai_strerror.texi: Likewise.
43594         * doc/posix-functions/getaddrinfo.texi: Likewise.
43595         * doc/posix-functions/getnameinfo.texi: Likewise.
43596         * doc/posix-functions/if_freenameindex.texi: Likewise.
43597         * doc/posix-functions/if_indextoname.texi: Likewise.
43598         * doc/posix-functions/if_nameindex.texi: Likewise.
43599         * doc/posix-functions/if_nametoindex.texi: Likewise.
43600         * doc/posix-functions/insque.texi: Likewise.
43601         * doc/posix-functions/linkat.texi: Likewise.
43602         * doc/posix-functions/llrint.texi: Likewise.
43603         * doc/posix-functions/llrintf.texi: Likewise.
43604         * doc/posix-functions/llrintl.texi: Likewise.
43605         * doc/posix-functions/lockf.texi: Likewise.
43606         * doc/posix-functions/lrintl.texi: Likewise.
43607         * doc/posix-functions/mkdirat.texi: Likewise.
43608         * doc/posix-functions/mkfifoat.texi: Likewise.
43609         * doc/posix-functions/mknodat.texi: Likewise.
43610         * doc/posix-functions/mq_close.texi: Likewise.
43611         * doc/posix-functions/mq_getattr.texi: Likewise.
43612         * doc/posix-functions/mq_notify.texi: Likewise.
43613         * doc/posix-functions/mq_open.texi: Likewise.
43614         * doc/posix-functions/mq_receive.texi: Likewise.
43615         * doc/posix-functions/mq_send.texi: Likewise.
43616         * doc/posix-functions/mq_setattr.texi: Likewise.
43617         * doc/posix-functions/mq_timedreceive.texi: Likewise.
43618         * doc/posix-functions/mq_timedsend.texi: Likewise.
43619         * doc/posix-functions/mq_unlink.texi: Likewise.
43620         * doc/posix-functions/open_memstream.texi: Likewise.
43621         * doc/posix-functions/openat.texi: Likewise.
43622         * doc/posix-functions/posix_fadvise.texi: Likewise.
43623         * doc/posix-functions/posix_fallocate.texi: Likewise.
43624         * doc/posix-functions/posix_madvise.texi: Likewise.
43625         * doc/posix-functions/posix_memalign.texi: Likewise.
43626         * doc/posix-functions/posix_openpt.texi: Likewise.
43627         * doc/posix-functions/readlinkat.texi: Likewise.
43628         * doc/posix-functions/remque.texi: Likewise.
43629         * doc/posix-functions/renameat.texi: Likewise.
43630         * doc/posix-functions/rintl.texi: Likewise.
43631         * doc/posix-functions/sem_unlink.texi: Likewise.
43632         * doc/posix-functions/shm_open.texi: Likewise.
43633         * doc/posix-functions/shm_unlink.texi: Likewise.
43634         * doc/posix-functions/signgam.texi: Likewise.
43635         * doc/posix-functions/sigset.texi: Likewise.
43636         * doc/posix-functions/stpcpy.texi: Likewise.
43637         * doc/posix-functions/stpncpy.texi: Likewise.
43638         * doc/posix-functions/strerror.texi: Likewise.
43639         * doc/posix-functions/strtod.texi: Likewise.
43640         * doc/posix-functions/symlinkat.texi: Likewise.
43641         * doc/posix-functions/unlinkat.texi: Likewise.
43642         * doc/posix-functions/utimensat.texi: Likewise.
43643         * doc/glibc-functions/bindresvport.texi: Likewise.
43644         * doc/glibc-functions/dn_expand.texi: Likewise.
43645         * doc/glibc-functions/exp10.texi: Likewise.
43646         * doc/glibc-functions/exp10f.texi: Likewise.
43647         * doc/glibc-functions/fgetxattr.texi: Likewise.
43648         * doc/glibc-functions/flistxattr.texi: Likewise.
43649         * doc/glibc-functions/fopencookie.texi: Likewise.
43650         * doc/glibc-functions/freeifaddrs.texi: Likewise.
43651         * doc/glibc-functions/fremovexattr.texi: Likewise.
43652         * doc/glibc-functions/fsetxattr.texi: Likewise.
43653         * doc/glibc-functions/getifaddrs.texi: Likewise.
43654         * doc/glibc-functions/getxattr.texi: Likewise.
43655         * doc/glibc-functions/lgetxattr.texi: Likewise.
43656         * doc/glibc-functions/listxattr.texi: Likewise.
43657         * doc/glibc-functions/llistxattr.texi: Likewise.
43658         * doc/glibc-functions/lremovexattr.texi: Likewise.
43659         * doc/glibc-functions/lsetxattr.texi: Likewise.
43660         * doc/glibc-functions/pow10.texi: Likewise.
43661         * doc/glibc-functions/pow10f.texi: Likewise.
43662         * doc/glibc-functions/rcmd_af.texi: Likewise.
43663         * doc/glibc-functions/removexattr.texi: Likewise.
43664         * doc/glibc-functions/res_init.texi: Likewise.
43665         * doc/glibc-functions/res_mkquery.texi: Likewise.
43666         * doc/glibc-functions/res_query.texi: Likewise.
43667         * doc/glibc-functions/res_querydomain.texi: Likewise.
43668         * doc/glibc-functions/res_send.texi: Likewise.
43669         * doc/glibc-functions/rresvport_af.texi: Likewise.
43670         * doc/glibc-functions/setxattr.texi: Likewise.
43671         * doc/glibc-functions/strcasestr.texi: Likewise.
43672
43673 2008-12-15  Bruno Haible  <bruno@clisp.org>
43674
43675         Fix compilation error on OSF/1 4.0.
43676         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
43677         <sys/time.h>, simply delegate to the system header.
43678         Reported by Daniel Richard G. <oss@teragram.com>.
43679
43680 2008-12-15  Bruno Haible  <bruno@clisp.org>
43681
43682         * doc/posix-functions/openat.texi: Mention the 'openat' module.
43683         * doc/posix-functions/fchmodat.texi: Likewise.
43684         * doc/posix-functions/fchownat.texi: Likewise.
43685         * doc/posix-functions/fdopendir.texi: Likewise.
43686         * doc/posix-functions/fstatat.texi: Likewise.
43687         * doc/posix-functions/mkdirat.texi: Likewise.
43688         * doc/posix-functions/unlinkat.texi: Likewise.
43689
43690 2008-12-14  Bruno Haible  <bruno@clisp.org>
43691
43692         Update doc for POSIX:2008.
43693         * doc/posix-functions/faccessat.texi: New file.
43694         * doc/posix-functions/fchmodat.texi: New file.
43695         * doc/posix-functions/fchownat.texi: New file.
43696         * doc/posix-functions/fdopendir.texi: New file.
43697         * doc/posix-functions/fstatat.texi: New file.
43698         * doc/posix-functions/futimens.texi: New file.
43699         * doc/posix-functions/linkat.texi: New file.
43700         * doc/posix-functions/mkdirat.texi: New file.
43701         * doc/posix-functions/mkfifoat.texi: New file.
43702         * doc/posix-functions/mknodat.texi: New file.
43703         * doc/posix-functions/open_wmemstream.texi: New file.
43704         * doc/posix-functions/openat.texi: New file.
43705         * doc/posix-functions/psiginfo.texi: New file.
43706         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
43707         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
43708         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
43709         * doc/posix-functions/readlinkat.texi: New file.
43710         * doc/posix-functions/renameat.texi: New file.
43711         * doc/posix-functions/strerror_l.texi: New file.
43712         * doc/posix-functions/symlinkat.texi: New file.
43713         * doc/posix-functions/unlinkat.texi: New file.
43714         * doc/posix-functions/utimensat.texi: New file.
43715         * doc/gnulib.texi (Function Substitutes): Add these subsections.
43716
43717 2008-12-14  Bruno Haible  <bruno@clisp.org>
43718
43719         Update doc for POSIX:2008.
43720         * doc/posix-functions/alphasort.texi: Renamed from
43721         doc/glibc-functions/alphasort.texi.
43722         * doc/posix-functions/dirfd.texi: Renamed from
43723         doc/glibc-functions/dirfd.texi.
43724         * doc/posix-functions/dprintf.texi: Renamed from
43725         doc/glibc-functions/dprintf.texi.
43726         * doc/posix-functions/duplocale.texi: Renamed from
43727         doc/glibc-functions/duplocale.texi.
43728         * doc/posix-functions/fexecve.texi: Renamed from
43729         doc/glibc-functions/fexecve.texi.
43730         * doc/posix-functions/fmemopen.texi: Renamed from
43731         doc/glibc-functions/fmemopen.texi.
43732         * doc/posix-functions/freelocale.texi: Renamed from
43733         doc/glibc-functions/freelocale.texi.
43734         * doc/posix-functions/getdate_err.texi: Renamed from
43735         doc/glibc-functions/getdate_err.texi.
43736         * doc/posix-functions/isalnum_l.texi: Renamed from
43737         doc/glibc-functions/isalnum_l.texi.
43738         * doc/posix-functions/isalpha_l.texi: Renamed from
43739         doc/glibc-functions/isalpha_l.texi.
43740         * doc/posix-functions/isblank_l.texi: Renamed from
43741         doc/glibc-functions/isblank_l.texi.
43742         * doc/posix-functions/iscntrl_l.texi: Renamed from
43743         doc/glibc-functions/iscntrl_l.texi.
43744         * doc/posix-functions/isdigit_l.texi: Renamed from
43745         doc/glibc-functions/isdigit_l.texi.
43746         * doc/posix-functions/isgraph_l.texi: Renamed from
43747         doc/glibc-functions/isgraph_l.texi.
43748         * doc/posix-functions/islower_l.texi: Renamed from
43749         doc/glibc-functions/islower_l.texi.
43750         * doc/posix-functions/isprint_l.texi: Renamed from
43751         doc/glibc-functions/isprint_l.texi.
43752         * doc/posix-functions/ispunct_l.texi: Renamed from
43753         doc/glibc-functions/ispunct_l.texi.
43754         * doc/posix-functions/isspace_l.texi: Renamed from
43755         doc/glibc-functions/isspace_l.texi.
43756         * doc/posix-functions/isupper_l.texi: Renamed from
43757         doc/glibc-functions/isupper_l.texi.
43758         * doc/posix-functions/iswalnum_l.texi: Renamed from
43759         doc/glibc-functions/iswalnum_l.texi.
43760         * doc/posix-functions/iswalpha_l.texi: Renamed from
43761         doc/glibc-functions/iswalpha_l.texi.
43762         * doc/posix-functions/iswblank_l.texi: Renamed from
43763         doc/glibc-functions/iswblank_l.texi.
43764         * doc/posix-functions/iswcntrl_l.texi: Renamed from
43765         doc/glibc-functions/iswcntrl_l.texi.
43766         * doc/posix-functions/iswctype_l.texi: Renamed from
43767         doc/glibc-functions/iswctype_l.texi.
43768         * doc/posix-functions/iswdigit_l.texi: Renamed from
43769         doc/glibc-functions/iswdigit_l.texi.
43770         * doc/posix-functions/iswgraph_l.texi: Renamed from
43771         doc/glibc-functions/iswgraph_l.texi.
43772         * doc/posix-functions/iswlower_l.texi: Renamed from
43773         doc/glibc-functions/iswlower_l.texi.
43774         * doc/posix-functions/iswprint_l.texi: Renamed from
43775         doc/glibc-functions/iswprint_l.texi.
43776         * doc/posix-functions/iswpunct_l.texi: Renamed from
43777         doc/glibc-functions/iswpunct_l.texi.
43778         * doc/posix-functions/iswspace_l.texi: Renamed from
43779         doc/glibc-functions/iswspace_l.texi.
43780         * doc/posix-functions/iswupper_l.texi: Renamed from
43781         doc/glibc-functions/iswupper_l.texi.
43782         * doc/posix-functions/iswxdigit_l.texi: Renamed from
43783         doc/glibc-functions/iswxdigit_l.texi.
43784         * doc/posix-functions/isxdigit_l.texi: Renamed from
43785         doc/glibc-functions/isxdigit_l.texi.
43786         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
43787         doc/glibc-functions/mbsnrtowcs.texi.
43788         * doc/posix-functions/mkdtemp.texi: Renamed from
43789         doc/glibc-functions/mkdtemp.texi.
43790         * doc/posix-functions/newlocale.texi: Renamed from
43791         doc/glibc-functions/newlocale.texi.
43792         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
43793         doc/glibc-functions/nl_langinfo_l.texi.
43794         * doc/posix-functions/open_memstream.texi: Renamed from
43795         doc/glibc-functions/open_memstream.texi.
43796         * doc/posix-functions/opterr.texi: Renamed from
43797         doc/glibc-functions/opterr.texi.
43798         * doc/posix-functions/optind.texi: Renamed from
43799         doc/glibc-functions/optind.texi.
43800         * doc/posix-functions/optopt.texi: Renamed from
43801         doc/glibc-functions/optopt.texi.
43802         * doc/posix-functions/psignal.texi: Renamed from
43803         doc/glibc-functions/psignal.texi.
43804         * doc/posix-functions/scandir.texi: Renamed from
43805         doc/glibc-functions/scandir.texi.
43806         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
43807         doc/glibc-functions/sched_get_priority_min.texi.
43808         * doc/posix-functions/signgam.texi: Renamed from
43809         doc/glibc-functions/signgam.texi.
43810         * doc/posix-functions/stpcpy.texi: Renamed from
43811         doc/glibc-functions/stpcpy.texi.
43812         * doc/posix-functions/stpncpy.texi: Renamed from
43813         doc/glibc-functions/stpncpy.texi.
43814         * doc/posix-functions/strcasecmp_l.texi: Renamed from
43815         doc/glibc-functions/strcasecmp_l.texi.
43816         * doc/posix-functions/strcoll_l.texi: Renamed from
43817         doc/glibc-functions/strcoll_l.texi.
43818         * doc/posix-functions/strfmon_l.texi: Renamed from
43819         doc/glibc-functions/strfmon_l.texi.
43820         * doc/posix-functions/strftime_l.texi: Renamed from
43821         doc/glibc-functions/strftime_l.texi.
43822         * doc/posix-functions/strncasecmp_l.texi: Renamed from
43823         doc/glibc-functions/strncasecmp_l.texi.
43824         * doc/posix-functions/strndup.texi: Renamed from
43825         doc/glibc-functions/strndup.texi.
43826         * doc/posix-functions/strnlen.texi: Renamed from
43827         doc/glibc-functions/strnlen.texi.
43828         * doc/posix-functions/strsignal.texi: Renamed from
43829         doc/glibc-functions/strsignal.texi.
43830         * doc/posix-functions/strxfrm_l.texi: Renamed from
43831         doc/glibc-functions/strxfrm_l.texi.
43832         * doc/posix-functions/timer_gettime.texi: Renamed from
43833         doc/glibc-functions/timer_gettime.texi.
43834         * doc/posix-functions/tolower_l.texi: Renamed from
43835         doc/glibc-functions/tolower_l.texi.
43836         * doc/posix-functions/toupper_l.texi: Renamed from
43837         doc/glibc-functions/toupper_l.texi.
43838         * doc/posix-functions/towctrans_l.texi: Renamed from
43839         doc/glibc-functions/towctrans_l.texi.
43840         * doc/posix-functions/towlower_l.texi: Renamed from
43841         doc/glibc-functions/towlower_l.texi.
43842         * doc/posix-functions/towupper_l.texi: Renamed from
43843         doc/glibc-functions/towupper_l.texi.
43844         * doc/posix-functions/uselocale.texi: Renamed from
43845         doc/glibc-functions/uselocale.texi.
43846         * doc/posix-functions/vdprintf.texi: Renamed from
43847         doc/glibc-functions/vdprintf.texi.
43848         * doc/posix-functions/wcpcpy.texi:
43849         Renamed from doc/glibc-functions/wcpcpy.texi.
43850         * doc/posix-functions/wcpncpy.texi: Renamed from
43851         doc/glibc-functions/wcpncpy.texi.
43852         * doc/posix-functions/wcscasecmp.texi: Renamed from
43853         doc/glibc-functions/wcscasecmp.texi.
43854         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
43855         doc/glibc-functions/wcscasecmp_l.texi.
43856         * doc/posix-functions/wcscoll_l.texi: Renamed from
43857         doc/glibc-functions/wcscoll_l.texi.
43858         * doc/posix-functions/wcsdup.texi: Renamed from
43859         doc/glibc-functions/wcsdup.texi.
43860         * doc/posix-functions/wcsncasecmp.texi: Renamed from
43861         doc/glibc-functions/wcsncasecmp.texi.
43862         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
43863         doc/glibc-functions/wcsncasecmp_l.texi.
43864         * doc/posix-functions/wcsnlen.texi: Renamed from
43865         doc/glibc-functions/wcsnlen.texi.
43866         * doc/posix-functions/wcsnrtombs.texi: Renamed from
43867         doc/glibc-functions/wcsnrtombs.texi.
43868         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
43869         doc/glibc-functions/wcsxfrm_l.texi.
43870         * doc/posix-functions/wctrans_l.texi: Renamed from
43871         doc/glibc-functions/wctrans_l.texi.
43872         * doc/posix-functions/wctype_l.texi: Renamed from
43873         doc/glibc-functions/wctype_l.texi.
43874         * doc/gnulib.texi (Function Substitutes): Add these subsections.
43875         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
43876         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
43877         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
43878         these subsections.
43879         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
43880         Remove sections.
43881
43882 2008-12-14  Bruno Haible  <bruno@clisp.org>
43883
43884         Update doc for POSIX:2008.
43885         * doc/posix-functions/*.texi: Update URL of POSIX specification.
43886
43887 2008-12-14  Bruno Haible  <bruno@clisp.org>
43888
43889         Update doc for POSIX:2008.
43890         * doc/pastposix-functions/bcmp.texi: Renamed from
43891         doc/posix-functions/bcmp.texi.
43892         * doc/pastposix-functions/bcopy.texi: Renamed from
43893         doc/posix-functions/bcopy.texi.
43894         * doc/pastposix-functions/bsd_signal.texi: Renamed from
43895         doc/posix-functions/bsd_signal.texi.
43896         * doc/pastposix-functions/bzero.texi: Renamed from
43897         doc/posix-functions/bzero.texi.
43898         * doc/pastposix-functions/ecvt.texi: Renamed from
43899         doc/posix-functions/ecvt.texi.
43900         * doc/pastposix-functions/fcvt.texi: Renamed from
43901         doc/posix-functions/fcvt.texi.
43902         * doc/pastposix-functions/ftime.texi: Renamed from
43903         doc/posix-functions/ftime.texi.
43904         * doc/pastposix-functions/gcvt.texi: Renamed from
43905         doc/posix-functions/gcvt.texi.
43906         * doc/pastposix-functions/getcontext.texi: Renamed from
43907         doc/posix-functions/getcontext.texi.
43908         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
43909         doc/posix-functions/gethostbyaddr.texi.
43910         * doc/pastposix-functions/gethostbyname.texi: Renamed from
43911         doc/posix-functions/gethostbyname.texi.
43912         * doc/pastposix-functions/getwd.texi: Renamed from
43913         doc/posix-functions/getwd.texi.
43914         * doc/pastposix-functions/h_errno.texi: Renamed from
43915         doc/posix-functions/h_errno.texi.
43916         * doc/pastposix-functions/index.texi: Renamed from
43917         doc/posix-functions/index.texi.
43918         * doc/pastposix-functions/makecontext.texi: Renamed from
43919         doc/posix-functions/makecontext.texi.
43920         * doc/pastposix-functions/mktemp.texi: Renamed from
43921         doc/posix-functions/mktemp.texi.
43922         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
43923         doc/posix-functions/pthread_attr_getstackaddr.texi.
43924         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
43925         doc/posix-functions/pthread_attr_setstackaddr.texi.
43926         * doc/pastposix-functions/rindex.texi: Renamed from
43927         doc/posix-functions/rindex.texi.
43928         * doc/pastposix-functions/scalb.texi: Renamed from
43929         doc/posix-functions/scalb.texi.
43930         * doc/pastposix-functions/setcontext.texi: Renamed from
43931         doc/posix-functions/setcontext.texi.
43932         * doc/pastposix-functions/swapcontext.texi: Renamed from
43933         doc/posix-functions/swapcontext.texi.
43934         * doc/pastposix-functions/ualarm.texi: Renamed from
43935         doc/posix-functions/ualarm.texi.
43936         * doc/pastposix-functions/usleep.texi: Renamed from
43937         doc/posix-functions/usleep.texi.
43938         * doc/pastposix-functions/vfork.texi: Renamed from
43939         doc/posix-functions/vfork.texi.
43940         * doc/pastposix-functions/wcswcs.texi: Renamed from
43941         doc/posix-functions/wcswcs.texi.
43942         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
43943         (Function Substitutes): Update.
43944
43945 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43946
43947         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
43948         m4/strerror.m4.
43949
43950 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43951             Bruno Haible  <bruno@clisp.org>
43952
43953         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
43954
43955 2008-12-13  Bruno Haible  <bruno@clisp.org>
43956
43957         * modules/strtoull (Depends-on): Remove unistd.
43958
43959 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43960
43961         * modules/strtoull (Depends-on): Add stdlib.
43962
43963 2008-12-11  Simon Josefsson  <simon@josefsson.org>
43964
43965         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
43966
43967 2008-12-10  Jim Meyering  <meyering@redhat.com>
43968
43969         gl_ASSERT: don't say assertions are disabled when they're not
43970         * m4/assert.m4 (gl_ASSERT): Do not make configure report
43971         "checking whether to enable assertions... no", when they are in
43972         fact enabled.  This is solely a bug in the output of configure.
43973         In spite of saying "no", NDEBUG was not defined in that case.
43974         Also, as noted by Eric Blake, leave assertions enabled upon
43975         --enable-assert=INVALID.
43976
43977 2008-12-10  Bruno Haible  <bruno@clisp.org>
43978
43979         Change MODULES.html to refer to POSIX:2008 where possible.
43980         * MODULES.html.sh (POSIX2008_URL): New variable.
43981         (posix_headers): Remove sys/timeb, ucontext.
43982         (posix2001_headers): New variable.
43983         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
43984         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
43985         index, makecontext, mktemp, pthread_attr_getstackaddr,
43986         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
43987         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
43988         (posix2001_functions): New variable.
43989         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
43990         otherwise.
43991
43992 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43993
43994         add missing include to parse-duration.c
43995         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
43996         * modules/parse-duration (Depends-on): Add xalloc.
43997
43998         fix sed script reading maint.mk
43999         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
44000         (syntax-check-rules): Use it.
44001
44002 2008-12-09  Bruno Haible  <bruno@clisp.org>
44003
44004         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
44005         MacOS X 10.4/PowerPC.
44006         Reported by Simon Josefsson.
44007
44008 2008-12-08  Jim Meyering  <meyering@redhat.com>
44009
44010         work around mingw's lack of some S_IF definitions
44011         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
44012         Reported by Simon Josefsson.
44013
44014 2008-12-08  Bruno Haible  <bruno@clisp.org>
44015
44016         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
44017         applied to variables. Needed on MacOS X 10.4/PowerPC.
44018         Reported by Simon Josefsson.
44019
44020 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
44021         and Eric Blake  <ebb9@byu.net>
44022
44023         assert: honor --enable-assert
44024         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
44025         order to honor --enable-assert, rather than treating it as a
44026         synonym for --disable-assert.
44027
44028 2008-12-08  Jim Meyering  <meyering@redhat.com>
44029
44030         * lib/posixtm.c: Remove now-useless declaration of mktime.
44031
44032         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
44033
44034 2008-12-07  Bruno Haible  <bruno@clisp.org>
44035
44036         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
44037         test_once): Mark functions as static.
44038         * tests/test-tls.c (test_tls): Likewise.
44039
44040 2008-12-07  Bruno Haible  <bruno@clisp.org>
44041
44042         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
44043         iconv_register_autodetect.
44044
44045 2008-12-07  Jim Meyering  <meyering@redhat.com>
44046
44047         posixtm.c: avoid a warning
44048         * lib/posixtm.c (posixtime): Don't initialize tm0.
44049         It's no longer needed to placate gcc4's -Wuninitialized,
44050         and the attempt to placate would elicit a new warning.
44051
44052         unicodeio.c: mark unused parameters
44053         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
44054         (fallback_failure_callback): Likewise.
44055
44056 2008-12-07  Bruno Haible  <bruno@clisp.org>
44057
44058         * gnulib-tool (func_create_testdir): When building the tests
44059         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
44060         Reported by Simon Josefsson.
44061
44062 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44063
44064         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
44065
44066 2008-12-06  Bruno Haible  <bruno@clisp.org>
44067
44068         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
44069         Suggested by Eric Blake.
44070
44071 2008-12-06  Bruno Haible  <bruno@clisp.org>
44072
44073         Fix a c-stack test failure on MacOS X.
44074         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
44075         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
44076         handler for SIGBUS as well.
44077         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
44078         install a signal handler for SIGBUS as well.
44079         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
44080
44081 2008-12-06  Bruno Haible  <bruno@clisp.org>
44082
44083         Advocacy documentation.
44084         * doc/gnulib-intro.texi (Benefits): New section.
44085         * doc/gnulib.texi: Update.
44086
44087 2008-12-06  Bruno Haible  <bruno@clisp.org>
44088
44089         Document the 'manywarnings' module.
44090         * doc/manywarnings.texi: New file.
44091         * doc/gnulib.texi: Include it.
44092
44093 2008-12-05  Eric Blake  <ebb9@byu.net>
44094
44095         tests: silence some gcc warnings
44096         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
44097         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
44098         type mismatches.
44099
44100 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44101             Bruno Haible  <bruno@clisp.org>
44102
44103         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
44104
44105 2008-11-29  Jim Meyering  <meyering@redhat.com>
44106
44107         unicodeio.c: mark unused parameters
44108         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
44109         (fallback_failure_callback): Likewise.
44110
44111         fts: fix a thinko
44112         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
44113         (set_stat_type): Return S_IF*-valued "type" directly.
44114         Prompted by James Youngman's spotting a related bug.
44115         Confirmed by further testing through find.
44116
44117         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
44118         * lib/fts.c (D_TYPE): Define.
44119         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
44120         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
44121         (s_ifmt_shift_bits): New function.
44122         (set_stat_type): New function.
44123         (fts_build): When not calling fts_stat, call set_stat_type
44124         to propagate dirent.d_type info to fts_read caller.
44125         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
44126         fts_statp->st_mode type information may be valid.
44127
44128 2008-11-28  Simon Josefsson  <simon@josefsson.org>
44129
44130         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
44131         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
44132         <sds@gnu.org>.
44133
44134 2008-11-20  Bruno Haible  <bruno@clisp.org>
44135
44136         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
44137         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
44138         INCLUDE_NEXT.
44139         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
44140         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
44141         * modules/math (Makefile.am): Substitute
44142         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
44143         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
44144
44145 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
44146             Bruno Haible  <bruno@clisp.org>
44147
44148         * lib/stdint.in.h: Define all type macros so that their expansion is
44149         a single typedef'ed token. Fixes a compilation failure in Boost which
44150         does "using ::int8_t;".
44151
44152 2008-11-18  Simon Josefsson  <simon@josefsson.org>
44153
44154         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
44155         gl_MANYWARN_ALL_GCC.
44156         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
44157         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
44158         * modules/manywarnings: New file.
44159         * MODULES.html.sh: Mention manywarnings module.
44160
44161 2008-11-18  Bruno Haible  <bruno@clisp.org>
44162
44163         * doc/gnulib-tool.texi (Unit tests): New section.
44164
44165 2008-11-18  Simon Josefsson  <simon@josefsson.org>
44166
44167         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
44168         paths like 'lib/po/foo.po'.
44169
44170 2008-11-17  Simon Josefsson  <simon@josefsson.org>
44171
44172         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
44173         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
44174
44175 2008-11-17  Simon Josefsson  <simon@josefsson.org>
44176
44177         * m4/warnings.m4: Use CPPFLAGS to really check whether the
44178         parameter works.
44179
44180 2008-11-17  Simon Josefsson  <simon@josefsson.org>
44181
44182         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
44183
44184 2008-11-17  Bruce Korb  <bkorb@gnu.org>
44185
44186         * modules/parse-duration-tests: New file.
44187         * tests/test-parse-duration.sh: New file.
44188         * tests/test-parse-duration.c: New file.
44189
44190         New module 'parse-duration'.
44191         * lib/parse-duration.h: New file.
44192         * lib/parse-duration.c: New file.
44193         * modules/parse-duration: New file.
44194
44195 2008-11-17  Bruno Haible  <bruno@clisp.org>
44196
44197         * tests/test-select-out.sh: Comment out the first pipe test.
44198         Reported by Simon Josefsson.
44199
44200 2008-11-17  Bruno Haible  <bruno@clisp.org>
44201
44202         * modules/getaddrinfo (Depends-on): Add servent, hostent.
44203         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
44204         gl_HOSTENT.
44205
44206 2008-11-17  Bruno Haible  <bruno@clisp.org>
44207
44208         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
44209         -lnetwork and -lnet. Needed for Haiku and BeOS.
44210
44211 2008-11-16  Bruno Haible  <bruno@clisp.org>
44212
44213         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
44214
44215 2008-11-16  Bruno Haible  <bruno@clisp.org>
44216
44217         Avoid test failure on Haiku.
44218         * tests/test-fsync.c: Include <errno.h>.
44219         (main): Don't require that fsync (0) fails.
44220
44221 2008-11-15  Bruno Haible  <bruno@clisp.org>
44222
44223         New module 'hostent'.
44224         * modules/hostent: New file.
44225         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
44226
44227 2008-11-15  Bruno Haible  <bruno@clisp.org>
44228
44229         New module 'servent'.
44230         * modules/servent: New file.
44231         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
44232
44233 2008-11-15  Bruno Haible  <bruno@clisp.org>
44234
44235         Avoid generating same test program with two different rules.
44236         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
44237         test-frexp to test-frexp-nolibm.
44238         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
44239         test-frexpl to test-frexpl-nolibm.
44240
44241 2008-11-15  Bruno Haible  <bruno@clisp.org>
44242
44243         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
44244         $(FREXPL_LIBM).
44245
44246 2008-11-15  Bruno Haible  <bruno@clisp.org>
44247
44248         * lib/netdb.in.h: Activate the definitions also when the system's
44249         <netdb.h> has 'struct addrinfo'.
44250         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
44251         EAI_OVERFLOW or AI_NUMERICSERV.
44252         * doc/posix-headers/netdb.texi: Document the problem.
44253
44254 2008-11-15  Bruno Haible  <bruno@clisp.org>
44255
44256         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
44257
44258         Make the 'sched' module work on platforms where <sched.h> exists but
44259         is incomplete (such as Haiku).
44260         * lib/sched.in.h; Include the system's <sched.h> if it exists.
44261         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
44262         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
44263         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
44264         HAVE_STRUCT_SCHED_PARAM.
44265         * modules/sched (Depends-on): Add include_next.
44266         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
44267         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
44268         * doc/posix-headers/sched.texi: Document the issue.
44269
44270 2008-11-13  Jim Meyering  <meyering@redhat.com>
44271
44272         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
44273         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
44274         test would fail due to the difference in the Report bugs to ...
44275         line.  The expected address is empty, "<>", while the actual
44276         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
44277
44278 2008-11-12  Bruno Haible  <bruno@clisp.org>
44279
44280         lstat: don't compile lstat.c on systems lacking lstat
44281         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
44282         which don't have lstat; this is handled by lib/sys_stat.in.h already.
44283         Reported by Daniel P. Berrange via Jim Meyering.
44284
44285 2008-11-12  Jim Meyering  <meyering@redhat.com>
44286
44287         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
44288
44289 2008-11-12  Simon Josefsson  <simon@josefsson.org>
44290
44291         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
44292         instead.
44293
44294 2008-11-12  Bruno Haible  <bruno@clisp.org>
44295
44296         * lib/unicodeio.c: Include unistr.h.
44297         (utf8_wctomb): Remove function.
44298         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
44299
44300 2008-11-12  Simon Josefsson  <simon@josefsson.org>
44301
44302         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
44303         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
44304         <bruno@clisp.org>.
44305         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
44306
44307 2008-11-12  Simon Josefsson  <simon@josefsson.org>
44308
44309         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
44310         * doc/gnulib.texi: Add section for warnings.
44311
44312 2008-11-11  Bruno Haible  <bruno@clisp.org>
44313
44314         * lib/sockets.h: Add a comment.
44315
44316 2008-11-11  Karl Berry  <karl@gnu.org>
44317
44318         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
44319
44320 2008-11-11  Eric Blake  <ebb9@byu.net>
44321
44322         fdl.texi: avoid git symlinks
44323         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
44324
44325 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
44326
44327         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
44328
44329 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
44330
44331         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
44332         (gl_WARN_ADD): Substitute $2 if literal.
44333
44334 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
44335
44336         * m4/warning.m4: Remove.
44337
44338 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
44339
44340         * m4/warnings.m4: Almost complete rewrite. :-)
44341
44342 2008-11-10  Simon Josefsson  <simon@josefsson.org>
44343
44344         * modules/warnings: New module.
44345         * m4/warnings.m4: New file.
44346         * MODULES.html.sh: Mention warnings module.
44347         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
44348         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44349
44350 2008-11-10  Eric Blake  <ebb9@byu.net>
44351
44352         fdl.texi: make a symlink to the latest version
44353         * doc/standards.texi: Revert today's earlier change.
44354         * doc/fdl-1.2.texi: Rename from old fdl.texi...
44355         * doc/fdl.texi: ...and replace this with a symlink to the newer
44356         fdl-1.3.texi.
44357
44358 2008-11-10  Bruno Haible  <bruno@clisp.org>
44359
44360         * tests/test-select-fd.c (main): Accept the result file name as fourth
44361         argument.
44362         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
44363         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
44364
44365 2008-11-10  Bruno Haible  <bruno@clisp.org>
44366
44367         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
44368         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
44369         as autoconf-substituted macros.
44370         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
44371         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
44372         gl_NETDB_H_DEFAULTS. Set these variables.
44373         * modules/netdb (Makefile.am): Substitute these variables.
44374
44375 2008-11-10  Eric Blake  <ebb9@byu.net>
44376
44377         standards.texi: include correct file for FDL 1.3
44378         * doc/standards.texi (GNU Free Documentation License): Change
44379         include file to pull in FDL 1.3, not 1.2.
44380
44381         fdl.texi: revert accidental change to license
44382         * doc/fdl.texi: This is FDL 1.2, not 1.3.
44383
44384 2008-11-10  Bruno Haible  <bruno@clisp.org>
44385
44386         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
44387         cross-compiling guesses also when the native compile gives no result.
44388
44389 2008-11-10  Bruno Haible  <bruno@clisp.org>
44390
44391         * lib/spawni.c (__spawni): Force variable into the stack.
44392
44393 2008-11-10  Bruno Haible  <bruno@clisp.org>
44394
44395         Add support for Haiku.
44396         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
44397         glibc and BeOS, but also on Haiku.
44398         * lib/fpurge.c (fpurge): Likewise.
44399         * lib/freadable.c (freadable): Likewise.
44400         * lib/freadahead.c (freadahead): Likewise.
44401         * lib/freading.c (freading): Likewise.
44402         * lib/freadptr.c (freadptr): Likewise.
44403         * lib/freadseek.c (freadptrinc): Likewise.
44404         * lib/fseeko.c (rpl_fseeko): Likewise.
44405         * lib/fseterr.c (fseterr): Likewise.
44406         * lib/fwritable.c (fwritable): Likewise.
44407         * lib/fwriting.c (fwriting): Likewise.
44408         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
44409
44410 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
44411
44412         * lib/config.charset: Treat Haiku like BeOS.
44413
44414 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
44415
44416         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
44417         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
44418
44419 2008-11-08  Bruno Haible  <bruno@clisp.org>
44420
44421         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
44422         AC_CACHE_CHECK.
44423
44424 2008-11-08  Bruno Haible  <bruno@clisp.org>
44425
44426         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
44427
44428 2008-11-08  Bruno Haible  <bruno@clisp.org>
44429
44430         * tests/test-select-fd.c: New file.
44431         * tests/test-select-in.sh: New file.
44432         * tests/test-select-out.sh: New file.
44433         * tests/test-select-stdin.c: New file.
44434         * modules/select-tests (Files): Add the new files.
44435         (Depends-on): Add gettimeofday.
44436         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
44437         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
44438         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
44439
44440 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
44441             Bruno Haible  <bruno@clisp.org>
44442
44443         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
44444
44445 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
44446
44447         * build-aux/pmccabe2html: Added support for C++ source files.
44448
44449 2008-11-05  Ben Pfaff  <blp@gnu.org>
44450
44451         Fix lib/close.c build on Windows.
44452         * modules/close (Files): Add lib/w32sock.h.
44453
44454 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
44455
44456         Accept Bison's NEWS format.
44457         * build-aux/announce-gen (print_news_deltas): Tweak
44458         $re_prefix.
44459
44460 2008-11-04  Bruno Haible  <bruno@clisp.org>
44461
44462         * modules/random_r (Maintainer): Add glibc.
44463
44464 2008-11-04  Simon Josefsson  <simon@josefsson.org>
44465
44466         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
44467         by karl@freefriends.org (Karl Berry).
44468         * doc/alloca.texi: Likewise.
44469         * doc/c-ctype.texi: Likewise.
44470         * doc/c-strcase.texi: Likewise.
44471         * doc/c-strcaseeq.texi: Likewise.
44472         * doc/c-strcasestr.texi: Likewise.
44473         * doc/c-strstr.texi: Likewise.
44474         * doc/c-strtod.texi: Likewise.
44475         * doc/c-strtold.texi: Likewise.
44476         * doc/ctime.texi: Likewise.
44477         * doc/error.texi: Likewise.
44478         * doc/fdl.texi: Likewise.
44479         * doc/gcd.texi: Likewise.
44480         * doc/getdate.texi: Likewise.
44481         * doc/gnulib-intro.texi: Likewise.
44482         * doc/gnulib-tool.texi: Likewise.
44483         * doc/gnulib.texi: Likewise.
44484         * doc/inet_ntoa.texi: Likewise.
44485         * doc/maintain.texi: Likewise.
44486         * doc/make-stds.texi: Likewise.
44487         * doc/quote.texi: Likewise.
44488         * doc/regexprops-generic.texi: Likewise.
44489         * doc/standards.texi: Likewise.
44490         * doc/verify.texi: Likewise.
44491         * doc/visibility.texi: Likewise.
44492         * doc/gnulib.texi (GNU Free Documentation License): Include
44493         fdl-1.3.texi instead of fdl.texi.
44494
44495 2008-11-04  Simon Josefsson  <simon@josefsson.org>
44496
44497         * doc/fdl-1.3.texi: New file, from
44498         <http://www.gnu.org/licenses/fdl-1.3.texi>.
44499         * modules/fdl-1.3: Add.
44500         * MODULES.html.sh: Add fdl-1.3.
44501
44502 2008-11-03  Bruno Haible  <bruno@clisp.org>
44503
44504         Make determination of absolute name of header file work with AIX xlc.
44505         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
44506         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
44507         preprocessing.
44508         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
44509         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
44510
44511 2008-11-03  Simon Josefsson  <simon@josefsson.org>
44512
44513         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
44514         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
44515         <ludo@gnu.org>.
44516
44517 2008-11-02  Bruno Haible  <bruno@clisp.org>
44518
44519         Mark 'strpbrk' obsolete.
44520         * modules/strpbrk (Status, Notice): New sections.
44521         * modules/strtok_r (Depends-on): Add strpbrk.
44522
44523 2008-11-02  Bruno Haible  <bruno@clisp.org>
44524
44525         Mark 'strdup' obsolete.
44526         * modules/strdup (Status, Notice): New sections.
44527         * modules/findprog (Depends-on): Add strdup.
44528         * modules/getaddrinfo (Depends-on): Likewise.
44529         * modules/localename (Depends-on): Likewise.
44530         * modules/relocatable-lib (Depends-on): Likewise.
44531         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
44532         * modules/relocatable-prog (Depends-on): Likewise.
44533         * modules/trim (Depends-on): Likewise.
44534         * modules/unictype/gen-ctype (Depends-on): Likewise.
44535         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
44536
44537 2008-11-02  Bruno Haible  <bruno@clisp.org>
44538
44539         Mark 'strcspn' obsolete.
44540         * modules/strcspn (Status, Notice): New sections.
44541
44542 2008-11-02  Bruno Haible  <bruno@clisp.org>
44543
44544         Mark 'rmdir' obsolete.
44545         * modules/rmdir (Status, Notice): New sections.
44546         * modules/clean-temp (Depends-on): Add rmdir.
44547         * modules/openat (Depends-on): Likewise.
44548
44549 2008-11-02  Bruno Haible  <bruno@clisp.org>
44550
44551         Mark 'raise' obsolete.
44552         * modules/raise (Status, Notice): New sections.
44553         (Include): Specify <signal.h>.
44554         * modules/stdio (Depends-on): Add raise.
44555         * modules/write (Depends-on): Likewise.
44556
44557 2008-11-02  Bruno Haible  <bruno@clisp.org>
44558
44559         Mark 'memset' obsolete.
44560         * modules/memset (Status, Notice): New sections.
44561
44562 2008-11-02  Bruno Haible  <bruno@clisp.org>
44563
44564         Mark 'memmove' obsolete.
44565         * modules/memmove (Status, Notice): New sections.
44566         * modules/argp (Depends-on): Add memmove.
44567         * modules/argz (Depends-on): Likewise.
44568         * modules/canonicalize (Depends-on): Likewise.
44569         * modules/canonicalize-lgpl (Depends-on): Likewise.
44570         * modules/fts (Depends-on): Likewise.
44571         * modules/getcwd (Depends-on): Likewise.
44572         * modules/human (Depends-on): Likewise.
44573         * modules/regex (Depends-on): Likewise.
44574         * modules/striconveh (Depends-on): Likewise.
44575         * modules/trim (Depends-on): Likewise.
44576         * modules/unistr/u8-move (Depends-on): Likewise.
44577         * modules/unistr/u16-move (Depends-on): Likewise.
44578         * modules/unistr/u32-move (Depends-on): Likewise.
44579
44580 2008-11-02  Bruno Haible  <bruno@clisp.org>
44581
44582         Mark 'memcpy' obsolete.
44583         * modules/memcpy (Status, Notice): New sections.
44584
44585 2008-11-02  Bruno Haible  <bruno@clisp.org>
44586
44587         Mark 'memcmp' obsolete.
44588         * modules/memcmp (Status, Notice): New sections.
44589         * modules/argmatch (Depends-on): Add memchr.
44590         * modules/backupfile (Depends-on): Likewise.
44591         * modules/c-strcasestr (Depends-on): Likewise.
44592         * modules/crypto/des (Depends-on): Likewise.
44593         * modules/csharpcomp (Depends-on): Likewise.
44594         * modules/fnmatch (Depends-on): Likewise.
44595         * modules/git-merge-changelog (Depends-on): Likewise.
44596         * modules/isnand (Depends-on): Likewise.
44597         * modules/isnand-nolibm (Depends-on): Likewise.
44598         * modules/isnanf (Depends-on): Likewise.
44599         * modules/isnanf-nolibm (Depends-on): Likewise.
44600         * modules/isnanl (Depends-on): Likewise.
44601         * modules/isnanl-nolibm (Depends-on): Likewise.
44602         * modules/mbchar (Depends-on): Likewise.
44603         * modules/memcoll (Depends-on): Likewise.
44604         * modules/quotearg (Depends-on): Likewise.
44605         * modules/regex (Depends-on): Likewise.
44606         * modules/relocatable-prog (Depends-on): Likewise.
44607         * modules/same (Depends-on): Likewise.
44608         * modules/signbit (Depends-on): Likewise.
44609         * modules/strcasestr-simple (Depends-on): Likewise.
44610         * modules/unictype/gen-ctype (Depends-on): Likewise.
44611         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
44612         * modules/uniname/uniname (Depends-on): Likewise.
44613         * modules/unistr/u8-cmp (Depends-on): Likewise.
44614
44615 2008-11-02  Bruno Haible  <bruno@clisp.org>
44616
44617         Mark 'memchr' obsolete.
44618         * modules/memchr (Status, Notice): New sections.
44619         * modules/argp (Depends-on): Add memchr.
44620         * modules/base64 (Depends-on): Likewise.
44621         * modules/c-strcasestr (Depends-on): Likewise.
44622         * modules/chdir-long (Depends-on): Likewise.
44623         * modules/fnmatch (Depends-on): Likewise.
44624         * modules/getsubopt (Depends-on): Likewise.
44625         * modules/git-merge-changelog (Depends-on): Likewise.
44626         * modules/glob (Depends-on): Likewise.
44627         * modules/strcasestr-simple (Depends-on): Likewise.
44628         * modules/strnlen (Depends-on): Likewise.
44629
44630 2008-11-02  Bruno Haible  <bruno@clisp.org>
44631
44632         Mark 'atexit' obsolete.
44633         * modules/atexit (Status, Notice): New sections.
44634         * modules/chdir-long (Depends-on): Add atexit.
44635         * modules/wait-process (Depends-on): Likewise.
44636
44637 2008-11-02  Bruno Haible  <bruno@clisp.org>
44638
44639         * gnulib-tool: New option --with-obsolete.
44640         (func_usage): Document it.
44641         (func_modules_transitive_closure): Drop obsolete dependencies if
44642         incobsolete is not true.
44643         (func_import): Read and save the incobsolete variable to the cache.
44644
44645 2008-11-02  Bruno Haible  <bruno@clisp.org>
44646
44647         * modules/TEMPLATE-EXTENDED: New field 'Status'.
44648         * gnulib-tool: New option --extract-status.
44649         (func_usage): Document it.
44650         (sed_extract_prog): Recognize it.
44651         (func_get_status): New function.
44652
44653 2008-10-30  Simon Josefsson  <simon@josefsson.org>
44654
44655         * modules/sockets (License): Change from LGPL to LGPLv2+.
44656
44657 2008-10-28  Simon Josefsson  <simon@josefsson.org>
44658
44659         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
44660
44661 2008-10-28  Simon Josefsson  <simon@josefsson.org>
44662
44663         * MODULES.html.sh (Support for systems lacking POSIX:2001):
44664         Mention times and sys_times.
44665         * modules/sys_times, modules/sys_times-tests: New modules.
44666         * modules/times, modules/times-tests: Likewise
44667         * m4/sys_times_h.m4: New file.
44668         * lib/sys_times.in.h: Likewise
44669         * lib/times.c: Likewise.
44670         * tests/test-sys_times.c: Likewise.
44671         * tests/test-times.c: Likewise.
44672         * doc/posix-headers/sys_times.texi: Update.
44673         * doc/posix-functions/times.texi: Update.
44674
44675 2008-10-28  Jim Meyering  <meyering@redhat.com>
44676
44677         * modules/tempname (Depends-on): Add lstat.
44678
44679         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
44680
44681 2008-10-28  Simon Josefsson  <simon@josefsson.org>
44682
44683         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
44684         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
44685         using idiom used elsewhere in gnulib.
44686
44687 2008-10-27  Jim Meyering  <meyering@redhat.com>
44688
44689         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
44690
44691 2008-10-27  Simon Josefsson  <simon@josefsson.org>
44692
44693         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
44694         TESTS_ENVIRONMENT, for shell scripts that needs to call built
44695         programs.
44696         * tests/test-argp-2.sh: Use $EXEEXT when needed.
44697
44698 2008-10-27  Simon Josefsson  <simon@josefsson.org>
44699
44700         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
44701
44702 2008-10-27  Bruno Haible  <bruno@clisp.org>
44703
44704         * tests/test-lstat.c: Include <stdio.h>.
44705
44706 2008-10-27  Simon Josefsson  <simon@josefsson.org>
44707
44708         * modules/lstat-tests: New module.
44709         * tests/test-lstat.c: New file.
44710
44711 2008-10-26  Jim Meyering  <meyering@redhat.com>
44712
44713         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
44714
44715 2008-10-26  Simon Josefsson  <simon@josefsson.org>
44716             Bruno Haible  <bruno@clisp.org>
44717
44718         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
44719         * modules/configmake (Include): Add a note that the include must come
44720         after all system headers.
44721         * lib/javaversion.c: Include configmake.h after all other includes.
44722
44723 2008-10-26  Bruno Haible  <bruno@clisp.org>
44724
44725         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
44726         HAVE_STRUCT_RANDOM_DATA to 1.
44727         (gl_STDLIB_H): Simplify.
44728
44729 2008-10-26  Simon Josefsson  <simon@josefsson.org>
44730
44731         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
44732         substitute HAVE_STRUCT_RANDOM_DATA.
44733         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
44734         random_data.
44735         * modules/stdlib (Makefile.am): Substitute
44736         HAVE_STRUCT_RANDOM_DATA.
44737
44738 2008-10-26  Simon Josefsson  <simon@josefsson.org>
44739
44740         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
44741         * doc/gnulib-intro.texi (Copyright): Likewise.
44742
44743 2008-10-26  Simon Josefsson  <simon@josefsson.org>
44744
44745         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
44746         findings.
44747
44748 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
44749             Bruno Haible  <bruno@clisp.org>
44750
44751         * lib/unistd.in.h: Include <winsock2.h>.
44752         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
44753         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
44754         Provide dummy declarations.
44755         (gethostname): Override.
44756         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
44757         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
44758         gl_PREREQ_SYS_H_WINSOCK2.
44759         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
44760         * doc/posix-functions/gethostname.texi: More details.
44761
44762 2008-10-25  Bruno Haible  <bruno@clisp.org>
44763
44764         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
44765         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
44766         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
44767
44768         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
44769         here ...
44770         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
44771         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
44772         gl_UNISTD_H_DEFAULTS.
44773
44774 2008-10-25  Eric Blake  <ebb9@byu.net>
44775
44776         signbit: avoid spurious compiler failure
44777         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
44778         declarations inside function.
44779
44780 2008-10-24  Simon Josefsson  <simon@josefsson.org>
44781             Bruno Haible  <bruno@clisp.org>
44782
44783         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
44784         * modules/random_r (Depends-on): Add stdint.
44785
44786 2008-10-24  Bruno Haible  <bruno@clisp.org>
44787
44788         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
44789         Eggert.
44790         * modules/strerror (License): Likewise.
44791
44792 2008-10-24  Jim Meyering  <meyering@redhat.com>
44793
44794         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
44795         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
44796
44797 2008-10-24  Eric Blake  <ebb9@byu.net>
44798
44799         getgroups: fix compilation when getgroups is available
44800         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
44801         but with <config.h> override of getgroups disabled.
44802
44803 2008-10-24  Simon Josefsson  <simon@josefsson.org>
44804
44805         * doc/gnulib.texi (Header files): Add note about C++ problems.
44806         Explained by Bruno Haible <bruno@clisp.org>.
44807
44808 2008-10-23  Bruno Haible  <bruno@clisp.org>
44809
44810         Define a dummy SA_NODEFER macro on Interix.
44811         * lib/signal.in.h (SA_NODEFER): Define fallback.
44812         Reported by Aleksey Cheusov <cheusov@tut.by> via
44813         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
44814
44815 2008-10-23  Bruno Haible  <bruno@clisp.org>
44816
44817         * modules/freadahead (License): Change to LGPLv2+.
44818         Suggested by Simon Josefsson.
44819
44820 2008-10-23  Jim Meyering  <meyering@redhat.com>
44821
44822         random_r: new module
44823         * modules/random_r: New file.
44824         * m4/random_r.m4: New file.
44825         * lib/random_r.c: New file, from glibc.
44826         * modules/random_r-tests: New file.
44827         * tests/test-random_r.c: New file.
44828         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
44829          Declare.
44830         (RAND_MAX): Define.
44831         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
44832         * modules/stdlib: Substitute them, too.
44833         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
44834         * doc/glibc-functions/initstate_r.texi: Mention the new module.
44835         * doc/glibc-functions/random_r.texi: Likewise.
44836         * doc/glibc-functions/setstate_r.texi: Likewise.
44837         * doc/glibc-functions/srandom_r.texi: Likewise.
44838         * config/srclist.txt: Mention it.
44839
44840 2008-10-23  David Lutterkort  <lutter@redhat.com>
44841
44842         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
44843         link requirement
44844
44845 2008-10-23  Jim Meyering  <meyering@redhat.com>
44846
44847         selinux-h: mark parameters of stub functions as intentionally unused
44848         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
44849         * lib/se-context.in.h: Likewise.
44850
44851 2008-10-22  Simon Josefsson  <simon@josefsson.org>
44852
44853         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
44854
44855 2008-10-22  Simon Josefsson  <simon@josefsson.org>
44856
44857         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
44858
44859 2008-10-22  Eric Blake  <ebb9@byu.net>
44860
44861         glthread/thread: avoid compiler warning
44862         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
44863         Add unreachable abort to silence compiler.
44864
44865 2008-10-22  Eric Blake  <ebb9@byu.net>
44866
44867         netdb: also supply struct addrinfo for cygwin 1.5.x
44868         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
44869         older cygwin.
44870         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
44871         cygwin.
44872         * doc/posix-headers/netdb.texi (netdb.h): Document this.
44873
44874 2008-10-22  Bruno Haible  <bruno@clisp.org>
44875
44876         * users.txt: Update entry about pspp.
44877
44878 2008-10-21  Bruno Haible  <bruno@clisp.org>
44879
44880         Simplification.
44881         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
44882         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
44883
44884         Simplification.
44885         * lib/ioctl.c (ioctl): Don't undefine.
44886         * lib/socket.c (socket): Don't undefine.
44887
44888         Remove unused module indicator macros.
44889         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
44890         GNULIB_$1 as a C macro.
44891
44892         * doc/posix-functions/close.texi: Undo last change.
44893         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
44894         Windows platforms.
44895
44896 2008-10-21  Bruno Haible  <bruno@clisp.org>
44897
44898         Add gethostname() declaration to <unistd.h>.
44899         * lib/unistd.in.h (gethostname): New declaration.
44900         * lib/gethostname.c: Include <unistd.h>.
44901         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
44902         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
44903         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
44904         and HAVE_GETHOSTNAME.
44905         * modules/gethostname (Depends-on): Add unistd.
44906         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44907         (Include): Specify <unistd.h>.
44908         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
44909         HAVE_GETHOSTNAME.
44910         * tests/test-gethostname.c: Include <unistd.h> first.
44911
44912 2008-10-21  Bruno Haible  <bruno@clisp.org>
44913
44914         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
44915         * modules/select-tests (Depends-on): Likewise.
44916         Reported by Simon Josefsson.
44917
44918 2008-10-21  Simon Josefsson  <simon@josefsson.org>
44919
44920         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
44921         * lib/accept.c: New file, based on winsock.c.
44922         * lib/bind.c: New file, based on winsock.c.
44923         * lib/connect.c: New file, based on winsock.c.
44924         * lib/getpeername.c: New file, based on winsock.c.
44925         * lib/getsockname.c: New file, based on winsock.c.
44926         * lib/getsockopt.c: New file, based on winsock.c.
44927         * lib/ioctl.c: New file, based on winsock.c.
44928         * lib/listen.c: New file, based on winsock.c.
44929         * lib/recv.c: New file, based on winsock.c.
44930         * lib/recvfrom.c: New file, based on winsock.c.
44931         * lib/send.c: New file, based on winsock.c.
44932         * lib/sendto.c: New file, based on winsock.c.
44933         * lib/setsockopt.c: New file, based on winsock.c.
44934         * lib/shutdown.c: New file, based on winsock.c.
44935         * lib/socket.c: New file, based on winsock.c.
44936         * lib/w32sock.h: New file, based on winsock.c.
44937         * lib/winsock.c: Remove file.
44938         * modules/accept: Likewise.
44939         * modules/bind: Likewise.
44940         * modules/connect: Likewise.
44941         * modules/getpeername: Likewise.
44942         * modules/getsockname: Likewise.
44943         * modules/getsockopt: Likewise.
44944         * modules/ioctl: Likewise.
44945         * modules/listen: Likewise.
44946         * modules/recv: Likewise.
44947         * modules/recvfrom: Likewise.
44948         * modules/send: Likewise.
44949         * modules/sendto: Likewise.
44950         * modules/setsockopt: Likewise.
44951         * modules/shutdown: Likewise.
44952         * modules/socket: Use socket.c instead of winsock.c.
44953         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
44954         * doc/posix-functions/accept.texi: Doc fix.
44955         * doc/posix-functions/bind.texi: Doc fix.
44956         * doc/posix-functions/close.texi: Doc fix.
44957         * doc/posix-functions/connect.texi: Doc fix.
44958         * doc/posix-functions/getpeername.texi: Doc fix.
44959         * doc/posix-functions/getsockname.texi: Doc fix.
44960         * doc/posix-functions/getsockopt.texi: Doc fix.
44961         * doc/posix-functions/ioctl.texi: Doc fix.
44962         * doc/posix-functions/listen.texi: Doc fix.
44963         * doc/posix-functions/recv.texi: Doc fix.
44964         * doc/posix-functions/recvfrom.texi: Doc fix.
44965         * doc/posix-functions/send.texi: Doc fix.
44966         * doc/posix-functions/sendto.texi: Doc fix.
44967         * doc/posix-functions/setsockopt.texi: Doc fix.
44968         * doc/posix-functions/shutdown.texi: Doc fix.
44969         * doc/posix-functions/socket.texi: Doc fix.
44970
44971 2008-10-20  Bruno Haible  <bruno@clisp.org>
44972
44973         Take into account the role of SIGABRT_COMPAT on Windows 2008.
44974         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
44975         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
44976         as an alias for SIGABRT.
44977         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
44978         (sigaction): Map it to SIGABRT.
44979         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
44980
44981 2008-10-20  Bruno Haible  <bruno@clisp.org>
44982
44983         * lib/fts.c: Don't include lstat.h.
44984         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
44985
44986         Move the lstat() declaration to <sys/stat.h>.
44987         * lib/lstat.h: Remove file.
44988         * lib/sys_stat.in.h: Add special invocation convention.
44989         (lstat): New declaration.
44990         * lib/lstat.c (orig_lstat): New function.
44991         (rpl_lstat): Use orig_lstat instead of lstat.
44992         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
44993         AC_C_INLINE. Set REPLACE_LSTAT.
44994         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
44995         and REPLACE_LSTAT.
44996         * modules/lstat (Files): Remove lib/lstat.h.
44997         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
44998         (Include): Specify <sys/stat.h> instead of lstat.h.
44999         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
45000         REPLACE_LSTAT.
45001         * NEWS: Mention the change.
45002
45003 2008-10-20  Bruno Haible  <bruno@clisp.org>
45004
45005         * modules/posix_spawn-tests: New file.
45006         * tests/test-posix_spawn3.c: New file.
45007
45008 2008-10-20  Bruno Haible  <bruno@clisp.org>
45009
45010         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
45011         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
45012         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
45013         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
45014         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
45015
45016 2008-10-20  Bruno Haible  <bruno@clisp.org>
45017
45018         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
45019         of posix_spawn on AIX 5.3.
45020
45021 2008-10-20  Bruno Haible  <bruno@clisp.org>
45022
45023         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
45024
45025 2008-10-20  Bruno Haible  <bruno@clisp.org>
45026
45027         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
45028         of AC_LANG_PROGRAM.
45029
45030 2008-10-20  Simon Josefsson  <simon@josefsson.org>
45031
45032         * lib/netdb.in.h: Don't define GNU specific constants until they
45033         are supported or needed.  Reported by Bruno Haible
45034         <bruno@clisp.org>.
45035
45036 2008-10-20  Simon Josefsson  <simon@josefsson.org>
45037
45038         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
45039
45040 2008-10-20  Simon Josefsson  <simon@josefsson.org>
45041
45042         * lib/getaddrinfo.h: Remove file.
45043         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
45044         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
45045         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
45046         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
45047         * modules/netdb: Substitute GNULIB_GETADDRINFO.
45048         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
45049         * tests/test-getaddrinfo.c: Likewise.
45050         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
45051         * NEWS: Mention change.
45052
45053 2008-10-19  Bruno Haible  <bruno@clisp.org>
45054
45055         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
45056
45057 2008-10-19  Bruno Haible  <bruno@clisp.org>
45058
45059         * lib/wait-process.c: Include simply <sys/wait.h>.
45060         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
45061         WIFSTOPPED): Remove fallback definitions.
45062         * modules/wait-process (Depends-on): Add sys_wait.
45063
45064         New module 'sys_wait'.
45065         * modules/sys_wait: New file.
45066         * lib/sys_wait.in.h: New file, partially copied from
45067         lib/wait-process.c.
45068         * m4/sys_wait_h.m4: New file.
45069         * doc/posix-headers/sys_wait.texi: Mention the new module.
45070
45071 2008-10-19  Bruno Haible  <bruno@clisp.org>
45072
45073         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
45074
45075 2008-10-19  Bruno Haible  <bruno@clisp.org>
45076
45077         Assume that waitpid() fills an 'int' status, not a 'union wait'.
45078         * lib/wait-process.c (WAIT_T): Remove type.
45079         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
45080         (wait_subprocess): Update.
45081
45082 2008-10-19  Bruno Haible  <bruno@clisp.org>
45083
45084         New module 'atoll'.
45085         * modules/atoll: New file.
45086         * lib/stdlib.in.h (atoll): New declaration.
45087         * lib/atoll.c: New file, from glibc with modifications.
45088         * m4/atoll.m4: New file.
45089         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
45090         HAVE_ATOLL.
45091         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
45092         * doc/posix-functions/atoll.texi: Mention the new module.
45093
45094 2008-10-19  Bruno Haible  <bruno@clisp.org>
45095
45096         Add strtoull() declaration to <stdlib.h>.
45097         * lib/stdlib.in.h (strtoull): New declaration.
45098         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
45099         Set HAVE_STRTOULL.
45100         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
45101         HAVE_STRTOULL.
45102         * modules/strtoull (Depends-on): Add stdlib.
45103         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45104         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
45105         HAVE_STRTOULL.
45106
45107 2008-10-19  Bruno Haible  <bruno@clisp.org>
45108
45109         Add strtoll() declaration to <stdlib.h>.
45110         * lib/stdlib.in.h (strtoll): New declaration.
45111         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
45112         Set HAVE_STRTOLL.
45113         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
45114         HAVE_STRTOLL.
45115         * modules/strtoll (Depends-on): Add stdlib.
45116         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45117         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
45118
45119 2008-10-19  Bruno Haible  <bruno@clisp.org>
45120
45121         * modules/bcopy (Depends-on): Add strings.
45122         (Include): Specify <strings.h>.
45123
45124 2008-10-19  Bruno Haible  <bruno@clisp.org>
45125
45126         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
45127
45128 2008-10-19  Bruno Haible  <bruno@clisp.org>
45129
45130         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
45131         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
45132         mingw.
45133
45134 2008-10-19  Bruno Haible  <bruno@clisp.org>
45135
45136         * lib/atanl.c: Don't include isnanl.h.
45137         * lib/cosl.c: Likewise.
45138         * lib/ldexpl.c: Likewise.
45139         * lib/logl.c: Likewise.
45140         * lib/sinl.c: Likewise.
45141         * lib/sqrtl.c: Likewise.
45142         * lib/tanl.c: Likewise.
45143
45144         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
45145         * lib/isnanf.h: Remove file.
45146         * lib/isnand.h: Remove file.
45147         * lib/isnanl.h: Remove file.
45148         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
45149         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
45150         macros.
45151         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
45152         HAVE_ISNANF, don't define it as a C macro.
45153         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
45154         HAVE_ISNAND, don't define it as a C macro.
45155         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
45156         HAVE_ISNANL, don't define it as a C macro.
45157         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
45158         HAVE_ISNAN[FDL].
45159         * modules/isnanf (Files): Remove lib/isnanf.h.
45160         (Depends-on): Add math.
45161         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
45162         (Include): Specify <math.h> instead of isnanf.h.
45163         * modules/isnand (Files): Remove lib/isnand.h.
45164         (Depends-on): Add math.
45165         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
45166         (Include): Specify <math.h> instead of isnand.h.
45167         * modules/isnanl (Files): Remove lib/isnanl.h.
45168         (Depends-on): Add math.
45169         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
45170         (Include): Specify <math.h> instead of isnanl.h.
45171         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
45172         HAVE_ISNAN[FDL].
45173         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
45174         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
45175         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
45176         * NEWS: Mention the change.
45177
45178 2008-10-18  Bruno Haible  <bruno@clisp.org>
45179
45180         Add getusershell(), setusershell(), endusershell() declarations to
45181         <unistd.h>.
45182         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
45183         declarations.
45184         * lib/getusershell.c: Include unistd.h.
45185         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
45186         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
45187         HAVE_GETUSERSHELL.
45188         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
45189         and HAVE_GETUSERSHELL.
45190         * modules/getusershell (Depends-on): Add unistd, extensions.
45191         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45192         (Include): Specify <unistd.h>.
45193         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
45194         HAVE_GETUSERSHELL.
45195
45196 2008-10-18  Bruno Haible  <bruno@clisp.org>
45197
45198         Add a getloadavg() declaration to <stdlib.h>.
45199         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
45200         getloadavg declaration.
45201         (getloadavg): New declaration.
45202         * lib/getloadavg.c: Include <stdlib.h> first.
45203         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
45204         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
45205         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
45206         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
45207         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
45208         * modules/getloadavg (Depends-on): Add stdlib, extensions.
45209         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45210         (Include): Specify <stdlib.h>.
45211         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
45212         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
45213
45214 2008-10-18  Bruno Haible  <bruno@clisp.org>
45215
45216         * lib/dirchownmod.c: Don't include lchmod.h.
45217
45218         Move the lchmod() declaration to <sys/stat.h>.
45219         * lib/lchmod.h: Remove file.
45220         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
45221         (lchmod): New declaration, moved here from lib/lchown.h.
45222         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
45223         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
45224         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
45225         and HAVE_LCHMOD.
45226         * modules/lchmod (Files): Remove lib/lchmod.h.
45227         (Depends-on): Add sys_stat, extensions.
45228         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
45229         (Include): Specify <sys/stat.h> instead of lchmod.h.
45230         * modules/sys_stat (Depends-on): Add link-warning.
45231         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
45232         definition of GL_LINK_WARNING.
45233         * NEWS: Mention the change.
45234
45235 2008-10-18  Bruno Haible  <bruno@clisp.org>
45236
45237         * lib/fchdir.c: Don't include dirfd.h.
45238         * lib/fts.c: Likewise.
45239         * lib/getcwd.c: Likewise.
45240         * lib/glob.c: Likewise.
45241
45242         Move the dirfd() declaration to <dirent.h>.
45243         * lib/dirfd.h: Remove file.
45244         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
45245         (dirfd): New declaration.
45246         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
45247         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
45248         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
45249         HAVE_DECL_DIRFD.
45250         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
45251         HAVE_DECL_DIRFD.
45252         * modules/dirfd (Files): Remove lib/dirfd.h.
45253         (Depends-on): Add dirent, extensions.
45254         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
45255         (Include): Specify <dirent.h> instead of dirfd.h.
45256         * modules/dirent (Depends-on): Add link-warning.
45257         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
45258         definition of GL_LINK_WARNING.
45259         * NEWS: Mention the change.
45260
45261 2008-10-18  Bruno Haible  <bruno@clisp.org>
45262
45263         Move the euidaccess() declaration to <unistd.h>.
45264         * lib/euidaccess.h: Remove file.
45265         * lib/unistd.in.h (euidaccess): New declaration.
45266         * lib/euidaccess.c: Don't include euidaccess.h.
45267         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
45268         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
45269         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
45270         and HAVE_EUIDACCESS.
45271         * modules/euidaccess (Files): Remove lib/euidaccess.h.
45272         (Depends-on): Add unistd.
45273         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45274         (Include): Specify <unistd.h> instead of euidaccess.h.
45275         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
45276         HAVE_EUIDACCESS.
45277         * NEWS: Mention the change.
45278
45279 2008-10-18  Bruno Haible  <bruno@clisp.org>
45280
45281         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
45282
45283         Move the getdomainname() declaration to <unistd.h>.
45284         * lib/getdomainname.h: Remove file.
45285         * lib/unistd.in.h (getdomainname): New declaration.
45286         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
45287         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
45288         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
45289         HAVE_GETDOMAINNAME.
45290         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45291         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
45292         * modules/getdomainname (Files): Remove lib/getdomainname.h.
45293         (Depends-on): Add unistd, extensions.
45294         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45295         (Includes): Specify <unistd.h> instead of getdomainname.h.
45296         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
45297         HAVE_GETDOMAINNAME.
45298         * NEWS: Mention the change.
45299
45300 2008-10-18  Bruno Haible  <bruno@clisp.org>
45301
45302         * modules/dirent: New file.
45303         * m4/dirent_h.m4: New file.
45304         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
45305         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
45306         * modules/fchdir (Files): Remove lib/dirent.in.h.
45307         (Depends-on): Add dirent.
45308         (Makefile.am): Move rules to modules/dirent.
45309         * doc/posix-headers/dirent.texi: Mention the new module.
45310
45311 2008-10-18  Bruno Haible  <bruno@clisp.org>
45312
45313         Avoid -Wunused-parameter warnings in public gnulib header files.
45314         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
45315         macro.
45316         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
45317
45318 2008-10-18  Bruno Haible  <bruno@clisp.org>
45319
45320         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
45321         * doc/glibc-functions/error.texi: Mention the module 'error'.
45322         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
45323         * doc/glibc-functions/getdomainname.texi: Mention the module
45324         'getdomainname'.
45325         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
45326         * doc/glibc-functions/getpagesize.texi: Mention the module
45327         'getpagesize'.
45328         * doc/glibc-functions/getusershell.texi: Mention the module
45329         'getusershell'.
45330         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
45331         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
45332         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
45333         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
45334         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
45335         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
45336         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
45337         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
45338         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
45339         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
45340         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
45341         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
45342         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
45343         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
45344
45345 2008-10-17  Bruno Haible  <bruno@clisp.org>
45346
45347         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
45348         HP-UX and IRIX, use -0.0L.
45349         * tests/test-ceill.c (minus_zero): Likewise.
45350         * tests/test-floorl.c (minus_zero): Likewise.
45351         * tests/test-frexpl.c (minus_zero): Likewise.
45352         * tests/test-isnan.c (minus_zerol): Likewise.
45353         * tests/test-isnanl.h (minus_zero): Likewise.
45354         * tests/test-ldexpl.c (minus_zero): Likewise.
45355         * tests/test-roundl.c (minus_zero): Likewise.
45356         * tests/test-signbit.c (minus_zerol): Likewise.
45357         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
45358         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
45359         * tests/test-truncl.c (minus_zero): Likewise.
45360         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
45361         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
45362         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
45363         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
45364
45365 2008-10-17  Bruno Haible  <bruno@clisp.org>
45366
45367         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
45368         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
45369         that it gets activated only for gcc >= 3.0.
45370         * lib/dirent.in.h: Likewise.
45371         * lib/errno.in.h: Likewise.
45372         * lib/fcntl.in.h: Likewise.
45373         * lib/float.in.h: Likewise.
45374         * lib/iconv.in.h: Likewise.
45375         * lib/inttypes.in.h: Likewise.
45376         * lib/locale.in.h: Likewise.
45377         * lib/math.in.h: Likewise.
45378         * lib/netdb.in.h: Likewise.
45379         * lib/netinet_in.in.h: Likewise.
45380         * lib/search.in.h: Likewise.
45381         * lib/signal.in.h: Likewise.
45382         * lib/spawn.in.h: Likewise.
45383         * lib/stdarg.in.h: Likewise.
45384         * lib/stdint.in.h: Likewise.
45385         * lib/stdio.in.h: Likewise.
45386         * lib/stdlib.in.h: Likewise.
45387         * lib/string.in.h: Likewise.
45388         * lib/strings.in.h: Likewise.
45389         * lib/sys_file.in.h: Likewise.
45390         * lib/sys_ioctl.in.h: Likewise.
45391         * lib/sys_select.in.h: Likewise.
45392         * lib/sys_socket.in.h: Likewise.
45393         * lib/sys_stat.in.h: Likewise.
45394         * lib/sys_time.in.h: Likewise.
45395         * lib/sysexits.in.h: Likewise.
45396         * lib/time.in.h: Likewise.
45397         * lib/unistd.in.h: Likewise.
45398         * lib/wchar.in.h: Likewise.
45399         * lib/wctype.in.h: Likewise.
45400         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
45401
45402 2008-10-17  Jim Meyering  <meyering@redhat.com>
45403
45404         ignore-value: don't depend on inline module
45405         * modules/ignore-value (Depends-on): Remove 'inline'.
45406         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
45407         Suggestion from Bruno Haible.
45408
45409 2008-10-17  Bruno Haible  <bruno@clisp.org>
45410
45411         New implementation of condition variables for Win32.
45412         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
45413         (gl_linked_waitqueue_t): New type.
45414         (gl_cond_t): Use it.
45415         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
45416         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
45417         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
45418         (glthread_cond_init_func, glthread_cond_wait_func,
45419         glthread_cond_timedwait_func, glthread_cond_signal_func,
45420         glthread_cond_broadcast_func, glthread_cond_destroy_func):
45421         Reimplemented on the basis of gl_linked_waitqueue_t.
45422         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
45423         gl_waitqueue_t.
45424         (gl_rwlock_t): Update.
45425         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
45426
45427 2008-10-17  Simon Josefsson  <simon@josefsson.org>
45428
45429         * modules/recvfrom (Depends-on): Add dependency on getpeername.
45430         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
45431
45432 2008-10-17  Jim Meyering  <meyering@redhat.com>
45433
45434         ignore-value: new module
45435         * modules/ignore-value: New file.
45436         * lib/ignore-value.h: New file.
45437         * MODULES.html.sh (Compiler warning management): New section,
45438         just for this module.  More to come.
45439
45440 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
45441
45442         open-safer.c: avoid 'signed and unsigned in conditional...' warning
45443         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
45444         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
45445
45446 2008-10-16  Jim Meyering  <meyering@redhat.com>
45447
45448         openat-die.c: avoid 'no previous prototype' warning
45449         * lib/openat-die.c: Include "openat.h".
45450         Reported by Reuben Thomas <rrt@sc3d.org>.
45451
45452 2008-10-16  Simon Josefsson  <simon@josefsson.org>
45453
45454         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
45455         * lib/netdb.in.h: Fix typo.
45456         Reported by Bruno Haible  <bruno@clisp.org>
45457
45458         * lib/netdb.in.h: Include sys/socket.h for platforms without
45459         netdb.h, to get structures like hostent on MinGW.
45460         * modules/netdb (Depends-on): Add sys_socket.
45461
45462 2008-10-15  Simon Josefsson  <simon@josefsson.org>
45463
45464         * modules/netdb, modules/netdb-tests: New file.
45465         * m4/netdb_h.m4: New file.
45466         * lib/netdb.in.h: Add, currently just an empty file pending
45467         definitions.
45468         * tests/test-netdb.c: New file.
45469         * doc/posix-headers/netdb.texi: Mention that we replace it if
45470         needed.
45471         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
45472         netdb.
45473
45474 2008-10-15  Simon Josefsson  <simon@josefsson.org>
45475
45476         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
45477         with code.
45478
45479 2008-10-13  Bruno Haible  <bruno@clisp.org>
45480
45481         * lib/glthread/cond.c (glthread_cond_wait_func,
45482         glthread_cond_timedwait_func): Add a comment.
45483
45484 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
45485
45486         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
45487         * tests/test-select.c: Likewise,
45488
45489 2008-10-13  Bruno Haible  <bruno@clisp.org>
45490
45491         * lib/glthread/cond.c (glthread_cond_wait_func,
45492         glthread_cond_timedwait_func): Fix variable name.
45493         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
45494
45495 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
45496
45497         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
45498         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
45499         struct sockaddr.sa_len.
45500         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
45501
45502 2008-10-13  Simon Josefsson  <simon@josefsson.org>
45503
45504         * build-aux/pmccabe2html: Add css and css_url parameters.
45505
45506 2008-10-12  Bruno Haible  <bruno@clisp.org>
45507
45508         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
45509         calling aclx_get.
45510         Reported by Rainer Tammer <tammer@tammer.net>.
45511
45512 2008-10-12  Bruno Haible  <bruno@clisp.org>
45513
45514         Use msvcrt aware primitives for creation/termination of Win32 threads.
45515         * lib/glthread/thread.c: Include <process.h>.
45516         (glthread_create_func): Use _beginthreadex instead of CreateThread.
45517         (wrapper_func): Update signature.
45518         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
45519
45520 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
45521             Bruno Haible  <bruno@clisp.org>
45522
45523         Provide a Win32 implementation of the 'cond' module.
45524         * lib/glthread/cond.h [USE_WIN32]: New implementation.
45525         * lib/glthread/cond.c (glthread_cond_init_func,
45526         glthread_cond_wait_func, glthread_cond_timedwait_func,
45527         glthread_cond_signal_func, glthread_cond_broadcast_func,
45528         glthread_cond_destroy_func) [USE_WIN32]: New functions.
45529         * modules/cond (Dependencies): Add gettimeofday.
45530
45531 2008-10-11  Bruno Haible  <bruno@clisp.org>
45532
45533         Make sleep work on older versions of mingw.
45534         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
45535         only whether it exists.
45536         * doc/posix-functions/sleep.texi: Mention the problem with older
45537         versions of mingw.
45538
45539 2008-10-11  Bruno Haible  <bruno@clisp.org>
45540
45541         New module 'shutdown'.
45542         * modules/shutdown: New file.
45543         * lib/sys_socket.in.h (shutdown): New declaration.
45544         * lib/winsock.c (shutdown): New function.
45545         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
45546         GNULIB_SHUTDOWN.
45547         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
45548         * doc/posix-functions/shutdown.texi: Document the new module.
45549
45550 2008-10-11  Jim Meyering  <meyering@redhat.com>
45551
45552         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
45553
45554 2008-10-11  Bruno Haible  <bruno@clisp.org>
45555
45556         New module 'fclose'.
45557         * modules/fclose: New file.
45558         * lib/stdio.in.h (fclose): New declaration.
45559         * lib/fclose.c: New file.
45560         * m4/fclose.m4: New file.
45561         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
45562         REPLACE_FCLOSE.
45563         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
45564         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
45565         REPLACE_FCLOSE.
45566         * modules/close (Depends-on): fclose.
45567         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
45568
45569 2008-10-11  Bruno Haible  <bruno@clisp.org>
45570
45571         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
45572         set errno and don't call _close.
45573
45574 2008-10-10  Bruno Haible  <bruno@clisp.org>
45575
45576         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
45577         ACL, not afterwards. Fixes test failure on Cygwin.
45578
45579 2008-10-09  Ben Pfaff  <blp@gnu.org>
45580
45581         * build-aux/announce-gen: Fix gnulib version related part of usage
45582         message.  Die with a useful error message if no tarballs are
45583         found.
45584
45585 2008-10-10  Jim Meyering  <meyering@redhat.com>
45586
45587         bootstrap: use git's --depth=N option only if it's supported
45588         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
45589         recognize the --depth option.  Reported by Pádraig Brady.
45590
45591 2008-10-09  Bruno Haible  <bruno@clisp.org>
45592
45593         New module 'ioctl'.
45594         * modules/ioctl: New file.
45595         * lib/sys_socket.in.h (ioctl): Remove declaration.
45596         * lib/winsock.c: Include <sys/ioctl.h>.
45597         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
45598         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
45599         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
45600         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
45601         * doc/posix-functions/ioctl.texi: Mention the new module.
45602
45603 2008-10-09  Bruno Haible  <bruno@clisp.org>
45604
45605         New module 'sys_ioctl'.
45606         * lib/sys_ioctl.in.h: New file.
45607         * m4/sys_ioctl_h.m4: New file.
45608         * modules/sys_ioctl: New file.
45609         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
45610
45611 2008-10-09  Bruno Haible  <bruno@clisp.org>
45612
45613         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
45614         * lib/winsock.c: Include <stdarg.h>.
45615         (rpl_ioctl): Change to second argument 'int' and then varargs.
45616
45617 2008-10-09  Bruno Haible  <bruno@clisp.org>
45618
45619         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
45620         when the sys_socket module is present and the system has <winsock2.h>.
45621
45622 2008-10-09  Bruno Haible  <bruno@clisp.org>
45623
45624         * doc/posix-functions/close.texi: Mention module 'close' instead of
45625         module 'sys_socket'.
45626
45627 2008-10-09  Bruno Haible  <bruno@clisp.org>
45628
45629         * doc/glibc-headers/sys_ioctl.texi: New file.
45630         * doc/gnulib.texi: Include it.
45631
45632 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45633             Bruno Haible  <bruno@clisp.org>
45634
45635         Combine the two replacements of 'close'.
45636         * lib/sys_socket.in.h (close): Define to a reminder to include
45637         <unistd.h>.
45638         (_gl_close_fd_maybe_socket): New declaration.
45639         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
45640         * lib/winsock.c (close): Remove undefinition.
45641         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
45642         needed for the gnulib module 'close'.
45643         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
45644         define to an error symbol or to a warning, if suitable.
45645         * lib/close.c: Include <sys/socket.h>.
45646         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
45647         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
45648         UNISTD_H_HAVE_WINSOCK2_H.
45649         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
45650         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45651         UNISTD_H_HAVE_WINSOCK2_H.
45652         * modules/sys_socket (Files): Add m4/unistd_h.m4.
45653         (configure.ac): Set a module indicator.
45654         (Makefile.am): Substitute GNULIB_CLOSE.
45655         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
45656         * modules/poll-tests (Depends-on): Add close.
45657         * modules/select-tests (Depends-on): Likewise.
45658
45659 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45660             Bruno Haible  <bruno@clisp.org>
45661
45662         New module 'close'.
45663         * modules/close: New file.
45664         * lib/unistd.in.h (close): Move declaration out of the
45665         FCHDIR_REPLACEMENT scope.
45666         (_gl_unregister_fd): New declaration.
45667         * lib/close.c: New file.
45668         * lib/fchdir.c (rpl_close): Remove function.
45669         * m4/close.m4: New file.
45670         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
45671         close.
45672         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
45673         REPLACE_CLOSE.
45674         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
45675         REPLACE_CLOSE.
45676         * modules/fchdir (Depends-on): Add close.
45677
45678 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45679             Bruno Haible  <bruno@clisp.org>
45680
45681         * lib/fcntl.in.h (open): Simplify conditionals.
45682         (_gl_register_fd): New declaration.
45683         * lib/fchdir.c (rpl_open): Remove function.
45684         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
45685         also.
45686         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
45687         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
45688         open.
45689
45690 2008-10-09  Jim Meyering  <meyering@redhat.com>
45691
45692         GNUmakefile: use the more name-space-friendly "_version"
45693         * top/GNUmakefile (_dummy): Update.
45694         (_version): Rename from "version".
45695
45696 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45697             Bruno Haible  <bruno@clisp.org>
45698
45699         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
45700         rpl_close.
45701         (_gl_register_fd): New function, extracted from rpl_open.
45702         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
45703         (rpl_open, rpl_opendir): Use _gl_register_fd.
45704
45705 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45706
45707         Fix organization of 'open' replacement.
45708         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
45709         (gl_FUNC_OPEN): Use it.
45710         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
45711
45712 2008-10-08  Bruno Haible  <bruno@clisp.org>
45713
45714         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
45715
45716 2008-10-08  Simon Josefsson  <simon@josefsson.org>
45717
45718         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
45719         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
45720         listen).
45721
45722 2008-10-08  Eric Blake  <ebb9@byu.net>
45723
45724         GNUmakefile: add 'make version' target
45725         * top/GNUmakefile (_curr-ver): Split version update rules...
45726         (version): ...into a target.
45727
45728 2008-10-07  Bruno Haible  <bruno@clisp.org>
45729
45730         Use a more portable replacement expression for -0.0L.
45731         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
45732         instead of -0.0L. Fix m4 quotation.
45733
45734         * tests/test-signbit.c: Include <float.h>.
45735         (minus_zero): New variable.
45736         (test_signbitl): Use minus_zero instead of -zero.
45737         * modules/signbit-tests (Depends-on): Add float.
45738
45739         * tests/test-ceill.c: Include <float.h>.
45740         (zero): Remove variable.
45741         (minus_zero): New variable.
45742         (main): Use minus_zero instead of -zero.
45743         * modules/ceill-tests (Depends-on): Add float.
45744
45745         * tests/test-floorl.c: Include <float.h>.
45746         (zero): Remove variable.
45747         (minus_zero): New variable.
45748         (main): Use minus_zero instead of -zero.
45749         * modules/floorl-tests (Depends-on): Add float.
45750
45751         * tests/test-roundl.c: Include <float.h>.
45752         (zero): Remove variable.
45753         (minus_zero): New variable.
45754         (main): Use minus_zero instead of -zero.
45755         * modules/roundl-tests (Depends-on): Add float.
45756
45757         * tests/test-truncl.c: Include <float.h>.
45758         (zero): Remove variable.
45759         (minus_zero): New variable.
45760         (main): Use minus_zero instead of -zero.
45761         * modules/truncl-tests (Depends-on): Add float.
45762
45763         * tests/test-frexpl.c (zero): Remove variable.
45764         (minus_zero): New variable.
45765         (main): Use minus_zero instead of -zero.
45766         * modules/frexpl-tests (Depends-on): Add float.
45767
45768         * tests/test-isnan.c (zerol): Remove variable.
45769         (minus_zerol): New variable.
45770         (test_long_double): Use minus_zerol instead of -zerol.
45771         * modules/isnan-tests (Depends-on): Add float.
45772
45773         * tests/test-isnanl.h (zero): Remove variable.
45774         (minus_zero): New variable.
45775         (main): Use minus_zero instead of -zero.
45776         * modules/isnanl-nolibm-tests (Depends-on): Add float.
45777         * modules/isnanl-tests (Depends-on): Add float.
45778
45779         * tests/test-ldexpl.c (zero): Remove variable.
45780         (minus_zero): New variable.
45781         (main): Use minus_zero instead of -zero.
45782         * modules/ldexpl-tests (Depends-on): Add float.
45783
45784         * tests/test-snprintf-posix.h (zerol): Remove variable.
45785         (minus_zerol): New variable.
45786         (test_function): Use minus_zerol instead of -zerol.
45787         * modules/snprintf-posix-tests (Depends-on): Add float.
45788         * modules/vsnprintf-posix-tests (Depends-on): Add float.
45789
45790         * tests/test-sprintf-posix.h (zerol): Remove variable.
45791         (minus_zerol): New variable.
45792         (test_function): Use minus_zerol instead of -zerol.
45793         * modules/sprintf-posix-tests (Depends-on): Add float.
45794         * modules/vsprintf-posix-tests (Depends-on): Add float.
45795
45796         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
45797         (minus_zerol): New variable.
45798         (test_function): Use minus_zerol instead of -zerol.
45799         * modules/vasnprintf-posix-tests (Depends-on): Add float.
45800
45801         * tests/test-vasprintf-posix.c (zerol): Remove variable.
45802         (minus_zerol): New variable.
45803         (test_function): Use minus_zerol instead of -zerol.
45804         * modules/vasprintf-posix-tests (Depends-on): Add float.
45805
45806 2008-10-07  Simon Josefsson  <simon@josefsson.org>
45807
45808         * MODULES.html.sh (Support for building documentation): Mention
45809         pmccabe2html.  Sort entries.
45810
45811         Add pmccabe2html module, from gnupdf.
45812         * build-aux/pmccabe.css: New file.
45813         * build-aux/pmccabe2html: New file.
45814         * m4/pmccabe2html.m4: New file.
45815         * modules/pmccabe2html: New file.
45816
45817 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
45818
45819         flock: new module
45820         * MODULES.html.sh: Add to list of modules.
45821         * lib/flock.c: flock implementation for Windows and Unix systems
45822         which have fcntl.
45823         * doc/glibc-functions/flock.texi: Update documentation.
45824         * lib/sys_file.in.h: <sys/file.h> header file.
45825         * m4/flock.m4: M4 macros.
45826         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
45827         * modules/flock: flock module.
45828         * modules/flock-tests: flock tests module.
45829         * modules/sys_file: sys/file.h module.
45830         * tests/test-flock.c: test suite for flock.
45831
45832 2008-10-06  Jim Meyering  <meyering@redhat.com>
45833
45834         bootstrap: check for LT_INIT more portably still ;-)
45835         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
45836         Spotted by Bruno Haible.
45837
45838 2008-10-06  Eric Blake  <ebb9@byu.net>
45839
45840         test-signbit: avoid tripping Irix cc bug on -0.0L
45841         * tests/test-signbit.c (minus_zerol): Delete, and replace with
45842         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
45843         entire testsuite consistent and avoids an Irix 6.2 bug.
45844
45845 2008-10-05  Bruno Haible  <bruno@clisp.org>
45846             Jim Meyering  <jim@meyering.net>
45847
45848         Add an option for ignoring EPIPE during close_stdout.
45849         * lib/closeout.h: Include <stdbool.h>.
45850         (close_stdout_set_ignore_EPIPE): New declaration.
45851         * lib/closeout.c: Include <stdbool.h>.
45852         (ignore_EPIPE): New variable.
45853         (close_stdout_set_ignore_EPIPE): New function.
45854         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
45855         * lib/close-stream.c (close_stream): Mention the possible EPIPE
45856         failure.
45857         * modules/closeout (Depends-on): Add stdbool.
45858
45859 2008-10-05  Bruno Haible  <bruno@clisp.org>
45860
45861         * modules/accept: New file.
45862         * modules/bind: New file.
45863         * modules/connect: New file.
45864         * modules/getpeername: New file.
45865         * modules/getsockname: New file.
45866         * modules/getsockopt: New file.
45867         * modules/listen: New file.
45868         * modules/recv: New file.
45869         * modules/recvfrom: New file.
45870         * modules/send: New file.
45871         * modules/sendto: New file.
45872         * modules/setsockopt: New file.
45873         * modules/socket: New file.
45874         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
45875         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
45876         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
45877         the particular module is requested. Add a link warning when the
45878         particular module is not requested.
45879         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
45880         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
45881         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
45882         the particular module is requested.
45883         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
45884         gl_SYS_SOCKET_H_DEFAULTS): New macros.
45885         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
45886         * modules/sys_socket (Depends-on): Add link-warning.
45887         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
45888         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
45889         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
45890         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
45891         GL_LINK_WARNING.
45892         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
45893         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
45894         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
45895         * doc/posix-functions/getpeername.texi: Mention the new module
45896         'getpeername'.
45897         * doc/posix-functions/getsockname.texi: Mention the new module
45898         'getsockname'.
45899         * doc/posix-functions/getsockopt.texi: Mention the new module
45900         'getsockopt'.
45901         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
45902         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
45903         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
45904         * doc/posix-functions/send.texi: Mention the new module 'send'.
45905         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
45906         * doc/posix-functions/setsockopt.texi: Mention the new module
45907         'setsockopt'.
45908         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
45909         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
45910         listen, connect, accept.
45911         * modules/select-tests (Depends-on): Likewise.
45912
45913 2008-10-05  Bruno Haible  <bruno@clisp.org>
45914
45915         * lib/winsock.c (strerror): Remove unused #undef.
45916         (rpl_close): Remove unused local variable.
45917
45918         * modules/sys_socket (Depends-on); Add errno.
45919
45920 2008-10-05  Bruno Haible  <bruno@clisp.org>
45921
45922         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
45923         (select): Add a link warning when the 'select' module is not used.
45924         * modules/sys_select (Depends-on): Add link-warning.
45925         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
45926         Suggested by Paolo Bonzini.
45927
45928 2008-10-05  Jim Meyering  <meyering@redhat.com>
45929
45930         bootstrap: check for LT_INIT more portably
45931         * build-aux/bootstrap: Avoid using grep -E, since it's not
45932         portable enough.  Suggestion from Bruno Haible.
45933
45934 2008-10-05  Bruno Haible  <bruno@clisp.org>
45935
45936         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
45937         as being fixed by gnulib.
45938
45939 2008-10-05  Bruno Haible  <bruno@clisp.org>
45940
45941         * modules/select-tests: New file, mostly copied from
45942         modules/sys_select-tests.
45943         * tests/test-select.c: New file, mostly copied from
45944         tests/test-sys_select.c.
45945         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
45946         * modules/sys_select-tests (Depends-on): Remove all dependencies.
45947         (Makefile.am): Remove test_sys_select_LDADD.
45948
45949         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
45950         to an undefined symbol, for an error message.
45951         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
45952         (gl_SYS_SELECT_H_DEFAULTS): New macro.
45953         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
45954         winsock-select.c here.
45955         * modules/sys_select (Files): Remove lib/winsock-select.c.
45956         (Depends-on): Remove alloca.
45957         (Makefile.am): Substitute GNULIB_SELECT.
45958         * modules/select: New file.
45959         * doc/posix-functions/select.texi: Update.
45960
45961 2008-10-05  Bruno Haible  <bruno@clisp.org>
45962
45963         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
45964         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
45965         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
45966         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
45967         getdtablesize.
45968         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
45969         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
45970
45971 2008-10-05  Bruno Haible  <bruno@clisp.org>
45972
45973         * modules/getdtablesize-tests: New file.
45974         * tests/test-getdtablesize.c: New file.
45975
45976         New module 'getdtablesize'.
45977         * lib/unistd.in.h (getdtablesize): New declaration.
45978         * lib/getdtablesize.c: New file.
45979         * m4/getdtablesize.m4: New file.
45980         * modules/getdtablesize: New file.
45981         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45982         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
45983         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
45984         HAVE_GETDTABLESIZE.
45985         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
45986
45987 2008-10-05  Bruno Haible  <bruno@clisp.org>
45988
45989         * modules/sched (Makefile.am): Fix typo.
45990         Reported by Simon Josefsson.
45991
45992 2008-10-05  Jim Meyering  <meyering@redhat.com>
45993
45994         bootstrap: check for LT_INIT, too
45995         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
45996         are deprecated.  Suggestion from Ralf Wildenhues.
45997
45998 2008-10-05  Bruno Haible  <bruno@clisp.org>
45999
46000         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
46001         overriding them by ours.
46002         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
46003
46004 2008-10-05  Jim Meyering  <meyering@redhat.com>
46005
46006         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
46007         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
46008         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
46009
46010 2008-10-04  Bruno Haible  <bruno@clisp.org>
46011
46012         * modules/dup2 (License): Change to LGPLv2+.
46013         * modules/sleep (License): Likewise.
46014         * modules/perror (License): Likewise.
46015         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
46016         Blake.
46017         * modules/signal (License): Likewise.
46018         * modules/sigprocmask (License): Likewise.
46019         * modules/raise (License): Change to LGPLv2+, with approval by Jim
46020         Meyering.
46021
46022 2008-10-04  Bruno Haible  <bruno@clisp.org>
46023
46024         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
46025         Reported by Rainer Tammer <tammer@tammer.net>.
46026
46027 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
46028             Bruno Haible  <bruno@clisp.org>
46029
46030         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
46031         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
46032         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
46033
46034 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
46035
46036         filevercmp: new module
46037         * lib/filevercmp.h: New function filevercmp comparing version strings.
46038         * lib/filevercmp.c: Implementation of filevercmp function.
46039         * modules/filevercmp: Module metadata.
46040         * tests/test-filevercmp.c: Unit test for new module.
46041         * modules/filevercmp-tests: Unit test metadata.
46042         * MODULES.html.sh: Add filevercmp module.
46043
46044 2008-10-03  Bruno Haible  <bruno@clisp.org>
46045
46046         * lib/c-ctype.h: Add comment.
46047         Reported by Jim Meyering.
46048
46049 2008-10-02  Bruno Haible  <bruno@clisp.org>
46050
46051         * modules/posix_spawn-internal (Depends-on): Add 'open'.
46052
46053 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
46054
46055         * build-aux/bootstrap: Allow renaming bootstrap, and change the
46056         name of bootstrap.conf accordingly.
46057
46058 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
46059
46060         * build-aux/bootstrap: Install git-merge-changelog configuration
46061         items into .gitconfig if needed.
46062
46063 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
46064
46065         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
46066         git repository, and initialize/update it accordingly.
46067
46068 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
46069
46070         * modules/fsync-tests: New file.
46071         * tests/test-fsync.c: New file.
46072
46073         New module 'fsync'.
46074         * lib/fsync.c: New file.
46075         * m4/fsync.m4: New file.
46076         * modules/fsync: New file.
46077         * lib/unistd.in.h (fsync): New declaration.
46078         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
46079         GNULIB_FSYNC and HAVE_FSYNC.
46080         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
46081         * MODULES.html.sh (posix_functions): Add fsync.
46082         * doc/posix-functions/fsync.texi: Mention the new module.
46083
46084 2008-10-02  Jim Meyering  <meyering@redhat.com>
46085
46086         fts.c: sync with similar code from coreutils' remove.c
46087         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
46088         Guard also with "#if defined __linux__", since for now at least,
46089         this code is Linux-kernel-specific.
46090
46091 2008-10-02  Jim Meyering  <meyering@redhat.com>
46092
46093         fts: bug fixes
46094         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
46095         Include <sys/vfs.h>, not <sys/statfs.h>.
46096
46097         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
46098         Include <sys/vfs.h>, not <sys/statfs.h>.
46099
46100 2008-10-01  Bruno Haible  <bruno@clisp.org>
46101
46102         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
46103         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
46104         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
46105         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
46106         * doc/posix-functions/posix_spawnp.texi: Likewise.
46107         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
46108         whether posix_spawn actually works.
46109         * m4/pipe.m4 (gl_PIPE): Likewise.
46110         * modules/execute (Files): Add m4/posix_spawn.m4.
46111         * modules/pipe (Files): Add m4/posix_spawn.m4.
46112         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
46113
46114 2008-10-01  Jim Meyering  <meyering@redhat.com>
46115
46116         remove trailing spaces
46117         * NEWS: Likewise.
46118         * lib/poll.c (poll): Likewise.
46119         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
46120         * lib/winsock.c (rpl_close): Likewise.
46121         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
46122         * modules/yield: Likewise.
46123         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
46124         * tests/test-sys_select.c (connect_to_socket): Likewise.
46125
46126         fts.c: adjust a new interface to be more generally useful
46127         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
46128         (fts_build): Adjust caller.
46129
46130 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46131
46132         * modules/cond-tests: New file.
46133         * tests/test-cond.c: New file.
46134
46135 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46136             Bruno Haible  <bruno@clisp.org>
46137
46138         * modules/cond (Dependencies): Add errno, time.
46139         * lib/glthread/cond.h: Include <time.h>.
46140         (gl_cond_define, gl_cond_define_initialized): Use the same definition
46141         across platforms.
46142
46143 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46144             Bruno Haible  <bruno@clisp.org>
46145
46146         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
46147
46148 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46149             Bruno Haible  <bruno@clisp.org>
46150
46151         * modules/tls-tests (Depends-on): Add thread, yield.
46152         (configure.ac): Remove all checks.
46153         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
46154         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
46155         gl_thread_self): Remove definitions. Include glthread/thread.h and
46156         glthread/yield.h instead.
46157         (test_tls): Pass an additional NULL argument to gl_thread_join.
46158
46159 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46160             Bruno Haible  <bruno@clisp.org>
46161
46162         * modules/lock-tests (Depends-on): Add thread, yield.
46163         (configure.ac): Remove all checks.
46164         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
46165         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
46166         gl_thread_self): Remove definitions. Include glthread/thread.h and
46167         glthread/yield.h instead.
46168         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
46169         additional NULL argument to gl_thread_join.
46170
46171 2008-09-30  Bruno Haible  <bruno@clisp.org>
46172
46173         Fix the Win32 implementation of the 'thread' module.
46174         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
46175         pointer type.
46176         (gl_thread_self): Invoke gl_thread_self_func.
46177         (gl_thread_self_func): New declaration.
46178         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
46179         (do_init_self_key, init_self_key): New functions.
46180         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
46181         Remove some fields.
46182         (running_threads, running_lock): Remove variables.
46183         (get_current_thread_handle): New function.
46184         (gl_thread_self_func, wrapper_func, glthread_create_func,
46185         glthread_join_func, gl_thread_exit_func): Largely rewritten and
46186         simplified.
46187
46188 2008-09-30  Bruno Haible  <bruno@clisp.org>
46189
46190         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
46191         files.
46192
46193 2008-09-30  Jim Meyering  <meyering@redhat.com>
46194
46195         fts.m4: correct the test for statfs.f_type
46196         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
46197         when checking for statfs.f_type.
46198
46199 2008-09-15  Simon Josefsson  <simon@josefsson.org>
46200
46201         tests: avoid some compiler warnings
46202         * tests/test-memchr.c (main): Pass NULL indirectly.
46203         * tests/test-getdate.c (main): Remove unused variable 'ret'.
46204
46205 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
46206
46207         getdate.y: disallow countable dayshifts like "4 yesterday ago"
46208         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
46209         exactly specified dayshifts.
46210         (dayshift): New rule.
46211         (rel): Add dayshift.
46212         (relative_time_table) [tomorrow, yesterday, today, now]:
46213         Use tDAY_SHIFT in place of tDAY_UNIT.
46214         * tests/test-getdate.c: Add tests for now-disallowed countable
46215         dayshifts, e.g., "4 yesterday ago".
46216
46217 2008-09-29  Bruno Haible  <bruno@clisp.org>
46218
46219         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
46220         * tests/test-posix_spawn1.in.sh: Renamed from
46221         tests/test-posix_spawn.in.sh.
46222         * tests/test-posix_spawn2.c: New file.
46223         * tests/test-posix_spawn2.in.sh: New file.
46224         * modules/posix_spawnp-tests (Files): Update.
46225         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
46226
46227 2008-09-29  Bruno Haible  <bruno@clisp.org>
46228
46229         Propagate effects of putenv/setenv/unsetenv to child processes.
46230         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
46231         * lib/pipe.c (create_pipe): Likewise.
46232
46233 2008-09-29  Bruno Haible  <bruno@clisp.org>
46234
46235         Enable use of shell scripts as executables in mingw.
46236         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
46237         run the program as a shell script.
46238         * lib/pipe.c (create_pipe): Likewise.
46239         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
46240         resulting array.
46241
46242 2008-09-29  Eric Blake  <ebb9@byu.net>
46243
46244         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
46245
46246 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
46247
46248         * doc/posix-functions/accept.texi: Update mingw problems.
46249         * doc/posix-functions/bind.texi: Update mingw problems.
46250         * doc/posix-functions/close.texi: Update mingw problems.
46251         * doc/posix-functions/connect.texi: Update mingw problems.
46252         * doc/posix-functions/getpeername.texi: Update mingw problems.
46253         * doc/posix-functions/getsockname.texi: Update mingw problems.
46254         * doc/posix-functions/getsockopt.texi: Update mingw problems.
46255         * doc/posix-functions/ioctl.texi: Update mingw problems.
46256         * doc/posix-functions/listen.texi: Update mingw problems.
46257         * doc/posix-functions/recv.texi: Update mingw problems.
46258         * doc/posix-functions/recvfrom.texi: Update mingw problems.
46259         * doc/posix-functions/select.texi: Update mingw problems.
46260         * doc/posix-functions/send.texi: Update mingw problems.
46261         * doc/posix-functions/sendto.texi: Update mingw problems.
46262         * doc/posix-functions/setsockopt.texi: Update mingw problems.
46263         * doc/posix-functions/socket.texi: Update mingw problems.
46264
46265 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
46266             Bruno Haible  <bruno@clisp.org>
46267
46268         * lib/sys_select.in.h: Include sys/time.h.
46269         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
46270         * modules/sys_select: Depend on sys_time.
46271         * tests/test-sys_select.c: Test that sys/select.h defines struct
46272         timeval fully.
46273
46274 2008-09-29  Bruno Haible  <bruno@clisp.org>
46275
46276         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
46277         * lib/sys_select.in.h: Likewise.
46278
46279 2008-09-29  Bruno Haible  <bruno@clisp.org>
46280
46281         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
46282
46283 2008-09-29  Bruno Haible  <bruno@clisp.org>
46284
46285         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
46286         Set LIBSOCKET instead of augmenting LIBS.
46287         * modules/sockets (Link): New section.
46288         * modules/sockets-tests (test_sockets_LDADD): New variable.
46289         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
46290         * modules/poll-tests (test_poll_LDADD): New variable.
46291         * NEWS: Document the change.
46292
46293 2008-09-29  Bruno Haible  <bruno@clisp.org>
46294
46295         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
46296         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
46297         ARPA_INET_H directly.
46298         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
46299
46300 2008-09-28  Bruno Haible  <bruno@clisp.org>
46301
46302         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
46303         from gl_HEADER_SYS_SOCKET.
46304         (gl_HEADER_SYS_SOCKET): Invoke it.
46305         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
46306
46307 2008-09-28  Bruno Haible  <bruno@clisp.org>
46308
46309         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
46310         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
46311         Needed on OSF/1 4.0.
46312
46313 2008-09-28  Bruno Haible  <bruno@clisp.org>
46314
46315         Override open more carefully.
46316         * lib/open.c (orig_open): New function.
46317         (rpl_open): Use orig_open instead of open.
46318         * lib/fcntl.in.h: Add special invocation convention.
46319         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
46320         (gl_FUNC_OPEN): Invoke it.
46321
46322         Override freopen more carefully.
46323         * lib/freopen.c (orig_freopen): New function.
46324         (rpl_freopen): Use orig_freopen instead of freopen.
46325         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
46326         (gl_FUNC_FREOPEN): Invoke it.
46327
46328         Override fopen more carefully.
46329         * lib/fopen.c (orig_fopen): New function.
46330         (rpl_fopen): Use orig_fopen instead of fopen.
46331         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
46332         (gl_FUNC_FOPEN): Invoke it.
46333         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
46334
46335 2008-09-28  Bruno Haible  <bruno@clisp.org>
46336
46337         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
46338         SIGPIPE.
46339
46340 2008-09-28  Bruno Haible  <bruno@clisp.org>
46341
46342         * tests/test-sigaction.c (handler, main): Disable the check whether
46343         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
46344         glibc systems with LinuxThreads.
46345
46346 2008-09-28  Bruno Haible  <bruno@clisp.org>
46347
46348         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
46349
46350         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
46351         with AIX xlc.
46352         * lib/fcntl.in.h (open): Likewise.
46353         Reported by Rainer Tammer <tammer@tammer.net>.
46354
46355 2008-09-28  Bruno Haible  <bruno@clisp.org>
46356
46357         * modules/posix_spawnp-tests: New file.
46358         * tests/test-posix_spawn.c: New file.
46359         * tests/test-posix_spawn.in.sh: New file.
46360
46361         New module 'posix_spawnp'.
46362         * modules/posix_spawnp: New file.
46363         * lib/spawnp.c: New file, from GNU libc with modifications.
46364         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
46365
46366         New module 'posix_spawn'.
46367         * modules/posix_spawn: New file.
46368         * lib/spawn.c: New file, from GNU libc with modifications.
46369         * doc/posix-functions/posix_spawn.texi: Mention the new module.
46370
46371         New module 'posix_spawnattr_destroy'.
46372         * modules/posix_spawnattr_destroy: New file.
46373         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
46374         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
46375         module.
46376
46377         New module 'posix_spawnattr_setsigmask'.
46378         * modules/posix_spawnattr_setsigmask: New file.
46379         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
46380         modifications.
46381         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
46382         new module.
46383
46384         New module 'posix_spawnattr_getsigmask'.
46385         * modules/posix_spawnattr_getsigmask: New file.
46386         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
46387         modifications.
46388         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
46389         new module.
46390
46391         New module 'posix_spawnattr_setsigdefault'.
46392         * modules/posix_spawnattr_setsigdefault: New file.
46393         * lib/spawnattr_setdefault.c: New file, from GNU libc with
46394         modifications.
46395         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
46396         new module.
46397
46398         New module 'posix_spawnattr_getsigdefault'.
46399         * modules/posix_spawnattr_getsigdefault: New file.
46400         * lib/spawnattr_getdefault.c: New file, from GNU libc with
46401         modifications.
46402         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
46403         new module.
46404
46405         New module 'posix_spawnattr_setschedpolicy'.
46406         * modules/posix_spawnattr_setschedpolicy: New file.
46407         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
46408         modifications.
46409         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
46410         new module.
46411
46412         New module 'posix_spawnattr_getschedpolicy'.
46413         * modules/posix_spawnattr_getschedpolicy: New file.
46414         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
46415         modifications.
46416         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
46417         new module.
46418
46419         New module 'posix_spawnattr_setschedparam'.
46420         * modules/posix_spawnattr_setschedparam: New file.
46421         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
46422         modifications.
46423         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
46424         new module.
46425
46426         New module 'posix_spawnattr_getschedparam'.
46427         * modules/posix_spawnattr_getschedparam: New file.
46428         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
46429         modifications.
46430         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
46431         new module.
46432
46433         New module 'posix_spawnattr_setpgroup'.
46434         * modules/posix_spawnattr_setpgroup: New file.
46435         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
46436         modifications.
46437         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
46438         module.
46439
46440         New module 'posix_spawnattr_getpgroup'.
46441         * modules/posix_spawnattr_getpgroup: New file.
46442         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
46443         modifications.
46444         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
46445         module.
46446
46447         New module 'posix_spawnattr_setflags'.
46448         * modules/posix_spawnattr_setflags: New file.
46449         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
46450         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
46451         module.
46452
46453         New module 'posix_spawnattr_getflags'.
46454         * modules/posix_spawnattr_getflags: New file.
46455         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
46456         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
46457         module.
46458
46459         New module 'posix_spawnattr_init'.
46460         * modules/posix_spawnattr_init: New file.
46461         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
46462         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
46463         module.
46464
46465         New module 'posix_spawn_file_actions_destroy'.
46466         * modules/posix_spawn_file_actions_destroy: New file.
46467         * lib/spawn_faction_destroy.c: New file, from GNU libc with
46468         modifications.
46469         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
46470         the new module.
46471
46472         New module 'posix_spawn_file_actions_addopen'.
46473         * modules/posix_spawn_file_actions_addopen: New file.
46474         * lib/spawn_faction_addopen.c: New file, from GNU libc with
46475         modifications.
46476         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
46477         the new module.
46478
46479         New module 'posix_spawn_file_actions_adddup2'.
46480         * modules/posix_spawn_file_actions_adddup2: New file.
46481         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
46482         modifications.
46483         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
46484         the new module.
46485
46486         New module 'posix_spawn_file_actions_addclose'.
46487         * modules/posix_spawn_file_actions_addclose: New file.
46488         * lib/spawn_faction_addclose.c: New file, from GNU libc with
46489         modifications.
46490         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
46491         the new module.
46492
46493         New module 'posix_spawn_file_actions_init'.
46494         * modules/posix_spawn_file_actions_init: New file.
46495         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
46496         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
46497         new module.
46498
46499         New module 'posix_spawn-internal'.
46500         * modules/posix_spawn-internal: New file.
46501         * lib/spawn_int.h: New file, from GNU libc with modifications.
46502         * lib/spawni.c: New file, from GNU libc with modifications.
46503         * m4/posix_spawn.m4: New file.
46504
46505         New module 'spawn'.
46506         * modules/spawn: New file.
46507         * lib/spawn.in.h: New file, from GNU libc with modifications.
46508         * m4/spawn_h.m4: New file.
46509         * doc/posix-headers/spawn.texi: Mention the new module.
46510
46511 2008-09-28  Bruno Haible  <bruno@clisp.org>
46512
46513         * modules/sched-tests: New file.
46514         * tests/test-sched.c: New file.
46515
46516         New module 'sched'.
46517         * modules/sched: New file.
46518         * lib/sched.in.h: New file.
46519         * m4/sched_h.m4: New file.
46520         * doc/posix-headers/sched.texi: Mention the new module.
46521
46522 2008-09-27  Eric Blake  <ebb9@byu.net>
46523
46524         Fix previous patch, and tweak references to $0.
46525         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
46526         (func_version, func_gnulib_dir): Don't call this program
46527         gnulib-tool.
46528         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
46529         with using $0 in function.
46530         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
46531         (func_fatal_error): Reuse the name the user invoked us with.
46532
46533 2008-09-27  Bruno Haible  <bruno@clisp.org>
46534
46535         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
46536         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
46537         (gl_ICONV_H): Not here.
46538         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
46539         instead of assigning ICONV_H directly.
46540
46541         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
46542         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
46543         WCHAR_H directly.
46544
46545 2008-09-27  Bruno Haible  <bruno@clisp.org>
46546
46547         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
46548         * modules/arpa_inet (Depends-on): Add link-warning.
46549         (Makefile.am): Insert the definition of GL_LINK-WARNING.
46550         * modules/unistd (Makefile.am): Likewise.
46551
46552 2008-09-26  Bruno Haible  <bruno@clisp.org>
46553
46554         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
46555         variables.
46556         (func_version): Essentially copied from gnulib-tool.
46557         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
46558         func_readlink): Copied from gnulib-tool.
46559
46560 2008-09-26  Bruno Haible  <bruno@clisp.org>
46561
46562         * gnulib-tool (func_version): Change directory to $gnulib_dir before
46563         invoking git-version-gen.
46564
46565 2008-09-26  Bruno Haible  <bruno@clisp.org>
46566
46567         * posix-modules: Update to directory names changed on 2008-01-19.
46568         Remove commas in output before splitting into words. No more need to
46569         avoid 'ftruncate' since 2007-02-19.
46570
46571 2008-09-26  Bruno Haible  <bruno@clisp.org>
46572
46573         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
46574
46575 2008-09-26  Bruno Haible  <bruno@clisp.org>
46576
46577         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
46578         * modules/fwriteerror (Depends-on): Add errno.
46579
46580 2008-09-26  Bruno Haible  <bruno@clisp.org>
46581
46582         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
46583         * tests/test-vc-list-files-cvs.sh: Likewise.
46584
46585 2008-09-26  Bruno Haible  <bruno@clisp.org>
46586
46587         * doc/posix-headers/sys_resource.texi: Reorder items.
46588
46589 2008-09-26  Jim Meyering  <meyering@redhat.com>
46590
46591         fts: tweak inode comparison function
46592         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
46593         inode numbers, as documented.
46594
46595         fts: sort dirent entries on inode number before traversing
46596         This avoids a quadratic, seek-related performance penalty when
46597         operating on a directory containing many entries (measurable at 10k;
46598         3.5 hours at 2 million entries with a cold cache) on certain types
46599         of file systems, including ext3 and ext4, but not tmpfs.
46600         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
46601         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
46602         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
46603         (fs_handles_readdir_ordered_dirents_efficiently): New function.
46604         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
46605         (fts_build): Set the stat.st_ino member from D_INO.
46606         If it is likely to be useful, sort dirent entries on inode number.
46607
46608         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
46609         and the struct statfs.f_type member.
46610         * modules/fts (Depends-on): Add d-ino.
46611
46612 2008-09-26  Bruno Haible  <bruno@clisp.org>
46613
46614         * modules/sigpipe-die (Depends-on): Add sigpipe.
46615
46616         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
46617         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
46618         and GNULIB_STDIO_H_SIGPIPE are set.
46619         * lib/stdio-write.c: New file.
46620         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
46621         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
46622         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
46623         REPLACE_STDIO_WRITE_FUNCS.
46624         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
46625         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
46626         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
46627         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
46628         * modules/stdio (Files): Add lib/stdio-write.c.
46629         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
46630         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
46631         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
46632         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
46633         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
46634         REPLACE_FPRINTF_POSIX.
46635         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
46636         REPLACE_PRINTF_POSIX.
46637         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
46638         REPLACE_VFPRINTF_POSIX.
46639         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
46640         REPLACE_VPRINTF_POSIX.
46641         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
46642         SIGPIPE issue.
46643         * doc/posix-functions/fputc.texi: Likewise.
46644         * doc/posix-functions/fputs.texi: Likewise.
46645         * doc/posix-functions/fwrite.texi: Likewise.
46646         * doc/posix-functions/printf.texi: Likewise.
46647         * doc/posix-functions/putc.texi: Likewise.
46648         * doc/posix-functions/putchar.texi: Likewise.
46649         * doc/posix-functions/puts.texi: Likewise.
46650         * doc/posix-functions/vfprintf.texi: Likewise.
46651         * doc/posix-functions/vprintf.texi: Likewise.
46652
46653         * modules/safe-write (Depends-on): Add write.
46654
46655         * modules/sigpipe-tests: New file.
46656         * tests/test-sigpipe.c: New file.
46657         * tests/test-sigpipe.sh: New file.
46658
46659         * modules/write: New file.
46660         * lib/unistd.in.h: Include <sys/types.h>.
46661         (write): New declaration.
46662         * lib/write.c: New file.
46663         * m4/write.m4: New file.
46664         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46665         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
46666         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
46667         GNULIB_WRITE, REPLACE_WRITE.
46668         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
46669         and the SIGPIPE issue.
46670
46671         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
46672         (raise): New declaration.
46673         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
46674         (ext_signal): New function.
46675         (rpl_raise): New function.
46676         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
46677         GNULIB_SIGNAL_H_SIGPIPE.
46678         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
46679         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
46680
46681         * modules/sigpipe: New file.
46682         * m4/sigpipe.m4: New file.
46683
46684 2008-09-25  Derek Price  <derek@ximbiot.com>
46685             Bruno Haible  <bruno@clisp.org>
46686
46687         * gnulib-tool (func_import): Report all license incompatibilities, not
46688         just the first one.
46689
46690 2008-09-25  Bruno Haible  <bruno@clisp.org>
46691
46692         * gnulib-tool (func_import): When computing the edits, consider not
46693         only the Makefile.ams that exist but also those that will be generated.
46694
46695 2008-09-25  Simon Josefsson  <simon@josefsson.org>
46696
46697         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
46698         fixes gnulib-tool --test warning about duplicate dependency.
46699
46700 2008-09-25  Bruno Haible  <bruno@clisp.org>
46701
46702         * gnulib-tool: Don't ask the user to perform edits in the generated
46703         Makefile.ams.
46704         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
46705         apply to the Makefile.am being generated.
46706         (func_emit_tests_Makefile_am): Execute edits that apply to the
46707         Makefile.am being generated.
46708         (func_import): Setup list of Makefile.am edits before emitting the
46709         Makefile.ams, not at the end.
46710         (func_create_testdir): Update.
46711         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
46712
46713 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46714
46715         * gnulib-tool (func_import): Store the --tests-base option in the
46716         comment in gnulib-cache.m4.
46717
46718 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
46719
46720         * NEWS: Document increased portability that sys_select now provides.
46721
46722         * lib/sys_select.in.h: Install select wrapper.
46723         * lib/sys_socket.in.h: Use more descriptive name when there is no
46724         select wrapper.
46725         * lib/winsock-select.c: New.
46726         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
46727         Require gl_HEADER_SYS_SOCKET.
46728         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
46729         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
46730         * tests/test-sys_select.c: Add functional tests.
46731
46732 2008-09-24  Eric Blake  <ebb9@byu.net>
46733
46734         open, fopen: close fd leak in last patch
46735         * lib/open.c (rpl_open): Close fd before returning error.
46736         * lib/fopen.c (rpl_fopen): Close fd before returning error.
46737         * doc/posix-functions/open.texi (open): Document that Irix also
46738         has the bug.
46739         * doc/posix-functions/fopen.texi (fopen): Likewise.
46740         Reported by Paolo Bonzini.
46741
46742 2008-09-24  Bruno Haible  <bruno@clisp.org>
46743
46744         Ensure that a filename ending in a slash cannot be used to access a
46745         non-directory.
46746         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
46747         to check whether it's really a directory.
46748         * lib/fopen.c: Include fcntl.h, unistd.h.
46749         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
46750         and fdopen().
46751         * modules/fopen (Depends-on): Add unistd.
46752         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
46753         * tests/test-fopen.c (main): Likewise.
46754         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
46755         * doc/posix-functions/fopen.texi: Likewise.
46756         Reported by Eric Blake.
46757
46758 2008-09-23  Eric Blake  <ebb9@byu.net>
46759
46760         c-stack: avoid compiler optimizations when provoking overflow
46761         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
46762         recursion harder to optimize, to ensure a stack overflow occurs.
46763         * tests/test-c-stack.c (recurse): Likewise.
46764         Borrowed from libsigsegv.
46765
46766         c-stack: work around Irix sigaltstack bug
46767         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
46768         whether sigaltstack uses wrong end of stack_t (copied in part from
46769         libsigsegv).
46770         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
46771         Irix bug, without requiring an over-allocation.
46772         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
46773         bug.
46774
46775         fopen: document mingw bug on directories
46776         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
46777         not allowing a stream visiting a directory, even though reading
46778         from such a stream is not portable.
46779
46780 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
46781
46782         * lib/poll.c: Rewrite.
46783         * modules/poll: Depend on alloca.
46784
46785 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
46786
46787         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
46788         instead define prototypes for a full set of wrappers.  Ensure
46789         that Cygwin does not use the compatibility code, which is only
46790         for MinGW.
46791         * lib/winsock.c: New.
46792         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
46793         * modules/sys_socket: Add lib/winsock.c.
46794
46795         * modules/poll-tests: Add errno and perror.
46796         * tests/test-poll.c: Use ioctl, not ioctlsocket.
46797
46798 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
46799
46800         * tests/test-poll.c: Downgrade minimum needed Winsock version.
46801
46802 2008-09-23  Bruno Haible  <bruno@clisp.org>
46803
46804         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
46805         * doc/glibc-functions/*: Likewise.
46806
46807 2008-09-23  Simon Josefsson  <simon@josefsson.org>
46808
46809         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
46810         success.
46811
46812 2008-09-22  Eric Blake  <ebb9@byu.net>
46813             Bruno Haible  <bruno@clisp.org>
46814
46815         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
46816         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
46817         supply %A but mishandle pseudo-NaN.
46818         Reported by Simon Josefsson.
46819
46820 2008-09-21  Bruno Haible  <bruno@clisp.org>
46821
46822         * tests/test-lock.c (main): Tweak skip message.
46823         * tests/test-tls.c (main): Likewise.
46824
46825 2008-09-21  Bruno Haible  <bruno@clisp.org>
46826
46827         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
46828         whether 'struct sigaction' has sa_sigaction here...
46829         (gl_PREREQ_SIG_HANDLER_H): ... not here.
46830         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
46831
46832 2008-09-21  Bruno Haible  <bruno@clisp.org>
46833
46834         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
46835         section.
46836         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
46837         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
46838         the new section.
46839         (Support for obsolete systems lacking POSIX:2001): New section.
46840         (String handling <string.h>): Move strdup to the new section.
46841         Suggested by Simon Josefsson and Paolo Bonzini.
46842
46843 2008-09-21  Bruno Haible  <bruno@clisp.org>
46844
46845         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
46846         exponents in %e and %g results on 'long double'. Needed for mingw's
46847         improved *printf functions.
46848         * tests/test-vasprintf-posix.c (test_function): Likewise.
46849         * tests/test-snprintf-posix.h (test_function): Likewise.
46850         * tests/test-sprintf-posix.h (test_function): Likewise.
46851         Reported by Eric Blake.
46852
46853 2008-09-21  Bruno Haible  <bruno@clisp.org>
46854
46855         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
46856         * tests/test-sprintf-posix.h (test_function): Likewise.
46857
46858 2008-09-21  Bruno Haible  <bruno@clisp.org>
46859
46860         * modules/getpass (Depends-on): Add strdup-posix.
46861
46862         New module 'strdup-posix'.
46863         * modules/strdup-posix: New file.
46864         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
46865         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
46866         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
46867         REPLACE_STRDUP.
46868         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
46869         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
46870         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
46871         strdup-posix.
46872
46873         * modules/strdup (Depends-on): Remove malloc-posix.
46874
46875 2008-09-20  Bruno Haible  <bruno@clisp.org>
46876
46877         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
46878         Wildenhues.
46879
46880 2008-09-20  Bruno Haible  <bruno@clisp.org>
46881
46882         Ensure that wint_t gets defined on IRIX 5.3.
46883         * lib/wchar.in.h (wint_t): Define if not defined by the system.
46884         * lib/wctype.in.h (wint_t): Likewise.
46885         (__wctype_wint_t): Remove type.
46886         (isw*): Use wint_t instead of __wctype_wint_t.
46887         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
46888         * modules/wchar (Files): Add m4/wint_t.m4.
46889         (Makefile.am): Substitute HAVE_WINT_T.
46890         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
46891         * tests/test-wctype.c: Check that wint_t is defined.
46892         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
46893         * doc/posix-headers/wctype.texi: Likewise.
46894         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46895
46896 2008-09-18  Bruno Haible  <bruno@clisp.org>
46897
46898         * gnulib-tool (func_exit): Update comment.
46899
46900 2008-09-18  Simon Josefsson  <simon@josefsson.org>
46901
46902         * modules/getaddrinfo (Depends-on): Remove strdup, this module
46903         assumes strdup exists and does not depend on strdup to return
46904         ENOMEM on out of memory conditions.
46905
46906 2008-09-18  Bruno Haible  <bruno@clisp.org>
46907
46908         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
46909         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
46910         digits for the exponent.
46911
46912 2008-09-18  Jim Meyering  <meyering@redhat.com>
46913             Bruno Haible  <bruno@clisp.org>
46914
46915         * lib/vasnprintf.c (decimal_point_char): Define also if
46916         NEED_PRINTF_INFINITE_LONG_DOUBLE.
46917
46918 2008-09-16  Bruno Haible  <bruno@clisp.org>
46919         and Eric Blake  <ebb9@byu.net>
46920
46921         vasnprintf: support Irix 5.3
46922         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
46923         that mishandle long double infinity.
46924         Reported by Tom G. Christensen.
46925
46926 2008-09-16  Bruno Haible  <bruno@clisp.org>
46927
46928         * doc/glibc-functions/scandir.texi: Mention the function is missing on
46929         Solaris 9.
46930         * doc/glibc-functions/alphasort.texi: Likewise.
46931         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
46932
46933 2008-09-16  Jim Meyering  <meyering@redhat.com>
46934
46935         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
46936         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
46937         a umask modification leak out of a subshell.  Otherwise, the
46938         opensolaris /bin/sh would be accepted and thus cause unwarranted
46939         failures in the coreutils test suite.
46940
46941 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
46942
46943         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
46944         to succeed.
46945
46946 2008-09-16  Jim Meyering  <meyering@redhat.com>
46947
46948         avoid spurious test failure when library is built without ACL support
46949         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
46950         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
46951         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
46952         * tests/test-copy-acl.sh: Likewise.
46953
46954 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46955
46956         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
46957         based on character occurrence counts.
46958
46959 2008-09-15  Eric Blake  <ebb9@byu.net>
46960
46961         tests: avoid some compiler warnings
46962         * tests/test-memchr.c (main): Pass NULL indirectly.
46963         * tests/test-closein.c (main): Avoid unused variable.
46964
46965 2008-09-15  Bruno Haible  <bruno@clisp.org>
46966
46967         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
46968         are missing on OpenBSD 4.0 individually.
46969         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
46970
46971 2008-09-15  Bruno Haible  <bruno@clisp.org>
46972
46973         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
46974         * doc/posix-functions/strerror.texi: Mention also Cygwin.
46975         * doc/posix-functions/perror.texi: Likewise.
46976         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
46977         is missing.
46978         Reported by Eric Blake.
46979
46980         * lib/errno.in.h: Use replacement values >= 2000.
46981         Reported by Eric Blake.
46982
46983 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46984
46985         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
46986         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
46987         limit.
46988         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
46989         compareseq was aborted.
46990
46991 2008-09-14  Bruno Haible  <bruno@clisp.org>
46992
46993         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
46994         yvec_edit_count.
46995         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
46996         (fstrcmp_bounded): Simplify result computation accordingly.
46997
46998 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46999
47000         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
47001         (fstrcmp): Define in terms of fstrcmp_bounded.
47002         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
47003         lower_bound argument.
47004         Return quickly if the result is certainly < lower_bound.
47005         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
47006
47007 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47008
47009         * lib/diffseq.h (EARLY_ABORT): New macro.
47010         (compareseq): Change return type to bool. Return true when EARLY_ABORT
47011         evaluates to true.
47012
47013 2008-09-14  Bruno Haible  <bruno@clisp.org>
47014
47015         * modules/perror-tests: New file.
47016         * tests/test-perror.sh: New file.
47017         * tests/test-perror.c: New file.
47018
47019         New module 'perror'.
47020         * lib/stdio.in.h (perror): New declaration.
47021         * lib/perror.c: New file.
47022         * m4/perror.m4: New file.
47023         * modules/perror: New file.
47024         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
47025         * doc/posix-functions/perror.texi: Mention the perror module.
47026         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
47027         REPLACE_PERROR.
47028         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
47029         REPLACE_PERROR.
47030
47031 2008-09-14  Bruno Haible  <bruno@clisp.org>
47032
47033         * modules/stdio (Makefile.am): Reorder to match the order in
47034         lib/stdio.in.h.
47035         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
47036
47037 2008-09-13  Bruno Haible  <bruno@clisp.org>
47038
47039         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
47040
47041 2008-09-13  Bruno Haible  <bruno@clisp.org>
47042
47043         Extend strerror to cover the added errno values.
47044         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
47045         (rpl_strerror): Provide error messages for the added errno values and
47046         for the WSA* values.
47047         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
47048         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
47049         strerror.
47050         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
47051         * modules/strerror (Depends-on): Add errno.
47052         * doc/posix-functions/strerror.texi: Document the change.
47053         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
47054         and EOVERFLOW.
47055
47056 2008-09-13  Bruno Haible  <bruno@clisp.org>
47057
47058         * modules/EOVERFLOW: Remove file.
47059         * m4/eoverflow.m4: Remove file.
47060         * modules/EOVERFLOW-tests: Remove file.
47061         * tests/test-EOVERFLOW.c: Remove file.
47062         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
47063         * modules/ftell (Depends-on): Likewise.
47064         * modules/getdelim (Depends-on): Likewise.
47065         * modules/getugroups (Depends-on): Likewise.
47066         * modules/poll (Depends-on): Likewise.
47067         * modules/snprintf (Depends-on): Likewise.
47068         * modules/sprintf-posix (Depends-on): Likewise.
47069         * modules/vasnprintf (Depends-on): Likewise.
47070         * modules/vasprintf (Depends-on): Likewise.
47071         * modules/vfprintf-posix (Depends-on): Likewise.
47072         * modules/vsnprintf (Depends-on): Likewise.
47073         * modules/vsprintf-posix (Depends-on): Likewise.
47074         * modules/xvasprintf (Depends-on): Likewise.
47075         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
47076         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
47077         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
47078         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
47079         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
47080         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
47081         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
47082         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
47083         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
47084         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
47085         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
47086         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
47087         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
47088         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
47089         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
47090         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
47091         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
47092         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
47093         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
47094         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
47095         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
47096         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
47097         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
47098         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
47099         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
47100         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
47101         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
47102         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
47103         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
47104         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
47105         * MODULES.html.sh: Remove EOVERFLOW.
47106         * NEWS: Mention the change.
47107
47108 2008-09-13  Bruno Haible  <bruno@clisp.org>
47109
47110         * modules/errno-tests: New file.
47111         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
47112
47113         * lib/errno.in.h: New file.
47114         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
47115         * modules/errno: New file.
47116         * doc/posix-headers/errno.texi: Update documentation.
47117         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
47118
47119 2008-09-13  Bruno Haible  <bruno@clisp.org>
47120
47121         * tests/test-poll.c: Use #if for native Windows, rather than testing
47122         __MSVCRT__.
47123
47124 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47125             Bruno Haible  <bruno@clisp.org>
47126
47127         * lib/glob.c: Don't include <pwd.h> on native Windows.
47128         (WINDOWS32): New macro.
47129         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
47130
47131 2008-09-13  Bruno Haible  <bruno@clisp.org>
47132
47133         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
47134         (ETIMEDOUT): Remove macro.
47135         (glthread_cond_timedwait_multithreaded): New declaration.
47136         (glthread_cond_timedwait): Use it.
47137         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
47138         (glthread_cond_timedwait_multithreaded): New function.
47139
47140 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
47141
47142         * modules/poll-tests: Do not check for io.h.
47143         * tests/test-poll.c: Check for __MSVCRT__ instead.
47144
47145 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
47146
47147         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
47148         * modules/poll-tests: Add inet_pton, stdbool, sockets.
47149         * tests/test-poll.c: Use them.  Use _pipe on Windows.
47150
47151 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
47152
47153         * modules/poll-tests: New.
47154         * tests/test-poll.c: New.
47155
47156 2008-09-12  Eric Blake  <ebb9@byu.net>
47157
47158         frexp: test for NetBSD failure on -0.0
47159         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
47160         not all, bugs from NetBSD 3.0 have been fixed.
47161         * doc/posix-functions/frexp.texi (frexp): Document bug.
47162         Reported by Thomas Klausner.
47163
47164         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
47165         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
47166         literal -0.0.
47167         Reported by Jonathan C. Patschke <jp@centtech.com>.
47168
47169 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47170
47171         * lib/glthread/cond.h: Use dummy implementation also if
47172         USE_WIN32_THREADS.
47173
47174 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47175
47176         * modules/fnmatch-posix (License): Change to LGPLv2+.
47177         * modules/fnmatch-gnu (License): Likewise.
47178
47179 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47180
47181         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
47182
47183 2008-09-11  Jim Meyering  <meyering@redhat.com>
47184
47185         * users.txt: Add gtk-vnc.
47186
47187 2008-09-08  Simon Josefsson  <simon@josefsson.org>
47188
47189         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
47190         rotate amounts.
47191
47192         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
47193         required for 16-bit and 8-bit rotates.
47194         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
47195         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
47196         UINT8_MAX instead of hard-coded constants.
47197         Suggested by Paul Eggert.
47198
47199 2008-09-07  Bruno Haible  <bruno@clisp.org>
47200
47201         * tests/test-striconveh.c (main): Check behaviour when converting from
47202         UTF-7.
47203
47204         Make striconveh work better with stateful encodings.
47205         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
47206         that iconv does not increment the inptr when returning -1/EINVAL.
47207
47208 2008-09-07  Bruno Haible  <bruno@clisp.org>
47209
47210         * build-aux/config.rpath: Update according to libtool-2.2.6.
47211         * build-aux/config.libpath: Likewise.
47212
47213 2008-09-06  Bruno Haible  <bruno@clisp.org>
47214
47215         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
47216         * lib/freadptr.c (freadptr): Likewise.
47217         * lib/freadseek.c (freadptrinc): Likewise.
47218         Reported by Simon Josefsson.
47219
47220 2008-09-06  Bruno Haible  <bruno@clisp.org>
47221
47222         * modules/freadptr (License): Change to LGPLv2+.
47223         * modules/freadseek (License): Likewise.
47224         Suggested by Eric Blake.
47225
47226         * modules/memchr2 (License): Change to LGPLv2+.
47227         Approved by Eric Blake.
47228
47229 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47230             Bruno Haible  <bruno@clisp.org>
47231
47232         Make gnulib-tool work with native 'sed' on AIX.
47233         * gnulib-tool (sed_noop): New variable.
47234         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
47235         func_add_or_update, func_create_testdir): Use it to initialize sed
47236         script variables.
47237         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
47238
47239 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
47240             Bruno Haible  <bruno@clisp.org>
47241
47242         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
47243         also works after #include directives.
47244
47245 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
47246
47247         getdate.y: reject an out-of-range timezone value
47248         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
47249         the range [-24...+24].  When specified with only one or two digits,
47250         * tests/test-getdate.c: Tests for the fix.
47251         * doc/getdate.texi: Document this change.
47252
47253 2008-09-03  Bruno Haible  <bruno@clisp.org>
47254
47255         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
47256
47257 2008-09-02  Simon Josefsson  <simon@josefsson.org>
47258
47259         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
47260         <bruce.korb@gmail.com> with ideas from Ben Pfaff
47261         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
47262         Blake <ebb9@byu.net>.
47263
47264         * tests/test-bitrotate.c: Add more test vectors.
47265
47266 2008-09-02  Eric Blake  <ebb9@byu.net>
47267
47268         vasnprintf-posix: handle large precision via %.*d
47269         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
47270         when handling it ourselves.
47271         * tests/test-vasnprintf-posix.c (test_function): Add test.
47272         * tests/test-snprintf-posix.h (test_function): Likewise.
47273         * tests/test-sprintf-posix.h (test_function): Likewise.
47274         * tests/test-vasprintf-posix.c (test_function): Likewise.
47275         Reported by Alain Guibert.
47276
47277 2008-09-01  Eric Blake  <ebb9@byu.net>
47278
47279         c-stack: make configure-time check more robust
47280         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
47281         successful sigaction call.
47282         Reported by Tom G. Christensen.
47283
47284 2008-09-01  Bruno Haible  <bruno@clisp.org>
47285
47286         New module 'findprog-lgpl'.
47287         * modules/findprog-lgpl: New file.
47288         * lib/findprog-lgpl.c: New file.
47289         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
47290         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
47291         to decide whether to use strdup or xstrdup, concatenated_filename or
47292         xconcatenated_filename.
47293
47294 2008-09-01  Bruno Haible  <bruno@clisp.org>
47295
47296         Split module 'concat-filename' into 'concat-filename' (LGPL) and
47297         'xconcat-filename' (GPL).
47298         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
47299         (License): Change to LGPLv2+.
47300         * modules/xconcat-filename: New file.
47301         * lib/concat-filename.h (concatenated_filename): Change specification.
47302         (xconcatenated_filename): New declaration.
47303         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
47304         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
47305         memory situations.
47306         * lib/xconcat-filename.c: New file.
47307         * NEWS: Mention the change.
47308         * lib/findprog.c: Include concat-filename.h, not filename.h.
47309         (find_in_path): Use xconcatenated_filename instead of
47310         concatenated_filename.
47311         * lib/javacomp.c: Include concat-filename.h, not filename.h.
47312         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
47313         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
47314         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
47315         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
47316         instead of concatenated_filename.
47317         * lib/javaexec.c: Include concat-filename.h, not filename.h.
47318         (execute_java_class): Use xconcatenated_filename instead of
47319         concatenated_filename.
47320         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
47321         * modules/javacomp (Depends-on): Likewise.
47322         * modules/javaexec (Depends-on): Likewise.
47323
47324 2008-09-01  Bruno Haible  <bruno@clisp.org>
47325
47326         Split module 'filename' into 'filename' and 'concat-filename'.
47327         * modules/filename: Keep only lib/filename.h.
47328         (License): Change to LGPLv2+.
47329         * modules/concat-filename: New file, extracted from modules/filename.
47330         * lib/filename.h (concatenated_filename): Remove declaration.
47331         * lib/concat-filename.h: New file, extracted from lib/filename.h.
47332         * lib/concat-filename.c: Include concat-filename.h.
47333         * NEWS: Mention the change.
47334
47335 2008-09-01  Simon Josefsson  <simon@josefsson.org>
47336
47337         * lib/bitrotate.h (rotl8, rotr8): Add.
47338
47339         * modules/bitrotate (configure.ac): Need
47340         AC_REQUIRE([AC_C_INLINE]).
47341         (Description): Mention stdint.h.  Reported by Bruno Haible
47342         <bruno@clisp.org>.
47343
47344         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
47345         Paolo Bonzini <bonzini@gnu.org>.
47346
47347 2008-08-31  Bruno Haible  <bruno@clisp.org>
47348
47349         Assume Solaris specific bi-arch conventions on Solaris systems.
47350         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
47351         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
47352         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
47353         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
47354         like acl_libdirstem.
47355         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
47356         acl_libdirstem.
47357         * NEWS: Mention the change.
47358         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
47359
47360 2008-08-31  Jim Meyering  <meyering@redhat.com>
47361
47362         * lib/strftime.h: Add comments describing the two added arguments.
47363
47364         remove duplicate #include directives
47365         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
47366         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
47367
47368 2008-08-31  Bruno Haible  <bruno@clisp.org>
47369
47370         New module 'sigpipe-die'.
47371         * modules/sigpipe-die: New file.
47372         * lib/sigpipe-die.h: New file.
47373         * lib/sigpipe-die.c: New file.
47374         * MODULES.html.sh (Signal handling): Add sigpipe-die.
47375
47376 2008-08-31  Bruno Haible  <bruno@clisp.org>
47377
47378         Don't override previously installed signal handlers.
47379         * lib/fatal-signal.c (saved_sigactions): New variable.
47380         (uninstall_handlers): Reset the signal to the saved handler, not
47381         to SIG_DFL (except when ignored).
47382         (install_handlers): Save the previous handlers.
47383
47384 2008-08-30  Bruno Haible  <bruno@clisp.org>
47385
47386         * gnulib-tool (func_reset_sigpipe): New function.
47387         (func_get_automake_snippet, func_modules_transitive_closure,
47388         func_import): Invoke it before a join command that reads from stdin,
47389         to avoid "echo: write error: Broken pipe" error messages on stderr.
47390         Reported by Sam Steingold <sds@gnu.org>.
47391
47392 2008-08-30  Bruno Haible  <bruno@clisp.org>
47393
47394         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
47395         Code copied from m4/open.m4.
47396         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
47397         access and the filename ends in a slash. Code copied from lib/open.c.
47398         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
47399         * tests/test-fopen.c (main): Check against bug with trailing slash.
47400
47401 2008-08-29  Bruno Haible  <bruno@clisp.org>
47402
47403         Avoid some "gcc -pedantic" warnings.
47404         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
47405         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
47406         * lib/dirent.in.h: Likewise.
47407         * lib/fcntl.in.h: Likewise.
47408         * lib/float.in.h: Likewise.
47409         * lib/iconv.in.h: Likewise.
47410         * lib/inttypes.in.h: Likewise.
47411         * lib/locale.in.h: Likewise.
47412         * lib/math.in.h: Likewise.
47413         * lib/netinet_in.in.h: Likewise.
47414         * lib/search.in.h: Likewise.
47415         * lib/signal.in.h: Likewise.
47416         * lib/stdarg.in.h: Likewise.
47417         * lib/stdint.in.h: Likewise.
47418         * lib/stdio.in.h: Likewise.
47419         * lib/stdlib.in.h: Likewise.
47420         * lib/string.in.h: Likewise.
47421         * lib/strings.in.h: Likewise.
47422         * lib/sys_select.in.h: Likewise.
47423         * lib/sys_socket.in.h: Likewise.
47424         * lib/sys_stat.in.h: Likewise.
47425         * lib/sys_time.in.h: Likewise.
47426         * lib/sysexits.in.h: Likewise.
47427         * lib/time.in.h: Likewise.
47428         * lib/unistd.in.h: Likewise.
47429         * lib/wchar.in.h: Likewise.
47430         * lib/wctype.in.h: Likewise.
47431         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
47432         * modules/fchdir (Makefile.am): Likewise.
47433         * modules/fcntl (Makefile.am): Likewise.
47434         * modules/float (Makefile.am): Likewise.
47435         * modules/iconv_open (Makefile.am): Likewise.
47436         * modules/inttypes (Makefile.am): Likewise.
47437         * modules/locale (Makefile.am): Likewise.
47438         * modules/math (Makefile.am): Likewise.
47439         * modules/netinet_in (Makefile.am): Likewise.
47440         * modules/search (Makefile.am): Likewise.
47441         * modules/signal (Makefile.am): Likewise.
47442         * modules/stdarg (Makefile.am): Likewise.
47443         * modules/stdint (Makefile.am): Likewise.
47444         * modules/stdio (Makefile.am): Likewise.
47445         * modules/stdlib (Makefile.am): Likewise.
47446         * modules/string (Makefile.am): Likewise.
47447         * modules/strings (Makefile.am): Likewise.
47448         * modules/sys_select (Makefile.am): Likewise.
47449         * modules/sys_socket (Makefile.am): Likewise.
47450         * modules/sys_stat (Makefile.am): Likewise.
47451         * modules/sys_time (Makefile.am): Likewise.
47452         * modules/sysexits (Makefile.am): Likewise.
47453         * modules/time (Makefile.am): Likewise.
47454         * modules/unistd (Makefile.am): Likewise.
47455         * modules/wchar (Makefile.am): Likewise.
47456         * modules/wctype (Makefile.am): Likewise.
47457         Reported by Reuben Thomas <rrt@sc3d.org>.
47458
47459 2008-08-29  Bruno Haible  <bruno@clisp.org>
47460
47461         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
47462         any more.
47463
47464 2008-08-29  Simon Josefsson  <simon@josefsson.org>
47465
47466         * MODULES.html.sh (Misc): Add bitrotate.
47467
47468         * modules/bitrotate: New file.
47469
47470         * lib/bitrotate.h: New file.
47471
47472         * modules/bitrotate-tests: New file.
47473
47474         * tests/test-bitrotate.c: New file.
47475
47476         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
47477         on the bitrotate module.
47478
47479         * lib/arctwo.c: Use new bitrotate module.
47480
47481 2008-08-29  Jim Meyering  <meyering@redhat.com>
47482
47483         bootstrap: merge changes from coreutils
47484         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
47485         of copied files.  Remove a kludge, now that this is fixed.
47486         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
47487         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
47488         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
47489
47490 2008-08-29  Bruno Haible  <bruno@clisp.org>
47491
47492         * MODULES.html.sh: Remove --cvs-urls option.
47493
47494 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
47495
47496         maint.mk: adjust to file name change
47497         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
47498
47499 2008-08-28  Jim Meyering  <meyering@redhat.com>
47500
47501         * modules/getndelim2 (License): Relicense to LGPLv2+.
47502         Approved by Richard Stallman for the version of 1995, and by
47503         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
47504
47505 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
47506
47507         * lib/getdelim.c (flockfile, funlockfile): Make all of them
47508         dummy if one is not available.  Do not touch them if
47509         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
47510         (getc_maybe_unlocked): New.
47511         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
47512
47513 2008-08-26  Eric Blake  <ebb9@byu.net>
47514
47515         doc/INSTALL: resync from autoconf
47516         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
47517         (INSTALL_PRELUDE): Delete; this is done more efficiently by
47518         moving...
47519         * install.texi [!autoconf]: ...here.  Resync from autoconf.
47520         * INSTALL: Regenerate.
47521         * INSTALL.ISO: New file.
47522         * INSTALL.UTF-8: Likewise.
47523
47524 2008-08-26  Jim Meyering  <meyering@redhat.com>
47525
47526         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
47527         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
47528         these definitions conditional, so that they may be overridden, too.
47529
47530 2008-08-26  Bruno Haible  <bruno@clisp.org>
47531
47532         Generate INSTALL file variants with prettier quotes.
47533         * doc/Makefile (INSTALL_PRELUDE): New macro.
47534         (INSTALL): Use it.
47535         (INSTALL.ISO, INSTALL.UTF-8): New rules.
47536
47537 2008-08-26  Bruno Haible  <bruno@clisp.org>
47538
47539         Run makeinfo in an English locale.
47540         * doc/Makefile (MAKEINFO): New variable.
47541
47542 2008-08-26  Bruno Haible  <bruno@clisp.org>
47543
47544         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
47545         Suggested by Eric Blake.
47546
47547 2008-08-25  Bruno Haible  <bruno@clisp.org>
47548
47549         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
47550
47551 2008-08-25  Eric Blake  <ebb9@byu.net>
47552
47553         c-stack: test that stack overflow can be caught
47554         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
47555         that platform allows handling stack overflow; at least OS/2 EMX
47556         has sigaltstack, but crashes before transferring control to
47557         handler on stack overflow.
47558         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
47559         check for HAVE_STACK_OVERFLOW_HANDLING.
47560         Reported by Elbert Pol.
47561
47562 2008-08-25  Bruno Haible  <bruno@clisp.org>
47563
47564         * doc/posix-functions/strftime.texi: Fix description of strftime
47565         module.
47566
47567 2008-08-24  Bruno Haible  <bruno@clisp.org>
47568
47569         * tests/uniwidth/test-uc_width2.c: New file.
47570         * tests/uniwidth/test-uc_width2.sh: New file.
47571         * modules/uniwidth/width-tests (Files): Add the new files.
47572         (TESTS): Add uniwidth/test-uc_width2.sh.
47573         (TESTS_ENVIRONMENT): New variable.
47574         (check_PROGRAMS): Add test-uc_width2.
47575         (test_uc_width2_SOURCES): New variable.
47576
47577         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
47578         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
47579         not 0x00AB.
47580         Reported by Alexander V. Lukyanov <lav@netis.ru>.
47581
47582 2008-08-22  Eric Blake  <ebb9@byu.net>
47583
47584         test-lock, test-tls: mention why a test is skipped
47585         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
47586         skipped.
47587         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
47588
47589         count-one-bits: relax license
47590         * modules/count-one-bits (License): Relicense to LGPLv2+.
47591         Suggested by Ludovic Courtès, approved by Ben Pfaff.
47592
47593 2008-08-22  Andreas Schwab  <schwab@suse.de>
47594
47595         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
47596         Remove spurious space in assignment.
47597
47598 2008-08-21  Simon Josefsson  <simon@josefsson.org>
47599
47600         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
47601         Paul Eggert <eggert@CS.UCLA.EDU>.
47602
47603 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
47604
47605         * modules/gettext: Add m4/threadlib.m4.
47606
47607 2008-08-19  Eric Blake  <ebb9@byu.net>
47608
47609         test-c-stack: fix compilation failure on FreeBSD 5.0
47610         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
47611         headers before <sys/resource.h>.
47612         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
47613         the bug.
47614         Reported by Nelson H. F. Beebe.
47615
47616         strverscmp: migrate from "strverscmp.h" to <string.h>
47617         * modules/string (Makefile.am): Add new hooks.
47618         * modules/strverscmp (Files): Remove strverscmp.h.
47619         (Depends-on): Add string.
47620         (configure.ac): Add indicator.
47621         (Include): Mention new header.
47622         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
47623         defaults.
47624         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
47625         results.
47626         * lib/strverscmp.h: Delete.
47627         * lib/string.in.h (strverscmp): Provide declaration, when needed.
47628         * tests/test-strverscmp.c (includes): Adjust client.
47629         * lib/check-version.c (includes): Likewise.
47630         * NEWS: Document the change.
47631
47632         strverscmp: add unit test
47633         * modules/strverscmp-tests: New file.
47634         * tests/test-strverscmp.c: Likewise.
47635
47636 2008-08-19  Simon Josefsson  <simon@josefsson.org>
47637
47638         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
47639         regarding Windows crypto stuff, from Mono.
47640
47641 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
47642
47643         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
47644         if present, for intel RND.  Return error on failures.
47645
47646 2008-08-18  Ben Pfaff  <blp@gnu.org>
47647
47648         gitlog-to-changelog: give better diagnostic for failed pipe-open
47649         * build-aux/gitlog-to-changelog: Improve error message: suggest
47650         that the version of Git may be too old.
47651
47652 2008-08-18  Simon Josefsson  <simon@josefsson.org>
47653
47654         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
47655         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
47656
47657 2008-08-18  Bruno Haible  <bruno@clisp.org>
47658
47659         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
47660         pthread_in_use().
47661
47662 2008-08-18  Bruno Haible  <bruno@clisp.org>
47663
47664         * lib/glthread/threadlib.c: Include <pthread.h>.
47665
47666 2008-08-18  Bruno Haible  <bruno@clisp.org>
47667
47668         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
47669         glthread_recursive_lock_* macros.
47670         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
47671         Fix syntax error.
47672
47673 2008-08-18  Bruno Haible  <bruno@clisp.org>
47674
47675         * lib/glthread/thread.c: Avoid forcing a context switch right after
47676         thread creation.
47677
47678 2008-08-17  Bruno Haible  <bruno@clisp.org>
47679
47680         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
47681         * lib/glthread/thread.h: Provide Win32 specific implementation.
47682         * modules/thread (Files): Add lib/glthread/thread.c.
47683         (Depends-on): Add lock.
47684         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
47685
47686 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47687
47688         New module 'yield'.
47689         * modules/yield: New file.
47690         * lib/glthread/yield.h: New file.
47691         * m4/yield.m4: New file.
47692         * MODULES.html.sh (Multithreading): Add yield.
47693
47694 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47695
47696         New module 'thread'.
47697         * modules/thread: New file.
47698         * lib/glthread/thread.h: New file.
47699         * m4/thread.m4: New file.
47700         * MODULES.html.sh (Multithreading): Add thread.
47701
47702 2008-08-17  Bruno Haible  <bruno@clisp.org>
47703
47704         * lib/glthread/lock.h: Include <stdlib.h> always.
47705         * lib/glthread/tls.h: Likewise.
47706         * lib/glthread/cond.h: Likewise.
47707
47708 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47709
47710         New module 'cond'.
47711         * modules/cond: New file.
47712         * lib/glthread/cond.h: New file.
47713         * lib/glthread/cond.c: New file.
47714         * m4/cond.m4: New file.
47715         * MODULES.html.sh (Multithreading): Add cond.
47716
47717 2008-08-16  Eric Blake  <ebb9@byu.net>
47718
47719         c-stack: fix regression on Irix 5.3 from 2008-06-21
47720         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
47721         sa_sigaction...
47722         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
47723         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
47724         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
47725         * modules/signal (Makefile.am): Use the value.
47726         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
47727         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
47728         * doc/posix-headers/signal.texi (signal.h): Document this
47729         portability issue.
47730         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
47731         Reported by Tom G. Christensen.
47732
47733 2008-08-17  Bruno Haible  <bruno@clisp.org>
47734
47735         New module 'threadlib'.
47736         * modules/threadlib: New file.
47737         * lib/glthread/threadlib.c: New file, extracted from
47738         lib/glthread/lock.c.
47739         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
47740         functions.
47741         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
47742         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
47743         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
47744         macros.
47745         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
47746         (gl_DISABLE_THREADS): Remove macro.
47747         * modules/lock (Files): Remove build-aux/config.rpath.
47748         (Depends-on): Remove havelib. Add threadlib.
47749         (configure.ac-early): Remove section.
47750         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
47751         * modules/tls (Depends-on): Remove lock. Add threadlib.
47752         (Link): New section, copied from threadlib.
47753         * MODULES.html.sh (Multithreading): Add threadlib.
47754
47755 2008-08-14  Bruno Haible  <bruno@clisp.org>
47756
47757         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
47758         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
47759         glthread_rwlock_unlock, glthread_rwlock_destroy,
47760         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
47761         glthread_recursive_lock_destroy): Define as macros always.
47762         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
47763         glthread_lock_lock.
47764         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
47765         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
47766         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
47767         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
47768         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
47769         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
47770         (glthread_recursive_lock_lock_func): Renamed from
47771         glthread_recursive_lock_lock.
47772         (glthread_recursive_lock_unlock_func): Renamed from
47773         glthread_recursive_lock_unlock.
47774         (glthread_recursive_lock_destroy_func): Renamed from
47775         glthread_recursive_lock_destroy.
47776
47777 2008-08-14  Bruno Haible  <bruno@clisp.org>
47778
47779         * lib/glthread/lock.h: Renamed from lib/lock.h.
47780         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
47781         * lib/glthread/tls.h: Renamed from lib/tls.h.
47782         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
47783         * lib/fstrcmp.c: Update includes.
47784         * lib/strsignal.c: Update includes.
47785         * modules/lock (Files, Makefile.am): Update.
47786         (Include): Change to "glthread/lock.h".
47787         * modules/tls (Files, Makefile.am): Update.
47788         (Include): Change to "glthread/tls.h".
47789         * tests/test-lock.c: Update includes.
47790         * tests/test-tls.c: Update includes.
47791         * NEWS: Mention the renamed header files.
47792
47793 2008-08-11  Jim Meyering  <meyering@redhat.com>
47794
47795         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
47796
47797 2008-08-11  Eric Blake  <ebb9@byu.net>
47798
47799         test-c-stack: avoid C99-ism
47800         * tests/test-c-stack.c (main): Fix whitespace, move declaration
47801         before statement.
47802         Reported by Alain Guibert.
47803
47804 2008-08-10  Jim Meyering  <meyering@redhat.com>
47805
47806         ensure that return value of uinttostr et al are not ignored
47807         * lib/inttostr.h (__GNUC_PREREQ): Define.
47808         (__attribute_warn_unused_result__): Define.
47809         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
47810
47811 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
47812
47813         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
47814         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
47815
47816 2008-08-07  Jim Meyering  <meyering@redhat.com>
47817
47818         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
47819
47820         * modules/mkstemp (License): Relicense under LGPLv2+.
47821         * modules/tempname (License): Likewise.
47822
47823 2008-08-06  Bruno Haible  <bruno@clisp.org>
47824
47825         * lib/poll.c (poll): Further micro-optimization.
47826
47827 2008-08-06  Jim Meyering  <meyering@redhat.com>
47828
47829         inet_pton.c: use locale-independent tolower
47830         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
47831         (inet_pton6): Use c_tolower rather than tolower.
47832         * modules/inet_pton (Depends-on): Add c-ctype.
47833
47834 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
47835
47836         * lib/poll.c (poll): Avoid division when timeout is 0, cache
47837         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
47838
47839 2008-08-06  Jim Meyering  <meyering@redhat.com>
47840
47841         * modules/inet_pton (License): Relicense under LGPLv2+.
47842
47843 2008-08-03  Bruno Haible  <bruno@clisp.org>
47844
47845         Additional non-aborting API for lock and tls.
47846         * lib/lock.h: Include <errno.h>.
47847         (glthread_lock_init): New macro/function.
47848         (gl_lock_init): Define as wrapper around glthread_lock_init.
47849         (glthread_lock_lock): New macro/function.
47850         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
47851         (glthread_lock_unlock): New macro/function.
47852         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
47853         (glthread_lock_destroy): New macro/function.
47854         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
47855         (glthread_rwlock_init): New macro/function.
47856         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
47857         (glthread_rwlock_rdlock): New macro/function.
47858         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
47859         (glthread_rwlock_wrlock): New macro/function.
47860         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
47861         (glthread_rwlock_unlock): New macro/function.
47862         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
47863         (glthread_rwlock_destroy): New macro/function.
47864         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
47865         (glthread_recursive_lock_init): New macro/function.
47866         (gl_recursive_lock_init): Define as wrapper around
47867         glthread_recursive_lock_init.
47868         (glthread_recursive_lock_lock): New macro/function.
47869         (gl_recursive_lock_lock): Define as wrapper around
47870         glthread_recursive_lock_lock.
47871         (glthread_recursive_lock_unlock): New macro/function.
47872         (gl_recursive_lock_unlock): Define as wrapper around
47873         glthread_recursive_lock_unlock.
47874         (glthread_recursive_lock_destroy): New macro/function.
47875         (gl_recursive_lock_destroy): Define as wrapper around
47876         glthread_recursive_lock_destroy.
47877         (glthread_once): New macro/function.
47878         (gl_once): Define as wrapper around glthread_once.
47879         Update function declarations.
47880         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
47881         glthread_rwlock_init. Return error code.
47882         (glthread_rwlock_rdlock_multithreaded): Renamed from
47883         glthread_rwlock_rdlock. Return error code.
47884         (glthread_rwlock_wrlock_multithreaded): Renamed from
47885         glthread_rwlock_wrlock. Return error code.
47886         (glthread_rwlock_unlock_multithreaded): Renamed from
47887         glthread_rwlock_unlock. Return error code.
47888         (glthread_rwlock_destroy_multithreaded): Renamed from
47889         glthread_rwlock_destroy. Return error code.
47890         (glthread_recursive_lock_init_multithreaded): Renamed from
47891         glthread_recursive_lock_init. Return error code.
47892         (glthread_recursive_lock_lock_multithreaded): Renamed from
47893         glthread_recursive_lock_lock. Return error code.
47894         (glthread_recursive_lock_unlock_multithreaded): Renamed from
47895         glthread_recursive_lock_unlock. Return error code.
47896         (glthread_recursive_lock_destroy_multithreaded): Renamed from
47897         glthread_recursive_lock_destroy. Return error code.
47898         (glthread_once_call): Make static.
47899         (glthread_once_multithreaded): Renamed from glthread_once.
47900         * lib/tls.h: Include <errno.h>.
47901         (glthread_tls_key_init): New macro/function.
47902         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
47903         (glthread_tls_set): New macro/function.
47904         (gl_tls_set): Define as wrapper around glthread_tls_set.
47905         (glthread_tls_key_destroy): New macro/function.
47906         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
47907         Update function declarations.
47908         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
47909         glthread_tls_get.
47910         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
47911
47912 2008-08-04  Eric Blake  <ebb9@byu.net>
47913
47914         gnumakefile: use space, not TAB, outside of targets
47915         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
47916
47917 2008-08-02  Jim Meyering  <meyering@redhat.com>
47918
47919         getdate.y: avoid locale-dependent date parsing failure
47920         In Turkish locales, getdate would fail to recognize keywords
47921         containing a lowercase "i".  The solution is not to rely on
47922         locale-sensitive case-conversion.
47923         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
47924         (lookup_word): Use c_toupper in place of toupper.
47925         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
47926         Reported by Vefa Bicakci <bicave@superonline.com> in
47927         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
47928         * modules/getdate (Depends-on): Add c-ctype.
47929
47930 2008-08-02  Bruno Haible  <bruno@clisp.org>
47931
47932         * gnulib-tool (func_import): When updating or creating a .gitignore
47933         file, prepend each added line with a slash, and ignore leading slashes
47934         from the existing lines.
47935         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
47936
47937 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47938
47939         Portability fix for GNU make 3.79.1.
47940         * top/GNUmakefile: Avoid 'else COND', which older GNU make
47941         versions do not understand.
47942
47943 2008-08-01  Bruno Haible  <bruno@clisp.org>
47944
47945         Work around bug of HP-UX 10.20 cc with -0.0 literal.
47946         * tests/test-isnanf.h (zero): New variable.
47947         (main): Avoid literal -0.0f.
47948         * tests/test-isnand.h (zero): New variable.
47949         (main): Avoid literal -0.0.
47950         * tests/test-isnanl.h (zero): New variable.
47951         (main): Avoid literal -0.0L.
47952         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
47953         (test_float, test_double, test_long_double): Avoid literals -0.0f,
47954         -0.0, -0.0L.
47955         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
47956         (test_signbitd): Avoid literal -0.0.
47957         (test_signbitl): Avoid literal -0.0L.
47958         * tests/test-ceilf1.c (zero): New variable.
47959         (main): Avoid literal -0.0f.
47960         * tests/test-ceill.c (zero): New variable.
47961         (main): Avoid literal -0.0L.
47962         * tests/test-floorf1.c (zero): New variable.
47963         (main): Avoid literal -0.0f.
47964         * tests/test-floorl.c (zero): New variable.
47965         (main): Avoid literal -0.0L.
47966         * tests/test-roundf1.c (zero): New variable.
47967         (main): Avoid literal -0.0f.
47968         * tests/test-round1.c (zero): New variable.
47969         (main): Avoid literal -0.0.
47970         * tests/test-roundl.c (zero): New variable.
47971         (main): Avoid literal -0.0L.
47972         * tests/test-truncf1.c (zero): New variable.
47973         (main): Avoid literal -0.0f.
47974         * tests/test-trunc1.c (zero): New variable.
47975         (main): Avoid literal -0.0.
47976         * tests/test-truncl.c (zero): New variable.
47977         (main): Avoid literal -0.0L.
47978         * tests/test-frexp.c (zero): New variable.
47979         (main): Avoid literal -0.0.
47980         * tests/test-frexpl.c (zero): New variable.
47981         (main): Avoid literal -0.0L.
47982         * tests/test-ldexpl.c (zero): New variable.
47983         (main): Avoid literal -0.0L.
47984         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
47985         (zerod, zerol): New variables.
47986         (test_function): Avoid literals -0.0, -0.0L.
47987         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
47988         (zerod, zerol): New variables.
47989         (test_function): Avoid literals -0.0, -0.0L.
47990         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
47991         (zerod, zerol): New variables.
47992         (test_function): Avoid literals -0.0, -0.0L.
47993         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
47994         (zerod, zerol): New variables.
47995         (test_function): Avoid literals -0.0, -0.0L.
47996         * tests/test-strtod.c (zero): New variable.
47997         (main): Avoid literal -0.0.
47998         Reported by Jonathan C. Patschke <jp@centtech.com>.
47999
48000 2008-07-31  Jim Meyering  <meyering@redhat.com>
48001
48002         sha256.h: correct definition of SHA224_DIGEST_SIZE
48003         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
48004         Reported by Paulie Pena IV <paulie4@gmail.com>.
48005         Define as 224 / 8, rather than as a literal.
48006         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
48007         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
48008         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
48009
48010 2008-07-31  Bruno Haible  <bruno@clisp.org>
48011
48012         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
48013         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
48014         Reported by Jonathan Patschke <jp@centtech.com>.
48015
48016 2008-07-31  Bruno Haible  <bruno@clisp.org>
48017
48018         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
48019         Reported by Paolo Bonzini <bonzini@gnu.org>.
48020
48021 2008-07-30  Eric Blake  <ebb9@byu.net>
48022
48023         test-strtod: allow compilation without -lm
48024         * tests/test-strtod.c (main): Avoid link dependence on fabs.
48025         Reported by Dennis Clarke <blastwave@gmail.com>.
48026
48027 2008-07-28  Jim Meyering  <meyering@redhat.com>
48028
48029         bootstrap: work also when there are no .po files in po/
48030         * build-aux/bootstrap (update_po_files): Complete the change
48031         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
48032
48033 2008-07-27  Jim Meyering  <meyering@redhat.com>
48034
48035         * users.txt: Add zile.
48036
48037 2008-07-26  Ben Pfaff  <blp@gnu.org>
48038
48039         Add missing dependencies on new m4/exponent[fdl].m4 files.
48040         * modules/isnanf-nolibm: Add m4/exponentf.m4.
48041         * modules/isnand-nolibm: Add m4/exponentd.m4.
48042         * modules/isnanl-nolibm: Add m4/exponentl.m4.
48043         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
48044         m4/isnan[fdl].m4, because the macros actually used moved.
48045         Reported by Jim Meyering.
48046
48047 2008-07-14  Ben Pfaff  <blp@gnu.org>
48048
48049         Add isinf module.
48050         * lib/isinf.c: New file.
48051         * lib/math.in.h: Define isinf macro if we have decided to replace
48052         it.
48053         * m4/isinf.m4: New file.
48054         * m4/math_h.m4: Initialize and substitute variables for isinf
48055         module.
48056         * modules/isinf: New file.
48057         * modules/isinf-tests: New file.
48058         * modules/math: Add substitutions for new module.
48059         * tests/test-isinf.c: New file.
48060         * doc/posix-functions/isinf.texi: Mention new module.
48061         * MODULES.html.sh: Mention new module.
48062
48063 2008-07-14  Ben Pfaff  <blp@gnu.org>
48064
48065         Factor out some macros for use by additional modules.
48066         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
48067         exponentf.m4.
48068         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
48069         exponentd.m4.
48070         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
48071         file exponentl.m4.
48072         * m4/exponentf.m4: New file.
48073         * m4/exponentd.m4: New file.
48074         * m4/exponentl.m4: New file.
48075         * modules/isnanf: Use new file m4/exponentf.m4.
48076         * modules/isnand: Use new file m4/exponentd.m4.
48077         * modules/isnanl: Use new file m4/exponentl.m4.
48078
48079 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
48080
48081         mktime.c: normalize tp->tm_isdst value to -1/0/1.
48082         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
48083         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
48084         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
48085
48086         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
48087         readlink on platforms without PATH_MAX.
48088
48089 2008-07-21  Eric Blake  <ebb9@byu.net>
48090
48091         Warn, not fail, on stale version.
48092         * top/GNUmakefile (_curr-ver): Tone down previous patch.
48093
48094         Don't allow installation with stale devel version number.
48095         * top/GNUmakefile (_is-install-target): New macro.
48096         (_curr-ver): Forbid installation with stale version number.
48097
48098 2008-07-20  Bruno Haible  <bruno@clisp.org>
48099
48100         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
48101         TESTS_ENVIRONMENT.
48102         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
48103
48104 2008-07-20  Bruno Haible  <bruno@clisp.org>
48105
48106         * lib/c-stack.h (c_stack_action): Add documentation.
48107         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
48108
48109 2008-07-20  Bruno Haible  <bruno@clisp.org>
48110
48111         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
48112         * modules/readlink (License): Likewise.
48113
48114 2008-07-17  Eric Blake  <ebb9@byu.net>
48115
48116         * modules/c-stack (Link): Fix typo.
48117
48118         Make c-stack use libsigsegv, when available.
48119         * modules/c-stack (Depends-on): Add libsigsegv.
48120         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
48121         needed.
48122         * lib/c-stack.c (SIGSTKSZ): Define fallback.
48123         (segv_handler, overflow_handler, c_stack_action)
48124         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
48125         implementation when libsigsegv is available, but only when using
48126         the library is necessary.
48127         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
48128         comment, explaining why XSI check fails on Linux.
48129         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
48130         * tests/test-c-stack2.sh: Tweak skip message.
48131         * NEWS: Document new link-time requirements.
48132
48133 2008-07-16  Eric Blake  <ebb9@byu.net>
48134
48135         c-stack: Expose false positives when not using libsigsegv.
48136         * modules/c-stack-tests (Files): Expand test.
48137         * tests/test-c-stack.c (main): Add means to conditionally trigger
48138         non-overflow SIGSEGV.
48139         * tests/test-c-stack2.sh: New file.
48140
48141 2008-07-14  Bruno Haible  <bruno@clisp.org>
48142
48143         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
48144         Reported by Eric Blake.
48145
48146 2008-07-14  Sam Steingold  <sds@gnu.org>
48147             Bruno Haible  <bruno@clisp.org>
48148
48149         New module libsigsegv.
48150         * modules/libsigsegv: New file.
48151         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
48152         modifications.
48153         * MODULES.html.sh (Signal handling): New section.
48154
48155 2008-07-14  Bruno Haible  <bruno@clisp.org>
48156
48157         * modules/unictype/ctype-* (Description): Add the word "function".
48158         Improves the resulting doc in MODULES.html.
48159
48160 2008-07-12  Ben Pfaff  <blp@gnu.org>
48161
48162         Add longlong module.
48163         * modules/longlong: New file.
48164
48165 2008-07-12  Bruno Haible  <bruno@clisp.org>
48166
48167         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
48168         to empty.
48169
48170 2008-07-10  Ben Pfaff  <blp@gnu.org>
48171
48172         Add isnan module.
48173         * doc/posix-functions/isnan.texi: Mention new module.
48174         * lib/math.in.h: Define isnan macro if we have decided to replace
48175         it.
48176         * m4/isnan.m4: New file.
48177         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
48178         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
48179         also.
48180         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
48181         redundancy.
48182         * m4/math_h.m4: Initialize and substitute variables for isnan
48183         module.
48184         * modules/isnan: New file.
48185         * modules/isnan-tests: New file.
48186         * modules/math: Add substitutions for new module.
48187         * tests/test-isnan.c: New file.
48188         * MODULES.html.sh: Mention new module.
48189
48190 2008-07-10  Ben Pfaff  <blp@gnu.org>
48191
48192         Add isnanf module.
48193         * lib/isnanf.m4: New file.
48194         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
48195         (gl_HAVE_ISNANF_IN_LIBM): New macro.
48196         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
48197         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
48198         * modules/isnanf: New file.
48199         * modules/isnanf-tests: New file.
48200         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
48201         files.
48202         * tests/test-isnanf-nolibm.c: factored most of its contents into
48203         new file tests/test-isnanf.h.
48204         * tests/test-isnanf.h: New file.
48205         * tests/test-isnanf.c: New file.
48206         * MODULES.html.sh: Mention new module.
48207         * doc/glibc-functions/isnanf.texi: Mention new module.
48208
48209 2008-07-10  Ben Pfaff  <blp@gnu.org>
48210
48211         Add isnand module.
48212         * lib/isnand.h: New file.
48213         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
48214         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
48215         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
48216         functionality also.
48217         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
48218         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
48219         (gl_HAVE_ISNAND_IN_LIBM): New macro.
48220         * modules/isnand: New file.
48221         * modules/isnand-tests: New file.
48222         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
48223         files.
48224         * tests/test-isnand-nolibm.c: factored most of its contents into
48225         new file tests/test-isnand.h.
48226         * tests/test-isnand.h: New file.
48227         * tests/test-isnand.c: New file.
48228         * MODULES.html.sh: Mention new module.
48229
48230 2008-07-10  Ben Pfaff  <blp@gnu.org>
48231
48232         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
48233         * lib/isnand.h: Rename lib/isnand-nolibm.h.
48234         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
48235         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
48236         * modules/isnanf-nolibm: Update references to renamed files.
48237         * modules/isnand-nolibm: Likewise.
48238         * modules/isnanf-nolibm-tests: Likewise.
48239         * modules/isnand-nolibm-tests: Likewise.
48240         * lib/frexp.c: Likewise.
48241         * lib/isfinite.c: Likewise.
48242         * lib/signbitd.c: Likewise.
48243         * lib/signbitf.c: Likewise.
48244         * lib/vasnprintf.c: Likewise.
48245         * tests/test-ceilf1.c: Likewise.
48246         * tests/test-ceilf2.c: Likewise.
48247         * tests/test-floorf1.c: Likewise.
48248         * tests/test-floorf2.c: Likewise.
48249         * tests/test-frexp.c: Likewise.
48250         * tests/test-round1.c: Likewise.
48251         * tests/test-round2.c: Likewise.
48252         * tests/test-roundf1.c: Likewise.
48253         * tests/test-strtod.c: Likewise.
48254         * tests/test-trunc1.c: Likewise.
48255         * tests/test-trunc2.c: Likewise.
48256         * tests/test-truncf1.c: Likewise.
48257         * tests/test-truncf2.c: Likewise.
48258         * NEWS: Mention the renamed header files.
48259
48260 2008-07-11  Jim Meyering  <meyering@redhat.com>
48261
48262         vc-list-files: make the last-resort awk code more portable
48263         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
48264         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
48265         does not support it.
48266
48267 2008-07-10  Eric Blake  <ebb9@byu.net>
48268
48269         Work with tar's bootstrap.
48270         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
48271         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
48272         an m4 comment.
48273
48274 2008-07-09  Jim Meyering  <meyering@redhat.com>
48275
48276         posix-shell.m4: fix typo that made this test malfunction
48277         * m4/posix-shell.m4: Remove capitalization in variable name.
48278
48279 2008-07-08  Bruno Haible  <bruno@clisp.org>
48280
48281         * m4/onceonly.m4: Update comments.
48282         Reported by Ben Pfaff <blp@cs.stanford.edu>.
48283
48284 2008-07-04  Jim Meyering  <meyering@redhat.com>
48285
48286         * users.txt: Add vc-dwim.
48287         (bison, coreutils): Use the gitweb URL.
48288
48289 2008-07-03  Jim Meyering  <meyering@redhat.com>
48290
48291         * users.txt: Add libffcall.  From Sam Steingold.
48292
48293 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
48294
48295         getdate.y: do not ignore TZ with relative day, month or year offset
48296         * lib/getdate.y (get_date): Move the tz-handling block to follow the
48297         relative-date-handling, since otherwise, the latter would clobber the
48298         sole output (an updated Start value) of the tz-handling block.
48299         * tests/test-getdate.c: Tests for the fix
48300
48301 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48302
48303         Recognize 'foo_LIBRARIES += libgnu.a'.
48304         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
48305         makefile snippet has already specified an installation location,
48306         also using '+='.
48307
48308 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
48309
48310         getdate.y: factor out common actions
48311         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
48312         Use them in place of open-coded actions.
48313
48314 2008-07-01  Simon Josefsson  <simon@josefsson.org>
48315
48316         Add self-test for getdate module.
48317         * modules/getdate-tests: New file.
48318         * tests/test-getdate.c: New file.
48319
48320 2008-06-29  Bruno Haible  <bruno@clisp.org>
48321
48322         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
48323         .gitignore.
48324         Reported by Sylvain Beucler <beuc@beuc.net>.
48325
48326 2008-06-29  Bruno Haible  <bruno@clisp.org>
48327
48328         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
48329         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
48330
48331 2008-06-29  Bruno Haible  <bruno@clisp.org>
48332
48333         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
48334         EXTRA_DIST.
48335         Reported by Sylvain Beucler <beuc@beuc.net>.
48336
48337 2008-06-26  Jim Meyering  <meyering@redhat.com>
48338
48339         make several modules depend on the "open" module
48340         This provides slightly increased consistency when opening-for-write
48341         the name of a non-directory spelled with a trailing slash.
48342         * modules/chdir-safer: Likewise.
48343         * modules/chown: Likewise.
48344         * modules/clean-temp: Likewise.
48345         * modules/copy-file: Likewise.
48346         * modules/fchdir: Likewise.
48347         * modules/fcntl-safer: Likewise.
48348         * modules/pipe: Likewise.
48349         * modules/utime: Likewise.
48350         Prompted by Eric Blake and Bruno Haible.
48351
48352 2008-06-24  Andreas Schwab  <schwab@suse.de>
48353
48354         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
48355         literals can be used as initializers for global variables.
48356
48357 2008-06-23  Eric Blake  <ebb9@byu.net>
48358
48359         Make gnulib-cache.m4 easier to diff.
48360         * gnulib-tool (func_import): Allow newlines when reading cached
48361         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
48362
48363 2008-06-23  Bruno Haible  <bruno@clisp.org>
48364
48365         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
48366         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
48367         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
48368         m4/signalblocking.m4.
48369         (gl_PREREQ_SIGACTION): Don't invoke it.
48370         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
48371         gl_PREREQ_SIG_HANDLER_H.
48372         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
48373         Don't check for sigaction here.
48374
48375 2008-06-23  Bruno Haible  <bruno@clisp.org>
48376
48377         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
48378         (install_handlers): Don't set the SA_RESETHAND flag.
48379
48380 2008-06-23  Bruno Haible  <bruno@clisp.org>
48381
48382         * m4/sigaction.m4: Comment fixes.
48383         * lib/signal.in.h: Likewise.
48384
48385 2008-06-23  Eric Blake  <ebb9@byu.net>
48386
48387         Fix typo.
48388         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
48389
48390         Avoid SA_ namespace.
48391         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
48392         Reported by Ralf Wildenhues.
48393
48394         Avoid test failure due to SA_RESTORER.
48395         * tests/test-sigaction.c (SA_MASK): New macro.
48396         (main): Avoid failing due to extension flags being set.
48397         Reported by Jim Meyering.
48398
48399         Revert use of sig-handler.h in sigprocmask.c.
48400         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
48401         it requires the existence of struct sigaction.
48402         * lib/sigprocmask.c (handler_t): Restore typedef.
48403         (rpl_signal, old_handlers): Use local type.
48404
48405 2008-06-22  Bruno Haible  <bruno@clisp.org>
48406
48407         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
48408         conditionally.
48409         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
48410
48411 2008-06-22  Bruno Haible  <bruno@clisp.org>
48412
48413         * doc/posix-functions/siginterrupt.texi: Move note.
48414
48415         * lib/signal.in.h (SA_RESTART): New macro.
48416         * lib/sigaction.c: Update comment.
48417
48418         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
48419
48420         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
48421         (gl_PREREQ_SIGPROCMASK): Invoke it.
48422         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
48423
48424         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
48425
48426         * lib/sigprocmask.c: Update a comment.
48427
48428 2008-06-21  Eric Blake  <ebb9@byu.net>
48429
48430         Use sigaction module rather than signal().
48431         * modules/c-stack (Depends-on): Add sigaction.
48432         * modules/fatal-signal (Depends-on): Likewise.
48433         * modules/nanosleep (Depends-on): Likewise.
48434         * modules/sigprocmask (Files): Add sig-handler.h.
48435         * modules/sigaction (Files): Likewise.
48436         * lib/sig-handler.h (get_handler): New file, suggested by Paul
48437         Eggert.
48438         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
48439         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
48440         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
48441         (init_fatal_signals): Likewise.
48442         * lib/nanosleep.c (rpl_nanosleep): Likewise.
48443         (siginterrupt): Delete fallback.
48444         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
48445         instead.
48446         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
48447         siginterrupt.
48448
48449         New module sigaction, for mingw.
48450         * modules/sigaction: New module...
48451         * modules/sigaction-tests: ...and its test.
48452         * m4/sigaction.m4: New file.
48453         * lib/sigaction.c: Likewise.
48454         * tests/test-sigaction.c: Likewise.
48455         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
48456         * modules/signal (Makefile.am): Likewise.
48457         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
48458         needed.
48459         * doc/posix-headers/signal.texi (signal.h): Mention provided
48460         types.
48461         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
48462         that sigaction is preferable.
48463         * doc/posix-functions/sigaction.texi (sigaction): Mention new
48464         module.
48465         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
48466         sigaction.
48467
48468         Improve robustness of sigprocmask by overriding signal.
48469         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
48470         is in use.
48471         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
48472         (SIGKILL, SIGSTOP): Provide fallbacks.
48473         (rpl_signal): Implement.
48474         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
48475         signal can be called inside handlers.
48476
48477         Fix nanosleep module on mingw.
48478         * modules/nanosleep (Depends-on): Add sys_select.
48479         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
48480
48481         Fix licensing of sigprocmask.
48482         * modules/raise (License): Relicense as LGPL.
48483
48484 2008-06-21  Bruno Haible  <bruno@clisp.org>
48485
48486         * lib/propername.c (proper_name_utf8): Don't use the transliterated
48487         result if it contains question marks.
48488         Reported by Michael Geng <linux@michaelgeng.de>.
48489
48490 2008-06-19  Bruno Haible  <bruno@clisp.org>
48491
48492         Fix CVS-ism.
48493         * doc/gnulib.texi: Include updated-stamp.texi.
48494         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
48495         (updated-stamp.texi): New rule.
48496         (gnulib.info): Depend on it.
48497         * doc/.gitignore: Add updated-stamp.texi.
48498         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
48499
48500 2008-06-19  Bruno Haible  <bruno@clisp.org>
48501
48502         * doc/Makefile (gnulib.info): Update and simplify dependencies.
48503         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
48504
48505 2008-06-19  Eric Blake  <ebb9@byu.net>
48506
48507         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
48508         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
48509         Reported by Stepan Kasal.
48510
48511 2008-06-18  Bruno Haible  <bruno@clisp.org>
48512
48513         * lib/fatal-signal.c (init_fatal_signals): Add comment.
48514         Reported by Eric Blake.
48515
48516 2008-06-18  Eric Blake  <ebb9@byu.net>
48517
48518         Work around cygwin 1.5.25 strsignal bug.
48519         * tests/test-strsignal.c: Allow for const char *.
48520         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
48521
48522 2008-06-18  Simon Josefsson  <simon@josefsson.org>
48523
48524         * users.txt: Update URL to article and add author/date
48525         information.
48526
48527 2008-06-17  Bruno Haible  <bruno@clisp.org>
48528
48529         New macro gl_DISABLE_THREADS.
48530         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
48531         if the user did not pass --enable-threads or --disable-threads option.
48532         (gl_DISABLE_THREADS): New macro.
48533         Reported by Eric Blake <ebb9@byu.net>.
48534
48535 2008-06-17  Bruno Haible  <bruno@clisp.org>
48536
48537         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
48538         when the macro ignores it.
48539         Based on a patch by Eric Blake <ebb9@byu.net>.
48540
48541 2008-06-17  Bruno Haible  <bruno@clisp.org>
48542
48543         * modules/tls (License): Change to LGPLv2+.
48544         Reported by Eric Blake.
48545
48546 2008-06-17  Eric Blake  <ebb9@byu.net>
48547
48548         Simplify c-stack prerequisites.
48549         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
48550         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
48551         no longer requires <ucontext.h> to exist.  Optimize setrlimit
48552         check.
48553         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
48554         <sys/resource.h>.
48555
48556         Move c-stack test into testsuite.
48557         * modules/c-stack-tests: New file.
48558         * lib/c-stack.c [DEBUG]: Move test program...
48559         * tests/test-c-stack.c: ...into this new file.  Skip rather than
48560         fail test if sigaltstack is lacking.
48561         * tests/test-c-stack.sh: New driver file.
48562
48563 2008-06-16  Eric Blake  <ebb9@byu.net>
48564
48565         Use raise module consistently.
48566         * modules/fatal-signal (Depends-on): Add raise.
48567         * modules/sigprocmask (Depends-on): Likewise.
48568         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
48569         * lib/sigprocmask.c (sigprocmask): Likewise.
48570         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
48571         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
48572
48573         Fix compliance bug in sigpending.
48574         * lib/sigprocmask.c (sigpending): Return pending array via
48575         parameter, not return value.
48576
48577 2008-06-14  Eric Blake  <ebb9@byu.net>
48578
48579         Improve obstack-printf test code.
48580         * tests/test-obstack-printf.c (test_function): Fix comment, and
48581         simplify usage of obstack_* in macros.  Add a test for coverage.
48582         Reported by Bruno Haible.
48583
48584 2008-06-14  Bruno Haible  <bruno@clisp.org>
48585
48586         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
48587         array size as a constant, not as a const variable.
48588         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
48589         AC_USE_SYSTEM_EXTENSIONS.
48590         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
48591         Test whether the obstack_printf function actually exists.
48592         * modules/obstack-printf (Depends-on): Add extensions.
48593         (Include): Remove obstack.h.
48594         * modules/obstack-printf-posix (Depends-on): Add extensions.
48595         (Include): Remove obstack.h.
48596
48597 2008-06-13  Eric Blake  <ebb9@byu.net>
48598
48599         Add obstack-printf and obstack-printf-posix modules.
48600         * modules/obstack-printf: New file.
48601         * modules/obstack-printf-posix: Likewise.
48602         * MODULES.html.sh (Misc): Mention them.
48603         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
48604         Likewise.
48605         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
48606         Likewise.
48607         * modules/stdio (Makefile.am): Accomodate new modules.
48608         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
48609         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
48610         Declare.
48611         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
48612         functions.
48613         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
48614         (gl_REPLACE_OBSTACK_PRINTF): New macros
48615         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
48616         * tests/test-obstack-printf.c: New file.
48617         * modules/obstack-printf-tests: Likewise.
48618         * modules/obstack-printf-posix-tests: Likewise.
48619
48620 2008-06-11  Bruno Haible  <bruno@clisp.org>
48621
48622         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
48623         * lib/open.c: Include errno.h.
48624         (open): Fail when attempting to write to a file that has a trailing
48625         slash.
48626         * tests/test-open.c (main): Test against trailing slash bug.
48627         * doc/posix-functions/open.texi: Mention the trailing slash bug.
48628
48629 2008-06-10  Bruno Haible  <bruno@clisp.org>
48630
48631         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
48632         for $? to work inside the trap command, with various /bin/sh-s.
48633         * tests/test-vc-list-files-cvs.sh: Likewise.
48634
48635 2008-06-10  Bruno Haible  <bruno@clisp.org>
48636
48637         * lib/acl-internal.h: Don't include gettext.h here.
48638         * lib/set-mode-acl.c: Include gettext.h here.
48639         * lib/copy-acl.c: Likewise.
48640
48641 2008-06-10  Bruno Haible  <bruno@clisp.org>
48642
48643         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
48644         * lib/wait-process.c (wait_subprocess): Likewise.
48645         * lib/execute.h (execute): Add termsigp argument.
48646         * lib/execute.c (execute): Likewise.
48647         * lib/csharpcomp.c (compile_csharp_using_pnet,
48648         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
48649         * lib/csharpexec.c (execute_csharp_using_pnet,
48650         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
48651         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
48652         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
48653         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
48654         is_jikes_present): Update.
48655         * lib/javaexec.c (execute_java_class): Update.
48656         * lib/javaversion.c (execute_and_read_line): Update.
48657         * NEWS: Document the changes.
48658         Reported by Eric Blake.
48659
48660 2008-06-10  Eric Blake  <ebb9@byu.net>
48661
48662         Add missing include.
48663         * tests/test-strstr.c (includes): Add <signal.h>.
48664         * tests/test-strcasestr.c (includes): Likewise.
48665         * tests/test-memmem.c (includes): Likewise.
48666
48667 2008-06-10  Bruno Haible  <bruno@clisp.org>
48668
48669         * lib/wait-process.c (wait_subprocess): Add an assertion.
48670
48671 2008-06-10  Bruno Haible  <bruno@clisp.org>
48672
48673         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
48674
48675 2008-06-10  Bruno Haible  <bruno@clisp.org>
48676
48677         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
48678         using alarm().
48679         * tests/test-strcasestr.c (main): Likewise.
48680         * tests/test-strstr.c (main): Likewise.
48681
48682 2008-06-09  Bruno Haible  <bruno@clisp.org>
48683
48684         Work around the Solaris 10 ACE ACLs ABI change.
48685         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
48686         declare if ACL_NO_TRIVIAL is present.
48687         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
48688         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
48689         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
48690         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
48691         define if ACL_NO_TRIVIAL is present.
48692         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
48693         and use the current ABI.
48694         (file_has_acl): Use same #if condition as elsewhere.
48695         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
48696         in use, and use the current ABI.
48697         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
48698         Reported by Jim Meyering.
48699
48700 2008-06-09  Eric Blake  <ebb9@byu.net>
48701
48702         Work around environments that (stupidly) ignore SIGALRM.
48703         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
48704         before using alarm().
48705         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
48706         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
48707         Reported by Ian Beckwith <ianb@erislabs.net>.
48708
48709         Produce autobuild blurb earlier in log.
48710         * modules/autobuild (configure.ac-early): Move AB_INIT here.
48711
48712 2008-06-09  Jim Meyering  <meyering@redhat.com>
48713         and OndÅ™ej Vašík  <ovasik@redhat.com>
48714
48715         utimens.c: correct kernel bug work-around
48716         OndÅ™ej Vašík found that the invalid return value of 280 indicates
48717         failure, not success, and the kernel bug we're trying to work
48718         around affects not just the utimensat call, but also the fallback
48719         futimens call.
48720         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
48721         not success.
48722         [HAVE_FUTIMENS]: Use the same work-around, here.
48723
48724 2008-06-09  Jim Meyering  <meyering@redhat.com>
48725
48726         add more guards around definition of ACE_-related code
48727         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
48728         ALLOW and ACE_OWNER are also defined.
48729
48730 2008-06-08  Bruno Haible  <bruno@clisp.org>
48731
48732         * lib/acl-internal.h: Add me as co-author.
48733         * lib/file-has-acl.c: Likewise.
48734         * lib/set-mode-acl.c: Likewise.
48735         * lib/copy-acl.c: Likewise.
48736
48737 2008-06-08  Bruno Haible  <bruno@clisp.org>
48738
48739         Add support for AIX ACLs.
48740         * lib/acl-internal.h (acl_nontrivial): New declaration.
48741         * lib/file-has-acl.c (acl_nontrivial): New function.
48742         (file_has_acl): Add implementation using AIX 4 ACL API.
48743         * lib/set-mode-acl.c (qset_acl): Likewise.
48744         * lib/copy-acl.c (qcopy_acl): Likewise.
48745
48746 2008-06-08  Bruno Haible  <bruno@clisp.org>
48747
48748         Add support for HP-UX ACLs.
48749         * lib/acl-internal.h (acl_nontrivial): New declaration.
48750         * lib/file-has-acl.c (acl_nontrivial): New function.
48751         (file_has_acl): Add implementation using HP-UX 11 ACL API.
48752         * lib/set-mode-acl.c (qset_acl): Likewise.
48753         * lib/copy-acl.c (qcopy_acl): Likewise.
48754
48755 2008-06-08  Bruno Haible  <bruno@clisp.org>
48756
48757         Add support for Cygwin ACLs.
48758         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
48759         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
48760         the chmod_or_fchmod call.
48761         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
48762
48763 2008-06-08  Bruno Haible  <bruno@clisp.org>
48764
48765         Fix bug with setuid modes in Solaris 10+ code.
48766         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
48767         succeeded, when the mode contains some special bits.
48768
48769 2008-06-08  Bruno Haible  <bruno@clisp.org>
48770
48771         Add support for Solaris 7..10 ACLs.
48772         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
48773         declarations.
48774         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
48775         functions.
48776         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
48777         * lib/set-mode-acl.c (qset_acl): Likewise.
48778         * lib/copy-acl.c (qcopy_acl): Likewise.
48779
48780 2008-06-08  Bruno Haible  <bruno@clisp.org>
48781
48782         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
48783         declaration.
48784         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
48785         (acl_access_nontrivial): Remove MacOS X case.
48786         (file_has_acl): Use acl_extended_nontrivial.
48787         * lib/copy-acl.c (qcopy_acl): Likewise.
48788
48789 2008-06-08  Bruno Haible  <bruno@clisp.org>
48790
48791         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
48792
48793 2008-06-08  Jim Meyering  <meyering@redhat.com>
48794
48795         * modules/acl (Maintainer): Add Bruno Haible.
48796
48797 2008-06-07  Bruno Haible  <bruno@clisp.org>
48798
48799         Improve support for Tru64 ACLs.
48800         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
48801         ACL on OSF/1.
48802
48803 2008-06-07  Bruno Haible  <bruno@clisp.org>
48804
48805         Add support for MacOS X ACLs.
48806         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
48807         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
48808         * lib/set-mode-acl.c (qset_acl): Likewise.
48809         * lib/copy-acl.c (qcopy_acl): Likewise.
48810
48811 2008-06-07  Bruno Haible  <bruno@clisp.org>
48812
48813         Fix memory leak introduced on 2008-05-22.
48814         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
48815         use.
48816
48817 2008-06-07  Bruno Haible  <bruno@clisp.org>
48818
48819         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
48820         to construct an empty ACL.
48821
48822 2008-06-07  Bruno Haible  <bruno@clisp.org>
48823
48824         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
48825         precisely.
48826         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
48827
48828 2008-06-07  Bruno Haible  <bruno@clisp.org>
48829
48830         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
48831         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
48832
48833 2008-06-07  Bruno Haible  <bruno@clisp.org>
48834
48835         * doc/posix-functions/_setjmp.texi: Explain the use of this function
48836         regardless of POSIX.
48837         * doc/posix-functions/_longjmp.texi: Likewise.
48838         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
48839         SystemV platform in this case.
48840
48841 2008-06-06  Eric Blake  <ebb9@byu.net>
48842
48843         Document abort() bugs.
48844         * doc/posix-functions/abort.texi (abort): Mention anomalies.
48845
48846         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
48847         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
48848         sigsetjmp.
48849         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
48850         siglongjmp, but only as a macro.
48851         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
48852         is obsolete.
48853         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
48854
48855         Tweak documentation to cover cygwin argz bugs.
48856         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
48857         argz bug fix; no code change needed since no cygwin releases
48858         occurred between the last fix and the bug being tested.
48859         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
48860         module and recently fixed cygwin bugs.
48861         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
48862         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
48863         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
48864         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
48865         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
48866         Likewise.
48867         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
48868         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
48869         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
48870         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
48871         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
48872         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
48873         Likewise.
48874
48875         Avoid gcc warning on cygwin.
48876         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
48877         !ACL_NO_TRIVIAL]: Avoid unused variable.
48878
48879 2008-06-05  Eric Blake  <ebb9@byu.net>
48880
48881         Be tolerant of UNKNOWN version in gnulib-tool test dir.
48882         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
48883         git-version-gen fails to come up with a version.
48884         Reported by Simon Josefsson.
48885
48886 2008-06-05  Jim Meyering  <meyering@redhat.com>
48887             Paul Eggert  <eggert@cs.ucla.edu>
48888
48889         utimens.c: work around a probable Linux kernel bug
48890         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
48891         appears to be a kernel bug that causes utimensat to return 280
48892         instead of 0, indicating success.
48893
48894 2008-06-04  Bruno Haible  <bruno@clisp.org>
48895
48896         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
48897         2008-06-01 commit.
48898
48899 2008-06-04  Bruno Haible  <bruno@clisp.org>
48900
48901         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
48902         * lib/file-has-acl.c (acl_access_nontrivial): New function.
48903         (file_has_acl): Use it. Save errno afterwards.
48904         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
48905
48906 2008-06-03  Bruno Haible  <bruno@clisp.org>
48907
48908         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
48909         draft code. Simplify #ifs.
48910         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
48911         Put Solaris code after POSIX-draft code. Fix comments regarding
48912         Solaris 10, HP-UX. Mention Cygwin.
48913         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
48914
48915 2008-06-03  Eric Blake  <ebb9@byu.net>
48916
48917         Provide fallback for older kernels.
48918         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
48919         Provide runtime fallback if kernel lacks support.
48920         Reported by Mike Frysinger.
48921
48922 2008-06-02  Bruno Haible  <bruno@clisp.org>
48923
48924         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
48925         it exists.
48926
48927 2008-06-02  Bruno Haible  <bruno@clisp.org>
48928
48929         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
48930         * lib/copy-acl.c (qcopy_acl): Update comment.
48931
48932 2008-06-02  Bruno Haible  <bruno@clisp.org>
48933
48934         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
48935         like ACL APIs.
48936
48937 2008-06-02  Bruno Haible  <bruno@clisp.org>
48938
48939         * tests/test-file-has-acl.sh: Use different code for Cygwin.
48940         * tests/test-set-mode-acl.sh: Likewise.
48941         * tests/test-copy-acl.sh: Likewise.
48942         * tests/test-copy-file.sh: Likewise.
48943
48944 2008-06-02  Bruno Haible  <bruno@clisp.org>
48945
48946         * tests/test-file-has-acl.sh: Remove unused code.
48947
48948 2008-06-01  Bruno Haible  <bruno@clisp.org>
48949
48950         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
48951         (copy_acl): Just a wrapper around qcopy_acl that emits the error
48952         messages.
48953         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
48954
48955 2008-06-01  Bruno Haible  <bruno@clisp.org>
48956
48957         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
48958         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
48959         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
48960         APIs.
48961         * modules/acl-tests (configure.ac): Remove tests now contained in
48962         m4/acl.m4.
48963
48964 2008-06-02  Jim Meyering  <meyering@redhat.com>
48965
48966         announce-gen: use a better key-server host name
48967         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
48968         it may be more consistently reliable.  Suggested by Werner Koch
48969         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
48970
48971 2008-06-01  Bruno Haible  <bruno@clisp.org>
48972
48973         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
48974         Reported by Voroskoi Andras <voroskoi@gmail.com>.
48975
48976 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
48977
48978         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
48979
48980 2008-06-01  Bruno Haible  <bruno@clisp.org>
48981
48982         New ACL tests.
48983         * tests/test-file-has-acl.sh: New file.
48984         * tests/test-file-has-acl.c: New file.
48985         * tests/test-set-mode-acl.sh: New file.
48986         * tests/test-set-mode-acl.c: New file.
48987         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
48988         * tests/test-copy-acl.c: New file.
48989         * modules/acl-tests: New file, based on modules/copy-file-tests.
48990         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
48991         (Depends-on): Add acl-tests.
48992         (configure.ac): Remove checks.
48993         (Makefile.am): Don't create test-sameacls program here any more.
48994
48995 2008-06-01  Bruno Haible  <bruno@clisp.org>
48996
48997         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
48998         * tests/test-sameacls.c: Include progname.h.
48999         (main): Invoke set_program_name. Portability fixes for MacOS X,
49000         Solaris, HP-UX.
49001
49002 2008-06-01  Bruno Haible  <bruno@clisp.org>
49003
49004         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
49005         function.
49006         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
49007
49008 2008-06-01  Bruno Haible  <bruno@clisp.org>
49009
49010         * modules/rpmatch (Depends-on): Add strdup.
49011
49012 2008-06-01  Bruno Haible  <bruno@clisp.org>
49013
49014         * lib/pipe.c: Include unistd-safer.h.
49015         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
49016         * modules/pipe (Depends-on): Add unistd-safer.
49017
49018 2008-05-30  Simon Josefsson  <simon@josefsson.org>
49019
49020         * modules/autobuild (configure.ac): Call AB_INIT.
49021
49022 2008-05-30  Simon Josefsson  <simon@josefsson.org>
49023
49024         * tests/test-getaddrinfo.c: Don't print debug messages by default.
49025         Suggested by Bruno Haible <bruno@clisp.org>.
49026
49027 2008-05-30  Simon Josefsson  <simon@josefsson.org>
49028
49029         * tests/test-base64.c: Cast size_t to unsigned long when invoking
49030         printf.  Use %lu instead of %d.  Reported by Bruno Haible
49031         <bruno@clisp.org>.
49032
49033 2008-05-29  Eric Blake  <ebb9@byu.net>
49034
49035         Prefer new POSIX 200x interfaces over futimesat.
49036         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
49037         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
49038         when available.
49039         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
49040
49041 2008-05-28  Bruno Haible  <bruno@clisp.org>
49042
49043         * modules/stpcpy (License): Change to LGPLv2+.
49044         Requested by David Lutterkort <dlutter@redhat.com>.
49045
49046 2008-05-27  Bruno Haible  <bruno@clisp.org>
49047
49048         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
49049         current mingw.
49050         Reported by Jose E. Marchesi <jemarch@gnu.org>.
49051
49052 2008-05-27  Bruno Haible  <bruno@clisp.org>
49053
49054         * modules/iconv_open (Link): New section, from module 'iconv'.
49055         * modules/striconv (Link): Likewise.
49056         * modules/striconveh (Link): Likewise.
49057         * modules/xstriconv (Link): Likewise.
49058         * modules/unicodeio (Link): Likewise.
49059         * modules/propername (Link): Likewise.
49060         Reported by Jim Meyering.
49061
49062 2008-05-26  Jim Meyering  <meyering@redhat.com>
49063
49064         sha256: do not artificially restrict buffer length to be < 2^32
49065         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
49066         uint32_t to size_t.
49067         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
49068         to match.
49069
49070         avoid unaligned access errors, e.g., on sparc
49071         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
49072         direct access through a possibly-unaligned uint64* pointer.
49073         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
49074         direct access through a possibly-unaligned uint32* pointer.
49075         Prompted by this patch from Tom "spot" Callaway:
49076         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
49077
49078         sha512.c: fix typo in comment
49079         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
49080
49081 2008-05-25  Bruno Haible  <bruno@clisp.org>
49082
49083         * lib/set-mode-acl.c: Renamed from lib/acl.c.
49084         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
49085         (Makefile.am): Update lib_SOURCES.
49086
49087 2008-05-25  Bruno Haible  <bruno@clisp.org>
49088
49089         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
49090
49091 2008-05-25  Jim Meyering  <meyering@redhat.com>
49092
49093         useless-if-before-free: freed expr may have white-space differences
49094         * build-aux/useless-if-before-free: Recognize cases in which the
49095         freed expression differs from the tested one in embedded white
49096         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
49097         $1 was used, so we can't make any regexp shy.  Improved tests now
49098         detect this.
49099
49100         useless-if-before-free: accept white space in the expression.
49101         * build-aux/useless-if-before-free: For now, any white space
49102         in the expression must be identical in the free argument.
49103
49104         useless-if-before-free: efficiency tweak
49105         * build-aux/useless-if-before-free: Make the expression-matching
49106         regexp "shy".
49107         Make the *outer* regexp shy, not the expr-matching one.
49108
49109         update code-in-comment to accept cast of free arg
49110         * build-aux/useless-if-before-free: Update regexp.
49111
49112 2008-05-25  Bruno Haible  <bruno@clisp.org>
49113
49114         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
49115         * modules/copy-file-tests (Files, Makefile.am): Update.
49116         * tests/test-copy-file.c (func_test_copy): Update.
49117
49118 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
49119
49120         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
49121
49122 2008-05-23  Bruno Haible  <bruno@clisp.org>
49123
49124         Improve support for ACLs on OSF/1.
49125         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
49126         Remove fallback for unknown flavors of ACLs.
49127
49128 2008-05-22  Bruno Haible  <bruno@clisp.org>
49129
49130         Add support for ACLs on OSF/1.
49131         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
49132         replacements.
49133         (acl_free_text): New macro fallback.
49134         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
49135         acl_free.
49136         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
49137         acl_free_text function. Require AC_C_INLINE.
49138
49139 2008-05-22  Bruno Haible  <bruno@clisp.org>
49140
49141         Make copy_acl work on MacOS X 10.5.
49142         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
49143         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
49144         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
49145         If MODE_INSIDE_ACL, don't assume that every system has the same text
49146         representation for ACLs as FreeBSD.
49147         * lib/copy-acl.c (copy_acl): Add support for platforms with
49148         !MODE_INSIDE_ACL.
49149         * lib/file-has-acl.c (file_has_acl): Likewise.
49150         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
49151         FreeBSD, MacOS X, or IRIX, respectively.
49152
49153 2008-05-22  Bruno Haible  <bruno@clisp.org>
49154
49155         * lib/acl.h: Don't include <sys/acl.h>.
49156         (GETACLCNT): Move fallback to lib/acl-internal.h.
49157         * lib/acl-internal.h: Include <sys/acl.h> here.
49158         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
49159
49160 2008-05-22  Bruno Haible  <bruno@clisp.org>
49161
49162         Split off copy_acl function to separate file.
49163         * lib/copy-acl.c: New file, extracted from lib/acl.c.
49164         * lib/acl.c (copy_acl): Moved function to separate file.
49165         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
49166         * modules/acl (Files): Add lib/copy-acl.c.
49167         (Makefiles.am): Augment lib_SOURCES.
49168
49169 2008-05-22  Bruno Haible  <bruno@clisp.org>
49170
49171         * modules/copy-file-tests: New file.
49172         * tests/test-copy-file.sh: New file.
49173         * tests/test-copy-file.c: New file.
49174         * tests/test-copy-file-sameacls.c: New file.
49175
49176 2008-05-22  Eric Blake  <ebb9@byu.net>
49177
49178         Avoid gcc warning.
49179         * tests/test-memcmp.c (main): Pass NULL indirectly.
49180
49181 2008-05-21  Bruno Haible  <bruno@clisp.org>
49182
49183         Add reference doc about ACLs.
49184         * doc/acl-resources.txt: New file.
49185         * doc/acl-cygwin.txt: New file.
49186
49187 2008-05-21  Bruno Haible  <bruno@clisp.org>
49188
49189         Avoid one more warning from gcc.
49190         * lib/vasnprintf.c (IF_LINT): Update comments.
49191         (VASNPRINTF): Use it also for the 'prefix' array initializer.
49192
49193 2008-05-21  Jim Meyering  <meyering@redhat.com>
49194
49195         avoid a warning from gcc
49196         * lib/vasnprintf.c (IF_LINT): Define.
49197         (scale10_round_decimal_long_double):
49198         Use it to avoid a "may be used uninitialized" warning.
49199         (scale10_round_decimal_double): Likewise.
49200
49201 2008-05-21  Simon Josefsson  <simon@josefsson.org>
49202
49203         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
49204         declared.
49205
49206 2008-05-20  Bruno Haible  <bruno@clisp.org>
49207
49208         * tests/test-memcmp.c (main): Test also the sign of the result. Test
49209         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
49210
49211 2008-05-20  Simon Josefsson  <simon@josefsson.org>
49212
49213         * modules/memcmp-tests: New file.
49214         * tests/test-memcmp.c: New file.
49215
49216 2008-05-19  Bruno Haible  <bruno@clisp.org>
49217
49218         * modules/propername (Notice, configure.ac): Put quoted "..." into
49219         --keyword option.
49220         * lib/propername.h: Update comments accordingly.
49221         Reported by Eric Blake.
49222
49223 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
49224
49225         * modules/getpass-gnu (Depends-on): Add fseeko.
49226
49227 2008-05-19  Simon Josefsson  <simon@josefsson.org>
49228
49229         * modules/base64-tests: New file.
49230
49231 2008-05-19  Bo Borgerson <gigabo@gmail.com>
49232
49233         * lib/base64.c (base64_decode_ctx): If a decode context structure
49234         was passed in use it to ignore newlines.  If a context structure
49235         was _not_ passed in, continue to treat newlines as garbage (this
49236         is the historical behavior).  Formerly base64_decode.
49237         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
49238         takes a decode context structure.
49239         * lib/base64.h (base64_decode): Macro for four-argument calls.
49240         (base64_decode_alloc): Likewise.
49241         * lib/base64.c (base64_decode_ctx): If a decode context structure
49242         was passed in use it to ignore newlines.  If a context structure
49243         was _not_ passed in, continue to treat newlines as garbage (this
49244         is the historical behavior).  Formerly base64_decode.
49245         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
49246         takes a decode context structure.
49247         * lib/base64.h (base64_decode): Macro for four-argument calls.
49248         (base64_decode_alloc): Likewise.
49249
49250 2008-05-19  Jim Meyering  <meyering@redhat.com>
49251
49252         avoid a warning from gcc
49253         * lib/trim.c (IF_LINT): Define.
49254         (trim2): Use it to avoid a "may be used uninitialized" warning.
49255
49256         Fix doc typo.
49257         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
49258
49259 2008-05-19  Bruno Haible  <bruno@clisp.org>
49260
49261         * doc/glibc-functions/getpass.texi: Document limits of other
49262         implementations.
49263
49264 2008-05-19  Simon Josefsson  <simon@josefsson.org>
49265             Bruno Haible <bruno@clisp.org>
49266
49267         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
49268
49269 2008-05-18  Bruno Haible  <bruno@clisp.org>
49270
49271         * modules/propername: New file, from GNU gettext.
49272         * lib/propername.h: New file, from GNU gettext.
49273         * lib/propername.c: New file, from GNU gettext.
49274         * MODULES.html.sh (Internationalization functions): Add propername.
49275
49276 2008-05-16  Jim Meyering  <meyering@redhat.com>
49277             Bruno Haible  <bruno@clisp.org>
49278
49279         Avoid some warnings from "gcc -Wshadow".
49280         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
49281
49282 2008-05-15  Eric Blake  <ebb9@byu.net>
49283
49284         Extend previous patch to cygwin 1.7.0.
49285         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
49286         fast implementation in cygwin >= 1.7.0.
49287         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
49288         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
49289
49290 2008-05-15  Bruno Haible  <bruno@clisp.org>
49291
49292         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
49293         implementation in glibc >= 2.9.
49294         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
49295         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
49296
49297 2008-05-15  Bruno Haible  <bruno@clisp.org>
49298
49299         * MODULES.html.sh (Internationalization functions): Remove linebreak.
49300         (Unicode string functions): Add unilbrk/*.
49301         Reported by Karl Berry.
49302
49303 2008-05-15  Eric Blake  <ebb9@byu.net>
49304
49305         Fix violation of <stdbool.h> replacement in regex.
49306         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
49307         * lib/regexec.c (re_search_internal): Likewise.
49308         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
49309
49310 2008-05-15  Jim Meyering  <meyering@redhat.com>
49311
49312         avoid distracting test output when git or cvs is not found
49313         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
49314         * tests/test-vc-list-files-git.sh: Likewise.
49315
49316 2008-05-15  Eric Blake  <ebb9@byu.net>
49317
49318         Glibc finally accepted the memmem speedup code, bugzilla #5514.
49319         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
49320         glibc version.
49321         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
49322         * doc/posix-functions/strstr.texi (strstr): Likewise.
49323         * lib/str-two-way.h (MAX): Sychronize with glibc.
49324
49325 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
49326
49327         * lib/regcomp.c (optimize_utf8): Add a note on why we test
49328         opr.ctx_type.
49329         (calc_first): Initialize constraint field.
49330         (duplicate_node_closure): Use it instead of special casing ANCHORS.
49331         Fix grammar.
49332         (duplicate_node): Merge constraint field for all node types.
49333         (calc_eclosure_iter): Look at constraint field for all node types.
49334         * lib/regex_internal.c (create_cd_newstate): Don't look at
49335         opr.ctx_type.
49336
49337 2008-05-14  Bruno Haible  <bruno@clisp.org>
49338
49339         Help GCC to do better code generation.
49340         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
49341         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
49342         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
49343         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
49344         Declare with attribute 'malloc' if supported.
49345
49346 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
49347
49348         use "echo STR|wc -c" rather than unportable "expr length STR"
49349         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
49350         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
49351
49352 2008-05-14  Jim Meyering  <meyering@redhat.com>
49353
49354         use dd ibs=$n count=1 ... rather than less-portable head -c$n
49355         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
49356         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
49357         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
49358         via Collin Lasse.
49359
49360 2008-05-14  Eric Blake  <ebb9@byu.net>
49361
49362         Avoid quadratic growth in gl_LIBSOURCES.
49363         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
49364         Suggested by Bruno Haible.
49365
49366         Test xmemdup0.
49367         * modules/xmemdup0-tests: New file.
49368         * tests/test-xmemdup0.c: Likewise.
49369
49370 2008-05-13  Eric Blake  <ebb9@byu.net>
49371
49372         Split xmemdup0 into its own module.
49373         * modules/xmemdup0: New file.
49374         * lib/xmemdup0.h: Likewise.
49375         * lib/xmemdup0.c: Likewise.
49376         * MODULES.html.sh (Memory management functions): Add xmemdup0.
49377         * lib/xalloc.h (xmemdup0): Remove.
49378         * lib/xmalloc.c (xmemdup0): Likewise.
49379
49380 2008-05-13  Eric Blake  <ebb9@byu.net>
49381             Bruno Haible  <bruno@clisp.org>
49382
49383         Reduce number of forks required during autoconf.
49384         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
49385         and gl_LIBSOURCES_DIR.
49386         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
49387         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
49388         m4_syscmd per file.
49389         <m4_foreach_w>: Move...
49390         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
49391
49392 2008-05-13  Eric Blake  <ebb9@byu.net>
49393
49394         * gnulib-tool: Fix various comment typos.
49395
49396 2008-05-12  Bruno Haible  <bruno@clisp.org>
49397
49398         Tailor the linebreaking algorithm.
49399         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
49400
49401 2008-05-12  Bruno Haible  <bruno@clisp.org>
49402
49403         Update to Unicode 5.0.0.
49404         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
49405         LBP_JV, LBP_JT. Redistribute values.
49406         (unilbrk_table): Change size.
49407         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
49408         Unicode TR#14 rev. 22.
49409         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
49410         LBP_JV, LBP_JT. Redistribute values.
49411         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
49412         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
49413         Update.
49414         * lib/unilbrk/lbrkprop1.h: Regenerated.
49415         * lib/unilbrk/lbrkprop2.h: Regenerated.
49416         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
49417         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
49418         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
49419         Likewise.
49420         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
49421         Likewise.
49422         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
49423         result.
49424         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
49425         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
49426         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
49427         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
49428         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
49429         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
49430
49431 2008-05-11  Bruno Haible  <bruno@clisp.org>
49432
49433         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
49434
49435 2008-05-11  Bruno Haible  <bruno@clisp.org>
49436
49437         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
49438         * modules/unilbrk/gen-lbrk: New file.
49439
49440 2008-05-11  Bruno Haible  <bruno@clisp.org>
49441
49442         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
49443         * m4/sha512.m4 (gl_SHA512): Likewise.
49444
49445 2008-05-11  Jim Meyering  <meyering@redhat.com>
49446
49447         New modules: crypto/sha256, crypto/sha512 (from coreutils)
49448         * modules/crypto/sha256: New file.
49449         * modules/crypto/sha512: Likewise.
49450         * lib/sha256.c: Likewise.
49451         * lib/sha256.h: Likewise.
49452         * lib/sha512.c: Likewise.
49453         * lib/sha512.h: Likewise.
49454         * lib/u64.h: Likewise.
49455         * m4/sha256.m4: Likewise.
49456         * m4/sha512.m4: Likewise.
49457         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
49458
49459 2008-05-10  Bruno Haible  <bruno@clisp.org>
49460
49461         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
49462         (Input/Output <stdio.h>): Add xprintf.
49463         (Signal handling <signal.h>): Add strsignal.
49464         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
49465         (Core language properties): Add func.
49466         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
49467         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
49468         strings.
49469         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
49470         (Input/output): New section.
49471         (File system functions): Add openat-die, stat-macros.
49472         (Networking functions): Add sockets.
49473         (Unicode string functions): Add unictype/*.
49474         (Support for building libraries and executables): Add gperf.
49475         (Support for building documentation): Add agpl-3.0.
49476         (Misc): Add nocrash.
49477
49478 2008-05-10  Bruno Haible  <bruno@clisp.org>
49479
49480         * modules/unictype/gen-ctype: New file.
49481
49482 2008-05-10  Jim Meyering  <meyering@redhat.com>
49483
49484         Make chdir-safer.c more efficient on a system with no symlinks.
49485         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
49486         also if ELOOP is zero.  Suggested by Bruno Haible.
49487
49488         Make chdir-safer.c slightly safer.
49489         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
49490         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
49491
49492         Avoid compile failure on systems without ELOOP (like mingw).
49493         * lib/chdir-safer.c (ELOOP): Define if not already defined.
49494         Reported by Bruno Haible.
49495
49496 2008-05-10  Bruno Haible  <bruno@clisp.org>
49497
49498         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
49499         (is_utf8_encoding): Use a case-insensitive comparison.
49500         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
49501         streq.
49502
49503 2008-05-10  Bruno Haible  <bruno@clisp.org>
49504
49505         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
49506         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
49507         * lib/unilbrk/ulc-common.h (iconv_string_length,
49508         iconv_string_keeping_offsets): Remove declarations.
49509         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
49510         Don't include <iconv.h>, streq.h, xsize.h.
49511         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
49512         conversion.
49513         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
49514         <iconv.h>, streq.h, xsize.h.
49515         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
49516         conversion.
49517         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
49518         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
49519         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
49520         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
49521
49522 2008-05-10  Bruno Haible  <bruno@clisp.org>
49523
49524         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
49525         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
49526
49527         * modules/unilbrk/u32-width-linebreaks-tests: New file.
49528         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
49529
49530         * modules/unilbrk/u16-width-linebreaks-tests: New file.
49531         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
49532
49533         * modules/unilbrk/u8-width-linebreaks-tests: New file.
49534         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
49535
49536         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
49537         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
49538
49539         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
49540         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
49541
49542         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
49543         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
49544
49545         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
49546         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
49547
49548 2008-05-10  Bruno Haible  <bruno@clisp.org>
49549
49550         Split up 'linebreak' module.
49551         * lib/unilbrk.h: New file, based on lib/linebreak.h.
49552         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
49553         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
49554         modifications.
49555         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
49556         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
49557         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
49558         lib/linebreak.c.
49559         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
49560         lib/linebreak.c.
49561         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
49562         lib/linebreak.c.
49563         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
49564         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
49565         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
49566         lib/linebreak.c.
49567         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
49568         lib/linebreak.c.
49569         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
49570         lib/linebreak.c.
49571         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
49572         lib/linebreak.c.
49573         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
49574         lib/linebreak.c.
49575         * modules/unilbrk/base: New file.
49576         * modules/unilbrk/tables: New file.
49577         * modules/unilbrk/u8-possible-linebreaks: New file.
49578         * modules/unilbrk/u16-possible-linebreaks: New file.
49579         * modules/unilbrk/u32-possible-linebreaks: New file.
49580         * modules/unilbrk/ulc-common: New file.
49581         * modules/unilbrk/ulc-possible-linebreaks: New file.
49582         * modules/unilbrk/u8-width-linebreaks: New file.
49583         * modules/unilbrk/u16-width-linebreaks: New file.
49584         * modules/unilbrk/u32-width-linebreaks: New file.
49585         * modules/unilbrk/ulc-width-linebreaks: New file.
49586         * lib/linebreak.h: Remove file.
49587         * lib/linebreak.c: Remove file.
49588         * m4/linebreak.m4: Remove file.
49589         * modules/linebreak: Remove file.
49590         * NEWS: Mention the changes.
49591
49592 2008-05-09  Eric Blake  <ebb9@byu.net>
49593
49594         Add xmemdup0.
49595         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
49596         implementation.
49597         * lib/xmalloc.c (xmemdup0): New C implementation.
49598
49599 2008-05-08  Bruno Haible  <bruno@clisp.org>
49600
49601         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
49602
49603 2008-05-07  Eric Blake  <ebb9@byu.net>
49604
49605         Support cross-compilation of <wctype.h>.
49606         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
49607         AC_CACHE_CHECK.
49608
49609 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
49610
49611         * build-aux/vc-list-files: Add support for bzr.
49612
49613 2008-05-03  Jim Meyering  <meyering@redhat.com>
49614
49615         avoid failed assertion with tight malloc
49616         * tests/test-getndelim2.c: Correct an off-by-one assertion.
49617
49618 2008-05-03  Simon Josefsson  <simon@josefsson.org>
49619
49620         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
49621         are needed from arpa/inet.h.
49622         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
49623         Reported by Bruno Haible.
49624
49625 2008-05-02  Jim Meyering  <meyering@redhat.com>
49626
49627         avoid compilation error on FreeBSD 6
49628         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
49629
49630 2008-05-01  Jim Meyering  <meyering@redhat.com>
49631
49632         useless-if-before-free: correct --help's exit status description
49633         * build-aux/useless-if-before-free (usage): Like grep, exit 0
49634         for one or more matches, etc.  Reported by Bruno Haible.
49635
49636         vc-list-files: make the stand-alone gnulib test work
49637         * modules/vc-list-files-tests (configure.ac):
49638         Define and AC_SUBST abs_aux_dir.
49639         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
49640         $(abs_top_srcdir) to each script and having each of them
49641         duplicate the work of setting PATH, set PATH here, using
49642         the new variable, abs_aux_dir instead.
49643         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
49644         * tests/test-vc-list-files-git.sh: Likewise.
49645         Reported by Bruno Haible.
49646
49647 2008-05-01  Bruno Haible  <bruno@clisp.org>
49648
49649         * lib/getndelim2.c (getndelim2): Fix newsize computation during
49650         reallocation. Rename 'done' to 'found_delimiter'.
49651
49652 2008-05-01  Jim Meyering  <meyering@redhat.com>
49653
49654         vc-list-files: accommodate /bin/sh like the one from Solaris 10
49655         * build-aux/vc-list-files: Use `...`, not $(...).
49656
49657 2008-04-30  Jim Meyering  <meyering@redhat.com>
49658
49659         add tests for vc-list-files
49660         * modules/vc-list-files-tests: New module.
49661         * tests/test-vc-list-files-cvs.sh: New file.
49662         * tests/test-vc-list-files-git.sh: New file.
49663
49664         avoid a warning from gcc
49665         * lib/getndelim2.c (IF_LINT): Define.
49666         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
49667
49668         vc-list-files: work properly with build-aux/cvsu, too
49669         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
49670         to all cvs-based clauses.
49671
49672         vc-list-files: work properly in the CVS+awk case, too
49673         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
49674
49675         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
49676         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
49677         take more than one file argument, so .  Add quotes, just in case $dir
49678         ever contains a shell meta-character.  Prompted by Soren Hansen in
49679         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
49680
49681 2008-04-29  Eric Blake  <ebb9@byu.net>
49682
49683         Optimize getndelim2 to use block operations when possible.
49684         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
49685         freadseek, and memchr2.
49686         * lib/getndelim2.c (getndelim2): Use them for block reads.
49687
49688 2008-04-29  Bruno Haible  <bruno@clisp.org>
49689
49690         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
49691         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
49692         * modules/inet_ntop (Depends-on): Add extensions.
49693         * modules/inet_pton (Depends-on): Likewise.
49694         Reported by Simon Josefsson.
49695
49696 2008-04-29  Jim Meyering  <meyering@redhat.com>
49697
49698         When the is more than one match in a block, match all of them.
49699         * build-aux/useless-if-before-free: Iterate through each block
49700         until there are no more matches.
49701
49702         Fix broken useless-if-before-free script.
49703         * build-aux/useless-if-before-free: Fix typo: missing "?" after
49704         the expression to match cast of argument to free-like function.
49705
49706 2008-04-29  Eric Blake  <ebb9@byu.net>
49707
49708         Use new header.
49709         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
49710
49711 2008-04-29  Jim Meyering  <meyering@redhat.com>
49712
49713         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
49714         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
49715         by gnulib to exist and to declare e.g., inet_ntop.
49716         Don't include "inet_ntop.h", now removed.
49717
49718         * m4/arpa_inet_h.m4: Remove trailing blanks.
49719
49720 2008-04-29  Eric Blake  <ebb9@byu.net>
49721
49722         Silence valgrind on safe reads beyond potential array bounds.
49723         * lib/rawmemchr.valgrind: New file.
49724         * lib/strchrnul.valgrind: Likewise.
49725         * modules/rawmemchr (Files): Distribute new file.
49726         * modules/strchrnul (Files): Likewise.
49727         Suggested by Bruno Haible.
49728
49729 2008-04-29  Bruno Haible  <bruno@clisp.org>
49730
49731         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
49732         (inet_ntop, inet_pton): Change portability warning's wording.
49733         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
49734         Invoke gl_CHECK_NEXT_HEADERS.
49735         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
49736         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
49737         set ARPA_INET_H.
49738         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
49739         * modules/arpa_inet (Description): No longer only for systems that
49740         lack it.
49741         (Depends-on): Add include_next.
49742         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
49743         HAVE_ARPA_INET_H.
49744
49745 2008-04-29  Jim Meyering  <meyering@redhat.com>
49746
49747         * modules/mkdir (License): Re-license as LGPLv2+.
49748
49749 2008-04-29  Bruno Haible  <bruno@clisp.org>
49750
49751         * modules/rawmemchr (Maintainer): Set to Eric.
49752         * modules/strchrnul (Maintainer): Likewise.
49753
49754 2008-04-29  Simon Josefsson  <simon@josefsson.org>
49755
49756         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
49757         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
49758
49759         * modules/arpa_inet (arpa/inet.h): Use them.
49760
49761 2008-04-28  Eric Blake  <ebb9@byu.net>
49762
49763         Test getndelim2.
49764         * modules/getndelim2-tests: New file.
49765         * tests/test-getndelim2.c: Likewise.
49766         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
49767         stream.
49768         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
49769
49770         * MODULES.html.sh: Document new module.
49771
49772 2008-04-20  Bruno Haible  <bruno@clisp.org>
49773
49774         * lib/c-stack.c (die): Use raise.
49775         * modules/c-stack (Depends-on): Add raise.
49776
49777 2008-04-28  Bruno Haible  <bruno@clisp.org>
49778
49779         Expect rpmatch to be declared.
49780         * lib/yesno.c (rpmatch): Remove declaration.
49781
49782         Declare rpmatch.
49783         * lib/stdlib.in.h (rpmatch): New declaration.
49784         * lib/rpmatch.c: Include <stdlib.h> first.
49785         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
49786         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
49787         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
49788         HAVE_RPMATCH.
49789         * modules/rpmatch (Depends-on): Add stdlib, extensions.
49790         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
49791         (Include): Set to <stdlib.h>.
49792         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
49793         HAVE_RPMATCH.
49794         * NEWS: Document the change.
49795
49796 2008-04-28  Bruno Haible  <bruno@clisp.org>
49797
49798         Change rpmatch to use nl_langinfo when appropriate.
49799         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
49800         (N_): New macro.
49801         (localized_pattern): New function/macro.
49802         (try): Remove match, nomatch arguments. Copy the pattern into safe
49803         memory before caching it.
49804         (rpmatch): Use localized_pattern. Add translator comments.
49805         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
49806         Suggested by Eric Blake.
49807         * modules/rpmatch (Depends-on): Add stdbool.
49808
49809 2008-04-28  Eric Blake  <ebb9@byu.net>
49810
49811         Add rawmemchr module, matching glibc.
49812         * modules/string (Makefile.am): New indicator.
49813         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
49814         * lib/string.in.h (rawmemchr): Declare when appropriate.
49815         * modules/rawmemchr: New file.
49816         * m4/rawmemchr.m4: Likewise.
49817         * lib/rawmemchr.c: Likewise.
49818         * modules/rawmemchr-tests: Likewise.
49819         * tests/test-rawmemchr.c: Likewise.
49820         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
49821         module.
49822         * modules/strchrnul (Depends-on): Add rawmemchr.
49823         * lib/strchrnul.c (strchrnul): Optimize a corner case.
49824
49825         Whitespace cleanup.
49826         * tests/test-strchrnul.c: Reindent.
49827         * lib/strchrnul.c: Likewise.
49828
49829         Optimize and test strchrnul.
49830         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
49831         * modules/strchrnul-tests: New file.
49832         * tests/test-strchrnul.c: Likewise.
49833
49834         Remove intprops dependency.
49835         * modules/memchr (Depends-on): Remove intprops.
49836         * modules/memrchr (Depends-on): Likewise.
49837         * modules/memchr2 (Depends-on): Likewise.
49838         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
49839         * lib/memrchr.c (__memrchr): Likewise.
49840         * lib/memrchr2.c (memchr2): Likewise.
49841         Reported by Simon Josefsson.
49842
49843 2008-04-28  Simon Josefsson  <simon@josefsson.org>
49844
49845         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
49846         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49847
49848 2008-04-28  Simon Josefsson  <simon@josefsson.org>
49849
49850         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
49851
49852         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
49853
49854         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
49855
49856         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
49857         declarations.
49858         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
49859
49860         * m4/inet_pton.m4: Don't check for header files.
49861
49862         * m4/inet_ntop.m4: Don't check for header files.
49863
49864 2008-04-28  Simon Josefsson  <simon@josefsson.org>
49865
49866         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
49867         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
49868         trigger for cygwin).
49869         Reported by Bruno Haible  <bruno@clisp.org>.
49870
49871 2008-04-28  Bruno Haible  <bruno@clisp.org>
49872
49873         * doc/posix-functions/strdup.texi: Mention mingw problem.
49874
49875 2008-04-27  Bruno Haible  <bruno@clisp.org>
49876
49877         * modules/stat-time-tests (Depends-on): Add sleep.
49878         * tests/test-stat-time.c (force_unlink): New function.
49879         (cleanup): Use it.
49880         (test_mtime): Remove the ctime related tests.
49881         (test_ctime): New function, containing the ctime related tests.
49882         (main): Call test_ctime, except on native Windows platforms.
49883
49884 2008-04-27  Bruno Haible  <bruno@clisp.org>
49885
49886         * lib/rpmatch.c (rpmatch): Add some comments.
49887         Reported by James Youngman <jay@gnu.org>.
49888
49889 2008-04-27  Bruno Haible  <bruno@clisp.org>
49890
49891         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
49892         quiet NaNs.
49893
49894 2008-04-27  Bruno Haible  <bruno@clisp.org>
49895
49896         Make test-yesno.sh work on mingw.
49897         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
49898         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
49899         (main): Set stdin to binary mode.
49900         * modules/yesno-tests (Depends-on): Add binary-io.
49901
49902 2008-04-27  Bruno Haible  <bruno@clisp.org>
49903
49904         Fix 'isfinite' on x86, x86_64, ia64 platforms.
49905         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
49906         argument that lie outside the IEEE 854 domain.
49907         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
49908         (gl_ISFINITE): Use it.
49909         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
49910
49911 2008-04-27  Bruno Haible  <bruno@clisp.org>
49912
49913         Allow local renaming in config.h.
49914         * lib/memrchr.c (memrchr): Don't undefine outside libc.
49915
49916 2008-04-27  Bruno Haible  <bruno@clisp.org>
49917
49918         * lib/memchr.c (__memchr): Change type of 'i'.
49919         * lib/memchr2.c (memchr2): Likewise.
49920
49921 2008-04-26  Eric Blake  <ebb9@byu.net>
49922         and Bruno Haible  <bruno@clisp.org>
49923
49924         Optimize and test memrchr.
49925         * modules/memrchr (Depends-on): Add intprops.
49926         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
49927         * modules/memrchr-tests: New file.
49928         * tests/test-memrchr.c: New file.
49929
49930 2008-04-26  Bruno Haible  <bruno@clisp.org>
49931
49932         Add tentative support for DragonFly BSD.
49933         * lib/stdio-impl.h: Add macros for DragonFly BSD.
49934         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
49935         fp.
49936         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
49937         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
49938         * lib/fpurge.c (fpurge): Likewise.
49939         * lib/freadable.c (freaadable): Likewise.
49940         * lib/freadahead.c (freadahead): Likewise.
49941         * lib/freading.c (freading): Likewise.
49942         * lib/freadptr.c (freadptr): Likewise.
49943         * lib/freadseek.c (freadptrinc): Likewise.
49944         * lib/fseeko.c (fseeko): Likewise.
49945         * lib/fseterr.c (fseterr): Likewise.
49946         * lib/fwritable.c (fwritable): Likewise.
49947         * lib/fwriting.c (fwriting): Likewise.
49948
49949 2008-04-26  Bruno Haible  <bruno@clisp.org>
49950
49951         * lib/stdio-impl.h: New file.
49952         * lib/fbufmode.c: Include stdio-impl.h.
49953         (fbufmode): Use fp_, remove redundant #defines.
49954         * lib/fflush.c: Include stdio-impl.h.
49955         (clear_ungetc_buffer): Remove redundant #defines.
49956         * lib/fpurge.c: Include stdio-impl.h.
49957         (fpurge): Remove redundant #defines.
49958         * lib/freadable.c: Include stdio-impl.h.
49959         (freadable): Remove redundant #defines.
49960         * lib/freadahead.c: Include stdio-impl.h.
49961         (freadahead): Remove redundant #defines.
49962         * lib/freading.c: Include stdio-impl.h.
49963         (freading): Remove redundant #defines.
49964         * lib/freadptr.c: Include stdio-impl.h.
49965         (freadptr): Remove redundant #defines.
49966         * lib/freadseek.c: Include stdio-impl.h.
49967         (freadptrinc): Remove redundant #defines.
49968         * lib/fseeko.c: Include stdio-impl.h.
49969         (rpl_fseeko): Remove redundant #defines.
49970         * lib/fseterr.c: Include stdio-impl.h.
49971         (fseterr): Remove redundant #defines.
49972         * lib/fwritable.c: Include stdio-impl.h.
49973         (fwritable: Remove redundant #defines.
49974         * lib/fwriting.c: Include stdio-impl.h.
49975         (fwriting): Remove redundant #defines.
49976         * modules/fbufmode (Files): Add lib/stdio-impl.h.
49977         * modules/fflush (Files): Likewise.
49978         * modules/fpurge (Files): Likewise.
49979         * modules/freadable (Files): Likewise.
49980         * modules/freadahead (Files): Likewise.
49981         * modules/freading (Files): Likewise.
49982         * modules/freadptr (Files): Likewise.
49983         * modules/freadseek (Files): Likewise.
49984         * modules/fseeko (Files): Likewise.
49985         * modules/fseterr (Files): Likewise.
49986         * modules/fwritable (Files): Likewise.
49987         * modules/fwriting (Files): Likewise.
49988
49989 2008-04-26  Bruno Haible  <bruno@clisp.org>
49990
49991         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
49992         restore_seek_optimization, update_fpos_cache): New functions, extracted
49993         from rpl_fflush.
49994         (rpl_fflush): Use them.
49995         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
49996         (gl_REPLACE_FFLUSH): Use it.
49997
49998 2008-04-26  Bruno Haible  <bruno@clisp.org>
49999
50000         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
50001         on Solaris.
50002         * tests/test-xstrtoimax.sh: Likewise.
50003         * tests/test-xstrtoumax.sh: Likewise.
50004         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50005
50006 2008-04-26  Bruno Haible  <bruno@clisp.org>
50007
50008         * modules/memchr-tests: New file.
50009         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
50010
50011 2008-04-26  Eric Blake  <ebb9@byu.net>
50012             Bruno Haible  <bruno@clisp.org>
50013
50014         * lib/memchr.c: Include intprops.h.
50015         (__memchr): Optimize parallel detection of matching bytes. Rename local
50016         variables. Add explanatory comments.
50017
50018 2008-04-26  Bruno Haible  <bruno@clisp.org>
50019
50020         Fix module 'memchr', broken since 2000-10-28.
50021         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
50022
50023 2008-04-26  Bruno Haible  <bruno@clisp.org>
50024
50025         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
50026         comments.
50027
50028 2008-04-25  Eric Blake  <ebb9@byu.net>
50029
50030         Use native fstatat on cygwin 1.7.0.
50031         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
50032         first.
50033
50034 2008-04-23  Eric Blake  <ebb9@byu.net>
50035
50036         Improve memchr2 performance.
50037         * lib/memchr2.c (memchr2): Further optimize parallel detection of
50038         NUL bytes.
50039         * modules/memchr2 (Depends-on): Use intprops.h.
50040
50041 2008-04-23  Simon Josefsson  <simon@josefsson.org>
50042
50043         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
50044         an inline function instead of a CPP macro.  Patch by Ben Pfaff
50045         <blp@cs.stanford.edu>.
50046
50047 2008-04-23  Simon Josefsson  <simon@josefsson.org>
50048
50049         * lib/arpa_inet.in.h: New file.
50050
50051         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
50052         (Makefile.am): Sed in substitute header file.
50053
50054         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
50055         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
50056
50057         * modules/inet_ntop (configure.ac): Use
50058         gl_ARPA_INET_MODULE_INDICATOR.
50059
50060         * modules/inet_pton (configure.ac): Use
50061         gl_ARPA_INET_MODULE_INDICATOR.
50062
50063 2008-04-22  Jim Meyering  <meyering@redhat.com>
50064
50065         * modules/verify (License): Re-license as LGPLv2+.
50066
50067 2008-04-22  Simon Josefsson  <simon@josefsson.org>
50068
50069         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
50070         parameter to void* as per POSIX standard (MinGW uses char*).
50071
50072 2008-04-21  Bruno Haible  <bruno@clisp.org>
50073
50074         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
50075         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
50076         Define to replacements if REPLACE_ISWCNTRL is 1.
50077         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
50078         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
50079         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
50080         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
50081         what it fixes.
50082         * doc/posix-functions/iswalpha.texi: Likewise.
50083         * doc/posix-functions/iswblank.texi: Likewise.
50084         * doc/posix-functions/iswcntrl.texi: Likewise.
50085         * doc/posix-functions/iswdigit.texi: Likewise.
50086         * doc/posix-functions/iswgraph.texi: Likewise.
50087         * doc/posix-functions/iswlower.texi: Likewise.
50088         * doc/posix-functions/iswprint.texi: Likewise.
50089         * doc/posix-functions/iswpunct.texi: Likewise.
50090         * doc/posix-functions/iswspace.texi: Likewise.
50091         * doc/posix-functions/iswupper.texi: Likewise.
50092         * doc/posix-functions/iswxdigit.texi: Likewise.
50093         Reported by Alain Guibert.
50094
50095 2008-04-21  Bruno Haible  <bruno@clisp.org>
50096
50097         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
50098         Patch by Alain Guibert.
50099
50100 2008-04-21  Bruno Haible  <bruno@clisp.org>
50101
50102         Fix test failures on mingw.
50103         * tests/test-xstrtol.c (print_no_progname): New function.
50104         (main): Install it in error_print_progname hook.
50105         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
50106         * tests/test-xstrtoimax.sh: Likewise.
50107         * tests/test-xstrtoumax.sh: Likewise.
50108
50109 2008-04-21  Bruno Haible  <bruno@clisp.org>
50110
50111         Fix test failure on mingw.
50112         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
50113
50114 2008-04-21  Bruno Haible  <bruno@clisp.org>
50115
50116         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
50117         Actually assign a value.
50118
50119 2008-04-20  Bruno Haible  <bruno@clisp.org>
50120
50121         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
50122         take 2.
50123         * lib/canonicalize.c (canonicalize_file_name): Elide if the
50124         'canonicalize-lgpl' module is also used.
50125         * lib/canonicalize-lgpl.c: Undo last change.
50126         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
50127
50128 2008-04-20  Bruno Haible  <bruno@clisp.org>
50129
50130         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
50131         config.h. Provide _mkdir based fallback for mingw.
50132         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
50133         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
50134         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
50135         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
50136         rather than defining mkdir in config.h.
50137         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
50138         (gl_SYS_STAT_H_DEFAULTS): New macro.
50139         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
50140         HAVE_IO_H any more.
50141         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
50142         HAVE_DECL_MKDIR and HAVE_IO_H.
50143
50144 2008-04-20  Bruno Haible  <bruno@clisp.org>
50145
50146         * lib/isapipe.c: Port to native Windows platforms.
50147
50148 2008-04-20  Bruno Haible  <bruno@clisp.org>
50149
50150         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
50151
50152 2008-04-21  Eric Blake  <ebb9@byu.net>
50153
50154         Work around preprocessors that don't handle UINTMAX_MAX.
50155         * lib/memchr2.c (memchr2): Avoid embedded #if.
50156         Reported by Alain Guibert, fix suggested by Bruno Haible.
50157
50158 2008-04-21  Simon Josefsson  <simon@josefsson.org>
50159
50160         * doc/posix-functions/strftime.texi (strftime): Explain better
50161         Windows incompatibility.  Suggested by Micah Cowan
50162         <micah@cowan.name>.
50163
50164 2008-04-20  Bruno Haible  <bruno@clisp.org>
50165
50166         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
50167         unistr/u8-mblen.
50168
50169 2008-04-20  Bruno Haible  <bruno@clisp.org>
50170
50171         Fix test failure on platforms with non-GNU iconv.
50172         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
50173         (U_TO_U8): Use it, rather than u16_to_u8.
50174         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
50175         units at the end of the input string.
50176         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
50177
50178 2008-04-20  Bruno Haible  <bruno@clisp.org>
50179
50180         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
50181         when the resulting length is 0.
50182         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
50183
50184 2008-04-20  Bruno Haible  <bruno@clisp.org>
50185
50186         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
50187         works.
50188         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
50189
50190 2008-04-20  Bruno Haible  <bruno@clisp.org>
50191
50192         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
50193         * modules/tsearch-tests (configure.ac): Test for initstate function.
50194
50195 2008-04-20  Bruno Haible  <bruno@clisp.org>
50196
50197         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
50198         for nlink_t if missing.
50199         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
50200
50201 2008-04-19  Bruno Haible  <bruno@clisp.org>
50202
50203         Work around snprintf bug on Linux libc5.
50204         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
50205         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
50206         gl_SNPRINTF_SIZE1.
50207         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50208         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
50209         that test failed.
50210         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
50211         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
50212         * modules/snprintf (Files): Add m4/printf.m4.
50213         * modules/vsnprintf (Files): Likewise.
50214         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
50215         * doc/posix-functions/vsnprintf.texi: Likewise.
50216
50217 2008-04-19  Bruno Haible  <bruno@clisp.org>
50218
50219         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
50220         from 0.0058 to less than 10^-7.
50221
50222 2008-04-19  Bruno Haible  <bruno@clisp.org>
50223
50224         Fix rounding when a precision is given.
50225         * lib/vasnprintf.c (is_borderline): New function.
50226         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
50227         9...9x.
50228         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
50229         %e, %g.
50230         * tests/test-vasprintf-posix.c (test_function): Likewise.
50231         * tests/test-snprintf-posix.h (test_function): Likewise.
50232         * tests/test-sprintf-posix.h (test_function): Likewise.
50233         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
50234         * tests/test-printf-posix.h (test_function): Likewise.
50235         * tests/test-printf-posix.output: Update.
50236         Reported by John Darrington <john@darrington.wattle.id.au> via
50237         Ben Pfaff <blp@cs.stanford.edu>.
50238
50239 2008-04-18  Simon Josefsson  <simon@josefsson.org>
50240
50241         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
50242         Suggested by Bruno Haible <bruno@clisp.org>.
50243
50244 2008-04-17  Bruno Haible  <bruno@clisp.org>
50245
50246         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
50247         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
50248         implementation.
50249         Patch by Bruce Merry <bmerry@gmail.com>.
50250
50251 2008-04-17  Simon Josefsson  <simon@josefsson.org>
50252
50253         * doc/posix-functions/strftime.texi (strftime): Mention that %e
50254         doesn't work under Windows.
50255
50256 2008-04-16  Bruno Haible  <bruno@clisp.org>
50257
50258         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
50259         New macros.
50260         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
50261         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
50262         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
50263         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
50264         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
50265         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
50266         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
50267         macros.
50268         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
50269         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
50270         Northern Sotho, Uighur.
50271
50272 2008-04-16  Bruno Haible  <bruno@clisp.org>
50273
50274         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
50275         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
50276         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
50277         Reported by Daniel Bergström <daniel@octocode.com>.
50278
50279 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
50280             Bruno Haible  <bruno@clisp.org>
50281
50282         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
50283         function.
50284         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
50285         New functions, mostly extracted from gl_locale_name_default.
50286         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
50287
50288 2008-04-16  Eric Blake  <ebb9@byu.net>
50289
50290         Adjust strtod detection to catch glibc 2.7 bug.
50291         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
50292         Reported by John Gatewood Ham.
50293
50294 2008-04-16  Bruno Haible  <bruno@clisp.org>
50295
50296         Add tentative support for Linux libc5.
50297         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
50298         * lib/fpurge.c (fpurge): Likewise.
50299         * lib/freadable.c (freadable): Likewise.
50300         * lib/freadahead.c (freadahead): Likewise.
50301         * lib/freading.c (freading): Likewise.
50302         * lib/freadptr.c (freadptr): Likewise.
50303         * lib/freadseek.c (freadptrinc): Likewise.
50304         * lib/fseeko.c (rpl_fseeko): Likewise.
50305         * lib/fseterr.c (fseterr): Likewise.
50306         * lib/fwritable.c (fwritable): Likewise.
50307         * lib/fwriting.c (fwriting): Likewise.
50308         Reported by Alain Guibert <alguibert+bts@free.fr>.
50309
50310 2008-04-15  Bruno Haible  <bruno@clisp.org>
50311
50312         * modules/mathl (configure.ac): Define module indicator.
50313
50314 2008-04-15  Bruno Haible  <bruno@clisp.org>
50315
50316         * lib/logl.c (logl): Remove unused variables.
50317
50318 2008-04-15  Bruno Haible  <bruno@clisp.org>
50319
50320         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
50321         fails.
50322
50323 2008-04-15  Bruno Haible  <bruno@clisp.org>
50324
50325         * lib/trim.c (trim2): Fix argument of isspace() macro.
50326
50327 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
50328
50329         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
50330         to 0.
50331         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
50332
50333 2008-04-14  Bruno Haible  <bruno@clisp.org>
50334
50335         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
50336         AC_LANG_PROGRAM argument.
50337         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
50338         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
50339         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
50340         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
50341         * m4/math_h.m4 (gl_MATH_H): Likewise.
50342         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
50343         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
50344         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
50345         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
50346         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
50347         * m4/regex.m4 (gl_REGEX): Likewise.
50348         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
50349         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
50350         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
50351         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
50352         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
50353         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
50354         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
50355         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
50356
50357 2008-04-14  Jim Meyering  <meyering@redhat.com>
50358
50359         test-strtod: fix typos: s/abs/fabs/
50360         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
50361
50362 2008-04-13  Bruno Haible  <bruno@clisp.org>
50363
50364         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
50365         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
50366         module is also used and while not building the reloc-wrapper.
50367
50368 2008-04-13  Bruno Haible  <bruno@clisp.org>
50369
50370         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
50371
50372 2008-04-13  Bruno Haible  <bruno@clisp.org>
50373
50374         Fix AIX compilation failure introduced on 2008-04-02.
50375         * tests/test-frexp.c (exp): Undefine before redefining.
50376         * tests/test-frexpl.c (exp): Likewise.
50377
50378 2008-04-13  Bruno Haible  <bruno@clisp.org>
50379
50380         Work around a HP-UX stdio bug.
50381         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
50382         * tests/test-ftello.c (main): Likewise.
50383         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
50384         * doc/posix-functions/ftello.texi: Likewise.
50385
50386 2008-04-13  Bruno Haible  <bruno@clisp.org>
50387
50388         Make test-signbit pass on HP-UX/hppa.
50389         * tests/test-signbit.c (minus_zerol): New variable.
50390         (test_signbitl): Use it.
50391
50392 2008-04-13  Bruno Haible  <bruno@clisp.org>
50393
50394         Make truncl work on OSF/1 4.0.
50395         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
50396         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
50397         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
50398         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
50399         HAVE_DECL_TRUNCL.
50400         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
50401         HAVE_DECL_TRUNCL.
50402         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
50403
50404 2008-04-13  Bruno Haible  <bruno@clisp.org>
50405
50406         * lib/unictype.h: Remove trailing comma from enumeration definitions.
50407
50408 2008-04-13  Bruno Haible  <bruno@clisp.org>
50409
50410         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
50411         expression, so as to avoid HP-UX 11 cc compiler bug.
50412
50413 2008-04-13  Bruno Haible  <bruno@clisp.org>
50414
50415         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
50416
50417 2008-04-13  Bruno Haible  <bruno@clisp.org>
50418
50419         * lib/git-merge-changelog.c: Remove empty declaration outside of
50420         functions.
50421
50422 2008-04-13  Bruno Haible  <bruno@clisp.org>
50423
50424         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
50425
50426 2008-04-13  Bruno Haible  <bruno@clisp.org>
50427
50428         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
50429         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
50430         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
50431         also if it exists but lacks definitions of the SHUT_* macros.
50432         * modules/sys_socket (Description): Update.
50433         Reported by Elbert Pol <e.pol@chello.nl>.
50434
50435 2008-04-13  Bruno Haible  <bruno@clisp.org>
50436
50437         * lib/localcharset.c (OS2): Don't redefine if already defined.
50438         Reported by Elbert Pol <e.pol@chello.nl>.
50439
50440 2008-04-13  Bruno Haible  <bruno@clisp.org>
50441
50442         * lib/binary-io.h [__EMX__]: Include <io.h>.
50443         Reported by Elbert Pol <e.pol@chello.nl>.
50444
50445 2008-04-12  Bruno Haible  <bruno@clisp.org>
50446
50447         * lib/fpucw.h: Enable the definitions also for x86_64.
50448         Needed for NetBSD/x86_64.
50449         Reported by Thomas Klausner <tk@giga.or.at>.
50450
50451 2008-04-12  Bruno Haible  <bruno@clisp.org>
50452
50453         * tests/test-strtod.c: Include isnand.h.
50454         (main): Use isnand instead of isnan.
50455         Reported by Jim Meyering.
50456
50457 2008-04-12  Bruno Haible  <bruno@clisp.org>
50458
50459         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
50460         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
50461
50462 2008-04-12  Jim Meyering  <meyering@redhat.com>
50463
50464         * m4/math_h.m4 (gl_MATH_H): Fix typos.
50465
50466 2008-04-12  Bruno Haible  <bruno@clisp.org>
50467
50468         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
50469         Reported by Elbert Pol <e.pol@chello.nl>.
50470
50471 2008-04-12  Eric Blake  <ebb9@byu.net>
50472
50473         Work around Solaris 10 math.h bug.
50474         * m4/math_h.m4 (gl_MATH_H): Check for bug.
50475         (gl_MATH_H_DEFAULTS): Set up default.
50476         * modules/math (Makefile.am): Replace new indicators.
50477         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
50478         * tests/test-math.c (main): Test this.
50479         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
50480         * doc/posix-headers/math.texi (math.h): Mention bug.
50481         Reported by Nelson H. F. Beebe and Jim Meyering.
50482
50483 2008-04-11  Bruno Haible  <bruno@clisp.org>
50484
50485         Adapt to future versions of Apple GCC.
50486         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
50487         Reported by Peter O'Gorman <peter@pogma.com>.
50488
50489 2008-04-11  Bruno Haible  <bruno@clisp.org>
50490
50491         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
50492
50493 2008-04-11  Bruno Haible  <bruno@clisp.org>
50494
50495         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
50496
50497         * modules/getaddrinfo-tests (Makefile.am): Define
50498         test_getaddrinfo_LDADD.
50499
50500 2008-04-11  Bruno Haible  <bruno@clisp.org>
50501
50502         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
50503         (init): Fix syntax error.
50504         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
50505         is declared.
50506
50507 2008-04-11  Bruno Haible  <bruno@clisp.org>
50508
50509         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
50510         * modules/glob (Depends-on): Add stdbool.
50511
50512 2008-04-11  Bruno Haible  <bruno@clisp.org>
50513
50514         * lib/trim.c: Include <string.h>.
50515
50516 2008-04-11  Eric Blake  <ebb9@byu.net>
50517
50518         Avoid compile failure on OS/2.
50519         * lib/regex_internal.h (internal_function): Disable optimization
50520         on OS/2 (__EMX__), where it caused compiler error.
50521         Reported by Elbert Pol.
50522
50523 2008-04-11  Bruno Haible  <bruno@clisp.org>
50524
50525         Flush the standard error stream before aborting. Needed on mingw.
50526         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
50527         * tests/test-array_list.c (ASSERT): Likewise.
50528         * tests/test-array_oset.c (ASSERT): Likewise.
50529         * tests/test-avltree_list.c (ASSERT): Likewise.
50530         * tests/test-avltree_oset.c (ASSERT): Likewise.
50531         * tests/test-avltreehash_list.c (ASSERT): Likewise.
50532         * tests/test-binary-io.c (ASSERT): Likewise.
50533         * tests/test-byteswap.c (ASSERT): Likewise.
50534         * tests/test-c-ctype.c (ASSERT): Likewise.
50535         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
50536         * tests/test-c-strcasestr.c (ASSERT): Likewise.
50537         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
50538         * tests/test-c-strstr.c (ASSERT): Likewise.
50539         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
50540         * tests/test-canonicalize.c (ASSERT): Likewise.
50541         * tests/test-carray_list.c (ASSERT): Likewise.
50542         * tests/test-ceilf1.c (ASSERT): Likewise.
50543         * tests/test-ceilf2.c (ASSERT): Likewise.
50544         * tests/test-ceill.c (ASSERT): Likewise.
50545         * tests/test-count-one-bits.c (ASSERT): Likewise.
50546         * tests/test-fbufmode.c (ASSERT): Likewise.
50547         * tests/test-fflush2.c (ASSERT): Likewise.
50548         * tests/test-floorf1.c (ASSERT): Likewise.
50549         * tests/test-floorf2.c (ASSERT): Likewise.
50550         * tests/test-floorl.c (ASSERT): Likewise.
50551         * tests/test-fopen.c (ASSERT): Likewise.
50552         * tests/test-fpending.c (ASSERT): Likewise.
50553         * tests/test-fprintf-posix.c (ASSERT): Likewise.
50554         * tests/test-fpurge.c (ASSERT): Likewise.
50555         * tests/test-freadable.c (ASSERT): Likewise.
50556         * tests/test-freadahead.c (ASSERT): Likewise.
50557         * tests/test-freading.c (ASSERT): Likewise.
50558         * tests/test-freadptr.c (ASSERT): Likewise.
50559         * tests/test-freadptr2.c (ASSERT): Likewise.
50560         * tests/test-freadseek.c (ASSERT): Likewise.
50561         * tests/test-freopen.c (ASSERT): Likewise.
50562         * tests/test-frexp.c (ASSERT): Likewise.
50563         * tests/test-frexpl.c (ASSERT): Likewise.
50564         * tests/test-fseek.c (ASSERT): Likewise.
50565         * tests/test-fseeko.c (ASSERT): Likewise.
50566         * tests/test-fstrcmp.c (ASSERT): Likewise.
50567         * tests/test-ftell.c (ASSERT): Likewise.
50568         * tests/test-ftello.c (ASSERT): Likewise.
50569         * tests/test-func.c (ASSERT): Likewise.
50570         * tests/test-fwritable.c (ASSERT): Likewise.
50571         * tests/test-fwriting.c (ASSERT): Likewise.
50572         * tests/test-getdelim.c (ASSERT): Likewise.
50573         * tests/test-getline.c (ASSERT): Likewise.
50574         * tests/test-i-ring.c (ASSERT): Likewise.
50575         * tests/test-iconv-utf.c (ASSERT): Likewise.
50576         * tests/test-iconv.c (ASSERT): Likewise.
50577         * tests/test-isfinite.c (ASSERT): Likewise.
50578         * tests/test-isnand.c (ASSERT): Likewise.
50579         * tests/test-isnanf.c (ASSERT): Likewise.
50580         * tests/test-isnanl.h (ASSERT): Likewise.
50581         * tests/test-ldexpl.c (ASSERT): Likewise.
50582         * tests/test-linked_list.c (ASSERT): Likewise.
50583         * tests/test-linkedhash_list.c (ASSERT): Likewise.
50584         * tests/test-localename.c (ASSERT): Likewise.
50585         * tests/test-lseek.c (ASSERT): Likewise.
50586         * tests/test-mbscasecmp.c (ASSERT): Likewise.
50587         * tests/test-mbscasestr1.c (ASSERT): Likewise.
50588         * tests/test-mbscasestr2.c (ASSERT): Likewise.
50589         * tests/test-mbscasestr3.c (ASSERT): Likewise.
50590         * tests/test-mbscasestr4.c (ASSERT): Likewise.
50591         * tests/test-mbschr.c (ASSERT): Likewise.
50592         * tests/test-mbscspn.c (ASSERT): Likewise.
50593         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
50594         * tests/test-mbspbrk.c (ASSERT): Likewise.
50595         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
50596         * tests/test-mbsrchr.c (ASSERT): Likewise.
50597         * tests/test-mbsspn.c (ASSERT): Likewise.
50598         * tests/test-mbsstr1.c (ASSERT): Likewise.
50599         * tests/test-mbsstr2.c (ASSERT): Likewise.
50600         * tests/test-mbsstr3.c (ASSERT): Likewise.
50601         * tests/test-memchr2.c (ASSERT): Likewise.
50602         * tests/test-memmem.c (ASSERT): Likewise.
50603         * tests/test-open.c (ASSERT): Likewise.
50604         * tests/test-printf-frexp.c (ASSERT): Likewise.
50605         * tests/test-printf-frexpl.c (ASSERT): Likewise.
50606         * tests/test-printf-posix.c (ASSERT): Likewise.
50607         * tests/test-quotearg.c (ASSERT): Likewise.
50608         * tests/test-rbtree_list.c (ASSERT): Likewise.
50609         * tests/test-rbtree_oset.c (ASSERT): Likewise.
50610         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
50611         * tests/test-round1.c (ASSERT): Likewise.
50612         * tests/test-roundf1.c (ASSERT): Likewise.
50613         * tests/test-roundl.c (ASSERT): Likewise.
50614         * tests/test-signbit.c (ASSERT): Likewise.
50615         * tests/test-sleep.c (ASSERT): Likewise.
50616         * tests/test-snprintf-posix.c (ASSERT): Likewise.
50617         * tests/test-snprintf.c (ASSERT): Likewise.
50618         * tests/test-sprintf-posix.c (ASSERT): Likewise.
50619         * tests/test-stat-time.c (ASSERT): Likewise.
50620         * tests/test-strcasestr.c (ASSERT): Likewise.
50621         * tests/test-strerror.c (ASSERT): Likewise.
50622         * tests/test-striconv.c (ASSERT): Likewise.
50623         * tests/test-striconveh.c (ASSERT): Likewise.
50624         * tests/test-striconveha.c (ASSERT): Likewise.
50625         * tests/test-strsignal.c (ASSERT): Likewise.
50626         * tests/test-strstr.c (ASSERT): Likewise.
50627         * tests/test-strtod.c (ASSERT): Likewise.
50628         * tests/test-trunc1.c (ASSERT): Likewise.
50629         * tests/test-trunc2.c (ASSERT): Likewise.
50630         * tests/test-truncf1.c (ASSERT): Likewise.
50631         * tests/test-truncf2.c (ASSERT): Likewise.
50632         * tests/test-truncl.c (ASSERT): Likewise.
50633         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
50634         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
50635         * tests/test-vasnprintf.c (ASSERT): Likewise.
50636         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
50637         * tests/test-vasprintf.c (ASSERT): Likewise.
50638         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
50639         * tests/test-vprintf-posix.c (ASSERT): Likewise.
50640         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
50641         * tests/test-vsnprintf.c (ASSERT): Likewise.
50642         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
50643         * tests/test-wcwidth.c (ASSERT): Likewise.
50644         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
50645         * tests/test-xprintf-posix.c (ASSERT): Likewise.
50646         * tests/test-xvasprintf.c (ASSERT): Likewise.
50647         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
50648         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
50649         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
50650         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
50651         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
50652         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
50653         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
50654         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
50655         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
50656         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
50657         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
50658         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
50659         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
50660         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
50661         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
50662         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
50663         * tests/unictype/test-block_list.c (ASSERT): Likewise.
50664         * tests/unictype/test-block_of.c (ASSERT): Likewise.
50665         * tests/unictype/test-block_test.c (ASSERT): Likewise.
50666         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
50667         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
50668         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
50669         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
50670         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
50671         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
50672         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
50673         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
50674         * tests/unictype/test-combining.c (ASSERT): Likewise.
50675         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
50676         * tests/unictype/test-digit.c (ASSERT): Likewise.
50677         * tests/unictype/test-mirror.c (ASSERT): Likewise.
50678         * tests/unictype/test-numeric.c (ASSERT): Likewise.
50679         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
50680         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
50681         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
50682         * tests/unictype/test-scripts.c (ASSERT): Likewise.
50683         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
50684         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
50685         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
50686         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
50687         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
50688         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
50689         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
50690         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
50691         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
50692         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
50693         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
50694         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
50695         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
50696         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
50697         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
50698         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
50699         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
50700         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
50701         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
50702         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
50703         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
50704         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
50705         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
50706         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
50707         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
50708         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
50709         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
50710         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
50711         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
50712         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
50713         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
50714         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
50715         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
50716         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
50717         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
50718         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
50719         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
50720         Reported by Eric Blake.
50721
50722 2008-04-11  Bruno Haible  <bruno@clisp.org>
50723
50724         * lib/wchar.in.h: Tweak comment.
50725
50726 2008-04-11  Bruno Haible  <bruno@clisp.org>
50727
50728         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
50729         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
50730         gl_COMMON.
50731         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
50732
50733 2008-04-11  Bruno Haible  <bruno@clisp.org>
50734
50735         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
50736
50737 2008-04-11  Simon Josefsson  <simon@josefsson.org>
50738
50739         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
50740         of attempting to use non-existing /dev/*random.  Based on patch
50741         from Adam Strzelecki <ono@java.pl> in
50742         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
50743
50744 2008-04-08  Bruno Haible  <bruno@clisp.org>
50745
50746         Add tentative support for emx+gcc.
50747         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
50748         * lib/fpurge.c (fpurge): Likewise.
50749         * lib/freadable.c (freadable): Likewise.
50750         * lib/freadahead.c (freadahead): Likewise.
50751         * lib/freading.c (freading): Likewise.
50752         * lib/freadptr.c (freadptr): Likewise.
50753         * lib/freadseek.c (freadptrinc): Likewise.
50754         * lib/fseeko.c (rpl_fseeko): Likewise.
50755         * lib/fseterr.c (fseterr): Likewise.
50756         * lib/fwritable.c (fwritable): Likewise.
50757         * lib/fwriting.c (fwriting): Likewise.
50758         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
50759
50760 2008-04-09  Eric Blake  <ebb9@byu.net>
50761
50762         Avoid some autoconf warnings.
50763         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
50764         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
50765         * m4/afs.m4 (gl_AFS): Likewise.
50766         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
50767         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
50768         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
50769         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
50770         (gl_INTEGER_TYPE_SUFFIX): Likewise.
50771         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
50772         (AC_CHECK_DECLS_ONCE): Likewise.
50773         Rename file...
50774         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
50775         gnulib-tool requires autoconf 2.59 or better.
50776         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
50777
50778 2008-04-08  Eric Blake  <ebb9@byu.net>
50779
50780         Use 'git describe --match' if present (added in git 1.5.5).
50781         * build-aux/git-version-gen: Limit result to tags that match 'v*'
50782         if possible.
50783
50784 2008-04-08  Bruno Haible  <bruno@clisp.org>
50785
50786         Add tentative support for OpenServer.
50787         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
50788         _ptr, _cnt.
50789         * lib/fpurge.c (fpurge): Likewise.
50790         * lib/freadable.c (freadable): Likewise.
50791         * lib/freadahead.c (freadahead): Likewise.
50792         * lib/freading.c (freading): Likewise.
50793         * lib/freadptr.c (freadptr): Likewise.
50794         * lib/freadseek.c (freadptrinc): Likewise.
50795         * lib/fseeko.c (rpl_fseeko): Likewise.
50796         * lib/fseterr.c (fseterr): Likewise.
50797         * lib/fwritable.c (fwritable): Likewise.
50798         * lib/fwriting.c (fwriting): Likewise.
50799         Reported by Roger Cornelius <rac@tenzing.org> and
50800         Brian K. White <brian@aljex.com>.
50801
50802 2008-04-06  Jim Meyering  <meyering@redhat.com>
50803
50804         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
50805
50806 2008-04-06  Bruno Haible  <bruno@clisp.org>
50807
50808         Avoid possible error with non-ASCII bytes in UTF-8 locales.
50809         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
50810         * tests/test-printf-posix.sh: Likewise.
50811         * tests/test-vfprintf-posix.sh: Likewise.
50812         * tests/test-vprintf-posix.sh: Likewise.
50813         * tests/test-xprintf-posix.sh: Likewise.
50814
50815 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50816
50817         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
50818         hide error from 'ls', needed on OS/2.
50819         Report by Elbert Pol <elbert.pol@gmail.com>.
50820
50821 2008-04-04  Eric Blake  <ebb9@byu.net>
50822
50823         Make test-fseeko.c failures meaningful.
50824         * tests/test-fseeko.c: Print line number on failure.
50825         * tests/test-fseek.c: Likewise.
50826         Reported by Nelson H. F. Beebe.
50827
50828         Improve strtod bug detection check.
50829         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
50830         required for Solaris 10.
50831         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
50832
50833 2008-04-04  Bruno Haible  <bruno@clisp.org>
50834
50835         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
50836         by m4/setenv.m4.
50837
50838 2008-04-03  Eric Blake  <ebb9@byu.net>
50839
50840         Ensure sane .version contents.
50841         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
50842         version string.
50843         * build-aux/git-version-gen: Improve documentation.
50844
50845         Make GNU make output nicer.
50846         * top/GNUmakefile [!_have-Makefile]: Add dependency on
50847         MAKECMDGOALS to enforce message for all command line targets.  Set
50848         srcdir for use in maint.mk.
50849
50850         Another maintainer tweak.
50851         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
50852         a target that regenerates version.
50853
50854 2008-04-03  Jim Meyering  <meyering@redhat.com>
50855
50856         vc-list-files: don't cause coreutils "make po-check" failure
50857         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
50858
50859 2008-04-03  Eric Blake  <ebb9@byu.net>
50860
50861         Allow VPATH usage of vc-list-files.
50862         * build-aux/vc-list-files (scriptversion): Add timestamp.
50863         (options): Add --help, --version, -C.
50864         (CVS): Support installed cvsu.
50865
50866 2008-04-02  Bruno Haible  <bruno@clisp.org>
50867
50868         Avoid some "statement with no effect" warnings from gcc.
50869         * tests/test-wctype.c (main): Explicitly ignore unused values.
50870         Reported by Jim Meyering.
50871
50872 2008-04-02  Jim Meyering  <meyering@redhat.com>
50873
50874         Avoid some warnings from "gcc -Wshadow".
50875         * tests/test-frexp.c (exp): Define to a different identifier.
50876         * tests/test-frexpl.c (exp): Likewise.
50877
50878 2008-04-03  Jim Meyering  <meyering@redhat.com>
50879
50880         bootstrap: remove dangling *.[ch] symlinks from lib
50881         * build-aux/bootstrap [dangling symlink removal]: Move find's
50882         -depth option to precede all others, to avoid a warning.
50883         Remove *.[ch] files too, and from "$source_base" (usually lib/).
50884
50885 2008-04-02  Bruno Haible  <bruno@clisp.org>
50886
50887         Avoid some warnings from "gcc -Wshadow".
50888         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
50889         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
50890         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
50891         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
50892         Reported by Jim Meyering.
50893
50894 2008-04-01  Bruno Haible  <bruno@clisp.org>
50895
50896         Fix test to work on IRIX 6.5 with cc.
50897         * tests/test-math.c (numeric_equal): New function.
50898         (main): Use it.
50899
50900 2008-04-01  Bruno Haible  <bruno@clisp.org>
50901
50902         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
50903
50904 2008-04-01  Bruno Haible  <bruno@clisp.org>
50905
50906         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
50907         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
50908         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
50909         (Depends-on): Remove math.
50910
50911         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
50912         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
50913         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
50914         (Depends-on): Remove math.
50915
50916         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
50917         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
50918         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
50919         (Depends-on): Remove math.
50920         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
50921         (Depends-on): Remove math.
50922
50923         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
50924         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
50925         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
50926         (Depends-on): Remove math.
50927         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
50928         (Depends-on): Remove math.
50929
50930         * tests/test-round1.c: Include nan.h.
50931         (main): Use NaNd instead of NAN.
50932         * modules/round-tests (Files): Add tests/nan.h.
50933
50934         * tests/test-trunc1.c: Include nan.h.
50935         (main): Use NaNd instead of NAN.
50936         * modules/trunc-tests (Files): Add tests/nan.h.
50937
50938         * tests/test-roundf1.c: Include nan.h.
50939         (main): Use NaNf instead of NAN.
50940         * modules/roundf-tests (Files): Add tests/nan.h.
50941
50942         * tests/test-truncf1.c: Include nan.h.
50943         (main): Use NaNf instead of NAN.
50944         * modules/truncf-tests (Files): Add tests/nan.h.
50945
50946         * tests/test-ceilf1.c: Include nan.h.
50947         (main): Use NaNf instead of NAN.
50948         * modules/ceilf-tests (Files): Add tests/nan.h.
50949
50950         * tests/test-floorf1.c: Include nan.h.
50951         (main): Use NaNf instead of NAN.
50952         * modules/floorf-tests (Files): Add tests/nan.h.
50953
50954         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
50955         (main): Use NaNf instead of NAN.
50956         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
50957
50958         * tests/test-isnand.c: Include nan.h instead of <math.h>.
50959         (main): Use NaNd instead of NAN.
50960         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
50961
50962         * tests/test-frexp.c: Include nan.h.
50963         (main): Use NaNd instead of NAN.
50964         * modules/frexp-tests (Files): Add tests/nan.h.
50965
50966         * lib/isnan.c: Don't include <math.h>.
50967         (FUNC): Don't use NAN macro.
50968         * modules/isnand-nolibm (Depends-on): Remove math.
50969         * modules/isnanf-nolibm (Depends-on): Remove math.
50970         * modules/isnanl (Depends-on): Remove math.
50971         * modules/isnanl-nolibm (Depends-on): Remove math.
50972
50973         * tests/nan.h: New file.
50974
50975 2008-04-01  Eric Blake  <ebb9@byu.net>
50976
50977         Fix typos.
50978         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
50979         values to be the right type.
50980
50981         For now, cater to gnulib strtod inaccuracies.
50982         * tests/test-strtod.c (main): Allow 1-ulp error on expected
50983         fractional results.  While not as nice from a QoI perspective, it
50984         is a quicker patch than correctly implementing decimal to binary
50985         rounding.
50986
50987 2008-03-31  Eric Blake  <ebb9@byu.net>
50988
50989         Guarantee a definition of NAN.
50990         * lib/math.in.h (NAN): Define if missing.
50991         * tests/test-math.c (main): Test it.
50992         * doc/posix-headers/math.texi (math.h): Document this.
50993         * lib/isnan.c (rpl_isnand): Use it.
50994         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
50995         * tests/test-floorf1.c (NaN): Likewise.
50996         * tests/test-frexp.c (NaN): Likewise.
50997         * tests/test-isnand.c (NaN): Likewise.
50998         * tests/test-isnanf.c (NaN): Likewise.
50999         * tests/test-round1.c (NaN): Likewise.
51000         * tests/test-roundf1.c (NaN): Likewise.
51001         * tests/test-snprintf-posix.h (NaN): Likewise.
51002         * tests/test-sprintf-posix.h (NaN): Likewise.
51003         * tests/test-trunc1.c (NaN): Likewise.
51004         * tests/test-truncf1.c (NaN): Likewise.
51005         * tests/test-vasnprintf-posix.c (NaN): Likewise.
51006         * tests/test-vasprintf-posix.c (NaN): Likewise.
51007         * modules/isnand-nolibm (Depends-on): Add math.
51008         * modules/isnanf-nolibm (Depends-on): Likewise.
51009         * modules/isnanl (Depends-on): Likewise.
51010         * modules/isnanl-nolibm (Depends-on): Likewise.
51011         * modules/snprintf-posix-tests (Depends-on): Likewise.
51012         * modules/sprintf-posix-tests (Depends-on): Likewise.
51013         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
51014         * modules/vsprintf-posix-tests (Depends-on): Likewise.
51015         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
51016         * modules/vasprintf-posix-tests (Depends-on): Likewise.
51017
51018 2008-03-31  Bruno Haible  <bruno@clisp.org>
51019
51020         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
51021         * doc/posix-functions/strtod.texi: Likewise.
51022
51023 2008-03-31  Bruno Haible  <bruno@clisp.org>
51024
51025         * tests/test-strtod.c (main): Don't use C99 syntax.
51026
51027 2008-03-31  Bruno Haible  <bruno@clisp.org>
51028
51029         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
51030         Reported by Eric Blake.
51031
51032 2008-03-31  Jim Meyering  <meyering@redhat.com>
51033
51034         Don't compare actual signbit return values.
51035         * tests/test-strtod.c (main): Rather, compare only their
51036         zero/non-zero nature.
51037
51038 2008-03-31  Eric Blake  <ebb9@byu.net>
51039
51040         More strtod documentation.
51041         * doc/posix-functions/strtod.texi (strtod): Interpret more test
51042         failures as distinct bugs.
51043
51044 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
51045
51046         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
51047         Problem reported by Erik Benada in
51048         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
51049
51050 2008-03-30  Bruno Haible  <bruno@clisp.org>
51051
51052         * tests/test-strtod.c: Add comments about which assertion fails on which
51053         platform.
51054         * doc/posix-functions/strtod.texi: Add info about many more platforms.
51055
51056 2008-03-30  Eric Blake  <ebb9@byu.net>
51057
51058         Test signbit behavior on zeros.
51059         * tests/test-signbit.c (test_signbitf): Add tests for zero.
51060         (test_signbitd, test_signbitl): Likewise.
51061
51062         More strtod touchups.
51063         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
51064         sign of negative underflow, for now.  Use .5, not .1.
51065         * doc/posix-functions/strtod.texi (strtod): Mention these
51066         limitations.
51067         Reported by Jim Meyering.
51068
51069 2008-03-30  Bruno Haible  <bruno@clisp.org>
51070
51071         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
51072         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
51073
51074 2008-03-30  Bruno Haible  <bruno@clisp.org>
51075
51076         Avoid failure when attempting to return empty iconv results on some
51077         platforms.
51078         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
51079         allocation, don't report ENOMEM when the resulting string is empty.
51080
51081 2008-03-30  Bruno Haible  <bruno@clisp.org>
51082
51083         Fix buffer overrun.
51084         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
51085         Don't consider the width for tmp_length. Check count against tmp_length
51086         before doing the padding. Ensure enough allocation during padding.
51087
51088 2008-03-30  Eric Blake  <ebb9@byu.net>
51089
51090         strtod touchups.
51091         * lib/strtod.c (strtod): Avoid compiler warnings.
51092         Reported by Jim Meyering.
51093
51094 2008-03-30  Bruno Haible  <bruno@clisp.org>
51095
51096         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
51097         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
51098         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
51099         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
51100         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
51101         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
51102         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
51103         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
51104
51105         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
51106         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
51107         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
51108         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
51109         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
51110         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
51111         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
51112         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
51113
51114         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
51115         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
51116         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
51117         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
51118         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
51119         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
51120         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
51121         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
51122
51123         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
51124         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
51125
51126         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
51127         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
51128
51129         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
51130         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
51131
51132         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
51133         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
51134         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
51135
51136         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
51137         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
51138         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
51139
51140         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
51141         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
51142         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
51143
51144         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
51145         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
51146         * modules/vasprintf (Depends-on): Add EOVERFLOW.
51147
51148         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
51149         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
51150         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
51151         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
51152         (Depends-on): Add EOVERFLOW.
51153         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
51154         (Depends-on): Add EOVERFLOW.
51155         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
51156         (Depends-on): Add EOVERFLOW.
51157         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
51158         (Depends-on): Add EOVERFLOW.
51159         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
51160         (Depends-on): Add EOVERFLOW.
51161         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
51162         (Depends-on): Add EOVERFLOW.
51163         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
51164         (Depends-on): Add EOVERFLOW.
51165         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
51166         (Depends-on): Add EOVERFLOW.
51167
51168         * lib/sprintf.c (EOVERFLOW): Remove fallback.
51169         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
51170         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
51171
51172         * lib/snprintf.c (EOVERFLOW): Remove fallback.
51173         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
51174         * modules/snprintf (Depends-on): Add EOVERFLOW.
51175
51176         * lib/poll.c (EOVERFLOW): Remove fallback.
51177         * modules/poll (Depends-on): Add EOVERFLOW.
51178
51179         * lib/getugroups.c (EOVERFLOW): Remove fallback.
51180         * modules/getugroups (Depends-on): Add EOVERFLOW.
51181
51182         * lib/getdelim.c (EOVERFLOW): Remove fallback.
51183         * modules/getdelim (Depends-on): Add EOVERFLOW.
51184
51185         * lib/ftell.c (EOVERFLOW): Remove fallback.
51186         * modules/ftell (Depends-on): Add EOVERFLOW.
51187
51188         * lib/fprintf.c (EOVERFLOW): Remove fallback.
51189         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
51190         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
51191
51192         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
51193
51194         * modules/EOVERFLOW-tests: New file.
51195         * tests/test-EOVERFLOW.c: New file.
51196
51197         * modules/EOVERFLOW: New file.
51198         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
51199
51200 2008-03-30  Bruno Haible  <bruno@clisp.org>
51201
51202         Fix bug introduced on 2007-06-10.
51203         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
51204         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
51205
51206 2008-03-30  Bruno Haible  <bruno@clisp.org>
51207
51208         Improve freadseek's efficiency after ungetc.
51209         * lib/freadseek.c: Include freadahead.h.
51210         (freadptrinc): New function, extracted from freadseek.
51211         (freadseek): Use it in a loop. Use freadahead to determine the number
51212         of loop iterations.
51213         * modules/freadseek (Depends-on): Add freadahead.
51214         (configure.ac): Require AC_C_INLINE.
51215
51216 2008-03-30  Bruno Haible  <bruno@clisp.org>
51217
51218         * lib/freadseek.c (freadseek): Don't ignore the return value of
51219         freadptr.
51220
51221 2008-03-29  Eric Blake  <ebb9@byu.net>
51222
51223         Add hex float support.
51224         * modules/strtod (Depends-on): Add c-ctype.
51225         (Link): Mention POW_LIB.
51226         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
51227         whitespace between 'e' and exponent.
51228         * tests/test-strtod.c (main): Enable hex float tests.
51229         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
51230         now provides.
51231
51232         Document various strtod bugs, with some fixes.
51233         * doc/posix-functions/strtod.texi (strtod): Document bugs with
51234         "-0x", "inf", "nan", and hex constants.
51235         * doc/posix-functions/atof.texi (atof): Likewise.
51236         * modules/stdlib (Makefile.am): Support strtod.
51237         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
51238         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
51239         detect additional strtod bugs.
51240         * lib/stdlib.in.h (rpl_strtod): Add declarations.
51241         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
51242         bool where appropriate.  Parse 'inf' and 'nan'.
51243         * tests/test-strtod.c: New file.
51244         * modules/strtod (Depends-on): Add stdbool, stdlib.
51245         (configure.ac): Turn on module indicator.
51246         * modules/strtod-tests: New module.
51247
51248 2008-03-29  Eric Blake  <ebb9@byu.net>
51249
51250         Fix ftell on mingw.
51251         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
51252         * modules/ftell-tests (Depends-on): Add binary-io.
51253         * modules/ftello-tests (Depends-on): Likewise.
51254         * tests/test-ftell.c (main): Enhance test to cover behavior after
51255         ungetc.  Enforce binary mode.
51256         * tests/test-ftello.c (main): Likewise.
51257
51258         Pass test-freadseek on cygwin.
51259         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
51260         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
51261         ungetc buffer.
51262
51263         * tests/test-fflush2.c (main): Fix typo.
51264
51265 2008-03-29  Bruno Haible  <bruno@clisp.org>
51266
51267         * tests/test-fflush2.c (main): Temporarily disable the contents of
51268         this test.
51269         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
51270         Reported by Eric Blake.
51271
51272 2008-03-28  Simon Josefsson  <simon@josefsson.org>
51273
51274         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
51275         (GC_SHA224_DIGEST_SIZE): Add.
51276
51277         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
51278         (gc_hash_digest_length): Likewise.
51279         (gc_hash_buffer): Likewise.
51280
51281 2008-03-25  Bruno Haible  <bruno@clisp.org>
51282
51283         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
51284         detail which gettext release to use.
51285         Reported by Simon Josefsson.
51286
51287 2008-03-26  Jim Meyering  <meyering@redhat.com>
51288
51289         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
51290         * modules/gnumakefile (clean-GNUmakefile): Also, use
51291         test ... && ... || : syntax rather than if-then ... fi.
51292
51293         gnumakefile: Don't double-quote-expand $(VPATH) value.
51294         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
51295
51296 2008-03-24  Eric Blake  <ebb9@byu.net>
51297
51298         Alter GNUmakefile to install into top directory.
51299         * modules/maintainer-makefile: Split, and add dependency...
51300         * modules/gnumakefile: to this new module.
51301         * build-aux/GNUmakefile: Move...
51302         * top/GNUmakefile: ...here.
51303         * build-aux/maint.mk: Move...
51304         * top/maint.mk: ...here.
51305         * MODULES.html.sh (Support for maintaining...): Document new
51306         module.
51307
51308 2008-03-23  Bruno Haible  <bruno@clisp.org>
51309
51310         * gnulib-tool: New options --vc-files, --no-vc-files.
51311         (func_usage): Document them.
51312         (vc_files): New variable.
51313         (func_import): Consider vc_files.
51314         (func_create_testdir): Set vc_files to empty.
51315         Suggested by Jim Meyering and Karl Berry.
51316
51317 2008-03-23  Bruno Haible  <bruno@clisp.org>
51318
51319         Fix regex compilation error on HP-UX 11.
51320         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
51321         * modules/regex (Files): Add m4/mbstate_t.m4.
51322         Reported by Ton Voon <ton.voon@altinity.com>.
51323
51324 2008-03-23  Bruno Haible  <bruno@clisp.org>
51325
51326         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
51327
51328 2008-03-23  Eric Blake  <ebb9@byu.net>
51329             Bruno Haible  <bruno@clisp.org>
51330
51331         Install files from top/ in the destination directory.
51332         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
51333         augmentation also for the files from top/.
51334         (func_import, func_create_testdir): Rewrite file names:
51335         top/filename -> filename.
51336
51337 2008-03-23  Bruno Haible  <bruno@clisp.org>
51338
51339         Tweak "gnulib --version" output.
51340         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
51341
51342 2008-03-23  Bruno Haible  <bruno@clisp.org>
51343
51344         Tweak "gnulib --version" output.
51345         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
51346         rather than contents of ChangeLog, when possible.
51347
51348 2008-03-21  Eric Blake  <ebb9@byu.net>
51349
51350         More --version tweaks.
51351         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
51352         date of last ChangeLog entry.
51353
51354 2008-03-21  Jim Meyering  <meyering@redhat.com>
51355
51356         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
51357
51358 2008-03-20  Eric Blake  <ebb9@byu.net>
51359
51360         VPATH fix.
51361         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
51362
51363 2008-03-20  Simon Josefsson  <simon@josefsson.org>
51364
51365         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
51366         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
51367
51368 2008-03-20  Eric Blake  <ebb9@byu.net>
51369
51370         Sync GNUmakefile with coreutils.
51371         * build-aux/GNUmakefile (have-Makefile): Rename...
51372         (_have-Makefile): ...to this, for namespace consideration.
51373         (GNUmakefile.cfg): Include, if present.
51374         (_autoreconf): Define a default.
51375         (_is-dist-target): New rule for rebuilds to pick up intra-release
51376         version.
51377         (maint-cfg.mk): Rename...
51378         (cfg.mk): ...to this.
51379
51380 2008-03-18  Jim Meyering  <meyering@redhat.com>
51381
51382         New script and module: mktempd
51383         * MODULES.html.sh (maint+release support): Add mktempd.
51384         * build-aux/mktempd: New file.
51385         * modules/mktempd: New file.
51386
51387 2008-03-15  Jim Meyering  <meyering@redhat.com>
51388
51389         Undo last change.
51390         * lib/sha1.c, lib/md5.c: 63 != ~63.
51391         Reported by Andreas Schwab.
51392
51393         sha1.c, md5.c: Hoist a redundant expression.
51394         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
51395         "ctx->buflen" only once, before calling *_process_block.
51396         * lib/md5.c (md5_process_bytes): Likewise.
51397
51398 2008-03-14  Eric Blake  <ebb9@byu.net>
51399
51400         Bump copyright year in files generated by gnulib-tool.
51401         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
51402         gnulib-tool, rather than hard-coding it.
51403
51404         Fix 'gnulib-tool --version' output to work with git.
51405         * gnulib-tool (func_gnulib_dir): New function, extracted from...
51406         (startup): ...here.
51407         (func_version): Use it to invoke git-version-gen, rather than
51408         relying on CVS keyword expansion.  Modernize wording.
51409         (cvsdatestamp, last_checkin_date, version): Kill unused
51410         variables.
51411
51412 2008-03-12  Jim Meyering  <meyering@redhat.com>
51413
51414         Recognize optional cast of the argument to free.
51415         * build-aux/useless-if-before-free: Update regexps.
51416
51417         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
51418
51419 2008-03-11  Bruno Haible  <bruno@clisp.org>
51420
51421         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
51422         by a single package.
51423         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
51424         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
51425         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
51426         Reported by Sam Steingold <sds@gnu.org>.
51427
51428 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
51429
51430         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
51431         repositories.
51432
51433 2008-03-11  Bruno Haible  <bruno@clisp.org>
51434
51435         Avoid conflicts between local macro definitions.
51436         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
51437         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
51438
51439 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
51440             Bruno Haible  <bruno@clisp.org>
51441
51442         Make va_copy work with some version of xlc on AIX 5.1.
51443         * lib/stdarg.in.h: New file.
51444         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
51445         On AIX, use a <stdarg.h> file substitute.
51446         * modules/stdarg (Files): Add lib/stdarg.in.h.
51447         (Depends-on): Add include_next.
51448         (Makefile.am): Build a stdarg.h substitute if requested.
51449         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
51450
51451 2008-03-10  Bruno Haible  <bruno@clisp.org>
51452
51453         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
51454         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
51455         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
51456
51457 2008-03-10  Bruno Haible  <bruno@clisp.org>
51458
51459         * modules/stdlib (Depends-on): Add include_next, remove
51460         absolute-header.
51461
51462 2008-03-09  Bruno Haible  <bruno@clisp.org>
51463
51464         * lib/freadahead.h (freadahead): Document more precisely.
51465         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
51466         the sum of both buffer sizes.
51467         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
51468         * NEWS: Document the change.
51469
51470 2008-03-09  Bruno Haible  <bruno@clisp.org>
51471
51472         Extend freadptr to return also the buffer size.
51473         * lib/freadptr.h (freadptr): Add sizep argument.
51474         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
51475         (freadptr): Add sizep argument. Determine buffer size like freadahead
51476         does.
51477         * tests/test-freadptr.c: Don't include freadahead.h.
51478         (main): Adapt for new calling convention of freadptr.
51479         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
51480         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
51481         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
51482         tests/test-freadptr2.sh.
51483         (Depends): Remove freadahead.
51484         (TESTS): Add test-freadptr2.sh.
51485         (check_PROGRAMS): Add test-freadptr2.
51486
51487 2008-03-09  Bruno Haible  <bruno@clisp.org>
51488
51489         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
51490         Report and solution by Simon Josefsson.
51491
51492 2008-03-06  Bruno Haible  <bruno@clisp.org>
51493
51494         Make fflush after ungetc work on BSD platforms.
51495         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
51496         * tests/test-fflush2.c: New file.
51497         * tests/test-fflush2.sh: New file.
51498         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
51499         tests/test-fflush2.c.
51500         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
51501         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
51502
51503 2008-03-06  Eric Blake  <ebb9@byu.net>
51504
51505         Likewise for ftello.
51506         * modules/ftello (Dependencies): Add extensions.
51507         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
51508
51509 2008-03-06  Bruno Haible  <bruno@clisp.org>
51510
51511         * modules/fseeko (Dependencies): Add extensions.
51512         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
51513         Needed on glibc systems.
51514
51515 2008-03-06  Bruno Haible  <bruno@clisp.org>
51516
51517         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
51518         email address.
51519         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
51520
51521 2008-03-06  Bruno Haible  <bruno@clisp.org>
51522
51523         * users.txt: Add libgnupdf.
51524
51525 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
51526
51527         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
51528         (Header File Substitutes, Function Substitutes,
51529         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
51530         (Build robot for gnulib): Fix typo.
51531
51532 2008-03-06  Bruno Haible  <bruno@clisp.org>
51533
51534         * doc/gnulib-tool.texi (VCS Issues): Small updates.
51535         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
51536
51537 2008-03-06  Bruno Haible  <bruno@clisp.org>
51538
51539         * doc/func.texi: New file, extracted from doc/gnulib.texi.
51540         * doc/gnulib.texi: Include it.
51541
51542 2008-03-06  Simon Josefsson  <simon@josefsson.org>
51543
51544         * modules/func (License): Change license to unlimited; there was
51545         no LGPL parts in the module anyway.
51546
51547 2008-03-06  Simon Josefsson  <simon@josefsson.org>
51548
51549         * modules/__func__: Renamed to modules/func.
51550         * modules/__func__-tests: Renamed to modules/func-tests.
51551         * tests/test-__func__.c: Renamed to tests/test-func.c.
51552         * m4/__func__.m4: Renamed to m4/func.m4.
51553         * doc/gnulib.texi (__func__): Section renamed to func.
51554         Suggested by Eric Blake <ebb9@byu.net>.
51555
51556 2008-03-06  Simon Josefsson  <simon@josefsson.org>
51557
51558         * doc/gnulib.texi (__func__): Use C99 terminology when talking
51559         about __func__.  Make example self-contained.  Suggested by Eric
51560         Blake <ebb9@byu.net>.
51561
51562         * tests/test-__func__.c (main): Avoid extraneous () around __func.
51563         Suggested by Eric Blake <ebb9@byu.net>.
51564
51565 2008-03-06  Simon Josefsson  <simon@josefsson.org>
51566
51567         * modules/__func__: New file.
51568         * modules/__func__-tests: New file.
51569         * tests/test-__func__.c: New file.
51570         * m4/__func__.m4: New file.
51571         * doc/gnulib.texi (__func__): Document __func__ module.
51572
51573 2008-03-05  Simon Josefsson  <simon@josefsson.org>
51574
51575         * modules/byteswap (License): Re-license as LGPLv2+.
51576
51577 2008-03-05  Simon Josefsson  <simon@josefsson.org>
51578
51579         * doc/Makefile: Add pdf target.
51580
51581 2008-03-05  Simon Josefsson  <simon@josefsson.org>
51582
51583         * modules/inline (License): Use 'unlimited', since there are only
51584         *.m4 files in this module.
51585
51586 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
51587             Bruno Haible  <bruno@clisp.org>
51588
51589         Add support for HP C 7.1 on OpenVMS 8.3.
51590         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
51591
51592 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
51593
51594         Update VMS specifics.
51595         * lib/getopt.c [VMS]: Remove include of unixlib.h.
51596
51597 2008-03-02  Jim Meyering  <meyering@redhat.com>
51598
51599         Remove the last dependency on the "free" module.
51600         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
51601         Reported by Bob Proulx.
51602
51603         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
51604
51605         Remove useless "if" tests before free.  Deprecate "free" module.
51606         * doc/posix-functions/free.texi: Mention that this
51607         module is no longer useful.
51608         * modules/free (Notice): Say this module is obsolete.
51609         * modules/readutmp (Depends-on): Remove free.
51610         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
51611         * lib/putenv.c (putenv): Likewise.
51612         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
51613         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
51614         * tests/test-c-strcasestr.c (main): Likewise.
51615         * tests/test-c-strstr.c (main): Likewise.
51616         * tests/test-mbscasestr1.c (main): Likewise.
51617         * tests/test-mbscasestr2.c (main): Likewise.
51618         * tests/test-mbsstr1.c (main): Likewise.
51619         * tests/test-mbsstr2.c (main): Likewise.
51620         * tests/test-memmem.c (main): Likewise.
51621         * tests/test-strcasestr.c (main): Likewise.
51622         * tests/test-striconv.c (main): Likewise.
51623         * tests/test-striconveh.c (main): Likewise.
51624         * tests/test-striconveha.c (main): Likewise.
51625         * tests/test-strstr.c (main): Likewise.
51626
51627         * build-aux/git-version-gen: Adjust a comment and the Usage string.
51628
51629         bootstrap: sync from coreutils again
51630         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
51631
51632 2008-03-01  Jim Meyering  <meyering@redhat.com>
51633
51634         bootstrap: sync from coreutils
51635         * build-aux/bootstrap (update_po_files): Copy a .po file into place
51636         also when the target doesn't exist.
51637
51638 2008-03-01  Eric Blake  <ebb9@byu.net>
51639
51640         Fix bugs in last patch.
51641         * lib/memchr2.c (memchr2): Fix typo.
51642         * tests/test-memchr2.c: Test previous bug, and don't use GNU
51643         extension.
51644         Reported by Bruce Korb.
51645
51646         New module 'memchr2'.
51647         * modules/memchr2: New file.
51648         * modules/memchr2-tests: Likewise.
51649         * lib/memchr2.h: Likewise.
51650         * lib/memchr2.c: Likewise, based on memchr.c.
51651         * tests/test-memchr2.c: New test.
51652         * MODULES.html.sh (String handling): Add memchr2.
51653
51654 2008-02-29  Bruno Haible  <bruno@clisp.org>
51655
51656         * modules/freadseek-tests: New file.
51657         * tests/test-freadseek.sh: New file.
51658         * tests/test-freadseek.c: New file.
51659
51660         New module 'freadseek'.
51661         * modules/freadseek: New file.
51662         * lib/freadseek.h: New file.
51663         * lib/freadseek.c: New file.
51664         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
51665
51666 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
51667
51668         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
51669         wydawca.
51670
51671         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
51672         program_invocation_name and program_invocation_short_name are
51673         present.
51674
51675 2008-02-28  Bruno Haible  <bruno@clisp.org>
51676
51677         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
51678         * tests/test-freadptr.sh: Also test non-seekable stdin.
51679
51680 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
51681
51682         * build-aux/bootstrap (source_base, m4_base)
51683         (doc_base, tests_base): New variables.
51684         (gnulib_tool_options): Do not hardcode base directories, use
51685         the above variables instead.
51686
51687 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
51688
51689         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
51690
51691 2008-02-28  Bruno Haible  <bruno@clisp.org>
51692
51693         * modules/freadptr-tests: New file.
51694         * tests/test-freadptr.sh: New file.
51695         * tests/test-freadptr.c: New file.
51696
51697         New module 'freadptr'.
51698         * modules/freadptr: New file.
51699         * lib/freadptr.h: New file.
51700         * lib/freadptr.c: New file.
51701         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
51702
51703 2008-02-26  Karl Berry  <karl@freefriends.org>
51704
51705         Sync from Libtool:
51706         * libltdl/argz.c (argz_add, argz_count): New functions.
51707         * libltdl/argz.in.h: Declare them.
51708         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
51709
51710 2008-02-22  Bruno Haible  <bruno@clisp.org>
51711
51712         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
51713         is a pointer type.  Needed for HP-UX 10.
51714         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
51715         * doc/posix-functions/gmtime_r.texi: Likewise.
51716         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
51717
51718 2008-02-24  Bruno Haible  <bruno@clisp.org>
51719
51720         * modules/environ-tests: New file.
51721         * tests/test-environ.c: New file.
51722
51723         New module 'environ'.
51724         * modules/environ: New file.
51725         * lib/unistd.in.h (environ): New declaration.
51726         * m4/environ.m4: New file.
51727         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
51728         after use.
51729         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
51730         HAVE_DECL_ENVIRON.
51731         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
51732         HAVE_DECL_ENVIRON.
51733         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
51734         wrong claim that 'environ' is missing on some systems.
51735         * modules/execute (Depends-on): Add environ.
51736         * lib/execute.c (environ): Remove fallback declaration.
51737         * modules/pipe (Depends-on): Add environ.
51738         * lib/pipe.c (environ): Remove fallback declaration.
51739         * modules/setenv (Depends-on): Add environ.
51740         * lib/setenv.c (environ): Remove fallback declaration.
51741         * modules/unsetenv (Depends-on): Add environ.
51742         * lib/unsetenv.c (environ): Remove fallback declaration.
51743         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
51744         m4/environ.m4.
51745         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
51746         (gl_PREREQ_UNSETENV): Likewise.
51747
51748 2008-02-24  Bruno Haible  <bruno@clisp.org>
51749
51750         * doc/posix-functions/environ.texi: Document the MacOS X problem.
51751
51752 2008-02-20  Bob Proulx  <bob@proulx.com>
51753
51754         Enable use of older two part flavor 'git describe'.
51755         * build-aux/git-version-gen: If using the older two part flavor of
51756         git version then recreate the third part now present in the
51757         newer three part flavor of git describe.
51758
51759 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
51760
51761         * lib/fts.c (fts_build): Typo correction to comment.
51762
51763 2008-02-17  Bruno Haible  <bruno@clisp.org>
51764
51765         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
51766         generating no-op conflicts.
51767
51768 2008-02-17  Bruno Haible  <bruno@clisp.org>
51769
51770         Speed up by 10%.
51771         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
51772         result_entries, rather than an index-based loop.
51773
51774 2008-02-17  Bruno Haible  <bruno@clisp.org>
51775
51776         Speed up by 25%.
51777         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
51778         'hashcode_cached'.
51779         (entry_create): New function.
51780         (entry_hashcode): Use the cached hashcode if possible.
51781         (read_changelog_file, try_split_merged_entry): Use entry_create.
51782
51783 2008-02-17  Bruno Haible  <bruno@clisp.org>
51784
51785         Speed up from O(n^2) to O(n) for long ChangeLog files.
51786         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
51787         (read_changelog_file): Change implementation of entries_reversed list
51788         to rbtreehash.
51789         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
51790
51791 2008-02-17  Bruno Haible  <bruno@clisp.org>
51792
51793         New option --split-merged-entry.
51794         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
51795         (find_paragraph_end, try_split_merged_entry): New functions.
51796         (long_options): Add option --split-merged-entry.
51797         (usage): Document option --split-merged-entry.
51798         (main): Implement option --split-merged-entry.
51799         Reported by Eric Blake.
51800
51801 2008-02-17  Bruno Haible  <bruno@clisp.org>
51802
51803         * lib/git-merge-changelog.c: Include c-strstr.h.
51804         (main): Support the "git pull --rebase" situation.
51805         * modules/git-merge-changelog (Depends-on): Add c-strstr.
51806         Reported by Eric Blake.
51807
51808 2008-02-16  Eric Blake  <ebb9@byu.net>
51809
51810         Avoid doubling \ in common case of "c-maybe" quoting style.
51811         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
51812         eliding outer quotes.
51813         * lib/quotearg.h: Document this.
51814         * tests/test-quotearg.c (result_strings, inputs, results_g)
51815         (flag_results, locale_results): Test it by adding a new string to
51816         each test group.
51817         (compare_strings): Test new string.
51818
51819 2008-02-13  Eric Blake  <ebb9@byu.net>
51820
51821         Avoid trigraph quoting in default output.
51822         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
51823         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
51824         unless explicitly requested.
51825         * tests/test-quotearg.c (flag_results, main): Add additional tests.
51826
51827 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
51828
51829         Don't rely on signed integer overflowing to negative value.
51830         * lib/getugroups.c (getugroups): Include <limits.h>.
51831         Instead, compare against INT_MAX, and increment only if the test passes.
51832
51833 2008-02-13  Jim Meyering  <meyering@redhat.com>
51834         and Eric Blake  <ebb9@byu.net>
51835
51836         Avoid shadowing warning and compile errors on Linux.
51837         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
51838         forwarding macros on Linux.
51839         (dcgettext): Define a stub, for Linux.
51840         (results_g, main): Avoid warnings.
51841
51842 2008-02-12  Eric Blake  <ebb9@byu.net>
51843
51844         Silence warning in last patch.
51845         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
51846
51847         Quotearg part 4: add tests, fix c-maybe colon quoting.
51848         * lib/quotearg.h: Improve documentation.
51849         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
51850         escapes when adding outer quotes.  When quoting trigraphs, use
51851         valid C notation.  When quoting NUL, omit extra characters if next
51852         character is not digit.  Alter prototype.
51853         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
51854         callers.
51855         * modules/quotearg-tests: New module.
51856         * tests/test-quotearg.c: New test.
51857
51858 2008-02-07  Eric Blake  <ebb9@byu.net>
51859
51860         Quotearg part 3: add flag to control outer quote elision.
51861         * lib/quotearg.h (c_maybe_quoting_style): New style.
51862         (enum quoting_flags): Better documentation of flags.
51863         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
51864         c-maybe style.
51865         (quotearg_buffer_restyled): Handle new flag to elide outer
51866         quotes.
51867
51868         Quotearg part 2: add flag that can control NUL elision.
51869         * lib/quotearg.h (set_quoting_flags): New prototype.
51870         * lib/quotearg.c (struct quoting_options): Add flag field.
51871         (set_quoting_flags): New function.
51872         (quotearg_buffer_restyled): Add flags parameter.
51873         (quotearg_alloc_mem): Set the flag if length cannot be returned.
51874         (quotearg_n_options): Set the flag, since length cannot be
51875         returned.
51876         (quoting_options_from_style): Default flags correctly.
51877
51878         Quotearg part 1: more wrappers, restore quotearg_char state.
51879         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
51880         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
51881         (quotearg_colon_mem): New wrappers.
51882         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
51883         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
51884         functions.
51885         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
51886         (quotearg_colon_mem): New functions.
51887
51888 2008-02-11  Bruno Haible  <bruno@clisp.org>
51889
51890         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
51891         library in the current directory: it does not work with parallel make.
51892         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51893
51894 2008-02-11  Bruno Haible  <bruno@clisp.org>
51895
51896         * .gitattributes: New file.
51897
51898 2008-02-11  Jim Meyering  <meyering@redhat.com>
51899
51900         useless-if-before-free: Fix reversed exit values.
51901         * build-aux/useless-if-before-free: Use correct values
51902         for EXIT_MATCH and EXIT_NO_MATCH.
51903
51904         * build-aux/useless-if-before-free: Close stdout carefully.
51905
51906 2008-02-10  Bruno Haible  <bruno@clisp.org>
51907
51908         New module 'git-merge-changelog'.
51909         * modules/git-merge-changelog: New file.
51910         * lib/git-merge-changelog.c: New file.
51911
51912 2008-02-10  Jim Meyering  <meyering@redhat.com>
51913
51914         useless-if-before-free: New option: --list (-l).
51915
51916         useless-if-before-free: Don't exit immediately upon open failure.
51917         * build-aux/useless-if-before-free: Exit 2 for errors.
51918         Upon failure to open a file, don't exit immediately.
51919         Rather, just warn and continue with any remaining files.
51920
51921 2008-02-10  Bruno Haible  <bruno@clisp.org>
51922
51923         New abstract list operation 'node_set_value'.
51924         * lib/gl_list.h (gl_list_node_set_value): New function.
51925         (struct gl_list_implementation): New field node_set_value.
51926         * lib/gl_list.c (gl_list_node_set_value): New function.
51927         * lib/gl_array_list.c (gl_array_node_set_value): New function.
51928         (gl_array_list_implementation): Update.
51929         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
51930         (gl_carray_list_implementation): Update.
51931         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
51932         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
51933         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
51934         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
51935         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
51936         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
51937         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
51938         Update.
51939         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
51940         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
51941         (gl_sublist_list_implementation): Update.
51942
51943 2008-02-10  Bruno Haible  <bruno@clisp.org>
51944
51945         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
51946         Needed when ELEMENT is #defined to 'some_type *'.
51947
51948 2008-02-10  Jim Meyering  <meyering@redhat.com>
51949
51950         New script and module: useless-if-before-free
51951         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
51952         * build-aux/useless-if-before-free: New file.
51953         * modules/useless-if-before-free: New file.
51954
51955         * build-aux/gitlog-to-changelog: Use committer date, not author date.
51956
51957         xstrtol_error: Fix typo.
51958         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
51959         s/exit_failure/exit_status/.
51960
51961 2008-02-09  Jim Meyering  <meyering@redhat.com>
51962
51963         New script and module: gitlog-to-changelog
51964         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
51965         * modules/gitlog-to-changelog: New file.
51966         * build-aux/gitlog-to-changelog: New file.
51967
51968 2008-02-08  Jim Meyering  <meyering@redhat.com>
51969
51970         Avoid two "parameter unused" warnings.
51971         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
51972         Mark "st" as used.
51973
51974         Use "git COMMAND", not "git-COMMAND".
51975         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
51976         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
51977         * build-aux/git-version-gen: Use "git status", not "git-status".
51978
51979 2008-02-07  Bruno Haible  <bruno@clisp.org>
51980
51981         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
51982         Avoids a crash on Windows Vista.
51983         Reported by Adam Strzelecki <ono@java.pl> via
51984         Simon Josefsson <simon@josefsson.org>.
51985
51986 2008-02-06  Bruno Haible  <bruno@clisp.org>
51987
51988         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
51989         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
51990         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
51991         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
51992         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
51993         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
51994         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
51995         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
51996         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
51997         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51998         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51999         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
52000         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
52001         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52002         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
52003         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
52004         left-adjust flag.
52005         * tests/test-snprintf-posix.h (test_function): Likewise.
52006         * tests/test-sprintf-posix.h (test_function): Likewise.
52007         * tests/test-vasprintf-posix.c (test_function): Likewise.
52008         * doc/posix-functions/fprintf.texi: Update.
52009         * doc/posix-functions/printf.texi: Update.
52010         * doc/posix-functions/snprintf.texi: Update.
52011         * doc/posix-functions/sprintf.texi: Update.
52012         * doc/posix-functions/vfprintf.texi: Update.
52013         * doc/posix-functions/vprintf.texi: Update.
52014         * doc/posix-functions/vsnprintf.texi: Update.
52015         * doc/posix-functions/vsprintf.texi: Update.
52016         Reported by Peter Fales <psfales@alcatel-lucent.com>.
52017
52018 2008-02-06  Bruno Haible  <bruno@clisp.org>
52019
52020         Fix bug introduced on 2008-01-26.
52021         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
52022
52023 2008-02-06  Bruno Haible  <bruno@clisp.org>
52024
52025         Fix bug introduced on 2007-06-10.
52026         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
52027         !NEED_PRINTF_FLAG_ZERO.
52028
52029 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
52030
52031         getloadavg: use libperfstat on AIX5
52032         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
52033
52034 2008-02-03  Bruno Haible  <bruno@clisp.org>
52035
52036         * lib/diffseq.h: Add comments about required #includes.
52037         Reported by Michael Biggs <gnulib@doubleplum.net>.
52038
52039 2008-02-01  Bruno Haible  <bruno@clisp.org>
52040
52041         * users.txt: Add gnuit.
52042
52043 2008-01-31  Bruno Haible  <bruno@clisp.org>
52044
52045         * lib/md4.c (set_uint32): Mark as inline.
52046         * lib/md5.c (set_uint32): Likewise.
52047         * lib/sha1.c (set_uint32): Likewise.
52048         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
52049         * m4/md5.m4 (gl_MD5): Likewise.
52050         * m4/sha1.m4 (gl_SHA1): Likewise.
52051
52052 2008-01-31  Jim Meyering  <meyering@redhat.com>
52053
52054         Use "sizeof VAR", rather than a literal "4".
52055         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
52056         * lib/md4.c (md4_read_ctx): Likewise.
52057         * lib/sha1.c (sha1_read_ctx): Likewise.
52058
52059 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52060
52061         * tests/test-sha1.c: New file, based on test-md5.c.
52062
52063         * modules/crypto/sha1-tests: New file.
52064
52065 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52066
52067         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
52068
52069 2008-01-31  Jim Meyering  <meyering@redhat.com>
52070
52071         Prefer "sizeof v" over the equivalent "4".
52072         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
52073         * lib/md5.c (set_uint32): Likewise.
52074         * lib/sha1.c (set_uint32): Likewise.
52075
52076 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52077
52078         * lib/sha1.c (set_uint32): Mark function as static.
52079
52080 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52081
52082         md2: clarify comments to say that alignment is not required.
52083         * lib/md2.h: Remove warning about alignment in comment.
52084         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
52085         never been required.
52086
52087 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52088
52089         md4: adapt alignment constraint fix from sha1.
52090         * lib/md4.c (set_uint32): New function, from sha1.c
52091         (md4_read_ctx): Use it.
52092         (md4_finish_ctx): Doc fix.
52093         * lib/md4.h: Doc fix.
52094
52095 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52096
52097         md5: adapt alignment constraint fix from sha1.
52098         * lib/md5.c (set_uint32): New function, from sha1.c
52099         (md5_read_ctx): Use it.
52100         (md5_finish_ctx): Doc fix.
52101         * lib/md5.h: Doc fix.
52102
52103 2008-01-30  Peter Palfrader  <weasel@debian.org>
52104
52105         sha1: remove the result buffer alignment constraint
52106         * lib/sha1.c (set_uint32): New function.
52107         (sha1_read_ctx): Rewrite to remove the result buffer alignment
52108         constraint.
52109         (sha1_finish_ctx): Remove comment warning about alignment constraint.
52110         * lib/sha1.h: Likewise.
52111
52112 2008-01-30  Andreas Schwab  <schwab@suse.de>
52113             Bruno Haible  <bruno@clisp.org>
52114
52115         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
52116         correct definition of LDBL_MIN_EXP.
52117
52118 2008-01-30  Karl Berry  <karl@gnu.org>
52119
52120         * config/srclist-update: try to preserve x bit on updates.
52121         * config/srclistvars.sh: update for karl.
52122
52123 2008-01-29  Jim Meyering  <meyering@redhat.com>
52124
52125         vasnprintf.c: Avoid warning about unused label
52126         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
52127         "overflow" label definition and associated code with the
52128         same cpp condition that guards the sole use of that label.
52129
52130 2008-01-26  Bruno Haible  <bruno@clisp.org>
52131
52132         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
52133         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
52134         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
52135         * lib/isnanl-nolibm.h (isnanl): Likewise.
52136         Reported by Paul Eggert <eggert@cs.ucla.edu>.
52137
52138 2008-01-26  Bruno Haible  <bruno@clisp.org>
52139
52140         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
52141         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
52142
52143 2008-01-26  Bruno Haible  <bruno@clisp.org>
52144
52145         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
52146         GCC >= 4.0 built-in.
52147         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
52148
52149 2008-01-26  Bruno Haible  <bruno@clisp.org>
52150
52151         Rename isnan, applicable to 'double' only, to isnand.
52152         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
52153         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
52154         (configure.ac): Update.
52155         (Include): Replace "isnan.h" with "isnand.h".
52156         * m4/isnand.m4: Renamed from m4/isnan.m4.
52157         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
52158         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
52159         instead of isnan.c.
52160         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
52161         instead of HAVE_ISNAN_IN_LIBC.
52162         (isnand): Renamed from isnan.
52163         * lib/isnand.c: New file.
52164         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
52165         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
52166         (Makefile.am): Update.
52167         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
52168         Include isnand.h instead of isnan.h.
52169         (main): Test isnand instead of isnan.
52170         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
52171         isnan-nolibm.
52172         * modules/frexp (Depends-on): Likewise.
52173         * modules/frexp-tests (Depends-on): Likewise.
52174         * modules/frexp-nolibm (Depends-on): Likewise.
52175         * modules/frexp-nolibm-tests (Depends-on): Likewise.
52176         * modules/isfinite (Depends-on): Likewise.
52177         * modules/round-tests (Depends-on): Likewise.
52178         * modules/signbit (Depends-on): Likewise.
52179         * modules/signbit-tests (Depends-on): Likewise.
52180         * modules/snprintf-posix (Depends-on): Likewise.
52181         * modules/sprintf-posix (Depends-on): Likewise.
52182         * modules/trunc-tests (Depends-on): Likewise.
52183         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
52184         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
52185         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
52186         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
52187         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
52188         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
52189         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
52190         * modules/vasnprintf-posix (Depends-on): Likewise.
52191         * modules/vasprintf-posix (Depends-on): Likewise.
52192         * modules/vfprintf-posix (Depends-on): Likewise.
52193         * modules/vsnprintf-posix (Depends-on): Likewise.
52194         * modules/vsprintf-posix (Depends-on): Likewise.
52195         * lib/frexp.c: Include isnand.h instead of isnan.h.
52196         (ISNAN): Set to isnand instead of isnan.
52197         * lib/isfinite.c: Include isnand.h instead of isnan.h.
52198         (gl_isfinited): Use isnand instead of isnan.
52199         * lib/signbitd.c: Include isnand.h instead of isnan.h.
52200         (gl_signbitd): Use isnand instead of isnan.
52201         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
52202         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
52203         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
52204         (main): Use isnand instead of isnan.
52205         * tests/test-round1.c: Include isnand.h.
52206         (main): Use isnand instead of isnan.
52207         * tests/test-round2.c: Include isnand.h instead of isnan.h.
52208         (ISNAN): Set to isnand instead of isnan.
52209         * tests/test-trunc1.c: Include isnand.h.
52210         (main): Use isnand instead of isnan.
52211         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
52212         (equal): Use isnand instead of isnan.
52213         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
52214         isnand-nolibm.
52215         * NEWS: Mention the change.
52216
52217 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
52218             Bruno Haible  <bruno@clisp.org>
52219
52220         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
52221         the GCC builtins for signbits are present and set
52222         REPLACE_SIGNBIT_USING_GCC if so.
52223         * lib/math.in.h (signbit): Define using GCC builtins if
52224         REPLACE_SIGNBIT_USING_GCC is set.
52225         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
52226         REPLACE_SIGNBIT_USING_GCC.
52227         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
52228
52229 2008-01-25  Jim Meyering  <meyering@redhat.com>
52230
52231         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
52232         * lib/poll.c: Include <config.h>, not "config.h".
52233         * tests/test-getaddrinfo.c: Likewise.
52234
52235 2008-01-25  Simon Josefsson  <simon@josefsson.org>
52236
52237         * modules/sockets-tests: New file.
52238
52239 2008-01-24  Simon Josefsson  <simon@josefsson.org>
52240
52241         * modules/sockets: New module, can be used to call WSA_Startup and
52242         WSA_Cleanup when needed.
52243
52244         * lib/sockets.h, lib/sockets.c: New files.
52245
52246         * m4/sockets.m4: New file.
52247
52248         * tests/test-sockets.c: New file.
52249
52250 2008-01-19  Bruno Haible  <bruno@clisp.org>
52251
52252         * doc/posix-headers: Renamed from doc/headers.
52253         * doc/posix-functions: Renamed from doc/functions.
52254         * doc/gnulib.texi: Update.
52255
52256 2008-01-19  Bruno Haible  <bruno@clisp.org>
52257
52258         * doc/glibc-functions/strcasestr.texi: Include contents of
52259         doc/functions/strcasestr.texi, fixing the list of platforms.
52260         * doc/functions/strcasestr.texi: Remove file.
52261
52262 2008-01-19  Bruno Haible  <bruno@clisp.org>
52263
52264         * doc/glibc-functions/memmem.texi: Include contents of
52265         doc/functions/memmem.texi.
52266         * doc/functions/memmem.texi: Remove file.
52267
52268 2008-01-18  Bruno Haible  <bruno@clisp.org>
52269
52270         * doc/glibc-functions/*.texi: New files.
52271         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
52272         to use the new files.
52273
52274 2008-01-17  Bruno Haible  <bruno@clisp.org>
52275
52276         * tests/test-gethostname.c (main): Fix printf statement.
52277
52278 2008-01-17  Simon Josefsson  <simon@josefsson.org>
52279
52280         * modules/gethostname-tests: New file.
52281
52282         * tests/test-gethostname.c: New file.
52283
52284 2008-01-17  Simon Josefsson  <simon@josefsson.org>
52285
52286         * lib/gethostname.c: Include string.h unconditionally, strncpy is
52287         used by the UNAME case.  Reported by Bruno Haible
52288         <bruno@clisp.org>.
52289
52290 2008-01-17  Eric Blake  <ebb9@byu.net>
52291
52292         Convert c-strcasestr to be more efficient.
52293         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
52294         (Depends-on): Add c-strcase, remove malloca, strnlen.
52295         * tests/test-c-strcasestr.c (main): Enhance test.
52296         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
52297
52298 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
52299
52300         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
52301         Use it in creating po/Makevars.
52302
52303 2008-01-15  Simon Josefsson  <simon@josefsson.org>
52304
52305         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
52306         Applications that requires it should initialize libgcrypt
52307         manually.
52308
52309 2008-01-16  Simon Josefsson  <simon@josefsson.org>
52310
52311         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
52312
52313 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
52314
52315         Fix problem with getdate on mingw32 reported by Simon Josefsson
52316         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
52317         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
52318         tzname", when deciding whether to declare tzname.
52319         * lib/strftime.c (tzname): Likewise.
52320
52321 2008-01-15  Bruno Haible  <bruno@clisp.org>
52322
52323         Work around a MacOS X 10.5 bug in frexpl().
52324         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
52325         * doc/functions/frexpl.texi: Document the bug.
52326         Reported by Elias Pipping <pipping@gentoo.org>.
52327
52328 2008-01-14  Eric Blake  <ebb9@byu.net>
52329
52330         Touch up previous patch.
52331         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
52332         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
52333
52334         Convert strcasestr module to use Two-Way algorithm.
52335         * modules/strcasestr-simple: New module, based on the old
52336         strcasestr, but with Two-Way rather than KMP.
52337         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
52338         * lib/string.in.h (rpl_strcasestr): Declare.
52339         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
52340         performance.
52341         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
52342         * modules/string (Makefile.am): Support strcasestr.
52343         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
52344         * modules/strcasestr-tests (Depends-on): Check for alarm.
52345         * tests/test-strcasestr.c: Augment test.
52346         * lib/str-two-way.h: Clean up stray macro.
52347         * NEWS: Document new module.
52348         * MODULES.html.sh (string handling): Likewise.
52349         * doc/functions/strcasestr.texi: New file.
52350         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
52351         here, since it is not a POSIX function.
52352
52353 2008-01-14  Colin Watson  <cjwatson@debian.org>
52354             Bruno Haible  <bruno@clisp.org>
52355
52356         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
52357         works fine; if not, set REPLACE_STRSIGNAL.
52358         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
52359         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
52360         REPLACE_STRSIGNAL.
52361         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
52362         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
52363         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
52364
52365 2008-01-14  Bruno Haible  <bruno@clisp.org>
52366
52367         * modules/strsignal (Include): Change to <string.h>.
52368
52369 2008-01-14  Colin Watson  <cjwatson@debian.org>
52370
52371         * modules/argp (Notice): Add a notice recommending to change
52372         XGETTEXT_OPTIONS.
52373         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
52374
52375 2008-01-13  Colin Watson  <cjwatson@debian.org>
52376
52377         * modules/strsignal-tests: New file.
52378         * tests/test-strsignal.c: New file.
52379
52380         * lib/strsignal.c: New file, from glibc with modifications.
52381         * lib/siglist.h: New file, from glibc with modifications.
52382         * lib/string.in.h (strsignal): New declaration.
52383         * m4/strsignal.m4: New file.
52384         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
52385         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
52386         * modules/strsignal: New file.
52387         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
52388         HAVE_DECL_STRSIGNAL.
52389
52390 2008-01-13  Bruno Haible  <bruno@clisp.org>
52391
52392         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
52393         locale encoding is not ASCII. Needed for OpenBSD 4.0.
52394         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
52395         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
52396
52397 2008-01-13  Bruno Haible  <bruno@clisp.org>
52398
52399         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
52400         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
52401         * lib/argp.h (__attribute__): Likewise.
52402         * lib/c-stack.c (__attribute__): Likewise.
52403         * lib/error.h (__attribute__): Likewise.
52404         * lib/fts.c (__attribute__): Likewise.
52405         * lib/openat.h (__attribute__): Likewise.
52406         * lib/stdio.in.h (__attribute__): Likewise.
52407         * lib/string.in.h (__attribute__): Likewise.
52408         * lib/utimens.c (__attribute__): Likewise.
52409         * lib/vasnprintf.h (__attribute__): Likewise.
52410         * lib/xalloc.h (__attribute__): Likewise.
52411         * lib/xprintf.h (__attribute__): Likewise.
52412         * lib/xstrtol.h (__attribute__): Likewise.
52413         * lib/xvasprintf.h (__attribute__): Likewise.
52414
52415 2008-01-12  Bruno Haible  <bruno@clisp.org>
52416
52417         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
52418         * doc/glibc-headers/a.out.texi: New file.
52419         * doc/glibc-headers/aliases.texi: New file.
52420         * doc/glibc-headers/alloca.texi: New file.
52421         * doc/glibc-headers/ar.texi: New file.
52422         * doc/glibc-headers/argp.texi: New file.
52423         * doc/glibc-headers/argz.texi: New file.
52424         * doc/glibc-headers/byteswap.texi: New file.
52425         * doc/glibc-headers/crypt.texi: New file.
52426         * doc/glibc-headers/endian.texi: New file.
52427         * doc/glibc-headers/envz.texi: New file.
52428         * doc/glibc-headers/err.texi: New file.
52429         * doc/glibc-headers/error.texi: New file.
52430         * doc/glibc-headers/execinfo.texi: New file.
52431         * doc/glibc-headers/fpu_control.texi: New file.
52432         * doc/glibc-headers/fstab.texi: New file.
52433         * doc/glibc-headers/fts.texi: New file.
52434         * doc/glibc-headers/getopt.texi: New file.
52435         * doc/glibc-headers/ieee754.texi: New file.
52436         * doc/glibc-headers/ifaddrs.texi: New file.
52437         * doc/glibc-headers/libintl.texi: New file.
52438         * doc/glibc-headers/mcheck.texi: New file.
52439         * doc/glibc-headers/mntent.texi: New file.
52440         * doc/glibc-headers/obstack.texi: New file.
52441         * doc/glibc-headers/paths.texi: New file.
52442         * doc/glibc-headers/printf.texi: New file.
52443         * doc/glibc-headers/pty.texi: New file.
52444         * doc/glibc-headers/resolv.texi: New file.
52445         * doc/glibc-headers/shadow.texi: New file.
52446         * doc/glibc-headers/sysexits.texi: New file.
52447         * doc/glibc-headers/ttyent.texi: New file.
52448
52449 2008-01-12  Jim Meyering  <meyering@redhat.com>
52450
52451         announce-gen: emit Gnulib's git-based version string.
52452         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
52453         New option --gnulib-version=V, where V is expected to be
52454         the output of running git describe in the gnulib directory.
52455         (get_tool_versions): Request feedback on xdelta.  I suspect it's
52456         not useful, and plan to stop publishing an xdelta file with each
52457         coreutils release.
52458
52459         * build-aux/announce-gen: Also check for lzma-compressed files.
52460
52461 2008-01-11  Bruno Haible  <bruno@clisp.org>
52462
52463         * tests/test-memmem.c (main): Increase maximum allowed time.
52464         * tests/test-strstr.c (main): Likewise.
52465
52466 2008-01-11  Bruno Haible  <bruno@clisp.org>
52467
52468         * doc/functions/memmem.texi: Add more precisions about platforms.
52469         * doc/functions/strstr.texi: Likewise.
52470
52471 2008-01-10  Eric Blake  <ebb9@byu.net>
52472
52473         * m4/strstr.m4: Delete cruft from copy-n-paste.
52474         Reported by Bruno Haible.
52475
52476 2008-01-10  Bruno Haible  <bruno@clisp.org>
52477
52478         Make c-strstr rely on strstr.
52479         * lib/c-strstr.c: Don't include str-kmp.h.
52480         (c_strstr): Define in terms of strstr.
52481         * modules/c-strstr (Files): Remove lib/str-kmp.h.
52482         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
52483
52484 2008-01-10  Bruno Haible  <bruno@clisp.org>
52485
52486         * doc/gnulib.texi (String Functions in C Locale): New section.
52487         * doc/c-ctype.texi: New file.
52488         * doc/c-strcase.texi: New file.
52489         * doc/c-strcaseeq.texi: New file.
52490         * doc/c-strcasestr.texi: New file.
52491         * doc/c-strstr.texi: New file.
52492         * doc/c-strtod.texi: New file.
52493         * doc/c-strtold.texi: New file.
52494
52495 2008-01-10  Eric Blake  <ebb9@byu.net>
52496
52497         * lib/relocatable.h: Fix a comment.
52498
52499 2008-01-10  Eric Blake  <ebb9@byu.net>
52500
52501         Share two-way algorithm.
52502         * lib/str-two-way.h: New file, merged from...
52503         * lib/memmem.c: ...here...
52504         * lib/strstr.c: ...and here.
52505         * modules/memmem (Files): Use it.
52506         * modules/strstr (Files): Likewise.
52507
52508         Avoid quadratic strstr implementations.
52509         * lib/strstr.c: New file.
52510         * m4/strstr.m4: Likewise.
52511         * modules/strstr: Likewise.
52512         * modules/strstr-tests: Likewise.
52513         * tests/test-strstr.c: Likewise.
52514         * lib/string.in.h (rpl_strstr): Declare.
52515         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
52516         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
52517         * modules/string (Makefile.am): Likewise.
52518         * MODULES.html.sh (string handling): Mention new module.
52519         * doc/functions/strstr.texi (strstr): Document the bug.
52520
52521 2008-01-10  Bruno Haible  <bruno@clisp.org>
52522
52523         * lib/relocatable.h (relocate): State whether result is freshly
52524         allocated or not.
52525         * lib/relocatable.c (relocate): Return a freshly allocated string
52526         instead of a pointer to a privately held string.
52527         Reported by Sylvain Beucler <beuc@gnu.org>.
52528
52529 2008-01-10  Colin Watson  <cjwatson@debian.org>
52530
52531         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
52532         s/S_ISNLK/S_ISLNK/.
52533
52534 2008-01-09  Bruno Haible  <bruno@clisp.org>
52535
52536         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
52537         and other files.
52538         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
52539         if it's only a guess.
52540         * modules/memmem: Simplify by depending on memmem-simple.
52541
52542 2008-01-09  Bruno Haible  <bruno@clisp.org>
52543
52544         Work around OpenBSD 4.0 tdelete() bug.
52545         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
52546         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
52547         macros and don't redefine the enum values.
52548         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
52549         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
52550         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
52551
52552 2008-01-09  Bruno Haible  <bruno@clisp.org>
52553
52554         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
52555         (main): Don't perform the tests if setlocale did not install a UTF-8
52556         locale. Needed on OpenBSD 4.0.
52557         * modules/wcwidth-tests (Depends-on): Add localcharset.
52558
52559 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
52560
52561         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
52562         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
52563         * NEWS: announce this.
52564         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
52565
52566 2008-01-09  Simon Josefsson  <simon@josefsson.org>
52567         and Eric Blake  <ebb9@byu.net>
52568
52569         Add memmem-simple module.
52570         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
52571         (gl_FUNC_MEMMEM): Separate performance from presence checks.
52572         * modules/memmem-simple: New file.
52573         * modules/memmem (Description): Tweak.
52574         * MODULES.html.sh (string handling): Mention new module.
52575         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
52576         addressed by memmem-simple.
52577         * NEWS: Document the difference.
52578
52579 2008-01-09  Eric Blake  <ebb9@byu.net>
52580
52581         Give gcc some memmem optimization hints.
52582         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
52583         (strcasestr): Declare as pure.
52584         * modules/memmem (Maintainer): Claim my implementation.
52585
52586 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52587
52588         Support AIX 6.1 and higher.
52589         * build-aux/config.libpath: Likewise.
52590         * build-aux/config.rpath: Likewise.
52591
52592 2008-01-08  Jim Meyering  <meyering@redhat.com>
52593             Bruno Haible  <bruno@clisp.org>
52594
52595         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
52596         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
52597         Reported by Peter Fales in
52598         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
52599
52600 2008-01-08  Bruno Haible  <bruno@clisp.org>
52601
52602         * modules/unictype/category-of (Depends-on): Add
52603         unictype/category-none.
52604         * modules/unictype/category-and-tests (Depends-on): Add
52605         unictype/category-{L,N,Lu,Nd}.
52606         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
52607         * modules/unictype/category-or-tests (Depends-on): Add
52608         unictype/category-{L,N}.
52609         * modules/unictype/category-name-tests (Depends-on): Add
52610         unictype/category-{Z,Nl}.
52611         Reported by Simon Josefsson.
52612
52613 2008-01-08  Bruno Haible  <bruno@clisp.org>
52614
52615         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
52616         convention better.
52617         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
52618         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
52619         Reported by Peter Miller <millerp@canb.auug.org.au>.
52620
52621 2008-01-08  Eric Blake  <ebb9@byu.net>
52622
52623         Rewrite memmem to guarantee linear complexity without malloc.
52624         * lib/memmem.c (memmem): Use Two-Way rather than
52625         Knuth-Morris-Pratt, to allow O(1) space usage.
52626         (critical_factorization, two_way_short_needle)
52627         (two_way_long_needle): New functions.
52628         (knuth_morris_pratt): Delete.
52629         * modules/memmem (Depends-on): No longer need malloca or stdbool.
52630         Add stdint.
52631         * tests/test-memmem.c (main): Add tests for periodic needle and
52632         sublinear performance.
52633         * doc/functions/memmem.texi (memmem): Document other deficiencies
52634         in cygwin and older glibc.
52635
52636 2008-01-08  Bruno Haible  <bruno@clisp.org>
52637
52638         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
52639         augmentation.
52640
52641 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
52642
52643         Add a configure time option: --disable-acl.
52644         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
52645         AC_ARG_ENABLE(acl).
52646
52647 2008-01-06  Simon Josefsson  <simon@josefsson.org>
52648
52649         * tests/test-localename.c: Don't include obsolete "setenv.h".
52650
52651         * modules/localename-tests (Depends-on): Need unsetenv.
52652
52653 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52654
52655         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
52656
52657 2008-01-06  Colin Watson  <cjwatson@debian.org>
52658
52659         * users.txt: Add man-db.
52660
52661 2008-01-07  Bruno Haible  <bruno@clisp.org>
52662
52663         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
52664         previous section name.
52665
52666 2008-01-07  Bruno Haible  <bruno@clisp.org>
52667
52668         * lib/progname.c (set_program_name): Don't strip off a leading
52669         "lt-" prefix outside a .libs directory.
52670         Suggested by Paul Eggert.
52671
52672 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
52673             Bruno Haible  <bruno@clisp.org>
52674
52675         Improve memory cleanup in 'relocatable' module.
52676         * lib/relocatable.h (compute_curr_prefix): Change return type to
52677         'char *'.
52678         * lib/relocatable.c (compute_curr_prefix): Change return type to
52679         'char *'. Free curr_installdir after use.
52680         (relocate): Free curr_prefix_better after use.
52681         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
52682
52683 2008-01-01  Bruno Haible  <bruno@clisp.org>
52684
52685         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
52686         failure on older glibc systems.
52687         Reported by Peter Fales <psfales@alcatel-lucent.com>.
52688
52689 2008-01-05  Eric Blake  <ebb9@byu.net>
52690
52691         Avoid quadratic system memmem.
52692         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
52693         Reported by Ralf Wildenhues.
52694
52695         Fix memmem test for mingw.
52696         * modules/memmem-tests (configure.ac): Check for alarm.
52697         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
52698         it.
52699         * doc/functions/memmem.texi: New file.
52700         * doc/gnulib.texi (Function Substitutes): Add memmem.
52701         Reported by Bruno Haible.
52702
52703 2008-01-04  Bruno Haible  <bruno@clisp.org>
52704
52705         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
52706         Require gl_HEADER_STRINGS_H_DEFAULTS, not
52707         gl_HEADER_STRING_H_DEFAULTS.
52708
52709 2008-01-04  Eric Blake  <ebb9@byu.net>
52710
52711         Shorten duration of memmem test.
52712         * tests/test-memmem.c (main): Use alarm to declare failure if test
52713         is taking too long.
52714         Reported by Ralf Wildenhues.
52715
52716 2007-12-21  Simon Josefsson  <simon@josefsson.org>
52717
52718         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
52719         string, needed by strerror.
52720
52721 2008-01-03  Colin Watson  <cjwatson@debian.org>
52722             Bruno Haible  <bruno@clisp.org>
52723
52724         * doc/gnulib-tool.texi (Localization): New section.
52725
52726 2008-01-02  Bruno Haible  <bruno@clisp.org>
52727
52728         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
52729         variables to 'unsigned char *' type.
52730         Reported by Paul Eggert.
52731
52732 2008-01-02  Jim Meyering  <jim@meyering.net>
52733
52734         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
52735
52736 2007-12-31  Jim Meyering  <jim@meyering.net>
52737
52738         Avoid use of private FTS type name.
52739         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
52740
52741 2007-12-30  Karl Berry  <karl@gnu.org>
52742
52743         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
52744         work around defect in Texinfo and/or the standalone Info browser.
52745
52746 2007-12-30  Bruno Haible  <bruno@clisp.org>
52747
52748         Unify 5 copies of the KMP code.
52749         * lib/str-kmp.h: New file.
52750         * lib/c-strcasestr.c: Include str-kmp.h.
52751         (knuth_morris_pratt): Remove function.
52752         (c_strcasestr): Update.
52753         * lib/c-strstr.c: Include str-kmp.h.
52754         (knuth_morris_pratt): Remove function.
52755         (c_strcasestr): Update.
52756         * lib/mbscasestr.c: Include str-kmp.h.
52757         (knuth_morris_pratt_unibyte): Remove function.
52758         * lib/mbsstr.c: Include str-kmp.h.
52759         (knuth_morris_pratt_unibyte): Remove function.
52760         * lib/strcasestr.c: Include str-kmp.h.
52761         (knuth_morris_pratt): Remove function.
52762         (strcasestr): Update.
52763         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
52764         * modules/c-strstr (Files): Likewise.
52765         * modules/mbscasestr (Files): Likewise.
52766         * modules/mbsstr (Files): Likewise.
52767         * modules/strcasestr (Files): Likewise.
52768         Suggested by Paul Eggert.
52769
52770 2007-12-30  Bruno Haible  <bruno@clisp.org>
52771
52772         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
52773         defined.
52774
52775 2007-12-30  Bruno Haible  <bruno@clisp.org>
52776
52777         * lib/xmalloca.h: Include xalloc.h.
52778         (xnmalloca): New macro.
52779
52780 2007-12-30  Bruno Haible  <bruno@clisp.org>
52781
52782         * lib/malloca.h (nmalloca): New macro.
52783         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
52784         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
52785         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
52786         knuth_morris_pratt_multibyte): Likewise.
52787         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
52788         knuth_morris_pratt_multibyte): Likewise.
52789         * lib/memmem.c (knuth_morris_pratt): Likewise.
52790         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
52791
52792 2007-12-25  Bruno Haible  <bruno@clisp.org>
52793
52794         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
52795         * lib/glob.c: Don't include openat.h.
52796         (link_exists2_p): Add back the code that deals with the
52797         !GLOB_ALTDIRFUNC case.
52798         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
52799         let it do the filename concatenation.
52800         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
52801         * modules/glob (Depends-on): Remove openat.
52802
52803 2007-12-31  Bruno Haible  <bruno@clisp.org>
52804
52805         * modules/dirfd (License): Change to LGPLv2+.
52806         Approved by Jim Meyering.
52807
52808 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
52809
52810         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
52811         when multiplying M by sizeof (size_t).
52812
52813 2007-12-10  Martin Lambers  <marlam@marlam.de>
52814
52815         Override getpagesize on mingw.
52816         * lib/getpagesize.c: New file.
52817         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
52818         * modules/getpagesize (Files): Add lib/getpagesize.c.
52819         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
52820         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
52821         REPLACE_GETPAGESIZE.
52822         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
52823
52824 2007-12-25  Bruno Haible  <bruno@clisp.org>
52825
52826         * modules/localcharset (Notice): New field.
52827         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
52828         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
52829
52830 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
52831             Bruno Haible  <bruno@clisp.org>
52832
52833         Avoid using the syntax symbol() in formatted documentation.
52834         * MODULES.html.sh (func_module): When replacing symbol() with a
52835         hyperlink, remove the parentheses. Show an error if some remain.
52836         Recognize and render the '...' syntax.
52837         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
52838         Rework. Add paragraph about GCC's inlining.
52839         * doc/alloca.texi: Likewise.
52840         * doc/error.texi: Remove parentheses from symbol reference.
52841         * doc/gnulib-intro.texi: Likewise.
52842         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
52843         * modules/fnmatch (Description): Reword to say "the ... function".
52844         * modules/full-read (Description): Likewise.
52845         * modules/full-write (Description): Likewise.
52846         * modules/safe-read (Description): Likewise.
52847         * modules/safe-write (Description): Likewise.
52848         * modules/strchrnul (Description): Likewise.
52849         * modules/trim (Description): Likewise.
52850         * modules/error (Description): Remove parentheses from symbol
52851         references.
52852         * modules/verror (Description): Likewise.
52853         Reported by Karl Berry.
52854
52855 2007-12-25  Bruno Haible  <bruno@clisp.org>
52856
52857         Fixup after 2007-10-16 commit.
52858         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
52859
52860 2007-12-24  Bruno Haible  <bruno@clisp.org>
52861
52862         Make --enable-relocatable work with DESTDIR.
52863         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
52864         to compute installdir from destprog.
52865         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
52866         also set the RELOC_DESTDIR variable.
52867         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
52868
52869 2007-12-24  Bruno Haible  <bruno@clisp.org>
52870
52871         Fix link error due to xalloc_die().
52872         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
52873         of xreadlink.
52874         * lib/relocwrapper.c: Update comments.
52875         * build-aux/install-reloc: Remove xreadlink.c from file list.
52876         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
52877         xreadlink.c.
52878         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
52879
52880 2007-12-24  Bruno Haible  <bruno@clisp.org>
52881
52882         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
52883         * lib/setenv.h: Remove file.
52884         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
52885         lib/setenv.h.
52886         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
52887         (Depends-on): Add stdlib.
52888         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
52889         gl_FUNC_UNSETENV.
52890         (Include): Replace setenv.h with <stdlib.h>.
52891         * modules/unsetenv: New file.
52892         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
52893         * lib/unsetenv.c: Include <stdlib.h> first.
52894         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
52895         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
52896         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
52897         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
52898         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
52899         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
52900         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
52901         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
52902         * doc/functions/unsetenv.texi: Update.
52903         * modules/xsetenv (Depends-on): Add unsetenv.
52904         * modules/getdate (Depends-on): Likewise.
52905         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
52906         * lib/xsetenv.c: Don't include setenv.h.
52907         * lib/getdate.y: Likewise.
52908         * lib/relocwrapper.c: Likewise.
52909         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
52910         (Depends-on): Add stdlib.
52911         * NEWS: Mention the changes.
52912         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
52913
52914 2007-12-23  Bruno Haible  <bruno@clisp.org>
52915
52916         * lib/memmem.c (memmem): Use lowercase variable names. Tab
52917         indentation.
52918
52919 2007-12-23  Bruno Haible  <bruno@clisp.org>
52920
52921         * lib/c-strcasestr.c: Add more comments.
52922         * lib/c-strstr.c: Likewise.
52923         * lib/mbscasestr.c: Likewise.
52924         * lib/mbsstr.c: Likewise.
52925         * lib/strcasestr.c: Likewise.
52926         * lib/memmem.c: Likewise.
52927
52928 2007-12-23  Bruno Haible  <bruno@clisp.org>
52929
52930         * tests/test-memmem.c: Include <string.h> first.
52931
52932 2007-12-22  Bruno Haible  <bruno@clisp.org>
52933
52934         * gnulib-tool (func_create_testdir): Change $auxdir while generating
52935         the contents of $testsbase.
52936         Reported by Ralf Wildenhues.
52937
52938 2007-12-22  Bruno Haible  <bruno@clisp.org>
52939
52940         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
52941         two variables local_ldadd_before, local_ldadd_last.
52942
52943 2007-12-20  Eric Blake  <ebb9@byu.net>
52944
52945         Work around circular library issue when cross-compiling.
52946         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
52947         that progname.o does not need to pull in rpl_memcmp.
52948
52949 2007-12-19  Eric Blake  <ebb9@byu.net>
52950
52951         Fix memmem to avoid O(n^2) worst-case complexity.
52952         * lib/memmem.c (knuth_morris_pratt): New function.
52953         (memmem): Use it if first few naive iterations fail.
52954         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
52955         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
52956         * modules/memchr (License): Likewise.
52957         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
52958         malloca.
52959         * tests/test-memmem.c: Rewrite, borrowing ideas from
52960         test-mbsstr1.c; the old version wouldn't even compile!
52961         * modules/memmem-tests: New file.
52962         * lib/string.in.h (rpl_memmem): Add declaration.
52963         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
52964         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
52965         REPLACE_MEMMEM.
52966
52967 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
52968
52969         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
52970         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
52971         before any system include files, and undef after them all.  This
52972         should fix a problem on VMS reported by John E. Malmberg in
52973         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
52974
52975 2007-12-17  Eric Blake  <ebb9@byu.net>
52976
52977         Revert addition of verify, for BSD/OS.
52978         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
52979         can't handle large files, for the sake of obsolete platforms.
52980         * modules/fseeko (Depends-on): Remove verify.
52981         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
52982         * doc/functions/ftello.texi (ftello): Likewise.
52983         * doc/functions/fgetpos.texi (fgetpos): Likewise.
52984         Reported by Larry Jones.
52985
52986 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
52987
52988         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
52989         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
52990
52991 2007-12-17  Jim Meyering  <meyering@redhat.com>
52992
52993         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
52994         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
52995         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
52996         * modules/getcwd (Depends-on): Add openat.
52997         Reported by Petr Salinger.
52998
52999 2007-12-17  Bruno Haible  <bruno@clisp.org>
53000
53001         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
53002         avoid a segmentation fault of the configure test on x86_64 systems.
53003
53004 2007-12-15  Jim Meyering  <meyering@redhat.com>
53005
53006         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
53007
53008 2007-12-13  Eric Blake  <ebb9@byu.net>
53009
53010         Another fseek test.
53011         * tests/test-fseek.c (main): Also test ungetc handling.
53012         * tests/test-fseeko.c (main): Likewise.
53013         * modules/fseeko (Depends-on): Add verify.
53014         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
53015         large.
53016         Reported by Larry Jones.
53017
53018         Fix fseeko on mingw.
53019         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
53020         seek.
53021
53022         Beef up fseek tests.
53023         * tests/test-fseek.c (main): Also test eof handling.
53024         * tests/test-fseeko.c (main): Likewise.
53025         Reported by Larry Jones.
53026
53027 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
53028
53029         Fix fseeko on BSD-based platforms.
53030         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
53031         successful seek.
53032
53033 2007-12-12  Eric Blake  <ebb9@byu.net>
53034
53035         Allow circular dependency of separate libtests.a
53036         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
53037         when use_libtests.
53038
53039 2007-12-11  Eric Blake  <ebb9@byu.net>
53040
53041         Fix bug with -0.0L in previous patch.
53042         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
53043         * tests/test-isnan.c (main): Also test on zeroes.
53044         * tests/test-isnanf.c (main): Likewise.
53045         * tests/test-isnanl.h (main): Likewise.
53046
53047         Detect pseudo-denormals on x86 even when cross-compiling.
53048         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
53049         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
53050         invalid bit patterns that happen to satisfy ==.
53051
53052         Avoid link failures with separate libtests.a.
53053         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
53054         last, to satisfy circular dependencies.
53055
53056 2007-12-11  Eric Blake  <ebb9@byu.net>
53057         and Bruno Haible  <bruno@clisp.org>
53058
53059         Fix OpenBSD 4.0 <float.h> handling of long double.
53060         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
53061         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
53062         * doc/headers/float.texi (float.h): Document OpenBSD bug.
53063
53064 2007-12-11  Jim Meyering  <meyering@redhat.com>
53065
53066         * users.txt: Add libvirt.
53067
53068         Support versions of autoconf prior to 2.59c.
53069         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
53070         if it is not already defined.
53071
53072 2007-12-09  Bruno Haible  <bruno@clisp.org>
53073
53074         Let 'gnulib-tool --import' collect sources needed for the tests in
53075         tests/ rather than in lib/.
53076         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
53077         argument. If true, add rules to generate libtests.a, and put libtests.a
53078         into $(LDADD). Consider source files in subdirectories and set
53079         uses_subdirs.
53080         (func_emit_initmacro_start, func_emit_initmacro_end,
53081         func_emit_initmacro_done): Pass all arguments explicitly.
53082         (func_import): Determine two module lists main_modules,
53083         testsrelated_modules. Determine use_libtests. Determine two variables
53084         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
53085         instead of just sed_transform_lib_file. Determine two variables
53086         main_files and testsrelated_files. Compute 'files' as the union of
53087         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
53088         func_add_or_update. In the generated gnulib-comp.m4, collect the
53089         object files for tests/ in different variables than those for lib/.
53090         Substitute LIBTESTS_LIBDEPS.
53091         (func_create_testdir): Combine the uses_subdirs results from
53092         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
53093
53094 2007-12-09  Bruno Haible  <bruno@clisp.org>
53095
53096         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
53097         the build-aux directory.
53098
53099 2007-12-09  Bruno Haible  <bruno@clisp.org>
53100
53101         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
53102         introduced on 2006-09-09.
53103
53104 2007-12-07  Jim Meyering  <meyering@redhat.com>
53105
53106         Let these macros work also with autoconf-2.59.
53107         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
53108         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
53109         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
53110
53111 2007-12-06  Jim Meyering  <meyering@redhat.com>
53112
53113         Avoid a configure-time syntax error in gl_FUNC_ACL.
53114         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
53115         function in each branch, before testing the cache variable.
53116
53117 2007-12-04  Eric Blake  <ebb9@byu.net>
53118
53119         Make scripts executable.
53120         * build-aux/config.guess: Add execute permissions.
53121         * build-aux/config.sub: Likewise.
53122         * build-aux/gendocs.sh: Likewise.
53123
53124         Fix frexp on mingw.
53125         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
53126         cross-compiling.
53127         * doc/functions/frexp.texi (frexp): Document the bug.
53128
53129         Make cygwin fseeko check more reliable.
53130         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
53131         version numbers, rather than unrelated feature check.
53132         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
53133         * doc/functions/ftello.texi (ftello): Likewise.
53134         Reported by Bruno Haible.
53135
53136         * m4/strerror.m4: Bump version number.
53137
53138 2007-12-03  Bruno Haible  <bruno@clisp.org>
53139
53140         * doc/functions/mprotect.texi: Mention the mingw problem.
53141
53142 2007-12-03  Eric Blake  <ebb9@byu.net>
53143
53144         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
53145         REPLACE_STRERROR is initialized before this macro.
53146
53147 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
53148
53149         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
53150         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
53151         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
53152         put -lsec in even for programs other than 'ls'.  This fixes a problem
53153         for gettext reported by Bruno Haible in
53154         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
53155         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
53156         Add support for Solaris 10.  This isn't efficient, but should get the
53157         job done for now.
53158
53159 2007-12-03  James Youngman  <jay@gnu.org>
53160
53161         * doc/regexprops-generic.texi: change "an close-group" to "a
53162         close-group" and "illegal" to "not allowed".
53163
53164 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53165
53166         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
53167         pr_byname.h. Needed for the rare case when the maintainer has done
53168         "make maintainer-clean" in the source directory and then attempts a
53169         build outside the source directory.
53170         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
53171         scripts_byname.h.
53172
53173 2007-12-02  Martin Lambers <marlam@marlam.de>
53174             Bruno Haible  <bruno@clisp.org>
53175
53176         * lib/getpagesize.h: Remove file.
53177         * lib/unistd.in.h: Include declaration of getpagesize here.
53178         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
53179         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
53180         HAVE_SYS_PARAM_H.
53181         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
53182         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
53183         * modules/getpagesize (Files): Remove lib/getpagesize.h.
53184         (Depends-on): Add unistd.
53185         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53186         (Include): Use <unistd.h> instead of getpagesize.h.
53187         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
53188         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
53189         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
53190         gl_GETPAGESIZE invocation, already handled by module dependency.
53191         * lib/pagealign_alloc.c: Don't include getpagesize.h.
53192
53193 2007-12-02  Bruno Haible  <bruno@clisp.org>
53194
53195         * modules/strings-tests: New file.
53196         * tests/test-strings.c: New file.
53197
53198         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
53199         * lib/strings.in.h: New file.
53200         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
53201         * m4/strings_h.m4: New file.
53202         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
53203         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
53204         * modules/strings: New file.
53205         * modules/string (Makefile.am): Update.
53206         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
53207         Reported by Karl Berry.
53208
53209 2007-12-01  Eric Blake  <ebb9@byu.net>
53210
53211         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
53212         accomodate fix in cygwin 1.5.25.
53213
53214 2007-12-01  Jim Meyering  <meyering@redhat.com>
53215
53216         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
53217         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
53218         that would inhibit utf8-optimization of a regexp containing line-
53219         or buffer-anchors, e.g., `^', `$'.
53220
53221 2007-11-30  Bruno Haible  <bruno@clisp.org>
53222
53223         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
53224         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
53225         glthread_recursive_lock_init.
53226         * lib/lock.c (glthread_recursive_lock_init)
53227         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
53228         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
53229
53230 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
53231
53232         New function qset_acl, like set_acl but with syscall semantics.
53233         * lib/acl.h (qset_acl): New decl.
53234         * lib/acl.c (qset_acl): New function.
53235         (set_acl): Use new function.  Use more-consistent diagnostics.
53236
53237 2007-11-28  Jim Meyering  <meyering@redhat.com>
53238
53239         * modules/physmem (License): Change from GPL to LGPLv2+.
53240
53241 2007-11-26  Bruno Haible  <bruno@clisp.org>
53242
53243         * lib/vasnprintf.c (decode_long_double): Don't abort if the
53244         'long double' type has excess precision.
53245         Reported by Jim Meyering in
53246         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
53247
53248 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53249
53250         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
53251         Sync from <http://gnu.org/licenses>.
53252         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
53253         with license text from same location.
53254         * doc/maintain.texi, doc/standards.texi:  Sync from
53255         <http://savannah.gnu.org/projects/gnustandards>.
53256
53257 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
53258         and Jim Meyering  <meyering@redhat.com>
53259
53260         Adjust getdate' grammar to accept a slightly more regular language.
53261         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
53262         Before, the former was rejected.
53263         * lib/getdate.y (digits_to_date_time): New function, factored
53264         out of ...
53265         (number): ...here.  Just call digits_to_date_time.
53266         (hybrid): New non-terminal to handle an <unsigned number,
53267         signed relative offset> sequence consistently.
53268
53269 2007-11-18  Jim Meyering  <meyering@redhat.com>
53270
53271         Pull my changes from coreutils:
53272         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
53273         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
53274         use of $gnulib_tool_option_extras, so that it's separated from the
53275         preceding argument.
53276
53277         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
53278         * build-aux/bootstrap (cp_mark_as_generated): Create any required
53279         parent destination directories before copying a file into place.
53280
53281 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
53282
53283         bootstrap: work also with 4-argument variant of AC_INIT
53284         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
53285
53286 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
53287
53288         Port test-getaddrinfo to Solaris.
53289         Problem reported by Bruno Haible in
53290         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
53291         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
53292         explanation of setting 'hints'.
53293         Don't reject an implementation merely because it returns EAI_SERVICE.
53294         (EAI_SERVICE): Define to 0 if not defined.
53295
53296 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
53297
53298         The license of gnu-make and posix-shell is now "GPLed build tool".
53299         * modules/gnu-make (License): Likewise.
53300         * modules/posix-shell (License): Likewise.
53301
53302         New module posix-shell, for determining a POSIX shell
53303         or perhaps something that is close enough to a POSIX shell.
53304         * m4/posix-shell.m4: New file.
53305         * modules/posix-shell: New file.
53306
53307         * MODULES.html.sh: Mention new module.
53308
53309         New module gnu-make, for determining whether we're using GNU Make.
53310         * m4/gnu-make.m4: New file.
53311         * modules/gnu-make: New file.
53312         * MODULES.html.sh: Mention new module.
53313
53314 2007-11-14  Jim Meyering  <meyering@redhat.com>
53315
53316         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
53317         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
53318         use this macro to create a function _definition_.
53319         Remove useless "#undef ARGMATCH_DIE".
53320
53321 2007-11-14  Bruno Haible  <bruno@clisp.org>
53322
53323         * lib/config.charset: Update for OpenBSD 4.1.
53324         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
53325
53326 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
53327
53328         Document 64-bit #if problems in stdint.texi.
53329         * doc/headers/stdint.texi (stdint.h): Mention problems with
53330         64-bit-#if, and how to work around them.
53331
53332         Don't insist on 'long long int' support in the preprocessor.  It
53333         breaks too many things.  For example, PRIdMAX still uses a 'long
53334         long int' format with the latest Sun compiler, even though
53335         HAVE_LONG_LONG_INT isn't defined due to that compiler's
53336         preprocessor problem.  This causes the latest coreutils to dump
53337         core on Solaris 10 sparc with the Sun C compiler.
53338         Instead, fix the 2007-10-16 problem in a different way, by evaluating
53339         the troublesome expressions at configure-time, not at #if-time.
53340         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
53341         preprocessor.
53342         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
53343         compile-time C checks, done at 'configure'-time.
53344         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
53345         * modules/inttypes (Makefile): Substitute the new symbols that
53346         gl_INTTYPES_H now generates.
53347         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
53348
53349 2007-11-12  Bruno Haible  <bruno@clisp.org>
53350
53351         Tests for Unicode character classification functions.
53352
53353         * modules/unictype/bidicategory-byname-tests: New file.
53354         * modules/unictype/bidicategory-name-tests: New file.
53355         * modules/unictype/bidicategory-of-tests: New file.
53356         * modules/unictype/bidicategory-test-tests: New file.
53357         * modules/unictype/block-list-tests: New file.
53358         * modules/unictype/block-of-tests: New file.
53359         * modules/unictype/block-test-tests: New file.
53360         * modules/unictype/category-C-tests: New file.
53361         * modules/unictype/category-Cc-tests: New file.
53362         * modules/unictype/category-Cf-tests: New file.
53363         * modules/unictype/category-Cn-tests: New file.
53364         * modules/unictype/category-Co-tests: New file.
53365         * modules/unictype/category-Cs-tests: New file.
53366         * modules/unictype/category-L-tests: New file.
53367         * modules/unictype/category-Ll-tests: New file.
53368         * modules/unictype/category-Lm-tests: New file.
53369         * modules/unictype/category-Lo-tests: New file.
53370         * modules/unictype/category-Lt-tests: New file.
53371         * modules/unictype/category-Lu-tests: New file.
53372         * modules/unictype/category-M-tests: New file.
53373         * modules/unictype/category-Mc-tests: New file.
53374         * modules/unictype/category-Me-tests: New file.
53375         * modules/unictype/category-Mn-tests: New file.
53376         * modules/unictype/category-N-tests: New file.
53377         * modules/unictype/category-Nd-tests: New file.
53378         * modules/unictype/category-Nl-tests: New file.
53379         * modules/unictype/category-No-tests: New file.
53380         * modules/unictype/category-P-tests: New file.
53381         * modules/unictype/category-Pc-tests: New file.
53382         * modules/unictype/category-Pd-tests: New file.
53383         * modules/unictype/category-Pe-tests: New file.
53384         * modules/unictype/category-Pf-tests: New file.
53385         * modules/unictype/category-Pi-tests: New file.
53386         * modules/unictype/category-Po-tests: New file.
53387         * modules/unictype/category-Ps-tests: New file.
53388         * modules/unictype/category-S-tests: New file.
53389         * modules/unictype/category-Sc-tests: New file.
53390         * modules/unictype/category-Sk-tests: New file.
53391         * modules/unictype/category-Sm-tests: New file.
53392         * modules/unictype/category-So-tests: New file.
53393         * modules/unictype/category-Z-tests: New file.
53394         * modules/unictype/category-Zl-tests: New file.
53395         * modules/unictype/category-Zp-tests: New file.
53396         * modules/unictype/category-Zs-tests: New file.
53397         * modules/unictype/category-and-not-tests: New file.
53398         * modules/unictype/category-and-tests: New file.
53399         * modules/unictype/category-byname-tests: New file.
53400         * modules/unictype/category-name-tests: New file.
53401         * modules/unictype/category-none-tests: New file.
53402         * modules/unictype/category-of-tests: New file.
53403         * modules/unictype/category-or-tests: New file.
53404         * modules/unictype/category-test-withtable-tests: New file.
53405         * modules/unictype/combining-class-tests: New file.
53406         * modules/unictype/ctype-alnum-tests: New file.
53407         * modules/unictype/ctype-alpha-tests: New file.
53408         * modules/unictype/ctype-blank-tests: New file.
53409         * modules/unictype/ctype-cntrl-tests: New file.
53410         * modules/unictype/ctype-digit-tests: New file.
53411         * modules/unictype/ctype-graph-tests: New file.
53412         * modules/unictype/ctype-lower-tests: New file.
53413         * modules/unictype/ctype-print-tests: New file.
53414         * modules/unictype/ctype-punct-tests: New file.
53415         * modules/unictype/ctype-space-tests: New file.
53416         * modules/unictype/ctype-upper-tests: New file.
53417         * modules/unictype/ctype-xdigit-tests: New file.
53418         * modules/unictype/decimal-digit-tests: New file.
53419         * modules/unictype/digit-tests: New file.
53420         * modules/unictype/mirror-tests: New file.
53421         * modules/unictype/numeric-tests: New file.
53422         * modules/unictype/property-alphabetic-tests: New file.
53423         * modules/unictype/property-ascii-hex-digit-tests: New file.
53424         * modules/unictype/property-bidi-arabic-digit-tests: New file.
53425         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
53426         * modules/unictype/property-bidi-block-separator-tests: New file.
53427         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
53428         * modules/unictype/property-bidi-common-separator-tests: New file.
53429         * modules/unictype/property-bidi-control-tests: New file.
53430         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
53431         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
53432         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
53433         * modules/unictype/property-bidi-european-digit-tests: New file.
53434         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
53435         * modules/unictype/property-bidi-left-to-right-tests: New file.
53436         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
53437         * modules/unictype/property-bidi-other-neutral-tests: New file.
53438         * modules/unictype/property-bidi-pdf-tests: New file.
53439         * modules/unictype/property-bidi-segment-separator-tests: New file.
53440         * modules/unictype/property-bidi-whitespace-tests: New file.
53441         * modules/unictype/property-byname-tests: New file.
53442         * modules/unictype/property-combining-tests: New file.
53443         * modules/unictype/property-composite-tests: New file.
53444         * modules/unictype/property-currency-symbol-tests: New file.
53445         * modules/unictype/property-dash-tests: New file.
53446         * modules/unictype/property-decimal-digit-tests: New file.
53447         * modules/unictype/property-default-ignorable-code-point-tests: New file.
53448         * modules/unictype/property-deprecated-tests: New file.
53449         * modules/unictype/property-diacritic-tests: New file.
53450         * modules/unictype/property-extender-tests: New file.
53451         * modules/unictype/property-format-control-tests: New file.
53452         * modules/unictype/property-grapheme-base-tests: New file.
53453         * modules/unictype/property-grapheme-extend-tests: New file.
53454         * modules/unictype/property-grapheme-link-tests: New file.
53455         * modules/unictype/property-hex-digit-tests: New file.
53456         * modules/unictype/property-hyphen-tests: New file.
53457         * modules/unictype/property-id-continue-tests: New file.
53458         * modules/unictype/property-id-start-tests: New file.
53459         * modules/unictype/property-ideographic-tests: New file.
53460         * modules/unictype/property-ids-binary-operator-tests: New file.
53461         * modules/unictype/property-ids-trinary-operator-tests: New file.
53462         * modules/unictype/property-ignorable-control-tests: New file.
53463         * modules/unictype/property-iso-control-tests: New file.
53464         * modules/unictype/property-join-control-tests: New file.
53465         * modules/unictype/property-left-of-pair-tests: New file.
53466         * modules/unictype/property-line-separator-tests: New file.
53467         * modules/unictype/property-logical-order-exception-tests: New file.
53468         * modules/unictype/property-lowercase-tests: New file.
53469         * modules/unictype/property-math-tests: New file.
53470         * modules/unictype/property-non-break-tests: New file.
53471         * modules/unictype/property-not-a-character-tests: New file.
53472         * modules/unictype/property-numeric-tests: New file.
53473         * modules/unictype/property-other-alphabetic-tests: New file.
53474         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
53475         * modules/unictype/property-other-grapheme-extend-tests: New file.
53476         * modules/unictype/property-other-id-continue-tests: New file.
53477         * modules/unictype/property-other-id-start-tests: New file.
53478         * modules/unictype/property-other-lowercase-tests: New file.
53479         * modules/unictype/property-other-math-tests: New file.
53480         * modules/unictype/property-other-uppercase-tests: New file.
53481         * modules/unictype/property-paired-punctuation-tests: New file.
53482         * modules/unictype/property-paragraph-separator-tests: New file.
53483         * modules/unictype/property-pattern-syntax-tests: New file.
53484         * modules/unictype/property-pattern-white-space-tests: New file.
53485         * modules/unictype/property-private-use-tests: New file.
53486         * modules/unictype/property-punctuation-tests: New file.
53487         * modules/unictype/property-quotation-mark-tests: New file.
53488         * modules/unictype/property-radical-tests: New file.
53489         * modules/unictype/property-sentence-terminal-tests: New file.
53490         * modules/unictype/property-soft-dotted-tests: New file.
53491         * modules/unictype/property-space-tests: New file.
53492         * modules/unictype/property-terminal-punctuation-tests: New file.
53493         * modules/unictype/property-test-tests: New file.
53494         * modules/unictype/property-titlecase-tests: New file.
53495         * modules/unictype/property-unassigned-code-value-tests: New file.
53496         * modules/unictype/property-unified-ideograph-tests: New file.
53497         * modules/unictype/property-uppercase-tests: New file.
53498         * modules/unictype/property-variation-selector-tests: New file.
53499         * modules/unictype/property-white-space-tests: New file.
53500         * modules/unictype/property-xid-continue-tests: New file.
53501         * modules/unictype/property-xid-start-tests: New file.
53502         * modules/unictype/property-zero-width-tests: New file.
53503         * modules/unictype/scripts-tests: New file.
53504         * modules/unictype/syntax-c-ident-tests: New file.
53505         * modules/unictype/syntax-c-whitespace-tests: New file.
53506         * modules/unictype/syntax-java-ident-tests: New file.
53507         * modules/unictype/syntax-java-whitespace-tests: New file.
53508         * tests/unictype/test-bidi_byname.c: New file.
53509         * tests/unictype/test-bidi_name.c: New file.
53510         * tests/unictype/test-bidi_of.c: New file.
53511         * tests/unictype/test-bidi_test.c: New file.
53512         * tests/unictype/test-block_list.c: New file.
53513         * tests/unictype/test-block_of.c: New file.
53514         * tests/unictype/test-block_test.c: New file.
53515         * tests/unictype/test-categ_and.c: New file.
53516         * tests/unictype/test-categ_and_not.c: New file.
53517         * tests/unictype/test-categ_byname.c: New file.
53518         * tests/unictype/test-categ_name.c: New file.
53519         * tests/unictype/test-categ_none.c: New file.
53520         * tests/unictype/test-categ_of.c: New file.
53521         * tests/unictype/test-categ_or.c: New file.
53522         * tests/unictype/test-categ_test_withtable.c: New file.
53523         * tests/unictype/test-combining.c: New file.
53524         * tests/unictype/test-decdigit.c: New file.
53525         * tests/unictype/test-digit.c: New file.
53526         * tests/unictype/test-mirror.c: New file.
53527         * tests/unictype/test-numeric.c: New file.
53528         * tests/unictype/test-pr_byname.c: New file.
53529         * tests/unictype/test-pr_test.c: New file.
53530         * tests/unictype/test-predicate-part1.h: New file.
53531         * tests/unictype/test-predicate-part2.h: New file.
53532         * tests/unictype/test-scripts.c: New file.
53533         * tests/unictype/test-sy_c_ident.c: New file.
53534         * tests/unictype/test-sy_java_ident.c: New file.
53535
53536         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
53537         for Unicode 5.0.0.
53538         * tests/unictype/test-categ_Cc.c: Likewise.
53539         * tests/unictype/test-categ_Cf.c: Likewise.
53540         * tests/unictype/test-categ_Cn.c: Likewise.
53541         * tests/unictype/test-categ_Co.c: Likewise.
53542         * tests/unictype/test-categ_Cs.c: Likewise.
53543         * tests/unictype/test-categ_L.c: Likewise.
53544         * tests/unictype/test-categ_Ll.c: Likewise.
53545         * tests/unictype/test-categ_Lm.c: Likewise.
53546         * tests/unictype/test-categ_Lo.c: Likewise.
53547         * tests/unictype/test-categ_Lt.c: Likewise.
53548         * tests/unictype/test-categ_Lu.c: Likewise.
53549         * tests/unictype/test-categ_M.c: Likewise.
53550         * tests/unictype/test-categ_Mc.c: Likewise.
53551         * tests/unictype/test-categ_Me.c: Likewise.
53552         * tests/unictype/test-categ_Mn.c: Likewise.
53553         * tests/unictype/test-categ_N.c: Likewise.
53554         * tests/unictype/test-categ_Nd.c: Likewise.
53555         * tests/unictype/test-categ_Nl.c: Likewise.
53556         * tests/unictype/test-categ_No.c: Likewise.
53557         * tests/unictype/test-categ_P.c: Likewise.
53558         * tests/unictype/test-categ_Pc.c: Likewise.
53559         * tests/unictype/test-categ_Pd.c: Likewise.
53560         * tests/unictype/test-categ_Pe.c: Likewise.
53561         * tests/unictype/test-categ_Pf.c: Likewise.
53562         * tests/unictype/test-categ_Pi.c: Likewise.
53563         * tests/unictype/test-categ_Po.c: Likewise.
53564         * tests/unictype/test-categ_Ps.c: Likewise.
53565         * tests/unictype/test-categ_S.c: Likewise.
53566         * tests/unictype/test-categ_Sc.c: Likewise.
53567         * tests/unictype/test-categ_Sk.c: Likewise.
53568         * tests/unictype/test-categ_Sm.c: Likewise.
53569         * tests/unictype/test-categ_So.c: Likewise.
53570         * tests/unictype/test-categ_Z.c: Likewise.
53571         * tests/unictype/test-categ_Zl.c: Likewise.
53572         * tests/unictype/test-categ_Zp.c: Likewise.
53573         * tests/unictype/test-categ_Zs.c: Likewise.
53574         * tests/unictype/test-ctype_alnum.c: Likewise.
53575         * tests/unictype/test-ctype_alpha.c: Likewise.
53576         * tests/unictype/test-ctype_blank.c: Likewise.
53577         * tests/unictype/test-ctype_cntrl.c: Likewise.
53578         * tests/unictype/test-ctype_digit.c: Likewise.
53579         * tests/unictype/test-ctype_graph.c: Likewise.
53580         * tests/unictype/test-ctype_lower.c: Likewise.
53581         * tests/unictype/test-ctype_print.c: Likewise.
53582         * tests/unictype/test-ctype_punct.c: Likewise.
53583         * tests/unictype/test-ctype_space.c: Likewise.
53584         * tests/unictype/test-ctype_upper.c: Likewise.
53585         * tests/unictype/test-ctype_xdigit.c: Likewise.
53586         * tests/unictype/test-decdigit.h: Likewise.
53587         * tests/unictype/test-digit.h: Likewise.
53588         * tests/unictype/test-numeric.h: Likewise.
53589         * tests/unictype/test-pr_alphabetic.c: Likewise.
53590         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
53591         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
53592         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
53593         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
53594         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
53595         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
53596         * tests/unictype/test-pr_bidi_control.c: Likewise.
53597         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
53598         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
53599         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
53600         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
53601         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
53602         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
53603         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
53604         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
53605         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
53606         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
53607         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
53608         * tests/unictype/test-pr_combining.c: Likewise.
53609         * tests/unictype/test-pr_composite.c: Likewise.
53610         * tests/unictype/test-pr_currency_symbol.c: Likewise.
53611         * tests/unictype/test-pr_dash.c: Likewise.
53612         * tests/unictype/test-pr_decimal_digit.c: Likewise.
53613         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
53614         * tests/unictype/test-pr_deprecated.c: Likewise.
53615         * tests/unictype/test-pr_diacritic.c: Likewise.
53616         * tests/unictype/test-pr_extender.c: Likewise.
53617         * tests/unictype/test-pr_format_control.c: Likewise.
53618         * tests/unictype/test-pr_grapheme_base.c: Likewise.
53619         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
53620         * tests/unictype/test-pr_grapheme_link.c: Likewise.
53621         * tests/unictype/test-pr_hex_digit.c: Likewise.
53622         * tests/unictype/test-pr_hyphen.c: Likewise.
53623         * tests/unictype/test-pr_id_continue.c: Likewise.
53624         * tests/unictype/test-pr_id_start.c: Likewise.
53625         * tests/unictype/test-pr_ideographic.c: Likewise.
53626         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
53627         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
53628         * tests/unictype/test-pr_ignorable_control.c: Likewise.
53629         * tests/unictype/test-pr_iso_control.c: Likewise.
53630         * tests/unictype/test-pr_join_control.c: Likewise.
53631         * tests/unictype/test-pr_left_of_pair.c: Likewise.
53632         * tests/unictype/test-pr_line_separator.c: Likewise.
53633         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
53634         * tests/unictype/test-pr_lowercase.c: Likewise.
53635         * tests/unictype/test-pr_math.c: Likewise.
53636         * tests/unictype/test-pr_non_break.c: Likewise.
53637         * tests/unictype/test-pr_not_a_character.c: Likewise.
53638         * tests/unictype/test-pr_numeric.c: Likewise.
53639         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
53640         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
53641         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
53642         * tests/unictype/test-pr_other_id_continue.c: Likewise.
53643         * tests/unictype/test-pr_other_id_start.c: Likewise.
53644         * tests/unictype/test-pr_other_lowercase.c: Likewise.
53645         * tests/unictype/test-pr_other_math.c: Likewise.
53646         * tests/unictype/test-pr_other_uppercase.c: Likewise.
53647         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
53648         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
53649         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
53650         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
53651         * tests/unictype/test-pr_private_use.c: Likewise.
53652         * tests/unictype/test-pr_punctuation.c: Likewise.
53653         * tests/unictype/test-pr_quotation_mark.c: Likewise.
53654         * tests/unictype/test-pr_radical.c: Likewise.
53655         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
53656         * tests/unictype/test-pr_soft_dotted.c: Likewise.
53657         * tests/unictype/test-pr_space.c: Likewise.
53658         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
53659         * tests/unictype/test-pr_titlecase.c: Likewise.
53660         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
53661         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
53662         * tests/unictype/test-pr_uppercase.c: Likewise.
53663         * tests/unictype/test-pr_variation_selector.c: Likewise.
53664         * tests/unictype/test-pr_white_space.c: Likewise.
53665         * tests/unictype/test-pr_xid_continue.c: Likewise.
53666         * tests/unictype/test-pr_xid_start.c: Likewise.
53667         * tests/unictype/test-pr_zero_width.c: Likewise.
53668         * tests/unictype/test-sy_c_whitespace.c: Likewise.
53669         * tests/unictype/test-sy_java_whitespace.c: Likewise.
53670
53671 2007-11-12  Bruno Haible  <bruno@clisp.org>
53672
53673         Unicode character classification functions.
53674         * lib/unictype.h: New file.
53675         * modules/unictype/base: New file.
53676         * modules/unictype/category-L: New file.
53677         * modules/unictype/category-Lu: New file.
53678         * modules/unictype/category-Ll: New file.
53679         * modules/unictype/category-Lt: New file.
53680         * modules/unictype/category-Lm: New file.
53681         * modules/unictype/category-Lo: New file.
53682         * modules/unictype/category-M: New file.
53683         * modules/unictype/category-Mn: New file.
53684         * modules/unictype/category-Mc: New file.
53685         * modules/unictype/category-Me: New file.
53686         * modules/unictype/category-N: New file.
53687         * modules/unictype/category-Nd: New file.
53688         * modules/unictype/category-Nl: New file.
53689         * modules/unictype/category-No: New file.
53690         * modules/unictype/category-P: New file.
53691         * modules/unictype/category-Pc: New file.
53692         * modules/unictype/category-Pd: New file.
53693         * modules/unictype/category-Ps: New file.
53694         * modules/unictype/category-Pe: New file.
53695         * modules/unictype/category-Pi: New file.
53696         * modules/unictype/category-Pf: New file.
53697         * modules/unictype/category-Po: New file.
53698         * modules/unictype/category-S: New file.
53699         * modules/unictype/category-Sm: New file.
53700         * modules/unictype/category-Sc: New file.
53701         * modules/unictype/category-Sk: New file.
53702         * modules/unictype/category-So: New file.
53703         * modules/unictype/category-Z: New file.
53704         * modules/unictype/category-Zs: New file.
53705         * modules/unictype/category-Zl: New file.
53706         * modules/unictype/category-Zp: New file.
53707         * modules/unictype/category-C: New file.
53708         * modules/unictype/category-Cc: New file.
53709         * modules/unictype/category-Cf: New file.
53710         * modules/unictype/category-Cs: New file.
53711         * modules/unictype/category-Co: New file.
53712         * modules/unictype/category-Cn: New file.
53713         * modules/unictype/category-or: New file.
53714         * modules/unictype/category-of: New file.
53715         * modules/unictype/category-test: New file.
53716         * modules/unictype/category-test-withtable: New file.
53717         * modules/unictype/category-byname: New file.
53718         * modules/unictype/category-none: New file.
53719         * modules/unictype/category-and: New file.
53720         * modules/unictype/category-and-not: New file.
53721         * modules/unictype/category-name: New file.
53722         * modules/unictype/combining-class: New file.
53723         * modules/unictype/category-all: New file.
53724         * modules/unictype/bidicategory-all: New file.
53725         * modules/unictype/bidicategory-byname: New file.
53726         * modules/unictype/bidicategory-name: New file.
53727         * modules/unictype/bidicategory-of: New file.
53728         * modules/unictype/bidicategory-test: New file.
53729         * modules/unictype/decimal-digit: New file.
53730         * modules/unictype/digit: New file.
53731         * modules/unictype/numeric: New file.
53732         * modules/unictype/mirror: New file.
53733         * modules/unictype/property-white-space: New file.
53734         * modules/unictype/property-alphabetic: New file.
53735         * modules/unictype/property-other-alphabetic: New file.
53736         * modules/unictype/property-not-a-character: New file.
53737         * modules/unictype/property-default-ignorable-code-point: New file.
53738         * modules/unictype/property-other-default-ignorable-code-point: New
53739         file.
53740         * modules/unictype/property-deprecated: New file.
53741         * modules/unictype/property-logical-order-exception: New file.
53742         * modules/unictype/property-variation-selector: New file.
53743         * modules/unictype/property-private-use: New file.
53744         * modules/unictype/property-unassigned-code-value: New file.
53745         * modules/unictype/property-uppercase: New file.
53746         * modules/unictype/property-other-uppercase: New file.
53747         * modules/unictype/property-lowercase: New file.
53748         * modules/unictype/property-other-lowercase: New file.
53749         * modules/unictype/property-titlecase: New file.
53750         * modules/unictype/property-soft-dotted: New file.
53751         * modules/unictype/property-id-start: New file.
53752         * modules/unictype/property-other-id-start: New file.
53753         * modules/unictype/property-id-continue: New file.
53754         * modules/unictype/property-other-id-continue: New file.
53755         * modules/unictype/property-xid-start: New file.
53756         * modules/unictype/property-xid-continue: New file.
53757         * modules/unictype/property-pattern-white-space: New file.
53758         * modules/unictype/property-pattern-syntax: New file.
53759         * modules/unictype/property-join-control: New file.
53760         * modules/unictype/property-grapheme-base: New file.
53761         * modules/unictype/property-grapheme-extend: New file.
53762         * modules/unictype/property-other-grapheme-extend: New file.
53763         * modules/unictype/property-grapheme-link: New file.
53764         * modules/unictype/property-bidi-control: New file.
53765         * modules/unictype/property-bidi-left-to-right: New file.
53766         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
53767         * modules/unictype/property-bidi-arabic-right-to-left: New file.
53768         * modules/unictype/property-bidi-european-digit: New file.
53769         * modules/unictype/property-bidi-eur-num-separator: New file.
53770         * modules/unictype/property-bidi-eur-num-terminator: New file.
53771         * modules/unictype/property-bidi-arabic-digit: New file.
53772         * modules/unictype/property-bidi-common-separator: New file.
53773         * modules/unictype/property-bidi-block-separator: New file.
53774         * modules/unictype/property-bidi-segment-separator: New file.
53775         * modules/unictype/property-bidi-whitespace: New file.
53776         * modules/unictype/property-bidi-non-spacing-mark: New file.
53777         * modules/unictype/property-bidi-boundary-neutral: New file.
53778         * modules/unictype/property-bidi-pdf: New file.
53779         * modules/unictype/property-bidi-embedding-or-override: New file.
53780         * modules/unictype/property-bidi-other-neutral: New file.
53781         * modules/unictype/property-hex-digit: New file.
53782         * modules/unictype/property-ascii-hex-digit: New file.
53783         * modules/unictype/property-ideographic: New file.
53784         * modules/unictype/property-unified-ideograph: New file.
53785         * modules/unictype/property-radical: New file.
53786         * modules/unictype/property-ids-binary-operator: New file.
53787         * modules/unictype/property-ids-trinary-operator: New file.
53788         * modules/unictype/property-zero-width: New file.
53789         * modules/unictype/property-space: New file.
53790         * modules/unictype/property-non-break: New file.
53791         * modules/unictype/property-iso-control: New file.
53792         * modules/unictype/property-format-control: New file.
53793         * modules/unictype/property-dash: New file.
53794         * modules/unictype/property-hyphen: New file.
53795         * modules/unictype/property-punctuation: New file.
53796         * modules/unictype/property-line-separator: New file.
53797         * modules/unictype/property-paragraph-separator: New file.
53798         * modules/unictype/property-quotation-mark: New file.
53799         * modules/unictype/property-sentence-terminal: New file.
53800         * modules/unictype/property-terminal-punctuation: New file.
53801         * modules/unictype/property-currency-symbol: New file.
53802         * modules/unictype/property-math: New file.
53803         * modules/unictype/property-other-math: New file.
53804         * modules/unictype/property-paired-punctuation: New file.
53805         * modules/unictype/property-left-of-pair: New file.
53806         * modules/unictype/property-combining: New file.
53807         * modules/unictype/property-composite: New file.
53808         * modules/unictype/property-decimal-digit: New file.
53809         * modules/unictype/property-numeric: New file.
53810         * modules/unictype/property-diacritic: New file.
53811         * modules/unictype/property-extender: New file.
53812         * modules/unictype/property-ignorable-control: New file.
53813         * modules/unictype/property-test: New file.
53814         * modules/unictype/property-byname: New file.
53815         * modules/unictype/property-all: New file.
53816         * modules/unictype/scripts: New file.
53817         * modules/unictype/scripts-all: New file.
53818         * modules/unictype/block-of: New file.
53819         * modules/unictype/block-test: New file.
53820         * modules/unictype/block-list: New file.
53821         * modules/unictype/block-all: New file.
53822         * modules/unictype/syntax-c-whitespace: New file.
53823         * modules/unictype/syntax-java-whitespace: New file.
53824         * modules/unictype/syntax-c-ident: New file.
53825         * modules/unictype/syntax-java-ident: New file.
53826         * modules/unictype/ctype-alnum: New file.
53827         * modules/unictype/ctype-alpha: New file.
53828         * modules/unictype/ctype-cntrl: New file.
53829         * modules/unictype/ctype-digit: New file.
53830         * modules/unictype/ctype-graph: New file.
53831         * modules/unictype/ctype-lower: New file.
53832         * modules/unictype/ctype-print: New file.
53833         * modules/unictype/ctype-punct: New file.
53834         * modules/unictype/ctype-space: New file.
53835         * modules/unictype/ctype-upper: New file.
53836         * modules/unictype/ctype-xdigit: New file.
53837         * modules/unictype/ctype-blank: New file.
53838         * lib/unictype/bidi_byname.c: New file.
53839         * lib/unictype/bidi_name.c: New file.
53840         * lib/unictype/bidi_of.c: New file.
53841         * lib/unictype/bidi_test.c: New file.
53842         * lib/unictype/bitmap.h: New file.
53843         * lib/unictype/block_test.c: New file.
53844         * lib/unictype/blocks.c: New file.
53845         * lib/unictype/categ_C.c: New file.
53846         * lib/unictype/categ_Cc.c: New file.
53847         * lib/unictype/categ_Cf.c: New file.
53848         * lib/unictype/categ_Cn.c: New file.
53849         * lib/unictype/categ_Co.c: New file.
53850         * lib/unictype/categ_Cs.c: New file.
53851         * lib/unictype/categ_L.c: New file.
53852         * lib/unictype/categ_Ll.c: New file.
53853         * lib/unictype/categ_Lm.c: New file.
53854         * lib/unictype/categ_Lo.c: New file.
53855         * lib/unictype/categ_Lt.c: New file.
53856         * lib/unictype/categ_Lu.c: New file.
53857         * lib/unictype/categ_M.c: New file.
53858         * lib/unictype/categ_Mc.c: New file.
53859         * lib/unictype/categ_Me.c: New file.
53860         * lib/unictype/categ_Mn.c: New file.
53861         * lib/unictype/categ_N.c: New file.
53862         * lib/unictype/categ_Nd.c: New file.
53863         * lib/unictype/categ_Nl.c: New file.
53864         * lib/unictype/categ_No.c: New file.
53865         * lib/unictype/categ_P.c: New file.
53866         * lib/unictype/categ_Pc.c: New file.
53867         * lib/unictype/categ_Pd.c: New file.
53868         * lib/unictype/categ_Pe.c: New file.
53869         * lib/unictype/categ_Pf.c: New file.
53870         * lib/unictype/categ_Pi.c: New file.
53871         * lib/unictype/categ_Po.c: New file.
53872         * lib/unictype/categ_Ps.c: New file.
53873         * lib/unictype/categ_S.c: New file.
53874         * lib/unictype/categ_Sc.c: New file.
53875         * lib/unictype/categ_Sk.c: New file.
53876         * lib/unictype/categ_Sm.c: New file.
53877         * lib/unictype/categ_So.c: New file.
53878         * lib/unictype/categ_Z.c: New file.
53879         * lib/unictype/categ_Zl.c: New file.
53880         * lib/unictype/categ_Zp.c: New file.
53881         * lib/unictype/categ_Zs.c: New file.
53882         * lib/unictype/categ_and.c: New file.
53883         * lib/unictype/categ_and_not.c: New file.
53884         * lib/unictype/categ_byname.c: New file.
53885         * lib/unictype/categ_name.c: New file.
53886         * lib/unictype/categ_none.c: New file.
53887         * lib/unictype/categ_of.c: New file.
53888         * lib/unictype/categ_or.c: New file.
53889         * lib/unictype/categ_test.c: New file.
53890         * lib/unictype/combining.c: New file.
53891         * lib/unictype/ctype_alnum.c: New file.
53892         * lib/unictype/ctype_alpha.c: New file.
53893         * lib/unictype/ctype_blank.c: New file.
53894         * lib/unictype/ctype_cntrl.c: New file.
53895         * lib/unictype/ctype_digit.c: New file.
53896         * lib/unictype/ctype_graph.c: New file.
53897         * lib/unictype/ctype_lower.c: New file.
53898         * lib/unictype/ctype_print.c: New file.
53899         * lib/unictype/ctype_punct.c: New file.
53900         * lib/unictype/ctype_space.c: New file.
53901         * lib/unictype/ctype_upper.c: New file.
53902         * lib/unictype/ctype_xdigit.c: New file.
53903         * lib/unictype/decdigit.c: New file.
53904         * lib/unictype/digit.c: New file.
53905         * lib/unictype/identsyntaxmap.h: New file.
53906         * lib/unictype/mirror.c: New file.
53907         * lib/unictype/numeric.c: New file.
53908         * lib/unictype/pr_alphabetic.c: New file.
53909         * lib/unictype/pr_ascii_hex_digit.c: New file.
53910         * lib/unictype/pr_bidi_arabic_digit.c: New file.
53911         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
53912         * lib/unictype/pr_bidi_block_separator.c: New file.
53913         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
53914         * lib/unictype/pr_bidi_common_separator.c: New file.
53915         * lib/unictype/pr_bidi_control.c: New file.
53916         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
53917         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
53918         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
53919         * lib/unictype/pr_bidi_european_digit.c: New file.
53920         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
53921         * lib/unictype/pr_bidi_left_to_right.c: New file.
53922         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
53923         * lib/unictype/pr_bidi_other_neutral.c: New file.
53924         * lib/unictype/pr_bidi_pdf.c: New file.
53925         * lib/unictype/pr_bidi_segment_separator.c: New file.
53926         * lib/unictype/pr_bidi_whitespace.c: New file.
53927         * lib/unictype/pr_byname.c: New file.
53928         * lib/unictype/pr_byname.gperf: New file.
53929         * lib/unictype/pr_combining.c: New file.
53930         * lib/unictype/pr_composite.c: New file.
53931         * lib/unictype/pr_currency_symbol.c: New file.
53932         * lib/unictype/pr_dash.c: New file.
53933         * lib/unictype/pr_decimal_digit.c: New file.
53934         * lib/unictype/pr_default_ignorable_code_point.c: New file.
53935         * lib/unictype/pr_deprecated.c: New file.
53936         * lib/unictype/pr_diacritic.c: New file.
53937         * lib/unictype/pr_extender.c: New file.
53938         * lib/unictype/pr_format_control.c: New file.
53939         * lib/unictype/pr_grapheme_base.c: New file.
53940         * lib/unictype/pr_grapheme_extend.c: New file.
53941         * lib/unictype/pr_grapheme_link.c: New file.
53942         * lib/unictype/pr_hex_digit.c: New file.
53943         * lib/unictype/pr_hyphen.c: New file.
53944         * lib/unictype/pr_id_continue.c: New file.
53945         * lib/unictype/pr_id_start.c: New file.
53946         * lib/unictype/pr_ideographic.c: New file.
53947         * lib/unictype/pr_ids_binary_operator.c: New file.
53948         * lib/unictype/pr_ids_trinary_operator.c: New file.
53949         * lib/unictype/pr_ignorable_control.c: New file.
53950         * lib/unictype/pr_iso_control.c: New file.
53951         * lib/unictype/pr_join_control.c: New file.
53952         * lib/unictype/pr_left_of_pair.c: New file.
53953         * lib/unictype/pr_line_separator.c: New file.
53954         * lib/unictype/pr_logical_order_exception.c: New file.
53955         * lib/unictype/pr_lowercase.c: New file.
53956         * lib/unictype/pr_math.c: New file.
53957         * lib/unictype/pr_non_break.c: New file.
53958         * lib/unictype/pr_not_a_character.c: New file.
53959         * lib/unictype/pr_numeric.c: New file.
53960         * lib/unictype/pr_other_alphabetic.c: New file.
53961         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
53962         * lib/unictype/pr_other_grapheme_extend.c: New file.
53963         * lib/unictype/pr_other_id_continue.c: New file.
53964         * lib/unictype/pr_other_id_start.c: New file.
53965         * lib/unictype/pr_other_lowercase.c: New file.
53966         * lib/unictype/pr_other_math.c: New file.
53967         * lib/unictype/pr_other_uppercase.c: New file.
53968         * lib/unictype/pr_paired_punctuation.c: New file.
53969         * lib/unictype/pr_paragraph_separator.c: New file.
53970         * lib/unictype/pr_pattern_syntax.c: New file.
53971         * lib/unictype/pr_pattern_white_space.c: New file.
53972         * lib/unictype/pr_private_use.c: New file.
53973         * lib/unictype/pr_punctuation.c: New file.
53974         * lib/unictype/pr_quotation_mark.c: New file.
53975         * lib/unictype/pr_radical.c: New file.
53976         * lib/unictype/pr_sentence_terminal.c: New file.
53977         * lib/unictype/pr_soft_dotted.c: New file.
53978         * lib/unictype/pr_space.c: New file.
53979         * lib/unictype/pr_terminal_punctuation.c: New file.
53980         * lib/unictype/pr_test.c: New file.
53981         * lib/unictype/pr_titlecase.c: New file.
53982         * lib/unictype/pr_unassigned_code_value.c: New file.
53983         * lib/unictype/pr_unified_ideograph.c: New file.
53984         * lib/unictype/pr_uppercase.c: New file.
53985         * lib/unictype/pr_variation_selector.c: New file.
53986         * lib/unictype/pr_white_space.c: New file.
53987         * lib/unictype/pr_xid_continue.c: New file.
53988         * lib/unictype/pr_xid_start.c: New file.
53989         * lib/unictype/pr_zero_width.c: New file.
53990         * lib/unictype/scripts.c: New file.
53991         * lib/unictype/sy_c_ident.c: New file.
53992         * lib/unictype/sy_c_whitespace.c: New file.
53993         * lib/unictype/sy_java_ident.c: New file.
53994         * lib/unictype/sy_java_whitespace.c: New file.
53995
53996         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
53997         Unicode 5.0.0.
53998         * lib/unictype/blocks.h: Likewise.
53999         * lib/unictype/categ_C.h: Likewise.
54000         * lib/unictype/categ_Cc.h: Likewise.
54001         * lib/unictype/categ_Cf.h: Likewise.
54002         * lib/unictype/categ_Cn.h: Likewise.
54003         * lib/unictype/categ_Co.h: Likewise.
54004         * lib/unictype/categ_Cs.h: Likewise.
54005         * lib/unictype/categ_L.h: Likewise.
54006         * lib/unictype/categ_Ll.h: Likewise.
54007         * lib/unictype/categ_Lm.h: Likewise.
54008         * lib/unictype/categ_Lo.h: Likewise.
54009         * lib/unictype/categ_Lt.h: Likewise.
54010         * lib/unictype/categ_Lu.h: Likewise.
54011         * lib/unictype/categ_M.h: Likewise.
54012         * lib/unictype/categ_Mc.h: Likewise.
54013         * lib/unictype/categ_Me.h: Likewise.
54014         * lib/unictype/categ_Mn.h: Likewise.
54015         * lib/unictype/categ_N.h: Likewise.
54016         * lib/unictype/categ_Nd.h: Likewise.
54017         * lib/unictype/categ_Nl.h: Likewise.
54018         * lib/unictype/categ_No.h: Likewise.
54019         * lib/unictype/categ_P.h: Likewise.
54020         * lib/unictype/categ_Pc.h: Likewise.
54021         * lib/unictype/categ_Pd.h: Likewise.
54022         * lib/unictype/categ_Pe.h: Likewise.
54023         * lib/unictype/categ_Pf.h: Likewise.
54024         * lib/unictype/categ_Pi.h: Likewise.
54025         * lib/unictype/categ_Po.h: Likewise.
54026         * lib/unictype/categ_Ps.h: Likewise.
54027         * lib/unictype/categ_S.h: Likewise.
54028         * lib/unictype/categ_Sc.h: Likewise.
54029         * lib/unictype/categ_Sk.h: Likewise.
54030         * lib/unictype/categ_Sm.h: Likewise.
54031         * lib/unictype/categ_So.h: Likewise.
54032         * lib/unictype/categ_Z.h: Likewise.
54033         * lib/unictype/categ_Zl.h: Likewise.
54034         * lib/unictype/categ_Zp.h: Likewise.
54035         * lib/unictype/categ_Zs.h: Likewise.
54036         * lib/unictype/categ_of.h: Likewise.
54037         * lib/unictype/combining.h: Likewise.
54038         * lib/unictype/ctype_alnum.h: Likewise.
54039         * lib/unictype/ctype_alpha.h: Likewise.
54040         * lib/unictype/ctype_blank.h: Likewise.
54041         * lib/unictype/ctype_cntrl.h: Likewise.
54042         * lib/unictype/ctype_digit.h: Likewise.
54043         * lib/unictype/ctype_graph.h: Likewise.
54044         * lib/unictype/ctype_lower.h: Likewise.
54045         * lib/unictype/ctype_print.h: Likewise.
54046         * lib/unictype/ctype_punct.h: Likewise.
54047         * lib/unictype/ctype_space.h: Likewise.
54048         * lib/unictype/ctype_upper.h: Likewise.
54049         * lib/unictype/ctype_xdigit.h: Likewise.
54050         * lib/unictype/decdigit.h: Likewise.
54051         * lib/unictype/digit.h: Likewise.
54052         * lib/unictype/mirror.h: Likewise.
54053         * lib/unictype/numeric.h: Likewise.
54054         * lib/unictype/pr_alphabetic.h: Likewise.
54055         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
54056         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
54057         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
54058         * lib/unictype/pr_bidi_block_separator.h: Likewise.
54059         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
54060         * lib/unictype/pr_bidi_common_separator.h: Likewise.
54061         * lib/unictype/pr_bidi_control.h: Likewise.
54062         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
54063         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
54064         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
54065         * lib/unictype/pr_bidi_european_digit.h: Likewise.
54066         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
54067         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
54068         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
54069         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
54070         * lib/unictype/pr_bidi_pdf.h: Likewise.
54071         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
54072         * lib/unictype/pr_bidi_whitespace.h: Likewise.
54073         * lib/unictype/pr_combining.h: Likewise.
54074         * lib/unictype/pr_composite.h: Likewise.
54075         * lib/unictype/pr_currency_symbol.h: Likewise.
54076         * lib/unictype/pr_dash.h: Likewise.
54077         * lib/unictype/pr_decimal_digit.h: Likewise.
54078         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
54079         * lib/unictype/pr_deprecated.h: Likewise.
54080         * lib/unictype/pr_diacritic.h: Likewise.
54081         * lib/unictype/pr_extender.h: Likewise.
54082         * lib/unictype/pr_format_control.h: Likewise.
54083         * lib/unictype/pr_grapheme_base.h: Likewise.
54084         * lib/unictype/pr_grapheme_extend.h: Likewise.
54085         * lib/unictype/pr_grapheme_link.h: Likewise.
54086         * lib/unictype/pr_hex_digit.h: Likewise.
54087         * lib/unictype/pr_hyphen.h: Likewise.
54088         * lib/unictype/pr_id_continue.h: Likewise.
54089         * lib/unictype/pr_id_start.h: Likewise.
54090         * lib/unictype/pr_ideographic.h: Likewise.
54091         * lib/unictype/pr_ids_binary_operator.h: Likewise.
54092         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
54093         * lib/unictype/pr_ignorable_control.h: Likewise.
54094         * lib/unictype/pr_iso_control.h: Likewise.
54095         * lib/unictype/pr_join_control.h: Likewise.
54096         * lib/unictype/pr_left_of_pair.h: Likewise.
54097         * lib/unictype/pr_line_separator.h: Likewise.
54098         * lib/unictype/pr_logical_order_exception.h: Likewise.
54099         * lib/unictype/pr_lowercase.h: Likewise.
54100         * lib/unictype/pr_math.h: Likewise.
54101         * lib/unictype/pr_non_break.h: Likewise.
54102         * lib/unictype/pr_not_a_character.h: Likewise.
54103         * lib/unictype/pr_numeric.h: Likewise.
54104         * lib/unictype/pr_other_alphabetic.h: Likewise.
54105         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
54106         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
54107         * lib/unictype/pr_other_id_continue.h: Likewise.
54108         * lib/unictype/pr_other_id_start.h: Likewise.
54109         * lib/unictype/pr_other_lowercase.h: Likewise.
54110         * lib/unictype/pr_other_math.h: Likewise.
54111         * lib/unictype/pr_other_uppercase.h: Likewise.
54112         * lib/unictype/pr_paired_punctuation.h: Likewise.
54113         * lib/unictype/pr_paragraph_separator.h: Likewise.
54114         * lib/unictype/pr_pattern_syntax.h: Likewise.
54115         * lib/unictype/pr_pattern_white_space.h: Likewise.
54116         * lib/unictype/pr_private_use.h: Likewise.
54117         * lib/unictype/pr_punctuation.h: Likewise.
54118         * lib/unictype/pr_quotation_mark.h: Likewise.
54119         * lib/unictype/pr_radical.h: Likewise.
54120         * lib/unictype/pr_sentence_terminal.h: Likewise.
54121         * lib/unictype/pr_soft_dotted.h: Likewise.
54122         * lib/unictype/pr_space.h: Likewise.
54123         * lib/unictype/pr_terminal_punctuation.h: Likewise.
54124         * lib/unictype/pr_titlecase.h: Likewise.
54125         * lib/unictype/pr_unassigned_code_value.h: Likewise.
54126         * lib/unictype/pr_unified_ideograph.h: Likewise.
54127         * lib/unictype/pr_uppercase.h: Likewise.
54128         * lib/unictype/pr_variation_selector.h: Likewise.
54129         * lib/unictype/pr_white_space.h: Likewise.
54130         * lib/unictype/pr_xid_continue.h: Likewise.
54131         * lib/unictype/pr_xid_start.h: Likewise.
54132         * lib/unictype/pr_zero_width.h: Likewise.
54133         * lib/unictype/scripts.h: Likewise.
54134         * lib/unictype/scripts_byname.gperf: Likewise.
54135         * lib/unictype/sy_c_ident.h: Likewise.
54136         * lib/unictype/sy_c_whitespace.h: Likewise.
54137         * lib/unictype/sy_java_ident.h: Likewise.
54138         * lib/unictype/sy_java_whitespace.h: Likewise.
54139
54140         * lib/unictype/Makefile: New file.
54141         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
54142         glibc.
54143         * lib/unictype/3level.h: New file, copied from glibc.
54144         * lib/unictype/3levelbit.h: New file.
54145
54146 2007-11-11  Bruno Haible  <bruno@clisp.org>
54147
54148         * modules/gperf: New file.
54149         * modules/iconv_open (Depends-on): Add it.
54150         (Makefile.am): Remove the GPERF definition.
54151
54152 2007-11-11  Bruno Haible  <bruno@clisp.org>
54153
54154         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
54155         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
54156
54157 2007-11-11  Bruno Haible  <bruno@clisp.org>
54158
54159         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
54160         (usage): Remove function.
54161
54162 2007-11-11  Bruno Haible  <bruno@clisp.org>
54163
54164         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
54165         gl_FUNC_CEILF_LIBS.
54166         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
54167         gl_FUNC_CEIL_LIBS.
54168         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
54169         gl_FUNC_CEILL_LIBS.
54170         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
54171         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
54172         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
54173
54174 2007-11-11  Bruno Haible  <bruno@clisp.org>
54175
54176         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
54177         roundf were declared but do not exist on functions.
54178         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
54179         roundl were declared but do not exist on functions.
54180         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
54181         HAVE_FLOORL_AND_CEILL, respectively.
54182         Needed for Sun C on Solaris 10.
54183
54184 2007-11-11  Bruno Haible  <bruno@clisp.org>
54185
54186         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
54187         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
54188         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
54189         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
54190         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
54191         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
54192         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
54193         HAVE_DECL_ROUNDF.
54194         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
54195         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
54196         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
54197         of HAVE_DECL_ROUND*.
54198         * modules/math (Makefile.am): Update.
54199
54200 2007-11-10  Bruno Haible  <bruno@clisp.org>
54201
54202         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
54203         ptrdiff_t as m4/intl.m4.
54204
54205 2007-11-10  Jim Meyering  <meyering@redhat.com>
54206
54207         Avoid link failure for the argmatch test.
54208         * tests/test-argmatch.c (usage): Define function to avoid a link
54209         failure: argmatch_die requires a usage function.
54210
54211 2007-11-09  Bruno Haible  <bruno@clisp.org>
54212
54213         * doc/functions/snprintf.texi: Mention BeOS deficiency.
54214         * doc/functions/vsnprintf.texi: Likewise.
54215         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
54216         with a size argument < 2.
54217
54218 2007-11-09  Bruno Haible  <bruno@clisp.org>
54219
54220         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
54221         buffer. Fixes an inefficiency introduced on 2007-11-03.
54222
54223 2007-11-09  Bruno Haible  <bruno@clisp.org>
54224
54225         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
54226         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
54227
54228 2007-11-08  Jim Meyering  <meyering@redhat.com>
54229
54230         Change cache variable name prefix "jm_" to "gl_" everywhere.
54231         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
54232         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
54233         * m4/uptime.m4: s/gl_/jm_/
54234
54235 2007-11-07  Bruno Haible  <bruno@clisp.org>
54236
54237         Update to GNU gettext 0.17.
54238         * m4/intl.m4: Update to GNU gettext 0.17.
54239         * m4/po.m4: Likewise.
54240         * modules/gettext (Files): Remove m4/ulonglong.m4.
54241         (configure.ac): Require gettext infrastructure from version 0.17.
54242
54243 2007-11-06  Bruno Haible  <bruno@clisp.org>
54244
54245         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
54246         symbolic values are not defined in a public header.
54247         * lib/freadable.c (freadable) [QNX]: Likewise.
54248         * lib/freadahead.c (freadahead) [QNX]: Likewise.
54249         * lib/freading.c (freading) [QNX]: Likewise.
54250         * lib/fseterr.c (fseterr) [QNX]: Likewise.
54251         * lib/fwritable.c (fwritable) [QNX]: Likewise.
54252         * lib/fwriting.c (fwriting) [QNX]: Likewise.
54253         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
54254         Reported by Alain Magloire.
54255
54256         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
54257
54258 2007-11-05  Bruno Haible  <bruno@clisp.org>
54259
54260         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
54261         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
54262         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
54263         Reported by Eric Blake.
54264
54265 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54266             Bruno Haible  <bruno@clisp.org>
54267
54268         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
54269         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
54270         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
54271         (malloc): Undefine also before including <stdlib.h>.
54272         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
54273         Needed on OSF/1 4.0.
54274
54275 2007-11-05  Jim Meyering  <meyering@redhat.com>
54276
54277         git-version-gen: sync from coreutils.
54278         * build-aux/git-version-gen: Add comments.
54279         Change the first '-' to '.' in the snapshot version string,
54280         e.g., 6.9-377-08144 -> 6.9.377-08144
54281         Remove first parameter.
54282         Don't declare a version "-dirty" merely because a time
54283         stamp has changed.
54284
54285 2007-11-04  Bruno Haible  <bruno@clisp.org>
54286
54287         * lib/lock.h: Protect all macro definitions containing an 'if'
54288         statement through a "do { ... } while (0)".
54289         * lib/tls.h: Likewise.
54290
54291 2007-11-04  Bruno Haible  <bruno@clisp.org>
54292
54293         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
54294
54295 2007-11-04  Bruno Haible  <bruno@clisp.org>
54296
54297         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
54298         * modules/fprintf-posix (Depends-on): Add nocrash.
54299         * modules/snprintf-posix (Depends-on): Likewise.
54300         * modules/sprintf-posix (Depends-on): Likewise.
54301         * modules/vasnprintf-posix (Depends-on): Likewise.
54302         * modules/vasprintf-posix (Depends-on): Likewise.
54303         * modules/vfprintf-posix (Depends-on): Likewise.
54304         * modules/vsnprintf-posix (Depends-on): Likewise.
54305         * modules/vsprintf-posix (Depends-on): Likewise.
54306         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
54307         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
54308         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
54309         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
54310         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
54311         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
54312         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
54313
54314 2007-11-04  Bruno Haible  <bruno@clisp.org>
54315
54316         * modules/nocrash: New file.
54317         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
54318         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
54319
54320 2007-11-04  Bruno Haible  <bruno@clisp.org>
54321
54322         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
54323         precision handling.
54324         * tests/test-vasprintf-posix.c (test_function): Likewise.
54325         * tests/test-snprintf-posix.h (test_function): Likewise.
54326         * tests/test-sprintf-posix.h (test_function): Likewise.
54327
54328         Fix *printf behaviour for large precisions on mingw and BeOS.
54329         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
54330         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
54331         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
54332         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
54333         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
54334         gl_PRINTF_PRECISION and test its result. Invoke
54335         gl_PREREQ_VASNPRINTF_PRECISION.
54336         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
54337         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54338         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54339         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54340         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54341         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54342         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54343         * doc/functions/fprintf.texi: Update.
54344         * doc/functions/printf.texi: Update.
54345         * doc/functions/snprintf.texi: Update.
54346         * doc/functions/sprintf.texi: Update.
54347         * doc/functions/vfprintf.texi: Update.
54348         * doc/functions/vprintf.texi: Update.
54349         * doc/functions/vsnprintf.texi: Update.
54350         * doc/functions/vsprintf.texi: Update.
54351
54352 2007-11-04  Bruno Haible  <bruno@clisp.org>
54353
54354         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
54355
54356 2007-11-04  Bruno Haible  <bruno@clisp.org>
54357
54358         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
54359         Reported by Sylvain Beucler <beuc@gnu.org>.
54360
54361 2007-11-03  Bruno Haible  <bruno@clisp.org>
54362
54363         * tests/test-fprintf-posix2.sh: New file.
54364         * tests/test-fprintf-posix2.c: New file.
54365         * modules/fprintf-posix-tests (Files): Add them.
54366         (TESTS): Add test-fprintf-posix2.sh.
54367         (configure.ac): Check for getrlimit and setrlimit.
54368         (check_PROGRAMS): Add test-fprintf-posix2.
54369
54370         * tests/test-printf-posix2.sh: New file.
54371         * tests/test-printf-posix2.c: New file.
54372         * modules/printf-posix-tests (Files): Add them.
54373         (TESTS): Add test-printf-posix2.sh.
54374         (configure.ac): Check for getrlimit and setrlimit.
54375         (check_PROGRAMS): Add test-printf-posix2.
54376
54377         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
54378         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
54379         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
54380         (decode_double): New function, copied from decode_long_double.
54381         (scale10_round_decimal_decoded): New function, extracted from
54382         scale10_round_decimal_long_double.
54383         (scale10_round_decimal_long_double): Use it.
54384         (scale10_round_decimal_double): New function.
54385         (floorlog10): New function.
54386         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
54387         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
54388         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
54389         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
54390         gl_PRINTF_ENOMEM and test its result. Invoke
54391         gl_PREREQ_VASNPRINTF_ENOMEM.
54392         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
54393         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54394         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54395         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54396         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54397         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54398         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54399         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
54400         * modules/snprintf-posix (Depends-on): Likewise.
54401         * modules/sprintf-posix (Depends-on): Likewise.
54402         * modules/vasnprintf-posix (Depends-on): Likewise.
54403         * modules/vasprintf-posix (Depends-on): Likewise.
54404         * modules/vfprintf-posix (Depends-on): Likewise.
54405         * modules/vsnprintf-posix (Depends-on): Likewise.
54406         * modules/vsprintf-posix (Depends-on): Likewise.
54407         * doc/functions/fprintf.texi: Update.
54408         * doc/functions/printf.texi: Update.
54409         * doc/functions/snprintf.texi: Update.
54410         * doc/functions/sprintf.texi: Update.
54411         * doc/functions/vfprintf.texi: Update.
54412         * doc/functions/vprintf.texi: Update.
54413         * doc/functions/vsnprintf.texi: Update.
54414         * doc/functions/vsprintf.texi: Update.
54415
54416 2007-11-03  Bruno Haible  <bruno@clisp.org>
54417
54418         * modules/frexp-nolibm-tests: New file.
54419
54420         * modules/frexp-nolibm: New file.
54421         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
54422
54423 2007-11-03  Bruno Haible  <bruno@clisp.org>
54424
54425         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
54426         value is C99 compliant.
54427         Needed for OSF/1 5.1.
54428
54429 2007-11-03  Bruno Haible  <bruno@clisp.org>
54430
54431         Fix out-of-memory handling of vasnprintf.
54432         * lib/printf-parse.c: Include <errno.h>.
54433         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
54434         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
54435         is already set.
54436
54437 2007-11-02  Eric Blake  <ebb9@byu.net>
54438
54439         Fix tests on cygwin.
54440         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
54441
54442 2007-11-01  Bruno Haible  <bruno@clisp.org>
54443
54444         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
54445         warning.
54446         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
54447         needed for POSIX compatibility.
54448
54449 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
54450
54451         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
54452         for compatibility with GNU.
54453
54454 2007-11-01  Bruno Haible  <bruno@clisp.org>
54455
54456         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
54457         (putenv): Renamed from rpl_putenv. Change argument type from
54458         'const char *' to 'char *'.
54459         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
54460         of defining putenv in config.h, just set REPLACE_PUTENV.
54461         * modules/putenv (Depends-on): Add stdlib.
54462         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
54463         (Include): Use <stdlib.h>.
54464         * lib/stdlib.in.h (putenv): New declaration.
54465         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
54466         REPLACE_PUTENV.
54467         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
54468         REPLACE_PUTENV.
54469         Needed for MacOS X 10.5.0.
54470         Reported by Peter O'Gorman <peter@pogma.com>.
54471
54472 2007-11-01  Jim Meyering  <meyering@redhat.com>
54473
54474         Treat an empty date string exactly like "0".
54475         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
54476         if the remaining date string (to be parsed) is empty, use "0".
54477         Reported by Mischa Molhoek and discussed in this thread:
54478         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
54479
54480 2007-10-31  Bruno Haible  <bruno@clisp.org>
54481
54482         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
54483         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
54484         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
54485         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
54486         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
54487         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
54488
54489 2007-10-31  Bruno Haible  <bruno@clisp.org>
54490
54491         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
54492         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
54493         (AC_TYPE_LONG_LONG_INT): Use it.
54494         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
54495         it as well.
54496         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
54497         to m4/longlong.m4.
54498         * modules/stdint (Files): Remove m4/ulonglong.m4.
54499         * modules/strtoull (Files): Use m4/longlong.m4 instead of
54500         m4/ulonglong.m4.
54501         * modules/strtoumax (Files): Likewise.
54502
54503 2007-10-30  Bruno Haible  <bruno@clisp.org>
54504
54505         * modules/xvasprintf-posix: New file.
54506         Suggested by Eric Blake.
54507
54508 2007-10-30  Bruno Haible  <bruno@clisp.org>
54509
54510         * modules/xprintf-posix-tests: New file.
54511         * tests/test-xprintf-posix.sh: New file.
54512         * tests/test-xprintf-posix.c: New file.
54513         * tests/test-xfprintf-posix.c: New file.
54514
54515         * modules/xprintf-posix: New file.
54516
54517 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54518
54519         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
54520         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
54521         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
54522
54523 2007-10-29  Bruno Haible  <bruno@clisp.org>
54524
54525         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
54526         contain the special marker '_cv_'.
54527         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
54528         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
54529         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
54530         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
54531         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
54532         Reported by Ralf Wildenhues.
54533
54534 2007-10-29  Bruno Haible  <bruno@clisp.org>
54535
54536         * gnulib-tool (func_import): When --lgpl is not specified, set
54537         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
54538         GPLv3.
54539         Reported by Simon Josefsson.
54540
54541 2007-10-28  Bruno Haible  <bruno@clisp.org>
54542
54543         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
54544         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
54545         HAVE_DECL_ISFINITE.
54546         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
54547         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
54548         HAVE_DECL_ISFINITE.
54549
54550 2007-10-28  Bruno Haible  <bruno@clisp.org>
54551
54552         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
54553         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
54554
54555 2007-10-28  Bruno Haible  <bruno@clisp.org>
54556
54557         Fix link errors with Sun C 5.0 on Solaris 10.
54558         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
54559         function is declared but not present in the compiler's libm.
54560         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
54561         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
54562         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
54563         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
54564         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
54565         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
54566         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
54567         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
54568         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
54569         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
54570         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
54571         HAVE_DECL_FLOORL.
54572
54573 2007-10-28  Bruno Haible  <bruno@clisp.org>
54574
54575         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
54576         gl_FUNC_FLOORL. Cache the result.
54577         (gl_FUNC_FLOORL): Use it.
54578         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
54579         gl_FUNC_CEILL. Cache the result.
54580         (gl_FUNC_CEILL): Use it.
54581
54582         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
54583         gl_FUNC_FLOOR. Cache the result.
54584         (gl_FUNC_FLOOR): Use it.
54585         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
54586         gl_FUNC_CEIL. Cache the result.
54587         (gl_FUNC_CEIL): Use it.
54588
54589         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
54590         gl_FUNC_FLOORF. Cache the result.
54591         (gl_FUNC_FLOORF): Use it.
54592         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
54593         gl_FUNC_CEILF. Cache the result.
54594         (gl_FUNC_CEILF): Use it.
54595
54596 2007-10-28  Bruno Haible  <bruno@clisp.org>
54597
54598         * gnulib-tool: Allow specifying the LGPL version number through
54599         --lgpl=2 or --lgpl=3.
54600         (func_usage): Document --lgpl with argument.
54601         Handle --lgpl=... arguments.
54602         (func_import): Recognize also gl_LGPL calls with an argument. When
54603         --lgpl=2 is used and the module's license is just LGPL, report an
54604         error. Set sed_transform_lib_file according to the lgpl variable. In
54605         the generated files, use --lgpl or gl_LGPL invocations with argument,
54606         if necessary.
54607         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
54608         an LGPv2+ license.
54609         * doc/gnulib-tool.texi (Modified imports): Update explanation of
54610         gl_LGPL macro.
54611
54612 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54613             Bruno Haible  <bruno@clisp.org>
54614
54615         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
54616         (u16_uctomb_aux): Likewise.
54617         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
54618         !HAVE_INLINE.
54619         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
54620
54621 2007-10-28  Bruno Haible  <bruno@clisp.org>
54622
54623         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
54624         Invoke AM_GETTEXT_OPTION if it exists.
54625         * modules/vasprintf: Likewise.
54626         * modules/verror: Likewise.
54627         * modules/xprintf: Likewise.
54628         * modules/xvasprintf: Likewise.
54629
54630 2007-10-27  Ben Pfaff  <blp@gnu.org>
54631
54632         * lib/math.in.h: Define isfinite macro and prototypes for
54633         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
54634         implementations.
54635         * m4/math_h.m4: New substitutions for isfinite module.
54636         * lib/isfinite.c: New file.
54637         * m4/isfinite.m4: New file.
54638         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
54639         * modules/isfinite: New file.
54640         * modules/isfinite-tests: New file.
54641         * tests/tests-isfinite.c: New file.
54642         * doc/functions/isfinite.texi: Mention isfinite module.
54643         * MODULES.html.sh: Mention new module.
54644
54645 2007-10-27  Ben Pfaff  <blp@gnu.org>
54646
54647         Ralf Wildenhues reported that Tru64 4.0D declares the round
54648         functions but does not have definitions.
54649         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
54650         cannot be found in any library, set the output variable to
54651         "missing" instead of "".
54652         * m4/round.m4: Also use our substitute if we cannot find round in
54653         any library, even if it is declared.
54654         * m4/roundf.m4: Likewise for roundf.
54655         * m4/roundl.m4: Likewise for roundl.
54656         * lib/math.in.h: Undefine roundf, round, roundl before defining
54657         their replacements, to allow for hypothetical systems where these
54658         may be defined as macros but not available in libraries.
54659
54660 2007-10-27  Bruno Haible  <bruno@clisp.org>
54661
54662         * doc/gnulib.texi: Invoke @firstparagraphindent.
54663         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
54664         changes in gnulib.
54665         (Source changes): New section.
54666
54667 2007-10-26  Bruno Haible  <bruno@clisp.org>
54668
54669         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
54670         borrowed from autoconf.
54671
54672 2007-10-26  Bruno Haible  <bruno@clisp.org>
54673
54674         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
54675         strerror returned the empty string. Needed on HP-UX 11.00.
54676
54677 2007-10-24  Micah Cowan  <micah@cowan.name>
54678
54679         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
54680         * build-aux/bootstrap: Remove support for now-unnecessary option,
54681         --cvs-user, and envvars CVS_USER, CVS_RSH.
54682
54683 2007-10-24  Jim Meyering  <meyering@redhat.com>
54684
54685         Avoid diagnostics from sha1sum when there is no cached checksum.
54686         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
54687         if the po.s1 file hasn't been created yet.
54688
54689         * build-aux/bootstrap: Sync from coreutils:
54690         2007-10-24  Jim Meyering  <meyering@redhat.com>
54691         Get gnulib from the git repository, not from an obsolete cvs one.
54692         * build-aux/bootstrap: Suggestion from Micah Cowan.
54693         2007-10-04  Jim Meyering  <jim@meyering.net>
54694         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
54695         (update_po_files): Work also when there are no .po files in po/.
54696
54697 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
54698
54699         * README: Append ".git" to git and cg examples.
54700         Problem reported by Benoit Sigoure.
54701
54702 2007-10-23  Micah Cowan  <micah@cowan.name>
54703
54704         * users.txt: Add wget.
54705
54706 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54707
54708         Fix linking of some unistdio tests on FreeBSD.
54709         * modules/unistdio/u16-vsnprintf-tests
54710         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
54711         * modules/unistdio/u16-vsprintf-tests
54712         (test_u16_vsnprintf1_LDADD): Likewise.
54713         * modules/unistdio/u32-vsnprintf-tests
54714         (test_u32_vsnprintf1_LDADD): Likewise.
54715         * modules/unistdio/u32-vsprintf-tests
54716         (test_u32_vsprintf1_LDADD): Likewise.
54717         * modules/unistdio/u8-vsnprintf-tests
54718         (test_u8_vsnprintf1_LDADD): Likewise.
54719         * modules/unistdio/u8-vsprintf-tests
54720         (test_u8_vsprintf1_LDADD): Likewise.
54721         * modules/unistdio/ulc-vsnprintf-tests
54722         (test_ulc_vsnprintf1_LDADD): Likewise.
54723         * modules/unistdio/ulc-vsprintf-tests
54724         (test_ulc_vsprintf1_LDADD): Likewise.
54725
54726         Fix linking of some uniconv tests on FreeBSD.
54727         * modules/uniconv/u16-conv-from-enc-tests
54728         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
54729         * modules/uniconv/u16-conv-to-enc-tests
54730         (test_u16_conv_to_enc_LDADD): Likewise.
54731         * modules/uniconv/u16-strconv-from-enc-tests
54732         (test_u16_strconv_from_enc_LDADD): Likewise.
54733         * modules/uniconv/u16-strconv-to-enc-tests
54734         (test_u16_strconv_to_enc_LDADD): Likewise.
54735         * modules/uniconv/u32-conv-from-enc-tests
54736         (test_u32_conv_from_enc_LDADD): Likewise.
54737         * modules/uniconv/u32-conv-to-enc-tests
54738         (test_u32_conv_to_enc_LDADD): Likewise.
54739         * modules/uniconv/u32-strconv-from-enc-tests
54740         (test_u32_strconv_from_enc_LDADD): Likewise.
54741         * modules/uniconv/u32-strconv-to-enc-tests
54742         (test_u32_strconv_to_enc_LDADD): Likewise.
54743         * modules/uniconv/u8-conv-from-enc-tests
54744         (test_u8_conv_from_enc_LDADD): Likewise.
54745         * modules/uniconv/u8-conv-to-enc-tests
54746         (test_u8_conv_to_enc_LDADD): Likewise.
54747         * modules/uniconv/u8-strconv-from-enc-tests
54748         (test_u8_strconv_from_enc_LDADD): Likewise.
54749         * modules/uniconv/u8-strconv-to-enc-tests
54750         (test_u8_strconv_to_enc_LDADD): Likewise.
54751
54752 2007-10-22  Bruno Haible  <bruno@clisp.org>
54753
54754         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
54755         size.
54756
54757 2007-10-22  Eric Blake  <ebb9@byu.net>
54758
54759         Tweak x*printf documentation.
54760         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
54761         variable name and comments.
54762         Suggested by Bruno Haible.
54763
54764 2007-10-22  Bruno Haible  <bruno@clisp.org>
54765
54766         * lib/acl.c (copy_acl): Fix file name in comment.
54767
54768 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
54769
54770         Fix Tru64 problem with stdbool.h.
54771         * lib/stdbool.in.h (false, true):
54772         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
54773         Don't declare as an enum in this situation; it runs afoul of Tru64.
54774         Problem reported by Steven M. Schweda in
54775         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
54776
54777 2007-10-22  Eric Blake  <ebb9@byu.net>
54778
54779         Also wrap vf?printf.
54780         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
54781         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
54782         (xvprintf, xvfprintf): New functions.
54783
54784 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54785
54786         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
54787         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
54788
54789         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
54790         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
54791
54792 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
54793
54794         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
54795         by Bruno Haible.
54796
54797 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54798
54799         * lib/getloadavg.c
54800         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
54801         Undef `sys' after including sys/table.h, for Tru64 4.0D.
54802
54803         * tests/test-i-ring.c: Work for C89.
54804
54805 2007-10-22  Bruno Haible  <bruno@clisp.org>
54806
54807         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
54808         -1u, in preprocessor expression, so that we don't test for the bug
54809         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
54810         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
54811
54812 2007-10-22  Eric Blake  <ebb9@byu.net>
54813
54814         * tests/test-yesno.sh: Silence stderr during test.
54815
54816 2007-10-22  Simon Josefsson  <simon@josefsson.org>
54817
54818         * modules/crypto/gc-camellia: New file.
54819
54820         * m4/gc-camellia.m4: New file.
54821
54822         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
54823
54824         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
54825
54826 2007-10-22  Simon Josefsson  <simon@josefsson.org>
54827
54828         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
54829         --help to stdout.  Reported by sms@antinode.org (Steven
54830         M. Schweda).
54831
54832 2007-10-22  Simon Josefsson  <simon@josefsson.org>
54833
54834         * users.txt: Fix link to libksba.
54835
54836 2007-10-21  Ben Pfaff  <blp@gnu.org>
54837
54838         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
54839         round.c roundf implementation that depends on floorf and ceilf to
54840         be tested unconditionally.
54841
54842 2007-10-21  Ben Pfaff  <blp@gnu.org>
54843
54844         * m4/check-libm-func.m4: Removed.
54845         * m4/check-math-lib.m4: New file.
54846         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
54847         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
54848         definition and lack of AC_LIBOBJ([roundf]).
54849         * m4/roundl.m4: Ditto, and similarly for roundl.
54850         * modules/round: Reference new m4 file.
54851         * modules/roundf: Ditto.
54852         * modules/roundl: Ditto.
54853         * tests/test-round2.c (main): Use ROUND instead of round.
54854         Bug report from Bruno Haible.
54855
54856 2007-10-21  Bruno Haible  <bruno@clisp.org>
54857
54858         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
54859         context.
54860
54861 2007-10-21  Bruno Haible  <bruno@clisp.org>
54862
54863         * tests/test-wcwidth.c (main): Allow negative result for some control
54864         characters.
54865
54866         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
54867         Needed on OSF/1 5.1.
54868
54869 2007-10-21  Bruno Haible  <bruno@clisp.org>
54870
54871         * tests/test-floorf1.c: Include isnanf.h.
54872         (main): Use isnanf() instead of isnan().
54873         * tests/test-ceilf1.c: Include isnanf.h.
54874         (main): Use isnanf() instead of isnan().
54875         * tests/test-truncf1.c: Include isnanf.h.
54876         (main): Use isnanf() instead of isnan().
54877         * tests/test-roundf1.c: Include isnanf.h.
54878         (main): Use isnanf() instead of isnan().
54879
54880 2007-10-21  Eric Blake  <ebb9@byu.net>
54881
54882         * users.txt: Update URL for m4.
54883
54884 2007-10-21  Bruno Haible  <bruno@clisp.org>
54885
54886         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
54887
54888 2007-10-21  Bruno Haible  <bruno@clisp.org>
54889
54890         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
54891         Git's management files if the CVS files are not present.
54892
54893 2007-10-20  Bruno Haible  <bruno@clisp.org>
54894
54895         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
54896         gcc-3.4.x.
54897
54898 2007-10-20  Ben Pfaff  <blp@gnu.org>
54899
54900         * lib/math.in.h: Declare round, roundf, roundl if we are providing
54901         implementations.
54902         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
54903         * lib/round.c: New file.
54904         * lib/roundf.c: New file.
54905         * lib/roundl.c: New file.
54906         * m4/round.m4: New file.
54907         * m4/roundf.m4: New file.
54908         * m4/roundl.m4: New file.
54909         * m4/check-libm-func-m4: New file.
54910         * modules/math: Replace round, roundf, roundl related @VARS@ in
54911         math.in.h.
54912         * modules/round: New file.
54913         * modules/round-tests: New file.
54914         * modules/roundf: New file.
54915         * modules/roundf-tests: New file.
54916         * modules/roundl: New file.
54917         * modules/roundl-tests: New file.
54918         * tests/test-round1.c: New file.
54919         * tests/test-round2.c: New file.
54920         * tests/test-roundf1.c: New file.
54921         * tests/test-roundf2.c: New file.
54922         * tests/test-roundl.c: New file.
54923         * doc/functions/round.texi: Mention round module.
54924         * doc/functions/roundf.texi: Mention roundf module.
54925         * doc/functions/roundl.texi: Mention roundl module.
54926         * MODULES.html.sh: Mention new modules.
54927         Thanks to Bruno Haible for suggestions.
54928
54929 2007-10-20  Jim Meyering  <meyering@redhat.com>
54930
54931         * lib/xprintf.c: Include <config.h> unconditionally.
54932
54933         Change xprintf's license to GPL.
54934         * modules/xprintf (License): s/LGPL/GPL/, since this module
54935         depends on modules (exit and exitfail) which are GPL.
54936         Suggestion from Bruno Haible.
54937
54938         xprintf fixes.
54939         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
54940         Use a clearer diagnostic.
54941         Patch from Bruno Haible.
54942
54943 2007-10-20  Bruno Haible  <bruno@clisp.org>
54944
54945         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
54946         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
54947         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54948
54949 2007-10-20  Bruno Haible  <bruno@clisp.org>
54950
54951         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
54952         precision in the comparison result > x - 1 or similar.
54953         * tests/test-ceilf2.c (correct_result_p): Likewise.
54954         * tests/test-truncf2.c (correct_result_p): Likewise.
54955         * tests/test-trunc2.c (correct_result_p): Likewise.
54956         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54957
54958 2007-10-20  Bruno Haible  <bruno@clisp.org>
54959
54960         * modules/ceil: New file.
54961         * m4/ceil.m4: New file.
54962         * doc/functions/ceil.texi: Mention the 'ceil' module.
54963
54964 2007-10-20  Bruno Haible  <bruno@clisp.org>
54965
54966         * modules/floor: New file.
54967         * m4/floor.m4: New file.
54968         * doc/functions/floor.texi: Mention the 'floor' module.
54969
54970 2007-10-20  Bruno Haible  <bruno@clisp.org>
54971
54972         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
54973         of %a.
54974         * modules/floorf-tests (Depends-on): Likewise.
54975         * modules/truncf-tests (Depends-on): Likewise.
54976         * modules/trunc-tests (Depends-on): Likewise.
54977         Reported by Ben Pfaff.
54978
54979 2007-10-19  Jim Meyering  <meyering@redhat.com>
54980
54981         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
54982         Don't bother testing specific errno values.  Just test ferror.
54983
54984         New module: xprintf
54985         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
54986
54987 2007-10-19  Bruno Haible  <bruno@clisp.org>
54988
54989         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
54990         syntax.
54991         * modules/javaexec (Makefile.am): Likewise.
54992         * modules/relocatable-prog (Makefile.am): Likewise.
54993         Suggested by Jim Meyering.
54994
54995 2007-10-18  Bruno Haible  <bruno@clisp.org>
54996
54997         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
54998         Reported by Jim Meyering.
54999
55000 2007-10-18  Eric Blake  <ebb9@byu.net>
55001
55002         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
55003
55004 2007-10-18  Bruno Haible  <bruno@clisp.org>
55005
55006         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
55007         the format string into writable memory. Needed in Fortify conditions.
55008
55009 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
55010             Bruno Haible  <bruno@clisp.org>
55011
55012         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
55013         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
55014         * modules/trim (Depends-on): Add mbchar.
55015         (configure.ac): Add gl_FUNC_MBRTOWC.
55016         (Makefile.am): Augment lib_SOURCES.
55017
55018 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
55019
55020         Modify glob.c to use fstatat and dirfd, to simplify it.
55021         Suggested by Eric Blake.
55022         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
55023         Don't include <stdbool.h>; not used.
55024         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
55025         (link_exists_p): Simplify implementation, since we can now assume
55026         dirfd and fstatat.
55027         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
55028
55029 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55030
55031         * gnulib-tool (func_get_dependencies): Fix sed script to
55032         match only tests.
55033
55034 2007-10-17  Bruno Haible  <bruno@clisp.org>
55035
55036         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
55037         allow locale names without encoding suffix.
55038         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
55039         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
55040
55041 2007-10-16  Bruno Haible  <bruno@clisp.org>
55042
55043         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
55044         * lib/getgroups.c (getgroups): Likewise.
55045         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
55046
55047 2007-10-16  Bruno Haible  <bruno@clisp.org>
55048
55049         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
55050         * modules/malloc-posix (License): Likewise.
55051         * modules/realloc-posix (License): Likewise.
55052         * modules/calloc-posix (License): Likewise.
55053         * modules/intprops (License): Change from GPL to LGPL, with
55054         Paul Eggert's approval.
55055
55056 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
55057
55058         Merge glibc changes into lib/glob.c.
55059
55060         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
55061         2007-10-15 04:59:03 UTC.  Here are the changes:
55062
55063         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
55064
55065         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
55066
55067         * lib/glob.c: Add some branch prediction throughout.
55068
55069         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
55070
55071         [BZ #5103]
55072         * lib/glob.c (glob): Recognize patterns starting \/.
55073
55074         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
55075
55076         [BZ #3996]
55077         * lib/glob.c (attribute_hidden): Define if not defined.
55078         (glob): Unescape dirname, filename or username when needed and not
55079         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
55080         is NULL.  Handle unescaped [ in pattern without closing ].
55081         Don't pass GLOB_CHECK down to recursive glob for directories.
55082         (__glob_pattern_type): New function.
55083         (__glob_pattern_p): Implement using __glob_pattern_type.
55084         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
55085         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
55086         Remove unreachable code.
55087
55088         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
55089
55090         * lib/glob.c (glob_in_dir): Add some comments and asserts to
55091         explain why there are no leaks.
55092
55093         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
55094
55095         [BZ #3253]
55096         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
55097         time, rather allocate increasingly bigger arrays of pointers, if
55098         possible with alloca, if too large with malloc.
55099
55100 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
55101
55102         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
55103         Problem reported by H.Merijn Brand in
55104         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
55105         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
55106         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
55107
55108 2007-10-15  Bruno Haible  <bruno@clisp.org>
55109
55110         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
55111         with explicit rpl_ prefix.
55112         * lib/fopen.c (fopen): Likewise.
55113         * lib/freopen.c (freopen): Likewise.
55114         * lib/iconv.c (iconv): Likewise.
55115         * lib/iconv_close.c (iconv_close): Likewise.
55116
55117 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55118
55119         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
55120
55121 2007-10-15  Bruno Haible  <bruno@clisp.org>
55122
55123         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
55124         <stddef.h> instead of <stdlib.h> since we only need NULL.
55125         Reported by Ben Pfaff <blp@cs.stanford.edu>.
55126
55127 2007-10-15  Bruno Haible  <bruno@clisp.org>
55128
55129         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
55130         Replace paragraph talking about LIBOBJS.
55131         Reported by Colin Watson <cjwatson@debian.org>.
55132
55133 2007-10-15  Bruno Haible  <bruno@clisp.org>
55134
55135         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
55136         <stdlib.h> before using NULL.
55137
55138 2007-10-15  Simon Josefsson  <simon@josefsson.org>
55139
55140         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
55141         Reported by Albert Chin <china@thewrittenword.com>.
55142
55143 2007-10-14  Bruno Haible  <bruno@clisp.org>
55144
55145         * modules/iconv_open-utf-tests: New file.
55146         * tests/test-iconv-utf.c: New file.
55147
55148         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
55149         * modules/iconv_open-utf: New file.
55150         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
55151         (iconv, iconv_close): New declarations.
55152         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
55153         be defined.
55154         (iconv_open): Add special handling of conversion between UTF-8 and
55155         UTF-{16,32}{BE,LE}.
55156         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
55157         * lib/iconv_close.c: New file.
55158         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
55159         gl_FUNC_ICONV_OPEN.
55160         (gl_FUNC_ICONV_OPEN): Use it.
55161         (gl_FUNC_ICONV_OPEN_UTF): New macro.
55162         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
55163         and REPLACE_ICONV_UTF.
55164         * modules/iconv_open (Depends-on): Add c-strcase.
55165         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
55166         ICONV_CONST.
55167         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
55168
55169 2007-10-13  Albert Chin  <china@thewrittenword.com>
55170             Bruno Haible  <bruno@clisp.org>
55171
55172         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
55173         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
55174
55175 2007-10-13  Bruno Haible  <bruno@clisp.org>
55176
55177         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
55178         defined, use the ISO C99 inline semantics.
55179         * lib/argp.h (ARGP_EI): Likewise.
55180
55181 2007-10-13  Bruno Haible  <bruno@clisp.org>
55182
55183         Handle 'inline' change in gcc 4.3.0.
55184         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
55185         argp_fmtstream_write, argp_fmtstream_set_lmargin,
55186         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
55187         argp_fmtstream_point): Disable 'extern' declaration if the function
55188         definition is going to be provided inline.
55189         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
55190         semantics, not the ISO C99 inline semantics.
55191         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
55192         'extern' declaration if the function definition is going to be provided
55193         inline.
55194         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
55195         the GNU C inline semantics, not the ISO C99 inline semantics. With
55196         GCC 4.2, avoid a warning.
55197
55198 2007-10-13  Bruno Haible  <bruno@clisp.org>
55199
55200         * lib/freading.h (freading): Enable the use of __freading for
55201         glibc >= 2.7.
55202         * lib/freading.c (freading): Likewise.
55203
55204 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
55205
55206         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
55207         "warning: C99 inline functions are not supported; using GNU89".
55208
55209 2007-10-12  Bruno Haible  <bruno@clisp.org>
55210
55211         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
55212         of 2.
55213         * tests/test-ceilf2.c: New file.
55214         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
55215
55216         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
55217         * modules/ceilf-tests: Update.
55218
55219 2007-10-12  Bruno Haible  <bruno@clisp.org>
55220
55221         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
55222         of 2.
55223         * tests/test-floorf2.c: New file.
55224         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
55225
55226         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
55227         * modules/floorf-tests: Update.
55228
55229 2007-10-12  Bruno Haible  <bruno@clisp.org>
55230
55231         * tests/test-trunc2.c: New file.
55232         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
55233
55234         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
55235         * modules/trunc-tests: Update.
55236
55237 2007-10-12  Bruno Haible  <bruno@clisp.org>
55238
55239         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
55240         of 2.
55241         * tests/test-truncf2.c: New file.
55242         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
55243
55244         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
55245         * modules/truncf-tests: Update.
55246
55247 2007-10-11  Eric Blake  <ebb9@byu.net>
55248
55249         Don't claim strerror is broken on Interix.
55250         * doc/functions/strerror.texi (strerror): Known broken systems are
55251         now Solaris 8, and not Interix.
55252         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
55253         Interix on cross-compile.
55254         Reported by Martin Koeppe in
55255         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
55256
55257 2007-10-11  Bruno Haible  <bruno@clisp.org>
55258
55259         * modules/i-ring-tests: New file.
55260         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
55261         instead of assert.
55262
55263 2007-10-11  Bruno Haible  <bruno@clisp.org>
55264
55265         * modules/filenamecat-tests: New file.
55266         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
55267         * lib/filenamecat.c: Remove test code.
55268
55269 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
55270
55271         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
55272
55273         * lib/strerror.c: Include <string.h> always, to test interface,
55274         and to remove the need for the dummy.
55275         Include intprops.h to compute width instead of doing it ourselves
55276         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
55277         (strerror): Define it to return NULL if there's no system strerror.
55278         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
55279         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
55280         ancient pre-strerror Unix systems well any more.  Saying "unknown
55281         system error" is enough.
55282         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
55283         simpler strerror.c implementation.
55284         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
55285         Simplify the tests to reflect the simpler strerror implementation.
55286         * modules/strerror (Depends-on): Add intprops.
55287
55288 2007-10-09  Eric Blake  <ebb9@byu.net>
55289
55290         Silence test-fpending.
55291         * modules/fpending-tests (Files): Add wrapper script.
55292         * tests/test-fpending.sh: New file.
55293
55294 2007-10-09  Bruno Haible  <bruno@clisp.org>
55295
55296         * MODULES.html.sh (func_module): Don't create a hyperlink for
55297         function names like 'printf_frexp'.
55298         (Misc): Add crc, memxor.
55299         (Characteristics of floating types): New section.
55300         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
55301         isnanf-nolibm, signbit, trunc, truncf, truncl.
55302         (Enhancements for ISO C 99 functions): New subsection Input/output.
55303         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
55304         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
55305         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
55306         (Compatibility checks for POSIX:2001 functions): Add clock-time.
55307         (Enhancements for POSIX:2001 functions): Add chdir-long.
55308         (File system functions): Add areadlink, chdir-safer, read-file.
55309         Remove cycle-check.
55310         (File system as inode set): New section.
55311         (Date and time): Add gethrxtime.
55312         (Multithreading): Add openmp.
55313         (Internationalization functions): Add localename.
55314         (Unicode string functions): Add unistr/u*-mbsnlen.
55315         (Support for maintaining and releasing projects): Add git-version-gen.
55316         (Lone files): Remove directories.
55317
55318 2007-10-08  Ben Pfaff  <blp@gnu.org>
55319
55320         * lib/xmalloca.h: Fix typo in comment.
55321
55322 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
55323
55324         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
55325         when avoiding problems with integer overflow.  Use a portable test
55326         instead.
55327
55328 2007-10-08  Simon Josefsson  <simon@josefsson.org>
55329
55330         * modules/dummy (License): Change to LGPLv2+.
55331         * modules/float (License): Likewise
55332         * modules/realloc (License): Likewise
55333         * modules/stdlib (License): Likewise
55334
55335 2007-10-07  Bruno Haible  <bruno@clisp.org>
55336
55337         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
55338         * floor.c (TWO_MANT_DIG): Likewise.
55339         * ceil.c (TWO_MANT_DIG): Likewise.
55340         Reported by Ben Pfaff.
55341
55342 2007-10-07  Bruno Haible  <bruno@clisp.org>
55343
55344         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
55345         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
55346         * lib/frexp.c (FUNC): Likewise.
55347         * lib/printf-frexp.h (printf_frexp): Likewise.
55348         * lib/printf-frexpl.h (printf_frexpl): Likewise.
55349         * lib/printf-frexp.c (FUNC): Likewise.
55350         Suggested by Jim Meyering.
55351
55352 2007-10-07  Jim Meyering  <meyering@redhat.com>
55353
55354         Make xnanosleep's integer overflow test more robust.
55355         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
55356         so that gcc-4.3.0 doesn't optimize away this test for overflow.
55357
55358 2007-10-07  Bruno Haible  <bruno@clisp.org>
55359
55360         * NEWS: Mention the license change.
55361
55362         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
55363         abbreviations in the modules files.
55364
55365         Change copyright notice from GPLv2+ to GPLv3+.
55366         * README: Change copyright notice.
55367         * MODULES.html.sh: Likewise.
55368         * build-aux/bootstrap.conf: Likewise.
55369         * build-aux/config.libpath: Likewise.
55370         * build-aux/csharpcomp.sh.in: Likewise.
55371         * build-aux/csharpexec.sh.in: Likewise.
55372         * build-aux/install-reloc: Likewise.
55373         * build-aux/javacomp.sh.in: Likewise.
55374         * build-aux/javaexec.sh.in: Likewise.
55375         * build-aux/ldd.sh.in: Likewise.
55376         * build-aux/reloc-ldflags: Likewise.
55377         * build-aux/relocatable.sh.in: Likewise.
55378         * build-aux/x-to-1.in: Likewise.
55379         * check-module: Likewise.
55380         * config/srclistvars.sh: Likewise.
55381         * gnulib-tool: Likewise.
55382         * lib/acl-internal.h: Likewise.
55383         * lib/acl.c: Likewise.
55384         * lib/acl.h: Likewise.
55385         * lib/acl_entries.c: Likewise.
55386         * lib/areadlink-with-size.c: Likewise.
55387         * lib/areadlink.c: Likewise.
55388         * lib/areadlink.h: Likewise.
55389         * lib/argmatch.c: Likewise.
55390         * lib/argmatch.h: Likewise.
55391         * lib/argp-ba.c: Likewise.
55392         * lib/argp-eexst.c: Likewise.
55393         * lib/argp-fmtstream.c: Likewise.
55394         * lib/argp-fmtstream.h: Likewise.
55395         * lib/argp-fs-xinl.c: Likewise.
55396         * lib/argp-help.c: Likewise.
55397         * lib/argp-namefrob.h: Likewise.
55398         * lib/argp-parse.c: Likewise.
55399         * lib/argp-pin.c: Likewise.
55400         * lib/argp-pv.c: Likewise.
55401         * lib/argp-pvh.c: Likewise.
55402         * lib/argp-xinl.c: Likewise.
55403         * lib/argp.h: Likewise.
55404         * lib/at-func.c: Likewise.
55405         * lib/atanl.c: Likewise.
55406         * lib/backupfile.c: Likewise.
55407         * lib/backupfile.h: Likewise.
55408         * lib/basename.c: Likewise.
55409         * lib/binary-io.h: Likewise.
55410         * lib/byteswap.in.h: Likewise.
55411         * lib/c-stack.c: Likewise.
55412         * lib/c-stack.h: Likewise.
55413         * lib/c-strcasestr.c: Likewise.
55414         * lib/c-strcasestr.h: Likewise.
55415         * lib/c-strstr.c: Likewise.
55416         * lib/c-strstr.h: Likewise.
55417         * lib/c-strtod.c: Likewise.
55418         * lib/calloc.c: Likewise.
55419         * lib/canon-host.c: Likewise.
55420         * lib/canon-host.h: Likewise.
55421         * lib/canonicalize-lgpl.c: Likewise.
55422         * lib/canonicalize.c: Likewise.
55423         * lib/canonicalize.h: Likewise.
55424         * lib/ceil.c: Likewise.
55425         * lib/ceilf.c: Likewise.
55426         * lib/ceill.c: Likewise.
55427         * lib/chdir-long.c: Likewise.
55428         * lib/chdir-long.h: Likewise.
55429         * lib/chdir-safer.c: Likewise.
55430         * lib/chdir-safer.h: Likewise.
55431         * lib/chown.c: Likewise.
55432         * lib/classpath.c: Likewise.
55433         * lib/classpath.h: Likewise.
55434         * lib/clean-temp.c: Likewise.
55435         * lib/clean-temp.h: Likewise.
55436         * lib/cloexec.c: Likewise.
55437         * lib/close-stream.c: Likewise.
55438         * lib/closein.c: Likewise.
55439         * lib/closein.h: Likewise.
55440         * lib/closeout.c: Likewise.
55441         * lib/closeout.h: Likewise.
55442         * lib/concat-filename.c: Likewise.
55443         * lib/copy-file.c: Likewise.
55444         * lib/copy-file.h: Likewise.
55445         * lib/count-one-bits.h: Likewise.
55446         * lib/crc.c: Likewise.
55447         * lib/crc.h: Likewise.
55448         * lib/creat-safer.c: Likewise.
55449         * lib/csharpcomp.c: Likewise.
55450         * lib/csharpcomp.h: Likewise.
55451         * lib/csharpexec.c: Likewise.
55452         * lib/csharpexec.h: Likewise.
55453         * lib/cycle-check.c: Likewise.
55454         * lib/cycle-check.h: Likewise.
55455         * lib/diacrit.c: Likewise.
55456         * lib/diacrit.h: Likewise.
55457         * lib/diffseq.h: Likewise.
55458         * lib/dirchownmod.c: Likewise.
55459         * lib/dirent.in.h: Likewise.
55460         * lib/dirfd.c: Likewise.
55461         * lib/dirfd.h: Likewise.
55462         * lib/dirname.c: Likewise.
55463         * lib/dirname.h: Likewise.
55464         * lib/dummy.c: Likewise.
55465         * lib/dup-safer.c: Likewise.
55466         * lib/dup2.c: Likewise.
55467         * lib/eealloc.h: Likewise.
55468         * lib/error.c: Likewise.
55469         * lib/error.h: Likewise.
55470         * lib/euidaccess.c: Likewise.
55471         * lib/exclude.c: Likewise.
55472         * lib/exclude.h: Likewise.
55473         * lib/execute.c: Likewise.
55474         * lib/execute.h: Likewise.
55475         * lib/exitfail.c: Likewise.
55476         * lib/exitfail.h: Likewise.
55477         * lib/expl.c: Likewise.
55478         * lib/fatal-signal.c: Likewise.
55479         * lib/fatal-signal.h: Likewise.
55480         * lib/fbufmode.c: Likewise.
55481         * lib/fbufmode.h: Likewise.
55482         * lib/fchdir.c: Likewise.
55483         * lib/fchmodat.c: Likewise.
55484         * lib/fchownat.c: Likewise.
55485         * lib/fcntl--.h: Likewise.
55486         * lib/fcntl-safer.h: Likewise.
55487         * lib/fcntl.in.h: Likewise.
55488         * lib/fd-safer.c: Likewise.
55489         * lib/fflush.c: Likewise.
55490         * lib/file-has-acl.c: Likewise.
55491         * lib/file-set.c: Likewise.
55492         * lib/file-type.c: Likewise.
55493         * lib/file-type.h: Likewise.
55494         * lib/fileblocks.c: Likewise.
55495         * lib/filemode.c: Likewise.
55496         * lib/filemode.h: Likewise.
55497         * lib/filename.h: Likewise.
55498         * lib/filenamecat.c: Likewise.
55499         * lib/filenamecat.h: Likewise.
55500         * lib/findprog.c: Likewise.
55501         * lib/findprog.h: Likewise.
55502         * lib/float.in.h: Likewise.
55503         * lib/floor.c: Likewise.
55504         * lib/floorf.c: Likewise.
55505         * lib/floorl.c: Likewise.
55506         * lib/fopen-safer.c: Likewise.
55507         * lib/fopen.c: Likewise.
55508         * lib/fpending.c: Likewise.
55509         * lib/fpending.h: Likewise.
55510         * lib/fprintf.c: Likewise.
55511         * lib/fprintftime.h: Likewise.
55512         * lib/fpucw.h: Likewise.
55513         * lib/fpurge.c: Likewise.
55514         * lib/fpurge.h: Likewise.
55515         * lib/freadable.c: Likewise.
55516         * lib/freadable.h: Likewise.
55517         * lib/freadahead.c: Likewise.
55518         * lib/freadahead.h: Likewise.
55519         * lib/freading.c: Likewise.
55520         * lib/freading.h: Likewise.
55521         * lib/free.c: Likewise.
55522         * lib/freopen.c: Likewise.
55523         * lib/frexp.c: Likewise.
55524         * lib/frexpl.c: Likewise.
55525         * lib/fseek.c: Likewise.
55526         * lib/fseterr.c: Likewise.
55527         * lib/fseterr.h: Likewise.
55528         * lib/fstatat.c: Likewise.
55529         * lib/fstrcmp.c: Likewise.
55530         * lib/fstrcmp.h: Likewise.
55531         * lib/fsusage.c: Likewise.
55532         * lib/fsusage.h: Likewise.
55533         * lib/ftell.c: Likewise.
55534         * lib/ftello.c: Likewise.
55535         * lib/fts-cycle.c: Likewise.
55536         * lib/fts.c: Likewise.
55537         * lib/fts_.h: Likewise.
55538         * lib/full-read.c: Likewise.
55539         * lib/full-read.h: Likewise.
55540         * lib/full-write.c: Likewise.
55541         * lib/full-write.h: Likewise.
55542         * lib/fwritable.c: Likewise.
55543         * lib/fwritable.h: Likewise.
55544         * lib/fwriteerror.c: Likewise.
55545         * lib/fwriteerror.h: Likewise.
55546         * lib/fwriting.c: Likewise.
55547         * lib/fwriting.h: Likewise.
55548         * lib/gcd.c: Likewise.
55549         * lib/gcd.h: Likewise.
55550         * lib/getcwd.c: Likewise.
55551         * lib/getdate.h: Likewise.
55552         * lib/getdate.y: Likewise.
55553         * lib/getdomainname.c: Likewise.
55554         * lib/getdomainname.h: Likewise.
55555         * lib/getgroups.c: Likewise.
55556         * lib/gethostname.c: Likewise.
55557         * lib/gethrxtime.c: Likewise.
55558         * lib/gethrxtime.h: Likewise.
55559         * lib/getloadavg.c: Likewise.
55560         * lib/getndelim2.c: Likewise.
55561         * lib/getndelim2.h: Likewise.
55562         * lib/getnline.c: Likewise.
55563         * lib/getnline.h: Likewise.
55564         * lib/getopt.c: Likewise.
55565         * lib/getopt.in.h: Likewise.
55566         * lib/getopt1.c: Likewise.
55567         * lib/getopt_int.h: Likewise.
55568         * lib/getpagesize.h: Likewise.
55569         * lib/getsubopt.c: Likewise.
55570         * lib/gettime.c: Likewise.
55571         * lib/getugroups.c: Likewise.
55572         * lib/getugroups.h: Likewise.
55573         * lib/getusershell.c: Likewise.
55574         * lib/gl_anyavltree_list1.h: Likewise.
55575         * lib/gl_anyavltree_list2.h: Likewise.
55576         * lib/gl_anyhash_list1.h: Likewise.
55577         * lib/gl_anyhash_list2.h: Likewise.
55578         * lib/gl_anylinked_list1.h: Likewise.
55579         * lib/gl_anylinked_list2.h: Likewise.
55580         * lib/gl_anyrbtree_list1.h: Likewise.
55581         * lib/gl_anyrbtree_list2.h: Likewise.
55582         * lib/gl_anytree_list1.h: Likewise.
55583         * lib/gl_anytree_list2.h: Likewise.
55584         * lib/gl_anytree_oset.h: Likewise.
55585         * lib/gl_anytreehash_list1.h: Likewise.
55586         * lib/gl_anytreehash_list2.h: Likewise.
55587         * lib/gl_array_list.c: Likewise.
55588         * lib/gl_array_list.h: Likewise.
55589         * lib/gl_array_oset.c: Likewise.
55590         * lib/gl_array_oset.h: Likewise.
55591         * lib/gl_avltree_list.c: Likewise.
55592         * lib/gl_avltree_list.h: Likewise.
55593         * lib/gl_avltree_oset.c: Likewise.
55594         * lib/gl_avltree_oset.h: Likewise.
55595         * lib/gl_avltreehash_list.c: Likewise.
55596         * lib/gl_avltreehash_list.h: Likewise.
55597         * lib/gl_carray_list.c: Likewise.
55598         * lib/gl_carray_list.h: Likewise.
55599         * lib/gl_linked_list.c: Likewise.
55600         * lib/gl_linked_list.h: Likewise.
55601         * lib/gl_linkedhash_list.c: Likewise.
55602         * lib/gl_linkedhash_list.h: Likewise.
55603         * lib/gl_list.c: Likewise.
55604         * lib/gl_list.h: Likewise.
55605         * lib/gl_oset.c: Likewise.
55606         * lib/gl_oset.h: Likewise.
55607         * lib/gl_rbtree_list.c: Likewise.
55608         * lib/gl_rbtree_list.h: Likewise.
55609         * lib/gl_rbtree_oset.c: Likewise.
55610         * lib/gl_rbtree_oset.h: Likewise.
55611         * lib/gl_rbtreehash_list.c: Likewise.
55612         * lib/gl_rbtreehash_list.h: Likewise.
55613         * lib/gl_sublist.c: Likewise.
55614         * lib/gl_sublist.h: Likewise.
55615         * lib/group-member.c: Likewise.
55616         * lib/group-member.h: Likewise.
55617         * lib/hard-locale.c: Likewise.
55618         * lib/hard-locale.h: Likewise.
55619         * lib/hash-pjw.c: Likewise.
55620         * lib/hash-pjw.h: Likewise.
55621         * lib/hash-triple.c: Likewise.
55622         * lib/hash.c: Likewise.
55623         * lib/hash.h: Likewise.
55624         * lib/human.c: Likewise.
55625         * lib/human.h: Likewise.
55626         * lib/i-ring.c: Likewise.
55627         * lib/i-ring.h: Likewise.
55628         * lib/idcache.c: Likewise.
55629         * lib/imaxabs.c: Likewise.
55630         * lib/imaxdiv.c: Likewise.
55631         * lib/inet_pton.c: Likewise.
55632         * lib/inet_pton.h: Likewise.
55633         * lib/intprops.h: Likewise.
55634         * lib/inttostr.c: Likewise.
55635         * lib/inttostr.h: Likewise.
55636         * lib/inttypes.in.h: Likewise.
55637         * lib/isapipe.c: Likewise.
55638         * lib/isdir.c: Likewise.
55639         * lib/isnan.c: Likewise.
55640         * lib/isnan.h: Likewise.
55641         * lib/isnanf.c: Likewise.
55642         * lib/isnanf.h: Likewise.
55643         * lib/isnanl-nolibm.h: Likewise.
55644         * lib/isnanl.c: Likewise.
55645         * lib/isnanl.h: Likewise.
55646         * lib/javacomp.c: Likewise.
55647         * lib/javacomp.h: Likewise.
55648         * lib/javaexec.c: Likewise.
55649         * lib/javaexec.h: Likewise.
55650         * lib/javaversion.c: Likewise.
55651         * lib/javaversion.h: Likewise.
55652         * lib/javaversion.java: Likewise.
55653         * lib/lbrkprop.h: Likewise.
55654         * lib/lchmod.h: Likewise.
55655         * lib/lchown.c: Likewise.
55656         * lib/ldexpl.c: Likewise.
55657         * lib/linebreak.c: Likewise.
55658         * lib/linebreak.h: Likewise.
55659         * lib/linebuffer.c: Likewise.
55660         * lib/linebuffer.h: Likewise.
55661         * lib/locale.in.h: Likewise.
55662         * lib/logl.c: Likewise.
55663         * lib/long-options.c: Likewise.
55664         * lib/long-options.h: Likewise.
55665         * lib/lstat.c: Likewise.
55666         * lib/lstat.h: Likewise.
55667         * lib/math.in.h: Likewise.
55668         * lib/mbchar.c: Likewise.
55669         * lib/mbchar.h: Likewise.
55670         * lib/mbfile.h: Likewise.
55671         * lib/mbiter.h: Likewise.
55672         * lib/mbscasecmp.c: Likewise.
55673         * lib/mbscasestr.c: Likewise.
55674         * lib/mbschr.c: Likewise.
55675         * lib/mbscspn.c: Likewise.
55676         * lib/mbslen.c: Likewise.
55677         * lib/mbsncasecmp.c: Likewise.
55678         * lib/mbsnlen.c: Likewise.
55679         * lib/mbspbrk.c: Likewise.
55680         * lib/mbspcasecmp.c: Likewise.
55681         * lib/mbsrchr.c: Likewise.
55682         * lib/mbssep.c: Likewise.
55683         * lib/mbsspn.c: Likewise.
55684         * lib/mbsstr.c: Likewise.
55685         * lib/mbstok_r.c: Likewise.
55686         * lib/mbswidth.c: Likewise.
55687         * lib/mbswidth.h: Likewise.
55688         * lib/mbuiter.h: Likewise.
55689         * lib/memcasecmp.c: Likewise.
55690         * lib/memcasecmp.h: Likewise.
55691         * lib/memchr.c: Likewise.
55692         * lib/memcmp.c: Likewise.
55693         * lib/memcoll.c: Likewise.
55694         * lib/memcoll.h: Likewise.
55695         * lib/memcpy.c: Likewise.
55696         * lib/memrchr.c: Likewise.
55697         * lib/mkancesdirs.c: Likewise.
55698         * lib/mkdir-p.c: Likewise.
55699         * lib/mkdir-p.h: Likewise.
55700         * lib/mkdir.c: Likewise.
55701         * lib/mkdirat.c: Likewise.
55702         * lib/mkdtemp.c: Likewise.
55703         * lib/mkstemp-safer.c: Likewise.
55704         * lib/mkstemp.c: Likewise.
55705         * lib/modechange.c: Likewise.
55706         * lib/modechange.h: Likewise.
55707         * lib/mountlist.c: Likewise.
55708         * lib/mountlist.h: Likewise.
55709         * lib/mpsort.c: Likewise.
55710         * lib/nanosleep.c: Likewise.
55711         * lib/obstack.c: Likewise.
55712         * lib/obstack.h: Likewise.
55713         * lib/open-safer.c: Likewise.
55714         * lib/open.c: Likewise.
55715         * lib/openat-die.c: Likewise.
55716         * lib/openat-priv.h: Likewise.
55717         * lib/openat-proc.c: Likewise.
55718         * lib/openat.c: Likewise.
55719         * lib/openat.h: Likewise.
55720         * lib/pagealign_alloc.c: Likewise.
55721         * lib/pagealign_alloc.h: Likewise.
55722         * lib/physmem.c: Likewise.
55723         * lib/physmem.h: Likewise.
55724         * lib/pipe-safer.c: Likewise.
55725         * lib/pipe.c: Likewise.
55726         * lib/pipe.h: Likewise.
55727         * lib/posixtm.c: Likewise.
55728         * lib/posixtm.h: Likewise.
55729         * lib/posixver.c: Likewise.
55730         * lib/printf-frexp.c: Likewise.
55731         * lib/printf-frexp.h: Likewise.
55732         * lib/printf-frexpl.c: Likewise.
55733         * lib/printf-frexpl.h: Likewise.
55734         * lib/printf.c: Likewise.
55735         * lib/progname.c: Likewise.
55736         * lib/progname.h: Likewise.
55737         * lib/progreloc.c: Likewise.
55738         * lib/putenv.c: Likewise.
55739         * lib/quote.c: Likewise.
55740         * lib/quote.h: Likewise.
55741         * lib/quotearg.c: Likewise.
55742         * lib/quotearg.h: Likewise.
55743         * lib/raise.c: Likewise.
55744         * lib/readline.c: Likewise.
55745         * lib/readline.h: Likewise.
55746         * lib/readlink.c: Likewise.
55747         * lib/readtokens.c: Likewise.
55748         * lib/readtokens.h: Likewise.
55749         * lib/readtokens0.c: Likewise.
55750         * lib/readtokens0.h: Likewise.
55751         * lib/readutmp.c: Likewise.
55752         * lib/readutmp.h: Likewise.
55753         * lib/realloc.c: Likewise.
55754         * lib/relocwrapper.c: Likewise.
55755         * lib/rename-dest-slash.c: Likewise.
55756         * lib/rename.c: Likewise.
55757         * lib/rmdir.c: Likewise.
55758         * lib/rpmatch.c: Likewise.
55759         * lib/safe-read.c: Likewise.
55760         * lib/safe-read.h: Likewise.
55761         * lib/safe-write.c: Likewise.
55762         * lib/safe-write.h: Likewise.
55763         * lib/same-inode.h: Likewise.
55764         * lib/same.c: Likewise.
55765         * lib/same.h: Likewise.
55766         * lib/save-cwd.c: Likewise.
55767         * lib/save-cwd.h: Likewise.
55768         * lib/savedir.c: Likewise.
55769         * lib/savedir.h: Likewise.
55770         * lib/savewd.c: Likewise.
55771         * lib/savewd.h: Likewise.
55772         * lib/search.in.h: Likewise.
55773         * lib/setenv.c: Likewise.
55774         * lib/setenv.h: Likewise.
55775         * lib/settime.c: Likewise.
55776         * lib/sh-quote.c: Likewise.
55777         * lib/sh-quote.h: Likewise.
55778         * lib/sig2str.c: Likewise.
55779         * lib/sig2str.h: Likewise.
55780         * lib/signal.in.h: Likewise.
55781         * lib/signbitd.c: Likewise.
55782         * lib/signbitf.c: Likewise.
55783         * lib/signbitl.c: Likewise.
55784         * lib/sigprocmask.c: Likewise.
55785         * lib/sincosl.c: Likewise.
55786         * lib/sleep.c: Likewise.
55787         * lib/sprintf.c: Likewise.
55788         * lib/sqrtl.c: Likewise.
55789         * lib/stat-time.h: Likewise.
55790         * lib/stdio--.h: Likewise.
55791         * lib/stdio-safer.h: Likewise.
55792         * lib/stdlib--.h: Likewise.
55793         * lib/stdlib-safer.h: Likewise.
55794         * lib/stdlib.in.h: Likewise.
55795         * lib/stpcpy.c: Likewise.
55796         * lib/stpncpy.c: Likewise.
55797         * lib/strchrnul.c: Likewise.
55798         * lib/strcspn.c: Likewise.
55799         * lib/strerror.c: Likewise.
55800         * lib/strftime.c: Likewise.
55801         * lib/strftime.h: Likewise.
55802         * lib/striconveh.c: Likewise.
55803         * lib/striconveh.h: Likewise.
55804         * lib/striconveha.c: Likewise.
55805         * lib/striconveha.h: Likewise.
55806         * lib/stripslash.c: Likewise.
55807         * lib/strnlen1.c: Likewise.
55808         * lib/strnlen1.h: Likewise.
55809         * lib/strtod.c: Likewise.
55810         * lib/strtoimax.c: Likewise.
55811         * lib/strtok_r.c: Likewise.
55812         * lib/strtol.c: Likewise.
55813         * lib/strtoll.c: Likewise.
55814         * lib/strtoul.c: Likewise.
55815         * lib/strtoull.c: Likewise.
55816         * lib/sysexits.in.h: Likewise.
55817         * lib/tempname.c: Likewise.
55818         * lib/tempname.h: Likewise.
55819         * lib/timespec.h: Likewise.
55820         * lib/tls.c: Likewise.
55821         * lib/tls.h: Likewise.
55822         * lib/tmpdir.c: Likewise.
55823         * lib/tmpdir.h: Likewise.
55824         * lib/tmpfile-safer.c: Likewise.
55825         * lib/tmpfile.c: Likewise.
55826         * lib/trigl.c: Likewise.
55827         * lib/trigl.h: Likewise.
55828         * lib/trim.c: Likewise.
55829         * lib/trim.h: Likewise.
55830         * lib/trunc.c: Likewise.
55831         * lib/truncf.c: Likewise.
55832         * lib/truncl.c: Likewise.
55833         * lib/tsearch.c: Likewise.
55834         * lib/unicodeio.c: Likewise.
55835         * lib/unicodeio.h: Likewise.
55836         * lib/unistd--.h: Likewise.
55837         * lib/unistd-safer.h: Likewise.
55838         * lib/unistdio/ulc-fprintf.c: Likewise.
55839         * lib/unistdio/ulc-vfprintf.c: Likewise.
55840         * lib/unlinkdir.c: Likewise.
55841         * lib/unlinkdir.h: Likewise.
55842         * lib/unlocked-io.h: Likewise.
55843         * lib/unsetenv.c: Likewise.
55844         * lib/userspec.c: Likewise.
55845         * lib/utime.c: Likewise.
55846         * lib/utimecmp.c: Likewise.
55847         * lib/utimecmp.h: Likewise.
55848         * lib/utimens.c: Likewise.
55849         * lib/verify.h: Likewise.
55850         * lib/verror.c: Likewise.
55851         * lib/verror.h: Likewise.
55852         * lib/version-etc-fsf.c: Likewise.
55853         * lib/version-etc.c: Likewise.
55854         * lib/version-etc.h: Likewise.
55855         * lib/vfprintf.c: Likewise.
55856         * lib/vprintf.c: Likewise.
55857         * lib/vsprintf.c: Likewise.
55858         * lib/w32spawn.h: Likewise.
55859         * lib/wait-process.c: Likewise.
55860         * lib/wait-process.h: Likewise.
55861         * lib/wcwidth.c: Likewise.
55862         * lib/write-any-file.c: Likewise.
55863         * lib/xalloc-die.c: Likewise.
55864         * lib/xalloc.h: Likewise.
55865         * lib/xasprintf.c: Likewise.
55866         * lib/xgetcwd.c: Likewise.
55867         * lib/xgetcwd.h: Likewise.
55868         * lib/xgetdomainname.c: Likewise.
55869         * lib/xgetdomainname.h: Likewise.
55870         * lib/xgethostname.c: Likewise.
55871         * lib/xmalloc.c: Likewise.
55872         * lib/xmalloca.c: Likewise.
55873         * lib/xmalloca.h: Likewise.
55874         * lib/xmemcoll.c: Likewise.
55875         * lib/xnanosleep.c: Likewise.
55876         * lib/xreadlink.c: Likewise.
55877         * lib/xreadlink.h: Likewise.
55878         * lib/xsetenv.c: Likewise.
55879         * lib/xsetenv.h: Likewise.
55880         * lib/xstriconv.c: Likewise.
55881         * lib/xstriconv.h: Likewise.
55882         * lib/xstrndup.c: Likewise.
55883         * lib/xstrndup.h: Likewise.
55884         * lib/xstrtod.c: Likewise.
55885         * lib/xstrtod.h: Likewise.
55886         * lib/xstrtol-error.c: Likewise.
55887         * lib/xstrtol.c: Likewise.
55888         * lib/xstrtol.h: Likewise.
55889         * lib/xtime.h: Likewise.
55890         * lib/xvasprintf.c: Likewise.
55891         * lib/xvasprintf.h: Likewise.
55892         * lib/yesno.c: Likewise.
55893         * lib/yesno.h: Likewise.
55894         * posix-modules: Likewise.
55895         * tests/test-alloca-opt.c: Likewise.
55896         * tests/test-arcfour.c: Likewise.
55897         * tests/test-arctwo.c: Likewise.
55898         * tests/test-argmatch.c: Likewise.
55899         * tests/test-argp-2.sh: Likewise.
55900         * tests/test-argp.c: Likewise.
55901         * tests/test-arpa_inet.c: Likewise.
55902         * tests/test-array_list.c: Likewise.
55903         * tests/test-array_oset.c: Likewise.
55904         * tests/test-atexit.c: Likewise.
55905         * tests/test-avltree_list.c: Likewise.
55906         * tests/test-avltree_oset.c: Likewise.
55907         * tests/test-avltreehash_list.c: Likewise.
55908         * tests/test-base64.c: Likewise.
55909         * tests/test-binary-io.c: Likewise.
55910         * tests/test-byteswap.c: Likewise.
55911         * tests/test-c-ctype.c: Likewise.
55912         * tests/test-c-strcasecmp.c: Likewise.
55913         * tests/test-c-strcasestr.c: Likewise.
55914         * tests/test-c-strncasecmp.c: Likewise.
55915         * tests/test-c-strstr.c: Likewise.
55916         * tests/test-canonicalize-lgpl.c: Likewise.
55917         * tests/test-canonicalize.c: Likewise.
55918         * tests/test-carray_list.c: Likewise.
55919         * tests/test-ceilf.c: Likewise.
55920         * tests/test-ceill.c: Likewise.
55921         * tests/test-count-one-bits.c: Likewise.
55922         * tests/test-crc.c: Likewise.
55923         * tests/test-dirname.c: Likewise.
55924         * tests/test-fbufmode.c: Likewise.
55925         * tests/test-fcntl.c: Likewise.
55926         * tests/test-fflush.c: Likewise.
55927         * tests/test-floorf.c: Likewise.
55928         * tests/test-floorl.c: Likewise.
55929         * tests/test-fopen.c: Likewise.
55930         * tests/test-fprintf-posix.c: Likewise.
55931         * tests/test-fprintf-posix.h: Likewise.
55932         * tests/test-fpurge.c: Likewise.
55933         * tests/test-freadable.c: Likewise.
55934         * tests/test-freadahead.c: Likewise.
55935         * tests/test-freading.c: Likewise.
55936         * tests/test-freopen.c: Likewise.
55937         * tests/test-frexp.c: Likewise.
55938         * tests/test-frexpl.c: Likewise.
55939         * tests/test-fseek.c: Likewise.
55940         * tests/test-fseeko.c: Likewise.
55941         * tests/test-fseterr.c: Likewise.
55942         * tests/test-fstrcmp.c: Likewise.
55943         * tests/test-ftell.c: Likewise.
55944         * tests/test-ftello.c: Likewise.
55945         * tests/test-fwritable.c: Likewise.
55946         * tests/test-fwriting.c: Likewise.
55947         * tests/test-getaddrinfo.c: Likewise.
55948         * tests/test-getpass.c: Likewise.
55949         * tests/test-gettimeofday.c: Likewise.
55950         * tests/test-hmac-md5.c: Likewise.
55951         * tests/test-hmac-sha1.c: Likewise.
55952         * tests/test-iconv.c: Likewise.
55953         * tests/test-iconvme.c: Likewise.
55954         * tests/test-inttypes.c: Likewise.
55955         * tests/test-isnan.c: Likewise.
55956         * tests/test-isnanf.c: Likewise.
55957         * tests/test-isnanl-nolibm.c: Likewise.
55958         * tests/test-isnanl.c: Likewise.
55959         * tests/test-isnanl.h: Likewise.
55960         * tests/test-ldexpl.c: Likewise.
55961         * tests/test-linked_list.c: Likewise.
55962         * tests/test-linkedhash_list.c: Likewise.
55963         * tests/test-locale.c: Likewise.
55964         * tests/test-localename.c: Likewise.
55965         * tests/test-lock.c: Likewise.
55966         * tests/test-lseek.c: Likewise.
55967         * tests/test-malloca.c: Likewise.
55968         * tests/test-math.c: Likewise.
55969         * tests/test-mbscasecmp.c: Likewise.
55970         * tests/test-mbscasestr1.c: Likewise.
55971         * tests/test-mbscasestr2.c: Likewise.
55972         * tests/test-mbscasestr3.c: Likewise.
55973         * tests/test-mbscasestr4.c: Likewise.
55974         * tests/test-mbschr.c: Likewise.
55975         * tests/test-mbscspn.c: Likewise.
55976         * tests/test-mbsncasecmp.c: Likewise.
55977         * tests/test-mbspbrk.c: Likewise.
55978         * tests/test-mbspcasecmp.c: Likewise.
55979         * tests/test-mbsrchr.c: Likewise.
55980         * tests/test-mbsspn.c: Likewise.
55981         * tests/test-mbsstr1.c: Likewise.
55982         * tests/test-mbsstr2.c: Likewise.
55983         * tests/test-mbsstr3.c: Likewise.
55984         * tests/test-md5.c: Likewise.
55985         * tests/test-memmem.c: Likewise.
55986         * tests/test-netinet_in.c: Likewise.
55987         * tests/test-open.c: Likewise.
55988         * tests/test-printf-frexp.c: Likewise.
55989         * tests/test-printf-frexpl.c: Likewise.
55990         * tests/test-printf-posix.c: Likewise.
55991         * tests/test-printf-posix.h: Likewise.
55992         * tests/test-rbtree_list.c: Likewise.
55993         * tests/test-rbtree_oset.c: Likewise.
55994         * tests/test-rbtreehash_list.c: Likewise.
55995         * tests/test-read-file.c: Likewise.
55996         * tests/test-rijndael.c: Likewise.
55997         * tests/test-search.c: Likewise.
55998         * tests/test-signbit.c: Likewise.
55999         * tests/test-sleep.c: Likewise.
56000         * tests/test-snprintf-posix.c: Likewise.
56001         * tests/test-snprintf-posix.h: Likewise.
56002         * tests/test-snprintf.c: Likewise.
56003         * tests/test-sprintf-posix.c: Likewise.
56004         * tests/test-sprintf-posix.h: Likewise.
56005         * tests/test-stat-time.c: Likewise.
56006         * tests/test-stdbool.c: Likewise.
56007         * tests/test-stdint.c: Likewise.
56008         * tests/test-stdio.c: Likewise.
56009         * tests/test-stdlib.c: Likewise.
56010         * tests/test-stpncpy.c: Likewise.
56011         * tests/test-strcasestr.c: Likewise.
56012         * tests/test-striconv.c: Likewise.
56013         * tests/test-striconveh.c: Likewise.
56014         * tests/test-striconveha.c: Likewise.
56015         * tests/test-string.c: Likewise.
56016         * tests/test-sys_select.c: Likewise.
56017         * tests/test-sys_socket.c: Likewise.
56018         * tests/test-sys_stat.c: Likewise.
56019         * tests/test-sys_time.c: Likewise.
56020         * tests/test-sysexits.c: Likewise.
56021         * tests/test-time.c: Likewise.
56022         * tests/test-tls.c: Likewise.
56023         * tests/test-trunc.c: Likewise.
56024         * tests/test-truncf.c: Likewise.
56025         * tests/test-truncl.c: Likewise.
56026         * tests/test-unistd.c: Likewise.
56027         * tests/test-vasnprintf-posix.c: Likewise.
56028         * tests/test-vasnprintf-posix2.c: Likewise.
56029         * tests/test-vasnprintf.c: Likewise.
56030         * tests/test-vasprintf-posix.c: Likewise.
56031         * tests/test-vasprintf.c: Likewise.
56032         * tests/test-verify.c: Likewise.
56033         * tests/test-vfprintf-posix.c: Likewise.
56034         * tests/test-vprintf-posix.c: Likewise.
56035         * tests/test-vsnprintf-posix.c: Likewise.
56036         * tests/test-vsnprintf.c: Likewise.
56037         * tests/test-vsprintf-posix.c: Likewise.
56038         * tests/test-wchar.c: Likewise.
56039         * tests/test-wctype.c: Likewise.
56040         * tests/test-wcwidth.c: Likewise.
56041         * tests/test-xstrtol.c: Likewise.
56042         * tests/test-xvasprintf.c: Likewise.
56043         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
56044         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
56045         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
56046         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
56047         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
56048         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
56049         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
56050         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
56051         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
56052         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
56053         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
56054         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
56055         * tests/uniname/test-uninames.c: Likewise.
56056         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
56057         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
56058         * tests/unistdio/test-u16-printf1.h: Likewise.
56059         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
56060         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
56061         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
56062         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
56063         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
56064         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
56065         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
56066         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
56067         * tests/unistdio/test-u32-printf1.h: Likewise.
56068         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
56069         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
56070         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
56071         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
56072         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
56073         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
56074         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
56075         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
56076         * tests/unistdio/test-u8-printf1.h: Likewise.
56077         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
56078         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
56079         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
56080         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
56081         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
56082         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
56083         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
56084         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
56085         * tests/unistdio/test-ulc-printf1.h: Likewise.
56086         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
56087         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
56088         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
56089         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
56090         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
56091         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
56092         * tests/uniwidth/test-u16-strwidth.c: Likewise.
56093         * tests/uniwidth/test-u16-width.c: Likewise.
56094         * tests/uniwidth/test-u32-strwidth.c: Likewise.
56095         * tests/uniwidth/test-u32-width.c: Likewise.
56096         * tests/uniwidth/test-u8-strwidth.c: Likewise.
56097         * tests/uniwidth/test-u8-width.c: Likewise.
56098         * tests/uniwidth/test-uc_width.c: Likewise.
56099         * config/srclist-update: Likewise.
56100         (fixlicense): Update to GPLv3+.
56101
56102         Change copyright notice from LGPLv2.1+ to LGPLv3+.
56103         * tests/test-tsearch.c: Change copyright notice.
56104
56105         Change copyright notice from LGPLv2.0+ to LGPLv3+.
56106         * lib/c-strcaseeq.h: Change copyright notice.
56107         * lib/streq.h: Likewise.
56108         * lib/uniconv.h: Likewise.
56109         * lib/uniconv/u-conv-from-enc.h: Likewise.
56110         * lib/uniconv/u-conv-to-enc.h: Likewise.
56111         * lib/uniconv/u-strconv-from-enc.h: Likewise.
56112         * lib/uniconv/u-strconv-to-enc.h: Likewise.
56113         * lib/uniconv/u16-conv-from-enc.c: Likewise.
56114         * lib/uniconv/u16-conv-to-enc.c: Likewise.
56115         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
56116         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
56117         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
56118         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
56119         * lib/uniconv/u32-conv-from-enc.c: Likewise.
56120         * lib/uniconv/u32-conv-to-enc.c: Likewise.
56121         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
56122         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
56123         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
56124         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
56125         * lib/uniconv/u8-conv-from-enc.c: Likewise.
56126         * lib/uniconv/u8-conv-to-enc.c: Likewise.
56127         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
56128         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
56129         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
56130         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
56131         * lib/uniname.h: Likewise.
56132         * lib/uniname/uniname.c: Likewise.
56133         * lib/unistdio.h: Likewise.
56134         * lib/unistdio/u-asnprintf.h: Likewise.
56135         * lib/unistdio/u-asprintf.h: Likewise.
56136         * lib/unistdio/u-printf-args.c: Likewise.
56137         * lib/unistdio/u-printf-args.h: Likewise.
56138         * lib/unistdio/u-printf-parse.h: Likewise.
56139         * lib/unistdio/u-snprintf.h: Likewise.
56140         * lib/unistdio/u-sprintf.h: Likewise.
56141         * lib/unistdio/u-vasprintf.h: Likewise.
56142         * lib/unistdio/u-vsnprintf.h: Likewise.
56143         * lib/unistdio/u-vsprintf.h: Likewise.
56144         * lib/unistdio/u16-asnprintf.c: Likewise.
56145         * lib/unistdio/u16-asprintf.c: Likewise.
56146         * lib/unistdio/u16-printf-parse.c: Likewise.
56147         * lib/unistdio/u16-snprintf.c: Likewise.
56148         * lib/unistdio/u16-sprintf.c: Likewise.
56149         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
56150         * lib/unistdio/u16-u16-asprintf.c: Likewise.
56151         * lib/unistdio/u16-u16-snprintf.c: Likewise.
56152         * lib/unistdio/u16-u16-sprintf.c: Likewise.
56153         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
56154         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
56155         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
56156         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
56157         * lib/unistdio/u16-vasnprintf.c: Likewise.
56158         * lib/unistdio/u16-vasprintf.c: Likewise.
56159         * lib/unistdio/u16-vsnprintf.c: Likewise.
56160         * lib/unistdio/u16-vsprintf.c: Likewise.
56161         * lib/unistdio/u32-asnprintf.c: Likewise.
56162         * lib/unistdio/u32-asprintf.c: Likewise.
56163         * lib/unistdio/u32-printf-parse.c: Likewise.
56164         * lib/unistdio/u32-snprintf.c: Likewise.
56165         * lib/unistdio/u32-sprintf.c: Likewise.
56166         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
56167         * lib/unistdio/u32-u32-asprintf.c: Likewise.
56168         * lib/unistdio/u32-u32-snprintf.c: Likewise.
56169         * lib/unistdio/u32-u32-sprintf.c: Likewise.
56170         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
56171         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
56172         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
56173         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
56174         * lib/unistdio/u32-vasnprintf.c: Likewise.
56175         * lib/unistdio/u32-vasprintf.c: Likewise.
56176         * lib/unistdio/u32-vsnprintf.c: Likewise.
56177         * lib/unistdio/u32-vsprintf.c: Likewise.
56178         * lib/unistdio/u8-asnprintf.c: Likewise.
56179         * lib/unistdio/u8-asprintf.c: Likewise.
56180         * lib/unistdio/u8-printf-parse.c: Likewise.
56181         * lib/unistdio/u8-snprintf.c: Likewise.
56182         * lib/unistdio/u8-sprintf.c: Likewise.
56183         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
56184         * lib/unistdio/u8-u8-asprintf.c: Likewise.
56185         * lib/unistdio/u8-u8-snprintf.c: Likewise.
56186         * lib/unistdio/u8-u8-sprintf.c: Likewise.
56187         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
56188         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
56189         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
56190         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
56191         * lib/unistdio/u8-vasnprintf.c: Likewise.
56192         * lib/unistdio/u8-vasprintf.c: Likewise.
56193         * lib/unistdio/u8-vsnprintf.c: Likewise.
56194         * lib/unistdio/u8-vsprintf.c: Likewise.
56195         * lib/unistdio/ulc-asnprintf.c: Likewise.
56196         * lib/unistdio/ulc-asprintf.c: Likewise.
56197         * lib/unistdio/ulc-printf-parse.c: Likewise.
56198         * lib/unistdio/ulc-snprintf.c: Likewise.
56199         * lib/unistdio/ulc-sprintf.c: Likewise.
56200         * lib/unistdio/ulc-vasnprintf.c: Likewise.
56201         * lib/unistdio/ulc-vasprintf.c: Likewise.
56202         * lib/unistdio/ulc-vsnprintf.c: Likewise.
56203         * lib/unistdio/ulc-vsprintf.c: Likewise.
56204         * lib/unistr.h: Likewise.
56205         * lib/unistr/u-cpy-alloc.h: Likewise.
56206         * lib/unistr/u-cpy.h: Likewise.
56207         * lib/unistr/u-endswith.h: Likewise.
56208         * lib/unistr/u-move.h: Likewise.
56209         * lib/unistr/u-set.h: Likewise.
56210         * lib/unistr/u-startswith.h: Likewise.
56211         * lib/unistr/u-stpcpy.h: Likewise.
56212         * lib/unistr/u-stpncpy.h: Likewise.
56213         * lib/unistr/u-strcat.h: Likewise.
56214         * lib/unistr/u-strcpy.h: Likewise.
56215         * lib/unistr/u-strcspn.h: Likewise.
56216         * lib/unistr/u-strdup.h: Likewise.
56217         * lib/unistr/u-strlen.h: Likewise.
56218         * lib/unistr/u-strncat.h: Likewise.
56219         * lib/unistr/u-strncpy.h: Likewise.
56220         * lib/unistr/u-strnlen.h: Likewise.
56221         * lib/unistr/u-strpbrk.h: Likewise.
56222         * lib/unistr/u-strspn.h: Likewise.
56223         * lib/unistr/u-strstr.h: Likewise.
56224         * lib/unistr/u-strtok.h: Likewise.
56225         * lib/unistr/u16-check.c: Likewise.
56226         * lib/unistr/u16-chr.c: Likewise.
56227         * lib/unistr/u16-cmp.c: Likewise.
56228         * lib/unistr/u16-cpy-alloc.c: Likewise.
56229         * lib/unistr/u16-cpy.c: Likewise.
56230         * lib/unistr/u16-endswith.c: Likewise.
56231         * lib/unistr/u16-mblen.c: Likewise.
56232         * lib/unistr/u16-mbsnlen.c: Likewise.
56233         * lib/unistr/u16-mbtouc-aux.c: Likewise.
56234         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
56235         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
56236         * lib/unistr/u16-mbtouc.c: Likewise.
56237         * lib/unistr/u16-mbtoucr.c: Likewise.
56238         * lib/unistr/u16-move.c: Likewise.
56239         * lib/unistr/u16-next.c: Likewise.
56240         * lib/unistr/u16-prev.c: Likewise.
56241         * lib/unistr/u16-set.c: Likewise.
56242         * lib/unistr/u16-startswith.c: Likewise.
56243         * lib/unistr/u16-stpcpy.c: Likewise.
56244         * lib/unistr/u16-stpncpy.c: Likewise.
56245         * lib/unistr/u16-strcat.c: Likewise.
56246         * lib/unistr/u16-strchr.c: Likewise.
56247         * lib/unistr/u16-strcmp.c: Likewise.
56248         * lib/unistr/u16-strcpy.c: Likewise.
56249         * lib/unistr/u16-strcspn.c: Likewise.
56250         * lib/unistr/u16-strdup.c: Likewise.
56251         * lib/unistr/u16-strlen.c: Likewise.
56252         * lib/unistr/u16-strmblen.c: Likewise.
56253         * lib/unistr/u16-strmbtouc.c: Likewise.
56254         * lib/unistr/u16-strncat.c: Likewise.
56255         * lib/unistr/u16-strncmp.c: Likewise.
56256         * lib/unistr/u16-strncpy.c: Likewise.
56257         * lib/unistr/u16-strnlen.c: Likewise.
56258         * lib/unistr/u16-strpbrk.c: Likewise.
56259         * lib/unistr/u16-strrchr.c: Likewise.
56260         * lib/unistr/u16-strspn.c: Likewise.
56261         * lib/unistr/u16-strstr.c: Likewise.
56262         * lib/unistr/u16-strtok.c: Likewise.
56263         * lib/unistr/u16-to-u32.c: Likewise.
56264         * lib/unistr/u16-to-u8.c: Likewise.
56265         * lib/unistr/u16-uctomb-aux.c: Likewise.
56266         * lib/unistr/u16-uctomb.c: Likewise.
56267         * lib/unistr/u32-check.c: Likewise.
56268         * lib/unistr/u32-chr.c: Likewise.
56269         * lib/unistr/u32-cmp.c: Likewise.
56270         * lib/unistr/u32-cpy-alloc.c: Likewise.
56271         * lib/unistr/u32-cpy.c: Likewise.
56272         * lib/unistr/u32-endswith.c: Likewise.
56273         * lib/unistr/u32-mblen.c: Likewise.
56274         * lib/unistr/u32-mbsnlen.c: Likewise.
56275         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
56276         * lib/unistr/u32-mbtouc.c: Likewise.
56277         * lib/unistr/u32-mbtoucr.c: Likewise.
56278         * lib/unistr/u32-move.c: Likewise.
56279         * lib/unistr/u32-next.c: Likewise.
56280         * lib/unistr/u32-prev.c: Likewise.
56281         * lib/unistr/u32-set.c: Likewise.
56282         * lib/unistr/u32-startswith.c: Likewise.
56283         * lib/unistr/u32-stpcpy.c: Likewise.
56284         * lib/unistr/u32-stpncpy.c: Likewise.
56285         * lib/unistr/u32-strcat.c: Likewise.
56286         * lib/unistr/u32-strchr.c: Likewise.
56287         * lib/unistr/u32-strcmp.c: Likewise.
56288         * lib/unistr/u32-strcpy.c: Likewise.
56289         * lib/unistr/u32-strcspn.c: Likewise.
56290         * lib/unistr/u32-strdup.c: Likewise.
56291         * lib/unistr/u32-strlen.c: Likewise.
56292         * lib/unistr/u32-strmblen.c: Likewise.
56293         * lib/unistr/u32-strmbtouc.c: Likewise.
56294         * lib/unistr/u32-strncat.c: Likewise.
56295         * lib/unistr/u32-strncmp.c: Likewise.
56296         * lib/unistr/u32-strncpy.c: Likewise.
56297         * lib/unistr/u32-strnlen.c: Likewise.
56298         * lib/unistr/u32-strpbrk.c: Likewise.
56299         * lib/unistr/u32-strrchr.c: Likewise.
56300         * lib/unistr/u32-strspn.c: Likewise.
56301         * lib/unistr/u32-strstr.c: Likewise.
56302         * lib/unistr/u32-strtok.c: Likewise.
56303         * lib/unistr/u32-to-u16.c: Likewise.
56304         * lib/unistr/u32-to-u8.c: Likewise.
56305         * lib/unistr/u32-uctomb.c: Likewise.
56306         * lib/unistr/u8-check.c: Likewise.
56307         * lib/unistr/u8-chr.c: Likewise.
56308         * lib/unistr/u8-cmp.c: Likewise.
56309         * lib/unistr/u8-cpy-alloc.c: Likewise.
56310         * lib/unistr/u8-cpy.c: Likewise.
56311         * lib/unistr/u8-endswith.c: Likewise.
56312         * lib/unistr/u8-mblen.c: Likewise.
56313         * lib/unistr/u8-mbsnlen.c: Likewise.
56314         * lib/unistr/u8-mbtouc-aux.c: Likewise.
56315         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
56316         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
56317         * lib/unistr/u8-mbtouc.c: Likewise.
56318         * lib/unistr/u8-mbtoucr.c: Likewise.
56319         * lib/unistr/u8-move.c: Likewise.
56320         * lib/unistr/u8-next.c: Likewise.
56321         * lib/unistr/u8-prev.c: Likewise.
56322         * lib/unistr/u8-set.c: Likewise.
56323         * lib/unistr/u8-startswith.c: Likewise.
56324         * lib/unistr/u8-stpcpy.c: Likewise.
56325         * lib/unistr/u8-stpncpy.c: Likewise.
56326         * lib/unistr/u8-strcat.c: Likewise.
56327         * lib/unistr/u8-strchr.c: Likewise.
56328         * lib/unistr/u8-strcmp.c: Likewise.
56329         * lib/unistr/u8-strcpy.c: Likewise.
56330         * lib/unistr/u8-strcspn.c: Likewise.
56331         * lib/unistr/u8-strdup.c: Likewise.
56332         * lib/unistr/u8-strlen.c: Likewise.
56333         * lib/unistr/u8-strmblen.c: Likewise.
56334         * lib/unistr/u8-strmbtouc.c: Likewise.
56335         * lib/unistr/u8-strncat.c: Likewise.
56336         * lib/unistr/u8-strncmp.c: Likewise.
56337         * lib/unistr/u8-strncpy.c: Likewise.
56338         * lib/unistr/u8-strnlen.c: Likewise.
56339         * lib/unistr/u8-strpbrk.c: Likewise.
56340         * lib/unistr/u8-strrchr.c: Likewise.
56341         * lib/unistr/u8-strspn.c: Likewise.
56342         * lib/unistr/u8-strstr.c: Likewise.
56343         * lib/unistr/u8-strtok.c: Likewise.
56344         * lib/unistr/u8-to-u16.c: Likewise.
56345         * lib/unistr/u8-to-u32.c: Likewise.
56346         * lib/unistr/u8-uctomb-aux.c: Likewise.
56347         * lib/unistr/u8-uctomb.c: Likewise.
56348         * lib/unitypes.h: Likewise.
56349         * lib/uniwidth.h: Likewise.
56350         * lib/uniwidth/cjk.h: Likewise.
56351         * lib/uniwidth/u16-strwidth.c: Likewise.
56352         * lib/uniwidth/u16-width.c: Likewise.
56353         * lib/uniwidth/u32-strwidth.c: Likewise.
56354         * lib/uniwidth/u32-width.c: Likewise.
56355         * lib/uniwidth/u8-strwidth.c: Likewise.
56356         * lib/uniwidth/u8-width.c: Likewise.
56357         * lib/uniwidth/width.c: Likewise.
56358
56359 2007-10-07  Bruno Haible  <bruno@clisp.org>
56360
56361         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
56362         The file is still under LGPL (see modules/inttypes).
56363
56364 2007-10-06  Bruno Haible  <bruno@clisp.org>
56365
56366         * modules/trunc (Dependencies): Add 'extensions'.
56367         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
56368         Reported by Ben Pfaff <blp@gnu.org>.
56369
56370 2007-10-06  Bruno Haible  <bruno@clisp.org>
56371
56372         * modules/freopen-tests: New file.
56373         * tests/test-freopen.c: New file.
56374
56375         * modules/fopen-tests: New file.
56376         * tests/test-fopen.c: New file.
56377
56378         * modules/fopen: New file.
56379         * lib/fopen.c: New file.
56380         * m4/fopen.m4: New file.
56381         * modules/freopen: New file.
56382         * lib/freopen.c: New file.
56383         * m4/freopen.m4: New file.
56384         * lib/stdio.in.h (fopen, freopen): New declarations.
56385         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
56386         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
56387         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
56388         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
56389         * doc/functions/fopen.texi: Mention the 'fopen' module.
56390         * doc/functions/freopen.texi: Mention the 'freopen' module.
56391
56392 2007-10-06  Bruno Haible  <bruno@clisp.org>
56393
56394         * modules/open-tests: New file.
56395         * tests/test-open.c: New file.
56396
56397         * modules/open: New file.
56398         * lib/open.c: New file.
56399         * m4/open.m4: New file.
56400         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
56401         lib/open.c does.
56402         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
56403         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
56404         macros.
56405         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
56406         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
56407         REPLACE_OPEN.
56408         * doc/functions/open.texi: Mention the 'open' module.
56409
56410 2007-10-04  Bruno Haible  <bruno@clisp.org>
56411
56412         * modules/ceill-tests: New file.
56413         * tests/test-ceill.c: New file.
56414
56415         * modules/ceill: New file.
56416         * lib/ceill.c: Replace entire file.
56417         * m4/ceill.m4: New file.
56418         * lib/math.in.h (ceill): Replace declaration.
56419         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
56420         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
56421         * doc/functions/ceill.texi: Mention the 'ceill' module.
56422         * modules/mathl (Files): Remove lib/ceill.c.
56423         (Depends-on): Add ceill.
56424
56425 2007-10-04  Bruno Haible  <bruno@clisp.org>
56426
56427         * modules/ceilf-tests: New file.
56428         * tests/test-ceilf.c: New file.
56429
56430         * modules/ceilf: New file.
56431         * lib/ceil.c: New file.
56432         * lib/ceilf.c: New file.
56433         * m4/ceilf.m4: New file.
56434         * lib/math.in.h (ceilf): New declaration.
56435         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
56436         HAVE_DECL_CEILF.
56437         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
56438         HAVE_DECL_CEILF.
56439         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
56440
56441 2007-10-04  Bruno Haible  <bruno@clisp.org>
56442
56443         * modules/floorl-tests: New file.
56444         * tests/test-floorl.c: New file.
56445
56446         * modules/floorl: New file.
56447         * lib/floorl.c: Replace entire file.
56448         * m4/floorl.m4: New file.
56449         * lib/math.in.h (floorl): Replace declaration.
56450         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
56451         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
56452         * doc/functions/floorl.texi: Mention the 'floorl' module.
56453         * modules/mathl (Files): Remove lib/floorl.c.
56454         (Depends-on): Add floorl.
56455
56456 2007-10-04  Bruno Haible  <bruno@clisp.org>
56457
56458         * modules/floorf-tests: New file.
56459         * tests/test-floorf.c: New file.
56460
56461         * modules/floorf: New file.
56462         * lib/floor.c: New file.
56463         * lib/floorf.c: New file.
56464         * m4/floorf.m4: New file.
56465         * lib/math.in.h (floorf): New declaration.
56466         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
56467         HAVE_DECL_FLOORF.
56468         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
56469         HAVE_DECL_FLOORF.
56470         * doc/functions/floorf.texi: Mention the 'floorf' module.
56471
56472 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
56473             Bruno Haible  <bruno@clisp.org>
56474
56475         Advertise for the Git server instead of the CVS server.
56476         * doc/gnulib-intro.texi (Steady Development): Mention the Git
56477         repository instead of the CVS one.
56478         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
56479         about all VCS systems generically.
56480         * doc/gnulib.texi (Introduction): Capitalize `Git'.
56481
56482 2007-10-04  Bruno Haible  <bruno@clisp.org>
56483
56484         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
56485         means.
56486         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
56487
56488 2007-10-04  Bruno Haible  <bruno@clisp.org>
56489
56490         * modules/truncl-tests: New file.
56491         * tests/test-truncl.c: New file.
56492
56493         * modules/truncl: New file.
56494         * lib/truncl.c: New file.
56495         * m4/truncl.m4: New file.
56496         * lib/math.in.h (truncl): New declaration.
56497         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
56498         HAVE_DECL_TRUNCL.
56499         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
56500         HAVE_DECL_TRUNCL.
56501         * doc/functions/truncl.texi: Mention the 'truncl' module.
56502
56503 2007-10-04  Bruno Haible  <bruno@clisp.org>
56504
56505         * modules/truncf-tests: New file.
56506         * tests/test-truncf.c: New file.
56507
56508         * modules/truncf: New file.
56509         * lib/trunc.c: Make paramerizable through USE_* macros.
56510         * lib/truncf.c: New file.
56511         * m4/truncf.m4: New file.
56512         * lib/math.in.h (truncf): New declaration.
56513         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
56514         HAVE_DECL_TRUNCF.
56515         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
56516         HAVE_DECL_TRUNCF.
56517         * doc/functions/truncf.texi: Mention the 'truncf' module.
56518
56519 2007-10-03  Bruno Haible  <bruno@clisp.org>
56520
56521         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
56522         augmentation also for tests modules.
56523         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
56524         * modules/atexit-tests (Makefile.am): Likewise.
56525         * modules/binary-io-tests (Makefile.am): Likewise.
56526         * modules/c-strcase-tests (Makefile.am): Likewise.
56527         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
56528         * modules/canonicalize-tests (Makefile.am): Likewise.
56529         * modules/closein-tests (Makefile.am): Likewise.
56530         * modules/fprintf-posix-tests (Makefile.am): Likewise.
56531         * modules/freadahead-tests (Makefile.am): Likewise.
56532         * modules/fseek-tests (Makefile.am): Likewise.
56533         * modules/fseeko-tests (Makefile.am): Likewise.
56534         * modules/ftell-tests (Makefile.am): Likewise.
56535         * modules/ftello-tests (Makefile.am): Likewise.
56536         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
56537         * modules/isnanl-tests (Makefile.am): Likewise.
56538         * modules/lseek-tests (Makefile.am): Likewise.
56539         * modules/mbscasecmp-tests (Makefile.am): Likewise.
56540         * modules/mbscasestr-tests (Makefile.am): Likewise.
56541         * modules/mbschr-tests (Makefile.am): Likewise.
56542         * modules/mbscspn-tests (Makefile.am): Likewise.
56543         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
56544         * modules/mbspbrk-tests (Makefile.am): Likewise.
56545         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
56546         * modules/mbsrchr-tests (Makefile.am): Likewise.
56547         * modules/mbsspn-tests (Makefile.am): Likewise.
56548         * modules/mbsstr-tests (Makefile.am): Likewise.
56549         * modules/printf-posix-tests (Makefile.am): Likewise.
56550         * modules/snprintf-posix-tests (Makefile.am): Likewise.
56551         * modules/sprintf-posix-tests (Makefile.am): Likewise.
56552         * modules/tsearch-tests (Makefile.am): Likewise.
56553         * modules/uniname/uniname-tests (Makefile.am): Likewise.
56554         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
56555         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
56556         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
56557         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
56558         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
56559         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
56560         * modules/vprintf-posix-tests (Makefile.am): Likewise.
56561         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
56562         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
56563         * modules/xstrtoimax-tests (Makefile.am): Likewise.
56564         * modules/xstrtol-tests (Makefile.am): Likewise.
56565         * modules/xstrtoumax-tests (Makefile.am): Likewise.
56566         * modules/yesno-tests (Makefile.am): Likewise.
56567
56568 2007-10-03  Bruno Haible  <bruno@clisp.org>
56569
56570         * modules/trunc-tests: New file.
56571         * tests/test-trunc.c: New file.
56572
56573         * modules/trunc: New file.
56574         * lib/trunc.c: New file.
56575         * m4/trunc.m4: New file.
56576         * lib/math.in.h (trunc): New declaration.
56577         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
56578         HAVE_DECL_TRUNC.
56579         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
56580         HAVE_DECL_TRUNC.
56581         * doc/functions/trunc.texi: Mention the 'trunc' module.
56582
56583 2007-10-03  Bruno Haible  <bruno@clisp.org>
56584
56585         * tests/test-fpending.c: New file, mostly copied
56586         from coreutils/lib/t-fpending.c.
56587         * modules/fpending-tests: New file.
56588
56589 2007-10-03  Bruno Haible  <bruno@clisp.org>
56590
56591         Port the stdio extensions to QNX (untested).
56592         * lib/fseterr.c (fseterr): Add support for QNX.
56593         * lib/fbufmode.c (fbufmode): Likewise.
56594         * lib/freadable.c (freadable): Likewise.
56595         * lib/fwritable.c (fwritable): Likewise.
56596         * lib/freading.c (freading): Likewise.
56597         * lib/fwriting.c (fwriting): Likewise.
56598         * lib/freadahead.c (freadahed): Likewise.
56599         * lib/fpurge.c (fpurge): Likewise.
56600         * lib/fseeko.c (rpl_fseeko): Likewise.
56601
56602 2007-10-03  Bruno Haible  <bruno@clisp.org>
56603             Jim Meyering  <jim@meyering.net>
56604             Eric Blake  <ebb9@byu.net>
56605
56606         * doc/relocatable.texi: Use @command instead of @program.
56607
56608 2007-10-02  Jim Meyering  <jim@meyering.net>
56609
56610         Perform one more "_.h" -> ".in.h" substitution.
56611         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
56612         instead of unistd_.h here, too.
56613
56614 2007-10-01  Bruno Haible  <bruno@clisp.org>
56615
56616         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
56617         Needed for the alloca-opt module.
56618
56619 2007-09-30  Bruno Haible  <bruno@clisp.org>
56620
56621         * lib/alloca.in.h: Renamed from lib/alloca_.h.
56622         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
56623         alloca_.h.
56624         * lib/argz.in.h: Renamed from lib/argz_.h.
56625         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
56626         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
56627         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
56628         byteswap_.h.
56629         * lib/dirent.in.h: Renamed from lib/dirent_.h.
56630         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
56631         dirent_.h.
56632         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
56633         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
56634         fcntl_.h.
56635         * lib/float.in.h: Renamed from lib/float_.h.
56636         * modules/float (Files, Makefile.am): Use float.in.h instead of
56637         float_.h.
56638         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
56639         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
56640         fnmatch_.h.
56641         * lib/getopt.in.h: Renamed from lib/getopt_.h.
56642         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
56643         getopt_.h.
56644         * lib/glob.in.h: Renamed from lib/glob_.h.
56645         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
56646         * lib/iconv.in.h: Renamed from lib/iconv_.h.
56647         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
56648         iconv_.h.
56649         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
56650         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
56651         inttypes_.h.
56652         * lib/locale.in.h: Renamed from lib/locale_.h.
56653         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
56654         locale_.h.
56655         * lib/math.in.h: Renamed from lib/math_.h.
56656         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
56657         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
56658         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
56659         of netinet_in_.h. Add dependency.
56660         * lib/poll.in.h: Renamed from lib/poll_.h.
56661         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
56662         * lib/search.in.h: Renamed from lib/search_.h.
56663         * modules/search (Files, Makefile.am): Use search.in.h instead of
56664         search_.h.
56665         * lib/signal.in.h: Renamed from lib/signal_.h.
56666         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
56667         _signal.h.
56668         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
56669         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
56670         stdbool_.h.
56671         * lib/stdint.in.h: Renamed from lib/stdint_.h.
56672         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
56673         stdint_.h.
56674         * lib/stdio.in.h: Renamed from lib/stdio_.h.
56675         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
56676         stdio_.h.
56677         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
56678         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
56679         stdlib_.h.
56680         * lib/string.in.h: Renamed from lib/string_.h.
56681         * modules/string (Files, Makefile.am): Use string.in.h instead of
56682         string_.h.
56683         * doc/gnulib-tool.texi (Initial import): Update.
56684         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
56685         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
56686         of sys_select_.h. Add dependency.
56687         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
56688         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
56689         of sys_socket_.h.
56690         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
56691         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
56692         sys_stat_.h.
56693         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
56694         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
56695         sys_time_.h.
56696         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
56697         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
56698         sysexits_.h.
56699         * lib/time.in.h: Renamed from lib/time_.h.
56700         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
56701         * lib/unistd.in.h: Renamed from lib/unistd_.h.
56702         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
56703         unistd_.h.
56704         * lib/wchar.in.h: Renamed from lib/wchar_.h.
56705         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
56706         wchar_.h.
56707         * lib/wctype.in.h: Renamed from lib/wctype_.h.
56708         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
56709         wctype_.h.
56710         * build-aux/bootstrap (slurp): Update.
56711         * lib/.cppi-disable: Update.
56712
56713 2007-09-30  Bruno Haible  <bruno@clisp.org>
56714
56715         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
56716         Needed on BeOS.
56717
56718 2007-09-30  Bruno Haible  <bruno@clisp.org>
56719
56720         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
56721
56722 2007-09-29  Bruno Haible  <bruno@clisp.org>
56723
56724         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
56725
56726 2007-09-29  Bruno Haible  <bruno@clisp.org>
56727
56728         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
56729         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
56730         * build-aux/install-reloc: Compile also areadlink.c.
56731         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
56732
56733 2007-09-29  Bruno Haible  <bruno@clisp.org>
56734
56735         * gnulib-tool (func_emit_initmacro_done): Indentation.
56736
56737 2007-09-29  Bruno Haible  <bruno@clisp.org>
56738
56739         * README: Add CVS checkout update instructions.
56740         Info from Bob Proulx <bob@proulx.com>.
56741
56742 2007-09-28  Eric Blake  <ebb9@byu.net>
56743
56744         Provide move-if-change.
56745         * build-aux/move-if-change: New file, based on best practice
56746         rather than any canonical upstream location.
56747
56748 2007-09-28  Jim Meyering  <jim@meyering.net>
56749
56750         Fix canonicalize loop-detection corner case.
56751         Do not attempt to stat the symlink values stored via seen_triple.
56752         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
56753         on linux-2.6.18, (but not 2.6.22).
56754         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
56755         triple_compare.  The former compares dev,ino,filename, while the latter
56756         would actually stat dirname(filename) when dev and ino were equal.
56757         * lib/hash-triple.c: Install <string.h>.
56758         (STREQ): Define.
56759         (triple_compare_ino_str): New function.
56760         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
56761
56762 2007-09-28  Eric Blake  <ebb9@byu.net>
56763
56764         Enforce that AC_REPLACE_FUNCS files exist.
56765         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
56766         override check for typos.
56767
56768         Fix test-closein on Solaris 10.
56769         * tests/test-closein.c (main): Don't assume stdin can be inherited
56770         closed on all systems.
56771         * tests/test-closein.sh: Likewise.
56772         Reported by Piotr Tarnowski.
56773
56774 2007-09-28  Jim Meyering  <jim@meyering.net>
56775
56776         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
56777
56778 2007-09-27  Jim Meyering  <jim@meyering.net>
56779
56780         canonicalize: Avoid a false-positive cycle failure.
56781         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
56782         Sort.  Remove cycle-check.
56783         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
56784         not cycle-check.h.
56785         (seen_triple): New function.
56786         (canonicalize_filename_mode): Use it instead of cycle-check.
56787         * tests/test-canonicalize.c: Add a test for this bug.
56788         * tests/test-canonicalize.sh: Set up and run the test.
56789
56790         New module, file-set, from coreutils.
56791         * modules/file-set: Define it.
56792         * lib/file-set.c, lib/file-set.h: Implement.
56793
56794         New module, hash-triple, from coreutils.
56795         * modules/hash-triple: Define it.
56796         * lib/hash-triple.c, lib/hash-triple.h: Implement.
56797
56798 2007-09-25  Eric Blake  <ebb9@byu.net>
56799
56800         Fix strerror on Interix.
56801         * lib/string_.h (strerror): Declare replacement.
56802         * doc/functions/strerror.texi (strerror): Document the Interix
56803         shortcoming.
56804         * modules/string (Makefile.am): Support new hooks.
56805         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
56806         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
56807         gl_FUNC_STRERROR_SEPARATE.
56808         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
56809         * lib/strerror.c (rpl_strerror): Provide replacement.
56810         * modules/strerror (Depends-on): Add string.
56811         (configure.ac): Detect use of module.
56812         * tests/test-strerror.c: New file.
56813         * modules/strerror-tests: New test module.
56814         * modules/argp (Depends-on): Add strerror.
56815         * modules/error (Depends-on): Likewise.
56816         Reported by Martin Koeppe.
56817
56818 2007-09-24  Bruno Haible  <bruno@clisp.org>
56819
56820         * README: Update git instructions.
56821
56822 2007-09-24  Eric Blake  <ebb9@byu.net>
56823
56824         Revert fpending breakage from 2007-09-08.
56825         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
56826         __fpending.c.
56827
56828 2007-09-24  Jim Meyering  <jim@meyering.net>
56829
56830         filenamecat.c: Add a test.
56831         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
56832         showing how the function works when DIR is the empty string.
56833
56834 2007-09-21  Simon Josefsson  <simon@josefsson.org>
56835
56836         * tests/test-canonicalize.sh: Turn on executable bit.
56837
56838 2007-09-19  Eric Blake  <ebb9@byu.net>
56839
56840         * README: Update CVS instructions.
56841
56842 2007-09-18  Bruno Haible  <bruno@clisp.org>
56843
56844         * modules/areadlink: New file.
56845         * lib/areadlink.h (areadlink): New declaration.
56846         * lib/areadlink.c: New file, based on lib/xreadlink.c.
56847
56848 2007-09-17  Jim Meyering  <jim@meyering.net>
56849
56850         * lib/savewd.c (ESTALE) [!defined]: Define.
56851         Reported to be required on Interix by Martin Koeppe.
56852
56853 2007-09-17  Bruno Haible  <bruno@clisp.org>
56854
56855         * gnulib-tool (func_version): Use $version.
56856
56857 2007-09-16  Bruno Haible  <bruno@clisp.org>
56858
56859         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
56860         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
56861         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
56862         Reported by Greg Schafer <gschafer@zip.com.au>.
56863
56864 2007-09-15  Bruno Haible  <bruno@clisp.org>
56865
56866         * gnulib-tool (sed): Try a little harder to make bash understand the
56867         alias.
56868         Reported by Bruce Korb <bruce.korb@gmail.com>.
56869
56870 2007-09-13  Eric Blake  <ebb9@byu.net>
56871
56872         * ChangeLog: Remove conflict markers.
56873
56874 2007-09-13  Simon Josefsson  <simon@josefsson.org>
56875
56876         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
56877         Reported by Bruno Haible <bruno@clisp.org>.
56878
56879 2007-09-12  Bruno Haible  <bruno@clisp.org>
56880
56881         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
56882         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
56883         is not defined.
56884
56885 2007-09-12  Eric Blake  <ebb9@byu.net>
56886
56887         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
56888         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
56889         Autoconf definition.
56890         * modules/euidaccess (Depends-on): Add extensions, for
56891         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
56892         * modules/fnmatch (Depends-on): Likewise.
56893         * modules/getaddrinfo (Depends-on): Likewise.
56894         * modules/getdelim (Depends-on): Likewise.
56895         * modules/getline (Depends-on): Likewise.
56896         * modules/getsubopt (Depends-on): Likewise.
56897         * modules/gettext (Depends-on): Likewise.
56898         * modules/group-member (Depends-on): Likewise.
56899         * modules/mbchar (Depends-on): Likewise.
56900         * modules/memmem (Depends-on): Likewise.
56901         * modules/mempcpy (Depends-on): Likewise.
56902         * modules/memrchr (Depends-on): Likewise.
56903         * modules/pagealign_alloc (Depends-on): Likewise.
56904         * modules/readutmp (Depends-on): Likewise.
56905         * modules/stpcpy (Depends-on): Likewise.
56906         * modules/stpncpy (Depends-on): Likewise.
56907         * modules/strchrnul (Depends-on): Likewise.
56908         * modules/strndup (Depends-on): Likewise.
56909         * modules/strsep (Depends-on): Likewise.
56910         * modules/strverscmp (Depends-on): Likewise.
56911         * modules/vasprintf (Depends-on): Likewise.
56912         * modules/wcwidth (Depends-on): Likewise.
56913         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
56914         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
56915         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
56916         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
56917         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
56918         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
56919         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
56920         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
56921         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
56922         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
56923         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
56924         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
56925         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
56926         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
56927         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
56928         * m4/readutmp.m4 (gl_READUTMP): Likewise.
56929         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
56930         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
56931         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
56932         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
56933         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
56934         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
56935         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
56936         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
56937         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
56938         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
56939         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
56940         so that lock.m4 can be used in gettext without extensions module.
56941
56942 2007-09-11  Bruno Haible  <bruno@clisp.org>
56943
56944         * m4/isc-posix.m4: Remove file.
56945         Suggested by Eric Blake.
56946
56947 2007-09-11  Eric Blake  <ebb9@byu.net>
56948
56949         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
56950
56951 2007-09-10  Bruno Haible  <bruno@clisp.org>
56952
56953         * posix-modules: Fix typo in error message.
56954         Reported by Matt <mkraai@beckman.com>.
56955
56956 2007-09-09  Bruno Haible  <bruno@clisp.org>
56957
56958         * doc/functions/getdelim.texi: Update list of platforms lacking the
56959         function.
56960         * doc/functions/getline.texi: Likewise.
56961
56962 2007-09-09  Jim Meyering  <jim@meyering.net>
56963
56964         * lib/hash.c (hash_initialize): Detect calloc failure.
56965         Reported by Bruno Haible.
56966
56967 2007-09-09  Bruno Haible  <bruno@clisp.org>
56968
56969         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
56970         malloc or realloc fails.
56971
56972 2007-09-09  Bruno Haible  <bruno@clisp.org>
56973
56974         * modules/getcwd (Depends-on): Add malloc-posix.
56975         * modules/glob (Depends-on): Likewise.
56976         * modules/putenv (Depends-on): Likewise.
56977         * modules/strdup (Depends-on): Likewise.
56978         * modules/getdelim (Depends-on): Add realloc-posix.
56979         * modules/read-file (Depends-on): Likewise.
56980
56981 2007-09-09  Bruno Haible  <bruno@clisp.org>
56982
56983         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
56984         (gl_FUNC_MALLOC_POSIX): Require it.
56985         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
56986         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
56987         * modules/realloc (Files): Add m4/malloc.m4.
56988         * modules/calloc (Files): Likewise.
56989
56990 2007-09-09  Bruno Haible  <bruno@clisp.org>
56991
56992         * modules/malloc-posix: New file.
56993         * modules/malloc (Depends-on): Add malloc-posix.
56994         * lib/malloc.c: Include errno.h.
56995         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
56996         and a POSIX-compatible malloc into a single function. Set ENOMEM
56997         when returning NULL.
56998         * m4/malloc.m4: New file.
56999         * doc/functions/malloc.texi: Mention the malloc-posix module.
57000         * lib/stdlib_.h (malloc): New declaration.
57001         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
57002         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
57003         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
57004         and HAVE_MALLOC_POSIX.
57005
57006 2007-09-09  Bruno Haible  <bruno@clisp.org>
57007
57008         * modules/realloc-posix: New file.
57009         * modules/realloc (Depends-on): Add realloc-posix.
57010         * lib/realloc.c: Include errno.h.
57011         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
57012         and a POSIX-compatible realloc into a single function. Set ENOMEM
57013         when returning NULL.
57014         * m4/realloc.m4: New file.
57015         * doc/functions/realloc.texi: Mention the realloc-posix module.
57016         * lib/stdlib_.h (realloc): New declaration.
57017         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
57018         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
57019         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
57020         and HAVE_REALLOC_POSIX.
57021
57022 2007-09-09  Bruno Haible  <bruno@clisp.org>
57023
57024         * modules/calloc-posix: New file.
57025         * modules/calloc (Depends-on): Add calloc-posix.
57026         * lib/calloc.c: Include errno.h.
57027         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
57028         and a POSIX-compatible calloc into a single function. Set ENOMEM
57029         when returning NULL.
57030         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
57031         * doc/functions/calloc.texi: Mention the calloc-posix module.
57032         * lib/stdlib_.h (calloc): New declaration.
57033         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
57034         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
57035         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
57036         and HAVE_CALLOC_POSIX.
57037
57038 2007-09-09  Bruno Haible  <bruno@clisp.org>
57039
57040         Allow for modules to show an arbitrary notice.
57041         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
57042         * gnulib-tool: New option --extract-notice.
57043         (func_usage): Document it.
57044         (sed_extract_prog): Update.
57045         (func_get_notice): New function.
57046         (func_modules_notice): New function.
57047         (func_import, func_create_testdir): Invoke it.
57048         Suggested by Jim Meyering.
57049
57050 2007-09-09  Bruno Haible  <bruno@clisp.org>
57051
57052         * gnulib-tool: New options --verbose, --quiet.
57053         (func_usage): Document them.
57054         (verbose): New variable.
57055         (func_execute_command): New function.
57056         (func_import): Don't show the module list and the file list if
57057         $verbose < 0.
57058         (func_create_testdir): Likewise. Use func_execute_command.
57059         (func_create_megatestdir): Use func_execute_command.
57060
57061 2007-09-08  Bruno Haible  <bruno@clisp.org>
57062
57063         * gnulib-tool (func_import): Prefer rsync over wget when available,
57064         for fetching the PO files.
57065
57066 2007-09-08  Bruno Haible  <bruno@clisp.org>
57067
57068         * posix-modules: New file. Portions copied from gnulib-tool.
57069         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
57070
57071 2007-09-08  Jim Meyering  <jim@meyering.net>
57072
57073         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
57074         * lib/fpending.h: Rename from __fpending.h.
57075         * lib/fpending.c: Rename from __fpending.c.
57076         Include "fpending.h", not "__fpending.h".
57077         * lib/__fpending.h, lib/__fpending.c: Remove files.
57078         * modules/fpending (Files): Reflect new file names.
57079         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
57080
57081 2007-09-08  Bruno Haible  <bruno@clisp.org>
57082
57083         * m4/inttypes-h.m4: Remove stub file.
57084
57085 2007-09-07  Simon Josefsson  <simon@josefsson.org>
57086
57087         * doc/headers/stdint.texi: Discuss #include_next issue.
57088
57089 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
57090
57091         * build-aux/bootstrap: Remove obsolete comment about wget --help.
57092
57093 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57094
57095         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
57096         in variable name.
57097
57098 2007-09-03  Jim Meyering  <jim@meyering.net>
57099
57100         New module: git-version-gen.
57101         * modules/git-version-gen: New file.
57102
57103         Import changes from coreutils for bootstrap script.
57104
57105         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
57106
57107         bootstrap: uses rsync to download the .po files
57108         * build-aux/bootstrap (po_download_command_format): New global.
57109         (download_po_files): Use rsync.
57110         (update_po_files): Don't remove .po files after download,
57111         so future rsync runs can take advantage of the copies.
57112
57113         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
57114
57115         Solve the unnecessary-.po-file-regeneration problem once and for all.
57116         * build-aux/bootstrap (download_po_files): New function, renamed from
57117         get_translations.  Now, downloads, but doesn't update LINGUAS.
57118         (update_po_files): New function.
57119
57120         bootstrap: Ignore more.
57121         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
57122         uniwidth to e.g., lib/.gitignore.
57123         (slurp): Handle the sys_stat_.h -> sys mapping, too.
57124
57125         * build-aux/bootstrap: New setting: vc_ignore.
57126         (insert_sorted_if_absent): Create $file if absent.
57127         Adapt to new, possibly empty, list: $vc_ignore.
57128
57129         bootstrap: generate more ignorable names
57130         * build-aux/bootstrap (slurp): When generating ignorable names,
57131         also map .sin to .sed, .gperf to .c, and .y to .c.
57132
57133 2007-09-03  Jim Meyering  <jim@meyering.net>
57134
57135         * build-aux/git-version-gen: New file, from coreutils.  For details, see
57136         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
57137
57138 2007-09-02  Bruno Haible  <bruno@clisp.org>
57139
57140         Fix mis-recognition of 'mcs' on QNX 6.
57141         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
57142         output contains the string "Mono".
57143         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
57144         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
57145
57146 2007-09-01  Bruno Haible  <bruno@clisp.org>
57147
57148         Fix collision between uniwidth/* and linebreak modules.
57149         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
57150         u32_width): Remove declarations.
57151         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
57152         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
57153         streq3, streq2, streq1, streq0): Remove functions.
57154         (STREQ): Remove macro.
57155         (is_cjk_encoding): Remove function.
57156         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
57157         (uc_width, u8_width, u16_width, u32_width): Remove functions.
57158         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
57159         * NEWS: Document the change.
57160
57161 2007-09-01  Bruno Haible  <bruno@clisp.org>
57162
57163         * lib/streq.h: Add double-inclusion guard.
57164
57165 2007-09-01  Karl Berry  <karl@gnu.org>
57166
57167         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
57168
57169 2007-08-28  Jim Meyering  <jim@meyering.net>
57170
57171         Rename mreadlink_with_size to areadlink_with_size.
57172         * NEWS: Document the change.
57173         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
57174         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
57175         * lib/mreadlink.h: Rename this to...
57176         * lib/areadlink.h: ...this.
57177         * modules/mreadlink-with-size: Rename this to...
57178         * modules/areadlink-with-size: ...this.
57179         * lib/canonicalize.c: Reflect the renaming.
57180         * modules/canonicalize: Likewise.
57181
57182 2007-08-26  Bruno Haible  <bruno@clisp.org>
57183
57184         * gnulib-tool (func_import): When deciding which files to remove,
57185         consider also dangling symbolic links.
57186         Reported by Eric Blake.
57187
57188 2007-08-26  Bruno Haible  <bruno@clisp.org>
57189
57190         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
57191
57192 2007-08-23  Simon Josefsson  <simon@josefsson.org>
57193
57194         * lib/readline.c: Don't include getline.h, the prototype is now
57195         found in stdio.h.
57196
57197 2007-08-23  Jim Meyering  <jim@meyering.net>
57198
57199         Getdelim touchup.
57200         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
57201         around the funlockfile call, since funlockfile never sets errno.
57202         Don't set errno upon failed realloc.
57203
57204 2007-08-22  Eric Blake  <ebb9@byu.net>
57205
57206         Getline touchups.
57207         * lib/getdelim.c (getdelim): Revert regression that required *n to
57208         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
57209         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
57210         getdelim, rather than whether implementation is missing.
57211         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
57212         * lib/stdio_.h (getline): Also declare if replacement is
57213         required.
57214         * doc/functions/getdelim.texi: New file.
57215         * doc/functions/getline.texi: Likewise.
57216         * doc/gnulib.texi (Function Substitutes): Add new files.
57217         Reported by Bruno Haible.
57218
57219 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
57220
57221         * users.txt: Add Guile.
57222
57223 2007-08-22  Eric Blake  <ebb9@byu.net>
57224
57225         * tests/test-getdelim.c (main): Use remove, not unlink.
57226         * tests/test-getline.c (main): Likewise.
57227
57228         Move getline and getdelim into stdio.h, per POSIX 200x.
57229         * modules/getline (Files): Remove getline.h.
57230         (Depends-on): Add stdio.
57231         (configure.ac): Add module indicator.
57232         * modules/getdelim (Files): Remove getdelim.h.
57233         (Depends-on): Add stdio.
57234         (configure.ac): Add module indicator.
57235         * modules/stdio (Makefile.am): Work with new indicators.
57236         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
57237         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
57238         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
57239         * lib/getdelim.h: Delete.
57240         * lib/getline.h: Delete.
57241         * lib/stdio_.h (getdelim, getline): Declare.
57242         * modules/getdelim-tests: New module.
57243         * modules/getline-tests: Likewise.
57244         * tests/test-getdelim.c: New file.
57245         * tests/test-getline.c: Likewise.
57246         * NEWS: Document the change.
57247         * lib/getline.c: Update choice of header.
57248         * lib/csharpcomp.c: Likewise.
57249         * lib/getpass.c: Likewise.
57250         * lib/javacomp.c: Likewise.
57251         * lib/javaversion.c: Likewise.
57252         * lib/yesno.c: Likewise.
57253         * lib/getdelim.c: Likewise.
57254         (getdelim): Set errno on failure, and avoid memory leak.
57255
57256 2007-08-19  Bruno Haible  <bruno@clisp.org>
57257
57258         * modules/closein (Depends-on): Add freadahead.
57259         * lib/closein.c: Include freadahead.h.
57260         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
57261         is zero.
57262
57263 2007-08-19  Bruno Haible  <bruno@clisp.org>
57264
57265         * modules/freadahead-tests: New file.
57266         * tests/test-freadahead.sh: New file.
57267         * tests/test-freadahead.c: New file.
57268
57269         * modules/freadahead: New file.
57270         * lib/freadahead.h: New file.
57271         * lib/freadahead.c: New file.
57272         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
57273         fbufmode, fpurge, freadable, fwritable.
57274
57275 2007-08-19  Eric Blake  <ebb9@byu.net>
57276
57277         Test yesno in combination with closein.
57278         * lib/yesno.c (yesno): Document use of stdin.
57279         * modules/yesno-tests (Files): New module.
57280         * tests/test-yesno.c (main): New file.
57281         * tests/test-yesno.sh: Likewise.
57282
57283 2007-08-19  Bruno Haible  <bruno@clisp.org>
57284
57285         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
57286         * lib/fseeko.c (rpl_fseeko): Likewise.
57287         * lib/fseterr.c (fseterr): Likewise.
57288
57289 2007-08-19  Bruno Haible  <bruno@clisp.org>
57290
57291         * tests/test-lseek.c (main): Disable a test for BeOS.
57292         * doc/functions/lseek.texi: Document the BeOS bug.
57293
57294 2007-08-19  Bruno Haible  <bruno@clisp.org>
57295             Eric Blake  <ebb9@byu.net>
57296
57297         * lib/lseek.c: Include <sys/stat.h>.
57298         (rpl_lseek): Add workaround code also for Unix platforms.
57299         Needed for BeOS.
57300         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
57301         * doc/functions/lseek.texi: Document BeOS definiency.
57302
57303 2007-08-18  Bruno Haible  <bruno@clisp.org>
57304
57305         * modules/fstrcmp-tests: New file.
57306         * tests/test-fstrcmp.c: New file.
57307
57308 2007-08-18  Bruno Haible  <bruno@clisp.org>
57309
57310         * modules/fstrcmp: New file, from GNU gettext with modifications.
57311         * lib/fstrcmp.h: New file, from GNU gettext.
57312         * lib/fstrcmp.c: New file, from GNU gettext.
57313         * MODULES.html.sh (String handling): Add fstrcmp.
57314
57315 2007-08-18  Bruno Haible  <bruno@clisp.org>
57316
57317         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
57318         'bool'.
57319         (diag, compareseq): Remove const from the ctxt argument.
57320         (USE_HEURISTIC): Undefine at the end.
57321
57322 2007-08-18  Jim Meyering  <jim@meyering.net>
57323
57324         New file: lib/idcache.h
57325         * NEWS: Mention the addition.
57326         * modules/idcache (Files): Add lib/idcache.h
57327         * lib/idcache.c: Include "idcache.h".
57328         Don't include <sys/types.h>.
57329         Add a FIXME comment.
57330         Move file-scoped "static" declarations to the top.
57331         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
57332
57333 2007-08-17  Bruno Haible  <bruno@clisp.org>
57334         and Paul Eggert  <eggert@cs.ucla.edu>
57335
57336         * MODULES.html.sh: Add diffseq.
57337         * modules/diffseq: New file.
57338         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
57339         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
57340
57341 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
57342
57343         Import changes from coreutils for bootstrap script.
57344
57345         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
57346
57347         * build-aux/bootstrap (slurp): Work even in environments where
57348         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
57349         current code does not slurp files whose names start with ".", and
57350         this looks like it might be a troublesome area.
57351
57352         2007-07-11  Jim Meyering  <jim@meyering.net>
57353
57354         If there's a GPL vN copyright comment, require that N == 3.
57355
57356         2007-07-08  Jim Meyering  <jim@meyering.net>
57357
57358         Run the coreutils-specific code only if tests/Makefile.am.in exists.
57359         * build-aux/bootstrap (mam_template): Move definition out of loop.
57360
57361         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
57362
57363         * build-aux/bootstrap (symlink_to_dir): Rename function from
57364         symlink_to_gnulib.  Add a directory parameter.  Update all
57365         callers.
57366         (cp_mark_as_generated): Also check for -- and link to -- files in
57367         gl/.
57368
57369         2007-07-08  Jim Meyering  <jim@meyering.net>
57370
57371         Adapt to deeper hierarchy in gnulib.
57372         * build-aux/bootstrap (symlink_to_dir): If the destination
57373         directory doesn't exist, create it. This is required at least for
57374         "lib/uniwidth/cjk.h".
57375
57376         2007-05-15  Jim Meyering  <jim@meyering.net>
57377
57378         * build-aux/bootstrap: Now that generated Makefile.am files
57379         are no longer under version control, they must be created at
57380         bootstrap time.
57381
57382 2007-08-14  Ben Pfaff  <blp@gnu.org>
57383
57384         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
57385
57386 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
57387
57388         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
57389         given the changes below.
57390         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
57391         even on hosts that have padding bits beyond the supported 64.
57392
57393 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
57394
57395         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
57396         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
57397         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
57398         depends on it.
57399         (xstrtol_error): Remove.
57400         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
57401         but with a different signature.
57402         (ATTRIBUTE_NORETURN, __attribute__): New macros.
57403         * lib/xstrtol-error.c: Include exitfail.h.
57404         (xstrtol_fatal): New function, with a different signature from the
57405         old xstrtol_error, so that the caller need not worry about passing
57406         in an exit status, or about storage management of the option argument.
57407         (xstrtol_error): Now a static function.  Redo signature to
57408         implement xstrtol_fatal.  Output the correct number of hyphens in
57409         front of the option so that the caller need not worry about
57410         storage management.
57411         (N_): New macro.
57412         (_): Remove; not used now.
57413         * modules/xstrtol: Depend on getopt.
57414         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
57415         of old STRTOL_FATAL_ERROR macro.
57416         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
57417         of test program.
57418         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
57419         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
57420
57421 2007-08-08  Eric Blake  <ebb9@byu.net>
57422
57423         * lib/xstrtol-error.c: Add missing include.
57424
57425         Move xstrtol messages into gnulib domain, when --pobase is used.
57426         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
57427         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
57428         * modules/xstrtol (Files): Distribute new file.
57429         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
57430         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
57431         * tests/test-xstrtol.c: ...into new file.
57432         * tests/test-xstrtoul.c: Also test xstrtoul.
57433         * tests/test-xstrtoimax.c: Also test xstrtoimax.
57434         * tests/test-xstrtoumax.c: Also test xstrtoumax.
57435         * tests/test-xstrtol.sh: Drive the tests.
57436         * tests/test-xstrtoimax.sh: Likewise.
57437         * tests/test-xstrtoumax.sh: Likewise.
57438         * modules/xstrtol-tests: New module.
57439         * modules/xstrtoimax-tests: Likewise.
57440         * modules/xstrtoumax-tests: Likewise.
57441
57442 2007-08-08  Jim Meyering  <jim@meyering.net>
57443
57444         New function: mfile_name_concat.
57445         * lib/filenamecat.c (mfile_name_concat): New function, just like
57446         file_name_concat, but return NULL upon failure rather than exiting
57447         with a diagnostic.
57448         * lib/filenamecat.h: Declare it.
57449
57450 2007-08-07  Bruno Haible  <bruno@clisp.org>
57451
57452         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
57453         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
57454         warning from gcc.
57455         Reported by Eric Blake.
57456
57457 2007-08-07  Simon Josefsson  <simon@josefsson.org>
57458
57459         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
57460         * modules/crypto/arcfour (License): Likewise.
57461         * modules/crypto/des-tests (License): Likewise.
57462         * modules/crypto/gc-arctwo-tests (License): Likewise.
57463         * modules/crypto/gc-des-tests (License): Likewise.
57464         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
57465         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
57466         * modules/crypto/gc-md2-tests (License): Likewise.
57467         * modules/crypto/gc-md4-tests (License): Likewise.
57468         * modules/crypto/gc-md5-tests (License): Likewise.
57469         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
57470         * modules/crypto/gc-rijndael-tests (License): Likewise.
57471         * modules/crypto/gc-sha1-tests (License): Likewise.
57472         * modules/crypto/gc-tests (License): Likewise.
57473         * modules/crypto/hmac-md5 (License): Likewise.
57474         * modules/crypto/hmac-sha1 (License): Likewise.
57475         * modules/crypto/md2-tests (License): Likewise.
57476         * modules/crypto/md4-tests (License): Likewise.
57477         * modules/crypto/md5 (License): Likewise.
57478         * modules/crypto/rijndael (License): Likewise.
57479         * modules/crypto/sha1 (License): Likewise.
57480         * modules/memxor (License): Likewise.
57481
57482 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
57483         and Bruno Haible  <bruno@clisp.org>
57484
57485         * NEWS: Describe interface changes to human, xstrtol.
57486         * lib/human.h: Include <xstrtol.h>.
57487         (human_options): Return enum strtol_error, not int.  Remove
57488         bool arg; take int * instead.
57489         * lib/human.c: Don't include "gettext.h".
57490         (_): Remove; no longer used.
57491         Don't include <xstrtol.h>, since human.h does it.
57492         (human_options): Adjust to abovementioned interface changes.
57493         Do not report error to stderr; that's now the caller's
57494         responsibility.
57495         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
57496         interface change.
57497         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
57498         Str, Argument_type_string.  All uses changed.  Put " argument"
57499         in diagnostics to make them clearer.  Change wording of suffix
57500         message for clarity.
57501         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
57502         Argument_type_string.
57503         (STRTOL_FATAL_WARN): Remove; no longer used.
57504         * modules/human (Depends-on): Remove gettext-h.
57505
57506 2007-08-06  Simon Josefsson  <simon@josefsson.org>
57507
57508         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
57509
57510 2007-07-31  Bruno Haible  <bruno@clisp.org>
57511
57512         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
57513         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
57514         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
57515
57516 2007-07-31  Bruno Haible  <bruno@clisp.org>
57517
57518         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
57519         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
57520
57521 2007-07-30  Bruno Haible  <bruno@clisp.org>
57522
57523         * modules/base64 (License): Use the synonymous term "LGPLv2+".
57524         * modules/c-ctype (License): Likewise.
57525         * modules/c-strcase (License): Likewise.
57526         * modules/check-version (License): Likewise.
57527         * modules/iconv (License): Likewise.
57528         * modules/iconv_open (License): Likewise.
57529         * modules/read-file (License): Likewise.
57530         * modules/striconv (License): Likewise.
57531         * modules/strverscmp (License): Likewise.
57532         * modules/vasprintf (License): Likewise.
57533         * modules/crypto/des (License): Likewise.
57534         * modules/crypto/gc (License): Likewise.
57535         * modules/crypto/gc-arcfour (License): Likewise.
57536         * modules/crypto/gc-arctwo (License): Likewise.
57537         * modules/crypto/gc-des (License): Likewise.
57538         * modules/crypto/gc-hmac-md5 (License): Likewise.
57539         * modules/crypto/gc-hmac-sha1 (License): Likewise.
57540         * modules/crypto/gc-md2 (License): Likewise.
57541         * modules/crypto/gc-md4 (License): Likewise.
57542         * modules/crypto/gc-md5 (License): Likewise.
57543         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
57544         * modules/crypto/gc-random (License): Likewise.
57545         * modules/crypto/gc-rijndael (License): Likewise.
57546         * modules/crypto/gc-sha1 (License): Likewise.
57547         * modules/crypto/md2 (License): Likewise.
57548         * modules/crypto/md4 (License): Likewise.
57549
57550 2007-07-30  Jim Meyering  <jim@meyering.net>
57551
57552         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
57553         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
57554         it has valid stat data.  This bug would cause du not to count the
57555         sizes of inaccessible directories.
57556         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
57557         in <http://bugzilla.redhat.com/250077>.
57558
57559 2007-07-25  Peter O'Gorman  <peter@pogma.com>
57560             Bruno Haible  <bruno@clisp.org>
57561
57562         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
57563         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
57564         #include_next, gives a diagnostic about it, but reports no error in
57565         the exit code.
57566         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
57567
57568 2007-07-24  Ben Pfaff  <blp@gnu.org>
57569
57570         Improve name: "count-one-bits" is better than "popcount".
57571         * MODULES.html.sh: Update name.
57572         * lib/popcount.h: Renamed lib/count-one-bits.h.
57573         (popcount): Renamed count_one_bits.
57574         (popcountl): Renamed count_one_bits_l.
57575         (popcountll): Renamed count_one_bits_ll.
57576         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
57577         * modules/popcount: Renamed module/count-one-bits.
57578         * modules/popcount-tests: Renamed module/count-one-bits-tests.
57579         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
57580
57581 2007-07-23  Ben Pfaff  <blp@gnu.org>
57582
57583         * lib/popcount.h (popcount32): Reduce size of constants, to allow
57584         better code generation, and add U to large constants to avoid
57585         warnings, in non-GCC case.
57586         Suggested by Bruno Haible.
57587
57588 2007-07-23  Ben Pfaff  <blp@gnu.org>
57589
57590         * lib/popcount.h: Use verify_true instead of if...abort.
57591         * modules/popcount: Depend on verify module.
57592         Suggested by Jim Meyering.
57593
57594 2007-07-23  Bruno Haible  <bruno@clisp.org>
57595
57596         * gnulib-tool (func_import): Create a .cvsignore file also when the
57597         directory is not yet in CVS but the toplevel directory is. When
57598         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
57599         Reported by Karl Berry.
57600
57601 2007-07-22  Ben Pfaff  <blp@gnu.org>
57602
57603         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
57604         case.
57605         Suggested by Eric Blake.
57606
57607 2007-07-22  Ben Pfaff  <blp@gnu.org>
57608
57609         New module: popcount.
57610         * MODULES.html.sh: Add popcount.
57611         * modules/popcount: New file.
57612         * modules/popcount-tests: New file.
57613         * tests/test-popcount.c: New file.
57614         * lib/popcount.h: New file.
57615         * m4/popcount.m4: New file.
57616
57617 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
57618
57619         * build-aux/announce-gen: Update to GPLv3.
57620
57621         * build-aux/config.guess: Update from config.
57622
57623 2007-07-21  Bruno Haible  <bruno@clisp.org>
57624
57625         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
57626         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
57627
57628 2007-07-20  Jim Meyering  <jim@meyering.net>
57629
57630         * check-module: Diagnose a self-dependency.
57631
57632 2007-07-19  Bruno Haible  <bruno@clisp.org>
57633
57634         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
57635         empty.
57636         Reported by Eric Blake.
57637
57638 2007-07-18  Bruno Haible  <bruno@clisp.org>
57639
57640         * gnulib-tool: New options --po-base, --po-domain.
57641         (func_usage): Document them.
57642         (pobase, po_domain): New variables.
57643         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
57644         DEFAULT_TEXT_DOMAIN.
57645         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
57646         (func_import): Consider pobase and po_domain. Create a po/ directory.
57647         (func_create_testdir): Set pobase and po_domain to empty.
57648         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
57649         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
57650
57651 2007-07-18  Bruno Haible  <bruno@clisp.org>
57652
57653         * gnulib-tool (func_get_automake_snippet): Synthesize also an
57654         EXTRA_DIST augmentation for files in build-aux/.
57655
57656 2007-07-16  Bruno Haible  <bruno@clisp.org>
57657
57658         * modules/lseek (License): Use the synonymous term "LGPLv2+".
57659         * modules/getdelim (License): Likewise.
57660
57661 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57662
57663         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
57664         * modules/d-type (License): Likewise.
57665         * modules/extensions (License): Likewise.
57666         * modules/fnmatch (License): Likewise.
57667         * modules/fseeko (License): Likewise.
57668         * modules/getaddrinfo (License): Likewise.
57669         * modules/getline (License): Likewise.
57670         * modules/getlogin_r (License): Likewise.
57671         * modules/getpass (License): Likewise.
57672         * modules/gettimeofday (License): Likewise.
57673         * modules/glob (License): Likewise.
57674         * modules/inet_ntop (License): Likewise.
57675         * modules/malloc (License): Likewise.
57676         * modules/malloca (License): Likewise.
57677         * modules/memmem (License): Likewise.
57678         * modules/mempcpy (License): Likewise.
57679         * modules/memset (License): Likewise.
57680         * modules/minmax (License): Likewise.
57681         * modules/mktime (License): Likewise.
57682         * modules/netinet_in (License): Likewise.
57683         * modules/pathmax (License): Likewise.
57684         * modules/poll (License): Likewise.
57685         * modules/regex (License): Likewise.
57686         * modules/snprintf (License): Likewise.
57687         * modules/stdbool (License): Likewise.
57688         * modules/stdint (License): Likewise.
57689         * modules/stdio (License): Likewise.
57690         * modules/strcase (License): Likewise.
57691         * modules/strcasestr (License): Likewise.
57692         * modules/strdup (License): Likewise.
57693         * modules/string (License): Likewise.
57694         * modules/strndup (License): Likewise.
57695         * modules/strnlen (License): Likewise.
57696         * modules/strpbrk (License): Likewise.
57697         * modules/strptime (License): Likewise.
57698         * modules/strsep (License): Likewise.
57699         * modules/sys_select (License): Likewise.
57700         * modules/sys_socket (License): Likewise.
57701         * modules/sys_stat (License): Likewise.
57702         * modules/sys_time (License): Likewise.
57703         * modules/time (License): Likewise.
57704         * modules/time_r (License): Likewise.
57705         * modules/timegm (License): Likewise.
57706         * modules/unistd (License): Likewise.
57707         * modules/vsnprintf (License): Likewise.
57708         * modules/wctype (License): Likewise.
57709
57710 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57711
57712         * modules/argz (License): LGPLv2+.
57713
57714 2007-07-15  Karl Berry  <karl@gnu.org>
57715
57716         * doc/gnulib.texi: revise node structure per new fdl.texi.
57717
57718 2007-07-14  Bruno Haible  <bruno@clisp.org>
57719
57720         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
57721         the output file.
57722         * lib/uniname/uninames.h: Regenerated.
57723
57724 2007-07-14  Karl Berry  <karl@gnu.org>
57725
57726         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
57727         omitting sectioning and index commands.
57728
57729 2007-07-13  Bruno Haible  <bruno@clisp.org>
57730
57731         New gnulib-tool option --more-symlinks.
57732         * gnulib-tool (func_usage): Document --more-symlinks.
57733         (do_copyrights): New variable.
57734         Recognize option --more-symlinks.
57735         (func_import): Don't add a copyright notice transform to
57736         sed_transform_lib_file if do_copyrights is empty.
57737
57738 2007-07-13  Bruno Haible  <bruno@clisp.org>
57739
57740         * lib/vasnprintf.c (decimal_point_char): Define also if
57741         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
57742         && !NEED_PRINTF_DIRECTIVE_A.
57743         Reported by Clemens Koller <clemens.koller@anagramm.de> via
57744         Gary V. Vaughan <gary@gnu.org>.
57745
57746 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
57747
57748         * lib/inttypes_.h: Undo previous change, since it was fixed
57749         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
57750
57751 2007-07-13  Bruno Haible  <bruno@clisp.org>
57752
57753         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
57754         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
57755
57756 2007-07-13  Jim Meyering  <jim@meyering.net>
57757
57758         df: Don't fail for Tru64's "file-on-file mount".
57759         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
57760         so we fall through and use statfs instead.  Details here:
57761         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
57762         Reported by Albert Chin.
57763
57764 2007-07-13  Bruno Haible  <bruno@clisp.org>
57765
57766         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
57767         * modules/configmake (License): Likewise.
57768         * modules/gettext (License): Likewise.
57769         * modules/gettext-h (License): Likewise.
57770         * modules/include_next (License): Likewise.
57771         * modules/link-warning (License): Likewise.
57772         * modules/localcharset (License): Likewise.
57773         * modules/localename (License): Likewise.
57774         * modules/lock (License): Likewise.
57775         * modules/relocatable-lib-lgpl (License): Likewise.
57776         * modules/size_max (License): Likewise.
57777         * modules/vasnprintf (License): Likewise.
57778         * modules/wchar (License): Likewise.
57779         * modules/xsize (License): Likewise.
57780
57781 2007-07-13  Bruno Haible  <bruno@clisp.org>
57782
57783         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
57784         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
57785
57786 2007-07-12  Bruno Haible  <bruno@clisp.org>
57787
57788         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
57789         in the modules files.
57790
57791 2007-07-11  Karl Berry  <karl@gnu.org>
57792
57793         * MODULES.html.sh (func_module): use
57794          sed -e '\|^'"${includefile}"'$|d'
57795          instead of /.../d, to avoid errors on $includefile's containing /.
57796
57797 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
57798
57799         * gnulib-tool (func_import): Avoid duplication of --avoid
57800         statements
57801         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
57802         names to `_' in variable names.
57803
57804 2007-07-10  Eric Blake  <ebb9@byu.net>
57805
57806         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
57807         * NEWS: Document this change.
57808
57809 2007-07-08  Bruno Haible  <bruno@clisp.org>
57810
57811         Update to Unicode 5.0.
57812         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
57813         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
57814         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
57815         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
57816         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
57817         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
57818         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
57819         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
57820         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
57821         U+10A3F, U+1D242..U+1D244.
57822         (nonspacing_table_ind): Update.
57823         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
57824         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
57825
57826 2007-07-08  Bruno Haible  <bruno@clisp.org>
57827
57828         Update to Unicode 5.0.
57829         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
57830         code transform. Extend the name index field of unicode_name_to_code and
57831         unicode_code_to_name from 16 to 24 bits.
57832         * lib/uniname/uniname.c (unicode_character_name,
57833         unicode_name_character): Add the range 0x12xxx to the code transform.
57834         * lib/uniname/uninames.h: Regenerated.
57835         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
57836
57837 2007-07-07  Bruno Haible  <bruno@clisp.org>
57838
57839         * modules/wcwidth-tests: New file.
57840         * tests/test-wcwidth.c: New file.
57841
57842         Work around MacOS X wcwidth() bug.
57843         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
57844         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
57845         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
57846         original wcwidth in non-UTF-8 locales.
57847         * modules/wcwidth (Depends-on): Add localcharset, streq,
57848         uniwidth/width.
57849         * doc/functions/wcwidth.texi: Update.
57850
57851 2007-07-07  Bruno Haible  <bruno@clisp.org>
57852
57853         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
57854         (wcwidth): New declaration.
57855         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
57856         macros.
57857         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
57858         here. Prepare for creating <wchar.h> unconditionally.
57859         * modules/wchar (Depends-on): Add link-warning.
57860         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
57861         REPLACE_WCWIDTH, and GL_LINK_WARNING.
57862         * lib/wcwidth.h: Remove file.
57863         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
57864         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
57865         * modules/wcwidth (Files): Remove lib/wcwidth.h.
57866         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
57867         (Include): Replace wcwidth.h with <wchar.h>.
57868         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
57869         * lib/mbchar.h: Don't include wcwidth.h.
57870         * lib/mbswidth.c: Likewise.
57871         * NEWS: Mention the change.
57872
57873 2007-07-07  Bruno Haible  <bruno@clisp.org>
57874
57875         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
57876         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
57877         definition with an external declaration.
57878         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
57879         defined as a function. Remove AC_C_INLINE requirement.
57880         * modules/wcwidth (Files): Add lib/wcwidth.c.
57881         (Makefile.am): Remove redundant statement.
57882
57883 2007-07-07  Bruno Haible  <bruno@clisp.org>
57884
57885         * MODULES.html.sh (Unicode string functions): Add the new modules.
57886
57887         * tests/uniwidth/test-u32-strwidth.c: New file.
57888         * modules/uniwidth/u32-strwidth-tests: New file.
57889
57890         * lib/uniwidth/u32-strwidth.c: New file.
57891         * modules/uniwidth/u32-strwidth: New file.
57892
57893         * tests/uniwidth/test-u16-strwidth.c: New file.
57894         * modules/uniwidth/u16-strwidth-tests: New file.
57895
57896         * lib/uniwidth/u16-strwidth.c: New file.
57897         * modules/uniwidth/u16-strwidth: New file.
57898
57899         * tests/uniwidth/test-u8-strwidth.c: New file.
57900         * modules/uniwidth/u8-strwidth-tests: New file.
57901
57902         * lib/uniwidth/u8-strwidth.c: New file.
57903         * modules/uniwidth/u8-strwidth: New file.
57904
57905         * tests/uniwidth/test-u32-width.c: New file.
57906         * modules/uniwidth/u32-width-tests: New file.
57907
57908         * lib/uniwidth/u32-width.c: New file.
57909         * modules/uniwidth/u32-width: New file.
57910
57911         * tests/uniwidth/test-u16-width.c: New file.
57912         * modules/uniwidth/u16-width-tests: New file.
57913
57914         * lib/uniwidth/u16-width.c: New file.
57915         * modules/uniwidth/u16-width: New file.
57916
57917         * tests/uniwidth/test-u8-width.c: New file.
57918         * modules/uniwidth/u8-width-tests: New file.
57919
57920         * lib/uniwidth/u8-width.c: New file.
57921         * modules/uniwidth/u8-width: New file.
57922
57923         * tests/uniwidth/test-uc_width.c: New file.
57924         * modules/uniwidth/width-tests: New file.
57925
57926         * lib/uniwidth/width.c: New file, from GNU libiconv.
57927         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
57928         * modules/uniwidth/width: New file.
57929
57930         * lib/uniwidth.h: New file, from GNU libiconv.
57931         * modules/uniwidth/base: New file.
57932
57933 2007-07-07  Bruno Haible  <bruno@clisp.org>
57934
57935         * lib/uniname.h: New file, from GNU gettext.
57936         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
57937         * lib/uniname/uninames.h: New file, from GNU gettext.
57938         * lib/uniname/uniname.c: New file, from GNU gettext.
57939         * tests/uniname/test-uninames.sh: New file.
57940         * tests/uniname/test-uninames.c: New file, from GNU gettext.
57941         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
57942         * modules/uniname/base: New file.
57943         * modules/uniname/uniname: New file.
57944         * modules/uniname/uniname-tests: New file.
57945         * MODULES.html.sh (Unicode string functions): Add the new modules.
57946
57947 2007-07-06  Bruno Haible  <bruno@clisp.org>
57948
57949         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
57950
57951 2007-07-06  Bruno Haible  <bruno@clisp.org>
57952
57953         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
57954         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
57955         includes <cygwin/sys_time.h> which includes <sys/select.h> which
57956         include <sys/time.h>.
57957         Reported by Eric Blake.
57958
57959 2007-07-06  Eric Blake  <ebb9@byu.net>
57960
57961         Fix testing canonicalize on cygwin.
57962         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
57963         Revert patch from 2007-06-19.
57964         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
57965         canonicalize module is also in use.
57966         * tests/test-canonicalize.c: New file.
57967         * tests/test-canonicalize.sh: Likewise.
57968         * modules/canonicalize-tests: Likewise.
57969
57970 2007-07-06  Jim Meyering  <jim@meyering.net>
57971
57972         * lib/getugroups.c (getugroups): Detect getgrent failure.
57973         Adjust comment to reflect reality: this function may return -1.
57974
57975 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
57976
57977         * build-aux/bootstrap (TP_URL,get_translations): Update to use
57978         the new TP address.
57979         (usage): Fix typo
57980         (gnulib_mk): New variable.
57981
57982 2007-07-05  Jim Meyering  <jim@meyering.net>
57983
57984         Don't let endgrent clobber errno, no matter how improbable.
57985         * lib/getugroups.c (getugroups): Save and restore errno around
57986         endgrent call.
57987
57988         Close the group DB even when failing with 2^31 or more members.
57989         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
57990
57991 2007-07-04  Jim Meyering  <jim@meyering.net>
57992
57993         * lib/getugroups.h: New file.
57994         * lib/getugroups.c: Include "getugroups.h".
57995         Remove uses of "register" keyword.
57996         Move local variable, "cp", down into scope where used.
57997         Give "username" parameter the "const" attribute.
57998         * modules/getugroups (Files): Add lib/getugroups.h
57999
58000 2007-07-04  Karl Berry  <karl@gnu.org>
58001
58002         * MODULES.html.sh (func_all_modules): Complete rename of
58003         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
58004
58005 2007-07-02  Bruno Haible  <bruno@clisp.org>
58006
58007         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
58008         mode, when inttypes.h comes from gnulib.
58009         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
58010
58011 2007-07-02  Simon Josefsson  <simon@josefsson.org>
58012
58013         * NEWS: Mention lgpl module name change.
58014
58015         * modules/lgpl-2.1: Renamed from lgpl.
58016
58017         * NEWS: Mention gpl module name change.
58018
58019         * modules/gpl-3.0: New file, based on gpl-2.0.
58020
58021         * modules/gpl-2.0: Renamed from gpl.
58022
58023         * modules/gpl: Fix filename, doc/gpl.texi is now found at
58024         doc/gpl-2.0.texi.
58025
58026 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
58027
58028         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
58029         #define __STDC_LIMIT_MACROS temporarily while including
58030         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
58031         Problem reported by Joel E. Denny in
58032         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
58033
58034 2007-07-01  Bruno Haible  <bruno@clisp.org>
58035
58036         * lib/unistdio.h: New file.
58037         * lib/unistdio/u-asnprintf.h: New file.
58038         * lib/unistdio/u-asprintf.h: New file.
58039         * lib/unistdio/u-printf-args.c: New file.
58040         * lib/unistdio/u-printf-args.h: New file.
58041         * lib/unistdio/u-printf-parse.h: New file.
58042         * lib/unistdio/u-snprintf.h: New file.
58043         * lib/unistdio/u-sprintf.h: New file.
58044         * lib/unistdio/u-vasprintf.h: New file.
58045         * lib/unistdio/u-vsnprintf.h: New file.
58046         * lib/unistdio/u-vsprintf.h: New file.
58047         * lib/unistdio/ulc-asnprintf.c: New file.
58048         * lib/unistdio/ulc-asprintf.c: New file.
58049         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
58050         * lib/unistdio/ulc-printf-parse.c: New file.
58051         * lib/unistdio/ulc-snprintf.c: New file.
58052         * lib/unistdio/ulc-sprintf.c: New file.
58053         * lib/unistdio/ulc-vasnprintf.c: New file.
58054         * lib/unistdio/ulc-vasprintf.c: New file.
58055         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
58056         * lib/unistdio/ulc-vsnprintf.c: New file.
58057         * lib/unistdio/ulc-vsprintf.c: New file.
58058         * lib/unistdio/u8-asnprintf.c: New file.
58059         * lib/unistdio/u8-asprintf.c: New file.
58060         * lib/unistdio/u8-printf-parse.c: New file.
58061         * lib/unistdio/u8-snprintf.c: New file.
58062         * lib/unistdio/u8-sprintf.c: New file.
58063         * lib/unistdio/u8-vasnprintf.c: New file.
58064         * lib/unistdio/u8-vasprintf.c: New file.
58065         * lib/unistdio/u8-vsnprintf.c: New file.
58066         * lib/unistdio/u8-vsprintf.c: New file.
58067         * lib/unistdio/u8-u8-asnprintf.c: New file.
58068         * lib/unistdio/u8-u8-asprintf.c: New file.
58069         * lib/unistdio/u8-u8-snprintf.c: New file.
58070         * lib/unistdio/u8-u8-sprintf.c: New file.
58071         * lib/unistdio/u8-u8-vasnprintf.c: New file.
58072         * lib/unistdio/u8-u8-vasprintf.c: New file.
58073         * lib/unistdio/u8-u8-vsnprintf.c: New file.
58074         * lib/unistdio/u8-u8-vsprintf.c: New file.
58075         * lib/unistdio/u16-asnprintf.c: New file.
58076         * lib/unistdio/u16-asprintf.c: New file.
58077         * lib/unistdio/u16-printf-parse.c: New file.
58078         * lib/unistdio/u16-snprintf.c: New file.
58079         * lib/unistdio/u16-sprintf.c: New file.
58080         * lib/unistdio/u16-vasnprintf.c: New file.
58081         * lib/unistdio/u16-vasprintf.c: New file.
58082         * lib/unistdio/u16-vsnprintf.c: New file.
58083         * lib/unistdio/u16-vsprintf.c: New file.
58084         * lib/unistdio/u16-u16-asnprintf.c: New file.
58085         * lib/unistdio/u16-u16-asprintf.c: New file.
58086         * lib/unistdio/u16-u16-snprintf.c: New file.
58087         * lib/unistdio/u16-u16-sprintf.c: New file.
58088         * lib/unistdio/u16-u16-vasnprintf.c: New file.
58089         * lib/unistdio/u16-u16-vasprintf.c: New file.
58090         * lib/unistdio/u16-u16-vsnprintf.c: New file.
58091         * lib/unistdio/u16-u16-vsprintf.c: New file.
58092         * lib/unistdio/u32-asnprintf.c: New file.
58093         * lib/unistdio/u32-asprintf.c: New file.
58094         * lib/unistdio/u32-printf-parse.c: New file.
58095         * lib/unistdio/u32-snprintf.c: New file.
58096         * lib/unistdio/u32-sprintf.c: New file.
58097         * lib/unistdio/u32-vasnprintf.c: New file.
58098         * lib/unistdio/u32-vasprintf.c: New file.
58099         * lib/unistdio/u32-vsnprintf.c: New file.
58100         * lib/unistdio/u32-vsprintf.c: New file.
58101         * lib/unistdio/u32-u32-asnprintf.c: New file.
58102         * lib/unistdio/u32-u32-asprintf.c: New file.
58103         * lib/unistdio/u32-u32-snprintf.c: New file.
58104         * lib/unistdio/u32-u32-sprintf.c: New file.
58105         * lib/unistdio/u32-u32-vasnprintf.c: New file.
58106         * lib/unistdio/u32-u32-vasprintf.c: New file.
58107         * lib/unistdio/u32-u32-vsnprintf.c: New file.
58108         * lib/unistdio/u32-u32-vsprintf.c: New file.
58109         * tests/unistdio/test-ulc-asnprintf1.c: New file.
58110         * tests/unistdio/test-ulc-asnprintf1.h: New file.
58111         * tests/unistdio/test-ulc-printf1.h: New file.
58112         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
58113         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
58114         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
58115         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
58116         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
58117         * tests/unistdio/test-ulc-vasprintf1.c: New file.
58118         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
58119         * tests/unistdio/test-ulc-vsprintf1.c: New file.
58120         * tests/unistdio/test-u8-asnprintf1.c: New file.
58121         * tests/unistdio/test-u8-asnprintf1.h: New file.
58122         * tests/unistdio/test-u8-printf1.h: New file.
58123         * tests/unistdio/test-u8-vasnprintf1.c: New file.
58124         * tests/unistdio/test-u8-vasnprintf2.c: New file.
58125         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
58126         * tests/unistdio/test-u8-vasnprintf3.c: New file.
58127         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
58128         * tests/unistdio/test-u8-vasprintf1.c: New file.
58129         * tests/unistdio/test-u8-vsnprintf1.c: New file.
58130         * tests/unistdio/test-u8-vsprintf1.c: New file.
58131         * tests/unistdio/test-u16-asnprintf1.c: New file.
58132         * tests/unistdio/test-u16-asnprintf1.h: New file.
58133         * tests/unistdio/test-u16-printf1.h: New file.
58134         * tests/unistdio/test-u16-vasnprintf1.c: New file.
58135         * tests/unistdio/test-u16-vasnprintf2.c: New file.
58136         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
58137         * tests/unistdio/test-u16-vasnprintf3.c: New file.
58138         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
58139         * tests/unistdio/test-u16-vasprintf1.c: New file.
58140         * tests/unistdio/test-u16-vsnprintf1.c: New file.
58141         * tests/unistdio/test-u16-vsprintf1.c: New file.
58142         * tests/unistdio/test-u32-asnprintf1.c: New file.
58143         * tests/unistdio/test-u32-asnprintf1.h: New file.
58144         * tests/unistdio/test-u32-printf1.h: New file.
58145         * tests/unistdio/test-u32-vasnprintf1.c: New file.
58146         * tests/unistdio/test-u32-vasnprintf2.c: New file.
58147         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
58148         * tests/unistdio/test-u32-vasnprintf3.c: New file.
58149         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
58150         * tests/unistdio/test-u32-vasprintf1.c: New file.
58151         * tests/unistdio/test-u32-vsnprintf1.c: New file.
58152         * tests/unistdio/test-u32-vsprintf1.c: New file.
58153         * modules/unistdio/base: New file.
58154         * modules/unistdio/u-printf-args: New file.
58155         * modules/unistdio/ulc-asnprintf: New file.
58156         * modules/unistdio/ulc-asprintf: New file.
58157         * modules/unistdio/ulc-fprintf: New file.
58158         * modules/unistdio/ulc-printf-parse: New file.
58159         * modules/unistdio/ulc-snprintf: New file.
58160         * modules/unistdio/ulc-sprintf: New file.
58161         * modules/unistdio/ulc-vasnprintf: New file.
58162         * modules/unistdio/ulc-vasprintf: New file.
58163         * modules/unistdio/ulc-vfprintf: New file.
58164         * modules/unistdio/ulc-vsnprintf: New file.
58165         * modules/unistdio/ulc-vsprintf: New file.
58166         * modules/unistdio/u8-asnprintf: New file.
58167         * modules/unistdio/u8-asprintf: New file.
58168         * modules/unistdio/u8-printf-parse: New file.
58169         * modules/unistdio/u8-snprintf: New file.
58170         * modules/unistdio/u8-sprintf: New file.
58171         * modules/unistdio/u8-vasnprintf: New file.
58172         * modules/unistdio/u8-vasprintf: New file.
58173         * modules/unistdio/u8-vsnprintf: New file.
58174         * modules/unistdio/u8-vsprintf: New file.
58175         * modules/unistdio/u8-u8-asnprintf: New file.
58176         * modules/unistdio/u8-u8-asprintf: New file.
58177         * modules/unistdio/u8-u8-snprintf: New file.
58178         * modules/unistdio/u8-u8-sprintf: New file.
58179         * modules/unistdio/u8-u8-vasnprintf: New file.
58180         * modules/unistdio/u8-u8-vasprintf: New file.
58181         * modules/unistdio/u8-u8-vsnprintf: New file.
58182         * modules/unistdio/u8-u8-vsprintf: New file.
58183         * modules/unistdio/u16-asnprintf: New file.
58184         * modules/unistdio/u16-asprintf: New file.
58185         * modules/unistdio/u16-printf-parse: New file.
58186         * modules/unistdio/u16-snprintf: New file.
58187         * modules/unistdio/u16-sprintf: New file.
58188         * modules/unistdio/u16-vasnprintf: New file.
58189         * modules/unistdio/u16-vasprintf: New file.
58190         * modules/unistdio/u16-vsnprintf: New file.
58191         * modules/unistdio/u16-vsprintf: New file.
58192         * modules/unistdio/u16-u16-asnprintf: New file.
58193         * modules/unistdio/u16-u16-asprintf: New file.
58194         * modules/unistdio/u16-u16-snprintf: New file.
58195         * modules/unistdio/u16-u16-sprintf: New file.
58196         * modules/unistdio/u16-u16-vasnprintf: New file.
58197         * modules/unistdio/u16-u16-vasprintf: New file.
58198         * modules/unistdio/u16-u16-vsnprintf: New file.
58199         * modules/unistdio/u16-u16-vsprintf: New file.
58200         * modules/unistdio/u32-asnprintf: New file.
58201         * modules/unistdio/u32-asprintf: New file.
58202         * modules/unistdio/u32-printf-parse: New file.
58203         * modules/unistdio/u32-snprintf: New file.
58204         * modules/unistdio/u32-sprintf: New file.
58205         * modules/unistdio/u32-vasnprintf: New file.
58206         * modules/unistdio/u32-vasprintf: New file.
58207         * modules/unistdio/u32-vsnprintf: New file.
58208         * modules/unistdio/u32-vsprintf: New file.
58209         * modules/unistdio/u32-u32-asnprintf: New file.
58210         * modules/unistdio/u32-u32-asprintf: New file.
58211         * modules/unistdio/u32-u32-snprintf: New file.
58212         * modules/unistdio/u32-u32-sprintf: New file.
58213         * modules/unistdio/u32-u32-vasnprintf: New file.
58214         * modules/unistdio/u32-u32-vasprintf: New file.
58215         * modules/unistdio/u32-u32-vsnprintf: New file.
58216         * modules/unistdio/u32-u32-vsprintf: New file.
58217         * modules/unistdio/ulc-asnprintf-tests: New file.
58218         * modules/unistdio/ulc-vasnprintf-tests: New file.
58219         * modules/unistdio/ulc-vasprintf-tests: New file.
58220         * modules/unistdio/ulc-vsnprintf-tests: New file.
58221         * modules/unistdio/ulc-vsprintf-tests: New file.
58222         * modules/unistdio/u8-asnprintf-tests: New file.
58223         * modules/unistdio/u8-vasnprintf-tests: New file.
58224         * modules/unistdio/u8-vasprintf-tests: New file.
58225         * modules/unistdio/u8-vsnprintf-tests: New file.
58226         * modules/unistdio/u8-vsprintf-tests: New file.
58227         * modules/unistdio/u16-asnprintf-tests: New file.
58228         * modules/unistdio/u16-vasnprintf-tests: New file.
58229         * modules/unistdio/u16-vasprintf-tests: New file.
58230         * modules/unistdio/u16-vsnprintf-tests: New file.
58231         * modules/unistdio/u16-vsprintf-tests: New file.
58232         * modules/unistdio/u32-asnprintf-tests: New file.
58233         * modules/unistdio/u32-vasnprintf-tests: New file.
58234         * modules/unistdio/u32-vasprintf-tests: New file.
58235         * modules/unistdio/u32-vsnprintf-tests: New file.
58236         * modules/unistdio/u32-vsprintf-tests: New file.
58237         * MODULES.html.sh (Unicode string functions): Add the new modules.
58238
58239 2007-07-01  Bruno Haible  <bruno@clisp.org>
58240
58241         * lib/sprintf.c (sprintf): Limit the available length estimation,
58242         to avoid address wraparound.
58243         * lib/vsprintf.c (vsprintf): Likewise.
58244         * modules/sprintf-posix (Dependencies): Add stdint.
58245         * modules/vsprintf-posix (Dependencies): Likewise.
58246
58247 2007-07-01  Bruno Haible  <bruno@clisp.org>
58248
58249         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
58250         Windows PATH as well. Conservative double-quoting. Comments.
58251
58252 2007-07-01  Bruno Haible  <bruno@clisp.org>
58253             Eric Blake  <ebb9@byu.net>
58254             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58255
58256         * gnulib-tool (self_abspathname): Fix algorithm to cope with
58257         empty components in $PATH, denoting '.'.
58258
58259 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58260
58261         * gnulib-tool: Fix indentation.
58262         (func_create_megatestdir): Likewise.
58263         Report by Bruno Haible.
58264
58265 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58266
58267         Sync from Automake.
58268         * build-aux/gnupload: Fix shell portability issues with for loops.
58269         Report by Karl Berry.
58270
58271 2007-06-29  Simon Josefsson  <simon@josefsson.org>
58272
58273         * build-aux/maint.mk (POURL): Use translationproject.org.
58274
58275 2007-06-27  Simon Josefsson  <simon@josefsson.org>
58276             Bruno Haible  <bruno@clisp.org>
58277
58278         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
58279         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
58280         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
58281         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
58282         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
58283
58284 2007-06-27  Bruno Haible  <bruno@clisp.org>
58285
58286         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
58287         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
58288
58289 2007-06-26  Karl Berry  <karl@gnu.org>
58290
58291         * MODULES.html.sh: remove xreadlink-with-size.
58292
58293 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
58294
58295         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
58296         method that I hope also handles the double-include problem noted
58297         by Bruno Haible in
58298         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
58299
58300 2007-06-23  Bruno Haible  <bruno@clisp.org>
58301
58302         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
58303         Don't let the 'mostlyclean' target fail if the last subdirectory could
58304         not be removed.
58305         Reported by Karl Berry.
58306
58307 2007-06-23  Bruno Haible  <bruno@clisp.org>
58308
58309         * gnulib-tool (echo): Add a speedier workaround for ksh.
58310         * tests/test-echo.sh: Likewise.
58311
58312 2007-06-23  Bruno Haible  <bruno@clisp.org>
58313
58314         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
58315         * tests/test-echo.sh: Likewise.
58316
58317 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58318
58319         * gnulib-tool (IFS): Initialize early, so we don't set it to
58320         empty later.
58321         (self_abspathname): Rewrite algorithm to set it, reindent.
58322         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
58323         (func_create_megatestdir): Merge some sed scripts.
58324
58325 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
58326
58327         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
58328         exposed by Sun Studio 11 cc on Solaris 8.
58329
58330 2007-06-22  Bruno Haible  <bruno@clisp.org>
58331
58332         * gnulib-tool (echo): Ensure the echo primitive does not interpret
58333         backslashes.
58334         * tests/test-echo.sh: New file.
58335
58336 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58337
58338         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
58339         simplify `sed_replace_build_aux' scripts, they are portable but
58340         echoing them with `echo' is not.
58341         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
58342
58343 2007-06-21  Karl Berry  <karl@gnu.org>
58344
58345         * config/srclist.txt: guess we can't handle the licenses via
58346         srclist at the moment.
58347
58348 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
58349
58350         * MODULES.html.sh: Add include_next.
58351         * modules/include_next: New file.
58352
58353 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
58354
58355         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
58356         INCLUDE_NEXT.
58357         (gl_CHECK_NEXT_HEADERS): New macro.
58358         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
58359         the obsolescent gl_ABSOLUTE_HEADER.
58360         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
58361         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
58362         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
58363         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
58364         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
58365         * m4/math_h.m4 (gl_MATH_H): Likewise.
58366         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
58367         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
58368         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
58369         * m4/stdint.m4 (gl_STDINT_H): Likewise.
58370         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
58371         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
58372         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
58373         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
58374         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
58375         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
58376         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
58377         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
58378         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
58379         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
58380         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
58381         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
58382         * m4/inttypes.m4 (gl_INTTYPES_H): Define
58383         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
58384         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
58385         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
58386         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
58387         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
58388         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
58389         * lib/float_.h: Likewise.
58390         * lib/inttypes_.h: Likewise.
58391         * lib/math_.h: Likewise.
58392         * lib/search_.h: Likewise.
58393         * lib/signal_.h: Likewise.
58394         * lib/stdint_.h: Likewise.
58395         * lib/stdio_.h: Likewise.
58396         * lib/stdlib_.h: Likewise.
58397         * lib/string_.h: Likewise.
58398         * lib/sys_stat_.h: Likewise.
58399         * lib/sys_time_.h: Likewise.
58400         * lib/time_.h: Likewise.
58401         * lib/unistd_.h: Likewise.
58402         * lib/wchar_.h: Likewise.
58403         * lib/wctype_.h: Likewise.
58404         * lib/dirent_.h: Likewise.
58405         * lib/iconv_.h: Likewise.
58406         * lib/locale_.h: Likewise.
58407         * lib/netinet_in_.h: Likewise.
58408         * lib/sys_select_.h: Likewise.
58409         * lib/sys_socket_.h: Likewise.
58410         * lib/sysexits_.h: Likewise.
58411         * modules/fcntl (Depends-on): Depend on include_next, not
58412         absolute_header.
58413         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
58414         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
58415         * modules/fchdir: Likewise.
58416         * modules/float: Likewise.
58417         * modules/iconv_open: Likewise.
58418         * modules/inttypes: Likewise.
58419         * modules/locale: Likewise.
58420         * modules/math: Likewise.
58421         * modules/netinet_in: Likewise.
58422         * modules/search: Likewise.
58423         * modules/signal: Likewise.
58424         * modules/stdint: Likewise.
58425         * modules/stdio: Likewise.
58426         * modules/stdlib: Likewise.
58427         * modules/string: Likewise.
58428         * modules/sys_select: Likewise.
58429         * modules/sys_socket: Likewise.
58430         * modules/sys_stat: Likewise.
58431         * modules/sys_time: Likewise.
58432         * modules/sysexits: Likewise.
58433         * modules/time: Likewise.
58434         * modules/unistd: Likewise.
58435         * modules/wchar: Likewise.
58436         * modules/wctype: Likewise.
58437         * modules/sys_stat: Change maintainer to "all".
58438         * modules/unistd: Likewise.
58439
58440 2007-06-20  Karl Berry  <karl@gnu.org>
58441
58442         * config/srclist.txt: track www changes in license files.
58443
58444 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
58445
58446         * build-aux/bootstrap: Remove stray dot.
58447         Make sure build_aux settings are honored when linking
58448         gnulib_extra_files.
58449
58450 2007-06-19  Eric Blake  <ebb9@byu.net>
58451
58452         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
58453         Allow compilation on cygwin.
58454
58455 2007-06-19  Jim Meyering  <jim@meyering.net>
58456
58457         xreadlink-with-size: Remove module.  No longer used.
58458         Ex-callers now use xreadlink or mreadlink-with-size.
58459         * modules/xreadlink-with-size: Remove module.
58460         * lib/xreadlink-with-size.c: Remove file.
58461         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
58462         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
58463         just before the function definition *is* accurate.
58464
58465         Eliminate one way canonicalize_filename_mode could exit.
58466         * lib/canonicalize.c (canonicalize_filename_mode):
58467         Use mreadlink_with_size, not xreadlink_with_size.
58468
58469 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
58470
58471         Detect porting problems to FreeBSD/arm, which has time_t wider than
58472         long int.  Original problem reported for GNU diff by Xin Li in
58473         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
58474         * modules/getdate (Depends-on): Add intprops, verify.
58475         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
58476         is an integer type no wider than long int.
58477
58478 2007-06-18  Jim Meyering  <jim@meyering.net>
58479
58480         New module: mreadlink-with-size.
58481         * MODULES.html.sh: Add mreadlink-with-size.
58482         * modules/mreadlink-with-size: New module
58483         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
58484         not xreadlink-with-size.
58485         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
58486
58487 2007-06-16  Bruno Haible  <bruno@clisp.org>
58488
58489         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
58490         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
58491         Reported by Gary V. Vaughan <gary@gnu.org>.
58492
58493 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
58494
58495         Revamp lchown so that it lives in unistd.h where it belongs.
58496         * lib/lchown.h: Remove.
58497         * lib/dirchownmod.c: Don't include lib/lchown.h.
58498         * lib/fchownat.c: Likewise.
58499         * lib/openat.c: Likewise.
58500         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
58501         does not follow symlinks.
58502         (EOPNOTSUPP): Define if not defined.
58503         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
58504         is defined to 0.
58505         (lchown): New decl.
58506         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
58507         Do not check for lchown decl.
58508         Set REPLACE_LCHOWN.
58509         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
58510         REPLACE_LCHOWN.
58511         * modules/chown: Make it clear it follows symlinks.
58512         * modules/lchown: Make it clear it doesn't follow symlinks.
58513         (Files): Remove lib/lchown.h
58514         (Depends-on): Add unistd.
58515         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
58516         (Include): Include <unistd.h>, not "lchown.h".
58517         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
58518         REPLACE_LCHOWN.
58519
58520 2007-06-15  Jim Meyering  <jim@meyering.net>
58521
58522         Change license (GPL to LGPL) of fsusage and dependents.
58523         * modules/fsusage (License): Change to LGPL.
58524         * modules/full-read (License): Likewise.
58525         * modules/full-write (License): Likewise.
58526         * modules/safe-read (License): Likewise.
58527         * modules/safe-write (License): Likewise.
58528
58529 2007-06-14  Ben Pfaff  <blp@gnu.org>
58530
58531         Missing part of allocsa -> malloca transition.
58532         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
58533         gl_MALLOCA.
58534
58535 2007-06-12  Bruno Haible  <bruno@clisp.org>
58536
58537         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
58538         to ia64, x86_64, i386.
58539         Reported by Eric Blake.
58540
58541 2007-06-12  Bruno Haible  <bruno@clisp.org>
58542
58543         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
58544         cross-compiling to x86_64.
58545
58546 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
58547
58548         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
58549         glitch reported by Ralf Wildenhues in
58550         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
58551
58552         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
58553         Vin Shelton.
58554
58555 2007-06-11  Bruno Haible  <bruno@clisp.org>
58556
58557         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
58558         replacement string.
58559         Reported by Eric Blake.
58560
58561 2007-06-10  Bruno Haible  <bruno@clisp.org>
58562
58563         Prepare vasnprintf code for use with Unicode strings.
58564         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
58565         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
58566         TYPE_U32_STRING.
58567         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
58568         a_u32_string variants.
58569         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
58570         * lib/printf-args.c: Don't include config.h and the specification
58571         header if PRINTF_FETCHARGS is already defined.
58572         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
58573         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
58574         TYPE_U16_STRING, TYPE_U32_STRING.
58575         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
58576         u16_directive, u16_directives, u32_directive, u32_directives): New
58577         types.
58578         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
58579         New declarations.
58580         * lib/printf-parse.c: Don't include config.h and the specification
58581         header if PRINTF_PARSE is already defined. Eliminate the set of
58582         parameters for WIDE_CHAR_VERSION; the user of this file must provide
58583         them now. Include c-ctype.h.
58584         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
58585         directive and CHAR_T_ONLY_ASCII.
58586         * lib/vasnprintf.c: Don't include config.h and the specification header
58587         if VASNPRINTF is already defined.
58588         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
58589         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
58590         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
58591         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
58592         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
58593         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
58594         code accordingly.
58595         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
58596         pad_ourselves also in this case, with the 'c' and 's' directives, and
58597         with a different notion of "width".
58598         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
58599
58600 2007-06-10  Bruno Haible  <bruno@clisp.org>
58601
58602         * modules/unistr/u32-mbsnlen: New file.
58603         * lib/unistr/u32-mbsnlen.c: New file.
58604
58605         * modules/unistr/u16-mbsnlen: New file.
58606         * lib/unistr/u16-mbsnlen.c: New file.
58607
58608         * modules/unistr/u8-mbsnlen: New file.
58609         * lib/unistr/u8-mbsnlen.c: New file.
58610
58611         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
58612         declarations.
58613
58614 2007-06-10  Bruno Haible  <bruno@clisp.org>
58615
58616         * lib/string_.h (mbsnlen): New declaration.
58617         * lib/mbsnlen.c: New file.
58618         * m4/mbsnlen.m4: New file.
58619         * modules/mbsnlen: New file.
58620         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
58621         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
58622         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
58623
58624 2007-06-10  Bruno Haible  <bruno@clisp.org>
58625
58626         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
58627
58628 2007-06-10  Bruno Haible  <bruno@clisp.org>
58629
58630         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
58631         * lib/mbuiter.h: Likewise.
58632
58633 2007-06-10  Bruno Haible  <bruno@clisp.org>
58634
58635         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
58636         declaration.
58637
58638 2007-06-10  Karl Berry  <karl@gnu.org>
58639
58640         * config/srclist.txt: remove gettext entries, Bruno prefers
58641         to update individually.
58642
58643 2007-06-10  Bruno Haible  <bruno@clisp.org>
58644
58645         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
58646         'maxlen'. Ensure only length + width bytes are allocated, not
58647         length + 1 + width.
58648
58649 2007-06-09  Bruno Haible  <bruno@clisp.org>
58650
58651         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
58652         (CHAR_T): Remove macro.
58653         (VASNPRINTF): Update.
58654
58655 2007-06-09  Bruno Haible  <bruno@clisp.org>
58656
58657         * MODULES.html.sh (Unicode string functions): Add the new modules.
58658
58659         * modules/uniconv/u32-conv-to-enc: New file.
58660         * lib/uniconv/u32-conv-to-enc.c: New file.
58661         * modules/uniconv/u32-conv-to-enc-tests: New file.
58662         * tests/uniconv/test-u32-conv-to-enc.c: New file.
58663
58664         * modules/uniconv/u16-conv-to-enc: New file.
58665         * lib/uniconv/u16-conv-to-enc.c: New file.
58666         * lib/uniconv/u-conv-to-enc.h: New file.
58667         * modules/uniconv/u16-conv-to-enc-tests: New file.
58668         * tests/uniconv/test-u16-conv-to-enc.c: New file.
58669
58670         * modules/uniconv/u8-conv-to-enc: New file.
58671         * lib/uniconv/u8-conv-to-enc.c: New file.
58672         * modules/uniconv/u8-conv-to-enc-tests: New file.
58673         * tests/uniconv/test-u8-conv-to-enc.c: New file.
58674
58675         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
58676         u32_conv_to_encoding): New declarations.
58677
58678 2007-06-09  Bruno Haible  <bruno@clisp.org>
58679
58680         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
58681
58682 2007-06-09  Bruno Haible  <bruno@clisp.org>
58683
58684         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
58685         * modules/malloca: Renamed from modules/allocsa, updated.
58686         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
58687         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
58688         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
58689         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
58690         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
58691         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
58692         * modules/xmalloca: Renamed from modules/xallocsa, updated.
58693         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
58694         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
58695         * modules/c-strcasestr (Depends-on): Update.
58696         * lib/c-strcasestr.c: Update.
58697         * modules/c-strstr (Depends-on): Update.
58698         * lib/c-strstr.c: Update.
58699         * modules/canonicalize-lgpl (Depends-on): Update.
58700         * lib/canonicalize-lgpl.c: Update.
58701         * modules/clean-temp (Depends-on): Update.
58702         * lib/clean-temp.c: Update.
58703         * modules/csharpcomp (Depends-on): Update.
58704         * lib/csharpcomp.c: Update.
58705         * modules/csharpexec (Depends-on): Update.
58706         * lib/csharpexec.c: Update.
58707         * modules/javacomp (Depends-on): Update.
58708         * lib/javacomp.c: Update.
58709         * modules/javaexec (Depends-on): Update.
58710         * lib/javaexec.c: Update.
58711         * modules/mbscasestr (Depends-on): Update.
58712         * lib/mbscasestr.c: Update.
58713         * modules/mbsstr (Depends-on): Update.
58714         * lib/mbsstr.c: Update.
58715         * modules/setenv (Depends-on): Update.
58716         * lib/setenv.c: Update.
58717         * modules/strcasestr (Depends-on): Update.
58718         * lib/strcasestr.c: Update.
58719         * modules/striconveha (Depends-on): Update.
58720         * lib/striconveha.c: Update.
58721         * modules/relocatable-prog-wrapper (Files): Update.
58722         * lib/relocwrapper.c: Update.
58723         * build-aux/install-reloc: Update.
58724         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
58725
58726 2007-06-08  Bruno Haible  <bruno@clisp.org>
58727
58728         Port to uClibc.
58729         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
58730         * lib/fpurge.c (fpurge): Likewise.
58731         * lib/freading.c (freading): Likewise.
58732         * lib/fseeko.c (rpl_fseeko): Likewise.
58733         * lib/fseterr.c (fseterr): Likewise.
58734         * lib/fwriting.c (fwriting): Likewise.
58735         * tests/test-fflush.c (main): Avoid a failure on uClibc.
58736
58737 2007-06-08  Bruno Haible  <bruno@clisp.org>
58738
58739         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
58740         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
58741         * modules/gettext (Files): Add m4/intlmacosx.m4.
58742
58743 2007-06-07  Bruno Haible  <bruno@clisp.org>
58744
58745         * modules/localename-tests: New file.
58746         * tests/test-localename.c: New file.
58747
58748         New module 'localename'.
58749         * lib/localename.h: New file.
58750         * lib/localename.c: New file, from GNU gettext.
58751         * m4/localename.m4: New file.
58752         * modules/localename: New file.
58753
58754 2007-06-07  Bruno Haible  <bruno@clisp.org>
58755
58756         Work around the lack of <wchar.h> on some builds of uClibc.
58757         * doc/headers/wchar.texi: Update.
58758         * lib/wchar_.h: Include <wchar.h> only if it exists.
58759         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
58760         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
58761         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
58762         doesn't exist.
58763         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
58764         * modules/mbfile (Depends-on): Add wchar.
58765         * modules/mbiter (Depends-on): Likewise.
58766         * modules/mbuiter (Depends-on): Likewise.
58767         Reported by Simon Josefsson.
58768
58769 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
58770
58771         Work around problem reported by Steven M. Schweda in
58772         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
58773         Tru64 5.1B with the Compaq compiler environment installed declares
58774         an 'isblank' function but does not define it in the C library.
58775         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
58776         * lib/regex_internal.h (isblank): Likewise.
58777         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
58778         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
58779
58780 2007-06-05  Bruno Haible  <bruno@clisp.org>
58781
58782         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
58783         ia64.
58784         * modules/printf-safe: New file.
58785         * modules/fprintf-posix (Depends-on): Add printf-safe.
58786         * modules/printf-posix (Depends-on): Likewise.
58787         * modules/snprintf-posix (Depends-on): Likewise.
58788         * modules/sprintf-posix (Depends-on): Likewise.
58789         * modules/vasnprintf-posix (Depends-on): Likewise.
58790         * modules/vasprintf-posix (Depends-on): Likewise.
58791         * modules/vfprintf-posix (Depends-on): Likewise.
58792         * modules/vprintf-posix (Depends-on): Likewise.
58793         * modules/vsnprintf-posix (Depends-on): Likewise.
58794         * modules/vsprintf-posix (Depends-on): Likewise.
58795         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
58796         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
58797         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
58798         "no" on i386, x86_64, ia64.
58799         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
58800         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
58801         on i386, x86_64, ia64.
58802         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
58803         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
58804         on i386, x86_64, ia64.
58805         * tests/test-vasnprintf-posix.c: Include float.h.
58806         (LDBL80_WORDS): New macro.
58807         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
58808         on i386, x86_64, ia64.
58809         * tests/test-vasprintf-posix.c: Include float.h.
58810         (LDBL80_WORDS): New macro.
58811         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
58812         on i386, x86_64, ia64.
58813         * tests/test-snprintf-posix.c: Include float.h.
58814         * tests/test-sprintf-posix.c: Likewise.
58815         * tests/test-vsnprintf-posix.c: Likewise.
58816         * tests/test-vsprintf-posix.c: Likewise.
58817
58818 2007-06-05  Bruno Haible  <bruno@clisp.org>
58819
58820         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
58821         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
58822         non-IEEE numbers on i386, x86_64, ia64.
58823         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
58824         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
58825         * tests/test-isnanl.h: Include float.h.
58826         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
58827
58828 2007-06-05  Bruno Haible  <bruno@clisp.org>
58829
58830         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
58831         also the %a / %A. Handle the %a / %A code before this extra handling.
58832
58833 2007-06-05  Bruno Haible  <bruno@clisp.org>
58834
58835         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
58836         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
58837
58838 2007-06-05  Bruno Haible  <bruno@clisp.org>
58839
58840         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
58841         typo in variable name.
58842
58843 2007-06-05  Eric Blake  <ebb9@byu.net>
58844
58845         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
58846         Reported by Simon Josefsson.
58847
58848 2007-06-04  Bruno Haible  <bruno@clisp.org>
58849
58850         Avoid test failures on some PowerPC platforms.
58851         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
58852         Define differently for PowerPC.
58853         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
58854         Reported by Gary V. Vaughan <gary@gnu.org>.
58855
58856 2007-06-02  Bruno Haible  <bruno@clisp.org>
58857
58858         Fix test-stdint failure on FreeBSD/ia64.
58859         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
58860         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
58861         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
58862         * doc/headers/stdint.texi: Update.
58863
58864 2007-06-01  Bruno Haible  <bruno@clisp.org>
58865
58866         * tests/test-binary-io.c (main): Pass a third argument to open().
58867         Reported by Gary V. Vaughan <gary@gnu.org>.
58868
58869 2007-06-01  Bruno Haible  <bruno@clisp.org>
58870
58871         * doc/functions/frexpl.texi: Update for mingw.
58872
58873 2007-06-01  Bruno Haible  <bruno@clisp.org>
58874
58875         * tests/test-lseek.c (main): Disable test of errno for invalid third
58876         argument.
58877         * doc/functions/lseek.texi: Update.
58878         Reported by Gary V. Vaughan <gary@gnu.org>.
58879
58880 2007-05-28  Bruno Haible  <bruno@clisp.org>
58881
58882         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
58883
58884 2007-05-31  Eric Blake  <ebb9@byu.net>
58885
58886         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
58887         cross compiling.
58888
58889 2007-05-30  Eric Blake  <ebb9@byu.net>
58890         and Bruno Haible  <bruno@clisp.org>
58891
58892         Work around mingw test failures exposed by m4-1.4.9b.
58893         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
58894         * tests/test-unistd.c: Disable uid_t and git_t tests for the
58895         moment.
58896
58897 2007-05-30  Bruno Haible  <bruno@clisp.org>
58898
58899         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
58900         assuming that they are closed. Needed on HP-UX 11.
58901
58902 2007-05-29  Bruno Haible  <bruno@clisp.org>
58903
58904         Fix a problem with #include_next.
58905         * lib/dirent_.h: Split the double-inclusion guard.
58906         * lib/fcntl_.h: Likewise.
58907         * lib/float_.h: Likewise.
58908         * lib/iconv_.h: Likewise.
58909         * lib/inttypes_.h: Likewise.
58910         * lib/locale_.h: Likewise.
58911         * lib/math_.h: Likewise.
58912         * lib/netinet_in_.h: Likewise.
58913         * lib/search_.h: Likewise.
58914         * lib/signal_.h: Likewise.
58915         * lib/stdint_.h: Likewise.
58916         * lib/stdio_.h: Likewise.
58917         * lib/stdlib_.h: Likewise.
58918         * lib/string_.h: Likewise.
58919         * lib/sys_select_.h: Likewise.
58920         * lib/sys_socket_.h: Likewise.
58921         * lib/sys_stat_.h: Likewise.
58922         * lib/sys_time_.h: Likewise.
58923         * lib/sysexits_.h: Likewise.
58924         * lib/time_.h: Likewise.
58925         * lib/unistd_.h: Likewise.
58926         * lib/wchar_.h: Likewise.
58927         * lib/wctype_.h: Likewise.
58928
58929 2007-05-29  Bruno Haible  <bruno@clisp.org>
58930
58931         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
58932         for the moment.
58933
58934 2007-05-29  Bruno Haible  <bruno@clisp.org>
58935
58936         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
58937         invocation.
58938         Reported by Eric Blake.
58939
58940 2007-05-29  Bruno Haible  <bruno@clisp.org>
58941
58942         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
58943         compiling case.
58944
58945 2007-05-29  Eric Blake  <ebb9@byu.net>
58946             Bruno Haible  <bruno@clisp.org>
58947
58948         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
58949         cross compiles.
58950
58951 2007-05-28  Eric Blake  <ebb9@byu.net>
58952
58953         * modules/closein-tests (test_closein_LDADD): Support test on
58954         cygwin with libtool.
58955
58956 2007-05-28  Bruno Haible  <bruno@clisp.org>
58957
58958         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
58959         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
58960         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
58961         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
58962         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
58963         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
58964         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
58965         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
58966         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
58967
58968 2007-05-28  Eric Blake  <ebb9@byu.net>
58969
58970         Unconditionally include <config.h> in unit tests.
58971         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
58972         * tests/test-allocsa.c, tests/test-arcfour.c,
58973         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
58974         tests/test-array_list.c, tests/test-array_oset.c,
58975         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
58976         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
58977         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
58978         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
58979         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
58980         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
58981         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
58982         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
58983         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
58984         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
58985         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
58986         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
58987         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
58988         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
58989         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
58990         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
58991         test-md5.c, test-memmem.c, test-printf-posix.c,
58992         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
58993         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
58994         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
58995         test-strcasestr.c, test-striconv.c, test-striconveh.c,
58996         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
58997         test-vasnprintf-posix2.c, test-vasnprintf.c,
58998         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
58999         test-vfprintf-posix.c, test-vprintf-posix.c,
59000         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
59001         test-xvasprintf.c: Likewise.
59002
59003 2007-05-28  Bruno Haible  <bruno@clisp.org>
59004
59005         * gnulib-tool (func_import): Remember the --with-tests command-line
59006         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
59007         Reported by Eric Blake.
59008
59009 2007-05-28  Bruno Haible  <bruno@clisp.org>
59010
59011         * modules/ftell-tests: New file.
59012         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
59013         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
59014
59015         * lib/ftell.c: New file.
59016         * modules/ftell: New file.
59017         * m4/ftell.m4: New file.
59018         * doc/functions/ftell.texi: Update.
59019         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
59020         REPLACE_FTELL.
59021         * lib/stdio_.h (rpl_ftell): New declaration.
59022         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
59023         REPLACE_FTELL.
59024
59025 2007-05-28  Eric Blake  <ebb9@byu.net>
59026
59027         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
59028
59029 2007-05-28  Bruno Haible  <bruno@clisp.org>
59030
59031         * modules/fseek-tests: New file.
59032         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
59033         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
59034
59035         * lib/fseek.c: New file.
59036         * modules/fseek: New file.
59037         * m4/fseek.m4: New file.
59038         * doc/functions/fseek.texi: Update.
59039         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
59040         REPLACE_FSEEK.
59041         * lib/stdio_.h (rpl_fseek): New declaration.
59042         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
59043         REPLACE_FSEEK.
59044
59045 2007-05-28  Bruno Haible  <bruno@clisp.org>
59046
59047         * lib/stdio_.h (fflush): More comments.
59048
59049 2007-05-28  Bruno Haible  <bruno@clisp.org>
59050
59051         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
59052         runtime test.
59053
59054 2007-05-28  Eric Blake  <ebb9@byu.net>
59055
59056         Improve lseek module.
59057         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
59058         * lib/unistd_.h (lseek): Scale back link warning message.
59059         * tests/test-lseek.c: Beef up test.
59060         * tests/test-lseek.sh: Exercise more facets of lseek.
59061         Reported by Bruno Haible.
59062
59063 2007-05-28  Bruno Haible  <bruno@clisp.org>
59064
59065         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
59066         to define.
59067
59068 2007-05-27  Bruno Haible  <bruno@clisp.org>
59069
59070         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
59071
59072 2007-05-27  Bruno Haible  <bruno@clisp.org>
59073
59074         * modules/openmp: New file.
59075         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
59076         Noah Misch.
59077
59078 2007-05-26  Bruno Haible  <bruno@clisp.org>
59079
59080         * modules/chdir-long (Depends-on): Add fchdir.
59081         * modules/chdir-safer (Depends-on): Likewise.
59082         * modules/fts (Depends-on): Likewise.
59083         * modules/fts-lgpl (Depends-on): Likewise.
59084         * modules/openat (Depends-on): Likewise.
59085         * modules/savewd (Depends-on): Likewise.
59086
59087 2007-05-24  Eric Blake  <ebb9@byu.net>
59088
59089         Fix lseek on mingw.
59090         * modules/lseek: New module.
59091         * m4/lseek.m4: New file.
59092         * lib/lseek.c: New file.
59093         * modules/lseek-tests: New file.
59094         * tests/test-lseek.c: New file.
59095         * tests/test-lseek.sh: New file.
59096         * MODULES.html.sh: Document lseek module.
59097         * modules/fflush (Depends-on): Add lseek, fseeko.
59098         * modules/fseeko (Depends-on): Likewise.
59099         * modules/ftello (Depends-on): Likewise.
59100         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
59101         broken.
59102         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
59103         broken.
59104         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
59105         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
59106         * lib/ftello.c (rpl_ftello): Likewise.
59107         * tests/test-fseeko.c (main): Test this.
59108         * tests/test-fseeko.sh: Likewise.
59109         * tests/test-ftello.c (main): Likewise.
59110         * tests/test-ftello.sh: Likewise.
59111         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
59112         implies replacing fseek.
59113         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
59114         HAVE_FTELLO.
59115         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
59116         * modules/unistd (Makefile.am): Likewise.
59117         * lib/unistd_.h (lseek): Declare a replacement.
59118         * doc/functions/lseek.texi (lseek): Document this fix.
59119         * doc/functions/fseek.texi (fseek): Likewise.
59120         * doc/functions/ftell.texi (ftell): Likewise.
59121
59122 2007-05-24  Bruno Haible  <bruno@clisp.org>
59123
59124         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
59125         in the printed representation of a NaN.
59126         * tests/test-vasprintf-posix.c (test_function): Likewise.
59127         * tests/test-snprintf-posix.h (test_function): Likewise.
59128         * tests/test-sprintf-posix.h (test_function): Likewise.
59129         Reported by Eric Blake.
59130
59131 2007-05-23  Eric Blake  <ebb9@byu.net>
59132
59133         Fix fseeko/ftello on cygwin 1.5.24.
59134         * doc/functions/fseeko.texi (fseeko): Document the fix.
59135         * doc/functions/ftello.texi (ftello): Document the fix.
59136         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
59137         * doc/functions/stdout.text (stdout): New file.
59138         * doc/functions/stderr.text (stderr): New file.
59139         * doc/gnulib.texi (Function Substitutes): Use new files.
59140         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
59141         prior to 1.7.0.
59142         * tests/test-ftello.c (main): Likewise for ftello.
59143         * tests/test-fseeko.sh: New file.
59144         * tests/test-ftello.sh: New file.
59145         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
59146         with seekable stdin.
59147         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
59148         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
59149         (gl_REPLACE_FSEEKO): New macro.
59150         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
59151         * modules/fseeko (Files): Distribute fseeko.c.
59152         * modules/ftello (Files): Distribute ftello.c.
59153         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
59154         mode.
59155         * lib/ftello.c (rpl_ftello): New file.
59156         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
59157         fseeko, ftello.
59158         (gl_STDIN_LARGE_OFFSET): New macro.
59159         * modules/stdio (Makefile.am): Perform the replacement.
59160         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
59161
59162 2007-05-23  Bruno Haible  <bruno@clisp.org>
59163
59164         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
59165         GNULIB_POSIXCHECK is defined.
59166
59167 2007-05-21  Bruno Haible  <bruno@clisp.org>
59168
59169         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
59170         Check also the output for NaN arguments. When cross-compiling, guess
59171         no on IRIX.
59172         * lib/vasnprintf.c: Update comments.
59173         * tests/test-vasnprintf-posix.c (strisnan): New function.
59174         (test_function): Use it.
59175         * tests/test-vasprintf-posix.c (strisnan): New function.
59176         (test_function): Use it.
59177         * tests/test-snprintf-posix.h (strisnan): New function.
59178         (test_function): Use it.
59179         * tests/test-sprintf-posix.h (strisnan): New function.
59180         (test_function): Use it.
59181         Reported by Eric Blake.
59182
59183 2007-05-20  Bruno Haible  <bruno@clisp.org>
59184
59185         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
59186         numbers that fails on BeOS.
59187         * doc/functions/frexpl.texi: Update.
59188
59189 2007-05-20  Jim Meyering  <jim@meyering.net>
59190
59191         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
59192         forced upon us by glibc-2.6.
59193
59194 2007-05-20  Bruno Haible  <bruno@clisp.org>
59195
59196         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
59197         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
59198         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
59199         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
59200         NEED_PRINTF_INFINITE.
59201         (is_infinitel): New function.
59202         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
59203         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
59204         gl_PREREQ_VASNPRINTF_INFINITE.
59205         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
59206         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59207         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
59208         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
59209         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
59210         gl_PREREQ_VASNPRINTF_INFINITE.
59211         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59212         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59213         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59214         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59215         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59216         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59217         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59218         * doc/functions/fprintf.texi: Update.
59219         * doc/functions/printf.texi: Update.
59220         * doc/functions/snprintf.texi: Update.
59221         * doc/functions/sprintf.texi: Update.
59222         * doc/functions/vfprintf.texi: Update.
59223         * doc/functions/vprintf.texi: Update.
59224         * doc/functions/vsnprintf.texi: Update.
59225         * doc/functions/vsprintf.texi: Update.
59226
59227 2007-05-20  Bruno Haible  <bruno@clisp.org>
59228
59229         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
59230         was not found in libc.
59231         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
59232
59233 2007-05-20  Bruno Haible  <bruno@clisp.org>
59234
59235         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
59236         printed as "-nan" instead of "nan".
59237         * tests/test-vasprintf-posix.c (test_function): Likewise.
59238         * tests/test-snprintf-posix.h (test_function): Likewise.
59239         * tests/test-sprintf-posix.h (test_function): Likewise.
59240         Needed for HP-UX 11.
59241
59242 2007-05-20  Jim Meyering  <jim@meyering.net>
59243
59244         Fix buggy test for the fchownat-deref bug.
59245         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
59246         symlink required for the run-test.  Without it, this test would
59247         always declare that fchownat doesn't work, and client code would
59248         unnecessarily use the replacement function with fixed libc.
59249         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
59250         Reported by Greg Schafer.
59251
59252 2007-05-19  Bruno Haible  <bruno@clisp.org>
59253
59254         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
59255         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
59256         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
59257         Needed for IRIX 6.5 and Solaris 2.5.1.
59258
59259 2007-05-19  Bruno Haible  <bruno@clisp.org>
59260
59261         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
59262         (test_function): Skip tests involving -0.0 on platforms where
59263         -0.0 = 0.0.
59264         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
59265         (test_function): Skip tests involving -0.0 on platforms where
59266         -0.0 = 0.0.
59267         * tests/test-snprintf-posix.h (have_minus_zero): New function.
59268         (test_function): Skip tests involving -0.0 on platforms where
59269         -0.0 = 0.0.
59270         * tests/test-sprintf-posix.h (have_minus_zero): New function.
59271         (test_function): Skip tests involving -0.0 on platforms where
59272         -0.0 = 0.0.
59273         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
59274         tests.
59275         * tests/test-printf-posix.h (test_function): Likewise.
59276         * tests/test-printf-posix.output: Remove all -0.0 related results.
59277         Needed for IRIX 6.5.
59278
59279 2007-05-19  Bruno Haible  <bruno@clisp.org>
59280
59281         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
59282         printed as "nan0x7fffffff" instead of "nan".
59283         * tests/test-vasprintf-posix.c (test_function): Likewise.
59284         * tests/test-snprintf-posix.h (test_function): Likewise.
59285         * tests/test-sprintf-posix.h (test_function): Likewise.
59286         * tests/test-fprintf-posix.h (NaN): Remove macro.
59287         (test_function): Remove all NaN related tests.
59288         * tests/test-printf-posix.h (NaN): Remove macro.
59289         (test_function): Remove all NaN related tests.
59290         * tests/test-printf-posix.output: Remove all NaN related results.
59291         Needed for IRIX 6.5.
59292
59293 2007-05-19  Bruno Haible  <bruno@clisp.org>
59294
59295         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
59296         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
59297
59298 2007-05-19  Bruno Haible  <bruno@clisp.org>
59299
59300         * lib/float_.h: New file.
59301         * m4/float_h.m4: New file.
59302         * modules/float: New file.
59303         * modules/isnanl (Dependencies): Add float.
59304         * modules/isnanl-nolibm (Dependencies): Likewise.
59305         * modules/mathl (Dependencies): Likewise.
59306         * modules/printf-frexpl (Dependencies): Likewise.
59307         * modules/signbit (Dependencies): Likewise.
59308         * modules/vasnprintf (Dependencies): Likewise.
59309         * doc/headers/float.texi: Update.
59310
59311 2007-05-19  Jim Meyering  <jim@meyering.net>
59312
59313         * lib/utimens.c (gl_futimens): Rename from futimens,
59314         now that glibc-2.6 declares futimens.
59315         * lib/utimens.h: Likewise.
59316
59317 2007-05-19  Bruno Haible  <bruno@clisp.org>
59318
59319         Avoid test failures on mingw.
59320         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
59321         * tests/test-printf-posix.sh: Likewise.
59322         * tests/test-vfprintf-posix.sh: Likewise.
59323         * tests/test-vprintf-posix.sh: Likewise.
59324
59325 2007-05-19  Bruno Haible  <bruno@clisp.org>
59326
59327         Fix *printf result for NaN, Inf, -0.0 on mingw.
59328         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
59329         * lib/vasnprintf.c: Include math.h and isnan.h.
59330         (is_infinite_or_zero): New function.
59331         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
59332         values in the %f, %F, %e, %E, %g, %G directives.
59333         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
59334         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59335         gl_PRINTF_INFINITE and test its result. Invoke
59336         gl_PREREQ_VASNPRINTF_INFINITE.
59337         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59338         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59339         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59340         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59341         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59342         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59343         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59344         * doc/functions/fprintf.texi: Update.
59345         * doc/functions/printf.texi: Update.
59346         * doc/functions/snprintf.texi: Update.
59347         * doc/functions/sprintf.texi: Update.
59348         * doc/functions/vfprintf.texi: Update.
59349         * doc/functions/vprintf.texi: Update.
59350         * doc/functions/vsnprintf.texi: Update.
59351         * doc/functions/vsprintf.texi: Update.
59352
59353 2007-05-19  Bruno Haible  <bruno@clisp.org>
59354
59355         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
59356         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
59357         Instead of multiplying with 10^k, set extra_zeroes to k.
59358         (scale10_round_long_double): Remove function.
59359
59360 2007-05-18  Bruno Haible  <bruno@clisp.org>
59361
59362         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
59363         introduced on 2007-05-06.
59364
59365 2007-05-18  Bruno Haible  <bruno@clisp.org>
59366
59367         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
59368         %g directives.
59369         * tests/test-vasprintf-posix.c (test_function): Likewise.
59370         * tests/test-snprintf-posix.h (test_function): Likewise.
59371         * tests/test-sprintf-posix.h (test_function): Likewise.
59372
59373 2007-05-18  Bruno Haible  <bruno@clisp.org>
59374
59375         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
59376         (strmatch): New function.
59377         (test_function): Test the %f directive on numbers of various exponents.
59378         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
59379         (strmatch): New function.
59380         (test_function): Test the %f directive on numbers of various exponents.
59381         * tests/test-snprintf-posix.h (strmatch): New function.
59382         (test_function): Test the %f directive on numbers of various exponents.
59383         * tests/test-sprintf-posix.h (strmatch): New function.
59384         (test_function): Test the %f directive on numbers of various exponents.
59385         * tests/test-snprintf-posix.c (SIZEOF): New macro.
59386         * tests/test-sprintf-posix.c (SIZEOF): New macro.
59387         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
59388         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
59389
59390 2007-05-18  Bruno Haible  <bruno@clisp.org>
59391
59392         Add support for 'long double' number output.
59393         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
59394         * lib/vasnprintf.c: Include math.h and float+.h.
59395         (mp_limb_t): New type.
59396         (GMP_LIMB_BITS): New macro.
59397         (mp_twolimb_t): New type.
59398         (GMP_TWOLIMB_BITS): New macro.
59399         (mpn_t): New type.
59400         (multiply, divide, convert_to_decimal, decode_long_double,
59401         scale10_round_long_double, scale10_round_decimal_long_double,
59402         floorlog10l): New functions.
59403         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
59404         for the %f, %F, %e, %E, %g, %G directives.
59405         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
59406         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59407         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
59408         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
59409         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59410         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59411         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59412         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59413         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59414         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59415         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59416         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
59417         * modules/snprintf-posix (Depends-on): Likewise.
59418         * modules/sprintf-posix (Depends-on): Likewise.
59419         * modules/vasnprintf-posix (Depends-on): Likewise.
59420         * modules/vasprintf-posix (Depends-on): Likewise.
59421         * modules/vfprintf-posix (Depends-on): Likewise.
59422         * modules/vsnprintf-posix (Depends-on): Likewise.
59423         * modules/vsprintf-posix (Depends-on): Likewise.
59424         * modules/vasnprintf (Files): Add lib/float+.h.
59425         * doc/functions/fprintf.texi: Update.
59426         * doc/functions/printf.texi: Update.
59427         * doc/functions/snprintf.texi: Update.
59428         * doc/functions/sprintf.texi: Update.
59429         * doc/functions/vfprintf.texi: Update.
59430         * doc/functions/vprintf.texi: Update.
59431         * doc/functions/vsnprintf.texi: Update.
59432         * doc/functions/vsprintf.texi: Update.
59433
59434 2007-05-18  Bruno Haible  <bruno@clisp.org>
59435
59436         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
59437
59438 2007-05-18  Bruno Haible  <bruno@clisp.org>
59439
59440         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
59441         for printing 64-bit integers. Needed for mingw.
59442
59443 2007-05-18  Bruno Haible  <bruno@clisp.org>
59444
59445         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
59446         gl_FUNC_FREXPL_WORKS.
59447         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
59448
59449 2007-05-18  Bruno Haible  <bruno@clisp.org>
59450
59451         * modules/frexpl-nolibm-tests: New file.
59452
59453         * modules/frexpl-nolibm: New file.
59454         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
59455
59456 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
59457
59458         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
59459         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
59460         GCC 4.2, which otherwise issues a lot of warnings.
59461         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
59462         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
59463         Likewise.
59464         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
59465         * modules/iconv_open (iconv.h): Likewise.
59466         * modules/locale (locale.h): Likewise.
59467         * modules/netinet_in (netinet/in.h): Likewise.
59468         * modules/sys_select (sys_select.h): Likewise.
59469         * modules/sys_socket (sys/socket.h): Likewise.
59470         * modules/sys_stat (sys/stat.h): Likewise.
59471         * modules/sysexits (sysexits.h): Likewise.
59472         * modules/unistd (unistd.h): Likewise.
59473
59474 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59475
59476         * modules/closein-tests (Makefile.am): Distribute
59477         `test-closein.sh'.
59478
59479 2007-05-17  Bruno Haible  <bruno@clisp.org>
59480
59481         * tests/test-printf-posix.output: Renamed from
59482         tests/test-fprintf-posix.out.
59483         * modules/fprintf-posix-tests: Update.
59484         * modules/printf-posix-tests: Update.
59485         * modules/vfprintf-posix-tests: Update.
59486         * modules/vprintf-posix-tests: Update.
59487         * tests/test-fprintf-posix.sh: Update.
59488         * tests/test-printf-posix.sh: Update.
59489         * tests/test-vfprintf-posix.sh: Update.
59490         * tests/test-vprintf-posix.sh: Update.
59491         Reported by Ralf Wildenhues.
59492
59493 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
59494
59495         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
59496         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
59497         GCC 4.2, which otherwise issues a lot of warnings.
59498         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
59499         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
59500         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
59501         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
59502         it should no longer be needed.
59503         * lib/string_.h: Likewise.
59504         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
59505         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
59506         * modules/inttypes (inttypes.h): Likewise.
59507         * modules/math (math.h): Likewise.
59508         * modules/search (search.h): Likewise.
59509         * modules/signal (signal.h): Likewise.
59510         * modules/stdint (stdint.h): Likewise.
59511         * modules/stdio (stdio.h): Likewise.
59512         * modules/stdlib (stdlib.h): Likewise.
59513         * modules/string (string.h): Likewise.
59514         * modules/sys_time (sys/time.h): Likewise.
59515         * modules/time (time.h): Likewise.
59516         * modules/wchar (wchar.h): Likewise.
59517         * modules/wctype (wtype.h): Likewise.
59518
59519 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
59520
59521         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
59522
59523 2007-05-13  Bruno Haible  <bruno@clisp.org>
59524
59525         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
59526         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
59527         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
59528         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
59529         (gl_PREREQ_STRTOK_R): Don't require it here.
59530
59531 2007-05-13  Bruno Haible  <bruno@clisp.org>
59532
59533         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
59534         when used in C++ mode.
59535
59536 2007-05-12  Bruno Haible  <bruno@clisp.org>
59537
59538         * lib/linebuffer.h: Tweak doc.
59539         * lib/linebuffer.c: Likewise.
59540
59541 2007-05-12  James Youngman  <jay@gnu.org>
59542
59543         * lib/linebuffer.c (readlinebuffer_delim): New function,
59544         like readlinebuffer, but use a caller-specified delimiter.
59545         (readlinebuffer): Just call readlinebuffer_delim with '\n'
59546         as the delimiter.
59547         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
59548
59549 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
59550
59551         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
59552         * modules/openat (Files): Remove openat-die.c.
59553         (Depends-on): Add openat-die.
59554         * modules/openat-die: New module.
59555
59556 2007-05-06  Bruno Haible  <bruno@clisp.org>
59557
59558         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
59559         Update with info about Cygwin.
59560         * doc/functions/fprintf.texi: Update.
59561         * doc/functions/printf.texi: Update.
59562         * doc/functions/snprintf.texi: Update.
59563         * doc/functions/sprintf.texi: Update.
59564         * doc/functions/vfprintf.texi: Update.
59565         * doc/functions/vprintf.texi: Update.
59566         * doc/functions/vsnprintf.texi: Update.
59567         * doc/functions/vsprintf.texi: Update.
59568         Reported by Eric Blake.
59569
59570 2007-05-06  Bruno Haible  <bruno@clisp.org>
59571
59572         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
59573         padding ourselves for the floating-point directives.
59574         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
59575         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
59576         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
59577         gl_PRINTF_FLAG_ZERO and test its result. Invoke
59578         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
59579         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59580         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
59581         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59582         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59583         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59584         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59585         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59586         * tests/test-snprintf-posix.h (test_function): Also check the width
59587         and some flags in the %f directive.
59588         * tests/test-sprintf-posix.h (test_function): Likewise.
59589         * tests/test-vasnprintf-posix.c (test_function): Likewise.
59590         * tests/test-vasprintf-posix.c (test_function): Likewise.
59591         * doc/functions/fprintf.texi: Update.
59592         * doc/functions/printf.texi: Update.
59593         * doc/functions/snprintf.texi: Update.
59594         * doc/functions/sprintf.texi: Update.
59595         * doc/functions/vfprintf.texi: Update.
59596         * doc/functions/vprintf.texi: Update.
59597         * doc/functions/vsnprintf.texi: Update.
59598         * doc/functions/vsprintf.texi: Update.
59599
59600 2007-05-06  Bruno Haible  <bruno@clisp.org>
59601
59602         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
59603         pass the ' flag character to sprintf or snprintf.
59604         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
59605         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
59606         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
59607         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
59608         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
59609         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59610         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
59611         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59612         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59613         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59614         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59615         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59616         * tests/test-snprintf-posix.h (test_function): Also check the grouping
59617         flag.
59618         * tests/test-sprintf-posix.h (test_function): Likewise.
59619         * tests/test-vasnprintf-posix.c (test_function): Likewise.
59620         * tests/test-vasprintf-posix.c (test_function): Likewise.
59621         * doc/functions/fprintf.texi: Update.
59622         * doc/functions/printf.texi: Update.
59623         * doc/functions/snprintf.texi: Update.
59624         * doc/functions/sprintf.texi: Update.
59625         * doc/functions/vfprintf.texi: Update.
59626         * doc/functions/vprintf.texi: Update.
59627         * doc/functions/vsnprintf.texi: Update.
59628         * doc/functions/vsprintf.texi: Update.
59629
59630 2007-05-01  Bruno Haible  <bruno@clisp.org>
59631
59632         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
59633
59634 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
59635
59636         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
59637         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
59638
59639 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
59640
59641         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
59642         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
59643         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
59644
59645 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
59646
59647         * lib/argp-help.c (struct hol_entry): New member `ord'.
59648         (HOL_ENTRY_PTRCMP): Use ord for comparison
59649         (hol_sort): Initialize ord.
59650
59651 2007-05-01  Bruno Haible  <bruno@clisp.org>
59652
59653         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
59654         Reported by Eric Blake.
59655         * doc/gnulib.texi (Function Substitutes): Update.
59656
59657 2007-05-01  Bruno Haible  <bruno@clisp.org>
59658
59659         * doc/functions.texi: Remove file, now redundant through
59660         doc/functions/*.texi.
59661
59662 2007-05-01  Bruno Haible  <bruno@clisp.org>
59663
59664         * modules/argp (Depends-on): Add sleep.
59665
59666 2007-05-01  Bruno Haible  <bruno@clisp.org>
59667
59668         * modules/sleep-tests: New file.
59669         * tests/test-sleep.c: New file.
59670
59671         * modules/sleep: New file.
59672         * lib/sleep.c: New file.
59673         * m4/sleep.m4: New file.
59674         * lib/unistd_.h (sleep): New declaration.
59675         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
59676         HAVE_SLEEP.
59677         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
59678         * doc/functions/sleep.texi: Document the sleep module.
59679
59680 2007-05-01  Bruno Haible  <bruno@clisp.org>
59681
59682         * lib/sigprocmask.h: Remove file.
59683         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
59684         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
59685         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
59686         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
59687         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
59688         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
59689         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
59690         HAVE_SIGSET_T as a shell variable.
59691         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
59692         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
59693         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
59694         (Depends-on): Add signal. Remove verify.
59695         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
59696         (Include): Mention <signal.h> instead of sigprocmask.h.
59697         * NEWS: Mention the change.
59698         * lib/fatal-signal.c: Don't include sigprocmask.h.
59699
59700 2007-05-01  Bruno Haible  <bruno@clisp.org>
59701
59702         * modules/signal: New file.
59703         * lib/signal_.h: New file.
59704         * m4/signal_h.m4: New file.
59705
59706 2007-05-01  Bruno Haible  <bruno@clisp.org>
59707
59708         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
59709         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
59710         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
59711         HAVE_WCTYPE_CTMP_BUG into wctype.h.
59712
59713 2007-05-01  Bruno Haible  <bruno@clisp.org>
59714
59715         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
59716         configure time.
59717         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
59718         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
59719         * modules/sys_stat (Makefile.am): Substitute their values into
59720         sys/stat.h.
59721
59722 2007-05-01  Bruno Haible  <bruno@clisp.org>
59723
59724         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
59725         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
59726         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
59727
59728 2007-05-01  Bruno Haible  <bruno@clisp.org>
59729
59730         * doc/header/assert.texi: Undo last change: don't mention the gnulib
59731         'assert' module here.
59732
59733 2007-05-01  Bruno Haible  <bruno@clisp.org>
59734
59735         * doc/functions/*.texi: New files.
59736         * doc/functions/google-ranking.txt: New file.
59737         * doc/gnulib.texi (Function Substitutes): New chapter.
59738         (ctime, inet_ntoa): Remove sections.
59739         * doc/ctime.texi: Remove file.
59740         * doc/inet_ntoa.texi: Remove file.
59741         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
59742         dependencies.
59743         (%.info): New rule, specifying a --reference-limit.
59744
59745 2007-05-01  Bruno Haible  <bruno@clisp.org>
59746
59747         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
59748
59749 2007-05-01  Bruno Haible  <bruno@clisp.org>
59750
59751         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
59752         the portability of 'mkdir' to mingw systems.
59753
59754 2007-05-01  Bruno Haible  <bruno@clisp.org>
59755
59756         * doc/headers/google-ranking.txt: New file.
59757
59758 2007-04-30  Eric Blake  <ebb9@byu.net>
59759
59760         Prefer fseeko to fseek.
59761         * modules/getpass (Depends-on): Add fseeko.
59762         * lib/getpass.c (getpass): Use fseeko, not fseek.
59763
59764 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
59765
59766         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
59767         assumes the sorting is stable, while most qsort implementations
59768         are not.  Use argument addresses to ensure they never compare as
59769         equal.
59770
59771         * tests/test-argp-2.sh (usage-indent test): Fix output
59772         (func_compare): Restore diff options
59773         * tests/test-argp.c: Restore #include "progname.h"
59774
59775 2007-04-29  Bruno Haible  <bruno@clisp.org>
59776
59777         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
59778         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
59779         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
59780         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59781         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
59782         (configure.ac): Define CHECK_SNPRINTF_POSIX.
59783         (TESTS, check_PROGRAMS): Add test-snprintf.
59784         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
59785         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
59786         (TESTS, check_PROGRAMS): Add test-vsnprintf.
59787         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
59788         assertions that fail on HP-UX, OSF/1, or IRIX.
59789         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
59790
59791 2007-04-29  Bruno Haible  <bruno@clisp.org>
59792
59793         * MODULES.html.sh (posix_functions): Remove 'contents'.
59794
59795 2007-04-29  Karl Berry  <karl@gnu.org>
59796
59797         * config/srclist.txt (gendocs_template_min): new entry.
59798
59799 2007-04-29  Bruno Haible  <bruno@clisp.org>
59800
59801         Work around fpurge bug on BSD systems.
59802         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
59803         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
59804         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
59805         fpurge to rpl_fpurge if the system already has this function.
59806         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
59807         the case where the system already has this function. Correct invariants
59808         on BSD systems.
59809         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
59810         BSD systems.
59811
59812 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
59813
59814         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
59815         proposed by Sven Verdoolaege.
59816
59817         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
59818         options.
59819         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
59820         (usage and help tests): Update
59821
59822 2007-04-29  Bruno Haible  <bruno@clisp.org>
59823
59824         * tests/test-fflush.c (main): Use a file of size 17, not 10.
59825         Print more information in case of failure. Disable a test on BeOS.
59826
59827 2007-04-29  Bruno Haible  <bruno@clisp.org>
59828
59829         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
59830         This helps debugging on systems on which no gdb is available.
59831
59832 2007-04-29  Bruno Haible  <bruno@clisp.org>
59833
59834         * lib/freading.h: Improve comments.
59835         * lib/fwriting.h: Likewise.
59836         * tests/test-freading.c (main): Don't check freading immediately after
59837         repositioning. Needed for glibc.
59838
59839 2007-04-29  Bruno Haible  <bruno@clisp.org>
59840
59841         * lib/freading.c (freading): Trivial simplification.
59842
59843 2007-04-28  Bruno Haible  <bruno@clisp.org>
59844
59845         * tests/test-fwriting.c (main): Also test the interaction between
59846         fflush and fwriting.
59847         * modules/fwriting-tests (Depends-on): Add fflush.
59848
59849         * tests/test-freading.c (main): Also test the interaction between
59850         fflush and freading.
59851         * modules/freading-tests (Depends-on): Add fflush.
59852
59853 2007-04-28  Bruno Haible  <bruno@clisp.org>
59854
59855         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
59856         fseeko and ftello.
59857         Suggested by Eric Blake.
59858
59859 2007-04-28  Jim Meyering  <jim@meyering.net>
59860
59861         Avoid false-negative in gl_STDINT_H's C99 conformance test.
59862         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
59863         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
59864
59865 2007-04-27  Eric Blake  <ebb9@byu.net>
59866
59867         * doc/headers/assert.texi (assert.h): Document assert module use.
59868
59869 2007-04-27  Bruno Haible  <bruno@clisp.org>
59870
59871         * doc/headers/*.texi: New files.
59872         * doc/gnulib.texi (Header File Substitutes): New chapter.
59873         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
59874         dependencies.
59875         (standards.info ,standards.html, standards.dvi): Update dependencies.
59876         (mostlyclean, clean): New targets.
59877
59878 2007-04-27  Bruno Haible  <bruno@clisp.org>
59879
59880         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
59881         * modules/sysexits (Files, Makefile.am): Update.
59882
59883         * lib/sys_socket_.h: Renamed from lib/socket_.h.
59884         * modules/sys_socket (Files, Makefile.am): Update.
59885
59886         * lib/sys_stat_.h: Renamed from lib/stat_.h.
59887         * modules/sys_stat (Files, Makefile.am): Update.
59888
59889 2007-04-27  Eric Blake  <ebb9@byu.net>
59890
59891         * lib/freading.h: Improve comments.
59892         * lib/fwriting.h: Likewise.
59893         * lib/fflush.c: Likewise.
59894
59895         Fix closein for mingw.
59896         * modules/closein-tests: Add tests for closein.
59897         * tests/test-closein.c: New file.
59898         * tests/test-closein.sh: Likewise.
59899         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
59900         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
59901
59902 2007-04-27  Bruno Haible  <bruno@clisp.org>
59903
59904         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
59905         version is < 6.
59906         * lib/math_.h [__DECC]: Likewise.
59907         * lib/stdio_.h [__DECC]: Likewise.
59908         * lib/stdlib_.h [__DECC]: Likewise.
59909         * lib/string_.h [__DECC]: Likewise.
59910         * lib/time_.h [__DECC]: Likewise.
59911         * lib/wchar_.h [__DECC]: Likewise.
59912         * lib/wctype_.h [__DECC]: Likewise.
59913
59914 2007-04-27  Bruno Haible  <bruno@clisp.org>
59915
59916         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
59917
59918 2007-04-27  Bruno Haible  <bruno@clisp.org>
59919
59920         * lib/fflush.c: Add comments.
59921         * modules/fpurge-tests (Depends-on): Add fflush.
59922         * modules/freadable-tests (Depends-on): Likewise.
59923         * modules/fwritable-tests (Depends-on): Likewise.
59924
59925 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
59926
59927         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
59928         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
59929         Report by Bruno Haible <bruno@clisp.org>.
59930
59931 2007-04-26  Eric Blake  <ebb9@byu.net>
59932
59933         Fix fflush on mingw.
59934         * modules/fflush (Depends-on): Add freading.
59935         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
59936         but unread data.
59937
59938 2007-04-26  Eric Blake  <ebb9@byu.net>
59939         and Bruno Haible  <bruno@clisp.org>
59940
59941         Implement freading and fwriting.
59942         * lib/freading.c: New file.
59943         * lib/freading.h: Likewise.
59944         * m4/freading.m4: Likewise.
59945         * modules/freading: Likewise.
59946         * modules/freading-tests: Likewise.
59947         * tests/test-freading.c: Likewise.
59948         * lib/fwriting.c: New file.
59949         * lib/fwriting.h: Likewise.
59950         * m4/fwriting.m4: Likewise.
59951         * modules/fwriting: Likewise.
59952         * modules/fwriting-tests: Likewise.
59953         * tests/test-fwriting.c: Likewise.
59954         * MODULES.html.sh (File stream based Input/Output): Mention them.
59955
59956 2007-04-26  Bruno Haible  <bruno@clisp.org>
59957
59958         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
59959         'long' when we assume it.
59960         Suggested by Eric Blake.
59961
59962 2007-04-26  Bruno Haible  <bruno@clisp.org>
59963
59964         Ensure fseeko, ftello are declared on glibc systems.
59965         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
59966         * modules/fseeko (configure.ac-early): Likewise.
59967         * modules/ftello (configure.ac-early): Likewise.
59968         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
59969         AC_FUNC_FSEEKO for this.
59970         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
59971         (gl_CHECK_FSEEKO): Remove macro.
59972
59973 2007-04-26  Bruno Haible  <bruno@clisp.org>
59974
59975         * tests/test-fflush.c (main): Also check the ftell result after
59976         fflush and fseek/fseeko.
59977         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
59978         file descriptor position cache in the stream.
59979         * lib/fseeko.c (rpl_fseeko): Likewise.
59980
59981 2007-04-26  Bruno Haible  <bruno@clisp.org>
59982
59983         * modules/fflush-tests (Depends-on): Add fseeko.
59984
59985 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
59986             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59987
59988         * lib/argz_.h: ensure error_t definition is obtained in same
59989         mechanism system argz.h would have.
59990         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
59991         argz facilities are known bad.  Err on the side of caution if
59992         cross-compiling.
59993
59994 2007-04-25  Eric Blake  <ebb9@byu.net>
59995
59996         * lib/fpurge.c (includes): Use stdlib.h for free.
59997         * tests/test-fflush.c (main): Also test fflush-fseeko.
59998
59999 2007-04-25  Bruno Haible  <bruno@clisp.org>
60000
60001         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
60002         * lib/fseeko.c: New file.
60003         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
60004         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
60005         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
60006         gl_FUNC_FSEEKO.
60007         (gl_FUNC_FSEEKO): Invoke it.
60008         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
60009         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
60010         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
60011
60012 2007-04-25  Bruno Haible  <bruno@clisp.org>
60013
60014         * modules/fflush (Depends-on): Add ftello.
60015
60016 2007-04-25  Bruno Haible  <bruno@clisp.org>
60017
60018         * modules/ftello-tests: New file.
60019         * tests/test-ftello.c: New file.
60020
60021         * modules/ftello: New file.
60022         * m4/ftello.m4: New file.
60023         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
60024         HAVE_FTELLO.
60025         * lib/stdio_.h (ftello): New declaration.
60026         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
60027         HAVE_FTELLO.
60028
60029 2007-04-25  Bruno Haible  <bruno@clisp.org>
60030
60031         * modules/fseeko-tests: New file.
60032         * tests/test-fseeko.c: New file.
60033
60034         * modules/fseeko: New file.
60035         * m4/fseeko.m4: New file.
60036         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
60037         HAVE_FSEEKO.
60038         * lib/stdio_.h (fseeko): New declaration.
60039         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
60040         HAVE_FSEEKO.
60041
60042 2007-04-25  Bruno Haible  <bruno@clisp.org>
60043
60044         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
60045
60046 2007-04-25  Bruno Haible  <bruno@clisp.org>
60047
60048         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
60049         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
60050         * tests/test-unistd.c: Likewise.
60051         * tests/test-fcntl.c: Likewise.
60052
60053 2007-04-23  Eric Blake  <ebb9@byu.net>
60054
60055         * lib/fflush.c: Fix missing include.
60056         Reported by Bruno Haible.
60057
60058 2007-04-23  Bruno Haible  <bruno@clisp.org>
60059
60060         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
60061         Reported by Eric Blake.
60062
60063 2007-04-23  Bruno Haible  <bruno@clisp.org>
60064
60065         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
60066
60067 2007-04-23  Bruno Haible  <bruno@clisp.org>
60068
60069         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
60070
60071 2007-04-23  Bruno Haible  <bruno@clisp.org>
60072
60073         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
60074         Needed on HP-UX 11.
60075
60076 2007-04-16  Eric Blake  <ebb9@byu.net>
60077
60078         Make fflush rely on fpurge.
60079         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
60080         open coding all variants.
60081         * modules/fflush (Depends-on): Add fpurge and unistd.
60082         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
60083         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
60084
60085         Fix --with-tests compilation on cygwin.
60086         * modules/argmatch-tests (Makefile.am): List gnulib library first
60087         in LDADD.
60088         * modules/argp-tests (Makefile.am): Likewise.
60089         * modules/array-list-tests (Makefile.am): Likewise.
60090         * modules/array-oset-tests (Makefile.am): Likewise.
60091         * modules/avltree-list-tests (Makefile.am): Likewise.
60092         * modules/avltree-oset-tests (Makefile.am): Likewise.
60093         * modules/avltreehash-list-tests (Makefile.am): Likewise.
60094         * modules/carray-list-tests (Makefile.am): Likewise.
60095         * modules/dirname-tests (Makefile.am): Likewise.
60096         * modules/frexp-tests (Makefile.am): Likewise.
60097         * modules/isnanl-tests (Makefile.am): Likewise.
60098         * modules/linked-list-tests (Makefile.am): Likewise.
60099         * modules/linkedhash-list-tests (Makefile.am): Likewise.
60100         * modules/lock-tests (Makefile.am): Likewise.
60101         * modules/rbtree-list-tests (Makefile.am): Likewise.
60102         * modules/rbtree-oset-tests (Makefile.am): Likewise.
60103         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
60104         * modules/tls-tests (Makefile.am): Likewise.
60105         * modules/tsearch-tests (Makefile.am): Likewise.
60106         * modules/xvasprintf-tests (Makefile.am): Likewise.
60107
60108         Fix fpurge for cygwin.
60109         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
60110         value.
60111         * modules/fpurge-tests (Depends-on): Clean up trash.
60112
60113 2007-04-16  Simon Josefsson  <simon@josefsson.org>
60114
60115         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
60116
60117         * m4/autobuild.m4: Re-indent.
60118
60119 2007-04-13  Bruno Haible  <bruno@clisp.org>
60120
60121         * modules/fpurge-tests: New file.
60122         * tests/test-fpurge.c: New file.
60123
60124         * modules/fpurge: New file.
60125         * lib/fpurge.h: New file.
60126         * lib/fpurge.c: New file.
60127         * m4/fpurge.m4: New file.
60128
60129 2007-04-13  Bruno Haible  <bruno@clisp.org>
60130
60131         * modules/fbufmode-tests: New file.
60132         * tests/test-fbufmode.c: New file.
60133
60134         * modules/fbufmode: New file.
60135         * lib/fbufmode.h: New file.
60136         * lib/fbufmode.c: New file.
60137         * m4/fbufmode.m4: New file.
60138
60139 2007-04-13  Bruno Haible  <bruno@clisp.org>
60140
60141         * modules/fwritable-tests: New file.
60142         * tests/test-fwritable.c: New file.
60143
60144         * modules/fwritable: New file.
60145         * lib/fwritable.h: New file.
60146         * lib/fwritable.c: New file.
60147         * m4/fwritable.m4: New file.
60148
60149 2007-04-13  Bruno Haible  <bruno@clisp.org>
60150
60151         * modules/freadable-tests: New file.
60152         * tests/test-freadable.c: New file.
60153
60154         * modules/freadable: New file.
60155         * lib/freadable.h: New file.
60156         * lib/freadable.c: New file.
60157         * m4/freadable.m4: New file.
60158
60159 2007-04-13  Bruno Haible  <bruno@clisp.org>
60160
60161         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
60162         MOSTLYCLEANFILES.
60163
60164 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
60165
60166         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
60167         gzip bootstrap.conf to avoid dragging in i18n machinery.
60168         (gnulib_tool_option): Use it.
60169
60170 2007-04-13  Bruno Haible  <bruno@clisp.org>
60171
60172         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
60173         %F directives.
60174         * tests/test-vasprintf-posix.c (test_function): Likewise.
60175         * tests/test-snprintf-posix.h (test_function): Likewise.
60176         * tests/test-sprintf-posix.h (test_function): Likewise.
60177         * tests/test-fprintf-posix.h (test_function): Likewise.
60178         * tests/test-printf-posix.h (test_function): Likewise.
60179         * tests/test-fprintf-posix.out: Likewise.
60180
60181 2007-04-13  Bruno Haible  <bruno@clisp.org>
60182
60183         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
60184         * modules/tls-tests (configure.ac): Likewise.
60185         Reported by Arto C. Nirkko <anirkko@insel.ch>.
60186
60187 2007-04-13  Bruno Haible  <bruno@clisp.org>
60188
60189         * lib/tls.c (glthread_tls_get): Fix return type.
60190         Patch by Arto C. Nirkko <anirkko@insel.ch>.
60191
60192 2007-04-12  Eric Blake  <ebb9@byu.net>
60193
60194         * modules/gettime (Depends-on): Remove gettime.
60195         Reported by Dmitry V. Levin.
60196
60197 2007-04-12  Bruno Haible  <bruno@clisp.org>
60198
60199         * modules/fflush (Include): Mention <stdio.h>.
60200         * modules/strtoimax (Include): Mention <inttypes.h>.
60201         * modules/strtoumax (Include): Likewise.
60202
60203 2007-04-12  Eric Blake  <ebb9@byu.net>
60204
60205         * .cvsignore: New file.
60206         * .gitignore: Likewise.
60207
60208 2007-04-12  Bruno Haible  <bruno@clisp.org>
60209
60210         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
60211         not before, since $(LDADD) often contains libgnu.a.
60212         * modules/striconv-tests (test_striconv_LDADD): Likewise.
60213         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
60214         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
60215         Needed on Cygwin.
60216
60217 2007-04-12  Eric Blake  <ebb9@byu.net>
60218
60219         Work around glibc's failure to flush stdin on fclose.
60220         * lib/closein.c (close_stdin): Flush stdin before closing.
60221
60222         Work around glibc's failure to reset seekable stdin on exit.
60223         * modules/closein: New module.
60224         * lib/closein.c: New file.
60225         * lib/closein.h: Likewise.
60226         * m4/closein.m4: Likewise.
60227         * MODULES.html.sh (File stream based Input/Output): Document it.
60228
60229 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60230
60231         * gnulib-tool: Rename generated 'autobuild' script to
60232         'do-autobuild' in --create-megatestdir output.
60233
60234         * doc/gnulib.texi (Build robot for gnulib): Fix.
60235
60236 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60237
60238         * modules/sysexits (Depends-on): Add absolute-header.
60239
60240 2007-04-12  Eric Blake  <ebb9@byu.net>
60241
60242         No need to preserve errno on success.
60243         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
60244         Reported by Bruno Haible.
60245
60246 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60247
60248         * MODULES.html.sh (Support for maintaining and releasing
60249         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
60250
60251 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60252
60253         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
60254
60255 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60256
60257         * modules/autobuild: New module.
60258
60259         * m4/autobuild.m4: New file.
60260
60261 2007-04-11  Bruno Haible  <bruno@clisp.org>
60262
60263         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
60264         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
60265         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
60266         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
60267         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60268         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60269         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60270         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
60271         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60272         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60273         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
60274         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60275         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60276         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
60277         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60278         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60279         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
60280         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60281         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60282         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
60283         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60284         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60285         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
60286         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60287         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60288         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
60289         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60290         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60291         Reported by Eric Blake.
60292
60293 2007-04-11  Bruno Haible  <bruno@clisp.org>
60294
60295         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
60296
60297 2007-04-10  Bruno Haible  <bruno@clisp.org>
60298
60299         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
60300         for NaN and Infinity. Needed on FreeBSD 6.1.
60301         * tests/test-vasnprintf-posix.c (test_function): Undo last change
60302         regarding results for "%010a" of Infinity and NaN.
60303         * tests/test-vasprintf-posix.c (test_function): Likewise.
60304         * tests/test-snprintf-posix.h (test_function): Likewise.
60305         * tests/test-sprintf-posix.h (test_function): Likewise.
60306         * tests/test-fprintf-posix.h (test_function): Likewise.
60307         * tests/test-printf-posix.h (test_function): Likewise.
60308         * tests/test-fprintf-posix.out: Likewise.
60309
60310 2007-04-10  Bruno Haible  <bruno@clisp.org>
60311
60312         * modules/locale-tests: New file.
60313         * tests/test-locale.c: New file.
60314
60315         * modules/locale: New file.
60316         * lib/locale_.h: New file.
60317         * m4/locale_h.m4: New file.
60318
60319 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
60320             Bruno Haible  <bruno@clisp.org>
60321
60322         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
60323         be determined, test for availability of the copysignf, copysign,
60324         copysignl functions.
60325         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
60326         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
60327         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
60328
60329 2007-04-09  Eric Blake  <ebb9@byu.net>
60330
60331         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
60332         * modules/stdio (Makefile.am): Support fflush.
60333         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
60334         * modules/fflush: New file.
60335         * lib/fflush.c: Likewise.
60336         * m4/fflush.m4: Likewise.
60337         * modules/fflush-tests: New test.
60338         * tests/test-fflush.c: Likewise.
60339         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
60340
60341 2007-04-06  Bruno Haible  <bruno@clisp.org>
60342
60343         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
60344         (VASNPRINTF): Use signbit for faster determination whether to print a
60345         minus sign.
60346         * modules/vasnprintf (Files): Remove lib/float+.h.
60347         * modules/fprintf-posix (Depends-on): Add signbit.
60348         * modules/snprintf-posix (Depends-on): Likewise.
60349         * modules/sprintf-posix (Depends-on): Likewise.
60350         * modules/vasnprintf-posix (Depends-on): Likewise.
60351         * modules/vasprintf-posix (Depends-on): Likewise.
60352         * modules/vfprintf-posix (Depends-on): Likewise.
60353         * modules/vsnprintf-posix (Depends-on): Likewise.
60354         * modules/vsprintf-posix (Depends-on): Likewise.
60355
60356 2007-04-06  Bruno Haible  <bruno@clisp.org>
60357
60358         * tests/test-frexp.c (main): Test also the sign bit of zero results.
60359         * tests/test-frexpl.c (main): Likewise.
60360         * tests/test-ldexpl.c (main): Likewise.
60361         * modules/frexp-tests (Depends-on): Add signbit.
60362         * modules/frexpl-tests (Depdends-on): Likewise.
60363         * modules/ldexpl-tests (Depdends-on): Likewise.
60364
60365 2007-04-06  Bruno Haible  <bruno@clisp.org>
60366
60367         * modules/signbit-tests: New file.
60368         * tests/test-signbit.c: New file.
60369
60370         * modules/signbit: New file.
60371         * lib/signbitf.c: New file.
60372         * lib/signbitd.c: New file.
60373         * lib/signbitl.c: New file.
60374         * m4/signbit.m4: New file.
60375         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
60376         (signbit): New macro.
60377         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
60378         REPLACE_SIGNBIT.
60379         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
60380         REPLACE_FREXPL into math.h.
60381
60382 2007-04-06  Bruno Haible  <bruno@clisp.org>
60383
60384         * modules/isnanf-nolibm-tests: New file.
60385         * tests/test-isnanf.c: New file.
60386
60387         * modules/isnanf-nolibm: New file.
60388         * lib/isnanf.h: New file.
60389         * lib/isnanf.c: New file.
60390         * lib/isnan.c: Consider the USE_FLOAT macro.
60391         * m4/isnanf.m4: New file.
60392
60393 2007-04-06  Bruno Haible  <bruno@clisp.org>
60394
60395         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
60396         (Link): New section.
60397
60398         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
60399
60400 2007-04-06  Bruno Haible  <bruno@clisp.org>
60401
60402         Assume the 'long double' type.
60403         * m4/longdouble.m4: Remove file.
60404         * config/srclist.txt: Don't mention longdouble.m4.
60405         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
60406         * lib/float+.h: Likewise.
60407         * lib/frexp.c: Likewise.
60408         * lib/printf-args.h: Likewise.
60409         * lib/printf-args.c: Likewise.
60410         * lib/printf-frexp.c: Likewise.
60411         * lib/printf-parse.c: Likewise.
60412         * lib/vasnprintf.c: Likewise.
60413         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
60414         * m4/intl.m4: Likewise.
60415         * m4/isnanl.m4: Likewise.
60416         * m4/printf.m4: Likewise.
60417         * m4/printf-frexpl.m4: Likewise.
60418         * m4/vasnprintf.m4: Likewise.
60419         * modules/allocsa (Files): Remove m4/longdouble.m4.
60420         * modules/gettext (Files): Likewise.
60421         * modules/relocatable-prog-wrapper (Files): Likewise.
60422         * modules/vasnprintf (Files): Likewise.
60423         * modules/isnanl (Files): Likewise.
60424         (Include): Simplify.
60425         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
60426         (Include): Simplify.
60427         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
60428         (Include): Simplify.
60429         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
60430         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60431         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
60432         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60433         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
60434         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60435         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
60436         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60437         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
60438         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60439         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
60440         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60441         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
60442         * tests/test-isnanl.c: Likewise.
60443         * tests/test-snprintf-posix.h: Likewise.
60444         * tests/test-sprintf-posix.h: Likewise.
60445         * tests/test-vasnprintf-posix.c: Likewise.
60446         * tests/test-vasnprintf-posix2.c: Likewise.
60447         * tests/test-vasprintf-posix.c: Likewise.
60448
60449 2007-04-06  Bruno Haible  <bruno@clisp.org>
60450
60451         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
60452         * lib/math_.h [__DECC]: Include the overridden include file through
60453         #include_next, outside the double-inclusion guard.
60454         * lib/stdio_.h [__DECC]: Likewise.
60455         * lib/stdlib_.h [__DECC]: Likewise.
60456         * lib/string_.h [__DECC]: Likewise.
60457         * lib/time_.h [__DECC]: Likewise.
60458         * lib/wchar_.h [__DECC]: Likewise.
60459         * lib/wctype_.h [__DECC]: Likewise.
60460         * lib/inttypes_.h [__DECC]: Likewise.
60461         Reported by Albert Chin <china@thewrittenword.com> in
60462         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
60463
60464 2007-04-04  Eric Blake  <ebb9@byu.net>
60465
60466         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
60467         1.5.x.
60468
60469 2007-04-04  Bruno Haible  <bruno@clisp.org>
60470
60471         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
60472         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
60473
60474 2007-04-04  Bruno Haible  <bruno@clisp.org>
60475
60476         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
60477         results for "%010a" of Infinity and NaN.
60478         * tests/test-vasprintf-posix.c (test_function): Likewise.
60479         * tests/test-snprintf-posix.h (test_function): Likewise.
60480         * tests/test-sprintf-posix.h (test_function): Likewise.
60481         * tests/test-fprintf-posix.h (test_function): Remove these tests.
60482         * tests/test-printf-posix.h (test_function): Likewise.
60483         * tests/test-fprintf-posix.out: Update.
60484         Needed for FreeBSD 6.1.
60485
60486 2007-04-04  Bruno Haible  <bruno@clisp.org>
60487
60488         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
60489         directly used by the gnulib modules nor by gnulib-tool.
60490
60491 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
60492
60493         * DEPENDENCIES: Give overall description of version dependency
60494         desirability.  Use more-typical names for apps.
60495         Add shell, coreutils, diffutils, grep, tar, gzip.
60496
60497 2007-04-04  Simon Josefsson  <simon@josefsson.org>
60498
60499         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
60500
60501 2007-04-04  Karl Berry  <karl@gnu.org>
60502
60503         * MODULES.html.sh (func_module): missing '.
60504
60505 2007-04-03  Bruno Haible  <bruno@clisp.org>
60506
60507         * modules/argmatch-tests (Makefile.am): New variable
60508         test_argmatch_LDADD.
60509         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
60510         * modules/array-list-tests (Makefile.am): New variable
60511         test_array_list_LDADD.
60512         * modules/array-oset-tests (Makefile.am): New variable
60513         test_array_oset_LDADD.
60514         * modules/avltree-list-tests (Makefile.am): New variable
60515         test_avltree_list_LDADD.
60516         * modules/avltree-oset-tests (Makefile.am): New variable
60517         test_avltree_oset_LDADD.
60518         * modules/avltreehash-list-tests (Makefile.am): New variable
60519         test_avltreehash_list_LDADD.
60520         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
60521         test_canonicalize_lgpl_LDADD.
60522         * modules/carray-list-tests (Makefile.am): New variable
60523         test_carray_list_LDADD.
60524         * modules/dirname-tests (Makefile.am): New variable
60525         test_dirname_LDADD.
60526         * modules/linked-list-tests (Makefile.am): New variable
60527         test_linked_list_LDADD.
60528         * modules/linkedhash-list-tests (Makefile.am): New variable
60529         test_linkedhash_list_LDADD.
60530         * modules/rbtree-list-tests (Makefile.am): New variable
60531         test_rbtree_list_LDADD.
60532         * modules/rbtree-oset-tests (Makefile.am): New variable
60533         test_rbtree_oset_LDADD.
60534         * modules/rbtreehash-list-tests (Makefile.am): New variable
60535         test_rbtreehash_list_LDADD.
60536         * modules/xvasprintf-tests (Makefile.am): New variable
60537         test_xvasprintf_LDADD.
60538         Reported by Eric Blake.
60539
60540 2007-04-03  Eric Blake  <ebb9@byu.net>
60541
60542         * DEPENDENCIES: Weaken m4 requirements.
60543
60544 2007-04-03  Bruno Haible  <bruno@clisp.org>
60545
60546         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
60547         * modules/isnanl-tests (configure.ac): Likewise.
60548
60549 2007-04-03  Ben Pfaff  <blp@gnu.org>
60550
60551         * modules/iconv_open: Add $(srcdir)/ to source directory
60552         references in Makefile fragments that call gperf, to fix VPATH
60553         builds.
60554
60555 2007-04-03  Bruno Haible  <bruno@clisp.org>
60556
60557         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
60558         * lib/ldexpl.c: Undo last change.
60559
60560 2007-04-03  Bruno Haible  <bruno@clisp.org>
60561
60562         * modules/printf-frexpl (Depends-on): Undo last change.
60563         (Files): Add m4/ldexpl.m4.
60564
60565 2007-04-03  Bruno Haible  <bruno@clisp.org>
60566
60567         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
60568         * modules/isnanl (Link): New section.
60569
60570         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
60571         * modules/frexp (Link): New section.
60572
60573         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
60574         * modules/frexpl (Link): New section.
60575
60576         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
60577         * modules/ldexpl (Link): New section.
60578
60579 2007-04-03  Bruno Haible  <bruno@clisp.org>
60580
60581         * modules/TEMPLATE-EXTENDED: New file.
60582         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
60583
60584 2007-04-03  Bruno Haible  <bruno@clisp.org>
60585
60586         * DEPENDENCIES: New file.
60587         Suggested by Simon Josefsson.
60588
60589 2007-04-03  Bruno Haible  <bruno@clisp.org>
60590
60591         * doc/gnulib.texi: Escape @.
60592
60593 2007-04-03  James Youngman  <jay@gnu.org>
60594         and Paul Eggert  <eggert@cs.ucla.edu>
60595
60596         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
60597         birthtime on all systems that have birthtime, not just those which
60598         use st_birthtimensec rather than st_birthtim.  Putting zero in
60599         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
60600         that the birth time is not available for files on an NFS mount.
60601
60602 2007-04-03  Simon Josefsson  <simon@josefsson.org>
60603
60604         * modules/memxor: Move back from crypto/, suggested by Bruno.
60605         * modules/crypto/hmac-sha1: Fix memxor dependency.
60606
60607         * modules/crypto/gc: Moved from ../.
60608
60609 2007-04-02  Eric Blake  <ebb9@byu.net>
60610
60611         * lib/ldexpl.c (includes): Avoid libm.
60612
60613         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
60614
60615 2007-04-02  Bruno Haible  <bruno@clisp.org>
60616
60617         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
60618         on IRIX.
60619
60620 2007-04-02  Bruno Haible  <bruno@clisp.org>
60621
60622         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
60623         x86 or x86_64 platforms running MacOS X.
60624         Reported by Ryan Schmidt <@ryandesign.com>.
60625
60626 2007-04-02  Bruno Haible  <bruno@clisp.org>
60627
60628         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
60629         i386.
60630
60631 2007-04-01  Simon Josefsson  <simon@josefsson.org>
60632
60633         * modules/crypto/arcfour: Moved from ../.
60634         * modules/crypto/arcfour-tests: Moved from ../.
60635         * modules/crypto/arctwo: Moved from ../.
60636         * modules/crypto/arctwo-tests: Moved from ../.
60637         * modules/crypto/des: Moved from ../.
60638         * modules/crypto/des-tests: Moved from ../.
60639         * modules/crypto/gc-arcfour: Moved from ../.
60640         * modules/crypto/gc-arcfour-tests: Moved from ../.
60641         * modules/crypto/gc-arctwo: Moved from ../.
60642         * modules/crypto/gc-arctwo-tests: Moved from ../.
60643         * modules/crypto/gc-des: Moved from ../.
60644         * modules/crypto/gc-des-tests: Moved from ../.
60645         * modules/crypto/gc-hmac-md5: Moved from ../.
60646         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
60647         * modules/crypto/gc-hmac-sha1: Moved from ../.
60648         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
60649         * modules/crypto/gc-md2: Moved from ../.
60650         * modules/crypto/gc-md2-tests: Moved from ../.
60651         * modules/crypto/gc-md4: Moved from ../.
60652         * modules/crypto/gc-md4-tests: Moved from ../.
60653         * modules/crypto/gc-md5: Moved from ../.
60654         * modules/crypto/gc-md5-tests: Moved from ../.
60655         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
60656         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
60657         * modules/crypto/gc-random: Moved from ../.
60658         * modules/crypto/gc-rijndael: Moved from ../.
60659         * modules/crypto/gc-rijndael-tests: Moved from ../.
60660         * modules/crypto/gc-sha1: Moved from ../.
60661         * modules/crypto/gc-sha1-tests: Moved from ../.
60662         * modules/crypto/gc-tests: Moved from ../.
60663         * modules/crypto/hmac-md5: Moved from ../.
60664         * modules/crypto/hmac-md5-tests: Moved from ../.
60665         * modules/crypto/hmac-sha1: Moved from ../.
60666         * modules/crypto/hmac-sha1-tests: Moved from ../.
60667         * modules/crypto/md2: Moved from ../.
60668         * modules/crypto/md2-tests: Moved from ../.
60669         * modules/crypto/md4: Moved from ../.
60670         * modules/crypto/md4-tests: Moved from ../.
60671         * modules/crypto/md5: Moved from ../.
60672         * modules/crypto/md5-tests: Moved from ../.
60673         * modules/crypto/memxor: Moved from ../.
60674         * modules/crypto/rijndael: Moved from ../.
60675         * modules/crypto/rijndael-tests: Moved from ../.
60676         * modules/crypto/sha1: Moved from ../.
60677
60678 2007-03-30  James Youngman  <jay@gnu.org>
60679
60680         * tests/test-stat-time.c (prepare_test): use chmod() rather than
60681         rename() to change the ctime of a file (because ctime is unaffected
60682         by rename on jfs2 on AIX 5.1).
60683         (main): Start by doing cleanup, in case a previous run failed leaving
60684         test files behind.
60685
60686 2007-03-31  Bruno Haible  <bruno@clisp.org>
60687
60688         Support old proprietary implementations of iconv.
60689         * modules/iconv_open: New file.
60690         * lib/iconv_.h: New file.
60691         * m4/iconv_h.m4: New file.
60692         * lib/iconv_open.c: New file.
60693         * lib/iconv_open-aix.gperf: New file.
60694         * lib/iconv_open-hpux.gperf: New file.
60695         * lib/iconv_open-irix.gperf: New file.
60696         * lib/iconv_open-osf.gperf: New file.
60697         * m4/iconv_open.m4: New file.
60698         * modules/linebreak (Depends-on): Add iconv_open.
60699         * modules/striconv (Depends-on): Likewise.
60700         * modules/striconveh (Depends-on): Likewise.
60701         * modules/unicodeio (Depends-on): Likewise.
60702         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
60703         (iconv_t)(-1).
60704         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
60705         conversion if cd is (iconv_t)(-1).
60706         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
60707         is not possible.
60708
60709 2007-03-31  Bruno Haible  <bruno@clisp.org>
60710
60711         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
60712         work on Solaris either. Protect also second use of "autodetect_jp".
60713
60714 2007-03-31  Bruno Haible  <bruno@clisp.org>
60715
60716         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
60717         the function is not present.
60718
60719 2007-03-31  Bruno Haible  <bruno@clisp.org>
60720
60721         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
60722         the function is not present.
60723
60724 2007-03-31  Bruno Haible  <bruno@clisp.org>
60725
60726         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
60727         a bug in HP-UX iconv_open().
60728
60729 2007-03-31  Bruno Haible  <bruno@clisp.org>
60730
60731         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
60732         (Mathematics <math.h>): New section, add fpieee.
60733         (Input/output <stdio.h>): Add fseterr.
60734         (Mathematics <math.h>): New section, add printf-frexp.
60735         (Container data structures): Add sublist.
60736         (Core language properties): Add fpucw, inline.
60737         (Functions for greatest-width integer types <inttypes.h>): Add
60738         imaxabs, imaxdiv, inttypes.
60739         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
60740         isnanl-nolibm, ldexp.
60741         (Mathematics <math.h>): New section, add printf-frexpl.
60742         (Support for systems lacking POSIX:2001): Add fprintf-posix,
60743         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
60744         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
60745         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
60746         (Unicode string functions): Add unistr/u*-mbtoucr.
60747         (Java): Add javacomp-script, javaexec-script.
60748         (C#): Add csharpcomp-script, csharpexec-script.
60749         (Support for building libraries and executables): Add havelib,
60750         relocatable-*.
60751         (Support for maintaining and releasing projects): Renamed from
60752         'Support for maintaining and release projects'. Add announce-gen.
60753
60754 2007-03-31  Bruno Haible  <bruno@clisp.org>
60755
60756         * README: Talk primarily about git.
60757         (git and CVS): Renamed from CVS.
60758         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
60759         gnulib is available through git.
60760         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
60761
60762 2007-03-30  Bruno Haible  <bruno@clisp.org>
60763
60764         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
60765         * lib/poll_.h: Likewise.
60766         * lib/stat_.h: Likewise.
60767         * lib/sys_time_.h: Likewise.
60768         * lib/sysexit_.h: Likewise.
60769         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
60770         * lib/stdbool_.h: Likewise.
60771         * lib/byteswap_.h: Add double-inclusion guard.
60772
60773 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
60774
60775         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
60776
60777 2007-03-30  Karl Berry  <karl@gnu.org>
60778
60779         * config/srclist-update: double space after USA in the license
60780         substitution, since that's how it's usually (?) written.
60781
60782 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
60783
60784         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
60785         reported by Bruno Haible.
60786
60787 2007-03-29  Bruno Haible  <bruno@clisp.org>
60788
60789         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
60790         a bug in AIX iconv().
60791
60792 2007-03-29  Bruno Haible  <bruno@clisp.org>
60793
60794         * modules/ldexpl-tests: New file.
60795         * tests/test-ldexpl.c: New file.
60796
60797 2007-03-29  Bruno Haible  <bruno@clisp.org>
60798
60799         * lib/ldexpl.c: Include fpucw.h.
60800         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
60801         multiplication.
60802         * modules/ldexpl (Depends-on): Add fpucw.
60803
60804 2007-03-29  Bruno Haible  <bruno@clisp.org>
60805
60806         * modules/ldexpl: New file.
60807         * m4/ldexpl.m4: New file.
60808         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
60809         set.
60810         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
60811         REPLACE_LDEXPL.
60812         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
60813         REPLACE_LDEXPL.
60814         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
60815         gl_FUNC_LDEXPL_WORKS.
60816         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
60817         * modules/mathl (Files): Remove lib/ldexpl.c.
60818         (Depends-on): Add ldexpl.
60819
60820 2007-03-29  Bruno Haible  <bruno@clisp.org>
60821
60822         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
60823
60824 2007-03-29  Bruno Haible  <bruno@clisp.org>
60825
60826         * tests/test-striconveh.c (main): Don't assume that a direct conversion
60827         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
60828         and possibly also HP-UX.
60829         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
60830         work on AIX, IRIX, HP-UX, OSF/1.
60831         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
60832         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
60833         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
60834         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
60835         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
60836         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
60837
60838 2007-03-29  Bruno Haible  <bruno@clisp.org>
60839
60840         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
60841
60842 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
60843
60844         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
60845         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
60846
60847 2007-03-29  Eric Blake  <ebb9@byu.net>
60848
60849         * lib/acl-internal.h: Remove redundant include.
60850         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
60851         Cygwin when a file is locked.
60852
60853 2007-03-29  Bruno Haible  <bruno@clisp.org>
60854
60855         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
60856         file.
60857         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
60858
60859 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
60860
60861         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
60862         try to remove a parent directory if the child couldn't be removed
60863         (except for the first rmdir, which could fail because the child
60864         doesn't exist).  Problem reported by Jeff Blaine in
60865         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
60866
60867 2007-03-28  Bruno Haible  <bruno@clisp.org>
60868
60869         * lib/striconveh.c (utf8conv_carefully): New function.
60870         (mem_cd_iconveh_internal): Invoke it.
60871
60872 2007-03-28  Bruno Haible  <bruno@clisp.org>
60873
60874         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
60875         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
60876         input.
60877         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
60878         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
60879         unistr/u8-uctomb.
60880
60881 2007-03-28  Bruno Haible  <bruno@clisp.org>
60882
60883         * modules/unistr/u8-mbtoucr: New file.
60884         * lib/unistr/u8-mbtoucr.c: New file.
60885         * modules/unistr/u16-mbtoucr: New file.
60886         * lib/unistr/u16-mbtoucr.c: New file.
60887         * modules/unistr/u16-mbtoucr: New file.
60888         * lib/unistr/u16-mbtoucr.c: New file.
60889         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
60890
60891 2007-03-27  Simon Josefsson  <simon@josefsson.org>
60892             Bruno Haible  <bruno@clisp.org>
60893
60894         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
60895         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
60896         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
60897
60898         * m4/stdio_h.m4: Add stubs for vasprintf too.
60899
60900         * modules/stdio: Support vasprintf in sed command.
60901
60902         * modules/vasprintf: Depend on stdio for prototypes.  Remove
60903         vasprintf.h.  Add stdio module indicator.
60904
60905         * lib/stdio_.h: Declare asprintf and vasprintf, based on
60906         vasprintf.h.
60907
60908         * lib/vasprintf.h: File removed.
60909
60910         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
60911         * lib/vasprintf.c: Ditto.
60912         * lib/xvasprintf.c: Ditto.
60913         * tests/test-vasprintf-posix.c: Ditto.
60914         * tests/test-vasprintf.c: Ditto.
60915
60916 2007-03-27  Bruno Haible  <bruno@clisp.org>
60917
60918         Make vasnprintf multithread-safe.
60919         * lib/vasnprintf.c (decimal_point_char): New function.
60920         (VASNPRINTF): Use it.
60921         Suggested by Simon Josefsson.
60922
60923 2007-03-27  Eric Blake  <ebb9@byu.net>
60924
60925         Support sub-second birthtime on cygwin.
60926         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
60927         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
60928         (get_stat_birthtime): Also work with st_birthtim.
60929
60930 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
60931
60932         * lib/stat-time.h (USE_BIRTHTIME): Remove.
60933         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
60934         (get_stat_birthtime_ns): Do not try to use "spare" fields.
60935         (get_stat_birthtime_ns): Simplify compile-time tests.
60936         (get_stat_birthtime): Change the API to look like
60937         get_stat_mtime etc., except return a negative tv_nsec on error.
60938         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
60939         Don't check for "spare" fields.
60940         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
60941         or for struct stat.st_birthtime, as these tests aren't used.
60942         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
60943
60944 2007-03-27  Bruno Haible  <bruno@clisp.org>
60945
60946         * lib/stat-time.h: Include <sys/stat.h>.
60947
60948 2007-03-27  James Youngman  <jay@gnu.org>
60949
60950         * lib/stat-time.h (get_stat_birthtime): New function for
60951           retrieving st_birthtime as provided by UFS2 (hence *BSD).
60952         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
60953           and its variants.
60954         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
60955         * modules/stat-time-test: New file.
60956         * tests/test-stat-time.c: New test, devised by Bruno Haible.
60957
60958 2007-03-26  Bruno Haible  <bruno@clisp.org>
60959
60960         Better support of signalling NaNs.
60961         * lib/atanl.c: Include isnanl.h.
60962         (atanl): Perform test for NaN at the beginning of the function and
60963         through a call to isnanl.
60964         * lib/cosl.c: Include isnanl.h.
60965         (cosl): Perform test for NaN at the beginning of the function and
60966         through a call to isnanl.
60967         * lib/ldexpl.c: Include isnanl.h.
60968         (ldexpl): Perform test for NaN through a call to isnanl.
60969         * lib/logl.c: Include isnanl.h.
60970         (logl): Perform test for NaN at the beginning of the function and
60971         through a call to isnanl.
60972         * lib/sinl.c: Include isnanl.h.
60973         (sinl): Perform test for NaN at the beginning of the function and
60974         through a call to isnanl.
60975         * lib/sqrtl.c: Include isnanl.h.
60976         (sqrtl): Perform test for NaN at the beginning of the function and
60977         through a call to isnanl.
60978         * lib/tanl.c: Include isnanl.h.
60979         (tanl): Perform test for NaN at the beginning of the function and
60980         through a call to isnanl.
60981         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
60982         * modules/mathl (Depends-on): Add isnanl.
60983
60984 2007-03-26  Eric Blake  <ebb9@byu.net>
60985
60986         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
60987         regression in logic sense of previous patch.
60988
60989 2007-03-26  Bruno Haible  <bruno@clisp.org>
60990
60991         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
60992         unportable shell command "if ! ...".
60993         Reported by Ralf Wildenhues.
60994
60995 2007-03-25  Bruno Haible  <bruno@clisp.org>
60996
60997         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
60998         <sysexits.h> file, and only add EX_CONFIG.
60999         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
61000         absolute file name and whether it is sufficient. Substitute also
61001         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
61002         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
61003         ABSOLUTE_SYSEXITS_H into sysexits.h.
61004
61005 2007-03-25  Bruno Haible  <bruno@clisp.org>
61006
61007         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
61008         hints is NULL.
61009
61010 2007-03-25  Bruno Haible  <bruno@clisp.org>
61011
61012         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
61013         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
61014
61015 2007-03-25  Bruno Haible  <bruno@clisp.org>
61016
61017         * lib/vasnprintf.c: Include langinfo.h.
61018         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
61019         multithread-safe.
61020         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
61021         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
61022         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
61023         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61024         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61025         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61026         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
61027         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
61028         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61029         Reported by Simon Josefsson.
61030
61031 2007-03-25  Bruno Haible  <bruno@clisp.org>
61032
61033         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
61034         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
61035         * modules/vasnprintf (Depends-on): Add stdint.
61036
61037 2007-03-25  Bruno Haible  <bruno@clisp.org>
61038
61039         * modules/fpieee: New file.
61040         * m4/fpieee.m4: New file.
61041         * modules/isnan-nolibm (Depends-on): Add fpieee.
61042         * modules/isnanl-nolibm (Depends-on): Add fpieee.
61043         * modules/isnanl (Depends-on): Add fpieee.
61044
61045 2007-03-25  Bruno Haible  <bruno@clisp.org>
61046
61047         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
61048
61049 2007-03-25  Bruno Haible  <bruno@clisp.org>
61050
61051         Avoid test failures on IRIX 6.5.
61052         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
61053         (main): Use it.
61054         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
61055         macros.
61056         (main): Use them.
61057
61058 2007-03-25  Bruno Haible  <bruno@clisp.org>
61059
61060         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
61061         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
61062         exists but doesn't work.
61063         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
61064         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
61065         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
61066         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
61067         math.h.
61068
61069 2007-03-25  Bruno Haible  <bruno@clisp.org>
61070
61071         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
61072         returns inf. Needed on IRIX 6.5.
61073
61074 2007-03-25  Bruno Haible  <bruno@clisp.org>
61075
61076         * tests/test-frexpl.c: Include isnanl-nolibm.h.
61077         (main): Use isnanl instead of x != x idiom.
61078         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
61079
61080         * tests/test-frexp.c: Include isnan.h.
61081         (main): Use isnan instead of x != x idiom.
61082         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
61083
61084 2007-03-25  Bruno Haible  <bruno@clisp.org>
61085
61086         * tests/test-frexp.c (NaN): New function/macro.
61087         (main): Use it instead of 0.0 / 0.0.
61088         * tests/test-isnan.c (NaN): New function/macro.
61089         (main): Use it instead of 0.0 / 0.0.
61090         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
61091         (test_function): Use it instead of 0.0 / 0.0.
61092         * tests/test-vasprintf-posix.c (NaN): New function/macro.
61093         (test_function): Use it instead of 0.0 / 0.0.
61094         * tests/test-snprintf-posix.h (NaN): New function/macro.
61095         (test_function): Use it instead of 0.0 / 0.0.
61096         * tests/test-sprintf-posix.h (NaN): New function/macro.
61097         (test_function): Use it instead of 0.0 / 0.0.
61098         * tests/test-fprintf-posix.h (NaN): New function/macro.
61099         (test_function): Use it instead of 0.0 / 0.0.
61100         * tests/test-printf-posix.h (NaN): New function/macro.
61101         (test_function): Use it instead of 0.0 / 0.0.
61102
61103         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
61104
61105 2007-03-25  Bruno Haible  <bruno@clisp.org>
61106
61107         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
61108
61109 2007-03-25  Bruno Haible  <bruno@clisp.org>
61110
61111         * lib/regexec.c (merge_state_with_log): Make static.
61112
61113 2007-03-25  Bruno Haible  <bruno@clisp.org>
61114
61115         * lib/trigl.c (kernel_rem_pio2): Make static.
61116
61117 2007-03-25  Bruno Haible  <bruno@clisp.org>
61118
61119         * lib/sincosl.c (sincosl_table): Make static.
61120
61121 2007-03-25  Bruno Haible  <bruno@clisp.org>
61122
61123         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
61124         if the compiler does not support C99.
61125
61126 2007-03-25  Bruno Haible  <bruno@clisp.org>
61127
61128         * modules/time (Makefile.am): Ensure all rule action lines start with a
61129         tab.
61130
61131 2007-03-24  Bruno Haible  <bruno@clisp.org>
61132
61133         * modules/tsearch-tests: New file.
61134         * tests/test-tsearch.sh: New file.
61135         * tests/test-tsearch.c: New file, mostly copied from glibc.
61136
61137         * modules/search-tests: New file.
61138         * tests/test-search.c: New file.
61139
61140         * modules/search: New file.
61141         * lib/search_.h: New file, incorporating lib/tsearch.h.
61142         * m4/search_h.m4: New file.
61143         * lib/tsearch.h: Remove file.
61144         * lib/tsearch.c: Include search.h instead of tsearch.h.
61145         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
61146         HAVE_TSEARCH.
61147         * modules/tsearch (Files): Remove lib/tsearch.h.
61148         (Depends-on): Add search.
61149         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
61150         (Include): Change tsearch.h into search.h.
61151
61152 2007-03-24  Bruno Haible  <bruno@clisp.org>
61153
61154         * modules/fpucw: New file.
61155         * lib/fpucw.h: New file.
61156         * lib/frexp.c: Include fpucw.h.
61157         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
61158         (FUNC): Use them.
61159         * lib/printf-frexp.c: Include fpucw.h.
61160         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
61161         (FUNC): Use them.
61162         * lib/vasnprintf.c: Include fpucw.h.
61163         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
61164         'long double' calculations.
61165         * tests/test-frexpl.c: Include fpucw.h.
61166         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
61167         * tests/test-printf-frexpl.c: Include fpucw.h.
61168         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
61169         * modules/frexpl (Depends-on): Add fpucw.
61170         * modules/printf-frexpl (Depends-on): Likewise.
61171         * modules/fprintf-posix (Depends-on): Likewise.
61172         * modules/snprintf-posix (Depends-on): Likewise.
61173         * modules/sprintf-posix (Depends-on): Likewise.
61174         * modules/vasnprintf-posix (Depends-on): Likewise.
61175         * modules/vasprintf-posix (Depends-on): Likewise.
61176         * modules/vfprintf-posix (Depends-on): Likewise.
61177         * modules/vsnprintf-posix (Depends-on): Likewise.
61178         * modules/vsprintf-posix (Depends-on): Likewise.
61179         * modules/frexpl-tests (Depends-on): Likewise.
61180         * modules/printf-frexpl-tests (Depends-on): Likewise.
61181
61182 2007-03-24  Bruno Haible  <bruno@clisp.org>
61183
61184         * lib/float+.h: New file.
61185         * lib/isnan.c: Include float+.h.
61186         (SIZE): New macro.
61187         (FUNC): Compare only SIZE bytes of the value.
61188         * lib/vasnprintf.c: Include float+.h.
61189         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
61190         SIZEOF_LDBL or SIZEOF_DBL bytes.
61191         * modules/isnan-nolibm (Files): Add lib/float+.h.
61192         * modules/isnanl-nolibm (Files): Add lib/float+.h.
61193         * modules/isnanl (Files): Add lib/float+.h.
61194         * modules/vasnprintf (Files): Add lib/float+.h.
61195
61196 2007-03-24  Bruno Haible  <bruno@clisp.org>
61197
61198         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
61199         include isnanl-nolibm.h.
61200
61201 2007-03-24  Bruno Haible  <bruno@clisp.org>
61202
61203         * tests/test-read-file.c (main): Don't produce spurious output for
61204         expected situations. Make the test fail if it encountered unexpected
61205         results.
61206
61207 2007-03-24  Bruno Haible  <bruno@clisp.org>
61208
61209         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
61210         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
61211
61212 2007-03-24  Bruno Haible  <bruno@clisp.org>
61213
61214         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
61215
61216 2007-03-24  Bruno Haible  <bruno@clisp.org>
61217
61218         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
61219         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
61220
61221         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
61222         * modules/utf8-ucs4: Turn into a symbolic link to module
61223         unistr/u8-mbtouc.
61224
61225         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
61226         utf8-ucs4-unsafe.
61227         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
61228         unistr/u8-mbtouc-unsafe.
61229
61230         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
61231         * modules/utf16-ucs4: Turn into a symbolic link to module
61232         unistr/u16-mbtouc.
61233
61234         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
61235         utf16-ucs4-unsafe.
61236         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
61237         unistr/u16-mbtouc-unsafe.
61238
61239         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
61240         * modules/ucs4-utf8: Turn into a symbolic link to module
61241         unistr/u8-ubtomb.
61242
61243         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
61244         * modules/ucs4-utf16: Turn into a symbolic link to module
61245         unistr/u16-ubtomb.
61246
61247 2007-03-24  Bruno Haible  <bruno@clisp.org>
61248
61249         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
61250         Enable the function only if HAVE_INLINE.
61251         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
61252         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
61253         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
61254         Enable the function only if HAVE_INLINE.
61255         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
61256         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
61257         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
61258         Enable the function only if HAVE_INLINE.
61259         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
61260         Enable the function only if HAVE_INLINE.
61261         * modules/utf8-ucs4: Update.
61262         * modules/utf8-ucs4-unsafe: Update.
61263         * modules/utf16-ucs4: Update.
61264         * modules/utf16-ucs4-unsafe: Update.
61265         * modules/ucs4-utf8: Update.
61266         * modules/ucs4-utf16: Update.
61267
61268 2007-03-24  Bruno Haible  <bruno@clisp.org>
61269
61270         * lib/utf8-ucs4.h: Remove file.
61271         * lib/utf8-ucs4-unsafe.h: Remove file.
61272         * lib/utf16-ucs4.h: Remove file.
61273         * lib/utf16-ucs4-unsafe.h: Remove file.
61274         * lib/ucs4-utf8.h: Remove file.
61275         * lib/ucs4-utf16.h: Remove file.
61276         * lib/unistr.h: Include their previous contents.
61277         * m4/utf-ucs4.m4: Remove file.
61278         * m4/ucs4-utf.m4: Remove file.
61279         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
61280         (Depends-on): Add unistr/base.
61281         (configure.ac): Remove gl_UTF_UCS4.
61282         (Makefile.am): Update.
61283         (Include): Change to unistr.h.
61284         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
61285         (Depends-on): Add unistr/base.
61286         (configure.ac): Remove gl_UTF_UCS4.
61287         (Makefile.am): Update.
61288         (Include): Change to unistr.h.
61289         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
61290         (Depends-on): Add unistr/base.
61291         (configure.ac): Remove gl_UTF_UCS4.
61292         (Makefile.am): Update.
61293         (Include): Change to unistr.h.
61294         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
61295         (Depends-on): Add unistr/base.
61296         (configure.ac): Remove gl_UTF_UCS4.
61297         (Makefile.am): Update.
61298         (Include): Change to unistr.h.
61299         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
61300         (Depends-on): Add unistr/base.
61301         (configure.ac): Remove gl_UCS4_UTF.
61302         (Makefile.am): Update.
61303         (Include): Change to unistr.h.
61304         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
61305         (Depends-on): Add unistr/base.
61306         (configure.ac): Remove gl_UCS4_UTF.
61307         (Makefile.am): Update.
61308         (Include): Change to unistr.h.
61309         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
61310         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
61311         utf8-ucs4-unsafe.h.
61312         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
61313         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
61314         utf16-ucs4-unsafe.h.
61315         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
61316         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
61317         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
61318         * lib/unistr/u8-strchr.c: Likewise.
61319         * lib/unistr/u8-strrchr.c: Likewise.
61320         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
61321         * lib/unistr/u16-strchr.c: Likewise.
61322         * lib/unistr/u16-strrchr.c: Likewise.
61323         * lib/striconveh.c: Update.
61324         * lib/linebreak.c: Update.
61325
61326 2007-03-24  Bruno Haible  <bruno@clisp.org>
61327
61328         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
61329         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
61330
61331 2007-03-22  Bruno Haible  <bruno@clisp.org>
61332
61333         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
61334
61335 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
61336
61337         * MODULES.html.sh (File system functions): New module write-any-file.
61338         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
61339         * m4/write-any-file.m4: New files.
61340
61341 2007-03-23  Eric Blake  <ebb9@byu.net>
61342
61343         * gnulib-tool: Rearrange space-tab sequences, since some editors
61344         like to eat them.
61345
61346 2007-03-23  Eric Blake  <ebb9@byu.net>
61347
61348         * lib/version-etc.c (version_etc_va): Update license wording to
61349         be more concise.  Recommended by Richard Stallman.
61350
61351 2007-03-22  Bruno Haible  <bruno@clisp.org>
61352
61353         * lib/poll.c (MSG_PEEK): New fallback definition.
61354
61355 2007-03-22  Bruno Haible  <bruno@clisp.org>
61356
61357         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
61358         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
61359         (main): Update.
61360         Fixes a compilation error on BeOS.
61361
61362 2007-03-22  Bruno Haible  <bruno@clisp.org>
61363
61364         * modules/frexpl-tests: New file.
61365         * tests/test-frexpl.c: New file.
61366
61367         * modules/frexpl: New file.
61368         * m4/frexpl.m4: New file.
61369         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
61370         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
61371         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
61372         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
61373         (Depends-on): Add frexpl. Remove isnanl-nolibm.
61374         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
61375
61376 2007-03-22  Bruno Haible  <bruno@clisp.org>
61377
61378         * lib/frexpl.c: Share code with lib/frexp.c.
61379         * modules/mathl (Files): Add lib/frexp.c.
61380         (Depends-on): Add isnanl-nolibm.
61381
61382 2007-03-22  Bruno Haible  <bruno@clisp.org>
61383
61384         * modules/printf-frexp (Files): Add m4/frexp.m4.
61385         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
61386         only if the found frexp function actually works.
61387
61388 2007-03-22  Bruno Haible  <bruno@clisp.org>
61389
61390         * lib/frexp.c: Remove older implementation that uses divisions.
61391
61392 2007-03-21  Bruno Haible  <bruno@clisp.org>
61393
61394         * modules/frexp-tests: New file.
61395         * tests/test-frexp.c: New file.
61396
61397         * modules/frexp: New file.
61398         * lib/frexp.c: New file.
61399         * m4/frexp.m4: New file.
61400         * lib/math_.h (frexp): New declaration.
61401         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
61402         REPLACE_FREXP.
61403         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
61404
61405 2007-03-21  Bruno Haible  <bruno@clisp.org>
61406
61407         * modules/isnanl-tests: New file.
61408         * tests/test-isnanl.c: New file.
61409
61410         * modules/isnanl: New file.
61411         * lib/isnanl.h: New file.
61412         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
61413         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
61414         gl_FUNC_ISNANL_WORKS.
61415         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
61416         New macros.
61417
61418 2007-03-21  Bruno Haible  <bruno@clisp.org>
61419
61420         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
61421         lib/isnanl.h.
61422         (Include): Update.
61423         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
61424         * lib/vasnprintf.c: Update.
61425         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
61426         tests/test-isnanl.h, remove tests/test-isnanl.c.
61427         (Makefile.am): Update.
61428         * tests/test-isnanl-nolibm.c: New file.
61429         * tests/test-isnanl.h: New file.
61430         * tests/test-isnanl.c: Remove file.
61431
61432 2007-03-21  Jim Meyering  <jim@meyering.net>
61433
61434         When trying to open ".", treat ESTALE like EACCES.
61435         * lib/savewd.c (savewd_save): Resort to forking not just upon
61436         failure with EACCES, but also when errno is ESTALE.
61437
61438 2007-03-20  Bruno Haible  <bruno@clisp.org>
61439
61440         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
61441         Needed on AIX 5.1. Reported by Matthew Woehlke.
61442
61443 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
61444
61445         Suggestions by Bruno Haible:
61446         * lib/acl-internal.h: Include "gettext.h" rather than rolling
61447         our own.
61448         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
61449         * modules/acl (Depends-on): Add gettext.
61450
61451 2007-03-19  Bruno Haible  <bruno@clisp.org>
61452
61453         * modules/iconvme: Remove file.
61454         * lib/iconvme.h: Remove file.
61455         * lib/iconvme.c: Remove file.
61456         * m4/iconvme.m4: Remove file.
61457
61458 2007-03-19  Bruno Haible  <bruno@clisp.org>
61459
61460         * doc/relocatable-maint.texi: Break long shell script line.
61461         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
61462
61463 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
61464
61465         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
61466         handle file_has_acl.
61467         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
61468         * lib/acl.c: Move header inclusions and related macro defns into
61469         lib/acl-internal.h.
61470         (S_ISLNK): Remove defn, since that's now done for us.
61471         (file_has_acl): Move to lib/file-has-acl.c.
61472         Call acl_trivial if available.  This is the crucial part of the fix.
61473         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
61474         shared within the library.  Rewrite a bit, partly to make it compatible
61475         with the GNU coding style.
61476         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
61477         Remove unnecessary double-quotes.
61478         Don't test for acl_to_text; the build will catch that.
61479         Replace acl_entries if it doesn't exist and it is needed.
61480         Check for -lsec and acl_trivial (as used on Solaris 10).
61481         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
61482         lib/file-has-acl.c.
61483         (Depends-on): Add sys_stat, for S_ISLNK.
61484
61485 2007-03-19  Ben Pfaff  <blp@gnu.org>
61486
61487         * doc/gnulib.texi: Fix typos.
61488         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
61489
61490 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
61491
61492         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
61493         If size is zero here, buf must be zero.
61494
61495 2007-03-19  Simon Josefsson  <simon@josefsson.org>
61496
61497         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
61498         <bruno@clisp.org>.
61499
61500 2007-03-18  Bruno Haible  <bruno@clisp.org>
61501
61502         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
61503         Suggested by Eric Blake.
61504
61505 2007-03-18  Ben Pfaff  <blp@gnu.org>
61506
61507         * doc/relocatable.texi: Recommend using as prefix a directory
61508         that does not exist and will never be created.  Based on
61509         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
61510         and others.
61511
61512 2007-03-17  Bruno Haible  <bruno@clisp.org>
61513
61514         * lib/fchownat.c: Include lchown.h.
61515
61516 2007-03-17  Bruno Haible  <bruno@clisp.org>
61517
61518         Fix endless loop when the given allocated size was > INT_MAX.
61519         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
61520         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
61521         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
61522         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
61523         * lib/sprintf.c (sprintf): Likewise.
61524
61525 2007-03-17  Bruno Haible  <bruno@clisp.org>
61526
61527         * tests/test-argp-2.sh (func_compare): Output a context diff.
61528
61529 2007-03-17  Bruno Haible  <bruno@clisp.org>
61530
61531         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
61532         locale's decimal-point character.
61533
61534 2007-03-17  Bruno Haible  <bruno@clisp.org>
61535
61536         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
61537         before comparing it. Needed because on some platforms (e.g. x86) a
61538         'long double' occupies less bytes than sizeof (long double).
61539
61540 2007-03-17  Bruno Haible  <bruno@clisp.org>
61541
61542         * tests/test-crc.c (main): Make printf statements 64-bit clean.
61543         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
61544         * tests/test-getaddrinfo.c (simple): Likewise.
61545         * tests/test-read-file.c (main): Likewise.
61546
61547 2007-03-17  Bruno Haible  <bruno@clisp.org>
61548
61549         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
61550
61551 2007-03-17  Bruno Haible  <bruno@clisp.org>
61552
61553         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
61554         unused variable.
61555
61556 2007-03-17  Bruno Haible  <bruno@clisp.org>
61557
61558         * tests/test-c-strcasecmp.c: Include c-strcase.h.
61559         * tests/test-c-strncasecmp.c: Likewise.
61560
61561 2007-03-17  Bruno Haible  <bruno@clisp.org>
61562
61563         * modules/stdlib (Depends-on): Add unistd.
61564         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
61565         Needed for MacOS X 10.3.
61566
61567 2007-03-17  Bruno Haible  <bruno@clisp.org>
61568
61569         * lib/unistr/u-strdup.h: Include <stdlib.h>.
61570
61571 2007-03-17  Bruno Haible  <bruno@clisp.org>
61572
61573         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
61574
61575 2007-03-17  Bruno Haible  <bruno@clisp.org>
61576
61577         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
61578         to reflect files copied from gnulib (with or without modifications).
61579         Suggested by Jim Meyering.
61580
61581 2007-03-17  Eric Blake  <ebb9@byu.net>
61582
61583         * NEWS: Document stdlib change from 2007-02-18.
61584
61585 2007-03-17  Jim Meyering  <jim@meyering.net>
61586
61587         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
61588         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
61589         someone uses a name containing shell meta-characters.
61590         Reported by Alfred M. Szmidt.
61591
61592         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
61593
61594 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
61595
61596         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
61597         and copy gettext configuration files only if configure.ac contains
61598         a use of AM_GNU_GETTEXT_VERSION.
61599
61600 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
61601
61602         * build-aux/bootstrap (gnulib_name): New variable.
61603         (gnulib_tool_options): Use it.
61604
61605 2007-03-13  Simon Josefsson  <simon@josefsson.org>
61606
61607         * tests/test-des.c: Use new namespace.
61608
61609 2007-03-15  Bruno Haible  <bruno@clisp.org>
61610
61611         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
61612         Reported by James Youngman <jay@gnu.org>.
61613
61614 2007-03-15  Bruno Haible  <bruno@clisp.org>
61615
61616         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
61617         declared prototype. Needed with cc on OSF/1 5.1.
61618
61619 2007-03-15  Bruno Haible  <bruno@clisp.org>
61620
61621         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
61622         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
61623         (struct gl_list_implementation): Add dispose_fn argument to the
61624         'create_empty', 'create' methods.
61625         (struct gl_list_impl_base): Add field 'dispose_fn'.
61626         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
61627         argument.
61628         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
61629         dispose_fn argument.
61630         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
61631         dispose_fn on the dropped values.
61632         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
61633         dispose_fn argument.
61634         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
61635         dropped values.
61636         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
61637         (gl_tree_remove_node): Call dispose_fn on the dropped value.
61638         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
61639         (gl_tree_remove_node): Call dispose_fn on the dropped value.
61640         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
61641         argument.
61642         (gl_tree_list_free): Call dispose_fn on the dropped values.
61643         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
61644         the dropped values.
61645         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
61646         Add dispose_fn argument.
61647         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
61648         Call dispose_fn on the dropped values.
61649         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
61650         Add dispose_fn argument.
61651         (gl_sublist_create): Initialize the 'dispose_fn' field.
61652         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
61653         * tests/test-array_list.c (main): Update.
61654         * tests/test-carray_list.c (main): Update.
61655         * tests/test-avltree_list.c (main): Update.
61656         * tests/test-rbtree_list.c (main): Update.
61657         * tests/test-avltreehash_list.c (main): Update.
61658         * tests/test-rbtreehash_list.c (main): Update.
61659         * tests/test-linked_list.c (main): Update.
61660         * tests/test-linkedhash_list.c (main): Update.
61661         * tests/test-array_oset.c (main): Update.
61662
61663 2007-03-15  Bruno Haible  <bruno@clisp.org>
61664
61665         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
61666         (gl_oset_create_empty): Add dispose_fn argument.
61667         (struct gl_oset_implementation): Add dispose_fn argument to
61668         'create_empty' method.
61669         (struct gl_oset_impl_base): Add dispose_fn field.
61670         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
61671         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
61672         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
61673         values.
61674         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
61675         (gl_tree_oset_free): Call dispose_fn on the dropped values.
61676         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
61677         dropped value.
61678         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
61679         dropped value.
61680         * tests/test-array_oset.c (main): Update.
61681         * tests/test-avltree_oset.c (main): Update.
61682         * tests/test-rbtree_oset.c (main): Update.
61683         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
61684
61685 2007-03-13  Bruno Haible  <bruno@clisp.org>
61686
61687         * tests/test-stdbool.c (i): Update after last patch.
61688
61689 2007-03-12  Bruno Haible  <bruno@clisp.org>
61690
61691         * lib/quotearg.c: Include <wctype.h> early, before the definition of
61692         the iswprint macro. Needed on Solaris 2.5.1.
61693
61694 2007-03-12  Bruno Haible  <bruno@clisp.org>
61695
61696         * tests/test-printf-frexp.c (main): Declare x as volatile.
61697
61698 2007-03-12  Simon Josefsson  <simon@josefsson.org>
61699
61700         * doc/gnulib.texi (Build robot for gnulib): New section.
61701
61702 2007-03-12  Jim Meyering  <jim@meyering.net>
61703
61704         * build-aux/bootstrap: New file.
61705         * build-aux/bootstrap.conf: New file, from coreutils.
61706
61707 2007-03-11  Bruno Haible  <bruno@clisp.org>
61708
61709         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
61710
61711 2007-03-12  Simon Josefsson  <simon@josefsson.org>
61712
61713         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
61714         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
61715         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
61716
61717 2007-03-11  Bruno Haible  <bruno@clisp.org>
61718
61719         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
61720         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
61721
61722 2007-03-11  Bruno Haible  <bruno@clisp.org>
61723
61724         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
61725         formula. Needed for SunPRO C 5.0.
61726
61727 2007-03-11  Bruno Haible  <bruno@clisp.org>
61728
61729         * modules/long-options (Depends-on): Add getopt.
61730
61731 2007-03-11  Bruno Haible  <bruno@clisp.org>
61732
61733         * modules/modechange (Depends-on): Add stdbool.
61734
61735 2007-03-11  Bruno Haible  <bruno@clisp.org>
61736
61737         * modules/i-ring (Depends-on): Add stdbool.
61738
61739 2007-03-11  Bruno Haible  <bruno@clisp.org>
61740
61741         * modules/gc-des (Depends-on): Add stdbool.
61742
61743 2007-03-11  Bruno Haible  <bruno@clisp.org>
61744
61745         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
61746
61747 2007-03-11  Bruno Haible  <bruno@clisp.org>
61748
61749         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
61750
61751 2007-03-11  Bruno Haible  <bruno@clisp.org>
61752
61753         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
61754
61755 2007-03-11  Bruno Haible  <bruno@clisp.org>
61756
61757         * lib/vasnprintf.c (sprintf): Undefine.
61758
61759 2007-03-11  Bruno Haible  <bruno@clisp.org>
61760
61761         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
61762         initializers in SunPRO C and Compaq C compilers.
61763
61764 2007-03-11  Bruno Haible  <bruno@clisp.org>
61765
61766         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
61767         decrementing code ANSI C compliant.
61768
61769 2007-03-11  Bruno Haible  <bruno@clisp.org>
61770
61771         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
61772         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
61773
61774 2007-03-11  Bruno Haible  <bruno@clisp.org>
61775
61776         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
61777         <stdbool.h> substitute doesn't pass.
61778
61779 2007-03-11  Bruno Haible  <bruno@clisp.org>
61780
61781         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
61782
61783 2007-03-11  Bruno Haible  <bruno@clisp.org>
61784
61785         * gnulib-tool (func_create_megatestdir): Create also an autobuild
61786         script, for submission to autobuild.josefsson.org.
61787
61788 2007-03-10  Bruno Haible  <bruno@clisp.org>
61789
61790         * modules/canonicalize-lgpl-tests: New file.
61791         * tests/test-canonicalize-lgpl.sh: New file.
61792         * tests/test-canonicalize-lgpl.c: New file.
61793
61794         * modules/c-strcase-tests: New file.
61795         * tests/test-c-strcase.sh: New file.
61796         * tests/test-c-strcasecmp.c: New file.
61797         * tests/test-c-strncasecmp.c: New file.
61798
61799         * modules/atexit-tests: New file.
61800         * tests/test-atexit.sh: New file.
61801         * tests/test-atexit.c: New file.
61802
61803 2007-03-10  Bruno Haible  <bruno@clisp.org>
61804
61805         * tests/test-binary-io.sh: Use temporary filenames that are not so
61806         likely to clash with those of other tests (in a parallel make).
61807         * tests/test-binary-io.c: Likewise.
61808
61809 2007-03-10  Bruno Haible  <bruno@clisp.org>
61810
61811         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
61812         fallback; use #error instead.
61813         Suggested by Simon Josefsson.
61814
61815 2007-03-10  Bruno Haible  <bruno@clisp.org>
61816
61817         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
61818         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
61819         first and the last.
61820
61821 2007-03-10  Bruno Haible  <bruno@clisp.org>
61822
61823         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
61824
61825 2007-03-10  Bruno Haible  <bruno@clisp.org>
61826
61827         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
61828         "make distcheck".
61829         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
61830         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
61831         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
61832
61833 2007-03-10  Bruno Haible  <bruno@clisp.org>
61834
61835         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
61836         variable.
61837         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
61838         variable.
61839
61840 2007-03-09  Eric Blake  <ebb9@byu.net>
61841         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
61842
61843         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
61844         types are not being provided by gnulib.
61845         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
61846         types are supported.
61847
61848 2007-03-10  Bruno Haible  <bruno@clisp.org>
61849
61850         * lib/stdio_.h (__attribute__): New macro.
61851         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
61852         vsprintf): Specify __attribute__ __format__ for GCC.
61853         Suggested by Eric Blake.
61854
61855 2007-03-09  Bruno Haible  <bruno@clisp.org>
61856
61857         * modules/printf-posix-tests: New file.
61858         * tests/test-printf-posix.sh: New file.
61859         * tests/test-printf-posix.c: New file.
61860
61861         * modules/printf-posix: New file.
61862         * lib/printf.c: New file.
61863         * m4/printf-posix-rpl.m4: New file.
61864         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
61865         REPLACE_PRINTF.
61866         * lib/stdio_.h (printf): New declaration.
61867         (format, __format__, ____printf____, ____scanf____, ____strftime____,
61868         ____strfmon____): New macros.
61869         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
61870         REPLACE_PRINTF.
61871
61872 2007-03-09  Bruno Haible  <bruno@clisp.org>
61873
61874         * tests/test-vasnprintf-posix2.sh: New file.
61875         * tests/test-vasnprintf-posix2.c: New file.
61876         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
61877         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
61878         (Makefile.am): Activate test-vasnprintf-posix2.sh.
61879
61880         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
61881         a locale dependent decimal point, rather than always '.'.
61882
61883 2007-03-09  Eric Blake  <ebb9@byu.net>
61884
61885         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
61886         spite of platforms like Tandem/NSK that define it to -1.
61887
61888 2007-03-08  Bruno Haible  <bruno@clisp.org>
61889
61890         * modules/vprintf-posix-tests: New file.
61891         * tests/test-vprintf-posix.sh: New file.
61892         * tests/test-vprintf-posix.c: New file.
61893         * tests/test-printf-posix.h: New file.
61894
61895         * modules/vprintf-posix: New file.
61896         * lib/vprintf.c: New file.
61897         * m4/vprintf-posix.m4: New file.
61898         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
61899         REPLACE_VPRINTF.
61900         * lib/stdio_.h (vprintf): New declaration.
61901         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
61902         REPLACE_VPRINTF.
61903
61904 2007-03-08  Bruno Haible  <bruno@clisp.org>
61905
61906         * modules/fprintf-posix-tests: New file.
61907         * tests/test-fprintf-posix.sh: New file.
61908         * tests/test-fprintf-posix.c: New file.
61909
61910         * modules/fprintf-posix: New file.
61911         * lib/fprintf.c: New file.
61912         * m4/fprintf-posix.m4: New file.
61913         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
61914         REPLACE_FPRINTF.
61915         * lib/stdio_.h (fprintf): New declaration.
61916         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
61917         REPLACE_FPRINTF.
61918
61919 2007-03-08  Bruno Haible  <bruno@clisp.org>
61920
61921         * modules/vfprintf-posix-tests: New file.
61922         * tests/test-vfprintf-posix.sh: New file.
61923         * tests/test-vfprintf-posix.c: New file.
61924         * tests/test-fprintf-posix.h: New file.
61925         * tests/test-fprintf-posix.out: New file.
61926
61927         * modules/vfprintf-posix: New file.
61928         * lib/vfprintf.c: New file.
61929         * m4/vfprintf-posix.m4: New file.
61930         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
61931         REPLACE_VFPRINTF.
61932         * lib/stdio_.h (vfprintf): New declaration.
61933         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
61934         REPLACE_VFPRINTF.
61935
61936 2007-03-08  Bruno Haible  <bruno@clisp.org>
61937
61938         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
61939
61940 2007-03-08  Bruno Haible  <bruno@clisp.org>
61941
61942         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
61943         instead of 'expr' invocations.
61944         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61945         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61946         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61947         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61948         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61949         Suggested by Paul Eggert.
61950
61951 2007-03-08  Bruno Haible  <bruno@clisp.org>
61952
61953         * modules/fseterr-tests: New file.
61954         * tests/test-fseterr.c: New file.
61955
61956         * modules/fseterr: New file.
61957         * lib/fseterr.h: New file.
61958         * lib/fseterr.c: New file.
61959
61960 2007-03-08  Bruno Haible  <bruno@clisp.org>
61961
61962         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
61963         * lib/getopt_.h: Likewise.
61964         * lib/mbswidth.h: Likewise.
61965         * lib/setenv.h: Likewise.
61966         * lib/vasnprintf.h: Likewise.
61967         * lib/vasprintf.h: Likewise.
61968         * lib/verror.h: Likewise.
61969         * lib/xsetenv.h: Likewise.
61970         * lib/xvasprintf.h: Likewise.
61971
61972 2007-03-08  Jim Meyering  <jim@meyering.net>
61973
61974         * users.txt: Add parted.
61975
61976         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
61977
61978 2007-03-07  Bruno Haible  <bruno@clisp.org>
61979
61980         * m4/printf.m4: Make the shell script snippets copy&pastable.
61981
61982 2007-03-02  Bruno Haible  <bruno@clisp.org>
61983
61984         * lib/netinet_in_.h: New file.
61985         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
61986         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
61987         * modules/netinet_in (Files): Add lib/netinet_in_.h.
61988         (Depends-on): Add absolute-header.
61989         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
61990         into netinet/in.h.
61991
61992 2007-03-03  Bruno Haible  <bruno@clisp.org>
61993
61994         * lib/sys_select_.h: New file.
61995         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
61996         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
61997         * modules/sys_select (Files): Add lib/sys_select_.h.
61998         (Depends-on): Add absolute-header.
61999         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
62000         into sys/select.h.
62001
62002 2007-03-02  Bruno Haible  <bruno@clisp.org>
62003
62004         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
62005         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
62006         values.
62007         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
62008         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
62009         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
62010         * modules/sys_socket (Depends-on): Add absolute-header.
62011         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
62012         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
62013         (Include): Remove requirement of inclusion of <sys/types.h>.
62014
62015 2007-03-02  Bruno Haible  <bruno@clisp.org>
62016
62017         * lib/byteswap_.h (bswap_32): Fix formula.
62018
62019 2007-03-06  Bruno Haible  <bruno@clisp.org>
62020
62021         * modules/sprintf-posix-tests: New file.
62022         * tests/test-sprintf-posix.c: New file.
62023
62024         * modules/sprintf-posix: New file.
62025         * lib/sprintf.c: New file.
62026         * m4/sprintf-posix.m4: New file.
62027         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
62028         REPLACE_SPRINTF.
62029         * lib/stdio_.h (sprintf): New declaration.
62030         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
62031         REPLACE_SPRINTF.
62032
62033 2007-03-06  Bruno Haible  <bruno@clisp.org>
62034
62035         * modules/vsprintf-posix-tests: New file.
62036         * tests/test-vsprintf-posix.c: New file.
62037         * tests/test-sprintf-posix.h: New file.
62038
62039         * modules/vsprintf-posix: New file.
62040         * lib/vsprintf.c: New file.
62041         * m4/vsprintf-posix.m4: New file.
62042         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
62043         REPLACE_VSPRINTF.
62044         * lib/stdio_.h (vsprintf): New declaration.
62045         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
62046         REPLACE_VSPRINTF.
62047
62048 2007-03-06  Bruno Haible  <bruno@clisp.org>
62049
62050         * modules/vsnprintf (Depend-on): Remove minmax.
62051
62052 2007-03-06  Bruno Haible  <bruno@clisp.org>
62053
62054         * modules/snprintf-posix-tests: New file.
62055         * tests/test-snprintf-posix.c: New file.
62056
62057         * modules/snprintf-posix: New file.
62058         * m4/snprintf-posix.m4: New file.
62059         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
62060         gl_FUNC_SNPRINTF.
62061         (gl_FUNC_SNPRINTF): Invoke it.
62062         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
62063         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
62064         is set.
62065         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
62066
62067 2007-03-06  Bruno Haible  <bruno@clisp.org>
62068
62069         * modules/vsnprintf-posix-tests: New file.
62070         * tests/test-vsnprintf-posix.c: New file.
62071         * tests/test-snprintf-posix.h: New file.
62072
62073         * modules/vsnprintf-posix: New file.
62074         * m4/vsnprintf-posix.m4: New file.
62075         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
62076         gl_FUNC_VSNPRINTF.
62077         (gl_FUNC_VSNPRINTF): Invoke it.
62078         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
62079         * lib/stdio_.h (vsnprintf): Define as a replacement if
62080         REPLACE_VSNPRINTF is set.
62081         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
62082
62083 2007-03-06  Bruno Haible  <bruno@clisp.org>
62084
62085         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
62086         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
62087
62088 2007-03-06  Bruno Haible  <bruno@clisp.org>
62089
62090         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
62091         (asinl): Declare also if HAVE_DECL_ASINL is set.
62092         (atanl): Declare also if HAVE_DECL_ATANL is set.
62093         (ceill): Declare also if HAVE_DECL_CEILL is set.
62094         (cosl): Declare also if HAVE_DECL_COSL is set.
62095         (expl): Declare also if HAVE_DECL_EXPL is set.
62096         (floorl): Declare also if HAVE_DECL_FLOORL is set.
62097         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
62098         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
62099         (logl): Declare also if HAVE_DECL_LOGL is set.
62100         (sinl): Declare also if HAVE_DECL_SINL is set.
62101         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
62102         (tanl): Declare also if HAVE_DECL_TANL is set.
62103         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
62104         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
62105         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
62106         declaration of frexpl, ldexpl.
62107         * modules/printf-frexpl (Depends-on): Add math.
62108         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
62109
62110 2007-03-05  Bruno Haible  <bruno@clisp.org>
62111
62112         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
62113         frexpl and ldexpl are declared.
62114         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
62115
62116 2007-03-05  Bruno Haible  <bruno@clisp.org>
62117
62118         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
62119         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
62120
62121 2007-03-05  Bruno Haible  <bruno@clisp.org>
62122
62123         * lib/stdio_.h: Include <stddef.h>.
62124
62125 2007-03-05  Bruno Haible  <bruno@clisp.org>
62126
62127         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
62128
62129 2007-03-05  Bruno Haible  <bruno@clisp.org>
62130
62131         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
62132         NetBSD 4, from Ralf Wildenhues.
62133
62134 2007-03-04  Bruno Haible  <bruno@clisp.org>
62135
62136         * lib/vasprintf.h: Update #if logic for the case when the functions
62137         exist but are overridden.
62138
62139 2007-03-04  Bruno Haible  <bruno@clisp.org>
62140
62141         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
62142         implementations: glibc-2.4 and MacOS X 10.3.
62143         * tests/test-vasnprintf-posix.c (test_function): Test also the case
62144         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
62145         * tests/test-vasprintf-posix.c (test_function): Likewise.
62146
62147 2007-03-04  Bruno Haible  <bruno@clisp.org>
62148
62149         * modules/vasprintf-posix-tests: New file.
62150         * tests/test-vasprintf-posix.c: New file.
62151
62152         * modules/vasprintf-posix: New file.
62153         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
62154         defined.
62155         * m4/vasprintf-posix.m4: New file.
62156         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
62157         gl_FUNC_VASPRINTF.
62158         (gl_FUNC_VASPRINTF): Invoke it.
62159         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
62160         here.
62161         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
62162
62163 2007-03-04  Bruno Haible  <bruno@clisp.org>
62164
62165         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
62166         REPLACE_GETTIMEOFDAY.
62167         * modules/sys_time (Makefile.am): Likewise.
62168         * m4/sys_time_h.m4: Likewise.
62169         * m4/gettimeofday.m4: Likewise.
62170
62171 2007-03-04  Bruno Haible  <bruno@clisp.org>
62172
62173         * modules/vasnprintf-posix-tests: New file.
62174         * tests/test-vasnprintf-posix.c: New file.
62175
62176         * modules/vasnprintf-posix: New file.
62177         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
62178         printf-frexpl.h.
62179         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
62180         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
62181         REPLACE_VASNPRINTF is defined.
62182         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
62183         gl_FUNC_VASNPRINTF.
62184         (gl_FUNC_VASNPRINTF): Invoke it.
62185         * m4/vasnprintf-posix.m4: New file.
62186         * m4/printf.m4: New file.
62187
62188 2007-03-04  Bruno Haible  <bruno@clisp.org>
62189
62190         Compile progreloc.c only if --enable-relocatable is specified.
62191         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
62192         if --enable-relocatable was specified.
62193         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
62194         lib_SOURCES.
62195
62196 2007-03-04  Jim Meyering  <jim@meyering.net>
62197
62198         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
62199         Use it consistently, rather than enumerating errno constants.
62200
62201 2007-03-04  Bruno Haible  <bruno@clisp.org>
62202
62203         * modules/xvasprintf-tests: New file.
62204         * tests/test-xvasprintf.c: New file.
62205
62206         * modules/vasprintf-tests: New file.
62207         * tests/test-vasprintf.c: New file.
62208
62209         * modules/vasnprintf-tests: New file.
62210         * tests/test-vasnprintf.c: New file.
62211
62212         * modules/vsnprintf-tests: New file.
62213         * tests/test-vsnprintf.c: New file.
62214
62215         * modules/snprintf-tests: New file.
62216         * tests/test-snprintf.c: New file.
62217
62218 2007-03-04  Bruno Haible  <bruno@clisp.org>
62219
62220         Compile relocatable.c only if --enable-relocatable is specified.
62221         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
62222         gl_RELOCATABLE_LIBRARY.
62223         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
62224         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
62225         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
62226         gl_RELOCATABLE_LIBRARY.
62227         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
62228         (Makefile.am): Remove lib_SOURCES.
62229         * modules/relocatable-lib-lgpl (configure.ac): Invoke
62230         gl_RELOCATABLE_LIBRARY.
62231         (Makefile.am): Remove lib_SOURCES.
62232         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
62233         always.
62234         * modules/relocatable-prog-wrapper (configure.ac): Invoke
62235         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
62236
62237 2007-03-04  Bruno Haible  <bruno@clisp.org>
62238
62239         * modules/argmatch-tests: New file.
62240         * tests/test-argmatch.c: New file.
62241
62242         * tests/test-allocsa.c (main): Halve the number of loop runs.
62243
62244         * modules/alloca-opt-tests: New file.
62245         * tests/test-alloca-opt.c: New file.
62246
62247 2007-03-04  Jim Meyering  <jim@meyering.net>
62248
62249         Work around difference between Linux ACLs and Solaris 10 ZFS.
62250         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
62251         for EINVAL.
62252
62253 2007-03-03  Bruno Haible  <bruno@clisp.org>
62254
62255         * modules/relocatable-prog (Depends-on): Add back progreloc's
62256         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
62257
62258 2007-03-03  Bruno Haible  <bruno@clisp.org>
62259
62260         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
62261         * modules/relocatable-lib: New file.
62262
62263 2007-03-03  Bruno Haible  <bruno@clisp.org>
62264
62265         * modules/relocatable-prog: Renamed from modules/relocatable.
62266         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
62267
62268 2007-03-03  Bruno Haible  <bruno@clisp.org>
62269
62270         * modules/relocatable-script (Files): Add doc/relocatable.texi,
62271         m4/relocatable-lib.m4.
62272         (Depends-on): Remove 'relocatable'.
62273         (configure.ac): Add gl_RELOCATABLE_NOP.
62274
62275 2007-03-03  Bruno Haible  <bruno@clisp.org>
62276
62277         * modules/relocatable-prog-wrapper: New file.
62278         * modules/relocatable (Depends-on): Add it. Remove all other
62279         dependencies except progname.
62280         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
62281
62282         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
62283         (gl_FUNC_STRERROR): Nop.
62284         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
62285
62286         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
62287         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
62288
62289         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
62290         (gl_FUNC_READLINK): Update.
62291
62292         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
62293
62294 2007-03-03  Bruno Haible  <bruno@clisp.org>
62295
62296         * lib/xreadlink.c: Include <unistd.h> unconditionally.
62297         * modules/xreadlink (Depends-on): Add unistd.
62298         * modules/xreadlink-with-size (Depends-on): Likewise.
62299
62300 2007-03-03  Bruno Haible  <bruno@clisp.org>
62301
62302         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
62303         extracted from gt_FUNC_SETENV.
62304         (gt_FUNC_SETENV): Remove macro.
62305         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
62306         remove gt_FUNC_SETENV.
62307
62308 2007-03-03  Bruno Haible  <bruno@clisp.org>
62309
62310         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
62311         ENABLE_RELOCATABLE here.
62312         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
62313
62314 2007-03-03  Bruno Haible  <bruno@clisp.org>
62315
62316         * modules/rbtreehash-list-tests (Depends-on): Add progname.
62317         * tests/test-rbtreehash_list.c: Include progname.h.
62318         (main): Call set_program_name.
62319
62320         * modules/rbtree-oset-tests (Depends-on): Add progname.
62321         * tests/test-rbtree_oset.c: Include progname.h.
62322         (main): Call set_program_name.
62323
62324         * modules/rbtree-list-tests (Depends-on): Add progname.
62325         * tests/test-rbtree_list.c: Include progname.h.
62326         (main): Call set_program_name.
62327
62328         * modules/linked-list-tests (Depends-on): Add progname.
62329         * tests/test-linked_list.c: Include progname.h.
62330         (main): Call set_program_name.
62331
62332 2007-03-03  Bruno Haible  <bruno@clisp.org>
62333
62334         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
62335         All uses of __restrict changed to _Restrict_.
62336         * lib/glob_.h (__restrict): Remove macro.
62337
62338 2007-03-02  Bruno Haible  <bruno@clisp.org>
62339
62340         * modules/gettext (configure.ac): Require gettext infrastructure
62341         from version 0.16.1.
62342
62343 2007-03-02  Bruno Haible  <bruno@clisp.org>
62344
62345         * modules/linkedhash-list-tests (Depends-on): Add progname.
62346         * tests/test-linkedhash_list.c: Include progname.h.
62347         (main): Call set_program_name.
62348
62349         * modules/carray-list-tests (Depends-on): Add progname.
62350         * tests/test-carray_list.c: Include progname.h.
62351         (main): Call set_program_name.
62352
62353         * modules/avltreehash-list-tests (Depends-on): Add progname.
62354         * tests/test-avltreehash_list.c: Include progname.h.
62355         (main): Call set_program_name.
62356
62357         * modules/avltree-oset-tests (Depends-on): Add progname.
62358         * tests/test-avltree_oset.c: Include progname.h.
62359         (main): Call set_program_name.
62360
62361         * modules/avltree-list-tests (Depends-on): Add progname.
62362         * tests/test-avltree_list.c: Include progname.h.
62363         (main): Call set_program_name.
62364
62365         * modules/array-oset-tests (Depends-on): Add progname.
62366         * tests/test-array_oset.c: Include progname.h.
62367         (main): Call set_program_name.
62368
62369         * modules/array-list-tests (Depends-on): Add progname.
62370         * tests/test-array_list.c: Include progname.h.
62371         (main): Call set_program_name.
62372
62373         * modules/argp-tests (Depends-on): Add progname.
62374         * tests/test-argp.c: Include argp.h first. Include progname.h.
62375         (main): Call set_program_name.
62376
62377 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
62378
62379         * doc/gnulib-tool.texi (Initial import): Reword description of
62380         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
62381         limited effect even if defined after the first system include.
62382
62383 2007-03-01  Bruno Haible  <bruno@clisp.org>
62384
62385         * build-aux/config.libpath: Update to libtool-1.5.22.
62386         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
62387
62388 2007-03-01  Bruno Haible  <bruno@clisp.org>
62389
62390         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
62391         foo_CFLAGS.
62392         Reported by Ralf Wildenhues.
62393
62394 2007-03-01  Bruno Haible  <bruno@clisp.org>
62395
62396         * build-aux/install-reloc: Remove object files left over by some
62397         compilers.
62398         Reported by Ralf Wildenhues.
62399
62400 2007-03-01  Bruno Haible  <bruno@clisp.org>
62401
62402         * build-aux/install-reloc: Break long lines.
62403
62404 2007-03-01  Bruno Haible  <bruno@clisp.org>
62405
62406         * doc/relocatable.texi: Document that it may not work on OpenBSD.
62407         Reported by Ralf Wildenhues.
62408
62409 2007-03-01  Bruno Haible  <bruno@clisp.org>
62410
62411         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
62412         include ordering constraints.
62413
62414 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
62415
62416         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
62417         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
62418         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
62419         as another example.
62420         * lib/time_.h: Fix misspelling.
62421         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
62422         Require gl_HEADER_TIME_H_DEFAULTS.
62423         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
62424         * m4/time_r.m4 (gl_TIME_R): Likewise.
62425         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
62426
62427 2007-03-01  Bruno Haible  <bruno@clisp.org>
62428
62429         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
62430         * m4/utimens.m4 (gl_UTIMENS): Likewise.
62431
62432 2007-03-01  Jim Meyering  <jim@meyering.net>
62433
62434         * modules/xreadlink (Maintainer): Add my name.
62435         * modules/xreadlink-with-size (Depends-on): Alphabetize.
62436
62437 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
62438             Bruno Haible  <bruno@clisp.org>
62439
62440         * build-aux/install-reloc: Compile also c-ctype.c.
62441         * build-aux/relocatable.sh.in: New file.
62442         * doc/relocatable.texi: New file.
62443         * doc/relocatable-maint.texi: New file.
62444         * doc/gnulib.texi: Include relocatable-maint.texi.
62445         * lib/progreloc.c: Include unistd.h unconditionally.
62446         * lib/relocwrapper.c: Include unistd.h unconditionally.
62447         Include c-ctype.h.
62448         (add_dotbin): Use c_tolower.
62449         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
62450         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
62451         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
62452         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
62453         to m4/relocatable-lib.m4.
62454         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
62455         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
62456         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
62457         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
62458         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
62459         * modules/relocatable: New file.
62460         * modules/relocatable-lib: New file.
62461         * modules/relocatable-script: New file.
62462
62463 2007-02-28  Bruno Haible  <bruno@clisp.org>
62464
62465         Import --enable-relocatable infrastructure.
62466         * build-aux/config.libpath: New file, from GNU gettext.
62467         * build-aux/install-reloc: New file, from GNU gettext.
62468         * build-aux/reloc-ldflags: New file, from GNU gettext.
62469         * lib/relocatable.h: New file, from GNU gettext.
62470         * lib/relocatable.c: New file, from GNU gettext.
62471         * lib/relocwrapper.c: New file, from GNU gettext.
62472         * m4/relocatable.m4: New file, from GNU gettext.
62473
62474 2007-02-28  Bruno Haible  <bruno@clisp.org>
62475
62476         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
62477
62478         * modules/xreadlink: New file, from GNU gettext with modifications.
62479         * lib/xreadlink.c: New file, from GNU gettext.
62480         * lib/xreadlink.h: Add comments.
62481         (xreadlink): New declaration.
62482
62483         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
62484         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
62485         lib/xreadlink-with-size.c.
62486         (configure.ac): Remove gl_XREADLINK invocation.
62487         (Makefile.am): Augment lib_SOURCES.
62488         * m4/xreadlink.m4: Remove file.
62489         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
62490         (xreadlink_with_size): Renamed from xreadink.
62491         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
62492         * modules/canonicalize (Depends-on): Replace xreadlink with
62493         xreadlink-with-size.
62494         * lib/canonicalize.c (canonicalize_filename_mode): Update.
62495
62496 2007-02-25  Jim Meyering  <jim@meyering.net>
62497
62498         * build-aux/announce-gen: When complaining about excess arguments,
62499         list them.
62500
62501 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
62502
62503         * README: Document signed integer overflow situation more
62504         accurately.
62505
62506 2007-02-25  Bruno Haible  <bruno@clisp.org>
62507
62508         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
62509         'a' or 'A' conversion.
62510
62511 2007-02-25  Bruno Haible  <bruno@clisp.org>
62512
62513         * modules/filename: Renamed from modules/pathname.
62514         (Files): Replace lib/pathname.h with lib/filename.h. Replace
62515         lib/concatpath.c with lib/concat-filename.c.
62516         (Makefile.am): Update.
62517         (Include): Replace pathname.h with filename.h.
62518         * lib/filename.h: Renamed from lib/pathname.h.
62519         (concatenated_filename): Renamed from concatenated_pathname.
62520         * lib/concat-filename.c: Renamed from lib/concatpath.c.
62521         (concatenated_filename): Renamed from concatenated_pathname.
62522         * lib/findprog.c: Include filename.h instead of pathname.h.
62523         (find_in_path): Update.
62524         * lib/javacomp.c: Include filename.h instead of pathname.h.
62525         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
62526         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
62527         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
62528         is_oldgcj_14_13_usable, is_javac_usable): Update.
62529         * lib/javaexec.c: Include filename.h instead of pathname.h.
62530         (execute_java_class): Update.
62531         * modules/findprog: Update.
62532         * modules/javacomp: Update.
62533         * modules/javaexec: Update.
62534         * MODULES.html.sh (File system functions): Add 'filename', remove
62535         'pathname'.
62536
62537 2007-02-25  Bruno Haible  <bruno@clisp.org>
62538
62539         * modules/printf-frexpl-tests: New file.
62540         * tests/test-printf-frexpl.c: New file.
62541
62542         * modules/printf-frexpl: New file.
62543         * lib/printf-frexpl.h: New file.
62544         * lib/printf-frexpl.c: New file.
62545         * m4/printf-frexpl.m4: New file.
62546
62547 2007-02-25  Bruno Haible  <bruno@clisp.org>
62548
62549         * modules/printf-frexp-tests: New file.
62550         * tests/test-printf-frexp.c: New file.
62551
62552         * modules/printf-frexp: New file.
62553         * lib/printf-frexp.h: New file.
62554         * lib/printf-frexp.c: New file.
62555         * m4/printf-frexp.m4: New file.
62556
62557 2007-02-25  Bruno Haible  <bruno@clisp.org>
62558
62559         Assume automake >= 1.10 for the tests.
62560         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
62561         * modules/arctwo-tests: Likewise.
62562         * modules/argp-tests: Likewise.
62563         * modules/avltree-list-tests: Likewise.
62564         * modules/avltree-oset-tests: Likewise.
62565         * modules/avltreehash-list-tests: Likewise.
62566         * modules/carray-list-tests: Likewise.
62567         * modules/crc-tests: Likewise.
62568         * modules/des-tests: Likewise.
62569         * modules/gc-arcfour-tests: Likewise.
62570         * modules/gc-arctwo-tests: Likewise.
62571         * modules/gc-des-tests: Likewise.
62572         * modules/gc-hmac-md5-tests: Likewise.
62573         * modules/gc-hmac-sha1-tests: Likewise.
62574         * modules/gc-md2-tests: Likewise.
62575         * modules/gc-md4-tests: Likewise.
62576         * modules/gc-md5-tests: Likewise.
62577         * modules/gc-pbkdf2-sha1-tests: Likewise.
62578         * modules/gc-rijndael-tests: Likewise.
62579         * modules/gc-sha1-tests: Likewise.
62580         * modules/gc-tests: Likewise.
62581         * modules/getaddrinfo-tests: Likewise.
62582         * modules/hmac-md5-tests: Likewise.
62583         * modules/hmac-sha1-tests: Likewise.
62584         * modules/linked-list-tests: Likewise.
62585         * modules/linkedhash-list-tests: Likewise.
62586         * modules/lock-tests: Likewise.
62587         * modules/md2-tests: Likewise.
62588         * modules/md4-tests: Likewise.
62589         * modules/md5-tests: Likewise.
62590         * modules/rbtree-list-tests: Likewise.
62591         * modules/rbtree-oset-tests: Likewise.
62592         * modules/rbtreehash-list-tests: Likewise.
62593         * modules/read-file-tests: Likewise.
62594         * modules/rijndael-tests: Likewise.
62595         * modules/stdint-tests: Likewise.
62596         * modules/tls-tests: Likewise.
62597
62598 2007-02-24  Bruno Haible  <bruno@clisp.org>
62599
62600         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
62601         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
62602         function; instead check whether isnan with a double argument links.
62603         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
62604         function; instead check whether isnan with a 'long double' argument
62605         links.
62606         Reported by Eric Blake <ebb9@byu.net>.
62607
62608 2007-02-24  Bruno Haible  <bruno@clisp.org>
62609
62610         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
62611         defined.
62612         * lib/isnanl.c: Remove all code. Just include isnan.c.
62613         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
62614
62615 2007-02-25  Jim Meyering  <jim@meyering.net>
62616
62617         Avoid conflicting types for 'unsetenv' on FreeBSD.
62618         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
62619         conflicting with FreeBSD's (5.0 and 6.1) function declaration
62620         in stdlib.h.
62621
62622 2007-02-24  Bruno Haible  <bruno@clisp.org>
62623
62624         * modules/isnanl-nolibm-tests: New file.
62625         * tests/test-isnanl.c: New file.
62626
62627         * modules/isnanl-nolibm: New file.
62628         * lib/isnanl.h: New file.
62629         * lib/isnanl.c: New file.
62630         * m4/isnanl.m4: New file.
62631
62632 2007-02-24  Bruno Haible  <bruno@clisp.org>
62633
62634         * modules/isnan-nolibm-tests: New file.
62635         * tests/test-isnan.c: New file.
62636
62637         * modules/isnan-nolibm: New file.
62638         * lib/isnan.h: New file.
62639         * lib/isnan.c: New file.
62640         * m4/isnan.m4: New file.
62641
62642 2007-02-24  Bruno Haible  <bruno@clisp.org>
62643
62644         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
62645         assume that an exponent fits in 20 bits.
62646
62647 2007-02-24  Jim Meyering  <jim@meyering.net>
62648
62649         * m4/regex.m4: Update the description of the configure-time option,
62650         --without-included-regex, to state accurately what the defaults are,
62651         and perhaps to give people an idea why using this option is risky.
62652
62653 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
62654
62655         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
62656         loops on small arguments.  This attempts to avoid the problem
62657         Bruno Haible reported for AIX 4.3.2 in
62658         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
62659
62660 2007-02-23  Bruno Haible  <bruno@clisp.org>
62661
62662         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
62663         Needed for help2man.
62664
62665 2007-02-23  Karl Berry  <karl@gnu.org>
62666
62667         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
62668         exists, foo.h should be cvs-ignored, not committed.
62669
62670 2007-02-23  Eric Blake  <ebb9@byu.net>
62671
62672         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
62673         * lib/stat-time.h (includes): Likewise.
62674         * lib/utimecmp.c (includes): Likewise.
62675         * lib/utimens.h (includes): Likewise.
62676         * lib/getdate.y (includes): Also include "timespec.h" for use
62677         internal to the module.
62678         * modules/utimens (Depends-on): Revert yesterday's patch.
62679         * modules/nanosleep (Depends-on): Add missing dependency.
62680
62681 2007-02-22  Bruno Haible  <bruno@clisp.org>
62682
62683         * lib/glob.c: Don't include getlogin_r.h.
62684
62685 2007-02-22  Jim Meyering  <jim@meyering.net>
62686
62687         * modules/utimens (Depends-on): Add timespec, required for
62688         utimens.h's inclusion of timespec.h.
62689
62690 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
62691
62692         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
62693         long unreadable paths in GNU/Linux.  Problem reported by Andreas
62694         Schwab in
62695         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
62696         I'll try to think of a better way to fix the Solaris problem.
62697
62698         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
62699         like glibc; on Solaris 10, it fails with errno == EINVAL.
62700         POSIX says the behavior is unspecified if the first argument is NULL,
62701         so play it safe and never pass NULL to the system getcwd.
62702
62703 2007-02-21  Jim Meyering  <jim@meyering.net>
62704
62705         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
62706         of gettimeofday.  It would conflict with the one now always
62707         provided via sys_time_.h.  Reported by Matthew Woehlke, as
62708         an IRIX 6.5 build failure.
62709
62710 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
62711
62712         Minor fixups to port to Solaris 10 with Sun C 5.8.
62713         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
62714         * modules/getcwd (Depends-on): Add dirfd.
62715         * lib/putenv.c (putenv): #undef it.
62716         (rpl_putenv): New decl.
62717         (malloc, free): Include <stdlib.h> rather than prototyping separately.
62718
62719 2007-02-20  Bruno Haible  <bruno@clisp.org>
62720
62721         * modules/stdio-tests: New file.
62722         * tests/test-stdio.c: New file.
62723
62724         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
62725         (Depends-on): Add stdio.
62726         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
62727         (Include): Use <stdio.h> instead of vsnprintf.h.
62728         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
62729         HAVE_DECL_VSNPRINTF.
62730         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
62731
62732         * modules/snprintf (Files): Remove lib/snprintf.h.
62733         (Depends-on): Add stdio.
62734         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
62735         (Include): Use <stdio.h> instead of snprintf.h.
62736         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
62737         HAVE_DECL_SNPRINTF.
62738         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
62739         * lib/getaddrinfo.c: Likewise.
62740
62741         * modules/stdio: New file.
62742         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
62743         * lib/snprintf.h: Remove file.
62744         * lib/vsnprintf.h: Remove file.
62745         * lib/.cppi-disable: Remove snprintf.h.
62746         * m4/stdio_h.m4: New file.
62747         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
62748
62749 2007-02-20  Jim Meyering  <jim@meyering.net>
62750
62751         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
62752         used by e.g., mingw.  From Bruno Haible.
62753
62754 2007-02-19  Bruno Haible  <bruno@clisp.org>
62755
62756         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
62757         warnings.
62758         Reported by Ben Pfaff <blp@cs.stanford.edu>.
62759
62760 2007-02-19  Bruno Haible  <bruno@clisp.org>
62761
62762         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
62763         from mingw users.
62764
62765 2007-02-19  Bruno Haible  <bruno@clisp.org>
62766
62767         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
62768         warnings.
62769         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
62770
62771 2007-02-19  Jim Meyering  <jim@meyering.net>
62772
62773         Don't use FD after a successful "fdopendir (fd)".
62774         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
62775         Reset it by calling dirfd on the just-obtained DIR*.
62776
62777         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
62778         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
62779
62780 2007-02-18  Bruno Haible  <bruno@clisp.org>
62781
62782         * lib/readlink.c: Include <unistd.h>.
62783         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
62784         HAVE_READLINK.
62785         * modules/readlink (Depends-on): Add unistd.
62786         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62787         (Include): Add <unistd.h>.
62788
62789         * lib/getlogin_r.h: Remove file.
62790         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
62791         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
62792         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
62793         HAVE_DECL_GETLOGIN_R.
62794         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
62795         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62796         (Include): Use <unistd.h> instead of getlogin_r.h.
62797
62798         * lib/getcwd.h: Remove file.
62799         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
62800         * lib/xgetcwd.c: Likewise.
62801         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
62802         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
62803         * modules/getcwd (Files): Remove lib/getcwd.h.
62804         (Depends-on): Add unistd.
62805         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62806         (Include): Use <unistd.h> instad of getcwd.h.
62807
62808         * lib/ftruncate.c: Include <unistd.h> first.
62809         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
62810         Set HAVE_FTRUNCATE.
62811         * modules/ftruncate (Depends-on): Add unistd.
62812         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62813
62814         * lib/fchdir.c: Include <unistd.h> first.
62815         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
62816         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
62817         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
62818         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62819         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
62820
62821         * lib/dup2.c: Include <unistd.h> first.
62822         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
62823         HAVE_DUP2.
62824         * modules/dup2 (Depends-on): Add unistd.
62825         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62826
62827         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
62828         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
62829         REPLACE_CHOWN. Don't define chown as a macro here.
62830         * modules/chown (Depends-on): Add unistd.
62831         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62832
62833         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
62834         Add definition for GL_LINK_WARNING.
62835         (chown, dup2): New declarations.
62836         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
62837         link warning.
62838         (ftruncate): New declaration.
62839         (getcwd): New declaration, taken from old getcwd.h.
62840         (getlogin_r): New declaration, taken from old getlogin_r.h.
62841         (readlink): New declaration.
62842         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
62843         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
62844         (gl_PREREQ_UNISTD): Remove macro.
62845         (gl_UNISTD_MODULE_INDICATOR): New macro.
62846         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
62847         many new variables. Don't set UNISTD_H.
62848         * modules/unistd (Description): Change.
62849         (Depends-on): Add link-warning.
62850         (configure.ac): Update.
62851         (Makefile.am): Create unistd.h always. Substitute many new variables
62852         into it.
62853
62854 2007-02-18  Bruno Haible  <bruno@clisp.org>
62855
62856         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
62857         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
62858         HAVE_GETSUBOPT.
62859         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
62860         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
62861         * lib/getsubopt.h: Remove file.
62862         * modules/getsubopt (Files): Remove lib/getsubopt.h.
62863         (Depends-on): Add stdlib.
62864         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
62865         (Includes): Use <stdlib.h> instead of getsubopt.h.
62866         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
62867         Set HAVE_GETSUBOPT.
62868         * lib/getsubopt.c: Don't include getsubopt.h.
62869
62870 2007-02-18  Bruno Haible  <bruno@clisp.org>
62871
62872         * modules/fchdir (Depends-on): Add dup2.
62873
62874 2007-02-18  Bruno Haible  <bruno@clisp.org>
62875
62876         * lib/stdlib_.h: Handle glibc's special invocation convention
62877         specially.
62878
62879 2007-02-18  Bruno Haible  <bruno@clisp.org>
62880
62881         * modules/stdlib-tests: New file.
62882         * tests/test-stdlib.c: New file.
62883
62884         * modules/mkstemp (Files): Remove lib/mkstemp.h.
62885         (Depends-on): Add stdlib.
62886         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
62887         (Includes): Use <stdlib.h> instead of mkstemp.h.
62888         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
62889         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
62890         * lib/mkstemp.c: Don't include mkstemp.h.
62891         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
62892         * lib/stdlib--.h: Don't include mkstemp.h.
62893
62894         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
62895         (Depends-on): Add stdlib.
62896         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
62897         (Includes): Use <stdlib.h> instead of mkdtemp.h.
62898         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
62899         HAVE_MKDTEMP.
62900         * lib/mkdtemp.c: Don't include mkdtemp.h.
62901         * lib/clean-temp.c: Don't include mkdtemp.h.
62902
62903         * modules/exit (Files): Remove lib/exit.h.
62904         (Depends-on): Add stdlib.
62905         (Makefile.am): Remove lib_SOURCES.
62906         (Include): Use <stdlib.h> instead of exit.h.
62907         * lib/argmatch.c: Don't include exit.h.
62908         * lib/execute.c: Likewise.
62909         * lib/pagealign_alloc.c: Likewise.
62910         * lib/pipe.c: Likewise.
62911         * lib/wait-process.c: Likewise.
62912         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
62913         * lib/exitfail.c: Likewise.
62914         * lib/savewd.c: Likewise.
62915         * lib/xsetenv.c: Likewise.
62916
62917         * modules/stdlib: New file.
62918         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
62919         and extra comments about mkstemp().
62920         * lib/exit.h: Remove file.
62921         * lib/mkdtemp.h: Remove file.
62922         * lib/mkstemp.h: Remove file.
62923         * m4/stdlib_h.m4: New file.
62924         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
62925
62926 2007-02-18  Bruno Haible  <bruno@clisp.org>
62927
62928         * modules/math-tests: New file.
62929         * tests/test-math.c: New file.
62930
62931         * modules/math: New file.
62932         * modules/mathl (Files): Remove lib/mathl.h.
62933         (Depends-on): Add math.
62934         (Makefile.am): Don't mention mathl.h.
62935         (Include): Use <math.h> instead of mathl.h.
62936         * lib/math_.h: New file.
62937         * lib/mathl.h: Remove file.
62938         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
62939         mathl.h.
62940         * lib/asinl.c: Likewise.
62941         * lib/atanl.c: Likewise.
62942         * lib/ceill.c: Likewise.
62943         * lib/cosl.c: Likewise.
62944         * lib/expl.c: Likewise.
62945         * lib/floorl.c: Likewise.
62946         * lib/frexpl.c: Likewise.
62947         * lib/ldexpl.c: Likewise.
62948         * lib/logl.c: Likewise.
62949         * lib/sincosl.c: Likewise.
62950         * lib/sinl.c: Likewise.
62951         * lib/sqrtl.c: Likewise.
62952         * lib/tanl.c: Likewise.
62953         * lib/trigl.c: Likewise.
62954         * m4/math_h.m4: New file.
62955         * MODULES.html.sh (Mathematics): Add math.
62956
62957 2007-02-17  Bruno Haible  <bruno@clisp.org>
62958
62959         * modules/wctype-tests: New file.
62960         * tests/test-wctype.c: New file.
62961
62962         * modules/wchar-tests: New file.
62963         * tests/test-wchar.c: New file.
62964
62965         * modules/unistd-tests: New file.
62966         * tests/test-unistd.c: New file.
62967
62968         * modules/time-tests: New file.
62969         * tests/test-time.c: New file.
62970
62971         * modules/sysexits-tests: New file.
62972         * tests/test-sysexits.c: New file.
62973
62974         * modules/sys_time-tests: New file.
62975         * tests/test-sys_time.c: New file.
62976
62977         * modules/sys_stat-tests: New file.
62978         * tests/test-sys_stat.c: New file.
62979
62980         * modules/sys_socket-tests: New file.
62981         * tests/test-sys_socket.c: New file.
62982
62983         * modules/sys_select-tests: New file.
62984         * tests/test-sys_select.c: New file.
62985
62986         * modules/string-tests: New file.
62987         * tests/test-string.c: New file.
62988
62989         * modules/stdbool-tests: New file.
62990         * tests/test-stdbool.c: New file.
62991
62992         * modules/netinet_in-tests: New file.
62993         * tests/test-netinet_in.c: New file.
62994
62995         * modules/inttypes-tests: New file.
62996         * tests/test-inttypes.c: New file.
62997
62998         * modules/fcntl-tests: New file.
62999         * tests/test-fcntl.c: New file.
63000
63001         * modules/byteswap-tests: New file.
63002         * tests/test-byteswap.c: New file.
63003
63004         * modules/arpa_inet-tests: New file.
63005         * tests/test-arpa_inet.c: New file.
63006
63007 2007-02-17  Bruno Haible  <bruno@clisp.org>
63008
63009         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
63010         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
63011         if the corresponding module is not enabled. Emit link warnings if
63012         the function is used nevertheless.
63013         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
63014         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
63015         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
63016         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
63017         * modules/inttypes (Depends-on): Add link-warning.
63018         (Makefile.am): Copy the contents of build-aux/link-warning.h into
63019         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
63020         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
63021         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
63022         * modules/imaxdiv (configure.ac): Likewise.
63023         * modules/strtoimax (configure.ac): Likewise.
63024         * modules/strtoumax (configure.ac): Likewise.
63025
63026 2007-02-17  Bruno Haible  <bruno@clisp.org>
63027
63028         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
63029         gl_STRING_MODULE_INDICATOR_DEFAULTS.
63030         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
63031         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
63032
63033 2007-02-17  Bruno Haible  <bruno@clisp.org>
63034
63035         * modules/link-warning: New file.
63036         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
63037         * lib/string_.h (GL_LINK_WARNING): Remove definition.
63038         * modules/string (Depends-on): Add link-warning.
63039         (Makefile.am): Copy the contents of build-aux/link-warning.h into
63040         string.h.
63041         * MODULES.html.sh (Support for building libraries and executables): Add
63042         link-warning.
63043
63044 2007-02-17  Bruno Haible  <bruno@clisp.org>
63045
63046         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
63047         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
63048         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
63049         long lines.
63050
63051 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
63052             Bruno Haible  <bruno@clisp.org>
63053
63054         * modules/tmpfile: New file.
63055         * lib/tmpfile.c: New file.
63056         * m4/tmpfile.m4: New file.
63057         * MODULES.html.sh (func_all_modules): New section "Input/output".
63058
63059 2007-02-15  Bruno Haible  <bruno@clisp.org>
63060
63061         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
63062         (supports_delete_on_close): New function.
63063         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
63064
63065 2007-02-14  Bruno Haible  <bruno@clisp.org>
63066
63067         * modules/mbspcasecmp-tests: New file.
63068         * tests/test-mbspcasecmp.sh: New file.
63069         * tests/test-mbspcasecmp.c: New file.
63070
63071         New module mbspcasecmp.
63072         * modules/mbspcasecmp: New file.
63073         * lib/mbspcasecmp.c: New file.
63074         * lib/string_.h (strncasecmp): Change warning message.
63075         (mbspcasecmp): New declaration.
63076         * m4/mbspcasecmp.m4: New file.
63077         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63078         GNULIB_MBSPCASECMP.
63079         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
63080         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
63081
63082 2007-02-14  Bruno Haible  <bruno@clisp.org>
63083
63084         * modules/mbsncasecmp-tests: New file.
63085         * tests/test-mbsncasecmp.sh: New file.
63086         * tests/test-mbsncasecmp.c: New file.
63087
63088         New module mbsncasecmp.
63089         * modules/mbsncasecmp: New file.
63090         * lib/mbsncasecmp.c: New file.
63091         * lib/string_.h (mbsncasecmp): New declaration.
63092         * m4/mbsncasecmp.m4: New file.
63093         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63094         GNULIB_MBSNCASECMP.
63095         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
63096         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
63097
63098 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
63099
63100         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
63101         Verify that it doesn't overlap with our flags.
63102         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
63103         do not have the desired effect in multibyte locales; instead, use
63104         mbscasecmp.
63105         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
63106         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
63107         we don't require GNU fnmatch ourselves (if our users require it, they
63108         should do so explicitly).
63109
63110         Fix regex code so it doesn't rely on strcasecmp.
63111         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
63112         Otherwise, include gnulib's langinfo.h.
63113         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
63114         undesirable behavior in non-C locales.  Instead, rely on localecharset.
63115         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
63116         * modules/regex (FILES): Remove m4/codeset.m4.
63117         (Depends-on): Add localcharset.  Remove strcase.
63118
63119 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63120
63121         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
63122         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
63123
63124 2007-02-13  Bruno Haible  <bruno@clisp.org>
63125
63126         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
63127         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63128
63129 2007-02-12  Bruno Haible  <bruno@clisp.org>
63130
63131         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
63132         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
63133         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
63134         time warning rather than a link error.
63135
63136 2007-02-12  Bruno Haible  <bruno@clisp.org>
63137
63138         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
63139         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
63140         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63141
63142 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
63143
63144         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
63145         args, not 2.
63146
63147 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
63148
63149         New module 'time', so that apps can include <time.h> as per
63150         POSIX and GNU instead of separate include files like time_r.h
63151         and timegm.h.  This implementation tries out a simpler approach
63152         for replacing decls in standard include files (as compared to
63153         the string module), somewhat as an experiment.
63154
63155         * config/srclist.txt: Comment out mktime.c for now.
63156         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
63157         since it doesn't apply any more.  Use generic wording instead.
63158         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
63159         'time'.
63160         * lib/time_.h, m4/time_h.m4, modules/time: New files.
63161         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
63162         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
63163         Don't include <sys/types.h>; no longer needed since we assume C89.
63164         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
63165         * lib/strftime.c: Likewise.
63166         * lib/time_r.c: Likewise.
63167         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
63168         * lib/nanosleep.c: Include <time.h> first, to check interface.
63169         * lib/strptime.c: Likewise.
63170         * lib/time_r.c: Likewise.
63171         * lib/timegm.c: Likewise.
63172         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
63173         needed.
63174         * lib/timegm.c: Don't include timegm.h; no longer needed.
63175         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
63176         time.h now handles any problems in that area.
63177         (struct timespec, nanosleep): Remove; time.h now arranges for these.
63178         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
63179         that time.h defines struct timespec.
63180         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
63181         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
63182         handles that.
63183         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
63184         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
63185         needed.  Set REPLACE_LOCALTIME.
63186         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
63187         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
63188         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
63189         nanosleep; time_h.m4 now does that.  Don't require
63190         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
63191         module handles this now.
63192         * modules/getdate (Depends-on): Remove timespec.  Add time.
63193         * modules/nanosleep (Depends-on): Likewise.
63194         * modules/stat-time (Depends-on): Likewise.
63195         * modules/nanosleep (Include): Include time.h, not timespec.h.
63196         * modules/strptime (Files): Remove lib/strptime.h.
63197         (Depends-on): Add extensions, time.
63198         (Include): Include time.h, not strptime.h.
63199         * modules/time_r (Files): Remove lib/time_r.h.
63200         (Depends-on): Add time.
63201         (Include): Include time.h, not time_r.h.
63202         * modules/timegm: Likewise.
63203         * modules/timespec (Description): Now does timespec-related decls
63204         of our own, instead of struct timespec itself.
63205         (Depends-on): Add time; remove extensions.
63206         (Maintainer): Add self.
63207         * modules/utimecmp (Depends-on): Add time; remove timespec.
63208         * modules/utimens (Depends-on): Likewise.
63209         * modules/xnanosleep (Depends-on): Likewise.
63210
63211 2007-02-11  Bruno Haible  <bruno@clisp.org>
63212
63213         * lib/c-strstr.c: Include allocsa.h.
63214         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
63215         * lib/c-strcasestr.c: Include allocsa.h.
63216         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
63217         * lib/strcasestr.c: Include allocsa.h.
63218         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
63219         * lib/mbsstr.c: Include allocsa.h.
63220         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
63221         allocsa/freesa instead of malloc/free.
63222         * lib/mbscasestr.c: Include allocsa.h.
63223         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
63224         allocsa/freesa instead of malloc/free.
63225         * modules/c-strstr (Depends-on): Add allocsa.
63226         * modules/c-strcasestr (Depends-on): Likewise.
63227         * modules/strcasestr (Depends-on): Likewise.
63228         * modules/mbsstr (Depends-on): Likewise.
63229         * modules/mbscasestr (Depends-on): Likewise.
63230
63231 2007-02-11  Bruno Haible  <bruno@clisp.org>
63232
63233         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
63234
63235         * modules/mbsspn-tests: New file.
63236         * tests/test-mbsspn.sh: New file.
63237         * tests/test-mbsspn.c: New file.
63238
63239 2007-02-11  Bruno Haible  <bruno@clisp.org>
63240
63241         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
63242
63243         * modules/mbspbrk-tests: New file.
63244         * tests/test-mbspbrk.sh: New file.
63245         * tests/test-mbspbrk.c: New file.
63246
63247 2007-02-11  Bruno Haible  <bruno@clisp.org>
63248
63249         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
63250         unneeded cast.
63251
63252         * modules/mbscspn-tests: New file.
63253         * tests/test-mbscspn.sh: New file.
63254         * tests/test-mbscspn.c: New file.
63255
63256 2007-02-11  Bruno Haible  <bruno@clisp.org>
63257
63258         * modules/mbscasecmp-tests: New file.
63259         * tests/test-mbscasecmp.sh: New file.
63260         * tests/test-mbscasecmp.c: New file.
63261
63262 2007-02-11  Bruno Haible  <bruno@clisp.org>
63263
63264         Ensure O(n) worst-case complexity of mbscasestr.
63265         * lib/mbscasestr.c: Include stdbool.h.
63266         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
63267         functions.
63268         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
63269         the bookkeeping indicates that it's worth it.
63270         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
63271
63272         * modules/mbscasestr-tests: New file.
63273         * tests/test-mbscasestr1.c: New file.
63274         * tests/test-mbscasestr2.sh: New file.
63275         * tests/test-mbscasestr2.c: New file.
63276         * tests/test-mbscasestr3.sh: New file.
63277         * tests/test-mbscasestr3.c: New file.
63278         * tests/test-mbscasestr4.sh: New file.
63279         * tests/test-mbscasestr4.c: New file.
63280         * m4/locale-tr.m4: New file.
63281
63282 2007-02-11  Bruno Haible  <bruno@clisp.org>
63283
63284         Ensure O(n) worst-case complexity of mbsstr.
63285         * lib/mbsstr.c: Include stdbool.h.
63286         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
63287         functions.
63288         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
63289         bookkeeping indicates that it's worth it.
63290         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
63291
63292         * modules/mbsstr-tests: New file.
63293         * tests/test-mbsstr1.c: New file.
63294         * tests/test-mbsstr2.sh: New file.
63295         * tests/test-mbsstr2.c: New file.
63296         * tests/test-mbsstr3.sh: New file.
63297         * tests/test-mbsstr3.c: New file.
63298         * m4/locale-fr.m4: New file.
63299
63300 2007-02-11  Bruno Haible  <bruno@clisp.org>
63301
63302         * lib/mbsrchr.c (mbsrchr): Fix bug.
63303
63304         * modules/mbsrchr-tests: New file.
63305         * tests/test-mbsrchr.sh: New file.
63306         * tests/test-mbsrchr.c: New file.
63307
63308 2007-02-11  Bruno Haible  <bruno@clisp.org>
63309
63310         * lib/mbschr.c (mbschr): Fix bug.
63311
63312         * modules/mbschr-tests: New file.
63313         * tests/test-mbschr.sh: New file.
63314         * tests/test-mbschr.c: New file.
63315         * m4/locale-zh.m4: New file.
63316
63317 2007-02-11  Bruno Haible  <bruno@clisp.org>
63318
63319         Support for copying multibyte string iterators.
63320         * lib/mbiter.h: Include <string.h>.
63321         (mbiter_multi_copy): New function.
63322         (mbi_copy): New macro.
63323         * lib/mbuiter.h: Include <string.h>.
63324         (mbuiter_multi_copy): New function.
63325         (mbui_copy): New macro.
63326
63327 2007-02-11  Bruno Haible  <bruno@clisp.org>
63328
63329         New module mbslen.
63330         * modules/mbslen: New file.
63331         * lib/mbslen.c: New file.
63332         * lib/string_.h (mbslen): New declaration.
63333         * m4/mbslen.m4: New file.
63334         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63335         GNULIB_MBSLEN.
63336         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
63337         * MODULES.html.sh (Internationalization functions): Add mbslen.
63338
63339 2007-02-11  Bruno Haible  <bruno@clisp.org>
63340
63341         Ensure O(n) worst-case complexity of strcasestr substitute.
63342         * lib/strcasestr.c: Include stdbool.h.
63343         (knuth_morris_pratt): New function.
63344         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
63345         bookkeeping indicates that it's worth it.
63346         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
63347
63348         * modules/strcasestr-tests: New file.
63349         * tests/test-strcasestr.c: New file.
63350
63351 2007-02-11  Bruno Haible  <bruno@clisp.org>
63352
63353         Ensure O(n) worst-case complexity of c_strcasestr.
63354         * lib/c-strcasestr.c: Include stdbool.h, string.h.
63355         (knuth_morris_pratt): New function.
63356         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
63357         the bookkeeping indicates that it's worth it.
63358         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
63359
63360         * modules/c-strcasestr-tests: New file.
63361         * tests/test-c-strcasestr.c: New file.
63362
63363 2007-02-11  Bruno Haible  <bruno@clisp.org>
63364
63365         Ensure O(n) worst-case complexity of c_strstr.
63366         * lib/c-strstr.c: Include stdbool.h, string.h.
63367         (knuth_morris_pratt): New function.
63368         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
63369         bookkeeping indicates that it's worth it.
63370         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
63371
63372         * lib/c-strstr.c: Complete rewrite for maintainability.
63373
63374         * modules/c-strstr-tests: New file.
63375         * tests/test-c-strstr.c: New file.
63376
63377 2007-02-11  Bruno Haible  <bruno@clisp.org>
63378
63379         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
63380         5.2.1 and earlier, whereby \055 was treated just like the range
63381         delimiter '-'.
63382         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
63383
63384 2007-02-08  Bruno Haible  <bruno@clisp.org>
63385
63386         * modules/regex (Depends-on): Add stdbool.
63387         Reported by Dalibor Topic <robilad@kaffe.org>.
63388
63389 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
63390
63391         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
63392         Prefer returning from main to exiting from it.
63393         Remove unnecessary parens after sizeof.
63394
63395 2007-02-05  Bruno Haible  <bruno@clisp.org>
63396
63397         New module mbssep.
63398         * modules/mbssep: New file.
63399         * lib/mbssep.c: New file.
63400         * lib/string_.h (strsep): Add a conditional link warning.
63401         (mbssep): New declaration.
63402         * m4/mbssep.m4: New file.
63403         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63404         GNULIB_MBSSEP.
63405         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
63406         * MODULES.html.sh (Internationalization functions): Add mbssep.
63407
63408 2007-02-05  Bruno Haible  <bruno@clisp.org>
63409
63410         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
63411         Optimize search in case of 1 delimiter.
63412
63413 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
63414
63415         * lib/acl.h: Include sys/types.h before sys/acl.h.
63416
63417 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
63418
63419         Merge upstream fix for glibc bugzilla #3957:
63420
63421         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
63422
63423         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
63424         bit for RE_HAT_LISTS_NOT_NEWLINE.
63425         (build_charclass_op): Remove bogus comment.
63426
63427 2007-02-05  Simon Josefsson  <simon@josefsson.org>
63428
63429         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
63430
63431 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
63432
63433         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
63434         * lib/memmem.c [!defined _LIBC]: Include config.h.
63435
63436 2007-02-04  Bruno Haible  <bruno@clisp.org>
63437
63438         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
63439         warning message.
63440
63441 2007-02-04  Bruno Haible  <bruno@clisp.org>
63442
63443         New module mbstok_r.
63444         * modules/mbstok_r: New file.
63445         * lib/mbstok_r.c: New file.
63446         * lib/string_.h (strtok_r): Change argument names to match the
63447         comments. Add a conditional link warning.
63448         (mbstok_r): New declaration.
63449         * m4/mbstok_r.m4: New file.
63450         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63451         GNULIB_MBSTOK_R.
63452         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
63453         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
63454
63455 2007-02-04  Bruno Haible  <bruno@clisp.org>
63456
63457         New module mbsspn.
63458         * modules/mbsspn: New file.
63459         * lib/mbsspn.c: New file.
63460         * lib/string_.h (strspn): Add a conditional link warning.
63461         (mbsspn): New declaration.
63462         * m4/mbsspn.m4: New file.
63463         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63464         GNULIB_MBSSPN.
63465         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
63466         * MODULES.html.sh (Internationalization functions): Add mbsspn.
63467
63468 2007-02-04  Bruno Haible  <bruno@clisp.org>
63469
63470         New module mbspbrk.
63471         * modules/mbspbrk: New file.
63472         * lib/mbspbrk.c: New file.
63473         * lib/string_.h (strpbrk): Add a conditional link warning.
63474         (mbspbrk): New declaration.
63475         * m4/mbspbrk.m4: New file.
63476         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63477         GNULIB_MBSPBRK.
63478         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
63479         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
63480
63481 2007-02-04  Bruno Haible  <bruno@clisp.org>
63482
63483         New module mbscspn.
63484         * modules/mbscspn: New file.
63485         * lib/mbscspn.c: New file.
63486         * lib/string_.h (strcspn): Add a conditional link warning.
63487         (mbscspn): New declaration.
63488         * m4/mbscspn.m4: New file.
63489         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63490         GNULIB_MBSCSPN.
63491         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
63492         * MODULES.html.sh (Internationalization functions): Add mbscspn.
63493
63494 2007-02-04  Bruno Haible  <bruno@clisp.org>
63495
63496         New module mbscasestr, reduced goal of strcasestr.
63497         * modules/mbscasestr: New file.
63498         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
63499         (mbscasestr): Renamed from strcasestr.
63500         * lib/strcasestr.c: Don't include mbuiter.h.
63501         (strcasestr): Remove support for multibyte locales.
63502         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
63503         Change the conditional link warning.
63504         (mbscasestr): New declaration.
63505         * m4/mbscasestr.m4: New file.
63506         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
63507         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
63508         REPLACE_STRCASESTR.
63509         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
63510         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
63511         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
63512         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
63513         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
63514         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
63515         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
63516         (Depends-on): Remove mbuiter.
63517         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
63518
63519 2007-02-04  Bruno Haible  <bruno@clisp.org>
63520
63521         Simplify handling of strncasecmp.
63522         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
63523         the conditional link warning.
63524         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
63525         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
63526         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
63527         * modules/strcase (configure.ac): Don't invoke
63528         gl_STRING_MODULE_INDICATOR.
63529         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
63530
63531 2007-02-04  Bruno Haible  <bruno@clisp.org>
63532
63533         New module mbscasecmp, reduced goal of strcasecmp.
63534         * modules/mbscasecmp: New file.
63535         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
63536         (mbscasecmp): Renamed from strcasecmp.
63537         * lib/strcasecmp.c: Don't include mbuiter.h.
63538         (strcasecmp): Remove support for multibyte locales.
63539         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
63540         Change the conditional link warning.
63541         (mbscasecmp): New declaration.
63542         * m4/mbscasecmp.m4: New file.
63543         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
63544         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
63545         REPLACE_STRCASECMP.
63546         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
63547         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63548         GNULIB_MBSCASECMP.
63549         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
63550         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
63551         * modules/strcase (Files): Remove m4/mbrtowc.m4.
63552         (Depends-on): Remove mbuiter.
63553         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
63554
63555 2007-02-04  Bruno Haible  <bruno@clisp.org>
63556
63557         New module mbsstr. Remove module strstr.
63558         * modules/mbsstr: New file.
63559         * modules/strstr: Remove file.
63560         * lib/mbsstr.c: Renamed from lib/strstr.c.
63561         (mbsstr): Renamed from strstr.
63562         * lib/string_.h (strstr): Remove declaration. Change the conditional
63563         link warning.
63564         (mbsstr): New declaration.
63565         * m4/mbsstr.m4: New file.
63566         * m4/strstr.m4: Remove file.
63567         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
63568         REPLACE_STRSTR.
63569         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
63570         Don't initialize GNULIB_STRSTR.
63571         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
63572         substitute GNULIB_STRSTR and REPLACE_STRSTR.
63573         * MODULES.html.sh (Internationalization functions): Add mbsstr.
63574         (Support for systems lacking ANSI C 89): Remove strstr.
63575
63576 2007-02-04  Bruno Haible  <bruno@clisp.org>
63577
63578         New module mbsrchr.
63579         * modules/mbsrchr: New file.
63580         * lib/mbsrchr.c: New file.
63581         * lib/string_.h (strrchr): Add a conditional link warning.
63582         (mbsrchr): New declaration.
63583         * m4/mbsrchr.m4: New file.
63584         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63585         GNULIB_MBSRCHR.
63586         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
63587         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
63588
63589 2007-02-04  Bruno Haible  <bruno@clisp.org>
63590
63591         New module mbschr.
63592         * modules/mbschr: New file.
63593         * lib/mbschr.c: New file.
63594         * lib/string_.h (strchr): Add a conditional link warning.
63595         (mbschr): New declaration.
63596         * m4/mbschr.m4: New file.
63597         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63598         GNULIB_MBSCHR.
63599         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
63600         * MODULES.html.sh (Internationalization functions): Add mbschr.
63601
63602 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
63603
63604         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
63605
63606         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
63607
63608 2007-02-04  Bruno Haible  <bruno@clisp.org>
63609
63610         New module description section 'configure.ac-early'.
63611         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
63612         (func_get_autoconf_early_snippet): New function.
63613         (func_import, func_create_testdir): Use it. Remove special cases for
63614         modules 'extensions' and 'lock'.
63615         * modules/extensions (configure.ac-early): Require
63616         gl_USE_SYSTEM_EXTENSIONS.
63617         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
63618
63619 2007-02-04  Bruno Haible  <bruno@clisp.org>
63620
63621         Make use of gcj-4.3's -fsource and -ftarget option.
63622         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
63623         and if so try the options -fsource and -ftarget.
63624         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
63625         source_version, ftarget_option, target_version arguments.
63626         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
63627         (is_envjavac_oldgcj_14_14_usable): Renamed from
63628         is_envjavac_gcj_14_14_usable.
63629         (is_envjavac_oldgcj_14_13_usable): Renamed from
63630         is_envjavac_gcj_14_13_usable.
63631         (is_gcj_present): Update.
63632         (is_gcj_43, is_gcj43_usable): New functions.
63633         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
63634         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
63635         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
63636         try the options -fsource and -ftarget.
63637
63638 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
63639
63640         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
63641         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
63642         larger value.
63643
63644 2007-02-03  Jim Meyering  <jim@meyering.net>
63645
63646         Give tools a better chance to allocate space for very large buffers.
63647         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
63648
63649         Make pwd and readlink work also when run with an unreadable parent dir
63650         on systems with openat support.
63651         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
63652         provided getcwd function, even when we have openat support.
63653         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
63654
63655 2007-02-02  Bruno Haible  <bruno@clisp.org>
63656
63657         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
63658         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
63659         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
63660         portability problems if one of these functions is only used on specific
63661         platforms.
63662         Reported by Paul Eggert.
63663
63664 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
63665
63666         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
63667         is causing more trouble than it's curing.
63668         * lib/regex_internal.h (__mempcpy): Remove.
63669         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
63670         (and make the code a tad smaller to boot).
63671         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
63672
63673 2007-02-02  Jim Meyering  <jim@meyering.net>
63674
63675         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
63676         section, not in the Makefile.am: one.
63677
63678 2007-02-02  Eric Blake  <ebb9@byu.net>
63679
63680         * lib/strchrnul.c: Always include config.h first.
63681
63682         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
63683         gnulib strstr is not necessary here.
63684
63685 2007-02-02  Simon Josefsson  <simon@josefsson.org>
63686
63687         * m4/socklen.m4: Fix typo.
63688
63689 2007-02-02  Eric Blake  <ebb9@byu.net>
63690
63691         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
63692         * modules/netinet_in (Makefile.am): Likewise.
63693
63694 2007-02-01  Bruno Haible  <bruno@clisp.org>
63695
63696         * lib/string_.h (GL_LINK_WARNING): New macro.
63697         (strcasecmp, strstr, strcasestr): If provided by the system,
63698         conditionally define as a macro that leads to a warning instead of to
63699         an error.
63700         (strncasecmp): Conditionally define as a macro that leads to a warning.
63701
63702 2007-02-01  Karl Berry  <karl@gnu.org>
63703
63704         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
63705
63706 2007-02-01  Bruno Haible  <bruno@clisp.org>
63707
63708         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
63709         renamings.
63710
63711 2007-02-01  Eric Blake  <ebb9@byu.net>
63712
63713         * modules/regex (Depends-on): Revert dependence on mempcpy.
63714         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
63715         module's definition of mempcpy.
63716         Reported by Paul Eggert.
63717
63718 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
63719
63720         * lib/string_.h: If the gnulib module XYZ is not present, undefine
63721         the symbol XYZ before redefining it.  This fixes a problem with
63722         programs that don't use XYZ, when compiled on systems that define
63723         XYZ to something else.
63724
63725 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
63726
63727         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
63728         occurs when "mkdir -m foo" creates a setgid directory that is (1)
63729         writeable to group or other and (2) is intended to have a special
63730         mode bit that is set or cleared.  In such a case, the directory
63731         should be neither group- nor other-writeable until the special
63732         mode bits are right.
63733
63734 2007-01-31  Eric Blake  <ebb9@byu.net>
63735
63736         * modules/mountlist (Depends-on): Add strstr.
63737
63738         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
63739         bug.
63740         * modules/string (Makefile.am): Remove redundant replacement.
63741         * modules/regex (Depends-on): Add mempcpy.
63742
63743 2007-01-31  Bruno Haible  <bruno@clisp.org>
63744
63745         New module description field 'Link'.
63746         * gnulib-tool (func_usage): Document --extract-link-directive.
63747         (sed_extract_prog): Recognize 'Link' directive.
63748         (func_get_link_directive): New function.
63749         (func_import): Show summary of link directives.
63750         Handle --extract-link-directive option.
63751         * modules/acl (Link): New section.
63752         * modules/clock-time (Link): New section.
63753         * modules/euidaccess (Link): New section.
63754         * modules/gettext (Link): New section.
63755         * modules/iconv (Link): New section.
63756         * modules/lock (Link): New section.
63757         * modules/nanosleep (Link): New section.
63758         * modules/readline (Link): New section.
63759
63760 2007-01-27  Bruno Haible  <bruno@clisp.org>
63761
63762         Enforce the use of gnulib modules for unportable <string.h> functions.
63763         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
63764         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
63765         (gl_HEADER_STRING_H_BODY): Require it.
63766         * lib/string_.h: If the gnulib module XYZ is not present, redefine
63767         the symbol XYZ to one that gives a link error.
63768         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
63769         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
63770         * modules/mempcpy (configure.ac): Likewise.
63771         * modules/memrchr (configure.ac): Likewise.
63772         * modules/stpcpy (configure.ac): Likewise.
63773         * modules/stpncpy (configure.ac): Likewise.
63774         * modules/strcase (configure.ac): Likewise.
63775         * modules/strcasestr (configure.ac): Likewise.
63776         * modules/strchrnul (configure.ac): Likewise.
63777         * modules/strdup (configure.ac): Likewise.
63778         * modules/strndup (configure.ac): Likewise.
63779         * modules/strnlen (configure.ac): Likewise.
63780         * modules/strpbrk (configure.ac): Likewise.
63781         * modules/strsep (configure.ac): Likewise.
63782         * modules/strstr (configure.ac): Likewise.
63783         * modules/strtok_r (configure.ac): Likewise.
63784
63785 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
63786
63787         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
63788
63789 2007-01-30  Jim Meyering  <jim@meyering.net>
63790
63791         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
63792
63793 2007-01-29  Bruno Haible  <bruno@clisp.org>
63794
63795         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
63796         * lib/execute.c: Likewise.
63797         * lib/pipe.c: Likewise.
63798         * lib/printf-args.h: Likewise.
63799         * lib/printf-args.c: Likewise.
63800         * lib/printf-parse.c: Likewise.
63801         * lib/vasnprintf.c: Likewise.
63802
63803 2007-01-29  Eric Blake  <ebb9@byu.net>
63804
63805         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
63806         declaration.
63807
63808 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
63809
63810         * lib/strptime.h (strptime): Use 'restrict' for args where
63811         POSIX requires this.
63812         * lib/strptime.c (strptime): Likewise.
63813         Change license notice from LGPL to GPL, since gnulib-tool will
63814         change this as needed.
63815         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
63816         defined.
63817         Include "strptime.h" first, to check interface.
63818         Do not #undef _LIBC and _NL_CURRENT.
63819         Do not include <stdlib.h>; no longer needed.
63820         Include "time_r.h" and declare ptime_locale_status
63821         only if _LIBC is not defined.
63822         (__P): Remove unused macro.
63823         (match_string): Bring back glibc version, but use it only if _LIBC
63824         is defined.
63825         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
63826         Remove unnecessary assertion and abort() call.
63827         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
63828         * m4/strptime.m4: Fix serial number comment.
63829         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
63830         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
63831         (Depends-on): Add time_r.
63832
63833 2007-01-29  Bruno Haible  <bruno@clisp.org>
63834
63835         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
63836         strptime.
63837         * modules/strptime (Depends-on): Add stdbool.
63838         * lib/strptime.h: Include <time.h> always. Add comments.
63839
63840 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
63841
63842         * modules/strptime: New file.
63843         * lib/strptime.h: New file.
63844         * lib/strptime.c: New file.
63845         * m4/strptime.m4: New file.
63846
63847 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
63848
63849         * MODULES.html.sh: New module mpsort.
63850         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
63851
63852         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
63853         a circularity problem with HP-UX ia64 reported by Bob Proulx in
63854         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
63855         All uses changed.
63856         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
63857         All uses changed.
63858         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
63859         to _Restrict_.
63860         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
63861         the parameter matches the prototype.
63862
63863 2007-01-28  Jim Meyering  <jim@meyering.net>
63864
63865         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
63866         sys/time.h here, reverting that part of the previous patch:
63867         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
63868
63869 2007-01-28  Bruno Haible  <bruno@clisp.org>
63870
63871         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
63872         value of $(SYS_TIME_H).
63873         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
63874         remove it conditionally, too. [added by Jim Meyering]
63875         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
63876         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
63877         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
63878         GETTIMEOFDAY_REPLACEMENT to 1.
63879
63880 2007-01-28  Bruno Haible  <bruno@clisp.org>
63881
63882         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
63883         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
63884         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
63885         Set UNISTD_H instead of UNISTD_H2.
63886         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
63887
63888 2007-01-28  Bruno Haible  <bruno@clisp.org>
63889
63890         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
63891         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
63892
63893 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63894
63895         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
63896         (func_create_testdir): Ensure C locale for `grep' and `tr'
63897         character ranges.
63898         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
63899         ACLOCAL_AMFLAGS parsing state machine.
63900
63901 2007-01-27  Bruno Haible  <bruno@clisp.org>
63902
63903         * modules/unistr/base: Update.
63904
63905 2007-01-27  Bruno Haible  <bruno@clisp.org>
63906
63907         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
63908         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
63909         * modules/unistr/u32-mbtouc-unsafe: Renamed from
63910         modules/unistr/u32-mbtouc.
63911         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
63912         * lib/unistr.h: Update.
63913         * lib/linebreak.c: Update.
63914         * modules/unistr/u32-mbtouc: Renamed from
63915         modules/unistr/u32-mbtouc-safe.
63916         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
63917         * lib/unistr.h: Update.
63918         * lib/unistr/u32-to-u8.c: Update.
63919         * lib/unistr/u32-to-u16.c: Update.
63920
63921 2007-01-27  Bruno Haible  <bruno@clisp.org>
63922
63923         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
63924         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
63925         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
63926         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
63927         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
63928         * modules/unistr/u16-mbtouc-unsafe: Renamed from
63929         modules/unistr/u16-mbtouc.
63930         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
63931         * lib/unistr.h: Update.
63932         * lib/linebreak.c: Update.
63933         * modules/linebreak: Update.
63934         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
63935         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
63936         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
63937         * modules/unistr/u16-mbtouc: Renamed from
63938         modules/unistr/u16-mbtouc-safe.
63939         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
63940         * lib/unistr.h: Update.
63941         * lib/unistr/u16-to-u8.c: Update.
63942         * modules/unistr/u16-to-u8: Update.
63943         * lib/unistr/u16-to-u32.c: Update.
63944         * modules/unistr/u16-to-u32: Update.
63945
63946 2007-01-27  Bruno Haible  <bruno@clisp.org>
63947
63948         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
63949         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
63950         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
63951         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
63952         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
63953         * modules/unistr/u8-mbtouc-unsafe: Renamed from
63954         modules/unistr/u8-mbtouc.
63955         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
63956         * lib/unistr.h: Update.
63957         * lib/striconveh.c: Update.
63958         * modules/striconveh: Update.
63959         * lib/linebreak.c: Update.
63960         * modules/linebreak: Update.
63961         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
63962         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
63963         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
63964         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
63965         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
63966         * lib/unistr.h: Update.
63967         * lib/striconveh.c: Update.
63968         * modules/striconveh: Update.
63969         * lib/unistr/u8-to-u16.c: Update.
63970         * modules/unistr/u8-to-u16: Update.
63971         * lib/unistr/u8-to-u32.c: Update.
63972         * modules/unistr/u8-to-u32: Update.
63973
63974 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63975
63976         Sync from Libtool.
63977         * lib/argz.c: Do not include strings.h nor memory.h, include
63978         string.h unconditionally.  Patch by Simon Josefsson.
63979
63980 2007-01-27  Bruno Haible  <bruno@clisp.org>
63981
63982         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
63983         from gl_HEADER_STRING_H_BODY.
63984         (gl_HEADER_STRING_H_BODY): Require it.
63985         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
63986         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
63987         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
63988         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
63989         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
63990         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
63991         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
63992         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
63993         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
63994         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
63995         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
63996         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
63997         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
63998         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
63999         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
64000
64001 2007-01-27  Bruno Haible  <bruno@clisp.org>
64002
64003         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
64004         check_PROGRAMS into noinst_PROGRAMS.
64005         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
64006         check_PROGRAMS in this case.
64007         (func_import): Set for_test to false.
64008         (func_create_testdir): Set for_test to true.
64009
64010 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
64011             Bruno Haible  <bruno@clisp.org>
64012
64013         * modules/strcasestr (Files): Remove lib/strcasestr.h.
64014         (Depends-on): Add string.
64015         (Includes): Use <string.h> instead of strcasestr.h.
64016         * modules/string (Makefile.am): Also substitute the value of
64017         REPLACE_STRCASESTR.
64018         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
64019         assume strcasestr is declared in <string.h> not <strings.h>. Also
64020         set REPLACE_STRCASESTR.
64021         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
64022         REPLACE_STRCASESTR.
64023         * lib/strcasestr.h: Remove file.
64024         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
64025         * lib/string_.h (strcasestr): New declaration.
64026
64027 2007-01-27  Bruno Haible  <bruno@clisp.org>
64028
64029         * lib/string_.h: Use 'extern'.
64030
64031 2007-01-27  Jim Meyering  <jim@meyering.net>
64032
64033         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
64034         of set-but-not-used local, "q".
64035
64036         * lib/mempcpy.c: Include <config.h> before <string.h>.
64037         This fixes a compilation error on HP-UX, due to the system's
64038         "restrict"-using mempcpy prototype.
64039
64040 2007-01-26  Bruno Haible  <bruno@clisp.org>
64041
64042         Small optimization.
64043         * lib/javacomp.c: Include c-strstr.h.
64044          (is_envjavac_gcj): Use c_strstr instead of strstr.
64045         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
64046
64047 2007-01-26  Bruno Haible  <bruno@clisp.org>
64048
64049         * MODULES.html.sh (Unicode string functions): Add the new modules.
64050
64051         * modules/uniconv/u32-strconv-to-locale: New file.
64052         * lib/uniconv/u32-strconv-to-locale.c: New file.
64053
64054         * modules/uniconv/u16-strconv-to-locale: New file.
64055         * lib/uniconv/u16-strconv-to-locale.c: New file.
64056
64057         * modules/uniconv/u8-strconv-to-locale: New file.
64058         * lib/uniconv/u8-strconv-to-locale.c: New file.
64059
64060         * modules/uniconv/u32-strconv-from-locale: New file.
64061         * lib/uniconv/u32-strconv-from-locale.c: New file.
64062
64063         * modules/uniconv/u16-strconv-from-locale: New file.
64064         * lib/uniconv/u16-strconv-from-locale.c: New file.
64065
64066         * modules/uniconv/u8-strconv-from-locale: New file.
64067         * lib/uniconv/u8-strconv-from-locale.c: New file.
64068
64069         * modules/uniconv/u32-strconv-to-enc: New file.
64070         * lib/uniconv/u32-strconv-to-enc.c: New file.
64071         * modules/uniconv/u32-strconv-to-enc-tests: New file.
64072         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
64073
64074         * modules/uniconv/u16-strconv-to-enc: New file.
64075         * lib/uniconv/u16-strconv-to-enc.c: New file.
64076         * lib/uniconv/u-strconv-to-enc.h: New file.
64077         * modules/uniconv/u16-strconv-to-enc-tests: New file.
64078         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
64079
64080         * modules/uniconv/u8-strconv-to-enc: New file.
64081         * lib/uniconv/u8-strconv-to-enc.c: New file.
64082         * modules/uniconv/u8-strconv-to-enc-tests: New file.
64083         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
64084
64085         * modules/uniconv/u32-strconv-from-enc: New file.
64086         * lib/uniconv/u32-strconv-from-enc.c: New file.
64087         * modules/uniconv/u32-strconv-from-enc-tests: New file.
64088         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
64089
64090         * modules/uniconv/u16-strconv-from-enc: New file.
64091         * lib/uniconv/u16-strconv-from-enc.c: New file.
64092         * modules/uniconv/u16-strconv-from-enc-tests: New file.
64093         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
64094
64095         * modules/uniconv/u8-strconv-from-enc: New file.
64096         * lib/uniconv/u8-strconv-from-enc.c: New file.
64097         * lib/uniconv/u-strconv-from-enc.h: New file.
64098         * modules/uniconv/u8-strconv-from-enc-tests: New file.
64099         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
64100
64101         * modules/uniconv/u32-conv-from-enc: New file.
64102         * lib/uniconv/u32-conv-from-enc.c: New file.
64103         * modules/uniconv/u32-conv-from-enc-tests: New file.
64104         * tests/uniconv/test-u32-conv-from-enc.c: New file.
64105
64106         * modules/uniconv/u16-conv-from-enc: New file.
64107         * lib/uniconv/u16-conv-from-enc.c: New file.
64108         * lib/uniconv/u-conv-from-enc.h: New file.
64109         * modules/uniconv/u16-conv-from-enc-tests: New file.
64110         * tests/uniconv/test-u16-conv-from-enc.c: New file.
64111
64112         * modules/uniconv/u8-conv-from-enc: New file.
64113         * lib/uniconv/u8-conv-from-enc.c: New file.
64114         * modules/uniconv/u8-conv-from-enc-tests: New file.
64115         * tests/uniconv/test-u8-conv-from-enc.c: New file.
64116
64117         * modules/uniconv/base: New file.
64118         * lib/uniconv.h: New file.
64119
64120 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
64121
64122         * doc/gnulib-tool.texi (Initial import): Update to match current
64123         behavior with strdup module.
64124         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
64125         * lib/memmem.h: Remove; all uses removed.  This is now done
64126         by <string.h>.
64127         * lib/mempcpy.h: Likewise.
64128         * lib/memrchr.h: Likewise.
64129         * lib/stpcpy.h: Likewise.
64130         * lib/stpncpy.h: Likewise.
64131         * lib/strcase.h: Likewise.
64132         * lib/strchrnul.h: Likewise.
64133         * lib/strdup.h: Likewise.
64134         * lib/strndup.h: Likewise.
64135         * lib/strnlen.h: Likewise.
64136         * lib/strpbrk.h: Likewise.
64137         * lib/strsep.h: Likewise.
64138         * lib/strstr.h: Likewise.
64139         * lib/strtok_r.h: Likewise.
64140         * lib/string_.h: New file.
64141         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
64142         Rely on <string.h> instead.
64143         * lib/canon-host.c: Likewise.
64144         * lib/chdir-long.c: Likewise.
64145         * lib/concatpath.c: Likewise.
64146         * lib/exclude.c: Likewise.
64147         * lib/fchdir.c: Likewise.
64148         * lib/getaddrinfo.c: Likewise.
64149         * lib/getcwd.c: Likewise.
64150         * lib/getsubopt.c: Likewise.
64151         * lib/glob.c: Likewise.
64152         * lib/hard-locale.c: Likewise.
64153         * lib/iconvme.c: Likewise.
64154         * lib/javacomp.c: Likewise.
64155         * lib/mempcpy.c: Likewise.
64156         * lib/memrchr.c: Likewise.
64157         * lib/regex_internal.h: Likewise.
64158         * lib/stpncpy.c: Likewise.
64159         * lib/strcasecmp.c: Likewise.
64160         * lib/strchrnul.c: Likewise.
64161         * lib/strdup.c: Likewise.
64162         * lib/striconv.c: Likewise.
64163         * lib/striconveh.c: Likewise.
64164         * lib/striconveha.c: Likewise.
64165         * lib/strncasecmp.c: Likewise.
64166         * lib/strndup.c: Likewise.
64167         * lib/strnlen.c: Likewise.
64168         * lib/strsep.c: Likewise.
64169         * lib/strstr.c: Likewise.
64170         * lib/strtok_r.c: Likewise.
64171         * lib/userspec.c: Likewise.
64172         * lib/w32spawn.h: Likewise.
64173         * lib/xstrndup.c: Likewise.
64174         * lib/mountlist.c (strstr): Remove decl.
64175         * m4/string_h.m4: New file.
64176         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
64177         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
64178         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
64179         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
64180         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
64181         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
64182         Set REPLACE_STRCASECMP if necessary.
64183         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
64184         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
64185         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
64186         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
64187         HAVE_DECL_STRDUP if necessary.
64188         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
64189         since gl_FUNC_STRNDUP does that now.
64190         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
64191         Check for decl here...
64192         (gl_PREREQ_STRNLEN): ... not here.
64193         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
64194         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
64195         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
64196         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
64197         necessary.
64198         * modules/string: New file.
64199         * modules/memmem (Files): Remove special-purpose include file.
64200         (Depends-on): Add string.
64201         (Include): Include <string.h>, not the removed file.
64202         * modules/mempcpy: Likewise.
64203         * modules/memrchr: Likewise.
64204         * modules/stpcpy: Likewise.
64205         * modules/stpncpy: Likewise.
64206         * modules/strcase: Likewise.
64207         * modules/strchrnul: Likewise.
64208         * modules/strdup: Likewise.
64209         * modules/strndup: Likewise.
64210         * modules/strnlen: Likewise.
64211         * modules/strpbrk: Likewise.
64212         * modules/strsep: Likewise.
64213         * modules/strstr: Likewise.
64214         * modules/strtok_r: Likewise.
64215         * tests/test-dirname.c: Don't include "strdup.h", since
64216         <string.h> now suffices.
64217         * tests/test-memmem.c: Don't include "memmem.h", since
64218         <string.h> now suffices.
64219
64220 2007-01-25  Bruno Haible  <bruno@clisp.org>
64221
64222         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
64223         *resultp is 0.
64224
64225         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
64226         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
64227         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
64228         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
64229
64230         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
64231         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
64232         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
64233         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
64234         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
64235         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
64236
64237 2007-01-24  Bruno Haible  <bruno@clisp.org>
64238
64239         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
64240         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
64241         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
64242         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
64243         gl_FUNC_FTS_CORE.
64244         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
64245         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
64246         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
64247         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
64248         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
64249         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
64250         gl_FUNC_FCHOWNAT.
64251         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
64252         gl_FUNC_STRFTIME.
64253         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
64254         Reported by Ralf Wildenhues.
64255
64256 2007-01-24  Bruno Haible  <bruno@clisp.org>
64257
64258         Drop AC_REQUIRE calls that are redundant with the module dependencies.
64259         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
64260         gl_GETADDRINFO.
64261         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
64262         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
64263         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
64264
64265 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
64266
64267         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
64268         Don't use 'exit'; just return from 'main'.
64269         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
64270
64271         * lib/fnmatch_.h: Readjust white space and comments to match
64272         glibc, to avoid spurious diffs.
64273
64274 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
64275
64276         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
64277         2004-12-01 change by Jakub Jelinek, since this code won't compile
64278         if !LIBC.  Problem reported by Bob Proulx.
64279
64280 2007-01-23  Bruno Haible  <bruno@clisp.org>
64281
64282         * lib/striconveh.c: Include c-strcaseeq.h.
64283         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
64284         * modules/striconveh (Depends-on): Add c-strcaseeq.
64285
64286 2007-01-23  Bruno Haible  <bruno@clisp.org>
64287
64288         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
64289
64290         * modules/c-strcaseeq: New file.
64291         * lib/c-strcaseeq.h: New file.
64292
64293         * modules/streq: New file.
64294         * lib/streq.h: New file.
64295
64296 2007-01-23  Bruno Haible  <bruno@clisp.org>
64297
64298         * modules/striconveha-tests: New file.
64299         * tests/test-striconveha.c: New file.
64300
64301         * lib/striconveha.h: Include <stdbool.h>.
64302         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
64303         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
64304         (mem_iconveha_notranslit): Renamed from mem_iconveha.
64305         (mem_iconveha): New function.
64306         (str_iconveha_notranslit): Renamed from str_iconveha.
64307         (str_iconveha): New function.
64308         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
64309         c-strcase.
64310
64311 2007-01-23  Bruno Haible  <bruno@clisp.org>
64312
64313         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
64314         encodings without forgiving before trying any encoding with handler.
64315         (str_iconveha): Try all encodings without forgiving before trying any
64316         encoding with handler.
64317
64318 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
64319
64320         Import the following changes from libc.
64321
64322         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
64323
64324         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
64325
64326         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
64327
64328         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
64329         normal_bracket label.
64330
64331         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
64332
64333         [BZ #361]
64334         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
64335         to normal_bracket after fetching the next character.
64336
64337 2007-01-22  Bruno Haible  <bruno@clisp.org>
64338
64339         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
64340         argument.
64341         * lib/striconveh.c (iconv_carefully_1): New function.
64342         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
64343         argument.
64344         (str_cd_iconveh): Update.
64345         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
64346         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
64347         * tests/test-striconveh.c (MAGIC): New macro.
64348         (new_offsets): New function.
64349         (main): Test call with and without offsets.
64350
64351 2007-01-22  Bruno Haible  <bruno@clisp.org>
64352
64353         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
64354         * modules/sys_select (Makefile.am): Likewise.
64355         * modules/sys_socket (Makefile.am): Likewise.
64356         * modules/sys_time (Makefile.am): Likewise.
64357
64358 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
64359
64360         * modules/gettimeofday (License): Change from GPL to LGPL, since
64361         gettimeofday is a library function.
64362
64363 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64364
64365         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
64366
64367 2007-01-21  Bruno Haible  <bruno@clisp.org>
64368
64369         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
64370
64371 2007-01-21  Bruno Haible  <bruno@clisp.org>
64372
64373         * modules/striconveha: New file.
64374         * lib/striconveha.h: New file.
64375         * lib/striconveha.c: New file.
64376         * MODULES.html.sh (Internationalization functions): Add striconveha.
64377         * lib/striconv.c (str_iconv): Optimize the case of an empty input
64378         string.
64379         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
64380
64381 2007-01-21  Bruno Haible  <bruno@clisp.org>
64382
64383         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
64384         * lib/striconveh.c (str_iconveh): Likewise.
64385
64386 2007-01-21  Bruno Haible  <bruno@clisp.org>
64387
64388         * lib/striconveh.h (mem_iconveh): New declaration.
64389         * lib/striconveh.c (mem_iconveh): New function.
64390         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
64391
64392 2007-01-21  Bruno Haible  <bruno@clisp.org>
64393
64394         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
64395
64396         * lib/striconveh.h (mem_cd_iconveh): Change specification.
64397         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
64398         original result buffer.
64399         (str_cd_iconveh): Update.
64400         * tests/test-striconveh.c (main): Update.
64401
64402         * lib/striconv.h (mem_cd_iconv): Change specification.
64403         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
64404         result buffer.
64405         (str_cd_iconv): Update.
64406         * tests/test-striconv.c (main): Update.
64407
64408 2007-01-21  Bruno Haible  <bruno@clisp.org>
64409
64410         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
64411
64412 2007-01-20  Jim Meyering  <jim@meyering.net>
64413
64414         * lib/userspec.c (parse_with_separator): If a user or group string
64415         starts with "+", skip the corresponding name-to-ID look-up, since
64416         such a look-up must fail: user and group names may not include "+".
64417
64418 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
64419
64420         * lib/poll.c: Include sys/time.h and time.h unconditionally,
64421         since we now assume the sys_time module.
64422         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
64423         check for sys/time.h; no longer needed.
64424         * modules/poll (Depends-on): Depend on sys_time.
64425
64426 2007-01-18  Bruno Haible  <bruno@clisp.org>
64427
64428         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
64429         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
64430
64431         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
64432         gettimeofday.
64433
64434         * tests/test-gettimeofday.c: Include <time.h>.
64435         (dummy): Remove variable.
64436
64437         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
64438         gl_HEADER_SYS_TIME_H.
64439         (gl_HEADER_SYS_TIME_H): New macro.
64440
64441         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
64442         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64443         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
64444         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
64445         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64446         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
64447         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
64448         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64449         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
64450         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
64451         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64452
64453         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
64454         last change; it caused a compilation error when cross-compiling to
64455         Cygwin.
64456
64457 2007-01-18  Jim Meyering  <jim@meyering.net>
64458
64459         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
64460         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
64461         than the race-prone "test -d sys || mkdir sys".
64462         (configure.ac): Use AC_PROG_MKDIR_P.
64463         * modules/sys_select: Likewise.
64464         * modules/sys_socket: Likewise.
64465         * modules/sys_time: Likewise.
64466
64467 2007-01-18  Eric Blake  <ebb9@byu.net>
64468
64469         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
64470         replace gettimeofday.
64471         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
64472         name, to avoid infinite recursion.
64473
64474 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
64475
64476         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
64477         module sys_time.
64478         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
64479         assume timespec.h defines struct timeval.
64480         * lib/settime.c: Likewise.
64481         * lib/utimens.c: Likewise.
64482         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
64483         since we now assume the gettimeofday module.
64484         * lib/tempname.c (__gen_tempname): Likewise.
64485         * lib/gettimeofday.h: Remove.
64486         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
64487         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
64488         Include <time.h>, for 'time()'.
64489         (localtime_buffer_addr): Also use this workaround if
64490         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
64491         to simplify the uses.  All uses changed.
64492         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
64493         that #undef is inside {}, and 'const' follows type name consistently.
64494         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
64495         (gettimeofday): Do not use the maximum possible value for
64496         tv->tv_usec, since that might break usages other than ls.c.
64497         Instead, we'll leave ls.c alone.  This undoes today's patch
64498         by Bruno.  Add a compile-time warning for 1s-clock resolution;
64499         we've never observed the problem but might as well keep the
64500         canary.
64501         * lib/nanosleep.c: Include timespec.h first, for interface check.
64502         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
64503         now assume the sys_time module.
64504         * lib/tempname.c: Likewise.
64505         * lib/timespec.h: Likewise.
64506         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
64507         needed.
64508         * lib/strftime.c: Likewise.
64509         * lib/timespec.h: Likewise.
64510         * lib/posixtm.c: Include posixtm.h first, for interface check.
64511         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
64512         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
64513         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
64514         * lib/sys_time_.h: New file.
64515         * lib/timespec.h (struct timespec): Use long int, not long.
64516         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
64517         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
64518         Remove obsolescent call to AC_HEADER_TIME.
64519         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
64520         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
64521         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
64522         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
64523         Likewise.
64524         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
64525         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
64526         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
64527         into the sys_time module.  Check for gettimeofday just once.
64528         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
64529         for gettimeofday signature to just check the signature.  Merely
64530         compile it, since linking doesn't test signature.  Improve test for
64531         whether gettimeofday.o is actually needed.
64532         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
64533         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
64534         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
64535         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64536         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
64537         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
64538         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
64539         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
64540         than worrying about sys/time.h.
64541         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
64542         Don't bother worrying about TIME_WITH_SYS_TIME.
64543         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
64544         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
64545         * m4/sys_time_h.m4: New file.
64546         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
64547         Don't include sys/time.h.  Return from main rather than exiting.
64548         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
64549         all uses changed.
64550         * modules/gethrxtime (Depends-on): Add sys_time.
64551         * modules/gettime (Depends-on): Likewise.
64552         * modules/gettimeofday (Depends-on): Likewise.
64553         * modules/nanosleep (Depends-on): Likewise.
64554         * modules/settime (Depends-on): Likewise.
64555         * modules/tempname (Depends-on): Likewise.
64556         * modules/utimens (Depends-on): Likewise.
64557         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
64558         (Include): Change back to <sys/time.h>.
64559         (Maintainer): Add self.
64560         * modules/sys_time: New file.
64561         * modules/tempname (Depends-on): Add gettimeofday.
64562         * tests/test-gettimeofday.c: Include <sys/time.h>
64563         rather than gettimeofday.h.
64564
64565 2007-01-17  Bruno Haible  <bruno@clisp.org>
64566
64567         * gnulib-tool (func_get_license): Revert last patch. Instead, let
64568         the license default to GPL.
64569         (func_create_testdir): Don't complain if a module is LGPL and its
64570         tests module depends on GPLed modules.
64571
64572 2007-01-17  Bruno Haible  <bruno@clisp.org>
64573
64574         * lib/gettimeofday.c (gettimeofday): Add code for the case
64575         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
64576         maximum possible value for tv->tv_usec, rather than the minimum one.
64577
64578 2005-10-08  Martin Lambers  <marlam@marlam.de>
64579 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
64580 2007-01-16  Bruno Haible  <bruno@clisp.org>
64581
64582         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
64583         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
64584         gl_FUNC_GETTIMEOFDAY.
64585         (Include): Add gettimeofday.h.
64586         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
64587         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
64588         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
64589         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
64590         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
64591         * lib/gettimeofday.h: New file.
64592         * lib/gettimeofday.c: Include <sys/timeb.h>.
64593         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
64594         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64595         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
64596         fall back on time().
64597
64598         * tests/test-gettimeofday.c: New file.
64599         * modules/gettimeofday-tests: New file.
64600
64601 2007-01-16  Eric Blake  <ebb9@byu.net>
64602
64603         * modules/fnmatch (Depends-on): Depend on wchar.
64604         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
64605         * m4/fnmatch.m4: Likewise.
64606         * modules/mbchar (Makefile.am): Assume <wchar.h>.
64607         * m4/mbchar.m4: Likewise.
64608         * modules/mbswidth (Depends-on): Depend on wchar.
64609         * lib/mbswidth.c: Assume <wchar.h>.
64610         * m4/mbswidth.m4: Likewise.
64611         * modules/quotearg (Depends-on): Depend on wchar.
64612         * lib/quotearg.c: Assume <wchar.h>.
64613         * m4/quotearg.m4: Likewise.
64614         * modules/regex (Depends-on): Depend on wchar.
64615         * lib/regex_internal.h: Assume <wchar.h>.
64616         * m4/regex.m4: Likewise.
64617         * modules/stdint (Depends-on): Depend on wchar.
64618         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
64619         * m4/stdint.m4: Likewise.
64620         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
64621         * modules/strftime (Depends-on): Depend on wchar.
64622         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
64623         * modules/strtol (Depends-on): Depend on wchar.
64624         * lib/strtol.c: Assume <wchar.h>.
64625         * modules/wcwidth (Depends-on): Depend on wchar.
64626         * lib/wcwidth.h: Assume <wchar.h>.
64627         * m4/wcwidth.m4: Likewise.
64628
64629 2007-01-16  Bruno Haible  <bruno@clisp.org>
64630
64631         * modules/csharpexec-script: New, created from...
64632         * modules/csharpexec: ... this.
64633
64634 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
64635
64636         * modules/javaexec-script: New, created from...
64637         * modules/javaexec: ... this.
64638
64639 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64640
64641         * modules/poll (Dependencies): Add sys_select.
64642
64643 2007-01-15  Jim Meyering  <jim@meyering.net>
64644
64645         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
64646         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
64647         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
64648         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
64649
64650 2007-01-15  Bruno Haible  <bruno@clisp.org>
64651
64652         * modules/striconveh: New file.
64653         * lib/striconveh.h: New file.
64654         * lib/striconveh.c: New file.
64655         * MODULES.html.sh (Internationalization functions): Add striconveh.
64656
64657         * modules/striconveh-tests: New file.
64658         * tests/test-striconveh.c: New file.
64659
64660 2007-01-15  Bruno Haible  <bruno@clisp.org>
64661
64662         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
64663         not from GNU libiconv or GNU libc.
64664
64665 2007-01-15  Bruno Haible  <bruno@clisp.org>
64666
64667         * doc/gnulib-intro.texi (Copyright): Explain the different license
64668         terms for module descriptions, autoconf macros, tests, documentation.
64669
64670 2007-01-14  Bruno Haible  <bruno@clisp.org>
64671
64672         * modules/striconv-tests: New file.
64673         * tests/test-striconv.c: New file.
64674
64675 2007-01-14  Bruno Haible  <bruno@clisp.org>
64676
64677         * modules/iconv-tests: New file.
64678         * tests/test-iconv.c: New file.
64679
64680 2007-01-14  Bruno Haible  <bruno@clisp.org>
64681
64682         * gnulib-tool (func_get_license): For test modules, use the license of
64683         the main module.
64684
64685 2007-01-14  Bruno Haible  <bruno@clisp.org>
64686
64687         * modules/iconv (Include): Clarify that <iconv.h> can only be included
64688         if iconv is found to exist.
64689
64690 2007-01-14  Bruno Haible  <bruno@clisp.org>
64691
64692         * modules/c-ctype-tests: New file.
64693         * tests/test-c-ctype.c: New file.
64694
64695 2007-01-14  Bruno Haible  <bruno@clisp.org>
64696
64697         * modules/binary-io-tests: New file.
64698         * tests/test-binary-io.sh: New file.
64699         * tests/test-binary-io.c: New file.
64700
64701 2007-01-14  Bruno Haible  <bruno@clisp.org>
64702
64703         * modules/array-oset-tests: New file.
64704         * tests/test-array_oset.c: New file.
64705
64706 2007-01-14  Bruno Haible  <bruno@clisp.org>
64707
64708         * modules/array-list-tests: New file.
64709         * tests/test-array_list.c: New file.
64710
64711 2007-01-14  Bruno Haible  <bruno@clisp.org>
64712
64713         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
64714         and make.
64715         Reported by Simon Josefsson in
64716         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
64717
64718 2007-01-14  Bruno Haible  <bruno@clisp.org>
64719
64720         * modules/allocsa-tests: New file.
64721         * tests/test-allocsa.c: New file.
64722
64723 2007-01-14  Bruno Haible  <bruno@clisp.org>
64724
64725         * modules/fchdir (Depends-on): Add absolute-header.
64726         * modules/unistd (Depends-on): Likewise.
64727
64728 2006-12-30  Bruno Haible  <bruno@clisp.org>
64729
64730         * modules/fchdir: New file.
64731         * modules/unistd (Files): Add lib/unistd_.h.
64732         (Makefile.am): Generate unistd.h from unistd_.h.
64733         * lib/fchdir.c: New file.
64734         * lib/dirent_.h: New file.
64735         * lib/unistd_.h: New file.
64736         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
64737         * m4/fchdir.m4: New file.
64738         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
64739         (gl_HEADER_UNISTD): Invoke it.
64740         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
64741         function.
64742         * lib/backupfile.c (opendir, closedir): Undefine.
64743         * lib/chown.c (open, close): Undefine.
64744         * lib/clean-temp.c (open, close): Undefine.
64745         * lib/copy-file.c (open, close): Undefine.
64746         * lib/execute.c (open, close): Undefine.
64747         * lib/fsusage.c (open, close): Undefine.
64748         * lib/gc-gnulib.c (open, close): Undefine.
64749         * lib/getcwd.c (opendir, closedir): Undefine.
64750         * lib/glob.c (opendir, closedir): Undefine.
64751         * lib/javacomp.c (open, close): Undefine.
64752         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
64753         * lib/openat-proc.c (open, close): Undefine.
64754         * lib/pagealign_alloc.c (open, close): Undefine.
64755         * lib/pipe.c (open, close): Undefine.
64756         * lib/progreloc.c (open, close): Undefine.
64757         * lib/savedir.c (opendir, closedir): Undefine.
64758         * lib/utime.c (open, close): Undefine.
64759         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
64760
64761 2007-01-10  Bruno Haible  <bruno@clisp.org>
64762
64763         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
64764
64765 2007-01-12  Eric Blake  <ebb9@byu.net>
64766
64767         Provide a robust <wchar.h>.  Further simplifications are now
64768         possible in other modules, but not included here.
64769         * modules/wchar: New module.
64770         * m4/wchar.m4: New file.
64771         * lib/wchar_.h: Likewise.
64772         * modules/mbchar (Depends-on): Depend on wchar, as the first use
64773         of the new module.
64774         * MODULES.html.sh (Extended multibyte and wide character utilities):
64775         New section.
64776
64777 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
64778
64779         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
64780         to a reasonable default for memory allocation.
64781         (xreadlink): Don't allocate a huge buffer, to work around a buggy
64782         file system that reports garbage st_size values for symlinks.
64783         Problem reported by Liyang Hu.
64784
64785 2007-01-11  Simon Josefsson  <simon@josefsson.org>
64786
64787         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
64788         Emacs .#* auto-save files).
64789
64790 2007-01-11  Bruno Haible  <bruno@clisp.org>
64791
64792         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
64793         directory.
64794
64795 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
64796
64797         Use @...@ consistently in lib/wctype_.h.
64798         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
64799         on it being set to 1 or 0.
64800         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
64801         go back to AC_SUBSTing it.
64802         * modules/wctype (Makefile.am): Undo previous change.
64803
64804 2007-01-10  Eric Blake  <ebb9@byu.net>
64805
64806         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
64807         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
64808         * modules/wctype (Makefile.am): Likewise.
64809         Reported by Chris McGuire.
64810
64811 2007-01-10  Jim Meyering  <jim@meyering.net>
64812
64813         fts.c: a small readability/maintainability improvement
64814         * lib/fts.c (fts_read): Make this code slightly more readable and
64815         maintainable by hoisting the "sp->fts_cur = p" assignments to
64816         immediately follow the statements that set P.  Derived from
64817         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
64818
64819 2007-01-10  Eric Blake  <ebb9@byu.net>
64820
64821         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
64822         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
64823         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
64824         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
64825         Reported by Chris McGuire.
64826
64827 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64828
64829         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
64830         in sed script.
64831
64832 2007-01-09  Bruno Haible  <bruno@clisp.org>
64833
64834         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
64835         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
64836         variables.
64837         (func_module): Use them.
64838
64839 2007-01-09  Bruno Haible  <bruno@clisp.org>
64840
64841         * modules/unistr/base: New file.
64842         * lib/unistr.h: New file.
64843
64844         * modules/unistr/u8-to-u16: New file.
64845         * lib/unistr/u8-to-u16.c: New file.
64846
64847         * modules/unistr/u8-to-u32: New file.
64848         * lib/unistr/u8-to-u32.c: New file.
64849
64850         * modules/unistr/u16-to-u8: New file.
64851         * lib/unistr/u16-to-u8.c: New file.
64852
64853         * modules/unistr/u16-to-u32: New file.
64854         * lib/unistr/u16-to-u32.c: New file.
64855
64856         * modules/unistr/u32-to-u8: New file.
64857         * lib/unistr/u32-to-u8.c: New file.
64858
64859         * modules/unistr/u32-to-u16: New file.
64860         * lib/unistr/u32-to-u16.c: New file.
64861
64862         * modules/unistr/u8-check: New file.
64863         * modules/unistr/u16-check: New file.
64864         * modules/unistr/u32-check: New file.
64865         * lib/unistr/u8-check.c: New file.
64866         * lib/unistr/u16-check.c: New file.
64867         * lib/unistr/u32-check.c: New file.
64868
64869         * modules/unistr/u8-chr: New file.
64870         * modules/unistr/u16-chr: New file.
64871         * modules/unistr/u32-chr: New file.
64872         * lib/unistr/u8-chr.c: New file.
64873         * lib/unistr/u16-chr.c: New file.
64874         * lib/unistr/u32-chr.c: New file.
64875
64876         * modules/unistr/u8-cmp: New file.
64877         * modules/unistr/u16-cmp: New file.
64878         * modules/unistr/u32-cmp: New file.
64879         * lib/unistr/u8-cmp.c: New file.
64880         * lib/unistr/u16-cmp.c: New file.
64881         * lib/unistr/u32-cmp.c: New file.
64882
64883         * modules/unistr/u8-cpy: New file.
64884         * modules/unistr/u16-cpy: New file.
64885         * modules/unistr/u32-cpy: New file.
64886         * lib/unistr/u8-cpy.c: New file.
64887         * lib/unistr/u16-cpy.c: New file.
64888         * lib/unistr/u32-cpy.c: New file.
64889         * lib/unistr/u-cpy.h: New file.
64890
64891         * modules/unistr/u8-cpy-alloc: New file.
64892         * modules/unistr/u16-cpy-alloc: New file.
64893         * modules/unistr/u32-cpy-alloc: New file.
64894         * lib/unistr/u8-cpy-alloc.c: New file.
64895         * lib/unistr/u16-cpy-alloc.c: New file.
64896         * lib/unistr/u32-cpy-alloc.c: New file.
64897         * lib/unistr/u-cpy-alloc.h: New file.
64898
64899         * modules/unistr/u8-endswith: New file.
64900         * modules/unistr/u16-endswith: New file.
64901         * modules/unistr/u32-endswith: New file.
64902         * lib/unistr/u8-endswith.c: New file.
64903         * lib/unistr/u16-endswith.c: New file.
64904         * lib/unistr/u32-endswith.c: New file.
64905         * lib/unistr/u-endswith.h: New file.
64906
64907         * modules/unistr/u8-mblen: New file.
64908         * modules/unistr/u16-mblen: New file.
64909         * modules/unistr/u32-mblen: New file.
64910         * lib/unistr/u8-mblen.c: New file.
64911         * lib/unistr/u16-mblen.c: New file.
64912         * lib/unistr/u32-mblen.c: New file.
64913
64914         * modules/unistr/u8-mbtouc: New file.
64915         * modules/unistr/u16-mbtouc: New file.
64916         * modules/unistr/u32-mbtouc: New file.
64917         * lib/unistr/u8-mbtouc.c: New file.
64918         * lib/unistr/u16-mbtouc.c: New file.
64919         * lib/unistr/u32-mbtouc.c: New file.
64920
64921         * modules/unistr/u8-mbtouc-safe: New file.
64922         * modules/unistr/u16-mbtouc-safe: New file.
64923         * modules/unistr/u32-mbtouc-safe: New file.
64924         * lib/unistr/u8-mbtouc-safe.c: New file.
64925         * lib/unistr/u16-mbtouc-safe.c: New file.
64926         * lib/unistr/u32-mbtouc-safe.c: New file.
64927
64928         * modules/unistr/u8-move: New file.
64929         * modules/unistr/u16-move: New file.
64930         * modules/unistr/u32-move: New file.
64931         * lib/unistr/u8-move.c: New file.
64932         * lib/unistr/u16-move.c: New file.
64933         * lib/unistr/u32-move.c: New file.
64934         * lib/unistr/u-move.h: New file.
64935
64936         * modules/unistr/u8-next: New file.
64937         * modules/unistr/u16-next: New file.
64938         * modules/unistr/u32-next: New file.
64939         * lib/unistr/u8-next.c: New file.
64940         * lib/unistr/u16-next.c: New file.
64941         * lib/unistr/u32-next.c: New file.
64942
64943         * modules/unistr/u8-prev: New file.
64944         * modules/unistr/u16-prev: New file.
64945         * modules/unistr/u32-prev: New file.
64946         * lib/unistr/u8-prev.c: New file.
64947         * lib/unistr/u16-prev.c: New file.
64948         * lib/unistr/u32-prev.c: New file.
64949
64950         * modules/unistr/u8-set: New file.
64951         * modules/unistr/u16-set: New file.
64952         * modules/unistr/u32-set: New file.
64953         * lib/unistr/u8-set.c: New file.
64954         * lib/unistr/u16-set.c: New file.
64955         * lib/unistr/u32-set.c: New file.
64956         * lib/unistr/u-set.h: New file.
64957
64958         * modules/unistr/u8-startswith: New file.
64959         * modules/unistr/u16-startswith: New file.
64960         * modules/unistr/u32-startswith: New file.
64961         * lib/unistr/u8-startswith.c: New file.
64962         * lib/unistr/u16-startswith.c: New file.
64963         * lib/unistr/u32-startswith.c: New file.
64964         * lib/unistr/u-startswith.h: New file.
64965
64966         * modules/unistr/u8-stpcpy: New file.
64967         * modules/unistr/u16-stpcpy: New file.
64968         * modules/unistr/u32-stpcpy: New file.
64969         * lib/unistr/u8-stpcpy.c: New file.
64970         * lib/unistr/u16-stpcpy.c: New file.
64971         * lib/unistr/u32-stpcpy.c: New file.
64972         * lib/unistr/u-stpcpy.h: New file.
64973
64974         * modules/unistr/u8-stpncpy: New file.
64975         * modules/unistr/u16-stpncpy: New file.
64976         * modules/unistr/u32-stpncpy: New file.
64977         * lib/unistr/u8-stpncpy.c: New file.
64978         * lib/unistr/u16-stpncpy.c: New file.
64979         * lib/unistr/u32-stpncpy.c: New file.
64980         * lib/unistr/u-stpncpy.h: New file.
64981
64982         * modules/unistr/u8-strcat: New file.
64983         * modules/unistr/u16-strcat: New file.
64984         * modules/unistr/u32-strcat: New file.
64985         * lib/unistr/u8-strcat.c: New file.
64986         * lib/unistr/u16-strcat.c: New file.
64987         * lib/unistr/u32-strcat.c: New file.
64988         * lib/unistr/u-strcat.h: New file.
64989
64990         * modules/unistr/u8-strchr: New file.
64991         * modules/unistr/u16-strchr: New file.
64992         * modules/unistr/u32-strchr: New file.
64993         * lib/unistr/u8-strchr.c: New file.
64994         * lib/unistr/u16-strchr.c: New file.
64995         * lib/unistr/u32-strchr.c: New file.
64996
64997         * modules/unistr/u8-strcmp: New file.
64998         * modules/unistr/u16-strcmp: New file.
64999         * modules/unistr/u32-strcmp: New file.
65000         * lib/unistr/u8-strcmp.c: New file.
65001         * lib/unistr/u16-strcmp.c: New file.
65002         * lib/unistr/u32-strcmp.c: New file.
65003
65004         * modules/unistr/u8-strcpy: New file.
65005         * modules/unistr/u16-strcpy: New file.
65006         * modules/unistr/u32-strcpy: New file.
65007         * lib/unistr/u8-strcpy.c: New file.
65008         * lib/unistr/u16-strcpy.c: New file.
65009         * lib/unistr/u32-strcpy.c: New file.
65010         * lib/unistr/u-strcpy.h: New file.
65011
65012         * modules/unistr/u8-strcspn: New file.
65013         * modules/unistr/u16-strcspn: New file.
65014         * modules/unistr/u32-strcspn: New file.
65015         * lib/unistr/u8-strcspn.c: New file.
65016         * lib/unistr/u16-strcspn.c: New file.
65017         * lib/unistr/u32-strcspn.c: New file.
65018         * lib/unistr/u-strcspn.h: New file.
65019
65020         * modules/unistr/u8-strdup: New file.
65021         * modules/unistr/u16-strdup: New file.
65022         * modules/unistr/u32-strdup: New file.
65023         * lib/unistr/u8-strdup.c: New file.
65024         * lib/unistr/u16-strdup.c: New file.
65025         * lib/unistr/u32-strdup.c: New file.
65026         * lib/unistr/u-strdup.h: New file.
65027
65028         * modules/unistr/u8-strlen: New file.
65029         * modules/unistr/u16-strlen: New file.
65030         * modules/unistr/u32-strlen: New file.
65031         * lib/unistr/u8-strlen.c: New file.
65032         * lib/unistr/u16-strlen.c: New file.
65033         * lib/unistr/u32-strlen.c: New file.
65034         * lib/unistr/u-strlen.h: New file.
65035
65036         * modules/unistr/u8-strmblen: New file.
65037         * modules/unistr/u16-strmblen: New file.
65038         * modules/unistr/u32-strmblen: New file.
65039         * lib/unistr/u8-strmblen.c: New file.
65040         * lib/unistr/u16-strmblen.c: New file.
65041         * lib/unistr/u32-strmblen.c: New file.
65042
65043         * modules/unistr/u8-strmbtouc: New file.
65044         * modules/unistr/u16-strmbtouc: New file.
65045         * modules/unistr/u32-strmbtouc: New file.
65046         * lib/unistr/u8-strmbtouc.c: New file.
65047         * lib/unistr/u16-strmbtouc.c: New file.
65048         * lib/unistr/u32-strmbtouc.c: New file.
65049
65050         * modules/unistr/u8-strncat: New file.
65051         * modules/unistr/u16-strncat: New file.
65052         * modules/unistr/u32-strncat: New file.
65053         * lib/unistr/u8-strncat.c: New file.
65054         * lib/unistr/u16-strncat.c: New file.
65055         * lib/unistr/u32-strncat.c: New file.
65056         * lib/unistr/u-strncat.h: New file.
65057
65058         * modules/unistr/u8-strncmp: New file.
65059         * modules/unistr/u16-strncmp: New file.
65060         * modules/unistr/u32-strncmp: New file.
65061         * lib/unistr/u8-strncmp.c: New file.
65062         * lib/unistr/u16-strncmp.c: New file.
65063         * lib/unistr/u32-strncmp.c: New file.
65064
65065         * modules/unistr/u8-strncpy: New file.
65066         * modules/unistr/u16-strncpy: New file.
65067         * modules/unistr/u32-strncpy: New file.
65068         * lib/unistr/u8-strncpy.c: New file.
65069         * lib/unistr/u16-strncpy.c: New file.
65070         * lib/unistr/u32-strncpy.c: New file.
65071         * lib/unistr/u-strncpy.h: New file.
65072
65073         * modules/unistr/u8-strnlen: New file.
65074         * modules/unistr/u16-strnlen: New file.
65075         * modules/unistr/u32-strnlen: New file.
65076         * lib/unistr/u8-strnlen.c: New file.
65077         * lib/unistr/u16-strnlen.c: New file.
65078         * lib/unistr/u32-strnlen.c: New file.
65079         * lib/unistr/u-strnlen.h: New file.
65080
65081         * modules/unistr/u8-strpbrk: New file.
65082         * modules/unistr/u16-strpbrk: New file.
65083         * modules/unistr/u32-strpbrk: New file.
65084         * lib/unistr/u8-strpbrk.c: New file.
65085         * lib/unistr/u16-strpbrk.c: New file.
65086         * lib/unistr/u32-strpbrk.c: New file.
65087         * lib/unistr/u-strpbrk.h: New file.
65088
65089         * modules/unistr/u8-strrchr: New file.
65090         * modules/unistr/u16-strrchr: New file.
65091         * modules/unistr/u32-strrchr: New file.
65092         * lib/unistr/u8-strrchr.c: New file.
65093         * lib/unistr/u16-strrchr.c: New file.
65094         * lib/unistr/u32-strrchr.c: New file.
65095
65096         * modules/unistr/u8-strspn: New file.
65097         * modules/unistr/u16-strspn: New file.
65098         * modules/unistr/u32-strspn: New file.
65099         * lib/unistr/u8-strspn.c: New file.
65100         * lib/unistr/u16-strspn.c: New file.
65101         * lib/unistr/u32-strspn.c: New file.
65102         * lib/unistr/u-strspn.h: New file.
65103
65104         * modules/unistr/u8-strstr: New file.
65105         * modules/unistr/u16-strstr: New file.
65106         * modules/unistr/u32-strstr: New file.
65107         * lib/unistr/u8-strstr.c: New file.
65108         * lib/unistr/u16-strstr.c: New file.
65109         * lib/unistr/u32-strstr.c: New file.
65110         * lib/unistr/u-strstr.h: New file.
65111
65112         * modules/unistr/u8-strtok: New file.
65113         * modules/unistr/u16-strtok: New file.
65114         * modules/unistr/u32-strtok: New file.
65115         * lib/unistr/u8-strtok.c: New file.
65116         * lib/unistr/u16-strtok.c: New file.
65117         * lib/unistr/u32-strtok.c: New file.
65118         * lib/unistr/u-strtok.h: New file.
65119
65120         * modules/unistr/u8-uctomb: New file.
65121         * modules/unistr/u16-uctomb: New file.
65122         * modules/unistr/u32-uctomb: New file.
65123         * lib/unistr/u8-uctomb.c: New file.
65124         * lib/unistr/u16-uctomb.c: New file.
65125         * lib/unistr/u32-uctomb.c: New file.
65126
65127         * MODULES.html.sh (Unicode string functions): Add the new modules.
65128
65129 2007-01-08  Bruno Haible  <bruno@clisp.org>
65130
65131         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
65132         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
65133         subdirectories.
65134
65135 2007-01-08  Karl Berry  <karl@gnu.org>
65136
65137         * doc/error.texi: mention that main() fns must set program_name
65138         when progname is used.
65139
65140 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
65141
65142         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
65143         WCTYPE_H is empty, for the benefit of builds from non-distclean
65144         directories.  Problem reported by Eric Blake in
65145         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
65146
65147 2007-01-08  Bruno Haible  <bruno@clisp.org>
65148
65149         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
65150         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
65151         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
65152         PROVIDE_CANONICALIZE_FILENAME_MODE.
65153         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
65154
65155 2007-01-08  Bruno Haible  <bruno@clisp.org>
65156
65157         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
65158         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
65159         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
65160         * lib/fts.c: Likewise.
65161         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
65162
65163 2006-12-25  Bruno Haible  <bruno@clisp.org>
65164
65165         * modules/utf8-ucs4-safe: New file.
65166         * lib/utf8-ucs4-safe.h: New file.
65167         * lib/unistr/utf8-ucs4-safe.c: New file.
65168
65169         * modules/utf16-ucs4-safe: New file.
65170         * lib/utf16-ucs4-safe.h: New file.
65171         * lib/unistr/utf16-ucs4-safe.c: New file.
65172
65173         * MODULES.html.sh (Unicode string functions): Add the new modules.
65174
65175 2007-01-08  Bruno Haible  <bruno@clisp.org>
65176
65177         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
65178         (Depends-on): Add unitypes.
65179         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
65180         (u8_mbtouc_aux): Move out to separate file.
65181         (u8_mbtouc): Use ucs4_t, uint8_t types.
65182         * lib/unistr/utf8-ucs4.c: New file.
65183
65184         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
65185         (Depends-on): Add unitypes.
65186         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
65187         (u16_mbtouc_aux): Move out to separate file.
65188         (u16_mbtouc): Use ucs4_t, uint16_t types.
65189         * lib/unistr/utf16-ucs4.c: New file.
65190
65191         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
65192         (Depends-on): Add unitypes.
65193         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
65194         (u8_uctomb_aux): Move out to separate file.
65195         (u8_uctomb): Use ucs4_t, uint8_t types.
65196         * lib/unistr/ucs4-utf8.c: New file.
65197
65198         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
65199         (Depends-on): Add unitypes.
65200         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
65201         (u16_uctomb_aux): Move out to separate file.
65202         (u16_uctomb): Use ucs4_t, uint16_t types.
65203         * lib/unistr/ucs4-utf16.c: New file.
65204
65205 2006-12-25  Bruno Haible  <bruno@clisp.org>
65206
65207         * modules/unitypes: New file.
65208         * lib/unitypes.h: New file.
65209         * MODULES.html.sh (func_all_modules): New section "Unicode string
65210         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
65211         this section. Add unitypes.
65212
65213 2007-01-08  Bruno Haible  <bruno@clisp.org>
65214
65215         Avoid variable names that conflict with those from libtool.
65216         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
65217         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
65218         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
65219         library_names_spec to acl_library_names_spec, hardcode_* to
65220         acl_hardcode_*.
65221         Reported by Ralf Wildenhues.
65222
65223 2007-01-08  Bruno Haible  <bruno@clisp.org>
65224
65225         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
65226         definition.
65227         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
65228         definition.
65229         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
65230         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
65231         definition.
65232         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
65233         definition.
65234         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
65235         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
65236         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
65237         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
65238         definition.
65239         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
65240         definition.
65241         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
65242         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
65243         GC_USE_<algorithm>.
65244         * lib/gc-libgcrypt.c: Likewise.
65245         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
65246         * modules/gc-arctwo (configure.ac): Likewise.
65247         * modules/gc-des (configure.ac): Likewise.
65248         * modules/gc-hmac-md5 (configure.ac): Likewise.
65249         * modules/gc-hmac-sha1 (configure.ac): Likewise.
65250         * modules/gc-md2 (configure.ac): Likewise.
65251         * modules/gc-md4 (configure.ac): Likewise.
65252         * modules/gc-md5 (configure.ac): Likewise.
65253         * modules/gc-random (configure.ac): Likewise.
65254         * modules/gc-rijndael (configure.ac): Likewise.
65255         * modules/gc-sha1 (configure.ac): Likewise.
65256
65257 2007-01-08  Bruno Haible  <bruno@clisp.org>
65258
65259         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
65260         macro definition.
65261         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
65262         definition.
65263         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
65264         definition.
65265         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
65266         * modules/fcntl-safer (configure.ac): Likewise.
65267         * modules/fopen-safer (configure.ac): Likewise.
65268         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
65269         GNULIB_FWRITEERROR macro definition.
65270
65271 2007-01-08  Bruno Haible  <bruno@clisp.org>
65272
65273         * m4/gnulib-common.m4: New file.
65274         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
65275         (func_get_filelist): Add m4/gnulib-common.m4.
65276
65277 2007-01-08  Bruno Haible  <bruno@clisp.org>
65278
65279         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
65280         command.
65281
65282 2007-01-08  Jim Meyering  <jim@meyering.net>
65283
65284         Use a more robust test for a "can't happen" condition.
65285         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
65286         narrowed the st_size value.  Presuming the "can't happen" condition
65287         is true, that narrowing could conceivably convert an invalid st_size
65288         value into a valid one.  Instead, use a change based on Matthew
65289         Woehlke's original patch.
65290
65291         Slight readability improvement: use an assert-like macro
65292         in place of literal "abort ()" uses.
65293         * lib/fts.c (fts_assert): Define.
65294         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
65295         Use this macro instead of a bare 'abort'.
65296
65297 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
65298
65299         Don't worry about using IRIX 5.3's wctype.h broken definitions;
65300         simply work around them.
65301         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
65302         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
65303         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
65304         declaring.
65305         Don't bother to define as macros, since the standard doesn't require it.
65306         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
65307         longer worry about IRIX 5.3.
65308         (HAVE_WCTYPE_CTMP_BUG): Remove.
65309
65310 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
65311
65312         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
65313         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
65314         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
65315         Problems reported by Georg Schwarz for IRIX 5.3.
65316
65317         * gnulib-tool (autoconf_minversion): Take the maximum version number
65318         found, not the minimum.  Problem reported by James Youngman.
65319
65320 2007-01-03  Karl Berry  <karl@gnu.org>
65321
65322         * doc/error.texi: new file, explaining interaction with progname.
65323         * doc/gnulib.texi: include it.  Update copyright.
65324
65325 2007-01-03  Simon Josefsson  <simon@josefsson.org>
65326
65327         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
65328         AC_CANONICAL_HOST, to improve autobuild outputs.
65329
65330 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
65331             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
65332
65333         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
65334         sockets, server sockets, and other file descriptors.  Count errors
65335         to compute the return value.  Reorder the code a bit to be easier
65336         to follow.  Don't set event bits that were not requested (except
65337         POLLERR and POLLHUP).
65338
65339 2007-01-01  Bruno Haible  <bruno@clisp.org>
65340
65341         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
65342
65343 2007-01-03  Jim Meyering  <jim@meyering.net>
65344
65345         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
65346
65347 2007-01-02  Bruno Haible  <bruno@clisp.org>
65348
65349         * modules/settime (Include): Require timespec.h.
65350         * modules/nanosleep (Include): Likewise.
65351
65352 2007-01-01  Bruno Haible  <bruno@clisp.org>
65353
65354         * gnulib-tool (func_emit_copyright_notice): Bump year.
65355         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
65356
65357 2007-01-01  Bruno Haible  <bruno@clisp.org>
65358
65359         Improve support for OpenBSD.
65360         * build-aux/config.rpath (libname_spec): Export.
65361         (library_names_spec): New variable. Export.
65362         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
65363         library_names_spec from the config.rpath output. Locate shared library
65364         through the name pattern in library_names_spec.
65365
65366 2007-01-01  Eric Blake  <ebb9@byu.net>
65367
65368         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
65369
65370 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
65371
65372         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
65373         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
65374         assume the C locale, and avoid an "eval" that could cause trouble.
65375         Problem with SORT reported by Bob Proulx.
65376
65377         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
65378         Define.  Trivial patch from Henning Nielsen Lund, originally
65379         sent to bug-grep@gnu.org today.
65380
65381 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
65382
65383         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
65384         struct stat.  Problem reported by Henning Nielsen Lund.
65385         * lib/acl.c: Include acl.h first, to check interface.  Don't
65386         bother to include sys/types.h and sys/stat.h again.
65387
65388 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
65389
65390         Import the following change from libc; problem reported by
65391         Sven Verdoolaege.
65392
65393         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
65394
65395         [BZ #1373]
65396         * lib/argp.h: Remove __NTH for __argp_usage inline function.
65397
65398 2006-12-28  Jim Meyering  <jim@meyering.net>
65399
65400         * build-aux/announce-gen: Do not assume that the package
65401         builds any of tar.gz, tar.bz2, and .xdelta files.
65402         Suggestion from Simon Josefsson.
65403
65404 2006-12-28  Simon Josefsson  <simon@josefsson.org>
65405
65406         * modules/announce-gen: New file.
65407
65408 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
65409
65410         * lib/mbchar.h: Just include <wctype.h>; the wctype module
65411         handles its gotchas now.
65412         * lib/mbswidth.c: Likewise.
65413         * lib/wcwidth.h: Likewise.
65414         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
65415         and iswcntrl; the wctype module does this stuff now.
65416         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
65417         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
65418         * modules/mbchar (Depends-on): Add wctype.
65419         * modules/mbswidth (Depends-on): Likewise.
65420         * modules/wcwidth (Depends-on): Likewise.
65421
65422 2006-12-27  Eric Blake  <ebb9@byu.net>
65423
65424         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
65425         module uses more than what <wctype.h> is required to provide.
65426
65427 2006-12-26  Eric Blake  <ebb9@byu.net>
65428
65429         * gnulib-tool (sed_extract_prog): Avoid space-tab.
65430
65431 2006-12-26  Eric Blake  <ebb9@byu.net>
65432
65433         * modules/absolute-header: New module.
65434         * modules/fcntl (Depends-on): Depend on it.
65435         * modules/inttypes (Depends-on): Likewise.
65436         * modules/stdint (Depends-on): Likewise.
65437         * modules/sys_stat (Depends-on): Likewise.
65438         * modules/wctype (Depends-on): Likewise.
65439         * MODULES.html.sh (Support for building libraries and
65440         executables): Document it.
65441
65442 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
65443
65444         * gnulib-tool (SED): Remove, undoing previous change.
65445         The problem was that it broke coreutils on Solaris, because
65446         "sed --posix" leaked into a makefile.
65447         (sed): New alias, if 'alias' and GNU sed.
65448
65449 2006-12-24  Jim Meyering  <jim@meyering.net>
65450
65451         Work around an fchownat bug in glibc-2.4:
65452         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
65453         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
65454         in spite of the -P option.
65455         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
65456         New macros.
65457         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
65458         * modules/openat (Files): Add lib/fchownat.c.
65459         * lib/openat.c (fchownat): Don't define here.  Move to...
65460         * lib/fchownat.c: ...this new file.
65461
65462 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
65463
65464         Fix bug reported by Bruno Haible in
65465         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
65466         where quotearg.c didn't compile on Mac OS X 10.2 because it
65467         lacks <wchar.h> and wint_t.
65468         * lib/wctype_.h (__wctype_wint_t): New type.
65469         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
65470         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
65471         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
65472         Arg is now of type __wctype_wint_t, not wint_t.
65473         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
65474         substitute HAVE_WINT_T.
65475         * modules/wctype (Files): Add m4/wint_t.m4.
65476         (wctype.h): Substitute HAVE_WINT_T.
65477
65478 2006-12-23  Bruno Haible  <bruno@clisp.org>
65479
65480         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
65481
65482 2006-12-23  Bruno Haible  <bruno@clisp.org>
65483
65484         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
65485         S_ISLNK.
65486         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
65487         mingw.
65488
65489 2006-12-22  Bruno Haible  <bruno@clisp.org>
65490
65491         * lib/copy-file.c: Include acl.h.
65492         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
65493         Close the file descriptors only after being done with copy_acl.
65494         * modules/copy-file (Depends-on): Add acl.
65495
65496 2006-12-22  Bruno Haible  <bruno@clisp.org>
65497
65498         * gnulib-tool (SED): New variable.
65499         Use $SED instead of sed everywhere.
65500
65501 2006-12-22  Bruno Haible  <bruno@clisp.org>
65502
65503         * modules/no-c++: New file.
65504         * m4/no-c++.m4: New file.
65505         * MODULES.html.sh (Support for building libraries and executables):
65506         Add no-c++.
65507
65508 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
65509
65510         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
65511         Include <limits.h>, and use its INT_MAX to rewrite the
65512         j loop so that it does not overflow 'int'.  Problem reported by
65513         Ralf Wildenhues in
65514         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
65515         Play it safe by shifting left by 1 rather than multiplying by 2,
65516         as GCC is less likely to optimize this away when the value
65517         is signed (when it assumes overflow leads to undefined behavior).
65518         Also, don't assume time_t uses two's complement.
65519
65520 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
65521
65522         * MODULES.html.sh: New module wctype.
65523         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
65524         * lib/fnmatch.c: Don't bother to include <wchar.h> before
65525         <wctype.h>, since the new wctype module should fix this.
65526         * lib/quotearg.c: Include <wctype.h> unconditionally, since
65527         the wctype module should arrange for it.
65528         * lib/regex_internal.h: Likewise.
65529         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
65530         since the wctype module should handle this now.
65531         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
65532         * modules/fnmatch (Depends-on): Add wctype.
65533         * modules/quotearg (Depends-on): Likewise.
65534         * modules/regex (Depends-on): Likewise.
65535
65536 2006-12-19  Bruno Haible  <bruno@clisp.org>
65537
65538         * lib/strdup.h [C++]: Wrap definitions in extern "C".
65539         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
65540
65541 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65542
65543         * modules/savewd (Depends-on): Fix dependency on fcntl.
65544
65545 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
65546
65547         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
65548         conforms to C99, rather than relying on the user's environment
65549         setting of STDINT_H.
65550
65551 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
65552         and Eric Blake  <ebb9@byu.net>
65553
65554         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
65555         This is more consistent with the other defines here.
65556         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
65557         Port to z/OS.  Problem reported by Paul Gilmartin.
65558         Change local vars to use gl_ prefix rather than ac_.
65559         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
65560         with other defines.
65561         * modules/double-slash-root: New module.
65562         * modules/dirname (Files): Remove m4/double-slash-root.m4.
65563         (Depends-on): Add double-slash-root.
65564         * MODULES.html.sh (File system functions): Mention new module.
65565
65566 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
65567
65568         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
65569         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
65570         This is for the benefit of gzip, which doesn't do i18n.
65571
65572 2006-12-12  Jim Meyering  <jim@meyering.net>
65573
65574         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
65575         Reported by Andreas Schwab <schwab@suse.de>.
65576
65577 2006-12-12  Bruno Haible  <bruno@clisp.org>
65578
65579         Merge these changes.
65580         2006-09-05  Bruno Haible  <bruno@clisp.org>
65581         * lib/iconvme.c (iconv_string): No need to save and restore errno when
65582         iconv_alloc succeeded.
65583         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
65584         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
65585         test for " && dest " at the end - dest is always != NULL there. Call
65586         iconv with 4xNULL arguments initially, to reset the state. Call iconv
65587         with 2xNULL arguments, also to flush the state storage. Handle the
65588         IRIX iconv behaviour. Realloc the final result, to throw away unused
65589         memory.
65590
65591 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
65592
65593         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
65594         and fchmodat unconditionally, since glibc 2.4 has them.
65595         Problem reported by Arkadiusz Miskiewicz.
65596
65597 2006-12-10  Bruno Haible  <bruno@clisp.org>
65598
65599         * gnulib-tool (func_import): Show the include files only for those
65600         modules that are copied and specified.
65601         Reported by Karl Berry.
65602
65603 2006-12-08  Jim Meyering  <jim@meyering.net>
65604
65605         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
65606         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
65607
65608         * build-aux/announce-gen: Add two new options, both optional:
65609         --bootstrap-tools=TOOL_LIST
65610               a comma-separated list of tools, e.g.,
65611               autoconf,automake,bison,gnulib
65612         --gnulib-snapshot-date=DATE
65613               if gnulib is in the bootstrap tool list,
65614               then report this as the snapshot date.
65615               If not specified, use the current date/time.
65616               If you specify a date here, be sure it's UTC.
65617
65618 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65619
65620         * tests/test-argp-2.sh: Fix test to match actual output.
65621         (func_compare): Fix sed script to be portable.
65622
65623 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
65624
65625         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
65626         workaround for this case.  It is not autoconfigured now; offhand
65627         it's hard to see how to autoconfigure it.
65628
65629 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
65630
65631         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
65632         a directory that is about to be chowned.  Such a directory's
65633         initial file permissions should permit the owner only and this
65634         should not be changed until after the chown, since the group and
65635         other bits would be incorrect if they granted permission before
65636         the chown.
65637
65638         Fix porting problem for iswctype reported by Georg Schwarz in:
65639         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
65640         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
65641         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
65642         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
65643         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
65644
65645 2006-12-03  Jim Meyering  <jim@meyering.net>
65646
65647         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
65648         p->fts_statp may not yet be defined.
65649         (fts_read): Instead, set it in the caller, once p->fts_statp is
65650         sure to be defined, and corresponds to a top-level directory.
65651         This bug made du -x fail.  Here's the coreutils test case:
65652         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
65653         Reported by Mike Frysinger.
65654
65655 2006-12-01  Jim Meyering  <jim@meyering.net>
65656
65657         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
65658         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
65659         Reported by Simon Josefsson.
65660
65661 2006-11-30  Jim Meyering  <jim@meyering.net>
65662
65663         * m4/warning.m4: Use the all-permissive copyright notice
65664         recommended by RMS (rather than LGPL).
65665         * m4/vararrays.m4: Likewise.
65666         * m4/flexmember.m4: Likewise.
65667
65668 2006-11-29  Bruno Haible  <bruno@clisp.org>
65669
65670         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
65671         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
65672         using +=.
65673         Reported by Simon Josefsson <simon@josefsson.org>.
65674
65675 2006-11-28  James Youngman <jay@gnu.org>
65676
65677         * README: Advise users that they might find the bug-gnulib@gnu.org
65678         and autotools-announce@gnu.org mailing lists useful.
65679
65680 2006-11-28  Bruno Haible  <bruno@clisp.org>
65681
65682         * m4/ptrdiff_max.m4: Remove file.
65683
65684 2006-11-21  Bruno Haible  <bruno@clisp.org>
65685
65686         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
65687         _AC_COMPUTE_INT.
65688         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
65689         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
65690         _AC_COMPUTE_INT.
65691         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
65692         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
65693         _AC_COMPUTE_INT.
65694         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
65695
65696 2006-11-28  Jim Meyering  <jim@meyering.net>
65697
65698         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
65699         warning from "gcc -Wshadow" about shadowing the builtin.
65700
65701 2006-11-27  Bruno Haible  <bruno@clisp.org>
65702
65703         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
65704         _AC_COMPUTE_INT.
65705         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
65706
65707 2006-11-27  Bruno Haible  <bruno@clisp.org>
65708             Paul Eggert  <eggert@cs.ucla.edu>
65709
65710         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
65711
65712 2006-11-26  Bruno Haible  <bruno@clisp.org>
65713
65714         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
65715         noinst_LTLIBRARIES.
65716
65717 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
65718             Bruno Haible  <bruno@clisp.org>
65719
65720         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
65721         if compiling with "gcc -ansi".
65722
65723 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
65724
65725         Fix some incompatibilities with gcc -ansi -pedantic.
65726         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
65727         if compiling pedantically with GCC, unless it's C99 or later.
65728         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
65729         it mishandles gcc -ansi -pedantic as well.
65730         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
65731         if gcc -pedantic.
65732         * lib/regexec.c (check_node_accept_bytes): Don't use auto
65733         initializers for struct if -pedantic, unless it's C99 or later.
65734
65735 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
65736
65737         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
65738         Don't close an fd more than once. Identical atimes indicate
65739         success, not failure.
65740
65741 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
65742
65743         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
65744
65745 2006-11-23  Jim Meyering  <jim@meyering.net>
65746
65747         * build-aux/announce-gen: New file.  From coreutils.
65748
65749 2006-11-22  Jim Meyering  <jim@meyering.net>
65750
65751         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
65752         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
65753         (fts_read): Use a temporary to narrow the overused st_size member
65754         before using it in a switch statement.  Reported by Matthew Woehlke.
65755
65756         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
65757         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
65758
65759 2006-11-20  Bruno Haible  <bruno@clisp.org>
65760
65761         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
65762         changequote instead of pairs of brackets.
65763         Reported by Andreas Schwab <schwab@suse.de>.
65764
65765 2006-11-21  Jim Meyering  <jim@meyering.net>
65766
65767         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
65768         so as to remain compatible with older compilers.
65769         Patch from Michael Deutschmann.
65770
65771 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
65772
65773         * MODULES.html.sh (File system functions): Add openat.
65774
65775         * lib/openat.h (rpl_fstatat): New macro, if
65776         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
65777         (fstatat): Define to rpl_fstatat under the same conditions,
65778         unless COMPILING_FSTATAT.
65779         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
65780         seems to have the bug.
65781         * lib/fstatat.c: New file.
65782         * modules/openat (Files): Add it.
65783
65784 2006-11-20  Bruno Haible  <bruno@clisp.org>
65785
65786         * Makefile: New file.
65787
65788 2006-11-20  Jim Meyering  <jim@meyering.net>
65789
65790         The beginnings of syntax-related checks for gnulib.
65791         * lib/Makefile: New file.
65792         * lib/t-idcache: New script.  Ensure that the two halves of
65793         idcache.c stay in sync.
65794
65795         * lib/idcache.c: Adjust comments in user- and group- portions to
65796         be more accurate, and to be consistent with one another.
65797
65798 2006-11-20  Jim Meyering  <jim@meyering.net>
65799
65800         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
65801         continue using the flexible array member (thus, this module performs
65802         half as many malloc calls), with the addition that...
65803         (getgroup, getuser): Consistently record a non-match via an empty
65804         "name" string, and map an empty string match to a NULL return value.
65805         * modules/idcache (Depends-on): Re-add flexmember.
65806
65807         * lib/idcache.c (getuser): Remove all uses of the register keyword.
65808         (getuidbyname, getgroup, getgidbyname): Likewise.
65809
65810         Use cleaner syntax: NULL rather than 0.
65811         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
65812
65813 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
65814
65815         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
65816         It mishandled the case where the group was missing.
65817         Problem reported by Greg Schafer.
65818         * modules/idcache: Likewise.
65819
65820 2006-11-18  Jim Meyering  <jim@meyering.net>
65821
65822         * check-module (%exempt_header): Add exception for some
65823         conditionally-included headers.
65824
65825         * modules/i-ring (Depends-on): Add verify.
65826         (License): Change to LGPL.
65827
65828 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
65829
65830         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
65831         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
65832         and inttostr.h.  Use snprintf rather than uinttostr, so that
65833         LGPLed code doesn't depend on GPLed.
65834
65835 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
65836
65837         * modules/inline (License): Change from GPL to LGPL.
65838
65839 2006-11-17  Jim Meyering  <jim@meyering.net>
65840
65841         * modules/d-type (License): Switch to LGPL.
65842
65843 2006-11-15  Bruno Haible  <bruno@clisp.org>
65844
65845         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
65846
65847 2006-11-15  Eric Blake  <ebb9@byu.net>
65848
65849         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
65850         the module dependency.
65851
65852 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65853             Bruno Haible  <bruno@clisp.org>
65854
65855         * gnulib-tool (func_create_testdir): Add license consistency check.
65856
65857 2006-11-15  Eric Blake  <ebb9@byu.net>
65858
65859         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
65860         random "(cached)" in configure output.
65861
65862 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65863
65864         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
65865         test for conforming inttypes.h is both announced and cached.
65866
65867         * MODULES.html.sh (seen_modules, seen_files): New variables.
65868         (func_module): Rewrite to use a few less gnulib-tool and sed
65869         invocations.  Avoid a couple of quadratic algorithms for ...
65870         (missed_modules, missed_files): ... these, with ...
65871         (func_append, func_tmpdir): ... these new functions, from
65872         gnulib-tool.  Analogously, install traps for cleanup.
65873
65874         * tests/test-gc.c (main): Remove unused variables.
65875         * tests/test-read-file.c: Include stdlib.h, for 'free'.
65876
65877 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
65878
65879         * modules/inttostr (License): Change to LGPL.
65880
65881 2006-11-14  Eric Blake  <ebb9@byu.net>
65882
65883         * modules/tempname (License): Change to LGPL.
65884
65885 2006-11-14  Eric Blake  <ebb9@byu.net>
65886
65887         * doc/functions.texi (Function Portability): *printf functions on
65888         Cygwin now understand all POSIX size specifiers.
65889
65890 2006-11-14  Bruno Haible  <bruno@clisp.org>
65891
65892         * modules/c-ctype (License): Change to LGPL.
65893
65894 2006-11-12  Bruno Haible  <bruno@clisp.org>
65895
65896         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
65897         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
65898         for GNOME libraries, for which the include files are installed in
65899         subdirectories of $prefix/include.
65900
65901 2006-11-12  Bruno Haible  <bruno@clisp.org>
65902
65903         * m4/lib-link.m4: Require at least autoconf-2.54.
65904         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
65905         name to underscores for the --with option.
65906
65907 2006-11-13  Bruno Haible  <bruno@clisp.org>
65908
65909         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
65910         the tests directory.
65911         Reported by Ralf Wildenhues.
65912
65913 2006-11-13  Bruno Haible  <bruno@clisp.org>
65914
65915         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
65916         (func_emit_initmacro_end): Undo the override here.
65917         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
65918         Works around the famous automake error in coreutils.
65919
65920 2006-11-13  Eric Blake  <ebb9@byu.net>
65921
65922         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
65923         element, not its node.
65924
65925 2006-11-12  Bruno Haible  <bruno@clisp.org>
65926
65927         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
65928         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
65929
65930 2006-11-12  Bruno Haible  <bruno@clisp.org>
65931
65932         * gnulib-tool: New option --local-symlink.
65933         (func_usage): Document it.
65934         (lsymbolic): New variable.
65935         (func_import, func_create_testdir): If --symlink was not specified,
65936         test whether --local-symlink was specified and the file comes from
65937         the local_gnulib_dir.
65938
65939 2006-11-12  Bruno Haible  <bruno@clisp.org>
65940
65941         * gnulib-tool (func_ln): New function.
65942         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
65943
65944 2006-11-12  Bruno Haible  <bruno@clisp.org>
65945
65946         Finish support for source files in subdirectories.
65947         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
65948         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
65949         AUTOMAKE_OPTIONS.
65950         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
65951
65952 2006-11-12  Bruno Haible  <bruno@clisp.org>
65953
65954         * gnulib-tool (func_get_automake_snippet): Synthesize also an
65955         EXTRA_lib_SOURCES augmentation.
65956         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
65957
65958 2006-11-12  Jim Meyering  <jim@meyering.net>
65959
65960         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
65961         file descriptors.  This also averts a failure on systems with
65962         native openat support when a traversed directory lacks "x" access.
65963         * lib/fts_.h: Include "i-ring.h"
65964         (struct FTS) [fts_fd_ring]: New member.
65965         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
65966         (FCHDIR): Add parentheses.
65967         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
65968         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
65969         When descending, rather than simply closing the previous
65970         fts_cwd_fd value, push that file descriptor onto the ring.
65971         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
65972         (fts_open): Initialize the new fd_ring member.
65973         (fts_close): Clear the ring.
65974         (fts_safe_changedir): When possible, use our new fd_ring to skip
65975         the diropen and fstat and dev/ino comparison that would normally
65976         accompany a virtual `chdir ("..")'.
65977
65978         * modules/fts (Depends-on): Add i-ring.
65979         * modules/i-ring: New module.
65980         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
65981         * m4/i-ring.m4: New file.
65982
65983 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65984
65985         * gnulib-tool (func_create_testdir): Fix replacement of
65986         `build-aux' in configure.ac.  Run autotools in gltests
65987         subdirectory.
65988         (func_create_testdir, func_create_megatestdir, test): There is
65989         no need for '--force' in most autotool invocations in a new
65990         tree.  Actually fail the whole test if any of the tools, or the
65991         configure or make stages fail.
65992
65993         Sync from Automake.
65994         * build-aux/gnupload: Revert last change.  Add pointer to upload
65995         instructions of the GNU Maintenance Instructions.
65996         Suggestion by Karl Berry.
65997
65998 2006-11-10  Jim Meyering  <jim@meyering.net>
65999
66000         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
66001
66002 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
66003
66004         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
66005         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
66006         (bind_textdomain_codeset) [! ENABLE_NLS]:
66007         Evaluate all the arguments.  That way, callers get compatible behavior
66008         if the arguments have side effects.  Also, it avoids some GCC
66009         diagnostics in some cases; Joel E. Denny reported problems when Bison
66010         was configured with --enable-gcc-warnigs.
66011
66012 2006-11-10  Jim Meyering  <jim@meyering.net>
66013
66014         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
66015         relevant options in CFLAGS (like -O, -fno-inline) are taken into
66016         account.
66017
66018 2006-11-10  Jim Meyering  <jim@meyering.net>
66019
66020         * modules/inline: New file/module.
66021         * modules/xalloc (Files): Remove m4/inline.m4.
66022         (Depends-on): Add inline, instead.
66023         * modules/oset: Likewise.
66024         * modules/list: Likewise.
66025
66026 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
66027
66028         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
66029         Problem reported by Matthew Woehlke.
66030
66031 2006-11-09  Bruno Haible  <bruno@clisp.org>
66032
66033         * lib/tempname.c (gen_tempname): Remove variant that invokes
66034         __gen_tempname.
66035         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
66036         __gen_tempname.
66037
66038 2006-11-08  Bruno Haible  <bruno@clisp.org>
66039
66040         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
66041         to 'yes' instead of 'cross-compiling'.
66042
66043 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
66044
66045         * lib/quotearg.h (quotearg_free): New decl.
66046         * lib/quotearg.c (quotearg_free): New function.
66047         (slot0, nslots, slotvec0, slotvec):
66048         Now file-scope so that quotearg_free can get at them.
66049
66050 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66051
66052         Sync from Automake.
66053         * build-aux/gnupload: Add missing 'gnu' to example URL.
66054         Report by Karl Berry.
66055
66056 2006-11-08  Bruno Haible  <bruno@clisp.org>
66057
66058         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
66059         Suggested by Paul Eggert.
66060
66061 2006-11-08  Jim Meyering  <jim@meyering.net>
66062
66063         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
66064         It's already included if !_LIBC.
66065         (fts_safe_changedir): Add a comment.
66066
66067 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
66068
66069         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
66070         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
66071         Matthew Woehlke.
66072
66073         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
66074         definitions up, to avoid colliding with change below.
66075         (static_inline) [HAVE_INLINE]: New macro.
66076         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
66077         Provide extern decls when !HAVE_INLINE.  Do not define unless
66078         static_inline is defined, either by us or by xmalloc.c.  Use
66079         static_inline rather than static inline.
66080         (XCALLOC): Optimize sizeof(T) = 1 case.
66081         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
66082
66083 2006-11-07  Bruno Haible  <bruno@clisp.org>
66084
66085         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
66086         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
66087         AC_C_INLINE.
66088         * modules/xalloc (Files): Add m4/inline.m4.
66089
66090 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66091
66092         * README: Fix typo.
66093         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
66094         (Miscellanous Notes): ...from this.
66095
66096 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
66097
66098         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
66099         Mention that offsetof should be used instead of sizeof.
66100         From Bruno Haible.
66101
66102 2006-11-07  Bruno Haible  <bruno@clisp.org>
66103
66104         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
66105
66106 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
66107
66108         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
66109         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
66110         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
66111         (gl_tree_add_before, gl_tree_add_after):
66112         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
66113         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
66114         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
66115         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
66116         (gl_linked_add_after, gl_linked_add_at): Likewise.
66117         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
66118         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
66119         (gl_tree_add_before, gl_tree_add_after): Likewise.
66120         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
66121         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
66122         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
66123
66124 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66125
66126         * lib/gl_oset.h: Use C comment style, not C++ comment style.
66127
66128 2006-11-06  Bruno Haible  <bruno@clisp.org>
66129
66130         * m4/inline.m4: New file.
66131         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
66132         * modules/list (Files): Add m4/inline.m4.
66133         * modules/oset (Files): Likewise.
66134
66135 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
66136
66137         * lib/idcache.c: Include <stddef.h>, for offsetof.
66138         (struct userid.name): Change from char * to a flexible array member.
66139         All uses changed.
66140         * modules/idcache (Depends-on): Add flexmember.
66141
66142         * MODULES.html.sh (Core language properties): New module flexmember.
66143         * modules/flexmember, m4/flexmember.m4: New files.
66144
66145         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
66146         inline functions that are identical with the old xnmalloc_inline,
66147         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
66148         that we can avoid some unnecessary integer multiplications and
66149         divisions in the common case where the element size is known at
66150         compile time.
66151         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
66152         needed.
66153         (xnboundedmalloc): Remove.
66154         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
66155         arguments, for consistency with rest of this header.
66156         (xcharalloc): Rewrite using XNMALLOC.
66157         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
66158         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
66159         versions have been moved to lib/xalloc.h and renamed to be the
66160         non-*_inline versions.
66161         (xmalloc, xrealloc): Implement without reference to the xnmalloc
66162         and xnrealloc functions, since those functions are now inline and
66163         now call us.
66164         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
66165         renaming described above.
66166         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
66167         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
66168         captures the dependency in AC_C_INLINE.
66169
66170         New module canonicalize-lgpl, proposed by Charles Wilson in
66171         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
66172         with a few small changes afterwards.
66173         * MODULES.html.sh (File system functions): New module
66174         canonicalize-lgpl.
66175         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
66176         and canonicalize_file_name.
66177         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
66178         * modules/canonicalize-lgpl: New files.
66179
66180 2006-11-05  Bruno Haible  <bruno@clisp.org>
66181
66182         * gnulib-tool (func_import, func_create_testdir): Create directories
66183         also for files in subdirectories of lib/.
66184
66185 2006-11-05  Bruno Haible  <bruno@clisp.org>
66186
66187         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
66188         ANSI C compliant.
66189
66190 2006-11-03  Bruno Haible  <bruno@clisp.org>
66191
66192         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
66193         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
66194         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
66195         (xnboundedmalloc): New inline function.
66196         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
66197         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
66198         xmalloc.
66199         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
66200         xmalloc.
66201         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
66202         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
66203         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
66204         xmalloc.
66205         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
66206         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
66207         xmalloc.
66208         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
66209         gl_tree_add_after): Use XMALLOC instead of xmalloc.
66210         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
66211         xmalloc.
66212         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
66213         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
66214         gl_tree_add_after): Use XMALLOC instead of xmalloc.
66215         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
66216         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
66217         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
66218         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
66219
66220 2006-11-03  Bruno Haible  <bruno@clisp.org>
66221
66222         * lib/c-ctype.h [C++]: Define functions without name mangling.
66223         * lib/fwriteerror.h [C++]: Likewise.
66224         * lib/gcd.h [C++]: Likewise.
66225         * lib/linebreak.h [C++]: Likewise.
66226
66227 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
66228
66229         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
66230         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
66231         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
66232         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
66233         Check for functions and headers just once.
66234         Check for declaration of canonicalize_file_name.
66235         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
66236
66237 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
66238
66239         * gnulib-tool (func_import): Fix typo in actioncmd.
66240
66241 2006-11-02  Bruno Haible  <bruno@clisp.org>
66242
66243         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
66244         newline sequence in the Makefile.am snippet as a space, like "make"
66245         does.
66246         Reported by Roger Persson <perrog@gmail.com>.
66247
66248 2006-11-01  Bruno Haible  <bruno@clisp.org>
66249
66250         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
66251         already declared in <string.h>.
66252         * lib/strcase.h (strncasecmp): Don't declare it if yes.
66253
66254 2006-11-01  Bruno Haible  <bruno@clisp.org>
66255
66256         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
66257         * lib/strcase.h: Include <string.h>.
66258         (strcasecmp): Define to rpl_strcasecmp here.
66259
66260 2006-11-01  Bruno Haible  <bruno@clisp.org>
66261
66262         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
66263
66264 2006-11-01  Eric Blake  <ebb9@byu.net>
66265
66266         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
66267
66268         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
66269
66270 2006-10-29  Bruno Haible  <bruno@clisp.org>
66271
66272         Make it compile in C++ mode.
66273         * lib/full-write.c (full_rw): Add a cast.
66274
66275 2006-11-01  Bruno Haible  <bruno@clisp.org>
66276
66277         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
66278         be POSIX compliant.
66279         Reported by Roger Persson <perrog@gmail.com>.
66280
66281 2006-11-01  Eric Blake  <ebb9@byu.net>
66282
66283         * lib/getopt_.h: Fix comments.
66284
66285 2006-10-31  Eric Blake  <ebb9@byu.net>
66286
66287         * modules/tmpdir (Depends-on): Add sys_stat.
66288         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
66289         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
66290         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
66291         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
66292         tempname.
66293
66294 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
66295
66296         Avoid some C++ diagnostics reported by Bruno Haible.
66297         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
66298         xmalloc.
66299         (quotearg_alloc): Use xcharalloc rather than xmalloc.
66300         (struct slotvec): Move to top level.
66301         (quotearg_n_options): Rewrite to avoid xmalloc.
66302         * lib/xalloc.h (xcharalloc): New function.
66303         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
66304         [defined __cplusplus]: Add function template that provides result
66305         type propagation.  This part of the change is from Bruno Haible.
66306
66307 2006-10-29  Bruno Haible  <bruno@clisp.org>
66308
66309         Make it compile in C++ mode.
66310         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
66311         * lib/strnlen1.c (strnlen1): Cast memchr result.
66312         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
66313         * lib/clean-temp.c (string_equals, string_hash): Add casts.
66314         (create_temp_dir): Rename local variable 'template'.
66315         (compile_csharp_using_sscli): Add cast.
66316         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
66317         * lib/findprog.c (find_in_path): Likewise.
66318         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
66319         * lib/wait-process.c (register_slave_subprocess): Likewise.
66320
66321 2006-10-22  Bruno Haible  <bruno@clisp.org>
66322
66323         * modules/tsearch: New file.
66324         * lib/tsearch.h: New file.
66325         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
66326         * m4/tsearch.m4: New file.
66327         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
66328
66329 2006-10-29  Eric Blake  <ebb9@byu.net>
66330
66331         * lib/arcfour.c: Assume config.h.
66332         * lib/arctwo.c: Likewise.
66333         * lib/base64.c: Likewise.
66334         * lib/check-version.c: Likewise.
66335         * lib/crc.c: Likewise.
66336         * lib/des.c: Likewise.
66337         * lib/gc-gnulib.c: Likewise.
66338         * lib/gc-libgcrypt.c: Likewise.
66339         * lib/gc-pbkdf2-sha1.c: Likewise.
66340         * lib/getaddrinfo.c: Likewise.
66341         * lib/getdelim.c: Likewise.
66342         * lib/getline.c: Likewise.
66343         * lib/hmac-md5.c: Likewise.
66344         * lib/hmac-sha1.c: Likewise.
66345         * lib/iconvme.c: Likewise.
66346         * lib/md2.c: Likewise.
66347         * lib/md4.c: Likewise.
66348         * lib/memxor.c: Likewise.
66349         * lib/read-file.c: Likewise.
66350         * lib/readline.c: Likewise.
66351         * lib/rijndael-alg-fst.c: Likewise.
66352         * lib/rijndael-api-fst.c: Likewise.
66353         * lib/xgetdomainname.c: Likewise.
66354
66355 2006-10-28  Eric Blake  <ebb9@byu.net>
66356
66357         * lib/xstrndup.c: Assume config.h.
66358
66359 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
66360
66361         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
66362         stat-macros.h is now for our own macros, whereas stat_h is for
66363         macros in the <sys/stat.h> name space.
66364         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
66365         (STAT_MACROS_H): Remove.
66366         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
66367         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
66368         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
66369         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
66370         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
66371         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
66372         Move these macros to ...
66373         * lib/stat_.h: here.  Don't include stat-macros.h.
66374         * lib/canonicalize.c: Don't include stat-macros.h.
66375         * lib/chown.c: Likewise.
66376         * lib/euidaccess.c: Likewise.
66377         * lib/file-type.c: Likewise.
66378         * lib/filemode.c: Likewise.
66379         * lib/glob.c: Likewise.
66380         * lib/isapipe.c: Likewise.
66381         * lib/lchown.c: Likewise.
66382         * lib/lstat.c: Likewise.
66383         * lib/mkdir-p.c: Likewise.
66384         * lib/rmdir.c: Likewise.
66385         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
66386         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
66387         unless mkdir isn't declared, to speed up 'configure'.
66388         Always create sys/stat.h, since it's unlikely any real sys/stat.h
66389         would define all the S_* symbols.
66390         * modules/canonicalize (Depends-on):
66391         Depend on sys_stat, not stat-macros.
66392         * modules/chown: Likewise.
66393         * modules/euidaccess: Likewise.
66394         * modules/filemode: Likewise.
66395         * modules/file-type: Likewise.
66396         * modules/glob: Likewise.
66397         * modules/isapipe: Likewise.
66398         * modules/lchown: Likewise.
66399         * modules/lstat: Likewise.
66400         * modules/mkancesdirs: Likewise.
66401         * modules/rmdir: Likewise.
66402         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
66403         * modules/modechange: Likewise.
66404         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
66405         (configure.ac): Remove gl_STAT_MACROS.
66406         * modules/sys_stat (Depends-on): Remove stat-macros.
66407
66408 2006-10-27  Bruno Haible  <bruno@clisp.org>
66409
66410         * m4/signed.m4: Remove file.
66411         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
66412         invocation.
66413         * modules/vasnprintf (Files): Remove m4/signed.m4.
66414
66415 2006-10-27  Bruno Haible  <bruno@clisp.org>
66416
66417         Update to GNU gettext 0.16.
66418         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
66419         m4/inttypes-h.m4, m4/signed.m4.
66420         * m4/gettext.m4: Update to GNU gettext 0.16.
66421         * m4/intl.m4: New file, from GNU gettext.
66422         * m4/intldir.m4: New file, from GNU gettext.
66423         * config/srclist.txt: Update
66424
66425 2006-10-27  Eric Blake  <ebb9@byu.net>
66426
66427         * MODULES.html.sh: Document tempname.
66428         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
66429         dependencies.
66430         (Files): Move lib/tempname.c...
66431         * modules/tempname: ...to this new module.
66432         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
66433         (gl_PREREQ_TEMPNAME): Move...
66434         * m4/tempname.m4: ...to this new file.
66435         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
66436         * modules/sys_stat (Depends-on): Add stat-macros.
66437         * lib/stat_.h (includes): Pick up stat macros.
66438         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
66439         if stat macros are broken.
66440         * lib/tempname.c (includes): No need to include "stat-macros.h".
66441         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
66442         (direxists, __path_search) [!_LIBC]: Don't compile these in
66443         gnulib; the tmpdir module covers that.
66444         * lib/tempname.h: New file.
66445
66446 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
66447
66448         * COPYING: Explain how gnulib-tool converts licence headers.
66449         Almost all wording by Eric Blake.
66450
66451 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
66452
66453         * lib/mbchar.h (is_basic_table): Make read-only.
66454         * lib/mbchar.c (is_basic_table): Likewise.
66455         Reported by John Darrington.
66456
66457 2006-10-25  Bruno Haible  <bruno@clisp.org>
66458
66459         * lib/progname.h (set_program_name): Undefine before defining.
66460
66461 2006-10-25  Bruno Haible  <bruno@clisp.org>
66462
66463         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
66464         false for non-gcc C++ compilers.
66465         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
66466
66467 2006-10-24  Bruno Haible  <bruno@clisp.org>
66468
66469         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
66470         iconv implementations like Irix iconv.
66471
66472 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
66473
66474         * modules/vararrays: New file.
66475         * m4/vararrays.m4: New file, taken from diffutils.
66476         * MODULES.html.sh: New module vararrays.
66477
66478 2006-10-24  Karl Berry  <karl@gnu.org>
66479
66480         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
66481         Don't call GNU Unix.
66482
66483 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66484
66485         * users.txt: Add Libtool.
66486
66487         Sync from Libtool:
66488
66489         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
66490
66491         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
66492         to gnulib's policy of including config.h unconditionally.
66493
66494 2006-10-24  Bruno Haible  <bruno@clisp.org>
66495
66496         * modules/wcwidth (Files): Add m4/wint_t.m4.
66497         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
66498         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
66499
66500 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
66501
66502         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
66503         to pacify GCC with some -W flags enabled.  Problem reported by
66504         Bruno Haible.
66505
66506 2006-10-24  Jim Meyering  <jim@meyering.net>
66507
66508         * MODULES.html.sh: Remove uinttostr.  It's not a module.
66509         Reported by Karl Berry.
66510
66511 2006-10-23  Bruno Haible  <bruno@clisp.org>
66512
66513         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
66514
66515 2006-10-24  Bruno Haible  <bruno@clisp.org>
66516
66517         * lib/gl_list.h: Use C comment style, not C++ comment style.
66518
66519 2006-10-23  Eric Blake  <ebb9@byu.net>
66520
66521         * lib/getaddrinfo.c (includes): Add missing include.
66522
66523 2006-10-23  Bruno Haible  <bruno@clisp.org>
66524             Paul Eggert  <eggert@cs.ucla.edu>
66525
66526         Ability to rename obstack_free.
66527         * lib/obstack.h (__obstack_free): New macro. Declare instead of
66528         obstack_free.
66529         (obstack_free): Invoke the __obstack_free macro.
66530         * lib/obstack.c (obstack_free): Use __obstack_free macro.
66531
66532 2006-10-23  Bruno Haible  <bruno@clisp.org>
66533             Paul Eggert  <eggert@cs.ucla.edu>
66534
66535         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
66536         __argc, __argv from the declaration. (They are defined as macros on
66537         mingw.)
66538
66539 2006-10-22  Bruno Haible  <bruno@clisp.org>
66540
66541         * doc/gnulib-intro.texi: New file.
66542         * doc/gnulib.texi: Include it.
66543
66544 2006-10-21  Bruno Haible  <bruno@clisp.org>
66545
66546         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
66547         "Introduction", "Miscellanous Notes", "Particular Modules".
66548
66549 2006-10-21  Bruno Haible  <bruno@clisp.org>
66550
66551         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66552         Change mostlyclean-local rule to avoid sh syntax error from bash
66553         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
66554
66555 2006-10-23  Jim Meyering  <jim@meyering.net>
66556
66557         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
66558         in place of snprintf.
66559
66560         * modules/inttostr (Files): Add lib/uinttostr.c.
66561         * lib/uinttostr.c (inttostr): New file/function.
66562         * lib/inttostr.h (uinttostr): Declare.
66563         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
66564         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
66565         Add uinttostr.
66566         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
66567
66568 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
66569
66570         * lib/canonicalize.c (ELOOP): Define if not already defined.
66571         Problem reported by Bruno Haible in
66572         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
66573
66574 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
66575
66576         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
66577         Problem reported by Perry Smith and Ville Laurikari.
66578
66579         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
66580         uses.
66581
66582 2006-10-19  Bruno Haible  <bruno@clisp.org>
66583
66584         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
66585         for mingw.
66586
66587 2006-10-19  Bruno Haible  <bruno@clisp.org>
66588
66589         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
66590         Needed for mingw.
66591
66592 2006-10-19  Bruno Haible  <bruno@clisp.org>
66593
66594         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
66595
66596 2006-10-19  Bruno Haible  <bruno@clisp.org>
66597
66598         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
66599         it.
66600
66601 2006-10-19  Bruno Haible  <bruno@clisp.org>
66602
66603         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
66604         invocation.
66605
66606 2006-10-19  Bruno Haible  <bruno@clisp.org>
66607
66608         * gnulib-tool (func_create_testdir): Don't include ftruncate and
66609         mountlist by default.
66610
66611 2006-10-16  Bruno Haible  <bruno@clisp.org>
66612
66613         * lib/c-strstr.c: Include c-strstr.h.
66614
66615 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
66616
66617         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
66618         in a slash.
66619
66620 2006-10-18  Bruno Haible  <bruno@clisp.org>
66621
66622         * lib/lock.h [C++]: Wrap definitions in extern "C".
66623
66624 2006-10-18  Bruno Haible  <bruno@clisp.org>
66625
66626         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
66627         gl_LIBOBJS list.
66628
66629 2006-10-18  Bruno Haible  <bruno@clisp.org>
66630
66631         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
66632
66633 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
66634
66635         * lib/xstrtol.h: Include gettext.h.
66636         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
66637         Problem reported by Eric Blake.
66638         * modules/xstrtol (Depends-on): Add gettext-h.
66639
66640 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
66641
66642         * lib/strftime.c (advance): New macro.
66643         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
66644         incomplete type, so you can't add 0 to it.  Problem and patch
66645         reported by Eelco Dolstra for dietlibc.
66646
66647 2006-10-18  Jim Meyering  <jim@meyering.net>
66648
66649         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
66650         type for a local, and rename it: s/up/user_proc/.
66651
66652 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
66653
66654         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
66655         READ_UTMP_USER_PROCESS.
66656         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
66657
66658 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
66659
66660         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
66661         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
66662
66663 2006-10-17  Eric Blake  <ebb9@byu.net>
66664
66665         * lib/sigprocmask.c (sigprocmask): Fix typo.
66666
66667         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
66668
66669         * modules/clean-temp (Makefile.am): Don't add to make output...
66670         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
66671         config.h.
66672
66673 2006-10-17  Bruno Haible  <bruno@clisp.org>
66674
66675         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
66676         differently if DEFAULT_TEXT_DOMAIN is set.
66677
66678 2006-10-16  Bruno Haible  <bruno@clisp.org>
66679
66680         * lib/clean-temp.c: Include fwriteerror.h.
66681
66682 2006-10-16  Bruno Haible  <bruno@clisp.org>
66683
66684         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
66685
66686 2006-10-16  Bruno Haible  <bruno@clisp.org>
66687
66688         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
66689         * lib/sigprocmask.h: Include <sys/types.h>.
66690         (sigset_t): Use the system's definition if present.
66691
66692 2006-10-17  Eric Blake  <ebb9@byu.net>
66693
66694         * lib/xvasprintf.c (includes): Assume config.h.
66695         * lib/xasprintf.c (includes): Likewise.
66696
66697 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
66698
66699         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
66700         at least as wide as intmax_t.
66701
66702 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
66703
66704         (Imported from Automake.)
66705         * build-aux/gnupload: Update to version 1.1 of directive file.
66706
66707 2006-10-16  Eric Blake  <ebb9@byu.net>
66708
66709         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
66710         match Automake 1.10a.
66711
66712 2006-10-14  Bruno Haible  <bruno@clisp.org>
66713
66714         * modules/sigprocmask: New file.
66715         * lib/sigprocmask.h: New file.
66716         * lib/sigprocmask.c: New file.
66717         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
66718         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
66719         request sigprocmask.o.
66720         (gl_PREREQ_SIGPROCMASK): New macro.
66721         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
66722         (Depends-on): Add sigprocmask.
66723         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
66724         gt_SIGNALBLOCKING. Test for 'raise' only once.
66725         * lib/fatal-signal.c: Include sigprocmask.h.
66726         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
66727         unblock_fatal_signals): Define always.
66728         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
66729         sigprocmask.
66730
66731 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
66732
66733         Sync from Automake.
66734         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
66735         which incorrectly sets the mode of an existing destination
66736         directory.  In some cases the unpatched install-sh could do the
66737         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
66738         system.  We hope this is rare in practice, but it's clearly worth
66739         fixing.  Problem reported by Alex Unleashed in
66740         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
66741         Also, don't bother to check for -m bugs unless we're using -m;
66742         suggested by Stepan Kasal.
66743
66744 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66745
66746         Sync from Automake.
66747         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
66748         `-c' flag, so they appear at the same position as in %FASTDEP%
66749         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
66750         which ignores unknown options only after the first non-option.
66751         Bug report against M4 by Nelson H. F. Beebe.
66752
66753 2006-10-13  Jim Meyering  <jim@meyering.net>
66754
66755         Fix a bug in yesterday's change.
66756         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
66757         p->fts_statp->st_dev would be used uninitialized.
66758         Ensures that we always call fts_stat on the very first entry.
66759         Miklos Szeredi reported that find -xdev stopped working.
66760
66761 2006-10-12  Bruno Haible  <bruno@clisp.org>
66762
66763         * gnulib-tool (func_get_automake_snippet): Append an automatically
66764         computed EXTRA_DIST augmentation.
66765         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
66766         * modules/alloca-opt (Makefile.am): Likewise.
66767         * modules/allocsa (Makefile.am): Likewise.
66768         * modules/arcfour (Makefile.am): Likewise.
66769         * modules/arctwo (Makefile.am): Likewise.
66770         * modules/argmatch (Makefile.am): Likewise.
66771         * modules/argz (Makefile.am): Likewise.
66772         * modules/atexit (Makefile.am): Likewise.
66773         * modules/backupfile (Makefile.am): Likewise.
66774         * modules/byteswap (Makefile.am): Likewise.
66775         * modules/c-strtod (Makefile.am): Likewise.
66776         * modules/c-strtold (Makefile.am): Likewise.
66777         * modules/calloc (Makefile.am): Likewise.
66778         * modules/canon-host (Makefile.am): Likewise.
66779         * modules/canonicalize (Makefile.am): Likewise.
66780         * modules/chdir-long (Makefile.am): Likewise.
66781         * modules/chdir-safer (Makefile.am): Likewise.
66782         * modules/check-version (Makefile.am): Likewise.
66783         * modules/chown (Makefile.am): Likewise.
66784         * modules/cloexec (Makefile.am): Likewise.
66785         * modules/close-stream (Makefile.am): Likewise.
66786         * modules/closeout (Makefile.am): Likewise.
66787         * modules/crc (Makefile.am): Likewise.
66788         * modules/csharpexec (Makefile.am): Likewise.
66789         * modules/cycle-check (Makefile.am): Likewise.
66790         * modules/des (Makefile.am): Likewise.
66791         * modules/dev-ino (Makefile.am): Likewise.
66792         * modules/dirfd (Makefile.am): Likewise.
66793         * modules/dirname (Makefile.am): Likewise.
66794         * modules/dup2 (Makefile.am): Likewise.
66795         * modules/eealloc (Makefile.am): Likewise.
66796         * modules/error (Makefile.am): Likewise.
66797         * modules/euidaccess (Makefile.am): Likewise.
66798         * modules/exclude (Makefile.am): Likewise.
66799         * modules/exitfail (Makefile.am): Likewise.
66800         * modules/fcntl-safer (Makefile.am): Likewise.
66801         * modules/fcntl (Makefile.am): Likewise.
66802         * modules/file-type (Makefile.am): Likewise.
66803         * modules/fileblocks (Makefile.am): Likewise.
66804         * modules/filemode (Makefile.am): Likewise.
66805         * modules/filenamecat (Makefile.am): Likewise.
66806         * modules/fnmatch (Makefile.am): Likewise.
66807         * modules/fopen-safer (Makefile.am): Likewise.
66808         * modules/fpending (Makefile.am): Likewise.
66809         * modules/fprintftime (Makefile.am): Likewise.
66810         * modules/free (Makefile.am): Likewise.
66811         * modules/fsusage (Makefile.am): Likewise.
66812         * modules/ftruncate (Makefile.am): Likewise.
66813         * modules/fts (Makefile.am): Likewise.
66814         * modules/gc-arcfour (Makefile.am): Likewise.
66815         * modules/gc-des (Makefile.am): Likewise.
66816         * modules/gc-hmac-md5 (Makefile.am): Likewise.
66817         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
66818         * modules/gc-md4 (Makefile.am): Likewise.
66819         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
66820         * modules/gc-sha1 (Makefile.am): Likewise.
66821         * modules/gc (Makefile.am): Likewise.
66822         * modules/getaddrinfo (Makefile.am): Likewise.
66823         * modules/getcwd (Makefile.am): Likewise.
66824         * modules/getdelim (Makefile.am): Likewise.
66825         * modules/getdomainname (Makefile.am): Likewise.
66826         * modules/getgroups (Makefile.am): Likewise.
66827         * modules/gethostname (Makefile.am): Likewise.
66828         * modules/gethrxtime (Makefile.am): Likewise.
66829         * modules/getline (Makefile.am): Likewise.
66830         * modules/getloadavg (Makefile.am): Likewise.
66831         * modules/getlogin_r (Makefile.am): Likewise.
66832         * modules/getndelim2 (Makefile.am): Likewise.
66833         * modules/getopt (Makefile.am): Likewise.
66834         * modules/getpagesize (Makefile.am): Likewise.
66835         * modules/getpass-gnu (Makefile.am): Likewise.
66836         * modules/getpass (Makefile.am): Likewise.
66837         * modules/getsubopt (Makefile.am): Likewise.
66838         * modules/gettime (Makefile.am): Likewise.
66839         * modules/gettimeofday (Makefile.am): Likewise.
66840         * modules/getugroups (Makefile.am): Likewise.
66841         * modules/getusershell (Makefile.am): Likewise.
66842         * modules/glob (Makefile.am): Likewise.
66843         * modules/group-member (Makefile.am): Likewise.
66844         * modules/hard-locale (Makefile.am): Likewise.
66845         * modules/hash (Makefile.am): Likewise.
66846         * modules/hmac-md5 (Makefile.am): Likewise.
66847         * modules/hmac-sha1 (Makefile.am): Likewise.
66848         * modules/human (Makefile.am): Likewise.
66849         * modules/idcache (Makefile.am): Likewise.
66850         * modules/imaxabs (Makefile.am): Likewise.
66851         * modules/imaxdiv (Makefile.am): Likewise.
66852         * modules/inet_ntop (Makefile.am): Likewise.
66853         * modules/inet_pton (Makefile.am): Likewise.
66854         * modules/intprops (Makefile.am): Likewise.
66855         * modules/inttostr (Makefile.am): Likewise.
66856         * modules/inttypes (Makefile.am): Likewise.
66857         * modules/isapipe (Makefile.am): Likewise.
66858         * modules/javaversion (Makefile.am): Likewise.
66859         * modules/lchmod (Makefile.am): Likewise.
66860         * modules/lchown (Makefile.am): Likewise.
66861         * modules/localcharset (Makefile.am): Likewise.
66862         * modules/long-options (Makefile.am): Likewise.
66863         * modules/lstat (Makefile.am): Likewise.
66864         * modules/malloc (Makefile.am): Likewise.
66865         * modules/mathl (Makefile.am): Likewise.
66866         * modules/mbchar (Makefile.am): Likewise.
66867         * modules/md2 (Makefile.am): Likewise.
66868         * modules/md4 (Makefile.am): Likewise.
66869         * modules/md5 (Makefile.am): Likewise.
66870         * modules/memcasecmp (Makefile.am): Likewise.
66871         * modules/memchr (Makefile.am): Likewise.
66872         * modules/memcmp (Makefile.am): Likewise.
66873         * modules/memcoll (Makefile.am): Likewise.
66874         * modules/memcpy (Makefile.am): Likewise.
66875         * modules/memmem (Makefile.am): Likewise.
66876         * modules/memmove (Makefile.am): Likewise.
66877         * modules/mempcpy (Makefile.am): Likewise.
66878         * modules/memrchr (Makefile.am): Likewise.
66879         * modules/memset (Makefile.am): Likewise.
66880         * modules/memxor (Makefile.am): Likewise.
66881         * modules/mkancesdirs (Makefile.am): Likewise.
66882         * modules/mkdir-p (Makefile.am): Likewise.
66883         * modules/mkdir (Makefile.am): Likewise.
66884         * modules/mkdtemp (Makefile.am): Likewise.
66885         * modules/mkstemp (Makefile.am): Likewise.
66886         * modules/mktime (Makefile.am): Likewise.
66887         * modules/modechange (Makefile.am): Likewise.
66888         * modules/mountlist (Makefile.am): Likewise.
66889         * modules/nanosleep (Makefile.am): Likewise.
66890         * modules/obstack (Makefile.am): Likewise.
66891         * modules/openat (Makefile.am): Likewise.
66892         * modules/pagealign_alloc (Makefile.am): Likewise.
66893         * modules/pathmax (Makefile.am): Likewise.
66894         * modules/physmem (Makefile.am): Likewise.
66895         * modules/poll (Makefile.am): Likewise.
66896         * modules/posixtm (Makefile.am): Likewise.
66897         * modules/posixver (Makefile.am): Likewise.
66898         * modules/putenv (Makefile.am): Likewise.
66899         * modules/quote (Makefile.am): Likewise.
66900         * modules/quotearg (Makefile.am): Likewise.
66901         * modules/raise (Makefile.am): Likewise.
66902         * modules/read-file (Makefile.am): Likewise.
66903         * modules/readline (Makefile.am): Likewise.
66904         * modules/readlink (Makefile.am): Likewise.
66905         * modules/readtokens (Makefile.am): Likewise.
66906         * modules/readutmp (Makefile.am): Likewise.
66907         * modules/realloc (Makefile.am): Likewise.
66908         * modules/regex (Makefile.am): Likewise.
66909         * modules/rename-dest-slash (Makefile.am): Likewise.
66910         * modules/rename (Makefile.am): Likewise.
66911         * modules/rijndael (Makefile.am): Likewise.
66912         * modules/rmdir (Makefile.am): Likewise.
66913         * modules/rpmatch (Makefile.am): Likewise.
66914         * modules/safe-read (Makefile.am): Likewise.
66915         * modules/safe-write (Makefile.am): Likewise.
66916         * modules/same-inode (Makefile.am): Likewise.
66917         * modules/same (Makefile.am): Likewise.
66918         * modules/save-cwd (Makefile.am): Likewise.
66919         * modules/savedir (Makefile.am): Likewise.
66920         * modules/setenv (Makefile.am): Likewise.
66921         * modules/settime (Makefile.am): Likewise.
66922         * modules/sha1 (Makefile.am): Likewise.
66923         * modules/sig2str (Makefile.am): Likewise.
66924         * modules/snprintf (Makefile.am): Likewise.
66925         * modules/stat-macros (Makefile.am): Likewise.
66926         * modules/stat-time (Makefile.am): Likewise.
66927         * modules/stdbool (Makefile.am): Likewise.
66928         * modules/stdint (Makefile.am): Likewise.
66929         * modules/stdlib-safer (Makefile.am): Likewise.
66930         * modules/stpcpy (Makefile.am): Likewise.
66931         * modules/stpncpy (Makefile.am): Likewise.
66932         * modules/strcase (Makefile.am): Likewise.
66933         * modules/strcasestr (Makefile.am): Likewise.
66934         * modules/strchrnul (Makefile.am): Likewise.
66935         * modules/strcspn (Makefile.am): Likewise.
66936         * modules/strdup (Makefile.am): Likewise.
66937         * modules/strerror (Makefile.am): Likewise.
66938         * modules/strftime (Makefile.am): Likewise.
66939         * modules/strndup (Makefile.am): Likewise.
66940         * modules/strnlen (Makefile.am): Likewise.
66941         * modules/strpbrk (Makefile.am): Likewise.
66942         * modules/strsep (Makefile.am): Likewise.
66943         * modules/strstr (Makefile.am): Likewise.
66944         * modules/strtod (Makefile.am): Likewise.
66945         * modules/strtoimax (Makefile.am): Likewise.
66946         * modules/strtok_r (Makefile.am): Likewise.
66947         * modules/strtol (Makefile.am): Likewise.
66948         * modules/strtoll (Makefile.am): Likewise.
66949         * modules/strtoul (Makefile.am): Likewise.
66950         * modules/strtoull (Makefile.am): Likewise.
66951         * modules/strtoumax (Makefile.am): Likewise.
66952         * modules/strverscmp (Makefile.am): Likewise.
66953         * modules/sys_socket (Makefile.am): Likewise.
66954         * modules/sys_stat (Makefile.am): Likewise.
66955         * modules/sysexits (Makefile.am): Likewise.
66956         * modules/time_r (Makefile.am): Likewise.
66957         * modules/timegm (Makefile.am): Likewise.
66958         * modules/timespec (Makefile.am): Likewise.
66959         * modules/tmpfile-safer (Makefile.am): Likewise.
66960         * modules/trim (Makefile.am): Likewise.
66961         * modules/unistd-safer (Makefile.am): Likewise.
66962         * modules/unlinkdir (Makefile.am): Likewise.
66963         * modules/unlocked-io (Makefile.am): Likewise.
66964         * modules/userspec (Makefile.am): Likewise.
66965         * modules/utime (Makefile.am): Likewise.
66966         * modules/utimecmp (Makefile.am): Likewise.
66967         * modules/utimens (Makefile.am): Likewise.
66968         * modules/vasnprintf (Makefile.am): Likewise.
66969         * modules/vasprintf (Makefile.am): Likewise.
66970         * modules/vsnprintf (Makefile.am): Likewise.
66971         * modules/xalloc (Makefile.am): Likewise.
66972         * modules/xgetcwd (Makefile.am): Likewise.
66973         * modules/xnanosleep (Makefile.am): Likewise.
66974         * modules/xreadlink (Makefile.am): Likewise.
66975         * modules/xstrtod (Makefile.am): Likewise.
66976         * modules/xstrtol (Makefile.am): Likewise.
66977         * modules/xstrtold (Makefile.am): Likewise.
66978         * modules/yesno (Makefile.am): Likewise.
66979         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
66980
66981 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
66982
66983         * modules/error (Makefile.am): Distribute files through
66984         EXTRA_DIST, not lib_SOURCES.
66985
66986 2006-10-12  Eric Blake  <ebb9@byu.net>
66987
66988         * modules/error (Makefile.am): Distribute files in /lib.
66989         * modules/obstack (Makefile.am): Likewise.
66990
66991 2006-10-12  Bruno Haible  <bruno@clisp.org>
66992
66993         * modules/acl (Makefile.am): Distribute all files in lib/ through
66994         EXTRA_DIST.
66995         * modules/arcfour (Makefile.am): Likewise.
66996         * modules/arctwo (Makefile.am): Likewise.
66997         * modules/argmatch (Makefile.am): Likewise.
66998         * modules/argz (Makefile.am): Likewise.
66999         * modules/atexit (Makefile.am): Likewise.
67000         * modules/backupfile (Makefile.am): Likewise.
67001         * modules/c-strtod (Makefile.am): Likewise.
67002         * modules/c-strtold (Makefile.am): Likewise.
67003         * modules/calloc (Makefile.am): Likewise.
67004         * modules/canon-host (Makefile.am): Likewise.
67005         * modules/canonicalize (Makefile.am): Likewise.
67006         * modules/chdir-long (Makefile.am): Likewise.
67007         * modules/chdir-safer (Makefile.am): Likewise.
67008         * modules/check-version (Makefile.am): Likewise.
67009         * modules/chown (Makefile.am): Likewise.
67010         * modules/cloexec (Makefile.am): Likewise.
67011         * modules/close-stream (Makefile.am): Likewise.
67012         * modules/closeout (Makefile.am): Likewise.
67013         * modules/crc (Makefile.am): Likewise.
67014         * modules/cycle-check (Makefile.am): Likewise.
67015         * modules/des (Makefile.am): Likewise.
67016         * modules/dirfd (Makefile.am): Likewise.
67017         * modules/dirname (Makefile.am): Likewise.
67018         * modules/dup2 (Makefile.am): Likewise.
67019         * modules/euidaccess (Makefile.am): Likewise.
67020         * modules/exclude (Makefile.am): Likewise.
67021         * modules/exitfail (Makefile.am): Likewise.
67022         * modules/fcntl-safer (Makefile.am): Likewise.
67023         * modules/file-type (Makefile.am): Likewise.
67024         * modules/fileblocks (Makefile.am): Likewise.
67025         * modules/filemode (Makefile.am): Likewise.
67026         * modules/filenamecat (Makefile.am): Likewise.
67027         * modules/fnmatch (Makefile.am): Likewise.
67028         * modules/fopen-safer (Makefile.am): Likewise.
67029         * modules/fpending (Makefile.am): Likewise.
67030         * modules/fprintftime (Makefile.am): Likewise.
67031         * modules/free (Makefile.am): Likewise.
67032         * modules/fsusage (Makefile.am): Likewise.
67033         * modules/ftruncate (Makefile.am): Likewise.
67034         * modules/fts (Makefile.am): Likewise.
67035         * modules/gc (Makefile.am): Likewise.
67036         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
67037         * modules/getaddrinfo (Makefile.am): Likewise.
67038         * modules/getcwd (Makefile.am): Likewise.
67039         * modules/getdelim (Makefile.am): Likewise.
67040         * modules/getdomainname (Makefile.am): Likewise.
67041         * modules/getgroups (Makefile.am): Likewise.
67042         * modules/gethostname (Makefile.am): Likewise.
67043         * modules/gethrxtime (Makefile.am): Likewise.
67044         * modules/getline (Makefile.am): Likewise.
67045         * modules/getloadavg (Makefile.am): Likewise.
67046         * modules/getlogin_r (Makefile.am): Likewise.
67047         * modules/getopt (Makefile.am): Likewise.
67048         * modules/getpass (Makefile.am): Likewise.
67049         * modules/getpass-gnu (Makefile.am): Likewise.
67050         * modules/getsubopt (Makefile.am): Likewise.
67051         * modules/gettime (Makefile.am): Likewise.
67052         * modules/gettimeofday (Makefile.am): Likewise.
67053         * modules/getugroups (Makefile.am): Likewise.
67054         * modules/getusershell (Makefile.am): Likewise.
67055         * modules/glob (Makefile.am): Likewise.
67056         * modules/group-member (Makefile.am): Likewise.
67057         * modules/hard-locale (Makefile.am): Likewise.
67058         * modules/hash (Makefile.am): Likewise.
67059         * modules/hmac-md5 (Makefile.am): Likewise.
67060         * modules/hmac-sha1 (Makefile.am): Likewise.
67061         * modules/human (Makefile.am): Likewise.
67062         * modules/idcache (Makefile.am): Likewise.
67063         * modules/imaxabs (Makefile.am): Likewise.
67064         * modules/imaxdiv (Makefile.am): Likewise.
67065         * modules/inet_ntop (Makefile.am): Likewise.
67066         * modules/inet_pton (Makefile.am): Likewise.
67067         * modules/inttostr (Makefile.am): Likewise.
67068         * modules/isapipe (Makefile.am): Likewise.
67069         * modules/lchown (Makefile.am): Likewise.
67070         * modules/long-options (Makefile.am): Likewise.
67071         * modules/lstat (Makefile.am): Likewise.
67072         * modules/malloc (Makefile.am): Likewise.
67073         * modules/mathl (Makefile.am): Likewise.
67074         * modules/mbchar (Makefile.am): Likewise.
67075         * modules/md2 (Makefile.am): Likewise.
67076         * modules/md4 (Makefile.am): Likewise.
67077         * modules/md5 (Makefile.am): Likewise.
67078         * modules/memcasecmp (Makefile.am): Likewise.
67079         * modules/memchr (Makefile.am): Likewise.
67080         * modules/memcmp (Makefile.am): Likewise.
67081         * modules/memcoll (Makefile.am): Likewise.
67082         * modules/memcpy (Makefile.am): Likewise.
67083         * modules/memmem (Makefile.am): Likewise.
67084         * modules/memmove (Makefile.am): Likewise.
67085         * modules/mempcpy (Makefile.am): Likewise.
67086         * modules/memrchr (Makefile.am): Likewise.
67087         * modules/memset (Makefile.am): Likewise.
67088         * modules/memxor (Makefile.am): Likewise.
67089         * modules/mkancesdirs (Makefile.am): Likewise.
67090         * modules/mkdir (Makefile.am): Likewise.
67091         * modules/mkdir-p (Makefile.am): Likewise.
67092         * modules/mkdtemp (Makefile.am): Likewise.
67093         * modules/mkstemp (Makefile.am): Likewise.
67094         * modules/mktime (Makefile.am): Likewise.
67095         * modules/modechange (Makefile.am): Likewise.
67096         * modules/mountlist (Makefile.am): Likewise.
67097         * modules/nanosleep (Makefile.am): Likewise.
67098         * modules/openat (Makefile.am): Likewise.
67099         * modules/pagealign_alloc (Makefile.am): Likewise.
67100         * modules/physmem (Makefile.am): Likewise.
67101         * modules/poll (Makefile.am): Likewise.
67102         * modules/posixtm (Makefile.am): Likewise.
67103         * modules/posixver (Makefile.am): Likewise.
67104         * modules/putenv (Makefile.am): Likewise.
67105         * modules/quote (Makefile.am): Likewise.
67106         * modules/quotearg (Makefile.am): Likewise.
67107         * modules/raise (Makefile.am): Likewise.
67108         * modules/read-file (Makefile.am): Likewise.
67109         * modules/readline (Makefile.am): Likewise.
67110         * modules/readlink (Makefile.am): Likewise.
67111         * modules/readtokens (Makefile.am): Likewise.
67112         * modules/readutmp (Makefile.am): Likewise.
67113         * modules/realloc (Makefile.am): Likewise.
67114         * modules/regex (Makefile.am): Likewise.
67115         * modules/rename (Makefile.am): Likewise.
67116         * modules/rename-dest-slash (Makefile.am): Likewise.
67117         * modules/rijndael (Makefile.am): Likewise.
67118         * modules/rmdir (Makefile.am): Likewise.
67119         * modules/rpmatch (Makefile.am): Likewise.
67120         * modules/safe-read (Makefile.am): Likewise.
67121         * modules/safe-write (Makefile.am): Likewise.
67122         * modules/same (Makefile.am): Likewise.
67123         * modules/save-cwd (Makefile.am): Likewise.
67124         * modules/savedir (Makefile.am): Likewise.
67125         * modules/setenv (Makefile.am): Likewise.
67126         * modules/settime (Makefile.am): Likewise.
67127         * modules/sha1 (Makefile.am): Likewise.
67128         * modules/sig2str (Makefile.am): Likewise.
67129         * modules/snprintf (Makefile.am): Likewise.
67130         * modules/stdlib-safer (Makefile.am): Likewise.
67131         * modules/stpcpy (Makefile.am): Likewise.
67132         * modules/stpncpy (Makefile.am): Likewise.
67133         * modules/strcase (Makefile.am): Likewise.
67134         * modules/strcasestr (Makefile.am): Likewise.
67135         * modules/strchrnul (Makefile.am): Likewise.
67136         * modules/strcspn (Makefile.am): Likewise.
67137         * modules/strdup (Makefile.am): Likewise.
67138         * modules/strerror (Makefile.am): Likewise.
67139         * modules/strftime (Makefile.am): Likewise.
67140         * modules/strndup (Makefile.am): Likewise.
67141         * modules/strnlen (Makefile.am): Likewise.
67142         * modules/strpbrk (Makefile.am): Likewise.
67143         * modules/strsep (Makefile.am): Likewise.
67144         * modules/strstr (Makefile.am): Likewise.
67145         * modules/strtod (Makefile.am): Likewise.
67146         * modules/strtoimax (Makefile.am): Likewise.
67147         * modules/strtok_r (Makefile.am): Likewise.
67148         * modules/strtol (Makefile.am): Likewise.
67149         * modules/strtoll (Makefile.am): Likewise.
67150         * modules/strtoul (Makefile.am): Likewise.
67151         * modules/strtoull (Makefile.am): Likewise.
67152         * modules/strtoumax (Makefile.am): Likewise.
67153         * modules/strverscmp (Makefile.am): Likewise.
67154         * modules/time_r (Makefile.am): Likewise.
67155         * modules/timegm (Makefile.am): Likewise.
67156         * modules/tmpfile-safer (Makefile.am): Likewise.
67157         * modules/unistd-safer (Makefile.am): Likewise.
67158         * modules/unlinkdir (Makefile.am): Likewise.
67159         * modules/userspec (Makefile.am): Likewise.
67160         * modules/utime (Makefile.am): Likewise.
67161         * modules/utimecmp (Makefile.am): Likewise.
67162         * modules/utimens (Makefile.am): Likewise.
67163         * modules/vasnprintf (Makefile.am): Likewise.
67164         * modules/vasprintf (Makefile.am): Likewise.
67165         * modules/vsnprintf (Makefile.am): Likewise.
67166         * modules/xalloc (Makefile.am): Likewise.
67167         * modules/xgetcwd (Makefile.am): Likewise.
67168         * modules/xnanosleep (Makefile.am): Likewise.
67169         * modules/xreadlink (Makefile.am): Likewise.
67170         * modules/xstrtod (Makefile.am): Likewise.
67171         * modules/xstrtol (Makefile.am): Likewise.
67172         * modules/xstrtold (Makefile.am): Likewise.
67173         * modules/yesno (Makefile.am): Likewise.
67174
67175 2006-10-12  Jim Meyering  <jim@meyering.net>
67176
67177         * m4/getloadavg.m4: Revert the change below.
67178
67179         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
67180         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
67181         fail with a symlink, which is what coreutils' ./bootstrap now
67182         creates by default.
67183
67184 2006-10-12  Bruno Haible  <bruno@clisp.org>
67185
67186         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
67187         mingw.
67188         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
67189         MSVC and mingw explicitly.
67190
67191 2006-10-11  Simon Josefsson  <jas@extundo.com>
67192             Bruno Haible  <bruno@clisp.org>
67193
67194         Add support for multiple gnulib-tool invocations in the scope of a
67195         single configure.ac file.
67196         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
67197         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
67198         with the same contents as the _LIBADD variable.
67199         (func_emit_initmacro_start, func_emit_initmacro_end,
67200         func_emit_initmacro_done): New functions.
67201         (func_import, func_create_testdir): Invoke them. Allow the identifiers
67202         gl_LIBOBJS and gl_LTLIBOBJS.
67203
67204 2006-10-11  Bruno Haible  <bruno@clisp.org>
67205
67206         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
67207         (func_create_testdir): Don't create po/Makefile.am, don't invoke
67208         autoreconf. Instead, invoke autopoint explicitly but move back the
67209         *.m4 files from gnulib.
67210
67211 2006-10-11  Bruno Haible  <bruno@clisp.org>
67212
67213         * gnulib-tool (func_usage): Make module names after --create-testdir
67214         optional.
67215         (func_create_testdir): If no module was specified, use nearly all
67216         modules.
67217
67218 2006-10-12  Jim Meyering  <jim@meyering.net>
67219
67220         Big performance improvement for fts-based tools that use FTS_NOSTAT.
67221         Avoid spurious inode-mismatch problems on non-POSIX file systems.
67222         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
67223         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
67224         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
67225         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
67226         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
67227         (fts_set_stat_required): New function.
67228         (fts_open): Defer the calls to fts_stat, if possible or requested.
67229         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
67230         into fts_stat itself.
67231         (fts_read): Perform any required (deferred) fts_stat call.
67232         (fts_build): Likewise, for the directory we're about to open and read.
67233         In the readdir loop, carefully decide whether each entry will require
67234         an eventual call to fts_stat, using dirent.d_type info if available.
67235         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
67236         a command line argument into this function.  Update all callers.
67237         Map a return value of FTS_DOT to FTS_D for a command line argument.
67238         * modules/fts (Depends-on): Add d-type.  Alphabetize.
67239         Thanks to Miklos Szeredi for his tenacity and for the initial
67240         bug report about "find" failing on a FUSE-based file system.
67241
67242         * lib/fts.c (fts_open): Use consistent indentation.
67243
67244 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
67245
67246         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
67247         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
67248         reported by Jim Meyering.  All uses of cache variables renamed
67249         to match Autoconf's.
67250         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
67251         the other one.
67252
67253         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
67254         Fix misspelling in diagnostic.
67255
67256 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
67257
67258         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
67259         defined.  Problem reported by Matthew Woehlke.
67260
67261         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
67262         Add support for Tandem NonStop R series.
67263         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
67264         Use new macro.
67265
67266         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
67267         (has_trailing_slash): Omit size arg; all callers changed.
67268         Omit 'inline', since it doesn't help performance and we'd
67269         need to configure it.
67270         Don't count //, ///, etc. as having a trailing slash.
67271         As a side effect, this removes a C99ism reported by Matthew Woehlke.
67272         (rpl_rename_dest_slash): On failure, use rename's errno rather
67273         than (in some cases) an incorrect or junk errno.
67274         Simplify code by removing need to compute length; this does
67275         cause it to make two passes instead of one over the file name,
67276         but it's worth it.
67277
67278         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
67279         change, since Autoconf's version may no longer be appropriate now
67280         that we are using CVS Autoconf's version.  Add support for Tandem.
67281
67282 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
67283             Bruno Haible  <bruno@clisp.org>
67284
67285         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
67286         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
67287         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
67288         gl_AC_TYPE_LONG_LONG.
67289
67290         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
67291         instead of HAVE_LONG_LONG.
67292         * lib/printf-args.c (printf_fetchargs): Likewise.
67293         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
67294         * lib/vasnprintf.c (VASNPRINTF): Likewise.
67295         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
67296         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
67297         gl_AC_TYPE_LONG_LONG.
67298
67299 2006-10-11  Bruno Haible  <bruno@clisp.org>
67300
67301         * m4/longlong.m4: Add comments.
67302         * m4/ulonglong.m4: Likewise.
67303
67304 2006-10-10  Bruno Haible  <bruno@clisp.org>
67305
67306         Make it possible to #define stpcpy, strdup to aliases.
67307         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
67308         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
67309
67310 2006-10-10  Bruno Haible  <bruno@clisp.org>
67311
67312         Make it possible to #define gcd to an alias.
67313         * lib/gcd.c: Include config.h.
67314
67315 2006-10-10  Bruno Haible  <bruno@clisp.org>
67316
67317         Make it possible to #define c_isascii to an alias.
67318         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
67319         defined. Undefine the macros before defining them, to avoid gcc
67320         warnings.
67321         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
67322         define NO_C_CTYPE_MACROS early.
67323
67324 2006-10-10  Bruno Haible  <bruno@clisp.org>
67325
67326         Make it possible to #define set_program_name to an alias.
67327         * lib/progname.c: Don't undefine set_program_name; instead, undefine
67328         ENABLE_RELOCATABLE early.
67329
67330 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
67331
67332         Port to Tandem NSK OSS, which has 64-bit signed int but at most
67333         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
67334         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
67335         More generally, don't assume that 64-bit signed int is available
67336         if unsigned int is, and vice versa.
67337         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
67338         unsigned symbols, not on their signed counterparts.
67339         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
67340         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
67341         (UINT64_C, UINTMAX_C):
67342         Likewise.
67343         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
67344         unsigned counterparts.
67345         (Have_long_long, Unsigned): New macros.
67346         (Int): Renamed from INT.
67347         (strtoimax): Use the new macros.
67348         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
67349         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
67350         * modules/inttypes (inttypes.h): Substitute
67351         HAVE_UNSIGNED_LONG_LONG_INT.
67352         * modules/stdint (stdint.h): Likewise.
67353         (Files): Add m4/ulonglong.m4.
67354
67355 2006-10-10  Bruno Haible  <bruno@clisp.org>
67356
67357         Fix a gcc -Wshadow warning.
67358         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
67359         to 'bucket'.
67360         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
67361         gl_linked_indexof_from_to): Likewise.
67362         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
67363         Likewise.
67364         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
67365         Likewise.
67366         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
67367         Reported by Eric Blake.
67368
67369 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
67370
67371         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
67372         for NetBSD.  Problem reported by Bruno Haible.
67373
67374 2006-10-09  Jim Meyering  <jim@meyering.net>
67375
67376         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
67377         Patch from Bruno Haible.
67378
67379 2006-10-09  Jim Meyering  <jim@meyering.net>
67380
67381         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
67382         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
67383         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
67384
67385 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
67386
67387         Don't include <config.h> twice; this doesn't work in some cases,
67388         e.g., when config.h has "#define intmax_t long long int" and
67389         we include <config.h>, <inttypes.h>, <config.h> in that order.
67390         Problem reported by Matthew Woehlke in:
67391         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
67392         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
67393         * lib/fts-cycle.c: Don't include config.h.
67394         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
67395         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
67396         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
67397         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
67398         inttypes.h.
67399         * lib/xstrtoumax.c: Likewise.
67400         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
67401         __strtol and the like, so that this module is more like its siblings.
67402         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
67403         Remove; no longer needed now that we assume gnulib inttypes.h.
67404
67405 2006-10-08  Bruno Haible  <bruno@clisp.org>
67406
67407         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
67408         option.
67409
67410 2006-10-07  Jim Meyering  <jim@meyering.net>
67411
67412         * modules/inttypes (inttypes.h): Revert what seems to have been
67413         an inadvertent part of today's change: use "|", not "/" in the
67414         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
67415
67416 2006-10-07  Bruno Haible  <bruno@clisp.org>
67417
67418         * modules/sublist: New file.
67419
67420 2006-10-07  Bruno Haible  <bruno@clisp.org>
67421
67422         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
67423         * modules/argz (argz.h): Likewise.
67424         * modules/arpa_inet (arpa/inet.h): Likewise.
67425         * modules/byteswap (byteswap.h): Likewise.
67426         * modules/configmake (configmake.h): Likewise.
67427         * modules/fcntl (fcntl.h): Likewise.
67428         * modules/fnmatch (fnmatch.h): Likewise.
67429         * modules/getopt (getopt.h): Likewise.
67430         * modules/glob (glob.h): Likewise.
67431         * modules/inttypes (inttypes.h): Likewise.
67432         * modules/netinet_in (netinet/in.h): Likewise.
67433         * modules/poll (poll.h): Likewise.
67434         * modules/stdbool (stdbool.h): Likewise.
67435         * modules/stdint (stdint.h): Likewise.
67436         * modules/sys_select (sys/select.h): Likewise.
67437         * modules/sys_socket (sys/socket.h): Likewise.
67438         * modules/sys_stat (sys/stat.h): Likewise.
67439         * modules/sysexits (sysexits.h): Likewise.
67440         * modules/unistd (unistd.h): Likewise.
67441         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
67442         Add a "DO NOT EDIT" comment to the generated file.
67443         (func_import): Likewise for gnulib-comp.m4.
67444
67445 2006-10-07  Bruno Haible  <bruno@clisp.org>
67446
67447         * lib/gl_sublist.h: New file.
67448         * lib/gl_sublist.c: New file.
67449
67450 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
67451
67452         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
67453         name (relative to the original working directory) and the file
67454         name component (relative to the temporary working directory).  All
67455         callers changed.
67456         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
67457         * lib/mkdir-p.c (make_dir_parents): Likewise.
67458         * lib/mkdir-p.h (make_dir_parents): Likewise.
67459
67460 2006-10-06  Eric Blake  <ebb9@byu.net>
67461
67462         Define several macros for use by the clean-temp module.
67463         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
67464         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
67465         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
67466
67467         * lib/clean-temp.h (close_stream_temp): New declaration.
67468         * lib/clean-temp.c (includes): Pull in headers according to what
67469         other modules are in use.
67470         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
67471
67472 2006-10-06  Bruno Haible  <bruno@clisp.org>
67473
67474         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
67475         instead of fopen, fwriteerror.
67476
67477 2006-10-06  Bruno Haible  <bruno@clisp.org>
67478
67479         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
67480         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
67481         int.
67482         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
67483         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
67484         Return an error indicator.
67485         Suggested by Eric Blake.
67486
67487 2006-10-06  Bruno Haible  <bruno@clisp.org>
67488
67489         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
67490         Reported by Eric Blake.
67491
67492 2006-10-06  Bruno Haible  <bruno@clisp.org>
67493
67494         * modules/closeout (Description): Mention stderr too.
67495
67496 2006-10-06  Bruno Haible  <bruno@clisp.org>
67497         and Paul Eggert  <eggert@cs.ucla.edu>
67498
67499         * lib/closeout.c (close_stdout): Also close stderr.
67500         * lib/closeout.h: Update comment.
67501
67502 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
67503
67504         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
67505         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
67506         * lib/dirchownmod.c: Include lchown.h.
67507         * lib/lchown.c: Don't include files that lchown.h now includes.
67508         Don't declare chown, since lchown.h now does that.
67509         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
67510         (lchown): Define to rpl_chown if lchown is declared but
67511         does not exist.  Declare using a prototype if lchown is not
67512         declared.  Add a copyright notice.
67513         * lib/mkstemp.h: Include <unistd.h>.
67514         * lib/openat.c: Include lchown.h.
67515
67516         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
67517         we now test for that separately.
67518         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
67519         rather than O_NOFOLLOW, when testing whether it's possible to
67520         avoid a race condition reliably.
67521         * lib/savewd.c (savewd_chdir): Likewise.
67522
67523         Remove macros that are no longer needed now that stdint.h is
67524         reliable.
67525         * lib/fsusage.c (UINTMAX_MAX): Remove.
67526         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
67527         * lib/utimecmp.c (SIZE_MAX): Remove.
67528
67529         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
67530
67531         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
67532         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
67533         O_NOATIME works.
67534
67535 2006-10-05  Bruno Haible  <bruno@clisp.org>
67536
67537         * lib/gl_list.h (gl_sortedlist_search_from_to,
67538         gl_sortedlist_indexof_from_to): New declarations.
67539         (gl_list_implementation): New fields sortedlist_search_from_to,
67540         sortedlist_indexof_from_to.
67541         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
67542         inline functions.
67543         * lib/gl_list.c (gl_sortedlist_search_from_to,
67544         gl_sortedlist_indexof_from_to): New functions.
67545         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
67546         function.
67547         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
67548         (gl_array_sortedlist_search_from_to): New function.
67549         (gl_array_list_implementation): Update.
67550         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
67551         function.
67552         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
67553         (gl_carray_sortedlist_search_from_to): New function.
67554         (gl_carray_list_implementation): Update.
67555         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
67556         gl_linked_sortedlist_indexof_from_to): New functions.
67557         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
67558         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
67559         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
67560         gl_tree_sortedlist_indexof_from_to): New functions.
67561         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
67562         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
67563         Update.
67564         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
67565         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
67566         Update.
67567
67568 2006-10-05  Bruno Haible  <bruno@clisp.org>
67569
67570         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
67571         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
67572         (struct gl_list_implementation): Add fields search_from_to,
67573         indexof_from_to. Remove fields search, indexof.
67574         (gl_list_search): Use the search_from_to method.
67575         (gl_list_search_from, gl_list_search_from_to): New functions.
67576         (gl_list_indexof): Use the indexof_from_to method.
67577         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
67578         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
67579         (gl_list_search_from, gl_list_search_from_to): New functions.
67580         (gl_list_indexof): Use the indexof_from_to method.
67581         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
67582         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
67583         gl_array_indexof. Add start_index, end_index arguments.
67584         (gl_array_search_from_to): Renamed from gl_array_search. Add
67585         start_index, end_index arguments.
67586         (gl_array_remove, gl_array_list_implementation): Update.
67587         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
67588         gl_carray_indexof. Add start_index, end_index arguments.
67589         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
67590         start_index, end_index arguments.
67591         (gl_carray_remove, gl_carray_list_implementation): Update.
67592         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
67593         gl_linked_search. Add start_index, end_index arguments.
67594         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
67595         start_index, end_index arguments.
67596         (gl_linked_remove): Update.
67597         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
67598         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
67599         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
67600         field to 'size_t'.
67601         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
67602         gl_tree_search. Add start_index, end_index arguments.
67603         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
67604         start_index, end_index arguments.
67605         (gl_tree_remove): Update.
67606         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
67607         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
67608         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
67609         function.
67610         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
67611         gl_tree_search. Add start_index, end_index arguments.
67612         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
67613         start_index, end_index arguments.
67614         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
67615         Update.
67616         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
67617
67618 2006-10-05  Bruno Haible  <bruno@clisp.org>
67619
67620         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
67621
67622         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
67623         fwriteerror_temp): New declarations.
67624         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
67625         (descriptors): New variable.
67626         (cleanup): First, close the descriptors.
67627         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
67628         fclose_temp, fwriteerror_temp): New functions.
67629
67630 2006-10-04  Jim Meyering  <jim@meyering.net>
67631
67632         * lib/fts.c (fts_open): Tiny comment change.
67633
67634 2006-10-04  Bruno Haible  <bruno@clisp.org>
67635
67636         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
67637         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
67638         gl_LOCK_BODY.
67639         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
67640         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
67641         gl_LOCK_EARLY_BODY.
67642         (gl_LOCK): Require gl_LOCK_BODY.
67643
67644 2006-10-04  Bruno Haible  <bruno@clisp.org>
67645
67646         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
67647         (gl_oset_search_atleast): New declaration.
67648         (struct gl_oset_implementation): Add field 'search_atleast'.
67649         (gl_oset_search_atleast): New inline function.
67650         * lib/gl_oset.c (gl_oset_search_atleast): New function.
67651         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
67652         (gl_array_oset_implementation): Update.
67653         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
67654         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
67655         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
67656
67657 2006-10-04  Bruno Haible  <bruno@clisp.org>
67658
67659         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
67660
67661 2006-10-03  Bruno Haible  <bruno@clisp.org>
67662
67663         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
67664         from gl_avltreehash_list_implementation.
67665
67666 2006-10-03  Bruno Haible  <bruno@clisp.org>
67667
67668         * lib/gl_oset.c (gl_oset_add): Fix return type.
67669
67670 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
67671
67672         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
67673
67674 2006-10-02  Eric Blake  <ebb9@byu.net>
67675
67676         * modules/strnlen (Depends-on): Add extensions.
67677
67678 2006-10-02  Eric Blake  <ebb9@byu.net>
67679
67680         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
67681         definition in 2.60+.
67682
67683 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
67684
67685         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
67686         checks.
67687
67688 2006-10-02  Bruno Haible  <bruno@clisp.org>
67689
67690         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
67691         to the AUTOMAKE_OPTIONS.
67692         Reported by Jim Meyering.
67693
67694 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
67695
67696         Work around bug in Solaris 10 /proc file system:
67697         /proc/self/fd/NNN/.. isn't the parent directory of
67698         the directory whose file descriptor is NNN.  This needs to
67699         be worked around at run time, not compile time, since a
67700         program might be built on Solaris 8, where things work, and
67701         run on Solaris 10.
67702         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
67703         to use the following interface instead:
67704         (OPENAT_BUFFER_SIZE): New macro.
67705         (openat_proc_name): New function.
67706         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
67707         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
67708         Likewise.
67709         * lib/openat-proc.c: New file.
67710         * modules/openat (Files): Add lib/openat-proc.c.
67711         (Depends-on): Add same-inode, stdbool.
67712         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
67713
67714 2006-09-29  Bruno Haible  <bruno@clisp.org>
67715
67716         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
67717         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
67718         argument. Set stdout_closed before testing for ferror, not after.
67719         (fwriteerror, fwriteerror_no_ebadf): New functions.
67720
67721 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67722
67723         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
67724
67725 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
67726
67727         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
67728         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
67729
67730 2006-09-28  Jim Meyering  <jim@meyering.net>
67731
67732         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
67733         Include <unistd.h>.
67734
67735 2006-09-28  Bruno Haible  <bruno@clisp.org>
67736
67737         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
67738         * modules/linkedhash-list (Depends-on): Likewise.
67739         * modules/rbtreehash-list (Depends-on): Likewise.
67740
67741 2006-09-28  Bruno Haible  <bruno@clisp.org>
67742
67743         * lib/strndup.h: Simplify the redefinition of strndup.
67744         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
67745         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
67746
67747 2006-09-28  Bruno Haible  <bruno@clisp.org>
67748
67749         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
67750         * lib/gl_linkedhash_list.c: Likewise.
67751         * lib/gl_rbtreehash_list.c: Likewise.
67752
67753 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
67754
67755         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
67756         getaddrinfo.
67757
67758         * lib/__fpending.h: Don't include <stdio_ext.h> unless
67759         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
67760         it causes <stdio_ext.h> to cause a compile-time error.
67761         Problem reported by Nelson H. F. Beebe.
67762         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
67763         of HAVE_DECL___PENDING.
67764
67765         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
67766         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
67767         declaration.
67768
67769 2006-09-27  Jim Meyering  <jim@meyering.net>
67770
67771         This file could end up with a definition for a function
67772         named __strndup, rather than rpl_strndup on a system with
67773         incomplete weak_alias support.
67774         * lib/strndup.c (strndup): Rename from __strndup.
67775         Remove #defines that used to map __strndup to strndup.
67776         Don't use K&R prototypes.
67777         Remove LIBC-related code, since this file is not sync'd with glibc.
67778         * lib/strndup.h: Revamp, accordingly.
67779         * m4/strndup.m4: Modernize.
67780
67781 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
67782
67783         * modules/savewd (Depends-on): Add 'raise'.
67784         * lib/savewd.c: Include <signal.h>, for 'raise'.
67785
67786 2006-09-26  Jim Meyering  <jim@meyering.net>
67787
67788         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
67789         when we detect Darwin 8.7.0's acl_get_file bug.
67790         Rearrange to perform the new (below) run-test while $LIBS
67791         contains any acl-related library.  Set USE_ACL at the end.
67792         (gl_ACL_GET_FILE): New function.
67793
67794 2006-09-26  Eric Blake  <ebb9@byu.net>
67795
67796         * lib/verror.c: Include <config.h> unconditionally.
67797
67798 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
67799
67800         * modules/clock-time (Maintainer): Add self.
67801         * modules/getlogin_r (Depends-on): Add extensions.
67802
67803 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67804
67805         * modules/clock-time: New module.
67806         * modules/nanosleep (Depends-on): Add clock-time.
67807         * modules/gethrxtime (Depends-on): Likewise.
67808         * modules/gettime (Depends-on): Likewise.
67809         * modules/settime (Depends-on): Likewise.
67810
67811         * modules/fts-lgpl: Depend on openat.
67812         * modules/mkancesdirs: Depend on savewd.
67813         * modules/mkdir-p: Likewise.
67814
67815 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67816
67817         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
67818
67819         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
67820         `gl_have_arbitrary_file_name_length_limit' to
67821         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
67822         actually works between configure runs.
67823
67824 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67825             Bruno Haible  <bruno@clisp.org>
67826
67827         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
67828
67829 2006-09-25  Jim Meyering  <jim@meyering.net>
67830
67831         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
67832         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
67833
67834 2006-09-25  Eric Blake  <ebb9@byu.net>
67835
67836         * gnulib-tool (func_import, func_create_testdir): Fix typos in
67837         exec's in 2006-09-18 patch when shuffling fds.
67838
67839 2006-09-25  Bruno Haible  <bruno@clisp.org>
67840
67841         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
67842         Reported by Jim Meyering.
67843
67844 2006-09-24  Jim Meyering  <jim@meyering.net>
67845
67846         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
67847         compare a pointer against a literal "0".  That caused failures with
67848         at least HP-UX's hpcc.
67849
67850 2006-09-22  Simon Josefsson  <jas@extundo.com>
67851
67852         * modules/gc-sha1:
67853         * modules/gc-md4:
67854         * modules/gc-hmac-sha1:
67855         * modules/gc-hmac-md5:
67856         * modules/gc-des:
67857         * modules/gc-arcfour: Distribute more files.
67858
67859 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67860
67861         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
67862         (gl_linked_iterator_from_to): Initialize struct completely.
67863         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
67864         (gl_tree_iterator_from_to): Likewise
67865         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
67866         * lib/gl_array_list.c [lint] (gl_array_iterator)
67867         (gl_array_iterator_from_to): Likewise.
67868         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
67869         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
67870         (gl_carray_iterator_from_to): Likewise.
67871
67872         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
67873         * lib/md4.c (md4_process_block): Remove unused variable.
67874         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
67875         parentheses for clarity.
67876
67877 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67878
67879         * modules/bison-i18n (Depends-on): Add gettext.
67880
67881 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67882
67883         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
67884         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
67885         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
67886         also add missing comma that caused broken test.
67887         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
67888         stdlib.h, for `abort'.
67889         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
67890         variables.
67891         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
67892         include unistd.h if present, for `rmdir'.
67893         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
67894         variables.
67895         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
67896         in the process include standard headers for prototypes.
67897         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
67898         gets declared on GNU/Linux.
67899         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
67900         unistd.h, for `rmdir'.
67901         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
67902
67903         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
67904         always true.
67905         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
67906
67907         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
67908
67909 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67910
67911         * gnulib-tool (func_version): Create output all at once.  This
67912         may help avoid triggering unnecessary SIGPIPEs, and at any
67913         rate it doesn't hurt.
67914
67915 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67916             Bruno Haible  <bruno@clisp.org>
67917
67918         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
67919         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
67920         * m4/signed.m4 (bh_C_SIGNED): Likewise.
67921
67922         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
67923         (gl_FUNC_VASPRINTF): Invoke it.
67924
67925 2006-09-22  Bruno Haible  <bruno@clisp.org>
67926
67927         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
67928         getloadavg.c as first argument.
67929
67930 2006-09-22  Bruno Haible  <bruno@clisp.org>
67931
67932         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
67933         at the beginning of the gl_INIT macro.
67934         * modules/getloadavg (configure.ac): Pass $gl_source_base to
67935         gl_GETLOADAVG.
67936
67937 2006-09-22  Bruno Haible  <bruno@clisp.org>
67938
67939         * gnulib-tool (func_create_megatestdir): Don't include the config-h
67940         module.
67941         Suggested by Ralf Wildenhues.
67942
67943 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
67944
67945         Import this patch from libc:
67946
67947         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
67948
67949         * lib/regex_internal.c (re_string_reconstruct): Handle
67950         offset < pstr->valid_raw_len && pstr->offsets_needed case.
67951         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
67952         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
67953         re_string_context_at.
67954
67955         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
67956         now requires it.
67957         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
67958         gl_REGEX now does it for us.
67959         (gl_REGEX): Add test taken from
67960         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
67961
67962         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
67963         Check that large offsets work.  Modernize Autoconf usages.
67964         Prefer "yes" to mean a good thing rather than a bad.
67965         Don't put "#define mkstemp" in config.h, as this might interfere
67966         with standard system headers that "#define mkstemp mkstemp64".
67967
67968         * modules/mkstemp (Depends-on): Add extensions, so that
67969         mkstemp is visible on some platforms.
67970         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
67971         (Include): Change to "mkstemp.h" from <stdlib.h>.
67972         (Files): Add mkstemp.h.
67973
67974         * lib/mkstemp.h: New file, since some standard headers
67975         #define mkstemp.
67976         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
67977         Include "mkstemp.h".
67978         Make the _LIBC code resemble glibc original more,
67979         e.g., use K&R style.
67980         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
67981         (mkstemp): Remove, since mkstemp.h does this for us.
67982         * lib/stdlib--.h: Include mkstemp.h.
67983
67984         Import this patch from libc:
67985
67986         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
67987
67988         * lib/tempname.c (__gen_tempname): Change attempts_min
67989         into a macro.  Use preprocessor to decide how to initialize
67990         attempts [Coverity CID 67].
67991
67992 2006-09-20  Bruno Haible  <bruno@clisp.org>
67993
67994         * lib/mkdtemp.c: Import from libc.
67995         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
67996                 * sysdeps/posix/tempname.c (__gen_tempname): Change
67997                 attempts_min into a macro.  Use preprocessor to decide how to
67998                 initialize attempts [Coverity CID 67].
67999         2001-11-27  Paul Eggert  <eggert@twinsun.com>
68000                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
68001                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
68002
68003 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68004
68005         * gnulib-tool (func_exit): New function, to allow to pass the
68006         exit status portably through the trap.  Use everywhere.
68007         (--help, --version): Signal a write error.
68008         (trap): catch SIGPIPE, for write errors.
68009         Exit at the end of the trap, with the correct exit status.
68010
68011 2006-09-19  Karl Berry  <karl@gnu.org>
68012
68013         * doc/gnulib.texi: note about the license texinfo files.
68014
68015 2006-09-19  Eric Blake  <ebb9@byu.net>
68016
68017         * gnulib-tool: Avoid space-tab.
68018
68019 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
68020
68021         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
68022         that prevented coreutils 6.1 from building.  Problem reported
68023         by Petter Reinholdtsen.
68024
68025 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
68026
68027         * gnulib-tool (avoidlist): Fix typo that broke options like
68028         --avoid=lock that are used by coreutils bootstrap.
68029
68030 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
68031
68032         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
68033         more systematically.
68034
68035 2006-09-18  Jim Meyering  <jim@meyering.net>
68036
68037         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
68038
68039 2006-09-18  Bruno Haible  <bruno@clisp.org>
68040
68041         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
68042
68043 2006-09-18  Bruno Haible  <bruno@clisp.org>
68044
68045         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
68046         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
68047         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
68048         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
68049         * m4/gettext.m4: Require autoconf >= 2.52.
68050         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
68051         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
68052         of gl_cv_header_inttypes_h.
68053
68054 2006-09-18  Bruno Haible  <bruno@clisp.org>
68055
68056         * lib/javaversion.c: Include configmake.h.
68057
68058 2006-09-18  Bruno Haible  <bruno@clisp.org>
68059
68060         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
68061         avoid that the while loops be executed in a subshell.
68062
68063 2006-09-18  Bruno Haible  <bruno@clisp.org>
68064
68065         * MODULES.html.sh (func_module): Break long lines.
68066         Suggested by Bruce Korb <bkorb@gnu.org>.
68067
68068 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68069
68070         Speed up by a factor of 1.12.
68071         * gnulib-tool (nl): New variable.
68072         (func_import): Rewrite include directive extraction to only read each
68073         directive once.
68074
68075 2006-09-17  Bruno Haible  <bruno@clisp.org>
68076
68077         * modules/javaversion (Makefile.am): Remove DEFS setting.
68078         (Depends-on): Add configmake, for PKGDATADIR definition.
68079
68080 2006-09-17  Bruno Haible  <bruno@clisp.org>
68081
68082         * gnulib-tool (func_create_testdir): Rewrite all files at once.
68083
68084 2006-09-17  Bruno Haible  <bruno@clisp.org>
68085
68086         * gnulib-tool (func_append): New function, stolen from libtool.m4.
68087         (func_modules_transitive_closure, func_modules_add_dummy,
68088         func_modules_to_filelist, func_import, func_create_testdir,
68089         func_create_megatestdir, ...): Use it wherever possible.
68090         Suggested by Ralf Wildenhues.
68091
68092 2006-09-16  Karl Berry  <karl@gnu.org>
68093
68094         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
68095         to avoid sectioning errors.
68096         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
68097         [ifinfo]: blank line after @center-ed titles.
68098         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
68099         Spell FSF address consistently with others.
68100         (These changes approved by rms.)
68101
68102 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68103
68104         Speed up by a factor of 1.61.
68105         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
68106         already checked module names again.
68107
68108 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68109
68110         Speed up by a factor of 1.13.
68111         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
68112         for new_files, and the input to func_add_or_update.
68113
68114 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68115
68116         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
68117         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
68118
68119 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
68120
68121         * modules/mkancesdirs (Depends-on): Add fcntl.
68122         * modules/savewd: New file.
68123         * MODULES.html.sh (File system functions): Add savewd.
68124
68125         * modules/configmake (Makefile.am): Add support for the
68126         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
68127
68128 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
68129
68130         * m4/savewd.m4: New file.
68131
68132 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
68133
68134         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
68135         (dirchownmod): New arg FD.  All callers changed.
68136         Use FD rather than opening the directory ourself, as opening is
68137         now the caller's responsibility.
68138         * lib/dirchownmod.h: Likewise.
68139         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
68140         hosts that require <sys/types.h> before <sys/stat.h>.  Include
68141         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
68142         (test_dir): Remove.
68143         (mkancesdirs): Return length of prefix of FILE that has already
68144         been made, or -2 if there is a child doing the work.  Redo
68145         algorithm so that it is O(N) rather than O(N**2).  Optimize away
68146         ".", and treat ".." specially since it might stray back into
68147         already-created areas.  Use a subprocess if necessary.  New arg
68148         WD; all users changed.  MAKE_DIR function should now return 1
68149         if it creates a directory that is not readable.  Return -2 if
68150         a child process is spun off.
68151         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
68152         Adjust signature to match code.
68153         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
68154         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
68155         all users changed.
68156         * lib/savewd.c, lib/savewd.h: New files.
68157
68158 2006-09-15  Jim Meyering  <jim@meyering.net>
68159
68160         * modules/rename-dest-slash: New module.
68161         * MODULES.html.sh (posix_compat): Add it here.
68162
68163         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
68164
68165 2006-09-15  Jim Meyering  <jim@meyering.net>
68166
68167         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
68168         file.
68169
68170         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
68171
68172 2006-09-15  Jim Meyering  <jim@meyering.net>
68173
68174         * lib/rename-dest-slash.c (has_trailing_slash): Use
68175         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
68176         (rpl_rename_dest_slash): Perform the cheaper trailing slash
68177         test before testing whether SRC is a directory.
68178         Suggestions from Bruno Haible.
68179
68180         Avoid a warning about an unused variable.
68181         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
68182         into the #ifdef block where it's used.
68183
68184         * lib/rename-dest-slash.c: New file.
68185
68186 2006-09-14  Bruno Haible  <bruno@clisp.org>
68187
68188         * lib/allocsa.c: Include <config.h> unconditionally.
68189         * lib/asnprintf.c: Likewise.
68190         * lib/asprintf.c: Likewise.
68191         * lib/c-strcasecmp.c: Likewise.
68192         * lib/c-strcasestr.c: Likewise.
68193         * lib/c-strncasecmp.c: Likewise.
68194         * lib/c-strstr.c: Likewise.
68195         * lib/classpath.c: Likewise.
68196         * lib/clean-temp.c: Likewise.
68197         * lib/concatpath.c: Likewise.
68198         * lib/copy-file.c: Likewise.
68199         * lib/csharpcomp.c: Likewise.
68200         * lib/csharpexec.c: Likewise.
68201         * lib/execute.c: Likewise.
68202         * lib/fatal-signal.c: Likewise.
68203         * lib/findprog.c: Likewise.
68204         * lib/fwriteerror.c: Likewise.
68205         * lib/gl_array_list.c: Likewise.
68206         * lib/gl_array_oset.c: Likewise.
68207         * lib/gl_avltree_list.c: Likewise.
68208         * lib/gl_avltree_oset.c: Likewise.
68209         * lib/gl_avltreehash_list.c: Likewise.
68210         * lib/gl_carray_list.c: Likewise.
68211         * lib/gl_linked_list.c: Likewise.
68212         * lib/gl_linkedhash_list.c: Likewise.
68213         * lib/gl_list.c: Likewise.
68214         * lib/gl_oset.c: Likewise.
68215         * lib/gl_rbtree_list.c: Likewise.
68216         * lib/gl_rbtree_oset.c: Likewise.
68217         * lib/gl_rbtreehash_list.c: Likewise.
68218         * lib/imaxabs.c: Likewise.
68219         * lib/imaxdiv.c: Likewise.
68220         * lib/javacomp.c: Likewise.
68221         * lib/javaexec.c: Likewise.
68222         * lib/javaversion.c: Likewise.
68223         * lib/linebreak.c: Likewise.
68224         * lib/localcharset.c: Likewise.
68225         * lib/lock.c: Likewise.
68226         * lib/mbchar.c: Likewise.
68227         * lib/mbswidth.c: Likewise.
68228         * lib/mkdtemp.c: Likewise.
68229         * lib/pipe.c: Likewise.
68230         * lib/printf-args.c: Likewise.
68231         * lib/printf-parse.c: Likewise.
68232         * lib/progname.c: Likewise.
68233         * lib/progreloc.c: Likewise.
68234         * lib/readlink.c: Likewise.
68235         * lib/sh-quote.c: Likewise.
68236         * lib/stpcpy.c: Likewise.
68237         * lib/stpncpy.c: Likewise.
68238         * lib/strcasecmp.c: Likewise.
68239         * lib/strcasestr.c: Likewise.
68240         * lib/strcspn.c: Likewise.
68241         * lib/striconv.c: Likewise.
68242         * lib/strncasecmp.c: Likewise.
68243         * lib/strnlen1.c: Likewise.
68244         * lib/strstr.c: Likewise.
68245         * lib/strtok_r.c: Likewise.
68246         * lib/tls.c: Likewise.
68247         * lib/tmpdir.c: Likewise.
68248         * lib/unicodeio.c: Likewise.
68249         * lib/unsetenv.c: Likewise.
68250         * lib/vasnprintf.c: Likewise.
68251         * lib/vasprintf.c: Likewise.
68252         * lib/wait-process.c: Likewise.
68253         * lib/xallocsa.c: Likewise.
68254         * lib/xsetenv.c: Likewise.
68255         * lib/xstriconv.c: Likewise.
68256
68257 2006-09-13  Simon Josefsson  <jas@extundo.com>
68258
68259         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
68260         that internally, suggested by Ralf Wildenhues
68261         <Ralf.Wildenhues@gmx.de>.
68262
68263 2006-09-13  Simon Josefsson  <jas@extundo.com>
68264
68265         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
68266         @LIBOBJS@.
68267         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68268
68269 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
68270
68271         * lib/_fpending.c: Include <config.h> unconditionally, since we no
68272         longer worry about uses that don't define HAVE_CONFIG_H.
68273         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
68274         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
68275         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
68276         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
68277         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
68278         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
68279         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
68280         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
68281         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
68282         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
68283         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
68284         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
68285         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
68286         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
68287         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
68288         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
68289         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
68290         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
68291         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
68292         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
68293         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
68294         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
68295         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
68296         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
68297         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
68298         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
68299         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
68300         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
68301         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
68302         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
68303         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
68304         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
68305         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
68306         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
68307         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
68308         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
68309         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
68310         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
68311         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
68312         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
68313         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
68314         Likewise.
68315
68316 2006-09-13  Eric Blake  <ebb9@byu.net>
68317
68318         * lib/getopt.c: Fix typo in last commit.
68319
68320 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
68321
68322         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
68323         dgettext.
68324
68325 2006-09-12  Jim Meyering  <jim@meyering.net>
68326
68327         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
68328         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
68329         Reported by Nelson H. F. Beebe.
68330
68331 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
68332
68333         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
68334         program_invocation_name and program_invocation_short_name are
68335         initialized.
68336         * lib/argp-namefrob.h: Move declarations of program_invocation_name
68337         and program_invocation_short_name to argp.h, so they are visible
68338         to user programs.
68339         * lib/argp.h: Likewise
68340
68341 2006-09-10  Bruno Haible  <bruno@clisp.org>
68342
68343         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
68344         m4/inttypes_h.m4, m4/uintmax_t.m4.
68345
68346 2006-09-10  Bruno Haible  <bruno@clisp.org>
68347
68348         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
68349         gl_AC_TYPE_UINTMAX_T.
68350
68351 2006-09-10  Bruno Haible  <bruno@clisp.org>
68352
68353         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
68354
68355 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
68356
68357         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
68358         convention.  Text proposed by Bruno Haible.
68359         (struct argp_option): Document the use of N_() wrappers.
68360
68361         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
68362         '\v', and translate the two parts separately, instead of feeding
68363         the whole string to gettext.  This allows to exclude
68364         '\v' from the strings visible to the translator by writing doc
68365         strings as N_("..") "\v" N_("..").
68366
68367 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
68368
68369         * config/srclist.txt: Undo latest change; the bug was fixed.
68370
68371 2006-09-09  Bruno Haible  <bruno@clisp.org>
68372
68373         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
68374         assignments if building a library without libtool.
68375         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
68376         in func_emit_lib_Makefile_am.
68377         (func_import): When building a static library libfoo.a, arrange to
68378         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
68379         (func_create_testdir): Likewise.
68380         * modules/gc (configure.ac, Makefile.am): If building statically,
68381         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
68382         * modules/iconvme (configure.ac, Makefile.am): Likewise.
68383         * modules/striconv (configure.ac, Makefile.am): Likewise.
68384         Based on a suggestion by Ralf Wildenhues.
68385
68386 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68387
68388         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
68389         Check for unistd.h too, since Autoconf doesn't assume POSIX.
68390         Also:
68391
68392         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68393         Add year_2050_test to catch glibc bug 2821
68394         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
68395
68396         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
68397         Prefer #ifdef to #if.
68398
68399         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
68400         Return from 'main' instead of calling 'exit'.
68401
68402 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68403
68404         * lib/mktime.c (guess_time_tm): Fix bug where mktime
68405         returned the maximum time_t value rather than (time_t) -1.
68406         Problem originally reported by William Bardwell
68407         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
68408
68409         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
68410         Moved to here ...
68411         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
68412         ... from here.
68413
68414 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68415
68416         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
68417         2821 is fixed.
68418
68419 2006-09-08  Jim Meyering  <jim@meyering.net>
68420
68421         Don't make generated files read-only.  That would bother too many
68422         people.  However, do retain the ability to work when targets are
68423         read-only: remove the destination and temporary files before writing
68424         them (when generated via sed or echo), or by using the -f option for
68425         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
68426         * modules/alloca-opt, modules/argz, modules/arpa_inet:
68427         * modules/byteswap, modules/configmake, modules/fcntl:
68428         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
68429         * modules/localcharset, modules/netinet_in, modules/poll:
68430         * modules/stdbool, modules/stdint, modules/sys_select:
68431         * modules/sys_socket, modules/sys_stat, modules/sysexits:
68432
68433 2006-09-08  Jim Meyering  <jim@meyering.net>
68434
68435         Avoid new build failure on FreeBSD 6.0.
68436         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
68437         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
68438         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
68439
68440 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68441
68442         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
68443
68444 2006-09-07  Jim Meyering  <jim@meyering.net>
68445
68446         Fix global typo in last change: use chmod u-w, not chmod u-x.
68447         Spotted by Paul Eggert and Bruce Korb.
68448         * modules/alloca-opt, modules/argz, modules/arpa_inet:
68449         * modules/byteswap, modules/configmake, modules/fcntl:
68450         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
68451         * modules/localcharset, modules/netinet_in, modules/poll:
68452         * modules/stdbool, modules/stdint, modules/sys_select:
68453         * modules/sys_socket, modules/sys_stat, modules/sysexits:
68454
68455 2006-09-06  Jim Meyering  <jim@meyering.net>
68456
68457         Make generated files be read-only.
68458         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
68459         Ensure that each generated file is now read-only.
68460         * modules/argz: Likewise.
68461         * modules/arpa_inet: Likewise.
68462         * modules/byteswap: Likewise.
68463         * modules/configmake: Likewise.
68464         * modules/fcntl: Likewise.
68465         * modules/fnmatch: Likewise.
68466         * modules/getopt: Likewise.
68467         * modules/glob: Likewise.
68468         * modules/inttypes: Likewise.
68469         * modules/netinet_in: Likewise.
68470         * modules/poll: Likewise.
68471         * modules/stdbool: Likewise.
68472         * modules/stdint: Likewise.
68473         * modules/sys_select: Likewise.
68474         * modules/sys_socket: Likewise.
68475         * modules/sys_stat: Likewise.
68476         * modules/sysexits: Likewise.
68477         * modules/localcharset: Same as above, but continue using temporary
68478         file named "t-$@" (why different?) rather than the "$@-t" used
68479         everywhere else.
68480
68481         * modules/sysexits (Makefile.am): Replace literal occurrences
68482         of "sysexit.h" more readable, and more consistent, "$@".
68483
68484 2006-09-06  Bruno Haible  <bruno@clisp.org>
68485
68486         * modules/striconv: New file.
68487         * modules/xstriconv: New file.
68488         * MODULES.html.sh (Internationalization functions): Add striconv,
68489         xstriconv.
68490
68491 2006-09-06  Bruno Haible  <bruno@clisp.org>
68492
68493         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
68494         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
68495         not using libtool correctly.
68496
68497 2006-09-06  Bruno Haible  <bruno@clisp.org>
68498
68499         * lib/striconv.h: New file.
68500         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
68501         iconvstring.c.
68502         * lib/xstriconv.h: New file.
68503         * lib/xstriconv.c: New file.
68504
68505 2006-09-06  Bruno Haible  <bruno@clisp.org>
68506
68507         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
68508         lib_..._LDFLAGS.
68509
68510 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68511
68512         * lib/argz_.h: Sync from Libtool.
68513
68514         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
68515                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
68516
68517         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
68518
68519 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
68520
68521         * modules/trim: New file.
68522
68523 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
68524
68525         * lib/trim.h: New file.
68526         * lib/trim.c: New file.
68527
68528 2006-09-05  Bruno Haible  <bruno@clisp.org>
68529
68530         * MODULES.html.sh (String handling): Add trim.
68531
68532 2006-09-04  Karl Berry  <karl@gnu.org>
68533
68534         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
68535         until next release.
68536
68537 2006-09-03  Bruno Haible  <bruno@clisp.org>
68538
68539         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
68540         correctly.
68541
68542 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
68543
68544         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
68545         not gl_GETLOADAVG.  Omit unneeded semicolons.
68546         Problems reported by Ralf Wildenhues in
68547         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
68548         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
68549         at the end, which is the usual gnulib style.
68550
68551         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
68552         of doing all the work ourselves.
68553         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
68554         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
68555
68556 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
68557
68558         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
68559         Problem reported by Ralf Wildenhues in
68560         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
68561
68562         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
68563         HAVE_STRUCT_STATFS_F_FSTYPENAME.
68564
68565 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
68566
68567         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
68568         yesterday's patch by changing test -n to test -z.
68569
68570 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
68571
68572         * modules/getloadavg (Files): Add m4/getloadavg.m4.
68573         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
68574         the former is now obsolescent.
68575
68576         * modules/chdir-long (Depends-on): Add fcntl.
68577
68578 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
68579
68580         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
68581         obsolescent, and programs should use gnulib instead.
68582         * m4/getloadavg.m4: New file, with contents taken from Autoconf
68583         but with prefixes changed.
68584
68585 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
68586
68587         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
68588         or stdbool.h, because they might not exist while configuring.
68589
68590         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
68591         Don't include unistd.h or limits.h; not needed, since chdir-long.h
68592         does that for us.
68593         (O_DIRECTORY): Remove.
68594
68595 2006-08-31  Eric Blake  <ebb9@byu.net>
68596
68597         * gnulib-tool: Don't let emacs change spaces to TAB.
68598
68599 2006-08-31  Bruno Haible  <bruno@clisp.org>
68600
68601         * gnulib-tool: When calling func_import more than once, do it in a
68602         subshell.
68603         Reported by Eric Blake <ebb9@byu.net>.
68604
68605 2006-08-31  Bruno Haible  <bruno@clisp.org>
68606
68607         * gnulib-tool (nl): Remove variable.
68608         (sed_transform_lib_file): Use more robust test for config-h module.
68609         (func_import): Fix typo in 2006-08-25 patch.
68610
68611 2006-08-31  Bruno Haible  <bruno@clisp.org>
68612
68613         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
68614         specified, augment Makefile.am variables instead of assigning them.
68615
68616 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
68617
68618         Work around a bug in both the Linux and SunOS 64-bit kernels:
68619         nanosleep mishandles sleeps for longer than 2**31 seconds.
68620         Problem reported by Frank v Waveren in
68621         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
68622         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
68623         Check for nanosleep bug.
68624         (LIB_NANOSLEEP): Append clock_gettime library if needed.
68625
68626 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
68627
68628         Work around a bug in both the Linux and SunOS 64-bit kernels:
68629         nanosleep mishandles sleeps for longer than 2**31 seconds.
68630         Problem reported by Frank v Waveren in
68631         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
68632         * lib/nanosleep.c (BILLION): New constant.
68633         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
68634         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
68635         implementation.
68636
68637 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
68638
68639         * modules/nanosleep (Depends-on): Add gettime.
68640
68641 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
68642         and Simon Josefsson  <jas@extundo.com>
68643         and Oskar Liljeblad  <oskar@osk.mine.nu>
68644
68645         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
68646         * gnulib-tool (func_import): New license type 'unmodifiable license
68647         text'.
68648         * modules/fdl: Use it.  Longer description.
68649         * module/gpl, module/lgpl: New files.
68650
68651 2006-08-30  Jim Meyering  <jim@meyering.net>
68652
68653         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
68654         shadowing the parameter.
68655
68656 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68657
68658         Sync from Libtool:
68659
68660         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68661
68662         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
68663         sharing with gnulib.  Report by Eric Blake.
68664
68665 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
68666
68667         * modules/isapipe: New file.
68668         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
68669
68670 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
68671
68672         * modules/configmake (Makefile.am): Add a comment, and omit
68673         the CONFIGMAKE_ prefix from generated macro names.  Suggested
68674         by Bruno Haible.
68675
68676 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
68677
68678         * m4/isapipe.m4: New file.
68679
68680 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
68681
68682         * lib/isapipe.c, lib/isapipe.h: New files.
68683
68684 2006-08-29  Jim Meyering  <jim@meyering.net>
68685
68686         * modules/configmake (Makefile.am): Make configmake.h depend on
68687         Makefile.  Otherwise, a stale configmake.h could hang around.
68688
68689 2006-08-29  Eric Blake  <ebb9@byu.net>
68690
68691         * lib/error.c (error_at_line, print_errno_message): Match libc, after
68692         resolution of upstream bug 3044.
68693
68694 2006-08-29  Bruno Haible  <bruno@clisp.org>
68695
68696         * modules/localcharset (Depends-on): Add configmake.
68697         (Makefile.am): Remove setting of LIBDIR through DEFS.
68698
68699 2006-08-29  Bruno Haible  <bruno@clisp.org>
68700
68701         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
68702         defined.
68703
68704 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
68705
68706         * modules/fcntl: New file.
68707         * modules/chdir-safer (Depends-on): Add fcntl.
68708         * modules/fts: Likewise.
68709         * modules/mkdir-p: Likewise.
68710
68711         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
68712         This undoes the most recent change, since we're now addressing the
68713         problem in a different way.
68714
68715         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
68716         into output, since the output might be called Makefile.am even
68717         if $makefile_name is something different.
68718         (func_import): Use $makefile_am rather than
68719         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
68720         empty.
68721
68722         * modules/inttypes (Files): Add m4/inttypes-h.m4.
68723
68724 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
68725
68726         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
68727         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
68728         recent change to stdint.m4, since we're now addressing the problem in a
68729         different way.
68730
68731 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
68732
68733         * m4/fcntl_h.m4: New file.
68734
68735 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
68736
68737         * lib/fcntl_.h: New file.
68738         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
68739         the fcntl module.
68740         * lib/dirchownmod.c: Likewise.
68741         * lib/fts.c: Likewise.
68742
68743         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
68744         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
68745         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
68746         just before including <inttypes.h>, to avoid circular inclusion.
68747
68748 2006-08-28  Jim Meyering  <jim@meyering.net>
68749
68750         * doc/visibility.texi: Actually read and correct the grammar of the
68751         sentence affected by yesterday's change.
68752
68753 2006-08-28  Eric Blake  <ebb9@byu.net>
68754
68755         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
68756         needs wrapper.
68757
68758 2006-08-28  Eric Blake  <ebb9@byu.net>
68759
68760         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
68761
68762 2006-08-28  Eric Blake  <ebb9@byu.net>
68763
68764         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
68765
68766 2006-08-28  Bruno Haible  <bruno@clisp.org>
68767
68768         * modules/c-strstr: New file, from GNU gettext.
68769         * MODULES.html.sh (String handling): Add c-strstr.
68770
68771 2006-08-28  Bruno Haible  <bruno@clisp.org>
68772
68773         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
68774         macros.
68775         Reported by Eric Blake.
68776
68777 2006-08-28  Bruno Haible  <bruno@clisp.org>
68778
68779         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
68780         (VASNPRINTF): Return a string of length > INT_MAX without failing.
68781         * lib/vasprintf.c: Include errno.h, limits.h.
68782         (EOVERFLOW): New fallback definition.
68783         (vasprintf): Test here whether the string length is > INT_MAX.
68784         * lib/vsnprintf.c: Include errno.h, limits.h.
68785         (EOVERFLOW): New fallback definition.
68786         (vsnprintf): Fix bug when generated string was too long for the buffer.
68787         Test here whether the string length is > INT_MAX.
68788
68789 2006-08-28  Bruno Haible  <bruno@clisp.org>
68790
68791         * lib/inttypes_.h (SCNX*): Remove definitions.
68792         Reported by Eric Blake.
68793
68794 2006-08-28  Bruno Haible  <bruno@clisp.org>
68795
68796         * lib/c-strstr.h: New file, from GNU gettext.
68797         * lib/c-strstr.c: New file, from GNU gettext.
68798
68799 2006-08-28  Bruno Haible  <bruno@clisp.org>
68800
68801         * gnulib-tool: Reorder some statements.
68802
68803 2006-08-28  Bruno Haible  <bruno@clisp.org>
68804
68805         * gnulib-tool: New option --makefile-name.
68806         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
68807         $makefile_name.
68808         (func_import): Write $makefile_name to the cache file, and read it from
68809         there unless explicitly specified. Use $makefile_name as file name
68810         instead of Makefile.am. Adjust the recommendations accordingly.
68811
68812 2006-08-28  Bruno Haible  <bruno@clisp.org>
68813
68814         * gnulib-tool (func_verify_module): Check against misapplying patch.
68815
68816 2006-08-28  Bruno Haible  <bruno@clisp.org>
68817
68818         * gnulib-tool (func_relativize, func_relconcat): New functions.
68819         Give an error if --local-dir is given with --update.
68820         Remove trailing slashes from $local_gnulib_dir.
68821         (func_import): Store the relativized $local_gnulib_dir in
68822         gnulib-cache.m4, and read it from there if not specified explicitly.
68823
68824 2006-08-28  Bruno Haible  <bruno@clisp.org>
68825
68826         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
68827         is the current directory. Respect also $local_gnulib_dir.
68828
68829 2006-08-28  Bruno Haible  <bruno@clisp.org>
68830             Simon Josefsson  <jas@extundo.com>
68831
68832         BeOS portability.
68833         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
68834
68835 2006-08-27  Jim Meyering  <jim@meyering.net>
68836
68837         * doc/visibility.texi: Remove duplicate word: "pointer".
68838
68839 2006-08-26  Bruno Haible  <bruno@clisp.org>
68840
68841         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
68842         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
68843         (Makefile.am): Create inttypes.h from inttypes_.h.
68844         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
68845
68846         * modules/imaxabs: New file.
68847
68848         * modules/imaxdiv: New file.
68849
68850 2006-08-26  Bruno Haible  <bruno@clisp.org>
68851
68852         * m4/inttypes.m4: New file.
68853         * m4/_inttypes_h.m4: Remove file.
68854         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
68855         PRI_MACROS_BROKEN.
68856         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
68857
68858         * m4/imaxabs.m4: New file.
68859
68860         * m4/imaxdiv.m4: New file.
68861
68862 2006-08-26  Bruno Haible  <bruno@clisp.org>
68863
68864         * lib/inttypes_.h: New file.
68865         * lib/inttypes.h: Remove file.
68866         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
68867
68868         * lib/imaxabs.c: New file.
68869
68870         * lib/imaxdiv.c: New file.
68871
68872 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
68873
68874         New config-h module, so that "make" output needn't be cluttered
68875         by -DHAVE_CONFIG_H.
68876         * MODULES.html.sh (Support for building libraries and executables):
68877         Add config-h.
68878         * modules/config-h: New file.
68879         * gnulib-tool (nl, sed_transform_lib_file): New vars.
68880         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
68881         the config-h module is used.
68882
68883         New configmake module, so that "make" output needn't be cluttered
68884         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
68885         * MODULES.html.sh (Support for building libraries and executables):
68886         Add configmake.
68887         * modules/configmake: New file.
68888
68889 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
68890
68891         * m4/config-h.m4: New file.
68892
68893 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
68894
68895         * config/srclist.txt: Add elisp-comp.
68896
68897 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
68898
68899         * MODULES.html.sh (Support for building libraries and executables):
68900         Add elisp-comp.
68901         * build-aux/elisp-comp: New file.
68902         * modules/elisp-comp: New file.
68903
68904 2006-08-24  Bruno Haible  <bruno@clisp.org>
68905
68906         * gnulib-tool (func_create_testdir): Use non-default values of
68907         sourcebase and m4base.
68908
68909 2006-08-24  Bruno Haible  <bruno@clisp.org>
68910
68911         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
68912         HTML structure.
68913
68914 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
68915
68916         * modules/openat (Depends-on): Add lchown.
68917
68918 2006-08-23  Bruno Haible  <bruno@clisp.org>
68919
68920         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
68921         of gl_LOCK_EARLY instead of gl_LOCK.
68922
68923 2006-08-23  Bruno Haible  <bruno@clisp.org>
68924
68925         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
68926         on OSF/1 to no.
68927         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
68928
68929 2006-08-23  Bruno Haible  <bruno@clisp.org>
68930
68931         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
68932         as unusable.
68933
68934         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
68935         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
68936         (gl_LOCK): New macro.
68937
68938 2006-08-22  Simon Josefsson  <jas@extundo.com>
68939
68940         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
68941         to md5 module.
68942
68943 2006-08-22  Simon Josefsson  <jas@extundo.com>
68944
68945         * MODULES.html.sh: Add "Support for maintaining and release
68946         projects".
68947
68948         * build-aux/gnupload: New file, from coreutils.
68949
68950 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
68951
68952         Avoid the need for AC_LIBSOURCES in m4 macros.
68953         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
68954         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
68955         * modules/check-version (EXTRA_DIST): Add check-version.h.
68956         * modules/crc (EXTRA_DIST): Add crc.h.
68957         * modules/des (EXTRA_DIST): Add des.h.
68958         * modules/gc (EXTRA_DIST): Add gc.h.
68959         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
68960         * modules/getline (EXTRA_DIST): Add getline.h.
68961         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
68962         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
68963         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
68964         * modules/md2 (EXTRA_DIST): Add md2.h.
68965         * modules/md4 (EXTRA_DIST): Add md4.h.
68966         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
68967         * modules/read-file (EXTRA_DIST): Add read-file.h.
68968         * modules/readline (EXTRA_DIST): Add readline.h.
68969         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
68970         rijndael-api-fst.h.
68971
68972 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
68973
68974         * m4/rijndael.m4 (gl_ARCFOUR):
68975         * m4/arctwo.m4 (gl_ARCTWO):
68976         * m4/check-version.m4 (gl_CHECK_VERSION):
68977         * m4/crc.m4 (gl_CRC):
68978         * m4/des.m4 (gl_DES):
68979         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
68980         * m4/gc.m4 (gl_GC):
68981         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
68982         * m4/getline.m4 (gl_FUNC_GETLINE):
68983         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
68984         * m4/hmac-md5.m4 (gl_HMAC_MD5):
68985         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
68986         * m4/md2.m4 (gl_MD2):
68987         * m4/md4.m4 (gl_MD4):
68988         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
68989         * m4/read-file.m4 (gl_FUNC_READ_FILE):
68990         * m4/readline.m4 (gl_FUNC_READLINE):
68991         * m4/rijndael.m4 (gl_RIJNDAEL):
68992         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
68993         to get the necessary .h files and whatnot.
68994
68995 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
68996
68997         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
68998         gnulib rather than the other way around.
68999         * config/srclistvars.sh (COREUTILS): Remove.
69000
69001 2006-08-22  Jim Meyering  <jim@meyering.net>
69002
69003         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
69004
69005         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
69006
69007 2006-08-22  Eric Blake  <ebb9@byu.net>
69008
69009         * modules/regexprops-generic: New file.
69010         * MODULES.html.sh (Support for building documentation): List it.
69011
69012 2006-08-22  Eric Blake  <ebb9@byu.net>
69013
69014         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
69015         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
69016         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
69017         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
69018
69019 2006-08-22  Bruno Haible  <bruno@clisp.org>
69020
69021         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
69022         and lib_LTLIBRARIES like the other lib_* variables.
69023
69024 2006-08-22  Bruno Haible  <bruno@clisp.org>
69025
69026         * build-aux/x-to-1.in: New file, from GNU gettext.
69027
69028 2006-08-22  Bruno Haible  <bruno@clisp.org>
69029
69030         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
69031         <utmpx.h> exists.
69032
69033 2006-08-22  Bruno Haible  <bruno@clisp.org>
69034
69035         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
69036         <utmpx.h> exists.
69037
69038 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
69039
69040         BeOS portability.
69041         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
69042         exist.
69043         Problem reported by Bruno Haible.
69044
69045 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
69046
69047         Avoid the need for AC_LIBSOURCES in m4 macros.
69048         * modules/acl (EXTRA_DIST): Add acl.h.
69049         * modules/argmatch (Files): Add m4/argmatch.m4.
69050         (configure.ac): Add gl_ARGMATCH.
69051         (EXTRA_DIST): Renamed from lib_SOURCES, for
69052         consistency with the other modules.  Remove argmatch.c.
69053         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
69054         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
69055         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
69056         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
69057         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
69058         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
69059         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
69060         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
69061         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
69062         * modules/closeout (EXTRA_DIST): Add closeout.h.
69063         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
69064         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
69065         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
69066         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
69067         dirname.h; remove basename.c and stripslash.c.
69068         * modules/exclude (EXTRA_DIST): Add exclude.h.
69069         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
69070         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
69071         * modules/file-type (EXTRA_DIST): Add file-type.h.
69072         * modules/filemode (EXTRA_DIST): Add filemode.h.
69073         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
69074         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
69075         * modules/fpending (EXTRA_DIST): Add __fpending.h.
69076         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
69077         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
69078         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
69079         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
69080         * modules/getdate (EXTRA_DIST): Add getdate.c.
69081         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
69082         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
69083         * modules/getpass (EXTRA_DIST): Add getpass.h.
69084         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
69085         * modules/group-member (EXTRA_DIST): Add group-member.h.
69086         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
69087         * modules/hash (EXTRA_DIST): Add hash.h.
69088         * modules/human (EXTRA_DIST): Add human.h.
69089         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
69090         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
69091         * modules/lchown (EXTRA_DIST): Add lchown.h.
69092         * modules/long-options (EXTRA_DIST): Add long-options.h.
69093         * modules/lstat (EXTRA_DIST): Add lstat.h.
69094         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
69095         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
69096         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
69097         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
69098         * modules/memxor (EXTRA_DIST): Add memxor.h.
69099         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
69100         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
69101         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
69102         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
69103         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
69104         * modules/physmem (EXTRA_DIST): Add physmem.h.
69105         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
69106         * modules/posixver (EXTRA_DIST): Add posixver.h.
69107         * modules/quote (EXTRA_DIST): Add quote.h.
69108         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
69109         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
69110         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
69111         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
69112         regex_internal.h regexec.c.
69113         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
69114         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
69115         * modules/same (EXTRA_DIST): Add same.h.
69116         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
69117         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
69118         * modules/savedir (EXTRA_DIST): Add savedir.h.
69119         * modules/sha1 (EXTRA_DIST): Add sha1.h.
69120         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
69121         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
69122         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
69123         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
69124         * modules/strdup (EXTRA_DIST): Add strdup.h.
69125         * modules/strftime (EXTRA_DIST): Add strftime.h.
69126         * modules/strndup (EXTRA_DIST): Add strndup.h.
69127         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
69128         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
69129         * modules/time_r (EXTRA_DIST): Add time_r.h.
69130         * modules/timespec (EXTRA_DIST): Add timespec.h.
69131         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
69132         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
69133         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
69134         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
69135         * modules/userspec (EXTRA_DIST): Add userspec.h.
69136         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
69137         * modules/utimens (EXTRA_DIST): Add utimens.h.
69138         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
69139         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
69140         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
69141         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
69142         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
69143         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
69144         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
69145         * modules/yesno (EXTRA_DIST): Add yesno.h.
69146
69147 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
69148
69149         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
69150
69151         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
69152         * m4/dev-ino.m4, same-inode.m4: Remove.
69153
69154         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
69155         * m4/acl.m4 (AC_FUNC_ACL):
69156         * m4/backupfile.m4 (gl_BACKUPFILE):
69157         * m4/c-strtod.m4 (gl_C99_STRTOLD):
69158         * m4/canon-host.m4 (gl_CANON_HOST):
69159         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
69160         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
69161         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
69162         * m4/cloexec.m4 (gl_CLOEXEC):
69163         * m4/close-stream.m4 (gl_CLOSE_STREAM):
69164         * m4/closeout.m4 (gl_CLOSEOUT):
69165         * m4/dirfd.m4 (gl_FUNC_DIRFD):
69166         * m4/dirname.m4 (gl_DIRNAME):
69167         * m4/exclude.m4 (gl_EXCLUDE):
69168         * m4/exitfail.m4 (gl_EXITFAIL):
69169         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
69170         * m4/file-type.m4 (gl_FILE_TYPE):
69171         * m4/filemode.m4 (gl_FILEMODE):
69172         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
69173         * m4/fpending.m4 (gl_FUNC_FPENDING):
69174         * m4/fprintftime.m4 (gl_FPRINTFTIME):
69175         * m4/fts.m4 (gl_FUNC_FTS):
69176         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
69177         * m4/getdate.m4 (gl_GETDATE):
69178         * m4/gethrxtime.m4 (gl_GETHRXTIME):
69179         * m4/getpagesize.m4 (gl_GETPAGESIZE):
69180         * m4/getpass.m4 (gl_FUNC_GETPASS):
69181         * m4/gettime.m4 (gl_GETTIME):
69182         * m4/getugroups.m4 (gl_GETUGROUPS):
69183         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
69184         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
69185         * m4/hard-locale.m4 (gl_HARD_LOCALE):
69186         * m4/hash.m4 (gl_HASH):
69187         * m4/idcache.m4 (gl_IDCACHE):
69188         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
69189         * m4/lchown.m4 (gl_FUNC_LCHOWN):
69190         * m4/long-options.m4 (gl_LONG_OPTIONS):
69191         * m4/lstat.m4 (gl_FUNC_LSTAT):
69192         * m4/md5.m4 (gl_MD5):
69193         * m4/memcasecmp.m4 (gl_MEMCASECMP):
69194         * m4/memcoll.m4 (gl_MEMCOLL):
69195         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
69196         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
69197         * m4/memxor.m4 (gl_MEMXOR):
69198         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
69199         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
69200         * m4/modechange.m4 (gl_MODECHANGE):
69201         * m4/mountlist.m4 (gl_MOUNTLIST):
69202         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
69203         * m4/openat.m4 (gl_FUNC_OPENAT):
69204         * m4/pathmax.m4 (gl_PATHMAX):
69205         * m4/physmem.m4 (gl_PHYSMEM):
69206         * m4/posixtm.m4 (gl_POSIXTM):
69207         * m4/posixver.m4 (gl_POSIXVER):
69208         * m4/quote.m4 (gl_QUOTE):
69209         * m4/quotearg.m4 (gl_QUOTEARG):
69210         * m4/readtokens.m4 (gl_READTOKENS):
69211         * m4/readutmp.m4 (gl_READUTMP):
69212         * m4/regex.m4 (gl_REGEX):
69213         * m4/safe-read.m4 (gl_SAFE_READ):
69214         * m4/safe-write.m4 (gl_SAFE_WRITE):
69215         * m4/same.m4 (gl_SAME):
69216         * m4/save-cwd.m4 (gl_SAVE_CWD):
69217         * m4/savedir.m4 (gl_SAVEDIR):
69218         * m4/settime.m4 (gl_SETTIME):
69219         * m4/sha1.m4 (gl_SHA1):
69220         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
69221         * m4/stat-macros.m4 (gl_STAT_MACROS):
69222         * m4/stat-time.m4 (gl_STAT_TIME):
69223         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
69224         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
69225         * m4/strdup.m4 (gl_FUNC_STRDUP):
69226         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
69227         * m4/strndup.m4 (gl_FUNC_STRNDUP):
69228         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
69229         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
69230         * m4/time_r.m4 (gl_TIME_R):
69231         * m4/timespec.m4 (gl_TIMESPEC):
69232         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
69233         * m4/unlinkdir.m4 (gl_UNLINKDIR):
69234         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
69235         * m4/userspec.m4 (gl_USERSPEC):
69236         * m4/utimecmp.m4 (gl_UTIMECMP):
69237         * m4/utimens.m4 (gl_UTIMENS):
69238         * m4/xalloc.m4 (gl_XALLOC):
69239         * m4/xgetcwd.m4 (gl_XGETCWD):
69240         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
69241         * m4/xreadlink.m4 (gl_XREADLINK):
69242         * m4/xstrtod.m4 (gl_XSTRTOD):
69243         * m4/yesno.m4 (gl_YESNO):
69244         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
69245         to get the necessary .h files and whatnot.
69246
69247 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
69248             Bruno Haible  <bruno@clisp.org>
69249
69250         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
69251         /bin/sh understanding of '!' conditional negation.
69252
69253 2006-08-21  Jim Meyering  <jim@meyering.net>
69254
69255         * modules/openat (Depends-on): Really alphabetize.
69256
69257         * modules/acl (Depends-on): Add error and quote.
69258
69259         * check-module (find_included_lib_files): Add at-func.c to the
69260         ok-to-include-more-than-once white list.
69261
69262         * modules/openat (Depends-on): Add lstat.  Alphabetize.
69263
69264 2006-08-21  Bruno Haible  <bruno@clisp.org>
69265
69266         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69267         Emit a pkgdata_DATA variable only if some snippets add contents to it.
69268         Reported by Martin Lambers <marlam@marlam.de>.
69269
69270 2006-08-21  Bruno Haible  <bruno@clisp.org>
69271
69272         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
69273         specify an installation location, don't emit a noinst_LIBRARIES or
69274         noinst_LTLIBRARIES assignment.
69275
69276 2006-08-21  Bruno Haible  <bruno@clisp.org>
69277
69278         BeOS portability.
69279         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
69280         BeOS has mbrtowc() but no <wctype.h>.
69281
69282 2006-08-21  Bruno Haible  <bruno@clisp.org>
69283
69284         BeOS portability.
69285         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
69286         exist.
69287
69288 2006-08-21  Bruno Haible  <bruno@clisp.org>
69289
69290         BeOS portability.
69291         * lib/mbchar.h: Include <wctype.h> only if it exists.
69292
69293 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
69294
69295         Remove files that are no longer needed by their respective modules.
69296         * m4/obstack.m4: Remove.
69297         * m4/strerror_r.m4: Remove.
69298         * m4/uint32_t.m4: Remove.
69299         * m4/uintptr_t.m4: Remove.
69300         * m4/ullong_max.m4: Remove.
69301         * m4/xstrtoimax.m4: Remove.
69302         * m4/xstrtoumax.m4: Remove.
69303
69304         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
69305         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
69306         dependencies now capture this.
69307
69308         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
69309         Do not use AC_LIBSOURCES, since gnulib modules now do this.
69310         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
69311         * m4/human.m4 (gl_HUMAN): Likewise.
69312         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
69313         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
69314
69315         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
69316
69317         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
69318         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
69319         stdint.
69320         * m4/human.m4 (gl_HUMAN): Likewise.
69321         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
69322         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
69323         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
69324         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
69325         * m4/xstrtol (gl_XSTRTOL): Likewise.
69326
69327         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
69328         AC_TYPE_LONG_LONG_INT.
69329         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
69330         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
69331         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
69332         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
69333
69334         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
69335         on stdbool.
69336
69337         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
69338         (gl_PREREQ_XSTRTOUL): Remove.
69339
69340         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
69341
69342         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
69343         mode.
69344
69345 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
69346
69347         Add and change modules to make it easier for coreutils to use
69348         gnulib-tool.
69349         * modules/backupfile (Files): Remove m4/d-ino.m4.
69350         (Depends-on): Add d-ino.
69351         * modules/cycle-check (Depends-on): Add stdint.
69352         (lib_SOURCES): Add cycle-check.h.
69353         * modules/d-ino: New module.
69354         * modules/d-type: New module.
69355         * modules/error (Files): Remove m4/strerror_r.m4.
69356         * modules/filemode (Files): Add m4/st_dm_mode.m4.
69357         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
69358         m4/inttypes_h.m4, m4/uintmax_t.m4.
69359         (Depends-on): Add stdint.
69360         (lib_SOURCES): Add fsusage.h.
69361         * modules/getcwd (Files): Remove d-ino.m4.
69362         (Depends-on): Add d-ino.
69363         * modules/getndelim2 (Depends-on): Add stdint.
69364         * modules/glob (Files): Remove m4/d-type.m4.
69365         (Depends-on): Add d-type.
69366         * modules/host-os: New module.
69367         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
69368         m4/inttypes_h.m4, m4/uintmax_t.m4.
69369         * Depends-on: Add stdint.
69370         (lib_SOURCES): Add human.h.
69371         * modules/inttostr (Files): Remove m4/intmax_t.m4,
69372         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
69373         m4/uintmax_t.m4, m4/ulonglong.m4.
69374         (Depends-on): Add stdint.
69375         (EXTRA_DIST): Add inttostr.h.
69376         * modules/lchmod: New module.
69377         * modules/link-follow: New module.
69378         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
69379         (Depends-on): Add lchmod.
69380         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
69381         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
69382         (Depends-on): Add stdint.
69383         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
69384         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
69385         (Depends-on): Add stdint.
69386         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
69387         * modules/perl: New module.
69388         * modules/regex (Depends-on): Add stdint.
69389         * modules/rmdir-errno: New module.
69390         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
69391         m4/intmax_t.m4.
69392         (Depends-on): Add stdint.
69393         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
69394         m4/uintmax_t.m4.
69395         (Depends-on): Add stdint.
69396         * modules/unlink-busy: New module.
69397         * modules/utimecmp (Depends-on): Add stdint.
69398         * modules/uptime: New module.
69399         * modules/winsz-ioctl: New module.
69400         * modules/winsz-termios: New module.
69401         * modules/xnanosleep (Depends-on): Add nanosleep.
69402         * modules/ullong_max: Remove.
69403         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
69404         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
69405         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
69406         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
69407         (Depends-on): Add inttypes.
69408         (lib_SOURCES): Add xstrtol.h.
69409         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
69410         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
69411         * MODULES.html.sh: Move 'assert' into the assert section.
69412         Move 'dummy' into the linking section.
69413         Remove ullong_max.
69414         Add section for compatibility checks for POSIX:2001 functions,
69415         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
69416         winsz-ioctl, and winsz-termios into it.
69417         Add lchmod.
69418         Add top-level Misc section and put host-os, perl, and uptime
69419         into it.
69420
69421 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
69422
69423         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
69424         now assume the stdint module.  Do not include inttypes.h.
69425         * lib/fsusage.h: Likewise.
69426         * lib/getndelim2.c: Likewise.
69427         * lib/human.h: Likewise.
69428         * lib/inttostr.h: Likewise.
69429         * lib/obstack.c: Likewise.
69430         * lib/regex_internal.h: Likewise.
69431         * lib/tempname.c: Likewise.
69432         * lib/utimecmp.c: Likewise.
69433         * lib/xstrtol.h: Likewise.
69434
69435         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
69436
69437         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
69438         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
69439         * lib/xtime.h: Likewise.
69440
69441 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
69442
69443         * modules/openat (Files): Add lib/fchmodat.c.
69444         Fixes problem reported by Jay Youngman.
69445
69446 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
69447
69448         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
69449         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
69450
69451 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
69452             Bruno Haible  <bruno@clisp.org>
69453
69454         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
69455         and is a script that invokes bison. Tighten the code. Add comments.
69456
69457 2006-08-18  Jim Meyering  <jim@meyering.net>
69458
69459         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
69460         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
69461         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
69462         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
69463
69464 2006-08-18  Bruno Haible  <bruno@clisp.org>
69465
69466         * modules/bison-i18n: New file.
69467         * MODULES.html.sh (Internationalization functions): Add it.
69468
69469 2006-08-18  Bruno Haible  <bruno@clisp.org>
69470
69471         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
69472         sys/statvfs.h. When getmntinfo was found, check its declaration and
69473         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
69474
69475 2006-08-18  Bruno Haible  <bruno@clisp.org>
69476
69477         * m4/bison-i18n.m4: New file, from bison.
69478
69479 2006-08-18  Bruno Haible  <bruno@clisp.org>
69480
69481         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
69482         (ME_DUMMY): Treat "kernfs" as a dummy.
69483         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
69484
69485 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
69486
69487         Update from coreutils.
69488
69489         2006-08-15  Jim Meyering  <jim@meyering.net>
69490
69491         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
69492
69493         2006-01-17  Jim Meyering  <jim@meyering.net>
69494
69495         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
69496
69497         2006-01-11  Jim Meyering  <jim@meyering.net>
69498
69499         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
69500         Check for the lchmod function.
69501
69502 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
69503
69504         Update from coreutils.
69505
69506         * lib/__fpending.h: Add copyright notice.
69507         * lib/fprintftime.h: Likewise.
69508         * lib/savedir.c: Use (C) in copyright notice.
69509         * lib/savedir.h: Likewise.
69510
69511         2006-08-15  Jim Meyering  <jim@meyering.net>
69512
69513         * lib/at-func.c: New file, with the logic of all emulated at-functions.
69514         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
69515         in support of the EXPECTED_ERRNO macro.
69516         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
69517         definitions.  Instead, define the appropriate symbols and include
69518         "at-func.c".
69519         * lib/mkdirat.c (mkdirat): Likewise.
69520         * lib/fchmodat.c (fchmodat): Likewise.
69521         (ENOSYS): Remove definition.
69522         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
69523         it.  Don't include "unistd--.h" -- it wasn't ever used.
69524
69525         2006-01-17  Jim Meyering  <jim@meyering.net>
69526
69527         Rewrite fts.c not to change the current working directory,
69528         by using openat, fstatat, fdopendir, etc..
69529
69530         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
69531         (HAVE_OPENAT_SUPPORT): Define.
69532         [_LIBC] (fchdir): Don't undef or define; no longer used.
69533         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
69534         Now, this `function' always succeeds, and consumes its file descriptor
69535         parameter -- so callers must not close such FDs.  Update callers.
69536         (diropen_fd, opendirat, cwd_advance_fd): New functions.
69537         (diropen): Add parameter, SP.  Adjust all callers.
69538         Implement using diropen_fd, rather than open.
69539         (fts_open): Initialize new member, fts_cwd_fd.
69540         Remove fts_rft-setting code.
69541         (fts_close): Close fts_cwd_fd, if necessary.
69542         (__opendir2): Define in terms of opendir or opendirat,
69543         depending on whether the FST_NOCHDIR flag is set.
69544         (fts_build): Since fts_safe_changedir consumes its FD, and since
69545         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
69546         and close the dup'd file descriptor upon failure.
69547         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
69548         (fts_safe_changedir): Tweak semantics to reflect that this function
69549         now calls cwd_advance_fd and hence consumes its FD argument.
69550         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
69551         [struct FTS] (fts_rft): Remove now-unused member.
69552         [struct FTS] (fts_cycle.state): Improve comment.
69553
69554         * lib/openat.c (openat_needs_fchdir): New function.
69555         * lib/openat.h (openat_needs_fchdir): Declare it.
69556
69557 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
69558
69559         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
69560         Problem and fix reported by Pádraig Brady in
69561         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
69562
69563 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
69564
69565         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
69566
69567 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
69568
69569         * lib/memcoll.c (memcoll): Optimize for the common case where the
69570         arguments are bytewise equal.
69571
69572 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
69573
69574         * doc/regexprops-generic.texi: Add a copyright notice.
69575
69576 2006-08-15  Bruno Haible  <bruno@clisp.org>
69577
69578         * modules/tmpdir (License): Change to LGPL.
69579
69580 2006-08-15  Bruno Haible  <bruno@clisp.org>
69581
69582         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
69583         module.
69584
69585 2006-08-14  Simon Josefsson  <jas@extundo.com>
69586
69587         * config/srclist.txt: Add gnupload.
69588
69589 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
69590
69591         Change copyright notice from LGPL 2 to GPL 2, since that's the
69592         standard form used in the gnulib repository.
69593         * tests/test-lock.c: Likewise.
69594         * tests/test-stdint.c: Likewise.
69595         * tests/test-tls.c: Likewise.
69596
69597         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
69598         prelude-manager.  User shorter URLs for GNU projects, without '?'.
69599         Add copyright notice.
69600
69601         * check-module: Add copyright notice.  Output a copyright
69602         notice if "--version" is specified.
69603         * modules/COPYING: New file.
69604         * tests/test-getaddrinfo.c: Add copyright notice.
69605         * tests/test-verify.c: Likewise.
69606
69607 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
69608
69609         Change copyright notice from LGPL 2 to GPL 2, since that's the
69610         standard form used in the gnulib repository.
69611         * lib/lock.c: LGPL -> GPL.
69612         * lib/lock.h: Likewise.
69613         * lib/strnlen1.c: Likewise.
69614         * lib/strnlen1.h: Likewise.
69615         * lib/tls.c: Likewise.
69616         * lib/tls.h: Likewise.
69617         * lib/tmpdir.c: Likewise.
69618
69619         * lib/TODO: Remove; this belongs only in coreutils.
69620
69621 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
69622
69623         Add copyright notices to long-enough files that lack them, since
69624         otherwise the files aren't clearly free.  Use the same notice that
69625         getdate.texi already uses.
69626         * doc/alloca-opt.texi: Add copyright notice.
69627         * doc/alloca.texi: Likewise.
69628         * doc/ctime.texi: Likewise.
69629         * doc/functions.texi: Likewise.
69630         * doc/gcd.texi: Likewise.
69631         * doc/gnulib-tool.texi: Likewise.
69632         * doc/inet_ntoa.texi: Likewise.
69633         * doc/visibility.texi: Likewise.
69634
69635         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
69636         * doc/quote.texi: Add copyright notice.
69637
69638         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
69639         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
69640         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
69641         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
69642         is now obsolete, and give a pointer to the Sun list.
69643         Add copyright notice.
69644
69645 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
69646
69647         * config/srclistvars.sh: Add copyright notice.
69648
69649 2006-08-14  Eric Blake  <ebb9@byu.net>
69650
69651         Import the following change from libc:
69652
69653         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
69654
69655         Upstream bug 2997.
69656         * lib/misc/error.c: Add space between program name and message if file
69657         name is missing.
69658
69659 2006-08-12  Karl Berry  <karl@gnu.org>
69660
69661         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
69662         remove, these originate in gnulib now.
69663
69664 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69665
69666         * doc/Makefile (standards.info standards.html standards.dvi):
69667         Also depend on make-stds.texi.
69668
69669 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
69670
69671         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
69672         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
69673
69674         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
69675         in wchar_t.  Problem reported by Eric Blake.
69676
69677         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
69678         LEN is smaller than SIZE.  Suggested by Bruno Haible.
69679         Also, help the compiler to keep LEN in a register.
69680
69681 2006-08-11  Eric Blake  <ebb9@byu.net>
69682
69683         * users.txt: Sort.  Add tar.
69684
69685 2006-08-11  Bruno Haible  <bruno@clisp.org>
69686
69687         * users.txt: New file.
69688
69689 2006-08-11  Bruno Haible  <bruno@clisp.org>
69690
69691         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
69692         before <wchar.h>. Needed for OSF/1 and BSD/OS.
69693
69694 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
69695
69696         * modules/snprintf (Depends-on): Remove minmax.
69697         (Maintainer): Add self and Bruno.
69698
69699 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
69700
69701         * lib/.cppi-disable: Add snprintf.h, socket_.h.
69702         * lib/snprintf.c: Include <errno.h> and <limits.h>.
69703         (EOVERFLOW): Define if the system does not.
69704         Do not include "minmax.h"; it wasn't used.
69705         (snprintf): Don't assume size_t promotes to an unsigned type.
69706         Fix bug when generated string was too long for the buffer: the
69707         buffer's contents are supposed to be the initial prefix of the
69708         output.  Don't assume vasnprintf returns EOVERFLOW if the size
69709         exceeds INT_MAX; do the check ourselves.
69710
69711         Import the following changes from libc:
69712
69713         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
69714
69715         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
69716         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
69717         set wc to the byte which couldn't be converted.
69718         (re_string_reconstruct): Don't clear valid_raw_len before calling
69719         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
69720         tip_context using re_string_context_at.
69721
69722         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
69723
69724         * lib/posix/regex.h: g++ still cannot handled [restrict].
69725
69726         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
69727
69728         * lib/posix/regex.h: Remove special handling for VMS.
69729
69730 2006-08-10  Jim Meyering  <jim@meyering.net>
69731
69732         * modules/same-inode: New module.
69733         * modules/dev-ino: New module.
69734         * modules/cycle-check: Depend on these modules, rather than simply
69735         including their .h files.
69736         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
69737         required via m4/cycle-check.m4.
69738         * modules/same: Depend on new same-inode module, rather than
69739         including same-inode.h.
69740         * modules/chdir-safer: New file.
69741
69742         * modules/chown (Depends-on): Add stat-macros.
69743
69744 2006-08-10  Jim Meyering  <jim@meyering.net>
69745
69746         * m4/cycle-check.m4: New file.
69747         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
69748         * m4/dev-ino.m4, m4/same-inode.m4: New files.
69749
69750 2006-08-10  Eric Blake  <ebb9@byu.net>
69751
69752         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
69753         in from original proposal.
69754
69755 2006-08-10  Eric Blake  <ebb9@byu.net>
69756         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
69757
69758         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
69759         namespace.
69760
69761 2006-08-10  Bruno Haible  <bruno@clisp.org>
69762
69763         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
69764         as well.
69765
69766 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
69767
69768         Sync from coreutils.
69769
69770         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
69771
69772         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
69773         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
69774
69775 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
69776
69777         * modules/restrict: Remove; no longer needed now that we assume
69778         Autoconf 2.59 or later.
69779         * MODULES.html.sh: Remove 'restrict'.
69780         * modules/argp (Depends-on): Remove 'restrict'.
69781         * modules/base64 (Depends-on): Likewise.
69782         * modules/gc (Depends-on): Likewise.
69783         * modules/getaddrinfo (Depends-on): Likewise.
69784         * modules/glob (Depends-on): Likewise.
69785         * modules/inet_ntop (Depends-on): Likewise.
69786         * modules/inet_pton (Depends-on): Likewise.
69787         * modules/memxor (Depends-on): Likewise.
69788         * modules/regex (Depends-on): Likewise.
69789         * modules/strtok_r (Depends-on): Likewise.
69790         * modules/time_r (Depends-on): Likewise.
69791
69792 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
69793
69794         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
69795         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
69796         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
69797         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
69798         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
69799         * m4/memxor.m4 (gl_MEMXOR): Likewise.
69800         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
69801         gl_C_RESTRICT replaced by AC_C_RESTRICT.
69802
69803         Merge from coreutils.
69804         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
69805         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
69806         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
69807         * m4/time_r.m4 (gl_TIME_R): Likewise.
69808
69809 2006-08-09  Karl Berry  <karl@gnu.org>
69810
69811         * config/srclist.txt: no more gettext-tools, per Bruno.
69812
69813 2006-08-08  Eric Blake  <ebb9@byu.net>
69814
69815         * modules/verror: New module.
69816         * MODULES.html.sh: Document it.
69817
69818 2006-08-08  Eric Blake  <ebb9@byu.net>
69819
69820         * lib/verror.h, lib/verror.c: New files.
69821
69822 2006-08-08  Eric Blake  <ebb9@byu.net>
69823
69824         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
69825         verror_at_line output complies with GNU Coding Standards even when
69826         file is NULL.
69827
69828 2006-08-07  Bruno Haible  <bruno@clisp.org>
69829
69830         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
69831         versions of AIX.
69832         Reported by Ralf Wildenhues.
69833
69834 2006-08-07  Bruno Haible  <bruno@clisp.org>
69835
69836         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
69837         in an AC_DEFUN. Needed so that the autoconf snippets can use
69838         AC_REQUIRE.
69839
69840 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69841
69842         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69843         Initialize pkgdata_DATA.
69844         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
69845         overriding it.
69846
69847 2006-08-06  Eric Blake  <ebb9@byu.net>
69848
69849         * lib/error.h: Fold in some upstream changes from glibc.
69850         * lib/error.c: Likewise.
69851
69852 2006-08-04  Bruno Haible  <bruno@clisp.org>
69853
69854         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69855         Make the mostlyclean-local rule depend on mostlyclean-generic.
69856         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
69857
69858 2006-07-31  Bruno Haible  <bruno@clisp.org>
69859
69860         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
69861         <stdlib.h>, <string.h>.
69862
69863 2006-07-30  Bruno Haible  <bruno@clisp.org>
69864
69865         * modules/readlink (License): Change to LGPL.
69866
69867 2006-07-30  Bruno Haible  <bruno@clisp.org>
69868
69869         * modules/javaversion (Makefile.am): Distribute javaversion.java and
69870         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
69871         set PKGDATADIR to point to it.
69872
69873 2006-07-30  Bruno Haible  <bruno@clisp.org>
69874
69875         * modules/csharpexec (configure.ac): Comment out macro invocation.
69876         * modules/javaexec (configure.ac): Likewise.
69877         * modules/javacomp-script (configure.ac): Likewise.
69878
69879         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
69880
69881 2006-07-30  Bruno Haible  <bruno@clisp.org>
69882
69883         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
69884         linked-list.
69885
69886 2006-07-30  Bruno Haible  <bruno@clisp.org>
69887
69888         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
69889
69890 2006-07-30  Bruno Haible  <bruno@clisp.org>
69891
69892         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69893         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
69894         get removed.
69895
69896 2006-07-29  Bruno Haible  <bruno@clisp.org>
69897
69898         Make it possible for gnulib-tool to work with locally modified or
69899         augmented gnulib repositories.
69900         * gnulib-tool (func_usage): Document --local-dir option.
69901         (local_gnulib_dir): New variable.
69902         Handle --local-dir option.
69903         (func_lookup_file): New function.
69904         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
69905         (func_get_description, func_get_filelist, func_get_description,
69906         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
69907         func_get_automake_snippet, func_get_include_directive,
69908         func_get_license, func_get_maintainer): Use func_lookup_file.
69909         (func_import, func_create_testdir): Use func_lookup_file.
69910
69911 2006-07-29  Bruno Haible  <bruno@clisp.org>
69912
69913         * modules/setenv (Depends-on): Add unistd.
69914
69915 2006-07-29  Bruno Haible  <bruno@clisp.org>
69916
69917         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
69918
69919 2006-07-29  Bruno Haible  <bruno@clisp.org>
69920
69921         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
69922
69923 2006-07-29  Bruno Haible  <bruno@clisp.org>
69924
69925         * gnulib-tool (import, update): If there is no Makefile.am, look at
69926         aclocal.m4, instead of bailing out.
69927
69928 2006-07-29  Bruno Haible  <bruno@clisp.org>
69929
69930         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
69931         Categorize the options by when they are useful.
69932
69933 2006-07-29  Bruno Haible  <bruno@clisp.org>
69934
69935         * gnulib-tool (func_usage): Document option --no-libtool.
69936         Handle option --no-libtool.
69937         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
69938         for changed semantics of $libtool variable.
69939         (func_import): Likewise. If libtool is not used, show this through
69940         an option --no-libtool.
69941         (func_create_testdir): Update.
69942
69943 2006-07-29  Bruno Haible  <bruno@clisp.org>
69944
69945         * gnulib-tool (func_import): Extend error message about missing
69946         --doc-base.
69947
69948 2006-07-29  Bruno Haible  <bruno@clisp.org>
69949
69950         * gnulib-tool (func_import): Don't create the $docbase directory if
69951         there is no file to store there.
69952
69953 2006-07-29  Bruno Haible  <bruno@clisp.org>
69954
69955         * gnulib-tool (autoconf_minversion): If a --dir option is given and
69956         relevant, look for configure.ac there, not in the current directory.
69957         Also use a simple search for AC_PREREQ, not "autoconf --trace".
69958
69959 2006-07-29  Bruno Haible  <bruno@clisp.org>
69960
69961         * gnulib-tool (SORT): New variable.
69962         (func_usage): Undocument --assume-autoconf option.
69963         Remove --assume-autoconf option handling.
69964         (autoconf_minversion): Determine from the contents of configure.ac.
69965         (func_import): Remove autoconf_minversion handling.
69966         Suggested by Eric Blake.
69967
69968 2006-07-29  Bruno Haible  <bruno@clisp.org>
69969
69970         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
69971
69972 2006-07-29  Bruno Haible  <bruno@clisp.org>
69973
69974         * config/srclist.txt (*setenv.[ch]): Remove rules.
69975
69976 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69977
69978         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
69979
69980 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69981
69982         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
69983         arpa/inet.h.
69984
69985 2006-07-28  Simon Josefsson  <jas@extundo.com>
69986
69987         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
69988         * modules/inet_pton (Depends-on): Likewise.
69989
69990 2006-07-28  Simon Josefsson  <jas@extundo.com>
69991
69992         * m4/netinet_in_h.m4: New file.
69993
69994 2006-07-28  Simon Josefsson  <jas@extundo.com>
69995
69996         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
69997         #include's.
69998
69999 2006-07-28  Simon Josefsson  <jas@extundo.com>
70000
70001         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
70002         #include's.
70003
70004 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
70005
70006         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
70007         setgid on directories only if they set these bits.
70008         * lib/modechange.h: Remove obsolete comment about masks.
70009
70010 2006-07-28  Eric Blake  <ebb9@byu.net>
70011
70012         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
70013         macro expansion.
70014
70015 2006-07-28  Bruno Haible  <bruno@clisp.org>
70016
70017         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
70018
70019 2006-07-28  Bruno Haible  <bruno@clisp.org>
70020
70021         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
70022
70023 2006-07-28  Bruno Haible  <bruno@clisp.org>
70024
70025         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
70026         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
70027         Define fallbacks.
70028         Avoids link error on FreeBSD 4.x.
70029         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
70030
70031         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
70032         encoding.
70033         * lib/mbswidth.c (iswcntrl): Likewise.
70034
70035 2006-07-27  Bruno Haible  <bruno@clisp.org>
70036
70037         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
70038         test.
70039
70040 2006-07-27  Bruno Haible  <bruno@clisp.org>
70041
70042         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
70043         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
70044         defined.
70045
70046 2006-07-26  Eric Blake  <ebb9@byu.net>
70047
70048         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
70049
70050 2006-07-26  Eric Blake  <ebb9@byu.net>
70051
70052         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
70053         like mingw that lack mkstemp.
70054         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
70055         avoid compilation warning on mingw.
70056
70057 2006-07-26  Bruno Haible  <bruno@clisp.org>
70058
70059         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
70060         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
70061         INT_FAST*_MIN, INTPTR_MIN.
70062
70063 2006-07-25  Bruno Haible  <bruno@clisp.org>
70064
70065         * modules/version-etc (Depends-on): Add stdarg.
70066
70067 2006-07-25  Bruno Haible  <bruno@clisp.org>
70068
70069         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
70070         complex commands.
70071
70072 2006-07-25  Bruno Haible  <bruno@clisp.org>
70073
70074         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
70075         defined in <stdarg.h> or config.h.
70076
70077 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
70078
70079         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
70080         (gl_STDIO_SAFER): Remove.
70081
70082 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
70083
70084         * MODULES.html.sh (File stream based Input/Output):
70085         Add fopen-safer, tmpfile-safer; remove stdio-safer.
70086         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
70087         * modules/fopen-safer, modules/tmpfile-safer: New files.
70088         * modules/stdio-safer: Remove.
70089
70090 2006-07-24  Bruno Haible  <bruno@clisp.org>
70091
70092         * modules/tmpdir: New file.
70093         * MODULES.html.sh (File system functions): Add it.
70094
70095 2006-07-24  Bruno Haible  <bruno@clisp.org>
70096
70097         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
70098         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
70099
70100 2006-07-24  Bruno Haible  <bruno@clisp.org>
70101
70102         * modules/clean-temp: New file.
70103
70104 2006-07-24  Bruno Haible  <bruno@clisp.org>
70105
70106         * m4/tmpdir.m4: New file, from GNU gettext.
70107
70108 2006-07-24  Bruno Haible  <bruno@clisp.org>
70109
70110         * lib/tmpdir.h: New file, from GNU gettext.
70111         * lib/tmpdir.c: New file, from GNU gettext.
70112
70113 2006-07-24  Bruno Haible  <bruno@clisp.org>
70114
70115         * lib/clean-temp.h: New file, from GNU gettext.
70116         * lib/clean-temp.c: New file, from GNU gettext.
70117
70118 2006-07-23  Eric Blake  <ebb9@byu.net>
70119
70120         * modules/stdio-safer (Files): Add tmpfile-safer.c.
70121         (Depends-on): Add binary-io.
70122
70123 2006-07-23  Eric Blake  <ebb9@byu.net>
70124
70125         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
70126
70127 2006-07-23  Eric Blake  <ebb9@byu.net>
70128
70129         * lib/tmpfile-safer.c: New file.
70130         * lib/stdio-safer.h (fopen_safer): Add prototype.
70131         * lib/stdio--.h (tmpfile): Make safer.
70132
70133 2006-07-23  Bruno Haible  <bruno@clisp.org>
70134
70135         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
70136         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
70137         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
70138         gl_linked_remove_at): Use it.
70139
70140 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70141         and Simon Josefsson <jas@extundo.com>
70142
70143         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
70144
70145         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
70146
70147 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
70148
70149         * modules/close-stream: New file.
70150         * modules/closeout (Description): Make it clear that it exits
70151         with a diagnostic on error.
70152         (Depends-on): Add close-stream.  Remove fpending, stdbool.
70153         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
70154
70155 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
70156
70157         * m4/close-stream.m4: New file.
70158
70159 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
70160
70161         * lib/close-stream.c, lib/close-stream.h: New files.
70162
70163 2006-07-22  Bruno Haible  <bruno@clisp.org>
70164
70165         Merge from GNU gettext 0.15.
70166
70167         2006-05-01  Bruno Haible  <bruno@clisp.org>
70168
70169                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
70170
70171         2006-07-22  Bruno Haible  <bruno@clisp.org>
70172
70173                 * modules/javaversion: New file.
70174                 * MODULES.html.sh (Java): Add javaversion.
70175
70176         2006-03-12  Bruno Haible  <bruno@clisp.org>
70177
70178                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
70179
70180         2005-12-04  Bruno Haible  <bruno@clisp.org>
70181
70182                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
70183                 (untested).
70184
70185         2006-06-21  Bruno Haible  <bruno@clisp.org>
70186
70187                 Avoid warnings from recent versions of mcs.
70188                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
70189                 -o, -L, -r any more. Use options documented since mcs-1.0
70190                 instead. Similarly for -g.
70191
70192         2005-12-04  Bruno Haible  <bruno@clisp.org>
70193
70194                 * build-aux/csharpcomp.sh.in: Suffix for resources is
70195                 .resources, not .resource.
70196
70197         2005-07-09  Bruno Haible  <bruno@clisp.org>
70198
70199                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
70200                 add a .dll suffix.
70201                 Reported by Mark Junker <mjscod@gmx.de>.
70202
70203         2006-07-22  Bruno Haible  <bruno@clisp.org>
70204
70205                 * modules/gettext: Upgrade to gettext-0.15.
70206                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
70207                 m4/visibility.m4.
70208                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
70209
70210 2006-07-22  Bruno Haible  <bruno@clisp.org>
70211
70212         Merge from GNU gettext 0.15.
70213
70214         2006-03-25  Bruno Haible  <bruno@clisp.org>
70215
70216                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
70217
70218         2006-07-21  Bruno Haible  <bruno@clisp.org>
70219
70220                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
70221                 "1.1".
70222
70223         2006-05-09  Bruno Haible  <bruno@clisp.org>
70224
70225                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
70226                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
70227                 for the conftestver execution.
70228
70229         2006-05-01  Bruno Haible  <bruno@clisp.org>
70230
70231                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
70232                 optional target-version argument. Verify that the compiler
70233                 groks source of the specified source-version, or add -source
70234                 option as necessary. Verify that the compiler produces
70235                 bytecode in the specified target-version, or add -target and
70236                 -source options as necessary. Make the result of the test
70237                 available as variable CONF_JAVAC. Also log error output in
70238                 config.log.
70239
70240         2006-03-11  Bruno Haible  <bruno@clisp.org>
70241
70242                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
70243
70244         2006-05-09  Bruno Haible  <bruno@clisp.org>
70245
70246                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
70247                 CLASSPATH_SEPARATOR to a semicolon.
70248
70249         2006-03-12  Bruno Haible  <bruno@clisp.org>
70250
70251                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
70252                 available as variable CONF_JAVA, for subsequent autoconf
70253                 tests. Also log error output in config.log.
70254
70255         2006-07-19  Bruno Haible  <bruno@clisp.org>
70256
70257                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
70258                 that getline works on glibc2 systems. Needed to avoid trouble
70259                 in relocatable.c.
70260                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
70261
70262         2005-12-04  Bruno Haible  <bruno@clisp.org>
70263
70264                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
70265                 launcher (untested).
70266
70267         2005-12-04  Bruno Haible  <bruno@clisp.org>
70268
70269                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
70270
70271         2006-07-22  Bruno Haible  <bruno@clisp.org>
70272
70273                 * gettext.m4: Update from GNU gettext-0.15.
70274                 * nls.m4: Likewise.
70275                 * po.m4: Likewise.
70276                 * inttypes-pri.m4: Likewise.
70277                 * inttypes-h.m4: Renamed from inttypes.m4.
70278                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
70279
70280 2006-07-22  Bruno Haible  <bruno@clisp.org>
70281
70282         Merge from GNU gettext 0.15.
70283
70284         2005-07-05  Bruno Haible  <bruno@clisp.org>
70285
70286                 * printf-args.c (printf_fetchargs): Work around broken
70287                 definition of wint_t on mingw.
70288
70289         2005-02-12  Bruno Haible  <bruno@clisp.org>
70290
70291                 * xallocsa.h: Add extern "C" for C++.
70292
70293         2006-05-17  Bruno Haible  <bruno@clisp.org>
70294
70295                 Cygwin portability.
70296                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
70297
70298         2006-04-30  Bruno Haible  <bruno@clisp.org>
70299
70300                 * progreloc.c: Include <mach-o/dyld.h> if available.
70301                 (find_executable): Use _NSGetExecutablePath when possible.
70302
70303         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
70304
70305                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
70306                 function.
70307
70308         2005-12-29  Bruno Haible  <bruno@clisp.org>
70309
70310                 * progreloc.c (set_program_name_and_installdir): Fix
70311                 compilation error.
70312
70313         2005-12-04  Bruno Haible  <bruno@clisp.org>
70314
70315                 Cygwin portability.
70316                 * progreloc.c: Include <windows.h> also on Cygwin.
70317                 (find_executable): Add support for Cygwin.
70318                 (set_program_name_and_installdir): Handle also platforms with
70319                 nonempty EXEEXT.
70320
70321         2006-07-11  Bruno Haible  <bruno@clisp.org>
70322
70323                 * javacomp.c: Fix a comment.
70324                 Reported by Jim Meyering.
70325
70326         2006-04-30  Bruno Haible  <bruno@clisp.org>
70327
70328                 * javacomp.h (compile_java_class): Add source_version,
70329                 target_version arguments.
70330                 * javacomp.c: Rewritten to choose only a compiler that
70331                 respects the specified source_version and target_version.
70332
70333         2006-06-27  Bruno Haible  <bruno@clisp.org>
70334
70335                 Assume correct S_ISDIR macro.
70336                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
70337
70338         2006-07-22  Bruno Haible  <bruno@clisp.org>
70339
70340                 * javaversion.h: New file, from GNU gettext.
70341                 * javaversion.c: New file, from GNU gettext.
70342                 * javaversion.java: New file, from GNU gettext.
70343                 * javaversion.class: New file, from GNU gettext.
70344
70345         2006-05-17  Bruno Haible  <bruno@clisp.org>
70346
70347                 Cygwin portability.
70348                 * javaexec.c (execute_java_class): Test for jview program
70349                 also on Cygwin.
70350
70351         2006-04-09  Bruno Haible  <bruno@clisp.org>
70352
70353                 * fatal-signal.c: Don't include string.h.
70354                 (at_fatal_signal): Use a copying loop instead of memcpy.
70355
70356         2005-12-04  Bruno Haible  <bruno@clisp.org>
70357
70358                 * csharpexec.c: Add support for 'clix' launcher (untested).
70359                 (execute_csharp_using_sscli): New function.
70360                 (execute_csharp_program): Call it.
70361
70362         2006-06-21  Bruno Haible  <bruno@clisp.org>
70363
70364                 Avoid warnings from recent versions of mcs.
70365                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
70366                 -o, -L, -r any more. Use options documented since mcs-1.0
70367                 instead. Similarly for -g.
70368
70369         2005-07-09  Bruno Haible  <bruno@clisp.org>
70370
70371                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
70372                 add a .dll suffix.
70373                 Reported by Mark Junker <mjscod@gmx.de>.
70374
70375         2006-06-17  Bruno Haible  <bruno@clisp.org>
70376
70377                 * config.charset: Update for NetBSD 3.0.
70378
70379         2006-05-17  Bruno Haible  <bruno@clisp.org>
70380
70381                 Cygwin portability.
70382                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
70383
70384         2006-05-16  Bruno Haible  <bruno@clisp.org>
70385
70386                 * localcharset.c [CYGWIN]: Include <windows.h>.
70387                 (get_charset_aliases): For Cygwin, return the same CPxxx
70388                 aliases list as under WIN32.
70389                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
70390                 the environment variables. Fall back to GetACP().
70391
70392         2006-04-05  Bruno Haible  <bruno@clisp.org>
70393
70394                 * config.charset: Update Juan Manuel Guerrero's address.
70395
70396         2005-02-12  Bruno Haible  <bruno@clisp.org>
70397
70398                 * allocsa.h: Add extern "C" for C++.
70399
70400         2005-02-10  Bruno Haible  <bruno@clisp.org>
70401
70402                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
70403                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
70404
70405         2006-07-22  Bruno Haible  <bruno@clisp.org>
70406
70407                 * gettext.h: Update to GNU gettext-0.15.
70408
70409 2006-07-22  Bruno Haible  <bruno@clisp.org>
70410
70411         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
70412         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
70413         lib-prefix.m4, longdouble.m4, ssize_t.m4.
70414
70415 2006-07-21  Eric Blake  <ebb9@byu.net>
70416
70417         * modules/stdlib-safer: New file.
70418         * MODULES.html.sh (File stream based Input/Output): Add
70419         stdlib-safer.
70420
70421 2006-07-21  Eric Blake  <ebb9@byu.net>
70422
70423         * lib/stdlib-safer.h: New file from coreutils, required by
70424         stdlib--.h.
70425
70426 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
70427
70428         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
70429
70430 2006-07-20  Bruno Haible  <bruno@clisp.org>
70431
70432         * gnulib-tool: Recognize new option --assume-autoconf.
70433         (autoconf_minversion): New variable.
70434         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
70435
70436 2006-07-20  Bruno Haible  <bruno@clisp.org>
70437
70438         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
70439
70440 2006-07-19  Derek R. Price  <derek@ximbiot.com>
70441
70442         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
70443         Reindent and repaginate.
70444
70445 2006-07-19  Derek Price  <derek@ximbiot.com>
70446
70447         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
70448         Correct grammar.
70449
70450 2006-07-17  Bruno Haible  <bruno@clisp.org>
70451
70452         * modules/list: New file.
70453         * modules/array-list: New file.
70454         * modules/carray-list, modules/carray-list-tests: New files.
70455         * modules/linked-list, modules/linked-list-tests: New files.
70456         * modules/avltree-list, modules/avltree-list-tests: New files.
70457         * modules/rbtree-list, modules/rbtree-list-tests: New files.
70458         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
70459         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
70460         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
70461         * modules/oset: New file.
70462         * modules/array-oset: New file.
70463         * modules/avltree-oset, modules/avltree-oset-tests: New files.
70464         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
70465         * tests/test-carray_list.c: New file.
70466         * tests/test-linked_list.c: New file.
70467         * tests/test-avltree_list.c: New file.
70468         * tests/test-rbtree_list.c: New file.
70469         * tests/test-linkedhash_list.c: New file.
70470         * tests/test-avltreehash_list.c: New file.
70471         * tests/test-rbtreehash_list.c: New file.
70472         * tests/test-avltree_oset.c: New file.
70473         * tests/test-rbtree_oset.c: New file.
70474         * MODULES.html.sh (Container data structures): New section.
70475
70476 2006-07-17  Bruno Haible  <bruno@clisp.org>
70477
70478         * m4/gl_list.m4: New file.
70479
70480 2006-07-17  Bruno Haible  <bruno@clisp.org>
70481
70482         * lib/gl_list.h: New file.
70483         * lib/gl_list.c: New file.
70484         * lib/gl_array_list.h: New file.
70485         * lib/gl_array_list.c: New file.
70486         * lib/gl_carray_list.h: New file.
70487         * lib/gl_carray_list.c: New file.
70488         * lib/gl_linked_list.h: New file.
70489         * lib/gl_linked_list.c: New file.
70490         * lib/gl_anylinked_list1.h: New file.
70491         * lib/gl_anylinked_list2.h: New file.
70492         * lib/gl_avltree_list.h: New file.
70493         * lib/gl_avltree_list.c: New file.
70494         * lib/gl_anyavltree_list1.h: New file.
70495         * lib/gl_anyavltree_list2.h: New file.
70496         * lib/gl_rbtree_list.h: New file.
70497         * lib/gl_rbtree_list.c: New file.
70498         * lib/gl_anyrbtree_list1.h: New file.
70499         * lib/gl_anyrbtree_list2.h: New file.
70500         * lib/gl_anytree_list1.h: New file.
70501         * lib/gl_anytree_list2.h: New file.
70502         * lib/gl_linkedhash_list.h: New file.
70503         * lib/gl_linkedhash_list.c: New file.
70504         * lib/gl_anyhash_list1.h: New file.
70505         * lib/gl_anyhash_list2.h: New file.
70506         * lib/gl_avltreehash_list.h: New file.
70507         * lib/gl_avltreehash_list.c: New file.
70508         * lib/gl_rbtreehash_list.h: New file.
70509         * lib/gl_rbtreehash_list.c: New file.
70510         * lib/gl_anytreehash_list1.h: New file.
70511         * lib/gl_anytreehash_list2.h: New file.
70512
70513         * lib/gl_oset.h: New file.
70514         * lib/gl_oset.c: New file.
70515         * lib/gl_array_oset.h: New file.
70516         * lib/gl_array_oset.c: New file.
70517         * lib/gl_avltree_oset.h: New file.
70518         * lib/gl_avltree_oset.c: New file.
70519         * lib/gl_rbtree_oset.h: New file.
70520         * lib/gl_rbtree_oset.c: New file.
70521         * lib/gl_anytree_oset.h: New file.
70522
70523 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
70524
70525         * m4/mkancesdirs.m4: New file.
70526         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
70527         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
70528         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
70529         it.
70530
70531 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
70532
70533         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
70534         * lib/mkancesdirs.h: New files.
70535         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
70536         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
70537         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
70538         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
70539         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
70540         callers changed.  Revamp internals significantly, by not
70541         attempting to create directories that are temporarily more
70542         permissive than the final results.  Do not attempt to use
70543         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
70544         This removes some race conditions, fixes some bugs, and simplifies
70545         things.  Use new dirchownmod function to do owner and mode changes.
70546         * lib/mkdir-p.h: Likewise.
70547         * lib/modechange.c (octal_to_mode): New function.
70548         (struct mode_change): New member mentioned.
70549         (make_node_op_equals): New arg mentioned.  All callers changed.
70550         (mode_compile): Keep track of which mode bits the user has explicitly
70551         mentioned.
70552         (mode_adjust): New arg DIR, so that we implement the X op correctly.
70553         New arg PMODE_BITS, to keep track of which mode bits the user
70554         mentioned; it treats S_ISUID and S_ISGID speciall.
70555         All callers changed.
70556         * lib/modechange.h: Likewise.
70557
70558 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
70559
70560         * MODULES.html.sh: Add mkancestors.
70561         * modules/mkancesdirs: New module.
70562         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
70563         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
70564         The chdir-safer and afs files are now orphans; I'll remove them
70565         unless someone speaks up.
70566         Add lib/dirchownmod.c, lib/dirchownmod.h.
70567         (Depends-on): Remove alloca, chown, save-cwd, dirname.
70568         Add lchown, mkancesdirs.
70569         (Maintainer): Add self.
70570
70571 2006-07-15  Karl Berry  <karl@gnu.org>
70572
70573         * gnulib-tool: help message wording/arrangement.
70574
70575 2006-07-14  Simon Josefsson  <jas@extundo.com>
70576
70577         * doc/gnulib.texi (Libtool and Windows): New section.
70578
70579 2006-07-12  Simon Josefsson  <jas@extundo.com>
70580
70581         * modules/gendocs (License): Fix license, approved by Karl.
70582
70583 2006-07-12  Eric Blake  <ebb9@byu.net>
70584
70585         * MODULES.html.sh: Add gendocs.
70586
70587 2006-07-11  Eric Blake  <ebb9@byu.net>
70588
70589         * modules/fdl: New module, to install doc/fdl.texi.
70590         * MODULES.html.sh: Add new section for documentation modules.
70591         * gnulib-tool: Avoid space-tab.
70592         (--doc-base): New option, to manage files from doc.
70593
70594 2006-07-11  Eric Blake  <ebb9@byu.net>
70595
70596         * m4/absolute-header.m4: Fix comments to match recent change.
70597
70598 2006-07-11  Eric Blake  <ebb9@byu.net>
70599
70600         * gnulib-tool: List --doc-base before --tests-base.
70601
70602 2006-07-11  Derek R. Price  <derek@ximbiot.com>
70603
70604         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
70605
70606 2006-07-11  Bruno Haible  <bruno@clisp.org>
70607
70608         * README: Mention where to put documentation.
70609
70610 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70611
70612         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
70613
70614 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
70615
70616         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
70617         to stdint.m4.
70618
70619 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
70620
70621         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
70622         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
70623         "no/such/file/stdint.h" when there is no such file, so that
70624         the resulting C code can be parsed by dodgy compilers.
70625         Problems reported by Bob Proulx.
70626
70627 2006-07-10  Derek R. Price  <derek@ximbiot.com>
70628
70629         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
70630         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
70631         macros into the GNU _D_EXACT_NAMLEN.
70632         * lib/savedir.c:  Likewise.
70633         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
70634
70635 2006-07-10  Derek R. Price  <derek@ximbiot.com>
70636         and Paul Eggert  <eggert@cs.ucla.edu>
70637
70638         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
70639         * m4/savedir.m4:
70640         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
70641         macros into the GNU _D_EXACT_NAMLEN.
70642
70643 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
70644
70645         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
70646         around the absolute name, to work around a problem with the HP-UX
70647         11.23 native C compiler, reported by Bob Proulx.
70648
70649 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
70650
70651         * doc/maintain.texi, make-stds.texi: Sync from
70652         <http://savannah.gnu.org/projects/gnustandards>.
70653
70654 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
70655
70656         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
70657
70658 2006-07-09  Jim Meyering  <jim@meyering.net>
70659
70660         * m4/glob.m4: Remove a doubled word in a comment.
70661
70662 2006-07-09  Jim Meyering  <jim@meyering.net>
70663
70664         * lib/argp-pv.c: Remove a doubled word in a comment.
70665         * lib/check-version.c (check_version): Likewise.
70666         * lib/javacomp.c (compile_java_class): Likewise.
70667
70668 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
70669
70670         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
70671         for the benefit of people using Autoconf 2.60.  If you want to
70672         support older Autoconf versions you can copy m4/onceonly_2_57.m4
70673         (or m4/onceonly.m4, if pre-2.57) manually.
70674
70675 2006-07-08  Jim Meyering  <jim@meyering.net>
70676
70677         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
70678         comment.
70679         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
70680         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
70681         comment.
70682
70683 2006-07-08  Jim Meyering  <jim@meyering.net>
70684
70685         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
70686
70687 2006-07-07  Simon Josefsson  <jas@extundo.com>
70688
70689         * tests/test-crc.c: Change expected crc value, the test vector
70690         were probably computed using the old broken crc.c?
70691
70692 2006-07-06  Simon Josefsson  <jas@extundo.com>
70693
70694         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
70695         now the canonical place for the M4 file).
70696
70697         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
70698         from the sys_socket dependency now.
70699
70700         * modules/inet_pton (Files): Ditto.
70701
70702         * modules/inet_ntop (Files): Ditto.
70703
70704 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
70705
70706         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
70707         not gl_PREREQ_GETUSERSHELL.
70708
70709 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70710
70711         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
70712         with only one argument, for Autoconf 2.60.
70713         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
70714         expand to nothing, so add a shell command to avoid syntax error.
70715         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
70716
70717 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70718
70719         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
70720
70721 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
70722
70723         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
70724         no longer needed.  Check for isblank decl.
70725         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
70726         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
70727         of existence.
70728
70729 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
70730
70731         * lib/getloadavg.c: Use __VMS, not VMS.
70732         * lib/getopt.c: Likewise.
70733         * lib/getpagesize.h: Likewise.
70734         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
70735         and probably does not work.
70736
70737 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
70738
70739         * lib/.cppi-disable: Add wcwidth.
70740         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
70741         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
70742         (ISGRAPH): Remove.  All uses changed to isgraph.
70743         (FOLD) [!defined _LIBC]: Remove special case.
70744         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
70745         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
70746         HAVE_ISBLANK.
70747         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
70748         case.
70749
70750 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
70751
70752         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
70753         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
70754         brackets.  Other minor changes to suppress some compiler
70755         warnings.
70756
70757 2006-07-06  Derek R. Price  <derek@ximbiot.com>
70758         and Paul Eggert  <eggert@cs.ucla.edu>
70759
70760         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
70761         of invoking obsolescent AC_HEADER_DIRENT macro.
70762         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
70763         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
70764         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
70765         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
70766         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
70767         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
70768         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
70769         * m4/readdir.m4: Remove; no longer needed.
70770
70771 2006-07-06  Derek R. Price  <derek@ximbiot.com>
70772         and Paul Eggert  <eggert@cs.ucla.edu>
70773
70774         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
70775         Don't worry about this obsolete case any more.
70776         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
70777         directories.
70778         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
70779         worry about this obsolete case any more.
70780         * lib/fts.c: Likewise.
70781         * lib/getcwd.c: Likewise.
70782         * lib/glob.h: Likewise.
70783         * lib/savedir.c: Likewise.
70784
70785 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
70786
70787         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
70788         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
70789         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
70790         needed.
70791         All uses removed.
70792         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
70793         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
70794         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
70795         needed.
70796         * m4/getdate.m4 (gl_GETDATE): Likewise.
70797         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
70798         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
70799         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
70800         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
70801         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
70802         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
70803         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
70804         needed.
70805
70806 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
70807
70808         * lib/memcasecmp.c: Include <limits.h>.
70809         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
70810         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
70811         Don't assume isdigit succeeds only on '0' through '9'.
70812
70813 2006-07-05  Eric Blake  <ebb9@byu.net>
70814
70815         * modules/getaddrinfo (Depends-on): Add snprintf.
70816
70817 2006-07-05  Eric Blake  <ebb9@byu.net>
70818
70819         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
70820         to avoid 'header present but could not be compiled' on cygwin.
70821
70822 2006-07-05  Eric Blake  <ebb9@byu.net>
70823
70824         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
70825         missing from netdb.h.
70826         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
70827
70828 2006-07-05  Derek R. Price  <derek@ximbiot.com>
70829
70830         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
70831         no longer needed.
70832         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
70833         * m4/getdate.m4 (gl_GETDATE): Likewise.
70834         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
70835         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
70836         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
70837         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
70838         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
70839
70840 2006-07-05  Derek R. Price  <derek@ximbiot.com>
70841
70842         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
70843         All uses of is_space replaced by isspace.
70844         * lib/exit.h: Don't talk about STDC_HEADERS.
70845         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
70846         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
70847         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
70848         replaced by isprint etc.
70849         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
70850         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
70851         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
70852         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
70853         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
70854         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
70855
70856 2006-07-05  Bruno Haible  <bruno@clisp.org>
70857
70858         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
70859         the function exists, before testing against AIX.
70860         Reported by Martin Lambers <marlam@marlam.de>.
70861
70862 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
70863
70864         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
70865         From Mark D. Baushke.
70866
70867 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
70868
70869         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
70870         to the absolute name, not just one, to bypass Sun C 5.8's
70871         "warning: #include of /usr/include/... may be non-portable".
70872
70873 2006-07-04  Eric Blake  <ebb9@byu.net>
70874
70875         * modules/dirname-tests: New test module.
70876         * tests/test-dirname.c: New file, replacing dirname.c
70877         TEST_DIRNAME section that was recently deleted.
70878
70879 2006-07-04  Bruno Haible  <bruno@clisp.org>
70880
70881         Assume ANSI C header files and <ctype.h> functions.
70882         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
70883         (mbsnwidth): Use isprint, iscntrl instead.
70884
70885 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
70886
70887         Merge from coreutils.
70888         * MODULES.html.sh: Add xstrtold.
70889         * modules/xstrtold: New file.
70890         * modules/cycle-check (Files): Add lib/same-inode.h.
70891         * modules/dirname (Files): Add m4/double-slash-root.m4.
70892         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
70893         * modules/mkdir-p (Files): Add lib/same-inode.h.
70894         * modules/same (Files): Add lib/same-inode.h.
70895
70896 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
70897
70898         * m4/absolute-header.m4: Renamed from full-header-path.m4.
70899         This is to keep the terminology clean; POSIX talks about
70900         "absolute pathnames", not "full pathnames", but the GNU
70901         Coding Standards say to use "path" for something else;
70902         so use "absolute" to keep both sides happy.
70903         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
70904         Set gl_absolute_header, not gl_full_header_path.
70905         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
70906         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
70907         All uses changed.
70908
70909         Merge from coreutils.
70910
70911         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
70912
70913         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
70914         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
70915         want to require the building of c-strtod.o.
70916         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
70917         needs -lm directly.
70918         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
70919
70920         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
70921
70922         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
70923         --as-needed option if available.  Problem reported by Albert Chin in
70924         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
70925         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
70926         cc merely issues a bunch of annoying warnings for --as-needed
70927         (this problem was reported by Bob Proulx).  Also, try linking with
70928         -lm to detect a bug in binutils 2.16 (this problem was reported
70929         by Ralf Wildenhues).
70930
70931         2006-06-18  Jim Meyering  <jim@meyering.net>
70932
70933         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
70934         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
70935         macro.
70936         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
70937         also check for glibc-2.4's abort-inducing bug.
70938
70939         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
70940         Low-probability clean-up should be to use rmdir to get rid of
70941         the just-created directory, not unlink.
70942
70943         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
70944         configure fail, and request a bug report to inform us about it.
70945         Add a comment that, barring reports to the contrary, in 2007 we'll
70946         assume ftruncate is universally available.
70947
70948         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
70949
70950         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
70951
70952         2006-03-12  Jim Meyering  <jim@meyering.net>
70953
70954         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
70955         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
70956         * m4/same.m4 (gl_SAME): Likewise.
70957         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
70958
70959         2006-03-11  Eric Blake  <ebb9@byu.net>
70960
70961         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
70962         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
70963         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
70964         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
70965
70966 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
70967
70968         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
70969         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
70970         reported by Mark D. Baushke, one in
70971         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
70972
70973         Merge from coreutils.
70974
70975         * lib/.cppi-disable: Add stdint_.h.
70976         * lib/.cvsignore: Add stdint.h.
70977
70978         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
70979
70980         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
70981         both double and long double versions.
70982         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
70983         * lib/xstrtold.c: New file.
70984         * lib/xstrtod.h (xstrtold): New decl.
70985
70986         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
70987
70988         * lib/filemode.c (setst): Remove.
70989         (strmode): Rewrite to avoid setst.  This makes the code shorter,
70990         (arguably) clearer, and the generated code is a bit smaller on my
70991         Debian GNU/Linux stable x86 host.
70992
70993         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
70994
70995         * lib/filemode.c: Include "filemode.h" first, to test the interface.
70996         Assume that filemode.h includes sys/types.h and sys/stat.h.
70997         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
70998         (ftypelet): Reorder to put common cases first, for efficiency.
70999         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
71000         to do 'M'.
71001         (strmode): Renamed from mode_string, and now stores 12 bytes instead
71002         of 10, for compatibility with FreeBSD.  All callers changed.
71003         (filemodestring): Now stores 12 bytes instead of 10, and sets file
71004         types that can't be deduced solely from st_mode.  First arg is now a
71005         const pointer.
71006         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
71007         (strmode): Renamed from mode_string.
71008         (filemodestring): New decl.
71009         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
71010         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
71011         needed.
71012         (S_ISPORT, S_ISWHT): New macros, if not already defined.
71013
71014         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
71015
71016         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
71017         fsusage.h now does that.  Include fsusage.h first, to test interface.
71018         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
71019         at most one method (the old code could have generated decls that
71020         didn't conform to C89, not that this was ever exercised).
71021         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
71022
71023         2006-03-19  Jim Meyering  <jim@meyering.net>
71024
71025         Work even in a chroot where d_ino values for entries in "/"
71026         don't match the stat.st_ino values for the same names.
71027         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
71028         number, iterate through all entries again, using lstat instead.
71029         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
71030         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
71031
71032         * lib/getcwd.c (__getcwd): Clarify a comment.
71033         Use memcpy in place of a call to strcpy.
71034
71035         2006-03-12  Jim Meyering  <jim@meyering.net>
71036
71037         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
71038         matches that of the current directory (which we're about to chdir ".."
71039         out of), then save the dev-ino of the parent, instead.
71040
71041         * lib/same-inode.h (SAME_INODE): New file/macro.
71042         * lib/chdir-safer.c (SAME_INODE): Remove definition.
71043         Include "same-inode.h", instead.
71044         * lib/same.c: Likewise.
71045         * lib/cycle-check.h: Include "same-inode.h".
71046         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
71047         * lib/cycle-check.c (SAME_INODE): Remove definition.
71048         * lib/root-dev-ino.h: Include "same-inode.h".
71049
71050         2006-03-11  Eric Blake  <ebb9@byu.net>
71051
71052         * lib/same.c (same_name): s/base_name/last_component/
71053         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
71054         * lib/filenamecat.c (file_name_concat): Likewise.
71055
71056         2006-03-11  Eric Blake  <ebb9@byu.net>,
71057                     Paul Eggert  <eggert@cs.ucla.edu>
71058
71059         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
71060         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
71061         drive prefix.
71062         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
71063         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
71064         (last_component): New method.
71065         * lib/dirname.c (dir_len): Determine when drive letters need a
71066         subsequent slash.  Preserve // when it is special.
71067         (dir_name): Don't append dot when drive letter is absolute.
71068         [TEST_DIRNAME]: Move into a full-blown gnulib test.
71069         * lib/basename.c (base_name): New semantics - malloc the result.
71070         Preserve // when it is special.  Preserve relative files that look
71071         like drive letters.
71072         (base_len): Preserve // when it is special.
71073         (last_component): New method, similar to old base_name semantics.
71074         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
71075         base_name.  Strip redundant slashes from ///.
71076
71077 2006-07-03  Jim Meyering  <jim@meyering.net>
71078
71079         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
71080         macro is used before the first cycle_check call.
71081
71082 2006-07-03  Eric Blake  <ebb9@byu.net>
71083
71084         * modules/dirname (Depends-on): Add xstrndup.
71085
71086 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
71087
71088         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
71089         test cases, so that config.log is a bit easier to follow.
71090
71091 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
71092
71093         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
71094         both are 64 bits, since this seems to be the tradition, and this
71095         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
71096         we ever run into a host that prefers long long to long in this
71097         case, we'll need another configure-time test.  Problem reported by
71098         Jim Meyering.
71099
71100 2006-07-02  Eric Blake  <ebb9@byu.net>
71101
71102         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
71103
71104 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
71105
71106         * modules/inttypes (Depends-on): No longer depends on stdint.
71107         * modules/stdint (Description): Say more about assumptions.
71108         Say that the fast types might differ.  Say macros are used.
71109         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
71110         (Makefile.am): Revise list of substituted symbols to match
71111         new stdint.m4.
71112         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
71113         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
71114         * tests/test-stdint.c (verify_same_types)
71115         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
71116         the code conforms to C99/C89.
71117         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
71118         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
71119
71120 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
71121
71122         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
71123         but fix a bug, by requiring at least 64 bits.
71124         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
71125         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
71126         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
71127         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
71128
71129         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
71130         changes.  Make 2.59 a prerequisite.  Check and substitute for
71131         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
71132         inttypes.h.  Do not use special include files; just use the
71133         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
71134         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
71135         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
71136         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
71137         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
71138         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
71139         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
71140         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
71141         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
71142         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
71143         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
71144         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
71145         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
71146         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
71147         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
71148         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
71149         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
71150         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
71151         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
71152         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
71153         WINT_MAX.  Check for C99 conformance more strictly, by detecting
71154         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
71155         not check for things that C99 does not require, e.g., int8_t.  If
71156         a test isn't needed unless <stdint.h> isn't working, and is
71157         unlikely to be needed for any other reason, then don't do it
71158         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
71159         size_t, since we assume C89 freestanding at least.  Do not check
71160         for sig_atomic_t, wchar_t, or wint_t, since the code now does
71161         the right thing even if the types are not defined.  Instead use:
71162         (gl_STDINT_TYPE_PROPERTIES): New macro.
71163         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
71164         testing whether <sys/types.h> clashes, as Autoconf does this for
71165         us now.  All uses removed.
71166         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
71167         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
71168         (gl_CHECK_TYPE_SAME):
71169         Remove; no longer needed.
71170         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
71171         exists, since we'll return 0 anyway in that case.
71172         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
71173
71174 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
71175
71176         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
71177         possible collision with system files.
71178         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
71179         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
71180         WCHAR_MIN and WCHAR_MAX in this case.
71181         (<stddef.h>): Do not include; no longer needed.
71182         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
71183         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
71184         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
71185         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
71186         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
71187         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
71188         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
71189         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
71190         !defined(__c99))]: Include in this case too, since it's harmless
71191         now.
71192         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
71193         dangerous to do so.
71194         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
71195         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
71196         (_STDINT_MIN, _STDINT_MAX): New macros.
71197         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
71198         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
71199         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
71200         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
71201         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
71202         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
71203         macros, not typedefs; this simplifies things quite a bit.
71204         Use long int for all types narrower than int64_t.
71205         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
71206         Define in terms of long long int or int64_t or long int,
71207         not int64_t or int32_t.  This saves some compile-time testing.
71208         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
71209         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
71210         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
71211         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
71212         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
71213         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
71214         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
71215         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
71216         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
71217         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
71218         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
71219         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
71220         undef any previous version and define our own version, for
71221         simplicity and consistency with the new macros for types.
71222         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
71223         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
71224         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
71225         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
71226         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
71227         @WINT_T_SUFFIX@ to keep things simple here.
71228         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
71229         Simplify by assuming typical 8/16/32/64 host, since we're
71230         already doing that elsewhere anyway.
71231         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
71232         and assume long long int is 64 bits if available.  This
71233         speeds up 'configure'.
71234
71235 2006-07-01  Eric Blake  <ebb9@byu.net>
71236
71237         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
71238         Reported by Andreas Buening.
71239
71240 2006-07-01  Eric Blake  <ebb9@byu.net>
71241
71242         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
71243
71244 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
71245
71246         * lib/getaddrinfo.c: fixed typo
71247
71248 2006-06-29  Jim Meyering  <jim@meyering.net>
71249
71250         * modules/strftime (Maintainer): Add my name, since with the
71251         FPRINTFTIME changes strftime.c has forked from glibc.
71252
71253 2006-06-29  Eric Blake  <ebb9@byu.net>
71254
71255         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
71256
71257 2006-06-29  Eric Blake  <ebb9@byu.net>
71258
71259         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
71260
71261 2006-06-29  Eric Blake  <ebb9@byu.net>
71262
71263         * lib/stat_.h: New file.
71264
71265 2006-06-29  Eric Blake  <ebb9@byu.net>
71266
71267         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
71268         unused static function.
71269
71270 2006-06-29  Eric Blake  <ebb9@byu.net>
71271
71272         * doc/functions.texi (Function Portability): Document missing lstat
71273         on mingw.
71274
71275 2006-06-29  Eric Blake  <ebb9@byu.net>
71276
71277         * MODULES.html.sh: Add sys_stat.
71278         * modules/sys_stat: New module.
71279         * modules/mkstemp (Depends-on): Add sys_stat.
71280
71281 2006-06-29  Derek R. Price  <derek@ximbiot.com>
71282
71283         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
71284
71285 2006-06-29  Derek R. Price  <derek@ximbiot.com>
71286
71287         * m4/c-bs-a.m4: Removed.
71288
71289 2006-06-29  Derek R. Price  <derek@ximbiot.com>
71290
71291         * lib/strftime.c: Assume strftime() exists.
71292
71293 2006-06-29  Derek Price  <derek@ximbiot.com>
71294
71295         * modules/c-bs-a: Removed - \a is C89.
71296         * MODULES.html.sh: Remove c-bs-a.
71297
71298 2006-06-29  Bruno Haible  <bruno@clisp.org>
71299
71300         * modules/wcwidth (License): Change to LGPL.
71301
71302 2006-06-28  Simon Josefsson  <jas@extundo.com>
71303
71304         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
71305         on _WIN32.
71306
71307         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
71308         getnameinfo.
71309
71310 2006-06-28  Simon Josefsson  <jas@extundo.com>
71311
71312         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
71313
71314 2006-06-28  Simon Josefsson  <jas@extundo.com>
71315
71316         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
71317         functions there.  It will succeed on Windows XP, but on Windows
71318         2000 and (presumably) earlier, it will fail, and use the internal
71319         re-implementation.
71320         (use_win32_p): New function.
71321         (getaddrinfo): Use strtoul on servname, to support numeric ports.
71322         Support AI_NUMERICSERV to disable getservbyname.
71323         (getnameinfo): New function, only supports
71324         NI_NUMERICHOST|NI_NUMERICSERV for now.
71325
71326         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
71327         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
71328         getnameinfo.
71329
71330 2006-06-28  Eric Blake  <ebb9@byu.net>
71331
71332         * modules/wcwidth: New file.
71333         * modules/mbchar (Depends-on): Add wcwidth.
71334         * modules/mbswidth (Depends-on): Add wcwidth.
71335         * MODULES.html.sh: Add wcwidth.
71336
71337 2006-06-28  Eric Blake  <ebb9@byu.net>
71338
71339         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
71340         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
71341
71342 2006-06-28  Eric Blake  <ebb9@byu.net>
71343
71344         * lib/xvasprintf.h: Fix comments.
71345
71346 2006-06-28  Eric Blake  <ebb9@byu.net>
71347
71348         * lib/mbchar.h (wcwidth): Include wcwidth.h.
71349         * lib/mbswidth.c (wcwidth): Move from here...
71350         * lib/wcwidth.h: ...to this new file.
71351
71352 2006-06-28  Derek R. Price  <derek@ximbiot.com>
71353
71354         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
71355
71356         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
71357         it's obsolete.
71358         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
71359
71360 2006-06-28  Derek R. Price  <derek@ximbiot.com>
71361
71362         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
71363         Autoconf 2.60 says this stuff was obsolete.
71364
71365 2006-06-28  Bruno Haible  <bruno@clisp.org>
71366
71367         * modules/wcwidth (Files): Add m4/wchar_t.m4.
71368
71369 2006-06-28  Bruno Haible  <bruno@clisp.org>
71370
71371         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
71372         gt_TYPE_WCHAR_T.
71373
71374 2006-06-28  Bruno Haible  <bruno@clisp.org>
71375
71376         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
71377         declaration for wcwidth.
71378         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
71379
71380 2006-06-28  Bruno Haible  <bruno@clisp.org>
71381
71382         * lib/mkdtemp.c [MINGW]: Include <io.h>.
71383         (mkdir): Define using _mkdir.
71384
71385 2006-06-28  Bruno Haible  <bruno@clisp.org>
71386
71387         * lib/getaddrinfo.h: Fix POSIX URL.
71388         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
71389         _WIN32.
71390         (use_win32_p): Make static.
71391         (getaddrinfo): Reject service name if it is empty or does not consist
71392         solely of decimal digits, or if its value is > 65535.
71393         (getnameinfo): Remove useless casts.
71394
71395 2006-06-27  Simon Josefsson  <jas@extundo.com>
71396
71397         * modules/sys_select: New file, suggested by Bruno Haible, Paul
71398         Eggert and Martin Lambers.
71399
71400 2006-06-27  Simon Josefsson  <jas@extundo.com>
71401
71402         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
71403         Eggert and Martin Lambers.
71404
71405 2006-06-27  Bruno Haible  <bruno@clisp.org>
71406
71407         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
71408         result to 0, not to empty.
71409         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
71410
71411 2006-06-27  Bruno Haible  <bruno@clisp.org>
71412
71413         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
71414
71415 2006-06-26  Simon Josefsson  <jas@extundo.com>
71416
71417         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
71418         present.
71419
71420 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
71421
71422         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
71423         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
71424         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
71425
71426 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
71427
71428         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
71429
71430 2006-06-26  Bruno Haible  <bruno@clisp.org>
71431
71432         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
71433
71434 2006-06-26  Bruno Haible  <bruno@clisp.org>
71435
71436         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
71437
71438 2006-06-26  Bruno Haible  <bruno@clisp.org>
71439
71440         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
71441         SGI C compiler in pre-C99 mode.
71442         Suggested by Mark D. Baushke and Larry Jones.
71443
71444 2006-06-26  Bruno Haible  <bruno@clisp.org>
71445
71446         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
71447         WCHAR_MAX.
71448         Reported by Mark D. Baushke and Larry Jones.
71449
71450 2006-06-26  Bruno Haible  <bruno@clisp.org>
71451
71452         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
71453         in pre-C99 mode.
71454         Suggested by Mark D. Baushke and Larry Jones.
71455
71456 2006-06-23  Simon Josefsson  <jas@extundo.com>
71457             Bruno Haible  <bruno@clisp.org>
71458
71459         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
71460         Emit mostlyclean-local rule.
71461         (func_emit_tests_Makefile_am): Likewise.
71462         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
71463
71464 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
71465
71466         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
71467
71468 2006-06-23  Bruno Haible  <bruno@clisp.org>
71469
71470         * tests/test-stdint.c: Update to match ISO C 99 Technical
71471         Corrigendum 1.
71472
71473 2006-06-23  Bruno Haible  <bruno@clisp.org>
71474
71475         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
71476
71477 2006-06-23  Bruno Haible  <bruno@clisp.org>
71478
71479         * lib/stdint_.h: Treat IRIX like OpenBSD.
71480
71481 2006-06-23  Bruno Haible  <bruno@clisp.org>
71482
71483         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
71484         ISO C 99 Technical Corrigendum 1.
71485
71486 2006-06-22  Simon Josefsson  <jas@extundo.com>
71487
71488         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
71489         MinGW.
71490
71491 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
71492
71493         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
71494         needed.  Some compiler complained about some of them.  Problem reported
71495         by Larry Jones in
71496         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
71497
71498 2006-06-21  Simon Josefsson  <jas@extundo.com>
71499
71500         * tests/test-getaddrinfo.c: New file.
71501
71502         * modules/getaddrinfo-tests: New file.
71503
71504         * MODULES.html.sh: Add inet_pton.
71505
71506         * modules/inet_pton: New file.
71507
71508 2006-06-21  Simon Josefsson  <jas@extundo.com>
71509
71510         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
71511         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
71512         of using the (limited) gnulib implementation on Windows XP.
71513
71514         * m4/inet_pton.m4: New file.
71515
71516 2006-06-21  Simon Josefsson  <jas@extundo.com>
71517
71518         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
71519         variable.
71520
71521         * lib/socket_.h: Don't define WINVER.
71522
71523         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
71524         slightly modified to work in gnulib.
71525
71526 2006-06-21  Simon Josefsson  <jas@extundo.com>
71527
71528         * doc/gnulib.texi (Windows sockets): Add.
71529
71530 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
71531
71532         * lib/read-file.c (fread_file): Start with buffer allocation of
71533         0 bytes rather than 1 byte; this simplifies the code.
71534         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
71535         code to free buffer and save/restore errno.
71536         (internal_read_file): Remove unused local.
71537
71538 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
71539
71540         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
71541         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
71542         Problem reported by Denis Excoffier in
71543         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
71544
71545 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71546
71547         * modules/sys_socket, modules/socklen: Include sys/types since
71548         FreeBSD 4.x's sys/socket.h needs it.
71549
71550 2006-06-19  Simon Josefsson  <jas@extundo.com>
71551
71552         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
71553
71554 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
71555
71556         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
71557
71558 2006-06-19  Bruno Haible  <bruno@clisp.org>
71559
71560         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
71561         and FULL_PATH_INTTYPES_H in angle brackets.
71562         Reported by Mark D. Baushke <mdb@gnu.org>.
71563
71564 2006-06-17  Eric Blake  <ebb9@byu.net>
71565
71566         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
71567         errno.
71568
71569 2006-06-17  Bruno Haible  <bruno@clisp.org>
71570
71571         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
71572         <sys/inttypes.h>.
71573
71574 2006-06-17  Bruno Haible  <bruno@clisp.org>
71575
71576         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
71577         whether errno is declared. Assume <errno.h> declares errno.
71578
71579 2006-06-17  Bruno Haible  <bruno@clisp.org>
71580
71581         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
71582
71583 2006-06-17  Bruno Haible  <bruno@clisp.org>
71584
71585         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
71586         problem on Solaris 2.5.1.
71587
71588 2006-06-16  Eric Blake  <ebb9@byu.net>
71589
71590         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
71591         * lib/unicodeio.c [!defined errno]: Likewise.
71592         * lib/strtol.c [!defined errno]: Likewise.
71593         * lib/strtod.c [!defined errno]: Likewise.
71594
71595 2006-06-15  Eric Blake  <ebb9@byu.net>
71596
71597         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
71598
71599 2006-06-15  Eric Blake  <ebb9@byu.net>
71600
71601         * config/srclist.txt (ssize_t.m4): Lose sync.
71602
71603 2006-06-15  Bruno Haible  <bruno@clisp.org>
71604
71605         * modules/stdint (Files): Include m4/full-header-path.m4,
71606         m4/size_max.m4, m4/wchar_t.m4.
71607         (Makefile.am): Many more substitutions.
71608         * modules/stdint-tests: New file.
71609         * tests/test-stdint.c: New file.
71610
71611 2006-06-15  Bruno Haible  <bruno@clisp.org>
71612
71613         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
71614         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
71615         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
71616         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
71617         gl_CHECK_TYPE_SAME): New macros.
71618
71619 2006-06-15  Bruno Haible  <bruno@clisp.org>
71620
71621         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
71622
71623 2006-06-15  Bruno Haible  <bruno@clisp.org>
71624
71625         * lib/stdint_.h: Rewritten to be fully auto-configured.
71626         Fixes bug on HP-UX/IA64.
71627
71628 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
71629
71630         * lib/getdate.y (__attribute__): Don't define if already defined.
71631         Problem reported by Larry Jones.
71632         * lib/utimens.c (__attribute__): Likewise.
71633
71634 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
71635
71636         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
71637         reported by Andreas Schwab.
71638
71639 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71640             Bruno Haible  <bruno@clisp.org>
71641
71642         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
71643         check for the declaration of strnlen and a run test that exposes the
71644         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
71645         rpl_strndup.
71646
71647 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71648             Bruno Haible  <bruno@clisp.org>
71649
71650         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
71651
71652 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71653
71654         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
71655         compile test, for Tru64 4.0D.
71656
71657 2006-05-28  Karl Berry  <karl@gnu.org>
71658
71659         * config/srclist.txt (printf-args.c): lose sync.
71660
71661 2006-05-26  Martin Lambers  <marlam@marlam.de>
71662
71663         * lib/getpass.c: Updates the test for the native W32 API, and adds
71664         missing includes, thus fixing compilation warnings.
71665
71666 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
71667
71668         * lib/exclude.c (exclude_fnmatch): New function.
71669         (excluded_file_name): Call exclude_fnmatch.
71670         * lib/exclude.h (excluded_file_name): New prototype
71671
71672 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
71673
71674         * lib/tempname.c (small_open, large_open): New macros.
71675         (__open, __open64) [!_LIBC]: Remove.
71676         (__gen_tempname): Use small_open and large_open instead of __open
71677         and __open64.  This fixes a portability bug on HP-UX 11.11i
71678         reported by Simon Wing-Tang in
71679         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
71680
71681 2006-05-24  Bruno Haible  <bruno@clisp.org>
71682
71683         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
71684         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
71685         Reported by Thorsten Maerz <torte@netztorte.de> via
71686         Aaron Stone <aaron@serendipity.cx>.
71687
71688 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
71689
71690         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
71691         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
71692         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
71693         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
71694         not really conditional on the cache.
71695         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
71696
71697 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
71698
71699         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
71700         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
71701         (my_usleep): Don't mishandle maximum value.
71702
71703 2006-05-19  Jim Meyering  <jim@meyering.net>
71704
71705         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
71706
71707 2006-05-17  Bruno Haible  <bruno@clisp.org>
71708
71709         Cygwin portability.
71710         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
71711
71712 2006-05-17  Bruno Haible  <bruno@clisp.org>
71713
71714         * lib/stdint_.h: Fix recognition of Cygwin.
71715
71716 2006-05-15  Bruno Haible  <bruno@clisp.org>
71717
71718         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
71719         on libtool patch by Ralf Wildenhues.
71720
71721 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
71722
71723         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
71724         test for C99 conformance; (bool) 0.5 is an integer constant
71725         expression, but (bool) -0.5 is not.  Problem reported by Fedor
71726         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
71727
71728 2006-05-11  Simon Josefsson  <jas@extundo.com>
71729
71730         * m4/xvasprintf.m4: Fix obvious typo.
71731
71732 2006-05-11  Jim Meyering  <jim@meyering.net>
71733
71734         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
71735         James Lemley.
71736
71737 2006-05-10  Simon Josefsson  <jas@extundo.com>
71738
71739         * lib/md4.c: Typo fix, update copyright years.
71740         (K1, K2): Don't use L because it turn computations into 64-bit on
71741         64-bit platforms.
71742
71743 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
71744
71745         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
71746         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
71747         unwanted sign propagation, e.g., on hosts with 64-bit int.
71748         There still are some problems with reeelly weird theoretical hosts
71749         (e.g., 33-bit int) but it's not worth worrying about now.
71750         * lib/sha1.c (rol): Likewise.
71751         (K1, K2, K3, K4): Remove unnecessary L suffix.
71752
71753 2006-05-10  Bruno Haible  <bruno@clisp.org>
71754
71755         * lib/des.c: Cast to avoid warnings.
71756
71757 2006-05-09  Bruno Haible  <bruno@clisp.org>
71758
71759         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
71760         (Depends-on): Depend also on xsize, stdarg.
71761         (configure.ac): Add gl_XVASPRINTF.
71762
71763 2006-05-09  Bruno Haible  <bruno@clisp.org>
71764
71765         * m4/xvasprintf.m4: New file.
71766
71767 2006-05-09  Bruno Haible  <bruno@clisp.org>
71768
71769         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
71770         (EOVERFLOW): Define fallback value.
71771         (xstrcat): New function.
71772         (xvasprintf): Recognize the special case of a string concatenation.
71773
71774 2006-05-08  Eric Blake  <ebb9@byu.net>
71775
71776         * gnulib-tool (func_version): Base copyright year on CVS date.
71777         (func_emit_copyright_notice): New function.
71778         (func_emit_lib_Makefile_am): Use it.
71779         (func_emit_tests_Makefile_am): Likewise.
71780         (func_import): Likewise.
71781
71782 2006-05-08  Bruno Haible  <bruno@clisp.org>
71783
71784         * modules/stdarg: New file.
71785         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
71786
71787 2006-05-08  Bruno Haible  <bruno@clisp.org>
71788
71789         * m4/stdarg.m4: New file, from GNU gettext.
71790
71791 2006-05-08  Bruno Haible  <bruno@clisp.org>
71792
71793         * config/srclist.txt (build-aux/config.rpath): different from latest
71794         release.
71795
71796 2006-05-08  Bruno Haible  <bruno@clisp.org>
71797
71798         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
71799
71800 2006-05-05  Jim Meyering  <jim@meyering.net>
71801
71802         * m4/warning.m4: New file, derived from bison's file by the same name.
71803
71804 2006-05-03  Bruno Haible  <bruno@clisp.org>
71805
71806         * lib/stdint_.h: Shorter URL.
71807         * lib/inttypes.h: Likewise.
71808
71809 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
71810
71811         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
71812
71813 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
71814
71815         * lib/verify.h: Document the internals better.  Most of this change
71816         was written by Bruno Haible.
71817
71818 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
71819
71820         * doc/verify.texi: New file, partly based on a proposal by
71821         Bruno Haible.
71822
71823 2006-05-02  Bruno Haible  <bruno@clisp.org>
71824
71825         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
71826         test from here...
71827         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
71828
71829 2006-04-29  Bruno Haible  <bruno@clisp.org>
71830
71831         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
71832         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
71833
71834 2006-04-29  Bruno Haible  <bruno@clisp.org>
71835
71836         * gnulib-tool: Make --update option actually work.
71837
71838 2006-04-29  Bruno Haible  <bruno@clisp.org>
71839
71840         * doc/gcd.texi: New file.
71841         * doc/gnulib.texi: Include it.
71842
71843 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
71844
71845         * lib/getdate.y (get_date): When adding relative date, start with the
71846         initial time, not with the result of the first mktime call.
71847
71848 2006-04-25  Bruno Haible  <bruno@clisp.org>
71849
71850         * gnulib-tool (func_import): Output the include directives in three
71851         blocks, sorted separately.
71852         Reported by Ben Pfaff <blp@cs.stanford.edu>.
71853
71854 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
71855
71856         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
71857         to define main with arguments, for C++.  Reported by Eric Blake.
71858         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
71859         Prefer 'int main ()' to 'int main (void)', for C++.
71860         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
71861         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
71862         for 'main', for C99 and C++.
71863
71864 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
71865
71866         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
71867         Don't assume that exit status -1 is valid.
71868         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
71869         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
71870         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
71871         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
71872         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
71873         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
71874         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
71875         functions can be used without declaring them, or that you can
71876         exit with status -1.
71877         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
71878
71879 2006-04-24  Karl Berry  <karl@gnu.org>
71880
71881         * config/srclist.txt (longdouble.m4): sync lost.
71882
71883 2006-04-24  Eric Blake  <ebb9@byu.net>
71884
71885         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
71886
71887 2006-04-24  Bruno Haible  <bruno@clisp.org>
71888
71889         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
71890         poll() implementation in AIX.
71891         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
71892
71893 2006-04-24  Bruno Haible  <bruno@clisp.org>
71894
71895         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
71896         assigned exactly once.
71897
71898 2006-04-23  Claudio Fontana  <claudio@gnu.org>
71899             Bruno Haible  <bruno@clisp.org>
71900
71901         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
71902         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
71903         for AM_CPPFLAGS.
71904
71905 2006-04-23  Bruno Haible  <bruno@clisp.org>
71906
71907         * modules/copy-file: Depend on unistd.
71908         * modules/execute: Likewise.
71909         * modules/fatal-signal: Likewise.
71910         * modules/findprog: Likewise.
71911         * modules/mkdtemp : Likewise.
71912         * modules/pipe: Likewise.
71913         * modules/wait-process: Likewise.
71914
71915 2006-04-23  Bruno Haible  <bruno@clisp.org>
71916
71917         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
71918         condition was already detected.
71919         Reported by Ben Pfaff <blp@cs.stanford.edu>.
71920
71921 2006-04-23  Bruno Haible  <bruno@clisp.org>
71922
71923         * lib/copy-file.c: Include <unistd.h> unconditionally.
71924         * lib/execute.c: Likewise.
71925         * lib/fatal-signal.c: Likewise.
71926         * lib/findprog.c: Likewise.
71927         * lib/mkdtemp.c: Likewise.
71928         * lib/pipe.h: Likewise.
71929         * lib/pipe.c: Likewise.
71930         * lib/wait-process.h: Likewise.
71931
71932 2006-04-23  Bruno Haible  <bruno@clisp.org>
71933
71934         * gnulib-tool (func_usage): Fix --import description. Document
71935         --update.
71936         (func_import): Create temporary file in a temporary directory, if
71937         --dry-run is specified. Silence errors from 'grep' when there are no
71938         m4 files in $m4dir.
71939         (func_create_testdir): Silence errors from 'grep' when there are no
71940         m4 files in $m4dir.
71941         Reported by Karl Berry <karl@freefriends.org>.
71942
71943 2006-04-20  Bruno Haible  <bruno@clisp.org>
71944
71945         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
71946         one argument, so that the code will be portable to Autoconf 2.60.
71947         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
71948         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
71949         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
71950
71951 2006-04-19  Derek Price  <derek@ximbiot.com>
71952             Eric Blake  <ebb9@byu.net>
71953
71954         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
71955         rather than "/full/path.h".  Update comment to match.  Shorten &
71956         generalize m4_translit call via AS_TR_CPP.
71957
71958 2006-04-19  Derek Price  <derek@ximbiot.com>
71959             Eric Blake  <ebb9@byu.net>
71960
71961         * lib/inttypes.h: Correct grammar in comment.
71962
71963 2006-04-18  Derek Price  <derek@ximbiot.com>
71964             Paul Eggert  <eggert@cs.ucla.edu>
71965
71966         * modules/inttypes: New file.
71967         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
71968
71969 2006-04-18  Derek Price  <derek@ximbiot.com>
71970             Paul Eggert  <eggert@cs.ucla.edu>
71971
71972         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
71973         New files.
71974
71975 2006-04-18  Derek Price  <derek@ximbiot.com>
71976             Paul Eggert  <eggert@cs.ucla.edu>
71977
71978         * lib/inttypes.h: New file.
71979         * lib/strtoimax.c: Assume <inttypes.h>.
71980
71981 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
71982
71983         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
71984         isn't mounted.  Problem reported by Kir Kolyshkin.
71985
71986 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
71987
71988         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
71989         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
71990         Derek R. Price.
71991         * lib/regex.h (RE_DUP_MAX): Update comment to match current
71992         implementation.
71993
71994 2006-04-12  Eric Blake  <ebb9@byu.net>
71995
71996         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
71997         is now done automatically by the corresponding Autoconf macro.
71998
71999 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
72000
72001         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
72002         time_r.h.
72003
72004 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
72005
72006         Merge regex changes from libc, removing some of our
72007         POSIX-conformance changes that were rejected and redoing them in a
72008         less-intrusive way.
72009
72010         * lib/regcomp.c (re_compile_internal, init_dfa):
72011         Length arg is now size_t, not Idx.  All uses changed.
72012         (peek_token): Forward decl now says internal_function.
72013         (__re_error_msgid, __re_error_msgid_idx):
72014         Now static rather than extern with attribute_hidden.
72015         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
72016         For some reason libc prefers K&R style defns for external functions.
72017         (regerror) [!defined _LIBC]: Likewise.
72018         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
72019         (seek_collating_symbol_entry, lookup_collation_sequence_value):
72020         (build_range_exp, build_collating_symbol):
72021         Use K&R-style defn.
72022         (re_compile_fastmap): Use '\0' to memset, not 0.
72023         (utf8_sb_map): Make the calculations more obvious.
72024         (init_dfa, parse_bracket_exp, build_charclass_op):
72025         Call calloc and cast result, as glibc does.
72026         (init_word_char, fetch_token, peek_token, peek_token_bracket):
72027         (build_range_exp, build_collating_symbol):
72028         Now internal functions.
72029
72030         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
72031
72032         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
72033         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
72034         Don't depend on VMS; depend on __VMS instead, for POSIX
72035         namespace cleanness.
72036         (regoff_t): Define to ssize_t, not long int.
72037
72038         Remove the REG_ macros named below.  Instead, make the old names
72039         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
72040         __USE_GNU_REGEX.
72041         (REG_BACKSLASH_ESCAPE_IN_LISTS):
72042         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
72043         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
72044         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
72045         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
72046         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
72047         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
72048         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
72049         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
72050         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
72051         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
72052         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
72053         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
72054         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
72055         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
72056         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
72057         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
72058         (REG_NREGS):
72059         Remove.  All uses replaced by the old RE_* names.
72060         (RE_BACKSLASH_ESCAPE_IN_LISTS):
72061         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
72062         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
72063         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
72064         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
72065         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
72066         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
72067         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
72068         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
72069         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
72070         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
72071         Don't bother having these macros be independent of each others'
72072         values, since they no longer exist in the POSIX name space.
72073
72074         Rename the following member names back to their old names,
72075         unless !__USE_GNU_REGEX.  All uses changed back.
72076         (buffer): Renamed from re_buffer.
72077         (allocated): Renamed from re_allocated.
72078         (used): Renamed from re_used.
72079         (syntax): Renamed from re_syntax.
72080         (fastmap): Renamed from re_fastmap.
72081         (translate): Renamed from re_translate.
72082         (can_be_null): Renamed from re_can_be_null.
72083         (regs_allocated): Renamed from re_regs_allocated.
72084         (fastmap_accurate): Renamed from re_fastmap_accurate.
72085         (no_sub): Renamed from re_no_sub.
72086         (not_bol): Renamed from re_not_bol.
72087         (not_eol): Renamed from re_not_eol.
72088         (newline_anchor): Renamed from re_newline_anchor.
72089         (num_regs): Renamed from rm_num_regs.
72090         (start): Renamed from rm_start.
72091         (end): Renamed from rm_end.
72092
72093         (free_state): Move up a bit.
72094
72095         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
72096         #define to be empty.
72097         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
72098         when that is what is intended.
72099         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
72100         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
72101         (MAX): New macro.
72102         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
72103         All uses changed back to re_malloc, etc.  It's now the caller's
72104         responsibility to check for overflow; all callers changed.
72105         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
72106         (re_x2nrealloc): Remove.
72107         (free_state): Remove decl.
72108
72109         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
72110         (re_set_registers, re_exec):
72111         Use K&R-style defn.
72112
72113         2006-01-31  Roland McGrath  <roland@redhat.com>
72114
72115         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
72116         Reported by Mike Frysinger <vapier@gentoo.org>.
72117
72118         2006-01-15  Andreas Jaeger  <aj@suse.de>
72119
72120         [BZ #1950]
72121         * lib/regex_internal.c (re_string_reconstruct): Adjust for
72122         build_wcs_upper_buffer change.
72123         (build_wcs_upper_buffer): Change return type.
72124
72125         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
72126
72127         * lib/regex_internal.h: Include <stdint.h> if available.
72128
72129         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
72130
72131         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
72132
72133         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
72134
72135         * lib/regcomp.c: Adjust for changed secondary hash function.
72136
72137         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
72138
72139         * lib/regex.h: Pretty printing.
72140         Clean up namespace a bit.
72141
72142         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
72143
72144         * lib/regexec.c (update_cur_sifted_state, check_arrival,
72145         check_arrival_add_next_nodes): Avoid using uninitialized variable.
72146
72147         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
72148                     Ulrich Drepper  <drepper@redhat.com>
72149
72150         [BZ #1302]
72151         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
72152         changed.
72153         (bitset_word_t): Renamed from bitset_word.  All uses changed.
72154
72155         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
72156
72157         [BZ #281]
72158         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
72159         * lib/regcomp.c: Remove unnecessary uses of
72160         unsigned RE_TRANSLATE_TYPE.
72161         * lib/regex_internal.h: Likewise.
72162         * lib/regex_internal.c: Likewise.
72163         * lib/regexec.c: Likewise.
72164         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
72165
72166         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
72167
72168         * lib/regexec.c (find_recover_state): Remove unnecessary
72169         initialization.
72170         (transit_state_bkref): Make DFA a const pointer.
72171         (get_subexp): Likewise.
72172         (check_arrival): Likewise.
72173         (update_cur_sifted_state): Likewise.
72174         (re_search_internal): Likewise.
72175         (prune_impossible_nodes): Likewise.
72176         (acquire_init_state_context): Likewise.
72177         (proceed_next_node): Likewise.
72178         (set_regs): Likewise.
72179         (free_fail_stack_return): Likewise.
72180         (check_arrival_expand_ecl): Mark DFA parameter as const.
72181         (check_arrival_expand_ecl_sub): Likewise.
72182         (check_subexp_limits): Likewise.
72183         (sub_epsilon_src_nodes):  Likewise.
72184         (add_epsilon_src_nodes):  Likewise.
72185         (merge_state_array): Likewise.
72186         (update_regs): Likewise.
72187         (build_trtable): Likewise.
72188         (sift_states_backward): Mark MCTX parameter as const.
72189         (build_sifted_states): Likewise.
72190         (update_cur_sifted_state): Likewise.
72191         (sift_states_mkref): Likewise.
72192         (check_arrival_expand_ecl): Mark eclosure as const.
72193         (check_dst_limits_calc_pos_1): Likewise.
72194         * lib/regex_internal.h (re_match_context_t): Make dfa a const
72195         pointer.
72196
72197         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
72198
72199         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
72200         (transit_state_sb): Likewise.
72201         (transit_state_mb): Likewise.
72202         (sift_states_iter_mb): Likewise.
72203         (check_arrival_add_next_nodes): Likewise.
72204         (check_node_accept_bytes): Change first parameter to pointer-to-const.
72205         [_LIBC] (re_search_2_stub): Use mempcpy.
72206
72207         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
72208         mbrtowc for very simple UTF-8 case.
72209
72210         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
72211         a pointer-to-const.
72212         (re_acquire_state_context): Likewise.
72213         * lib/regex_internal.h: Adjust prototypes.
72214
72215         * lib/regex.c: Prevent using C++ compilers.
72216
72217         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
72218         (re_acquire_state_context): Likewise.
72219
72220 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
72221
72222         * modules/regex (Depends-on): Add ssize_t.
72223
72224 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
72225
72226         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
72227         translation table.
72228
72229 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
72230
72231         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
72232
72233 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
72234             Bruno Haible  <bruno@clisp.org>
72235
72236         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
72237         <sys/types.h> and <inttypes.h>.
72238
72239 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72240
72241         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
72242         `__error_t_defined', so argp.h will not typedef the former.
72243
72244 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
72245
72246         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
72247         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
72248         glibc names.  Even if glibc is changed to conform to POSIX, the
72249         traditional names will be available anyway, since regex depends on
72250         the extensions module.  Also, fix a longstanding typo in the
72251         implementation of Spencer ERE test #75 from grep 2.3.  Problems
72252         reported by Emanuele Giaquinta.  Also, change sense of cached
72253         variable, so that the message makes sense.
72254
72255 2006-03-24  Simon Josefsson  <jas@extundo.com>
72256
72257         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
72258         including some doc fixes.
72259         (base64_encode_alloc): Fix +1 bug on allocation failures.
72260
72261 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72262
72263         * lib/base64.c (base64_encode): Do not read past end of array with
72264         unsanitized input on systems with CHAR_BIT > 8.
72265
72266 2006-03-24  Eric Blake  <ebb9@byu.net>
72267
72268         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
72269
72270 2006-03-22  Karl Berry  <karl@gnu.org>
72271
72272         * config/srclist.txt (*setenv.[ch]): get from coreutils.
72273         * config/srclistvars.sh (COREUTILS): new var.
72274
72275 2006-03-17  Jim Meyering  <jim@meyering.net>
72276
72277         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
72278         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
72279
72280 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
72281
72282         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
72283         no longer needs it.  Instead, check that regoff_t is as least
72284         as wide as ptrdiff_t.
72285
72286         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
72287         so that our regex.h stays compatible with the installed regex.
72288         This is helpful for installers who configure --without-included-regex.
72289         Problem reported by Emanuele Giaquinta.
72290
72291 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
72292
72293         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
72294         Typedef to long int, not to off_, as POSIX will likely change
72295         in that direction.
72296
72297 2006-03-15  Eric Blake  <ebb9@byu.net>
72298
72299         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
72300
72301 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
72302
72303         * lib/argp-help.c (validate_uparams): Fix typo
72304         * lib/argp-parse.c (argp_default_options): Consistently begin help
72305         messages with a lowercase letter.
72306
72307 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
72308
72309         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
72310         overrun buffers and shouldn't be used (much as gets shouldn't be
72311         used).
72312         * lib/time_r.c (asctime_r, ctime_r): Likewise.
72313
72314 2006-03-08  Simon Josefsson  <jas@extundo.com>
72315
72316         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
72317         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72318
72319 2006-03-08  Simon Josefsson  <jas@extundo.com>
72320
72321         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
72322         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72323
72324 2006-03-08  Simon Josefsson  <jas@extundo.com>
72325
72326         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
72327         signal that configure disabled the device.
72328
72329 2006-03-08  Simon Josefsson  <jas@extundo.com>
72330
72331         * build-aux/maint.mk: Fix refresh-po, to handle no translated
72332         languages.
72333
72334 2006-03-07  Simon Josefsson  <jas@extundo.com>
72335
72336         * modules/getopt (Depends-on): Add unistd.
72337
72338         * modules/unistd: New file.
72339
72340 2006-03-07  Simon Josefsson  <jas@extundo.com>
72341
72342         * modules/gc-random: New file.
72343
72344 2006-03-07  Simon Josefsson  <jas@extundo.com>
72345
72346         * m4/unistd_h.m4: New file.
72347
72348 2006-03-07  Simon Josefsson  <jas@extundo.com>
72349
72350         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
72351         test to be side-effect free by storing the result in the cache
72352         variable gl_cv_lib_readline, and moving the assignment of
72353         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
72354         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72355
72356 2006-03-07  Simon Josefsson  <jas@extundo.com>
72357
72358         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
72359         error on missing devices (the functions will return an error).
72360
72361         * m4/gc.m4: Move random stuff to gc-random.m4
72362
72363 2006-03-07  Simon Josefsson  <jas@extundo.com>
72364
72365         * lib/unistd_.h: New file.
72366
72367 2006-03-07  Simon Josefsson  <jas@extundo.com>
72368
72369         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
72370
72371 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
72372
72373         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
72374         Problem reported by Juan Manuel Guerrero.
72375
72376 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
72377
72378         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
72379         the unistd module.
72380         * lib/getlogin_r.c: Likewise.
72381         * lib/getlogin_r.h: Likewise.
72382         * lib/glob.c: Likewise.
72383         * lib/pagealign_alloc.c: Likewise.
72384         * lib/unistd_.h: Remove; no longer needed.
72385
72386 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
72387
72388         * MODULES.html.sh (Support for systems lacking POSIX:2001):
72389         Add unistd.
72390         * modules/c-stack (Depends-on): Add unistd.
72391         * modules/getlogin_r: Likewise.
72392         * modules/glob: Likewise.
72393         * modules/pagealign_alloc: Likewise.
72394         * modules/unistd (Files): Remove lib/unistd_.h.
72395         (EXTRA_DIST): Remove.
72396         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
72397         need unistd_.h.
72398         (MOSTLYCLEANFILES): Remove unistd.h-t.
72399
72400 2006-03-03  Simon Josefsson  <jas@extundo.com>
72401
72402         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
72403
72404 2006-03-03  Simon Josefsson  <jas@extundo.com>
72405
72406         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
72407         libidn and bison.
72408
72409 2006-03-03  Simon Josefsson  <jas@extundo.com>
72410
72411         * build-aux/maint.mk: Add indent target.
72412
72413 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
72414
72415         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
72416         our replacement poll.h in any case, to avoid a differing
72417         declaration from a system header.  Seen on AIX.
72418
72419 2006-03-01  Simon Josefsson  <jas@extundo.com>
72420
72421         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
72422         <kasal@ucw.cz>.
72423
72424 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
72425
72426         * modules/gettime (Depends-on): Add extensions module.
72427         * modules/nanosleep (Depends-on): Likewise.
72428         * modules/settime (Depends-on): Likewise.
72429
72430 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
72431
72432         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
72433         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
72434         pedantically.
72435         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
72436         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
72437
72438         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
72439         not "==".  Reported by Ralf Wildenhues.
72440
72441 2006-03-01  Karl Berry  <karl@gnu.org>
72442
72443         * doc/Copyright/request-*: new files, synced from gnuorg.
72444
72445 2006-03-01  Karl Berry  <karl@gnu.org>
72446
72447         * config/srclist.txt (Copyright/*): new entries.
72448
72449 2006-02-28  Simon Josefsson  <jas@extundo.com>
72450
72451         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
72452
72453 2006-02-27  Simon Josefsson  <jas@extundo.com>
72454
72455         * lib/base64.h: Indent #define's.  From Jim Meyering
72456         <jim@meyering.net>.
72457
72458 2006-02-27  Jim Meyering  <jim@meyering.net>
72459
72460         Revert the change of 2006-02-24, so these files can continue
72461         to be sync'd from gettext.
72462         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
72463         of `config.h'.
72464
72465 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
72466
72467         * modules/intprops: New file.
72468         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
72469         Add intprops.
72470         * modules/getloadavg (Files): Remove lib/intprops.h.
72471         (Depends-on): Add intprops.
72472         * modules/human: Likewise.
72473         * modules/inttostr: Likewise.
72474         * modules/openat: Likewise.
72475         * modules/sig2str: Likewise.
72476         * modules/userspec: Likewise.
72477         * modules/utimecmp: Likewise.
72478         * modules/xnanosleep: Likewise.
72479         * modules/xstrtol: Likewise.
72480
72481 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
72482
72483         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
72484         * modules/lock-tests (TESTS): Use $(EXEEXT).
72485         * modules/tls-tests: Likewise.
72486         * modules/argp-tests: Likewise.
72487         (check_PROGRAMS): New var, replacing...
72488         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
72489
72490 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72491
72492         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
72493         `config.h'.
72494
72495 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
72496
72497         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
72498
72499 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72500
72501         Sync from coreutils.
72502         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
72503         gl_CHDIR_SAFER.
72504
72505 2006-02-22  Jim Meyering  <jim@meyering.net>
72506
72507         Sync from coreutils.
72508         * m4/chdir-safer.m4: New file.
72509
72510 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
72511
72512         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
72513         AT_FDCWD exceeds INT_MAX.
72514         * lib/openat.h (AT_FDCWD): Likewise.
72515
72516 2006-02-17  Eric Blake  <address@hidden>
72517
72518         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
72519
72520 2006-02-16  Simon Josefsson  <jas@extundo.com>
72521
72522         * modules/getaddrinfo (Depends-on): Add sys_socket.
72523
72524 2006-02-15  Simon Josefsson  <jas@extundo.com>
72525
72526         * build-aux/maint.mk: Add dsyntax-check rule.
72527
72528 2006-02-15  Eric Blake  <ebb9@byu.net>
72529
72530         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
72531         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
72532         'present but cannot compile' warnings on cygwin.
72533         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
72534         use ws2tcpip.h if sys/socket.h works.
72535         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
72536         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
72537
72538 2006-02-14  Simon Josefsson  <jas@extundo.com>
72539
72540         * modules/maintainer-makefile (Files): Rename.
72541
72542         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
72543         and (the local) Makefile.cfg to maint-cfg.mk.
72544
72545         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
72546         to the latter.
72547
72548         * modules/maintainer-makefile: New module.
72549
72550         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
72551         severaly stripped to make it possible to build it up from scratch
72552         with reliable tests.
72553
72554         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
72555         fixes to permit overriding the default actions when configure and
72556         makefile are not available.
72557
72558 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
72559
72560         Sync from coreutils.
72561         * modules/lstat (Depends-on): Don't depend on xalloc.
72562         (License): Change from GPL to LGPL, since this is now simply a
72563         replacement for a libc function.
72564
72565 2006-02-14  Jim Meyering  <jim@meyering.net>
72566
72567         Sync from coreutils.
72568
72569         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
72570         failure on deficient systems, and simplify gnulib lgpl dependencies.
72571         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
72572         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
72573
72574         * lib/xalloc-die.c: Remove unused definition of N_.
72575
72576 2006-02-14  Jim Meyering  <jim@meyering.net>
72577
72578         Sync from coreutils.
72579         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
72580         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
72581         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
72582         double-quote uses of that variable, to accommodate the rare case in
72583         which getmntent is available in none of the libraries checked.  This
72584         happens at least on FreeBSD 5.0.
72585
72586 2006-02-13  Simon Josefsson  <jas@extundo.com>
72587
72588         * gnulib-tool (Usage): Fix --import, from
72589         karl@freefriends.org (Karl Berry).
72590
72591 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
72592
72593         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
72594
72595 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
72596
72597         * lib/argp-namefrob.h: Restore changes accidentally lost during the
72598         "autoupdate" on 2005-12-12.
72599
72600 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
72601
72602         * modules/closeout (Depends-on): Remove atexit.
72603
72604 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
72605
72606         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
72607         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
72608
72609 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
72610
72611         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
72612         __EXTENSIONS__ if this causes compilation to fail.  Problem
72613         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
72614         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
72615
72616 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
72617
72618         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
72619         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
72620         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
72621         All uses changed.
72622
72623 2006-01-26  Simon Josefsson  <jas@extundo.com>
72624
72625         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
72626         prototype is visible on mingw32.
72627
72628         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
72629         for mingw32.
72630
72631         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
72632         mingw32).
72633
72634 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
72635
72636         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
72637         attempt to open for write; this always fails, at least on POSIX
72638         hosts.  This reinstates the 2006-01-09 change, which was
72639         inadvertently removed.
72640
72641 2006-01-26  Bruno Haible  <bruno@clisp.org>
72642
72643         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
72644         Reported by Paul Eggert.
72645
72646 2006-01-26  Bruno Haible  <bruno@clisp.org>
72647             Paul Eggert  <eggert@cs.ucla.edu>
72648
72649         * lib/stdbool_.h (_Bool)
72650         [(! (defined __cplusplus || defined __BEOS__)
72651           && !defined __GNUC__
72652           && !(defined __HP_cc || defined __xlc__
72653                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
72654                || defined __sgi))]:
72655         #define to signed char in these cases too; this simplifies
72656         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
72657         etc., separately) and makes it more conservative.
72658
72659 2006-01-25  Simon Josefsson  <jas@extundo.com>
72660
72661         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
72662         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
72663         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
72664
72665 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
72666
72667         * lib/argp-namefrob.h: Bugfix. Remove stray #
72668
72669 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
72670
72671         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
72672         so that we test the test.
72673         Check for yet another HP-UX cc bug involving *bool |= bool.
72674
72675 2006-01-25  Karl Berry  <karl@gnu.org>
72676
72677         * config/srclist.txt (vasnprintf.c): sync lost.
72678
72679 2006-01-25  Jim Meyering  <jim@meyering.net>
72680
72681         Sync from the stable (b5) branch of coreutils:
72682
72683         * lib/fts.c (fts_children): Don't let close() clobber errno from
72684         failed fchdir().
72685
72686         * lib/fts.c (fts_stat): When following a symlink-to-directory,
72687         don't necessarily interpret stat-fails+lstat-succeeds as indicating
72688         a dangling symlink.  That can also happen at least for ELOOP.
72689         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
72690         FYI, this bug predates the inclusion of fts.c in coreutils.
72691
72692         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
72693         in their own block, so pre-c99 compilers don't object.
72694
72695         Avoid the double-free (first in fts_read, second in fts_close) that
72696         would occur when an `active' directory is made inaccessible (e.g.,
72697         via chmod a-x) during a traversal.
72698         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
72699         before returning.  Reproduce this failure by
72700         mkdir -p a/b; cd a; chmod a-x . b
72701         Reported by Stavros Passas.
72702
72703 2006-01-25  Jim Meyering  <jim@meyering.net>
72704
72705         * lib/fileblocks.c: Remove more useless parentheses.
72706         * lib/readutmp.h: Likewise.
72707
72708 2006-01-25  Bruno Haible  <bruno@clisp.org>
72709
72710         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
72711         warnings.
72712         Reported by Paul Eggert.
72713
72714 2006-01-25  Bruno Haible  <bruno@clisp.org>
72715
72716         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
72717         rid of a trap command. For Solaris sh.
72718         Reported by Mark D. Baushke <mdb@gnu.org>.
72719
72720 2006-01-24  Simon Josefsson  <jas@extundo.com>
72721
72722         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
72723         Bruno.
72724
72725 2006-01-24  Karl Berry  <karl@gnu.org>
72726
72727         * config/srclist.txt (argp-namefrob.h): sync lost.
72728
72729 2006-01-24  Jim Meyering  <jim@meyering.net>
72730
72731         * modules/openat (Files): Add lib/intprops.h.
72732         From Mark D. Baushke.
72733
72734 2006-01-24  Jim Meyering  <jim@meyering.net>
72735
72736         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
72737         Reported by Mark D. Baushke.
72738
72739 2006-01-24  Jim Meyering  <jim@meyering.net>
72740
72741         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
72742
72743 2006-01-24  Bruno Haible  <bruno@clisp.org>
72744
72745         * modules/strnlen (Maintainer): Change from glibc to all.
72746
72747 2006-01-24  Bruno Haible  <bruno@clisp.org>
72748
72749         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
72750         Patch by Paul Eggert.
72751
72752 2006-01-24  Bruno Haible  <bruno@clisp.org>
72753
72754         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
72755         already has it.
72756         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
72757         2005-11-26.
72758
72759         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
72760         'signed char' to avoid problems with the built-in _Bool type.
72761         Reported by Paul Eggert on 2005-11-26.
72762
72763 2006-01-24  Bruno Haible  <bruno@clisp.org>
72764
72765         * gnulib-tool (func_import): Avoid constructing complicated sed
72766         expressions inside backquote.
72767         Report and solution by Mark D. Baushke <mdb@gnu.org>.
72768
72769 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
72770
72771         These changes imported from libc.
72772         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
72773         test and two separate function calls.
72774         * lib/strndup.c (__strndup): Add libc_hidden_def.
72775
72776 2006-01-23  Simon Josefsson  <jas@extundo.com>
72777
72778         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
72779         Remove the test_*_SOURCES variable: automake infers it by default.
72780         * modules/tls-tests: Likewise.
72781
72782 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
72783
72784         Work around porting bugs reported by Dieter in
72785         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
72786         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
72787         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
72788         Include "getopt.h" first, to check interface.
72789         (getenv): Declare only if defined HAVE_DECL_GETENV &&
72790         !HAVE_DECL_GETENV.
72791         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
72792         (__strndup): Revert to K&R-style function dfns, the glibc style.
72793         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
72794         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
72795         Include strnlen.h first, to get prototype properly.
72796         (strnlen): Renamed from __strnlen.
72797         Remove weak alias.
72798
72799 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
72800
72801         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
72802
72803 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
72804
72805         * config/srclist.txt: Adjust to reflect glibc reorganization.
72806         This affects only comments.
72807
72808 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
72809
72810          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
72811          Reported by Bruce Korb <bkorb@gnu.org>.
72812
72813 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
72814
72815         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
72816         to pacify gcc -Wswitch-default.
72817
72818 2006-01-22  Bruno Haible  <bruno@clisp.org>
72819
72820         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
72821         temporary buffer for sprintf, take into account the precision also
72822         for 'd', 'i', 'u', 'o', 'x', 'X'.
72823
72824 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
72825
72826         * modules/argp-tests: New module
72827         * tests/test-argp.c: New file
72828         * tests/test-argp-2.sh: New file
72829
72830 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
72831
72832         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
72833         (__argp_base_name): Removed
72834         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
72835         typo.
72836         (__argp_base_name): Provide macro definition or extern declaration
72837         depending on the configuration
72838
72839 2006-01-20  Simon Josefsson  <jas@extundo.com>
72840
72841         * modules/inet_ntop (Depends-on): Depend on sys_socket.
72842
72843 2006-01-20  Simon Josefsson  <jas@extundo.com>
72844
72845         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
72846
72847 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
72848
72849         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
72850         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
72851         Suggested by Bruno Haible.
72852
72853 2006-01-20  Karl Berry  <karl@gnu.org>
72854
72855         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
72856         until changes propagate, I guess.
72857
72858 2006-01-19  Simon Josefsson  <jas@extundo.com>
72859
72860         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
72861
72862 2006-01-19  Simon Josefsson  <jas@extundo.com>
72863
72864         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
72865
72866 2006-01-19  Simon Josefsson  <jas@extundo.com>
72867
72868         * gnulib-tool: Set check_PROGRAMS.
72869
72870         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
72871         modules/des-tests, modules/gc-arcfour-tests,
72872         modules/gc-arctwo-tests, modules/gc-des-tests,
72873         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
72874         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
72875         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
72876         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
72877         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
72878         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
72879         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
72880         test_*_SOURCES.
72881
72882 2006-01-18  Simon Josefsson  <jas@extundo.com>
72883
72884         * modules/socklen (Depends-on): Depend on sys_socket.
72885
72886 2006-01-18  Simon Josefsson  <jas@extundo.com>
72887
72888         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
72889         modules/des-tests, modules/gc-arcfour-tests,
72890         modules/gc-arctwo-tests, modules/gc-des-tests,
72891         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
72892         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
72893         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
72894         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
72895         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
72896         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
72897         $(EXEEXT) to automake TESTS variable, for mingw32.
72898
72899 2006-01-17  Simon Josefsson  <jas@extundo.com>
72900
72901         * modules/socklen (Include): Need sys/socket.h.
72902
72903 2006-01-17  Bruno Haible  <bruno@clisp.org>
72904
72905         * modules/ssize_t (Include): Add <sys/types.h>.
72906
72907 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
72908
72909         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
72910         it's not portable and it doesn't work with cross-compiles.
72911         Problem reported by Bruno Haible.  Fix missing-$ typo in
72912         'test "gl_cv_ignore_unused_libraries" ...' that prevented
72913         -zignore from being used with Sun's C compiler.
72914
72915 2006-01-12  Simon Josefsson  <jas@extundo.com>
72916
72917         * lib/base64.c: Fix warning, reported by Bruno Haible
72918         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
72919
72920 2006-01-12  Bruno Haible  <bruno@clisp.org>
72921
72922         * modules/ldd: New file.
72923         * build-aux/ldd.sh.in: New file.
72924         * MODULES.html.sh (Support for building libraries and executables): Add
72925         ldd.
72926
72927 2006-01-12  Bruno Haible  <bruno@clisp.org>
72928
72929         * m4/ldd.m4: New file.
72930
72931 2006-01-12  Bruno Haible  <bruno@clisp.org>
72932
72933         * gnulib-tool (func_import, func_create_testdir): Don't go into an
72934         endless loop while replacing $auxdir with build-aux.
72935
72936 2006-01-11  Simon Josefsson  <jas@extundo.com>
72937
72938         * lib/stdint_.h (SIZE_MAX): Add missing (.
72939
72940 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
72941
72942         Sync from coreutils.
72943         * lib/md5.c: Fix commentary typos.
72944         (alignof, UNALIGNED_P): No need for a GCC-specific version.
72945         * lib/md5.h (__attribute__): Remove; unused.
72946         * lib/sha1.c: Fix commentary to match md5 better.
72947         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
72948         so that we don't need to worry about alignment.  All uses changed.
72949         This merges the 2005-10-28 md5 change into sha1.
72950
72951 2006-01-11  Jim Meyering  <jim@meyering.net>
72952
72953         Sync from coreutils.
72954         * lib/md5.c (OP): Fix spacing.
72955
72956 2006-01-11  Bruno Haible  <bruno@clisp.org>
72957
72958         Ensure automatic ordering between gl_LOCK and gl_ARGP.
72959         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
72960         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
72961
72962 2006-01-11  Bruno Haible  <bruno@clisp.org>
72963
72964         Ensure automatic ordering between gl_LOCK and gl_ARGP.
72965         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
72966         the "early" section as well.
72967
72968 2006-01-11  Bruno Haible  <bruno@clisp.org>
72969
72970         Avoid "ar: no archive members specified" error on MacOS X.
72971         * gnulib-tool (func_modules_add_dummy): New function.
72972         (func_import, func_create_testdir): Invoke it.
72973
72974 2006-01-11  Bruno Haible  <bruno@clisp.org>
72975
72976         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
72977         with $auxdir in AC_CONFIG_FILES statements.
72978
72979 2006-01-11  Bruno Haible  <bruno@clisp.org>
72980
72981         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
72982         Initialize also noinst_HEADERS to empty.
72983
72984 2006-01-11  Bruno Haible  <bruno@clisp.org>
72985
72986         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
72987         variables.
72988         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
72989         autoreconf.
72990
72991 2006-01-11  Bruno Haible  <bruno@clisp.org>
72992
72993         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
72994         overridable by the user.
72995         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72996
72997 2006-01-10  Simon Josefsson  <jas@extundo.com>
72998
72999         * modules/sys_socket: New file.
73000
73001 2006-01-10  Simon Josefsson  <jas@extundo.com>
73002
73003         * m4/sys_socket_h.m4: New file.
73004
73005 2006-01-10  Simon Josefsson  <jas@extundo.com>
73006
73007         * lib/socket_.h: New file.
73008
73009 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
73010
73011         * modules/readutmp (Maintainer): Add myself.
73012
73013 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
73014
73015         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
73016         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
73017         People who are still concerned with buggy memcmp implementations
73018         can invoke gl_FUNC_MEMCMP themselves.
73019
73020 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
73021
73022         * lib/regex_internal.h (BITSET_WORD_BITS):
73023         Work around a bug in 64-bit PGC (before version 6.1-2), where the
73024         preprocessor mishandles large unsigned values as if they were signed.
73025         Problem reported by Claudio Fontana in
73026         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
73027
73028 2006-01-10  Jim Meyering  <jim@meyering.net>
73029
73030         Avoid the double-free (first in fts_read, second in fts_close) that
73031         would occur when an `active' directory is made inaccessible (e.g.,
73032         via chmod a-x) during a traversal.
73033         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
73034         before returning.  Reproduce this failure by
73035         mkdir -p a/b; cd a; chmod a-x . b
73036         Reported by Stavros Passas.
73037
73038         Sync from coreutils.
73039         * lib/sha1.c: Tweak grammar in a comment.
73040
73041 2006-01-10  Jim Meyering  <jim@meyering.net>
73042
73043         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
73044         Patch by Joerg Sonnenberger.
73045
73046 2006-01-10  Bruno Haible  <bruno@clisp.org>
73047
73048         * modules/readutmp: Depend on module free.
73049         * modules/strtok_r: Depend on module restrict.
73050
73051 2006-01-10  Bruno Haible  <bruno@clisp.org>
73052
73053         * modules/gettext (configure.ac): Add an invocation of
73054         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
73055
73056 2006-01-10  Bruno Haible  <bruno@clisp.org>
73057
73058         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
73059         Reported by Werner Lemberg <wl@gnu.org>.
73060
73061 2006-01-10  Bruno Haible  <bruno@clisp.org>
73062
73063         * lib/localcharset.c: Update from GNU gettext.
73064
73065 2006-01-10  Bruno Haible  <bruno@clisp.org>
73066
73067         * lib/argp.h (__const): Remove macro. Use const instead.
73068         * lib/argp-fmtstream.h (__const): Likewise.
73069         * lib/glob_.h (__const): Remove macro.
73070         * lib/glob-libc.h: Use const instead of __const.
73071
73072 2006-01-10  Bruno Haible  <bruno@clisp.org>
73073
73074         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
73075         variable.
73076         Needed to avoid an automake error regarding the 'gettext' module.
73077
73078 2006-01-09  Simon Josefsson  <jas@extundo.com>
73079
73080         * modules/inet_ntop (Depends-on): Add restrict.
73081
73082 2006-01-09  Simon Josefsson  <jas@extundo.com>
73083
73084         * modules/gc-rijndael-tests (License): Put under LGPL.
73085
73086         * modules/gc-des-tests (License): Likewise.
73087
73088         * modules/gc-arcfour-tests (License): Likewise.
73089
73090         * modules/gc-arctwo-tests (License): Likewise.
73091
73092         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
73093
73094         * modules/gc-hmac-sha1-tests (Files): Likewise.
73095
73096         * modules/gc-hmac-md5-tests (License): Likewise.
73097
73098         * modules/gc-sha1-tests (License): Likewise.
73099
73100         * modules/gc-md5-tests (License): Likewise.
73101
73102         * modules/gc-md4-tests (License): Likewise.
73103
73104         * modules/gc-md2-tests (License): Likewise.
73105
73106         * modules/gc-tests (License): Likewise.
73107
73108         * modules/des-tests (License): Likewise.
73109
73110         * modules/md4-tests (License): Likewise.
73111
73112         * modules/md2-tests (License): Likewise.
73113
73114 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
73115
73116         Sync from coreutils:
73117
73118         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
73119         * modules/lib-ignore: New file.
73120         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
73121         chdir-safer.m4, lchmod.m4.
73122         * modules/openat: Add mkdirat.c, openat-priv.h.
73123
73124 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
73125
73126         Sync from coreutils.
73127         * m4/lib-ignore.m4: New file.
73128         * m4/lchmod.m4: New file.
73129
73130 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
73131
73132         Sync from coreutils.
73133         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
73134         for write access: POSIX says that must fail.
73135         * lib/fts.c (diropen): Likewise.
73136         * lib/save-cwd.c (save_cwd): Likewise.
73137         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
73138         well, for minor improvements on hosts that lack O_DIRECTORY.
73139         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
73140         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
73141         Fall back on chown if open failed with EACCES.
73142
73143         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
73144         Report an error at compile-time if only a 1-second nominal clock
73145         resolution is found.
73146
73147         * lib/lchmod.h: New file.
73148         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
73149         (make_dir_parents): Use lchown rather than chown, and
73150         lchmod rather than chmod.
73151
73152         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
73153         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
73154         "proc" reported by n0dalus.
73155
73156         * lib/mountlist.c: Include <limits.h>.
73157         (dev_from_mount_options)
73158         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
73159         New function.  It no longer assumes "dev=" has the System V meaning
73160         on Linux (since it doesn't).  It also parses "dev=" more carefully.
73161         (read_file_system_list)
73162         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
73163         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
73164         dev= in that case.
73165
73166         * lib/posixtm.h (PDS_PRE_2000): New macro.
73167         * lib/posixtm.c (year): Arg is now syntax_bits rather than
73168         allow_century.  All usages changed.  Reject dates outside the range
73169         1969-1999 if PDS_PRE_2000 is used.
73170
73171 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
73172
73173         Sync from coreutils.
73174         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
73175         (Time of day items): Mention the possibility of leap seconds.
73176         Problem reported by Dr. David Alan Gilbert.
73177
73178 2006-01-09  Jim Meyering  <jim@meyering.net>
73179
73180         Sync from coreutils.
73181
73182         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
73183
73184         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
73185
73186         * lib/modechange.c (mode_compile): Reject an invalid mode string
73187         that starts with an octal digit.  From Andreas Gruenbacher.
73188
73189         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
73190         and dup to open_safer and dup_safer, respectively.
73191         (openat_permissive): Fix typo in comment.
73192
73193         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
73194         "gettext.h"; either no longer needed or are guaranteed by openat.h.
73195         (_): Remove; no longer needed.
73196         (openat): Renamed from rpl_openat; no need for rpl_openat
73197         since openat.h renames openat for us.
73198         Replace most of the body with a call to openat_permissive,
73199         to avoid duplicate code.
73200         Port to (probably hypothetical) environments were mode_t is
73201         wider than int.
73202         (openat_permissive): Require mode arg, so that we can check
73203         types better.  Put it just after flags.  Change cwd failure
73204         indicator from pointer-to-bool to pointer-to-errno-value.
73205         All callers changed.
73206         Invoke openat_save_fail and/or openat_restore_fail if
73207         cwd_errno is null, so that openat can call us.
73208         (openat_permissive, fdopendir, fstatat, unlinkat):
73209         Simplify errno handling to avoid some duplicate code,
73210         as it's OK to set errno on success.
73211         * lib/openat.h: Revamp code so that function macros depend on
73212         __OPENAT_PREFIX only, not also on AT_FDCWD.
73213         (openat_ro): Remove.  Caller changed to use openat_permissive.
73214         (openat_permissive): Now a macro, if not a function.
73215         (openat_restore_fail, openat_save_fail): Now always functions,
73216         since mkdirat needs them even if __OPENAT_PREFIX is defined.
73217
73218         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
73219         and openat.c.
73220         * lib/mkdirat.c: Include openat-priv.h.
73221         Remove definitions of macros defined therein.
73222         * lib/openat.c: Likewise.
73223
73224         * lib/mkdirat.c (mkdirat): New file and function.
73225         * lib/openat.h (mkdirat): Declare.
73226
73227         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
73228
73229         * lib/openat.h (openat_permissive): Declare.
73230         (openat_ro): Define.
73231
73232         * lib/openat.c (EXPECTED_ERRNO): New macro.
73233         (openat_permissive): New function -- used in remove.c rewrite.
73234         (all functions): Set errno just before returning, only if there
73235         was an actual failure.
73236         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
73237
73238         Emulate openat-family functions using Linux's procfs, if possible.
73239         Idea and some code based on Ulrich Drepper's glibc changes.
73240
73241         * lib/openat.c: (BUILD_PROC_NAME): New macro.
73242         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
73243         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
73244         before falling back on save_cwd and restore_cwd.
73245         (fdopendir, fstatat, unlinkat): Likewise.
73246
73247         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
73248         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
73249
73250         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
73251         as second argument to va_arg.  Otherwise, some versions of gcc
73252         warn that `if this code is reached, the program will abort'.
73253
73254 2006-01-09  Jim Meyering  <jim@meyering.net>
73255
73256         Sync from coreutils.
73257         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
73258         Require openat-priv.h.
73259
73260 2006-01-09  Bruno Haible  <bruno@clisp.org>
73261
73262         * modules/strnlen (Include): Use strnlen.h.
73263
73264 2006-01-09  Bruno Haible  <bruno@clisp.org>
73265
73266         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
73267
73268 2006-01-09  Bruno Haible  <bruno@clisp.org>
73269
73270         * lib/sysexit_.h (EX_OK): New macro.
73271         Suggested by Martin Lambers <marlam@marlam.de>.
73272
73273 2006-01-09  Bruno Haible  <bruno@clisp.org>
73274
73275         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
73276         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
73277
73278 2006-01-09  Bruno Haible  <bruno@clisp.org>
73279
73280         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
73281         numbers.
73282
73283 2006-01-09  Bruno Haible  <bruno@clisp.org>
73284
73285         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
73286         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
73287         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
73288         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
73289
73290 2006-01-09  Bruno Haible  <bruno@clisp.org>
73291
73292         * build-aux/javacomp.sh.in: New file, moved from lib/.
73293         * modules/javacomp-script (Files): Update.
73294         (configure.ac): Add AC_CONFIG_FILES invocation.
73295         (EXTRA_DIST): Remove variable.
73296
73297         * build-aux/javaexec.sh.in: New file, moved from lib/.
73298         * modules/javaexec (Files): Update.
73299         (configure.ac): Add AC_CONFIG_FILES invocation.
73300         (EXTRA_DIST): Remove javaexec.sh.in.
73301
73302         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
73303         * modules/csharpcomp-script (Files): Update.
73304         (configure.ac): Add AC_CONFIG_FILES invocation.
73305         (EXTRA_DIST): Remove variable.
73306
73307         * build-aux/csharpexec.sh.in: New file, moved from lib/.
73308         * modules/csharpexec (Files): Update.
73309         (configure.ac): Add AC_CONFIG_FILES invocation.
73310         (EXTRA_DIST): Remove csharpexec.sh.in.
73311
73312 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
73313
73314         Sync from coreutils.
73315
73316         Add POSIX ACL support
73317         * lib/acl.h (copy_acl, set_acl): Add declarations.
73318         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
73319         systems other than Linux.
73320         (chmod_or_fchmod): New function: use fchmod when possible,
73321         and chmod otherwise.
73322         (file_has_acl): Add a POSIX ACL implementation, with a
73323         Linux-specific subcase.
73324         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
73325         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
73326         acls are unsupported.
73327         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
73328         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
73329         are unsupported.
73330
73331 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
73332
73333         Sync from coreutils.
73334         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
73335
73336 2006-01-07  Bruno Haible  <bruno@clisp.org>
73337
73338         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
73339         gl_EARLY.
73340
73341 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
73342
73343         * lib/strftime.c (tzname): Don't declare if it is already #defined.
73344         Problem reported for Mingw by Mark Junker.
73345
73346 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
73347
73348         * README: Gnulib normally doesn't generate a tarball.
73349
73350 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
73351
73352         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
73353         long int, not int, for nanosecond counts, so that people who are
73354         used to POSIX struct timespec won't be surprised.  Reported by Jim
73355         Meyering.
73356
73357 2005-12-28  Bruno Haible  <bruno@clisp.org>
73358
73359         * build-aux/config.rpath: Update from GNU gettext.
73360
73361 2005-12-16  Jim Meyering  <jim@meyering.net>
73362
73363         * modules/fprintftime: New module.
73364         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
73365
73366 2005-12-16  Jim Meyering  <jim@meyering.net>
73367
73368         * m4/fprintftime.m4: New file.
73369
73370 2005-12-16  Jim Meyering  <jim@meyering.net>
73371
73372         * lib/fprintftime.c, lib/fprintftime.h: New files.
73373
73374 2005-12-15  Simon Josefsson  <jas@extundo.com>
73375
73376         * modules/socklen (configure.ac): Fix M4 macro name, to align with
73377         new m4/socklen.m4.
73378
73379 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
73380
73381         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
73382         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
73383
73384 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
73385
73386         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
73387         * lib/argp-help.c (fill_in_uparams): Check if the constructed
73388         struct uparams is valid. Fall back to the default values if it is
73389         not.
73390
73391 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73392
73393         * modules/argp (Files): Add argp-pin.c
73394         (Depends-on): dirname
73395         (lib_SOURCES): Add argp-pin.c
73396
73397 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73398
73399         * m4/argp.m4:  Check if program_invocation_name and
73400         program_invocation_short_name are declared and define appropriate
73401         macros if they are not.
73402
73403 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73404
73405         * lib/argp-help.c (__argp_base_name): New function
73406         (__argp_short_program_name): Rewrite using __argp_base_name
73407         * lib/argp-namefrob.h: Define program_invocation_name and
73408         program_invocation_short_name if requested
73409         (__argp_base_name): Add prototype
73410         * lib/argp-parse.c (argp_def): Use gettext wrappers
73411         (argp_default_parser): Use __argp_base_name
73412         * lib/argp-pin.c: New file. Defines program_invocation_name and
73413         program_invocation_short_name on systems that lack them.
73414
73415 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
73416
73417         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
73418         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
73419         porting problem reported by Georg Schwarz in
73420         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
73421
73422 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
73423
73424         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
73425         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
73426         porting problem reported by Georg Schwarz in
73427         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
73428
73429 2005-12-05  Bruno Haible  <bruno@clisp.org>
73430
73431         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
73432         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
73433         Reported by Mark Junker <mjscod@gmx.de>.
73434
73435 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
73436
73437         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
73438         Use implementation from Albert Chin, with some
73439         comments/corrections by Stepan Kasal and myself.
73440
73441 2005-12-02  Bruno Haible  <bruno@clisp.org>
73442
73443         * gnulib-tool (func_import): Accept GPLed build tool modules when
73444         --lgpl is given.
73445         * modules/csharpcomp-script: New file.
73446         * modules/csharpcomp: Depend on it.
73447         * modules/javacomp-script: New file.
73448         * modules/javacomp: Depend on it.
73449         Suggested by Simon Josefsson.
73450
73451 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
73452
73453         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
73454         statement, to work around an HP-UX 10.20 compiler bug reported by
73455         Peter O'Gorman.
73456
73457 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
73458
73459         * modules/savedir (Depends-on): Add openat.
73460
73461 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
73462
73463         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
73464         (uintmax_t) [defined uintmax_t]: Do not declare.
73465         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
73466         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
73467         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
73468         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
73469         sake of portability to weird hosts that C allows (though we don't
73470         know of any practical examples).
73471
73472         * lib/savedir.h (fdsavedir): New decl.
73473         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
73474         contains most of the former guts of savedir.
73475         (savedir): Use savedirstream.
73476         Include "openat.h".
73477
73478 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
73479
73480         * modules/obstack (Files): Add m4/ulonglong.m4.
73481         Problem reported by Davide Angelocola.
73482
73483 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
73484
73485         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
73486         coreutils no longer futzes with rounding modes.
73487
73488 2005-11-14  Jim Meyering  <jim@meyering.net>
73489
73490         * lib/mkstemp-safer.c: Include <config.h>, required for possible
73491         replacement of mkstemp.
73492
73493 2005-11-10  Simon Josefsson  <jas@extundo.com>
73494
73495         * lib/readline.c: Remove EOL.
73496
73497 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
73498
73499         * modules/gethrxtime (Depends-on): Add gettime.
73500
73501 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
73502
73503         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
73504         or gettimeofday; no longer needed.
73505
73506 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
73507
73508         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
73509         time business.
73510         (gethrxtime) [! (HAVE_NANOUPTIME
73511         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
73512         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
73513         our own approximation.
73514
73515 2005-11-08  Eric Blake  <ebb9@byu.net>
73516
73517         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
73518
73519 2005-11-08  Eric Blake  <ebb9@byu.net>
73520
73521         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
73522
73523 2005-11-04  Bruno Haible  <bruno@clisp.org>
73524
73525         * gnulib-tool: Implement --update mode.
73526
73527 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
73528
73529         Fix porting problem reported by Theodoros V. Kalamatianos.
73530         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
73531         Don't assume that futimes failing means we must fail.
73532
73533 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
73534
73535         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
73536         variables to suggest the intended function of the PATH_MAX check.
73537
73538 2005-10-30  Kean Johnston  <jkj@sco.com>
73539
73540         Trivial changes to support SCO systems.
73541         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
73542         as PATH_MAX.
73543         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
73544         where __ptr is null when no I/O is pending.
73545
73546 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
73547
73548         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
73549         leave errno alone.  Problem reported by Dmitry V. Levin.
73550
73551 2005-10-28  Simon Josefsson  <jas@extundo.com>
73552
73553         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
73554         Test more.
73555
73556         * tests/test-gc-md2.c, tests/test-md2.c: New files.
73557
73558         * modules/md2, modules/md2-tests: New files.
73559
73560 2005-10-28  Simon Josefsson  <jas@extundo.com>
73561
73562         * m4/inet_ntop.m4: More tests.
73563
73564         * m4/gc-md2.m4, md2.m4: New file.
73565
73566 2005-10-28  Simon Josefsson  <jas@extundo.com>
73567
73568         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
73569         "restrict" keywords, as per POSIX.  Protect the function
73570         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
73571         Don't use K&R prototypes.  Check the sprintf return values.
73572         Re-define EAFNOSUPPORT if not present.  Indent.
73573
73574         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
73575         suggested by Bruno Haible <bruno@clisp.org>.
73576
73577         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
73578
73579         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
73580
73581         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
73582         libgcrypt).
73583
73584         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
73585
73586         * lib/md2.h, lib/md2.c: New files.
73587
73588 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
73589
73590         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
73591         errno alone.  Problem reported by Frederic Jolliton.
73592
73593 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
73594
73595         * modules/verify (License): Change from GPL to LGPL.  This is a
73596         tiny module and there are apparently near-equivalents that are
73597         under the BSD license.
73598
73599 2005-10-24  Simon Josefsson  <jas@extundo.com>
73600
73601         * modules/sha1: Relicense to LGPL.
73602
73603 2005-10-24  Simon Josefsson  <jas@extundo.com>
73604
73605         * lib/md4.h: Shrink buffer size, now that we changed the type.
73606
73607 2005-10-23  Simon Josefsson  <jas@extundo.com>
73608
73609         * gnulib-tool (func_import): Fix --tests-base.
73610
73611 2005-10-22  Simon Josefsson  <jas@extundo.com>
73612
73613         * modules/arcfour (Depends-on): Need stdint.
73614
73615 2005-10-22  Simon Josefsson  <jas@extundo.com>
73616
73617         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
73618         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
73619
73620 2005-10-22  Simon Josefsson  <jas@extundo.com>
73621
73622         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
73623         suggested by Bruno Haible <bruno@clisp.org>.
73624
73625 2005-10-22  Simon Josefsson  <jas@extundo.com>
73626
73627         * lib/crc.h: Include stddef.h, for size_t.
73628
73629 2005-10-22  Simon Josefsson  <jas@extundo.com>
73630
73631         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
73632         arcfour_context struct (simplify test vector testing in GNU
73633         Shishi).
73634
73635 2005-10-21  Simon Josefsson  <jas@extundo.com>
73636
73637         * modules/des, modules/des-tests: New files.
73638
73639         * modules/gc-des, modules/gc-des-tests: New files.
73640
73641         * tests/test-des.c, tests/test-gc-des.c: New file.
73642
73643 2005-10-21  Simon Josefsson  <jas@extundo.com>
73644
73645         * modules/arctwo, modules/arctwo-tests: New files.
73646
73647         * tests/test-arctwo.c: New file.
73648
73649         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
73650
73651         * tests/test-gc-arctwo.c: New file.
73652
73653 2005-10-21  Simon Josefsson  <jas@extundo.com>
73654
73655         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
73656         Bruno Haible <bruno@clisp.org>.
73657
73658         * m4/gc-des.m4: New file.
73659
73660 2005-10-21  Simon Josefsson  <jas@extundo.com>
73661
73662         * m4/arctwo.m4: New file.
73663
73664         * m4/gc-arctwo.m4: New file.
73665
73666 2005-10-21  Simon Josefsson  <jas@extundo.com>
73667
73668         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
73669         block.
73670
73671 2005-10-21  Simon Josefsson  <jas@extundo.com>
73672
73673         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
73674         <bruno@clisp.org>.
73675
73676         * lib/hmac-sha1.c (hmac_sha1): Likewise.
73677
73678         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
73679         Bruno Haible <bruno@clisp.org>.
73680
73681         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
73682         <bruno@clisp.org>.
73683
73684 2005-10-21  Simon Josefsson  <jas@extundo.com>
73685
73686         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
73687
73688 2005-10-21  Simon Josefsson  <jas@extundo.com>
73689
73690         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
73691
73692 2005-10-21  Simon Josefsson  <jas@extundo.com>
73693
73694         * lib/des.h, lib/des.c: New files.
73695
73696         * lib/gc-gnulib.c: Support DES.c
73697
73698 2005-10-21  Simon Josefsson  <jas@extundo.com>
73699
73700         * lib/arctwo.h, lib/arctwo.c: New files.
73701
73702         * lib/gc-gnulib.c: Support ARCTWO.
73703
73704 2005-10-21  Simon Josefsson  <jas@extundo.com>
73705
73706         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
73707         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73708
73709 2005-10-21  Simon Josefsson  <jas@extundo.com>
73710
73711         * gnulib-tool (func_import, func_create_testdir): Define automake
73712         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
73713         Makefile.am snippet),
73714         suggested by Bruno Haible <bruno@clisp.org>.
73715
73716         * modules/gc (Makefile.am): Use it.
73717
73718 2005-10-21  Bruno Haible  <bruno@clisp.org>
73719
73720         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
73721         patch.
73722
73723 2005-10-19  Simon Josefsson  <jas@extundo.com>
73724
73725         * tests/test-gc-rijndael.c: New file.
73726
73727         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
73728
73729 2005-10-19  Simon Josefsson  <jas@extundo.com>
73730
73731         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
73732         interface too.
73733
73734 2005-10-19  Simon Josefsson  <jas@extundo.com>
73735
73736         * tests/test-gc-arcfour.c: New file.
73737
73738         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
73739
73740 2005-10-19  Simon Josefsson  <jas@extundo.com>
73741
73742         * modules/gc-md4, modules/gc-md4-tests: New file.
73743
73744         * tests/test-gc-md4.c: New file.
73745
73746 2005-10-19  Simon Josefsson  <jas@extundo.com>
73747
73748         * m4/gc-md4.m4: New file.
73749
73750 2005-10-19  Simon Josefsson  <jas@extundo.com>
73751
73752         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
73753         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
73754         <kasal@ucw.cz>.
73755
73756 2005-10-19  Simon Josefsson  <jas@extundo.com>
73757
73758         * m4/gc-arcfour.m4: New file.
73759
73760         * m4/gc-rijndael.m4: New file.
73761
73762 2005-10-19  Simon Josefsson  <jas@extundo.com>
73763
73764         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
73765
73766 2005-10-19  Simon Josefsson  <jas@extundo.com>
73767
73768         * lib/gc-gnulib.c: Support ARCFOUR.
73769
73770 2005-10-19  Simon Josefsson  <jas@extundo.com>
73771
73772         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
73773         support.
73774
73775         * lib/gc.h: Add ECB enum type.
73776
73777         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
73778
73779 2005-10-18  Simon Josefsson  <jas@extundo.com>
73780
73781         * tests/test-md5.c: New file.
73782
73783         * modules/md5-tests: New file.
73784
73785 2005-10-18  Simon Josefsson  <jas@extundo.com>
73786
73787         * tests/test-md4.c: New file.
73788
73789         * modules/md4, modules/md4-tests: New files.
73790
73791 2005-10-18  Simon Josefsson  <jas@extundo.com>
73792
73793         * m4/md4.m4: New file.
73794
73795 2005-10-18  Simon Josefsson  <jas@extundo.com>
73796
73797         * lib/md4.h, lib/md4.c: New files, based on md5.?.
73798
73799 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
73800
73801         * gnulib-tool (func_create_testdir): Omit the second check whether
73802         BUILT_SOURCES in nonempty.
73803
73804 2005-10-17  Simon Josefsson  <jas@extundo.com>
73805
73806         * tests/test-rijndael.c: New file.
73807
73808 2005-10-17  Simon Josefsson  <jas@extundo.com>
73809
73810         * modules/sha1: Depend on stdint instead of md5.
73811
73812         * modules/md5: Depend on stdint, remove uint32_t.
73813
73814 2005-10-17  Simon Josefsson  <jas@extundo.com>
73815
73816         * modules/gc-sha1-tests: New file.
73817
73818         * tests/test-gc-sha1.c: New file.
73819
73820 2005-10-17  Simon Josefsson  <jas@extundo.com>
73821
73822         * m4/md5.m4: Remove call to uint32_t.m4.
73823
73824 2005-10-17  Simon Josefsson  <jas@extundo.com>
73825
73826         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
73827
73828         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
73829         md5.h.
73830
73831         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
73832
73833         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
73834
73835 2005-10-17  Simon Josefsson  <jas@extundo.com>
73836
73837         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
73838
73839 2005-10-17  Simon Josefsson  <jas@extundo.com>
73840
73841         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
73842
73843 2005-10-17  Simon Josefsson  <jas@extundo.com>
73844
73845         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
73846
73847         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
73848
73849 2005-10-17  Bruno Haible  <bruno@clisp.org>
73850
73851         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
73852         that it can also be used in a test.
73853
73854 2005-10-16  Bruno Haible  <bruno@clisp.org>
73855
73856         * gnulib-tool (func_emit_tests_Makefile_am): Also define
73857         TESTS_ENVIRONMENT, so that individual tests can augment it.
73858
73859         * gnulib-tool (func_create_testdir): Use an intermediate target for
73860         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
73861         macros, like $(ALLOCA_H), which cannot be passed through the command
73862         line.
73863
73864 2005-10-15  Simon Josefsson  <jas@extundo.com>
73865
73866         * modules/rijndael-tests: New file.
73867
73868         * modules/rijndael: New file.
73869
73870 2005-10-15  Simon Josefsson  <jas@extundo.com>
73871
73872         * m4/rijndael.m4: New file.
73873
73874 2005-10-15  Simon Josefsson  <jas@extundo.com>
73875
73876         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
73877
73878         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
73879
73880 2005-10-14  Simon Josefsson  <jas@extundo.com>
73881
73882         * tests/test-arcfour.c: New file.
73883
73884         * modules/arcfour, modules/arcfour-tests: New files.
73885
73886 2005-10-14  Simon Josefsson  <jas@extundo.com>
73887
73888         * m4/arcfour.m4: New file.
73889
73890 2005-10-14  Simon Josefsson  <jas@extundo.com>
73891
73892         * lib/arcfour.h, lib/arcfour.c: New files.
73893
73894 2005-10-14  Roland McGrath  <roland@redhat.com>
73895
73896         Import from libc.  [BZ #1331]
73897         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
73898         macro argument.
73899         Reported by Matej Vela <vela@debian.org>.
73900
73901 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
73902
73903         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
73904         include <wchar.h>; no longer needed.
73905
73906 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
73907
73908         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
73909
73910 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
73911         and  Ulrich Drepper  <drepper@redhat.com>
73912
73913         Import from libc.
73914         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
73915         instead of inline stream orientation test and two separate
73916         function calls.  Pay no attention to USE_IN_LIBIO.
73917
73918 2005-10-13  Simon Josefsson  <jas@extundo.com>
73919
73920         * modules/gc-hmac-md5-tests: New file.
73921
73922         * tests/test-gc-hmac-sha1.c: New file.
73923
73924         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
73925
73926         * modules/gc-hmac-md5-tests: New file.
73927
73928         * tests/test-gc-md5.c: New file.
73929
73930         * modules/gc-md5-tests: New file.
73931
73932 2005-10-13  Simon Josefsson  <jas@extundo.com>
73933
73934         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
73935         Move memory allocation outside of loop.
73936
73937 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
73938
73939         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
73940         intermediate directory is in a read-only file system.  Problem
73941         reported by Eric Blake.
73942
73943 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
73944
73945         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
73946
73947 2005-10-12  Simon Josefsson  <jas@extundo.com>
73948
73949         * tests/test-hmac-sha1.c: New file.
73950
73951         * modules/hmac-sha1-tests: New file.
73952
73953         * modules/hmac-sha1: New file.
73954
73955 2005-10-12  Simon Josefsson  <jas@extundo.com>
73956
73957         * modules/gc-sha1: New file.
73958
73959 2005-10-12  Simon Josefsson  <jas@extundo.com>
73960
73961         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
73962
73963         * tests/test-gc-pbkdf2-sha1.c: New file.
73964
73965 2005-10-12  Simon Josefsson  <jas@extundo.com>
73966
73967         * modules/gc-md5, modules/gc-hmac-md5: New files.
73968
73969         * modules/gc (Files): Remove md5, memxor and hmac files.
73970
73971 2005-10-12  Simon Josefsson  <jas@extundo.com>
73972
73973         * m4/gc-pbkdf2-sha1.m4: New file.
73974
73975         * m4/gc-hmac-sha1.m4: New file.
73976
73977         * m4/gc-sha1: New file.
73978
73979         * m4/hmac-sha1.m4: New file.
73980
73981 2005-10-12  Simon Josefsson  <jas@extundo.com>
73982
73983         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
73984
73985         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
73986
73987 2005-10-12  Simon Josefsson  <jas@extundo.com>
73988
73989         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
73990         suggested by Bruno Haible <bruno@clisp.org>.
73991
73992 2005-10-12  Simon Josefsson  <jas@extundo.com>
73993
73994         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
73995
73996 2005-10-12  Simon Josefsson  <jas@extundo.com>
73997
73998         * lib/gc-pbkdf2-sha1.c: New file.
73999
74000         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
74001
74002 2005-10-12  Simon Josefsson  <jas@extundo.com>
74003
74004         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
74005
74006         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
74007
74008 2005-10-12  Simon Josefsson  <jas@extundo.com>
74009
74010         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
74011         GC_USE_HMAC_MD5, respectively.
74012
74013         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
74014         (gc_md5): Fix typo.
74015
74016         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
74017
74018         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
74019
74020         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
74021
74022 2005-10-12  Bruno Haible  <bruno@clisp.org>
74023
74024         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
74025         Reported by Stepan Kasal <kasal@ucw.cz>.
74026
74027 2005-10-11  Simon Josefsson  <jas@extundo.com>
74028
74029         * tests/test-crc.c: New file.
74030
74031         * modules/crc, modules/crc-tests: New files.
74032
74033 2005-10-11  Simon Josefsson  <jas@extundo.com>
74034
74035         * m4/crc.m4: New file.
74036
74037 2005-10-11  Simon Josefsson  <jas@extundo.com>
74038
74039         * lib/gc.h: Add gc_hash and gc_hash_buffer.
74040
74041         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
74042
74043         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
74044
74045 2005-10-11  Simon Josefsson  <jas@extundo.com>
74046
74047         * lib/crc.h, lib/crc.c: New files.
74048
74049         * lib/gc.h (gc_hash_buffer): Add doc.
74050
74051 2005-10-11  Bruno Haible  <bruno@clisp.org>
74052
74053         * modules/c-strcasestr: New file.
74054         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
74055
74056 2005-10-11  Bruno Haible  <bruno@clisp.org>
74057
74058         * modules/c-strcase: New file.
74059         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
74060
74061 2005-10-11  Bruno Haible  <bruno@clisp.org>
74062
74063         * lib/strcasecmp.c: Include limits.h.
74064         (strcasecmp): Avoid integer overflow on exotic platforms.
74065         * lib/strncasecmp.c: Include limits.h.
74066         (strncasecmp): Avoid integer overflow on exotic platforms.
74067         Reported by Paul Eggert.
74068
74069 2005-10-11  Bruno Haible  <bruno@clisp.org>
74070
74071         * lib/c-strcasestr.h: New file, from GNU gettext.
74072         * lib/c-strcasestr.c: New file, from GNU gettext.
74073
74074 2005-10-11  Bruno Haible  <bruno@clisp.org>
74075
74076         * lib/c-strcase.h: New file, from GNU gettext.
74077         * lib/c-strcasecmp.c: New file, from GNU gettext.
74078         * lib/c-strncasecmp.c: New file, from GNU gettext.
74079
74080 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
74081
74082         * modules/mempcpy (License): GPL -> LGPL.
74083         * modules/strchrnul (License): Likewise.
74084         * modules/sysexits (License): Likewise.
74085
74086 2005-10-08  Simon Josefsson  <jas@extundo.com>
74087
74088         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
74089
74090 2005-10-07  Simon Josefsson  <jas@extundo.com>
74091
74092         * m4/memxor.m4: Remove gl_C_RESTRICT call.
74093
74094 2005-10-06  Simon Josefsson  <jas@extundo.com>
74095
74096         * tests/test-hmac-md5.c: New file.
74097
74098         * modules/hmac-md5-tests: New file.
74099
74100         * modules/hmac-md5: New file.
74101
74102 2005-10-06  Simon Josefsson  <jas@extundo.com>
74103
74104         * m4/hmac-md5.m4: New file.
74105
74106         * m4/memxor.m4: Require gl_C_RESTRICT.
74107
74108 2005-10-06  Simon Josefsson  <jas@extundo.com>
74109
74110         * lib/memxor.c (memxor): Avoid casts and warnings.
74111
74112 2005-10-06  Simon Josefsson  <jas@extundo.com>
74113
74114         * lib/hmac-md5.c: New file.
74115
74116         * lib/hmac.h: New file.
74117
74118 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
74119
74120         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
74121         promotes to int, not unsigned int, to catch the AIX 5.3
74122         compiler bug.
74123
74124 2005-10-05  Simon Josefsson  <jas@extundo.com>
74125
74126         * modules/memxor: New file.
74127
74128         * modules/iconv (Files): Move config.rpath to havelib, it is used
74129         there.
74130
74131         * modules/havelib (Files): Add config.rpath.
74132
74133 2005-10-05  Simon Josefsson  <jas@extundo.com>
74134
74135         * m4/memxor.m4: New file.
74136
74137 2005-10-05  Simon Josefsson  <jas@extundo.com>
74138
74139         * lib/memxor.c (memxor): Fix compiler error.
74140
74141         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
74142         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
74143
74144         * lib/memxor.h, lib/memxor.c: New files.
74145
74146         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
74147         we assume all systems have it, suggested by Jim Meyering
74148         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
74149         any systems lack sys/socket.h; mingw32 is known to lack it, but we
74150         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
74151         same reasons.
74152
74153 2005-10-05  Simon Josefsson  <jas@extundo.com>
74154
74155         * config/srclist.txt: Add glibc bug 1423 for md5.h.
74156
74157 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
74158
74159         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
74160         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
74161         needed, since the source code now assumes these .h files.
74162
74163 2005-10-05  Derek Price  <derek@ximbiot.com>
74164
74165         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
74166
74167 2005-10-05  Bruno Haible  <bruno@clisp.org>
74168
74169         * modules/stdint (License): Change to LGPL.
74170
74171 2005-10-04  Simon Josefsson  <jas@extundo.com>
74172
74173         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
74174         D. Baushke" <mdb@gnu.org>.
74175
74176 2005-10-04  Bruno Haible  <bruno@clisp.org>
74177
74178         * lib/verify.h (verify_true): Provide alternative definition for C++.
74179
74180 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
74181
74182         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
74183         (SSIZE_MAX): New macro, if not already defined.
74184         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
74185         than 2 GiB.
74186
74187 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
74188
74189         Sync from coreutils.
74190         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
74191         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
74192         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
74193         ULLONG_MAX doesn't work with 2.7.2.1.
74194
74195 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
74196
74197         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
74198         From Ben Pfaff.
74199
74200         * modules/exclude (Depends-on): Depend on verify.
74201         * modules/strtoimax (Depends-on): Likewise.
74202         * modules/utimecmp (Depends-on): Likewise.
74203
74204 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
74205
74206         * lib/exclude.c: Include verify.h.
74207         (verify): Remove.  All callers changed to use verify.h's version.
74208         * lib/strtoimax.c: Likewise.
74209         * lib/utimecmp.c: Likewis.e
74210
74211         Sync from coreutils.
74212         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
74213         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
74214         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
74215         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
74216         bother returning ENOSYS if settimeofday or stime fails; just let
74217         them return whatever errno they want to return.
74218         * lib/utimens.c: Include unistd.h, for dup2.
74219         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
74220         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
74221
74222 2005-10-02  Jim Meyering  <jim@meyering.net>
74223
74224         Sync from coreutils.
74225         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
74226         from glibc-2.2.5 that fails for read-only files.
74227
74228 2005-10-02  Jim Meyering  <jim@meyering.net>
74229
74230         Sync from coreutils.
74231         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
74232         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
74233         `#if HAVE_CONFIG_H'.
74234         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
74235         Remove AT_FDCWD test.
74236         Do not consume the fd unless successful.
74237         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
74238         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
74239         block, so that we don't even try to compile it if settimeofday is
74240         available.  This works around a compilation failure on OSF1 V5.1,
74241         due to stime requiring a `long int*' while tv_sec is `int'.
74242
74243 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
74244
74245         Sync from coreutils.
74246         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
74247         against `yes', rather than just testing for nonempty.
74248
74249 2005-10-01  Simon Josefsson  <jas@extundo.com>
74250
74251         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
74252         and Darwin.
74253
74254         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
74255         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
74256         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
74257         freeaddrinfo and gai_strerror are declared by the POSIX headers.
74258         Check if struct addrinfo is declared.
74259
74260 2005-10-01  Simon Josefsson  <jas@extundo.com>
74261
74262         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
74263         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
74264         AI_* and EAI_* definitions.  Protect function declarations.
74265
74266 2005-10-01  Jim Meyering  <jim@meyering.net>
74267
74268         Sync from coreutils.
74269
74270         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
74271         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
74272         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
74273         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
74274         in the inet and nsl libraries.  Required on Solaris 5.7.
74275
74276 2005-10-01  Jim Meyering  <jim@meyering.net>
74277
74278         Sync from coreutils.
74279         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
74280         in the inet and nsl libraries.  Required on Solaris 5.7.
74281
74282 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
74283
74284         * lib/getdelim.c (getdelim): Remove unused variables.
74285
74286 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
74287
74288         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
74289         so that the code works even with ancient cpp.  Portability problem
74290         with GCC 2.7.2.1 reported by Thomas M.Ott.
74291
74292 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
74293
74294         * modules/regex (Depends-on): Add strcase.
74295
74296         * modules/gethostname (Licence): Change from GPL to LGPL, since
74297         gethostname.c is a trivial implementation of a standard library
74298         function.
74299         * modules/poll (License): Change from GPL to LGPL, since it's
74300         derived from LGPL code.
74301
74302 2005-09-27  Jim Meyering  <jim@meyering.net>
74303
74304         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
74305         HAVE_CONFIG_H.
74306
74307         * lib/intprops.h (signed_type_or_expr__): Define.
74308         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
74309         for unsigned types.
74310
74311 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
74312
74313         * lib/verify.h (verify_expr): Remove, replacing with:
74314         (verify_true): New macro that returns true instead of void.
74315         (verify_type__): Remove.
74316         (verify): Use verify_true rather than verify_type__.
74317
74318 2005-09-26  Bruno Haible  <bruno@clisp.org>
74319
74320         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
74321         is necessary.
74322         (lib_SOURCES): Remove mbchar.c.
74323         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
74324         (Files): Add m4/mbrtowc.m4.
74325         * modules/mbiter: Likewise.
74326         * modules/mbuiter: Likewise.
74327
74328 2005-09-26  Bruno Haible  <bruno@clisp.org>
74329
74330         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
74331         compile mbchar.c if they are not both present.
74332         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
74333         * m4/mbiter.m4 (gl_MBITER): Likewise.
74334         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
74335         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
74336         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
74337
74338 2005-09-25  Jim Meyering  <jim@meyering.net>
74339
74340         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
74341         also uses socklen_t.
74342
74343 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
74344
74345         * lib/utimens.c (ENOSYS): Define if not already defined.
74346         (futimens): Support having a null PATH if the file descriptor
74347         is nonnegative.
74348
74349         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
74350         Remove.
74351         (__attribute): Define to empty unless GCC 3.1 or later.
74352         This works around a core dump on OpenBSD 3.4, which has GCC
74353         2.95.3, which dumps core when given __attribute__(()).  It also
74354         simplifies other tests, since we really don't want to bother with
74355         worrying about which ancient version of GCC supported what.
74356         Original problem reported by Yoann Vandoorselaere, with part of
74357         the fix suggested by Derek Price.
74358
74359 2005-09-24  Jim Meyering  <jim@meyering.net>
74360
74361         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
74362         so we can once again use a positive bitfield width of 1 -- now we
74363         don't have to explain why we were using a bitfield width of 2.
74364
74365 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
74366
74367         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
74368         and similarly for the other external symbols.  Problem reported
74369         by James Gallager.
74370
74371         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
74372         bug reported by Jim Meyering.
74373
74374         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
74375         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
74376         not needed, since socklen is a prerequisite module.
74377
74378 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
74379
74380         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
74381         Problem reported by Eric Blake.
74382         (getaddrinfo): Initialize se so that it's not garbage.
74383         Redo internal storage allocation so that it doesn't make unportable
74384         assumptions about alignment.
74385         Fix a memory leak.
74386
74387         * lib/utimens.c (futimens): Use futimesat if available.
74388         Prefer it to futimes since it doesn't have the futimes bug.
74389
74390         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
74391         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
74392         Instead, declare a function that returns a pointer to an array,
74393         and use verify_type__ to declare the size of the array.
74394         Problem and germ of a solution reported by Bruno Haible.
74395         (verify_type__): Use 2, not 1, for bitfield size, to avoid
74396         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
74397
74398 2005-09-23  Jim Meyering  <jim@meyering.net>
74399
74400         Sync from coreutils.
74401         Correct build failure (socklen_t not defined) on at least
74402         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
74403         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
74404
74405 2005-09-23  Jim Meyering  <jim@meyering.net>
74406
74407         * modules/getaddrinfo (Depends-on): Add socklen.
74408
74409 2005-09-23  Bruno Haible  <bruno@clisp.org>
74410
74411         * tests/test-verify.c: New file.
74412
74413 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
74414
74415         Sync from coreutils.
74416
74417         * modules/argmatch (Depends-on): Add verify.
74418         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
74419         unistd-safer.
74420         * modules/save-cwd (Depends-on): Likewise.
74421
74422         * modules/openat (Files): Add lib/openat-die.c.
74423         (Depends-on): Remove error, exitfail.
74424         Add dirname.
74425
74426         * modules/verify: New file.
74427         * MODULES.html.sh (Diagnostics <assert.h>): New section,
74428         with "verify" module.
74429
74430 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
74431
74432         Sync from coreutils.
74433
74434         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
74435         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
74436         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
74437         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
74438         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
74439         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
74440         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
74441         Don't bother checking for string.h, stdlib.h, unistd.h.
74442         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
74443         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
74444         module's job.
74445         * m4/jm-macros.m4 (gl_MACROS): Likewise.
74446         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
74447
74448         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
74449         (gl_GETDATE): Use it.
74450
74451         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
74452
74453 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
74454
74455         Sync from coreutils.
74456
74457         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
74458         stat-time.h.
74459         * lib/argmatch.h: Include verify.h
74460         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
74461         (ARGMATCH_ASSERT): Remove; unused.
74462         * lib/canonicalize.c: Assume STDC_HEADERS.
74463         * lib/exclude.c: Include "strcase.h".
74464         * lib/regex_internal.h [!defined _LIBC]: Likewise.
74465         * lib/getusershell.c: Include stdio--.h rather than stdio.h
74466         and stdio-safer.h.
74467         (getusershell): Call fopen, not fopen_safer.
74468         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
74469         Do not include unistd-safer.h.
74470         (save_cwd): Don't call fd_safer; no longer needed
74471         now that we include fcntl--.h.
74472
74473         * lib/getdate.y (relative_time): New type.
74474         (RELATIVE_TIME_0): New constant.
74475         (parser_control): Use relative_time instead of doing it ourselves.
74476         (%union): Add new relative_time rel member.
74477         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
74478         Now typeless.
74479         (relunit, relunit_snumber): Now of type rel.
74480         (zone, rel, relunit, get_date): Adjust to above changes.
74481
74482         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
74483         Do not include unistd-safer.h.
74484         (getloadavg): Don't call fd_safer; no longer needed
74485         now that we include fcntl--.h.
74486
74487         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
74488         (make_dir_parents): Treat ENOSYS like EEXIST.
74489
74490         Improve quality of diagnostics on restore_cwd failure.
74491         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
74492         (make_dir_parents): Last arg is now int * (for errno), not bool *.
74493         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
74494         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
74495         each time through the loop.  Do not diagnose restore_cwd failure;
74496         that is the caller's job (and perhaps the caller does not care).
74497
74498         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
74499         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
74500         If the file already exists but is not a directory, don't bother
74501         to try to make its parents.
74502         Close potential file descriptor leak if we can't chdir("/") (!).
74503         Don't always return true if chdir($PWD) fails; return true only
74504         if the requested action was done successfully (except for the
74505         chdir($PWD)).
74506         Don't log final directory unless we actually made it.
74507         Refactor to avoid duplicate code to fix up permissions.
74508         Don't attempt to fix up parent permissions if chdir($PWD) fails.
74509
74510         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
74511         to make it a bit faster and (I hope) clearer.
74512         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
74513         Fix bug in formats like %2N.
74514
74515         * lib/verify.h: New file.
74516
74517 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
74518
74519         Sync from coreutils.
74520         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
74521
74522 2005-09-22  Jim Meyering  <jim@meyering.net>
74523
74524         Sync from coreutils.
74525
74526         * m4/lstat.m4 (gl_FUNC_LSTAT):
74527         Use AC_LIBSOURCES to require lstat.c and lstat.h.
74528         Remove obsolete comment.
74529         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
74530         * m4/xstrtod.m4: Likewise.
74531
74532         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
74533
74534 2005-09-22  Jim Meyering  <jim@meyering.net>
74535
74536         Sync from coreutils.
74537
74538         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
74539
74540         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
74541         the .tm_year member, since otherwise gcc-4.0 would now warn about
74542         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
74543
74544         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
74545         order to avoid an unsuppressible warning from gcc on 64-bit systems.
74546
74547         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
74548         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
74549         when run in a time zone for which daylight savings time is in effect
74550         for the starting date.
74551
74552         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
74553         stop us from restricting permissions of just-created absolute-named
74554         directories.
74555         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
74556         to restore initial working directory.
74557         * lib/mkdir-p.c (make_dir_parents): New parameter:
74558         different_working_dir, to tell caller if/when we change the working
74559         directory and are unable to return to the initial one.
74560         * lib/mkdir-p.h (make_dir_parents): Update prototype.
74561         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
74562         `return false'.  This fixes a bug introduced on 2004-07-30.
74563
74564         * lib/openat.c (fdopendir): Be sure to close the supplied
74565         file descriptor before returning.  This makes our replacement
74566         implementation a little closer to Solaris's, where fdopendir
74567         ties the file descriptor to the returned DIR* pointer.
74568         * lib/openat.c (unlinkat): New function.
74569         * lib/openat.h (unlinkat): Add prototype.
74570         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
74571         (openat_restore_fail): Rename from openat_restore_die.
74572         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
74573
74574         Provide an alternative to exiting immediately upon save_cwd or
74575         restore_cwd failure.  Now, an application can arrange e.g.,
74576         to perform a longjump in that case.
74577         * lib/openat.c: Include dirname.h.
74578         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
74579         (rpl_openat, fdopendir, fstatat): Call openat_save_die
74580         and openat_restore_die rather than calling error directly.
74581         Don't include "error.h" or "exitfail.h"; they're no longer needed.
74582
74583         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
74584         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
74585         define.
74586
74587         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
74588         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
74589                             int utc, int nanoseconds);
74590         Background:
74591         date should not have to allocate a megabyte of virtual memory to
74592         handle a format argument like +%1048575T.  When implemented with
74593         strftime, it must allocate such a buffer, use strftime to fill it
74594         in, print it, then free it.
74595         With fprintftime, it simply prints everything and exits.
74596         With no need for memory allocation, that's one fewer way to fail.
74597         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
74598         optional field width, not before, so we accept %9:z, not %:9z.
74599         (my_strftime): Be sure to use L_('x') for literals.
74600
74601         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
74602         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
74603         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
74604         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
74605         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
74606         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
74607         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
74608         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
74609         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
74610         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
74611         * lib/xgethostname.c, lib/xreadlink.c:
74612         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
74613
74614         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
74615         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
74616         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
74617         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
74618         and don't include <sys/file.h>).
74619
74620 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
74621
74622         Sync from coreutils.
74623
74624         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
74625         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
74626         [!LDAV_DONE]: Avoid unused variable warning.
74627
74628 2005-09-21  Bruno Haible  <bruno@clisp.org>
74629
74630         * lib/unicodeio.h (unicode_to_mb): New declaration.
74631
74632 2005-09-20  Derek Price  <derek@ximbiot.com>
74633
74634         * lib/getaddrinfo.c: Don't include <netdb.h> included from
74635         getaddrinfo.h.
74636
74637 2005-09-20  Bruno Haible  <bruno@clisp.org>
74638
74639         * gnulib-tool: Remove trailing slashes from the values specified for
74640         --source-base, --m4-base, --tests-base, --aux-dir.
74641         Suggested by Simon Josefsson <jas@extundo.com>.
74642
74643 2005-09-20  Bruno Haible  <bruno@clisp.org>
74644
74645         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
74646         func_modules_to_filelist, func_import, func_create_testdir): Make all
74647         sorting results locale-independent, so that gnulib-cache.m4 doesn't
74648         change when gnulib-tool is invoked in a different locale.
74649
74650 2005-09-19  Simon Josefsson  <jas@extundo.com>
74651
74652         * m4/socklen.m4: Fix typo.
74653
74654 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74655
74656         Use a consistent style for including <config.h>.
74657         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
74658         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
74659         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
74660         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
74661         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
74662         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
74663         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
74664         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
74665         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
74666         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
74667         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
74668         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
74669         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
74670         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
74671         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
74672         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
74673         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
74674         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
74675         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
74676         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
74677         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
74678         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
74679         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
74680         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
74681         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
74682         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
74683         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
74684         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
74685         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
74686         lib/xstrtoumax.c, lib/yesno.c:
74687         Standardize inclusion of config.h.
74688         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
74689         lib/inttostr.h:  Removed inclusion of config.h from header files.
74690         * lib/inttostr.c:  Adjusted in-tree users.
74691         * lib/timespec.h: Remove superfluous warning to include config.h.
74692         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
74693         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
74694         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
74695         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
74696         config.h with HAVE_CONFIG_H.
74697
74698 2005-09-19  Jim Meyering  <jim@meyering.net>
74699
74700         * modules/pathmax (License): Change to LGPL.
74701
74702 2005-09-19  Derek Price  <derek@ximbiot.com>
74703
74704         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
74705
74706 2005-09-19  Bruno Haible  <bruno@clisp.org>
74707
74708         * gnulib-tool (import): Provide default for --tests-base.
74709
74710 2005-09-19  Bruno Haible  <bruno@clisp.org>
74711
74712         * doc/quote.texi: New file, extracted from gnulib.texi.
74713         * doc/ctime.texi: New file, extracted from gnulib.texi.
74714         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
74715         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
74716         * doc/gnulib.texi: Include them.
74717
74718 2005-09-18  Bruno Haible  <bruno@clisp.org>
74719
74720         Portability fix.
74721         * gnulib-tool (func_readlink): New function.
74722         (func_ln_if_changed): Use it.
74723
74724 2005-09-18  Bruno Haible  <bruno@clisp.org>
74725
74726         * gnulib-tool: Support --with-tests also with --import.
74727         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
74728         (func_import): Use variables $testsbase and $inctests. Emit a
74729         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
74730         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
74731         SUBDIRS += $testsdir.
74732         (func_create_testdir): Update.
74733
74734 2005-09-18  Bruno Haible  <bruno@clisp.org>
74735
74736         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
74737         instead of $dry_run.
74738         (func_cp_if_changed, func_mv_if_changed): Remove functions.
74739         (func_ln_if_changed): Don't handle dry-run here.
74740         (func_import): In dry-run mode, detect more precisely which actions
74741         would be performed, and don't use "...ing" verbs.
74742
74743 2005-09-18  Bruno Haible  <bruno@clisp.org>
74744
74745         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
74746         (func_import): Use join on two temporary files instead of three nested
74747         loops, in order to determine which files are new or old.
74748
74749 2005-09-18  Bruno Haible  <bruno@clisp.org>
74750
74751         * gnulib-tool (func_import): Comment out code that spits out the
74752         new files with --dry-run.
74753
74754 2005-09-18  Bruno Haible  <bruno@clisp.org>
74755
74756         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
74757
74758 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
74759
74760         * lib/stat-time.h: New file.
74761         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
74762         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
74763         in a different way.
74764         (timespec_cmp): New function.
74765         * lib/utimecmp.c: Include stat-time.h.
74766         (SYSCALL_RESOLUTION): Depend on whether various struct stat
74767         members exist, not on the obsolescent ST_MTIM_NSEC.
74768         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
74769
74770 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
74771
74772         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
74773
74774 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
74775
74776         * MODULES.html.sh (File system functions): Add stat-time.
74777         * modules/stat-time: New file.
74778         * modules/timespec (Files): Remove m4/st_mtim.m4; this
74779         is now done in a different way, by the stat-time module.
74780         * modules/utimecmp (Depends-on): Add stat-time.
74781
74782 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
74783
74784         * m4/st_mtim.m4: Remove.  Superseded by...
74785         * m4/stat-time.m4: New file.
74786         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
74787         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
74788
74789 2005-09-15  Derek Price  <derek@ximbiot.com>
74790
74791         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
74792
74793 2005-09-15  Derek Price  <derek@ximbiot.com>
74794
74795         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
74796         * lib/regex_internal.c: Ditto, using this...
74797         (__GNUC_PREREQ): ...new macro.
74798         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
74799         using...
74800         (__GNUC_PREREQ): ...this new macro.
74801
74802         * lib/strstr.h: Include string.h. Define strstr as a macro here.
74803
74804 2005-09-15  Derek Price  <derek@ximbiot.com>
74805             Paul Eggert  <eggert@cs.ucla.edu>
74806
74807         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
74808         changes, consolidating in...
74809         * lib/regex_internal.h: ...this file.
74810
74811 2005-09-13  Jim Meyering  <jim@meyering.net>
74812
74813         * lib/canon-host.c: Filter through gnu indent and reword comments
74814         slightly.
74815         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
74816
74817 2005-09-13  Derek Price  <derek@ximbiot.com>
74818
74819         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
74820         failure.
74821         Reported by Jim Meyering  <jim@meyering.net>.
74822
74823 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
74824
74825         * lib/base64.c: Typo.
74826         (base64_encode): Put b64str in initialized data section.
74827
74828 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
74829
74830         Merge glibc and coreutils changes into gnulib, plus a few
74831         extra fixes.
74832         * lib/md5.c: Use #error rather than a string.
74833         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
74834         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
74835         (__attribute__): Define to empty for non recent-GCC.
74836         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
74837         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
74838         Renamed from their non-__ counterparts, with new macros replacing
74839         them if not _LIBC.  Add __THROW attribute.
74840         (rol): Remove.
74841         (struct md5_ctx): Align buffer if using GCC.
74842         * lib/sha1.h (struct sha1_ctx): Likewise.
74843         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
74844         The old name was backwards.
74845         (NOTSWAP): Remove; not used.
74846         (rol): New macro, moved here from md5.h.
74847         (sha1_process_block): Remove a FIXME that doesn't make sense.
74848
74849 2005-09-12  Derek Price  <derek@ximbiot.com>
74850
74851         Return usable errors from canon-host.
74852         * lib/canon-host.h: New file.
74853         * lib/canon-host.c (canon_host): Wrap...
74854         (canon_host_r): ...this new function, which now relies exclusively on
74855         getaddrinfo.
74856         (ch_strerror): New function.
74857         (last_cherror): New global.
74858         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
74859         interface.
74860         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
74861         void *.
74862         (freeaddrinfo): Free ai->ai_canonname when set.
74863
74864 2005-09-12  Derek Price  <derek@ximbiot.com>
74865
74866         Make canon-host require getaddrinfo.
74867         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
74868         AC_LIBSOURCE canon-host.h.  Call...
74869         (gl_PREREQ_CANON_HOST): ...this new function, which requires
74870         gl_GETADDRINFO.
74871         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
74872
74873 2005-09-12  Derek Price  <derek@ximbiot.com>
74874
74875         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
74876         LGPL.
74877         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
74878
74879 2005-09-12  Derek Price  <derek@ximbiot.com>
74880
74881         * lib/gai_strerror.c: Include config.h when available.  Include
74882         getaddrinfo.h before other headers to test interface.
74883         Reported by Larry Jones <lawrence.jones@ugs.com>.
74884
74885 2005-09-12  Derek Price  <derek@ximbiot.com>
74886             Paul Eggert  <eggert@cs.ucla.edu>
74887
74888         * modules/glob (Files): Add glob-libc.h.
74889
74890 2005-09-12  Derek Price  <derek@ximbiot.com>
74891             Paul Eggert  <eggert@cs.ucla.edu>
74892
74893         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
74894         glob_.h, glob-libc.h.
74895         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
74896
74897 2005-09-12  Derek Price  <derek@ximbiot.com>
74898             Paul Eggert  <eggert@cs.ucla.edu>
74899
74900         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
74901         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
74902         protecting things that should be done only in gnulib contexts.
74903         * lib/glob_.h: New file, containing only the glob things needed for
74904         gnulib.
74905         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
74906         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
74907         (glob, globfree, glob_pattern_p): Now defined simply in terms of
74908         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
74909         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
74910         and to respect the namespace rules better.
74911
74912 2005-09-08  Simon Josefsson  <jas@extundo.com>
74913
74914         * modules/socklen: New file.
74915
74916 2005-09-08  Simon Josefsson  <jas@extundo.com>
74917
74918         * m4/socklen.m4: New file.
74919
74920 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74921
74922         * modules/utimens (Files): Add m4/utimbuf.m4, since
74923         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
74924         Reported by Sergey Poznyakoff.
74925
74926 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74927
74928         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
74929         definitions, since that's the preferred style in glibc.
74930         Fix a minor spacing issue, and update copyright notice to match
74931         glibc's.
74932
74933 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74934
74935         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
74936
74937 2005-09-06  Simon Josefsson  <jas@extundo.com>
74938
74939         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
74940         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
74941
74942 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
74943
74944         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
74945         warning.
74946
74947 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
74948
74949         * config/srclist.txt: Add glibc bug 1302.
74950
74951 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
74952
74953         Change bitset word type from unsigned int to unsigned long int,
74954         as this has better performance on typical 64-bit hosts.
74955         Port bitset code to hosts with unusual word sizes.
74956         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
74957         (build_collating_symbol):
74958         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
74959         argument is a bitset.  This is merely a style issue, but it makes
74960         it clearer that an entire array is expected.
74961         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
74962         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
74963         Port to the case where bitset_word is not the same as unsigned int.
74964         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
74965         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
74966         Likewise.
74967         * lib/regexec.c (check_dst_limits_calc_pos_1,
74968         check_subexp_matching_top):
74969         (build_trtable, group_nodes_into_DFAstates):
74970         Likewise.
74971         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
74972         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
74973         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
74974         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
74975         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
74976         * lib/regcomp.c (optimize_subexps, lower_subexp):
74977         Work even if bitset_word has holes in its bitwise representation.
74978         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
74979         * lib/regexec.c (check_dst_limits_calc_pos_1,
74980         check_subexp_matching_top):
74981         Likewise.
74982         * lib/regex_internal.c (re_string_reconstruct):
74983         Don't assume UCHAR_MAX == 255.
74984         * lib/regex_internal.h (bitset_set_all): Likewise.
74985         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
74986         All uses changed.
74987         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
74988         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
74989         All uses changed.
74990         (BITSET_WORD_MAX): New macro.
74991         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
74992         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
74993         (bitset_empty, bitset_copy):
74994         Prefer sizeof (bitset) to multiplying it out ourselves.
74995         (bitset_not_merge): Remove; unused.
74996         (bitset_contain): Return bool, not unsigned int with one bit on.
74997         All callers changed.
74998         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
74999         alignment than re_node_set; do this by defining a new internal
75000         type struct dests_alloc and using it to allocate memory.
75001
75002 2005-09-05  Bruno Haible  <bruno@clisp.org>
75003
75004         * gnulib-tool (func_import): Fix comparison in handling of symbolic
75005         links.
75006
75007 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
75008
75009         * modules/size_max (Makefile.am): Add size_max.h
75010
75011 2005-09-04  Derek Price  <derek@ximbiot.com>
75012
75013         * gnulib-tool (func_import): Fix reversed $symbolic logic.
75014
75015 2005-09-03  Simon Josefsson  <jas@extundo.com>
75016
75017         * gnulib-tool: Fix typo.
75018
75019 2005-09-03  Simon Josefsson  <jas@extundo.com>
75020
75021         * config/srclist.txt: Add glibc bug 1293.
75022
75023 2005-09-03  Derek Price  <derek@ximbiot.com>
75024
75025         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
75026         From Larry Jones <lawrence.jones@ugs.com>.
75027
75028 2005-09-02  Simon Josefsson  <jas@extundo.com>
75029
75030         * modules/socklen: New file.
75031
75032 2005-09-02  Simon Josefsson  <jas@extundo.com>
75033
75034         * modules/havelib: New module.
75035
75036         * modules/gettext, modules/iconv, modules/lock, modules/readline:
75037         Use havelib.
75038
75039 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
75040
75041         Check for arithmetic overflow when calculating sizes, to prevent
75042         some buffer-overflow issues.  These patches are conservative, in the
75043         sense that when I couldn't determine whether an overflow was possible,
75044         I inserted a run-time check.
75045         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
75046         macros.
75047         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
75048         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
75049         (re_xnrealloc, re_x2nrealloc): New inline functions.
75050         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
75051         parse_bracket_exp):
75052         (build_equiv_class, build_charclass): Check for arithmetic overflow
75053         in size expression calculations.
75054         * lib/regex_internal.c (re_string_realloc_buffers):
75055         (build_wcs_upper_buffer, re_node_set_add_intersect):
75056         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
75057         (re_dfa_add_node, register_state): Likewise.
75058         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
75059         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
75060         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
75061         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
75062
75063 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
75064
75065         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
75066         m4/ulonglong.m4.  Problem reported by Martin Lambers.
75067
75068 2005-09-02  Bruno Haible  <bruno@clisp.org>
75069
75070         Support for lib vs. lib64 distinction on biarch platforms.
75071         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
75072         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
75073         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
75074
75075 2005-09-02  Bruno Haible  <bruno@clisp.org>
75076
75077         * gnulib-tool (import): In the other first-use case, provide defaults
75078         as well.
75079
75080 2005-09-02  Bruno Haible  <bruno@clisp.org>
75081
75082         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
75083         patches not yet found in the latest gettext release.
75084
75085 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
75086
75087         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
75088         to avoid a collision with bits/local_lim.h in glibc.
75089         All uses changed.  Problem reported by Dmitry V. Levin in
75090         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
75091
75092         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
75093         bugs in int versus size_t comparisons.
75094         (re_string_context_at): Fix bug where the code assumed that
75095         Idx is signed.
75096
75097         Use bool where appropriate.
75098         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
75099         All callers changed.
75100         (calc_eclosure_iter): Likewise, for ROOT arg.
75101         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
75102         (build_charclass_op): Likewise, for NON_MATCH arg.
75103         * lib/regex_internal.c (re_string_allocate, re_string_construct):
75104         (re_string_construct_common): Likewise, for ICASE arg.
75105         * lib/regexec.c (re_search_2_stub, re_search_stub):
75106         Likewise, for RET_LEN arg.
75107         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
75108         (set_regs): Likewise, for FL_BACKTRACK arg.
75109         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
75110         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
75111         (calc_eclosure_iter, parse_bracket_exp):
75112         Use bool for internal variables that are booleans.
75113         * lib/regexec.c (re_search_internal, check_matching,
75114         proceed_next_node):
75115         (set_regs, build_sifted_states, sift_states_bkref):
75116         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
75117         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
75118         (find_collation_sequence_value):
75119         Likewise.
75120         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
75121         (re_node_set_compare):
75122         Return bool, not int. All callers changed.
75123         * lib/regexec.c (check_halt_node_context, check_dst_limits):
75124         (build_trtable, check_node_accept): Likewise.
75125         * lib/regex_internal.h: Include stdbool.h.
75126
75127         Fix bugs uncovered when converting to bool.
75128         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
75129         failure instead of charging ahead blindly.
75130         * lib/regex_internal.c (register_state): Likewise.
75131         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
75132         for freeing internal storage.
75133         (group_nodes_into_DFA_states): Use unsigned int, not int, for
75134         bitset pieces used as boolean, to avoid undefined behavior
75135         on hosts that do int overflow checking.
75136
75137 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
75138
75139         * config/srclist.txt: Add glibc bugs 1285-1287.
75140
75141 2005-09-01  Jim Meyering  <jim@meyering.net>
75142
75143         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
75144         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
75145         Require gl_STAT_MACROS, too.
75146
75147 2005-09-01  Bruno Haible  <bruno@clisp.org>
75148
75149         * gnulib-tool (import): In the first-use case, provide defaults.
75150
75151 2005-09-01  Bruno Haible  <bruno@clisp.org>
75152
75153         * gnulib-tool (func_import): Remove the .tmp files.
75154
75155 2005-09-01  Bruno Haible  <bruno@clisp.org>
75156
75157         * gnulib-tool (func_import): Fix handling of symbolic links.
75158
75159 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75160
75161         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
75162         old glibc regex code mishandles strings longer than 2**31 bytes.
75163         This patch fixes this when the regex code is used in gnulib
75164         (i.e., outside glibc).
75165
75166         This patch should not affect the use of the regex code inside
75167         glibc.  No doubt this problem also needs to be handled for glibc
75168         as well, but the result will be an incompatible change to the
75169         glibc ABI, and the old ABI will have to be supported too.  That
75170         can be the the subject for another patch.
75171
75172         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
75173         governing whether the rest of this patch is active.  By default,
75174         the macro is disabled and the patch has no effect.
75175         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
75176         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
75177         (struct re_pattern_buffer, re_search, re_search_2, re_match):
75178         (re_match_2, re_set_registers): Use the new types.
75179         * lib/regex_internal.h (Idx, re_hashval_t): New types.
75180         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
75181         New macros.
75182         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
75183         (re_string_context_at, bin_tree_t, re_dfastate_t):
75184         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
75185         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
75186         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
75187         (re_string_char_size_at, re_string_wchar_at):
75188         (re_string_elem_size_at):
75189         Use the new types and macros to port to 64-bit hosts.
75190         Use unsigned types for internal values, so that the code
75191         mostly works even for arrays larger than SSIZE_MAX.
75192         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
75193         (search_duplicated_node, calc_eclosure_iter, fetch_number):
75194         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
75195         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
75196         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
75197         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
75198         (calc_inveclosure, parse_dup_op, build_range_exp):
75199         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
75200         (fetch_number, create_token_tree, mark_opt_subexp):
75201         Likewise.
75202         * lib/regex_internal.c (re_string_construct_common,
75203         create_ci_newstate):
75204         (create_cd_newstate, re_string_allocate, re_string_construct):
75205         (re_string_realloc_buffers, build_wcs_upper_buffer):
75206         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
75207         (re_string_reconstruct, re_string_peek_byte_case):
75208         (re_string_fetch_byte_case, re_string_context_at):
75209         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
75210         (re_node_set_init_copy, re_node_set_add_intersect):
75211         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
75212         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
75213         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
75214         (re_acquire_state, re_acquire_state_context, register_state):
75215         Likewise.
75216         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
75217         search_cur_bkref_entry):
75218         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
75219         (re_search_internal, re_search_2_stub, re_search_stub)
75220         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
75221         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
75222         (update_cur_sifted_state, check_dst_limits):
75223         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
75224         (check_subexp_limits, sift_states_bkref, merge_state_array):
75225         (check_subexp_matching_top, get_subexp, get_subexp_sub):
75226         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
75227         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
75228         (expand_bkref_cache, check_node_accept_bytes):
75229         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
75230         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
75231         (acquire_init_state_context, check_halt_node_context):
75232         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
75233         (sift_states_backward, clean_state_log_if_needed):
75234         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
75235         (find_recover_state, transit_state_sb, transit_state_mb):
75236         (transit_state_bkref, build_trtable, match_ctx_clean):
75237         Likewise.
75238         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
75239         to work around an assumption that REG_MISSING is negative.
75240
75241         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
75242         (seek_collating_symbol_entry) [defined _LIBC]:
75243         (lookup_collation_sequence_value) [defined _LIBC]:
75244         (build_range_exp, build_collating_symbol) [defined _LIBC]:
75245         Use prototypes rather than old-style function definitions.
75246         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
75247         (transit_state_sb) [0]:
75248         (find_collation_sequence_value) [defined _LIBC]: Likewise.
75249
75250         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
75251         rm_eo.
75252
75253         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
75254         (optimize_subexps, lower_subexp):
75255         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
75256         since the signed shift might overflow.  Use 1u<<31 instead.
75257         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
75258         Likewise.
75259         * lib/regexec.c (check_dst_limits_calc_pos_1,
75260         check_subexp_matching_top): Likewise.
75261
75262         * lib/regcomp.c (optimize_subexps, lower_subexp):
75263         Use CHAR_BIT rather than 8, for clarity.
75264         * lib/regexec.c (check_dst_limits_calc_pos_1):
75265         (check_subexp_matching_top): Likewise.
75266         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
75267         have to worry about portability issues when shifting it left.
75268         Remove no-longer-needed test for table_size > 0.
75269         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
75270         in a word, as the resulting behavior is undefined.
75271         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
75272         in one case, a <= should have been an <, and in another case the
75273         whole test was missing.
75274         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
75275         the standard name CHAR_BIT.
75276         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
75277         this is not true on one's complement and signed-magnitude hosts.
75278
75279         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
75280         next_last_offset.
75281         (struct re_dfa_t): Remove unused member states_alloc.
75282         * lib/regcomp.c (init_dfa): Don't initialize unused members.
75283
75284 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75285
75286         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
75287         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
75288         and large-file glibc and in 32-bit large-file Solaris.
75289
75290 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75291
75292         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
75293         lengths fit in regoff_t; this isn't true if regoff_t is the same
75294         width as size_t.
75295         * lib/regex.c (re_search_internal): 5th arg is LAST_START
75296         (= START + RANGE) instead of RANGE.  This avoids overflow
75297         problems when regoff_t is the same width as size_t.
75298         All callers changed.
75299         (re_search_2_stub): Check for overflow when adding the
75300         sizes of the two strings.
75301         (re_search_stub): Check for overflow when adding START
75302         to RANGE; if it occurs, substitute the extreme value.
75303
75304 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75305
75306         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
75307
75308 2005-08-31  Jim Meyering  <jim@meyering.net>
75309
75310         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
75311         a pointer-to-const.
75312         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
75313         (register_state): Likewise.
75314         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
75315         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
75316         (group_nodes_into_DFAstates): Likewise.
75317
75318 2005-08-31  Jim Meyering  <jim@meyering.net>
75319
75320         * check-module: Add a FIXME comment.
75321
75322 2005-08-31  Eric Blake  <ebb9@byu.net>
75323
75324         * modules/unistd-safer (Files): Add unistd--.h.
75325         * modules/stdio-safer (Files): Add stdio--.h.
75326
75327 2005-08-31  Derek Price  <derek@ximbiot.com>
75328
75329         * lib/getdelim.c (getdelim): Return EOF on EOF.
75330         Reported by Larry Jones <lawrence.jones@ugs.com>.
75331
75332 2005-08-31  Bruno Haible  <bruno@clisp.org>
75333
75334         Avoid unnecessary diffs in the generated lib/Makefile.am.
75335         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
75336         the generated files.
75337         (func_import): Don't set cmd.
75338
75339 2005-08-31  Bruno Haible  <bruno@clisp.org>
75340
75341         * lib/strstr.c: Include <stddef.h>, for NULL.
75342         * lib/strcasestr.c: Likewise.
75343         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
75344
75345 2005-08-31  Bruno Haible  <bruno@clisp.org>
75346
75347         * gnulib-tool: New option --macro-prefix.
75348         (func_import): Use macro_prefix.
75349         (import): Handle option --macro-prefix.
75350
75351 2005-08-31  Bruno Haible  <bruno@clisp.org>
75352
75353         * gnulib-tool (import): Rename most ac_* variables to cached_*.
75354         Also use new variables cached_lgpl, cached_libtool.
75355
75356 2005-08-31  Bruno Haible  <bruno@clisp.org>
75357
75358         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
75359         always instantiating them.
75360
75361 2005-08-31  Bruno Haible  <bruno@clisp.org>
75362
75363         * gnulib-tool (func_import): Read the previous cached settings
75364         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
75365         earlier added by gnulib but are now dropped. Warn when a gnulib file
75366         overwrites a non-gnulib file.
75367
75368 2005-08-31  Bruno Haible  <bruno@clisp.org>
75369
75370         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
75371         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
75372         projects that don't keep autogenerated files in CVS. Put into
75373         actioncmd only the specified modules, not the transitive closure.
75374
75375 2005-08-31  Bruno Haible  <bruno@clisp.org>
75376
75377         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
75378         Create directories that shall be filled.
75379         (import): Don't look for gl_* macros in configure.ac. Recurse across
75380         all directories containing a gnulib-cache.m4 files, if meaningful.
75381
75382 2005-08-31  Bruno Haible  <bruno@clisp.org>
75383
75384         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
75385         (import): Set seen_libtool when we see gl_LIBTOOL.
75386
75387 2005-08-31  Bruno Haible  <bruno@clisp.org>
75388
75389         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
75390         declaration macro definitions from generated gnulib.m4.
75391
75392 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
75393
75394         * lib/iconvme.h: Add prototype for iconv_alloc.
75395
75396 2005-08-29  Simon Josefsson  <jas@extundo.com>
75397
75398         * lib/iconvme.c: Fix errno.
75399
75400 2005-08-29  Bruno Haible  <bruno@clisp.org>
75401
75402         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
75403         that it works when the directory contains spaces.
75404
75405 2005-08-29  Bruno Haible  <bruno@clisp.org>
75406
75407         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
75408
75409 2005-08-29  Bruno Haible  <bruno@clisp.org>
75410
75411         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
75412         Emit more advice.
75413
75414 2005-08-29  Bruno Haible  <bruno@clisp.org>
75415         and Stepan Kasal  <kasal@ucw.cz>
75416
75417         * check-module: If more parameters are given, check each of them
75418         separately; add more exceptions, as noted by Jim Meyering.
75419         (check_module): New procedure.
75420         (%exempt_header): Now contains all exceptions.
75421
75422 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
75423
75424         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
75425
75426 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
75427
75428         * lib/iconvme.c: Split iconv_string into iconv_alloc.
75429
75430 2005-08-28  Bruno Haible  <bruno@clisp.org>
75431
75432         * m4/gnulib-tool.m4: New file.
75433
75434 2005-08-27  Jim Meyering  <jim@meyering.net>
75435
75436         * modules/unistd-safer (Files): Add pipe-safer.c.
75437         * modules/fcntl-safer (Files): Add creat-safer.c.
75438
75439 2005-08-27  Jim Meyering  <jim@meyering.net>
75440
75441         * m4/stdlib-safer.m4: New file.  From coreutils.
75442         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
75443         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
75444         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
75445         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
75446         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
75447
75448 2005-08-27  Jim Meyering  <jim@meyering.net>
75449
75450         * lib/fopen-safer.c: Merge minor changes from coreutils.
75451         * lib/dup-safer.c: Likewise.
75452         * lib/fd-safer.c: Likewise.
75453
75454         Merge from coreutils.
75455         * lib/stdio--.h: New file.
75456         * lib/stdlib--.h: New file.
75457         * lib/mkstemp-safer.c: New file.
75458
75459         GNU tar needs these.
75460         * lib/pipe-safer.c: New file.
75461         * lib/creat-safer.c: New file.
75462         * lib/fcntl--.h (creat): Define to creat_safer.
75463         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
75464         * lib/unistd--.h (pipe): Define to pipe_safer.
75465         * lib/unistd-safer.h: Declare pipe_safer.
75466
75467 2005-08-26  Simon Josefsson  <jas@extundo.com>
75468
75469         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
75470         Haible <bruno@clisp.org>.
75471
75472 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
75473
75474         * lib/regex_internal.h: Remove all references to
75475         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
75476         or better.
75477         (bitset_not, bitset_merge, bitset_not_merge):
75478         (bitset_mask, re_string_allocate, re_string_construct):
75479         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
75480         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
75481         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
75482         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
75483         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
75484         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
75485         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
75486         (re_acquire_state_context):
75487         Remove unnecessary forward decls.
75488         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
75489         Put __attribute at function definition,
75490         now that the function decl has been removed.
75491         * lib/regex_internal.c (re_string_peek_byte_case):
75492         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
75493         Likewise.
75494
75495 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
75496
75497         * m4/regex.m4: Add AC_PREREQ(2.50).
75498         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
75499
75500 2005-08-25  Simon Josefsson  <jas@extundo.com>
75501
75502         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
75503         __fsetlocking.
75504
75505 2005-08-25  Simon Josefsson  <jas@extundo.com>
75506
75507         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
75508         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
75509         GLIBC specific code.
75510
75511 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75512
75513         Make regex safe for g++.  This fixes one real bug (an "err"
75514         that should have been "*err").  g++ problem reported by
75515         Sam Steingold.
75516         * lib/regex_internal.h (re_calloc): New macro, consistent with
75517         re_malloc etc.  All callers of calloc changed to use re_calloc.
75518         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
75519         not int.  All callers changed.
75520         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
75521         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
75522         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
75523         (find_recover_state): Change "err" to "*err"; this fixes what
75524         appears to be a real bug.
75525         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
75526         versus int.
75527
75528 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75529
75530         * modules/regex (Depends-on): Add malloc, since the code
75531         assumes that !malloc(0) means failure.
75532
75533 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75534
75535         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
75536
75537         alloca modernization/simplification for regex.
75538         * lib/regex.c: Remove portability cruft for alloca.  This no longer
75539         needs to be at the start of the file, and can be moved into
75540         regex_internal.h and simplified.
75541         * lib/regex_internal.h: Include <alloca.h>.
75542         (__libc_use_alloca) [!defined _LIBC]: New macro.
75543         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
75544         now works outside glibc.
75545
75546 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75547
75548         * config/srclist.txt: Add glibc bugs 1241, 1245.
75549
75550 2005-08-25  Jim Meyering  <jim@meyering.net>
75551
75552         * lib/open-safer.c: Include <config.h>.
75553         Otherwise, we'd lose LARGEFILE support in any file using
75554         e.g. "fcntl--.h"
75555
75556 2005-08-25  Bruno Haible  <bruno@clisp.org>
75557
75558         * m4/minmax.m4: Require autoconf 2.52.
75559         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
75560         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
75561         alternatives of translit over the alphabet.
75562         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
75563
75564 2005-08-24  Simon Josefsson  <jas@extundo.com>
75565
75566         * tests/test-getpass.c: New file.
75567
75568 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
75569
75570         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
75571         for GNU regex features.
75572
75573 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
75574
75575         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
75576         * lib/regex.h (regerror): Likewise.
75577
75578         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
75579         requires this.  (The code never needed it.)
75580
75581         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
75582         All uses of recently-renamed identifiers changed to use the new,
75583         POSIX-compliant names.  The code will build and run just fine
75584         without these changes, but it's better to eat our own dog food
75585         and use the standard-conforming names.
75586
75587         * lib/regex.h: Fix a multitude of POSIX name space violations.
75588         These changes have an effect only for programs that define
75589         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
75590         do not change anything for programs compiled in the normal way.
75591         Also, there is no effect on the ABI.
75592
75593         (_REGEX_SOURCE): New macro.
75594         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
75595         defined and _GNU_SOURCE is not; this fixes a name space violation.
75596
75597         Rename the following macros to obey POSIX requirements.
75598         The old names are still visible as macros if _REGEX_SOURCE is defined.
75599         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
75600         RE_BACKSLASH_ESCAPE_IN_LISTS.
75601         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
75602         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
75603         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
75604         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
75605         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
75606         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
75607         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
75608         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
75609         (REG_INTERVALS): renamed from RE_INTERVALS.
75610         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
75611         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
75612         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
75613         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
75614         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
75615         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
75616         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
75617         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
75618         RE_UNMATCHED_RIGHT_PAREN_ORD.
75619         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
75620         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
75621         (REG_DEBUG): renamed from RE_DEBUG.
75622         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
75623         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
75624         unusual, since we can't clash with the POSIX REG_ICASE.
75625         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
75626         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
75627         (REG_NO_SUB): renamed from RE_NO_SUB.
75628         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
75629         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
75630         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
75631         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
75632         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
75633         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
75634         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
75635         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
75636         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
75637         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
75638         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
75639         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
75640         RE_SYNTAX_POSIX_MINIMAL_BASIC.
75641         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
75642         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
75643         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
75644         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
75645         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
75646         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
75647         (REG_FIXED): Renamed from REGS_FIXED.
75648         (REG_NREGS): Renamed from RE_NREGS.
75649
75650         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
75651         of other REG_* macros, since POSIX says the user is allowed to
75652         #undef these macros selectively.
75653
75654         (reg_errcode_t): Update comment stating what other tables need
75655         to be consistent.
75656
75657         Rename the following enum values to obey POSIX requirements.
75658         The old names are still visible as macros.
75659         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
75660         is not defined, since GNU is supposed to be a superset of POSIX as
75661         much as possible, and since we want reg_errcode_t to be a signed
75662         type for implementation consistency.
75663         (_REG_NOERROR): Renamed from REG_NOERROR.
75664         (_REG_NOMATCH): Renamed from REG_NOMATCH.
75665         (_REG_BADPAT): Renamed from REG_BADPAT.
75666         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
75667         (_REG_ECTYPE): Renamed from REG_ECTYPE.
75668         (_REG_EESCAPE): Renamed from REG_EESCAPE.
75669         (_REG_ESUBREG): Renamed from REG_ESUBREG.
75670         (_REG_EBRACK): Renamed from REG_EBRACK.
75671         (_REG_EPAREN): Renamed from REG_EPAREN.
75672         (_REG_EBRACE): Renamed from REG_EBRACE.
75673         (_REG_BADBR): Renamed from REG_BADBR.
75674         (_REG_ERANGE): Renamed from REG_ERANGE.
75675         (_REG_ESPACE): Renamed from REG_ESPACE.
75676         (_REG_BADRPT): Renamed from REG_BADRPT.
75677         (_REG_EEND): Renamed from REG_EEND.
75678         (_REG_ESIZE): Renamed from REG_ESIZE.
75679         (_REG_ERPAREN): Renamed from REG_ERPAREN.
75680         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
75681         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
75682         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
75683         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
75684
75685         (_REG_RE_NAME, _REG_RM_NAME): New macros.
75686         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
75687         changed.  But support the old name if the new one is not defined
75688         and if _REGEX_SOURCE.
75689
75690         Change the following member names in struct re_pattern_buffer.
75691         The old names are still supported if !_REGEX_SOURCE.
75692         The new names are always supported, regardless of _REGEX_SOURCE.
75693         (re_buffer): Renamed from buffer.
75694         (re_allocated): Renamed from allocated.
75695         (re_used): Renamed from used.
75696         (re_syntax): Renamed from syntax.
75697         (re_fastmap): Renamed from fastmap.
75698         (re_translate): Renamed from translate.
75699         (re_can_be_null): Renamed from can_be_null.
75700         (re_regs_allocated): Renamed from regs_allocated.
75701         (re_fastmap_accurate): Renamed from fastmap_accurate.
75702         (re_no_sub): Renamed from no_sub.
75703         (re_not_bol): Renamed from not_bol.
75704         (re_not_eol): Renamed from not_eol.
75705         (re_newline_anchor): Renamed from newline_anchor.
75706
75707         Change the following member names in struct re_registers.
75708         The old names are still supported if !_REGEX_SOURCE.
75709         The new names are always supported, regardless of _REGEX_SOURCE.
75710         (rm_num_regs): Renamed from num_regs.
75711         (rm_start): Renamed from start.
75712         (rm_end): Renamed from end.
75713
75714         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
75715         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
75716         Prepend __ to parameter names.
75717
75718         Undo yesterday's changes.
75719
75720 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
75721
75722         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
75723         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
75724         lib/regex.c.
75725
75726 2005-08-24  Jim Meyering  <jim@meyering.net>
75727
75728         Sync from coreutils.
75729         * m4/fcntl-safer.m4: New file.
75730
75731         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
75732         and object files for this module.
75733
75734 2005-08-24  Jim Meyering  <jim@meyering.net>
75735
75736         Sync from coreutils.
75737         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
75738
75739 2005-08-24  Jim Meyering  <jim@meyering.net>
75740
75741         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
75742         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
75743
75744 2005-08-24  Jim Meyering  <jim@meyering.net>
75745
75746         * modules/fcntl-safer: New module.
75747         * modules/fts (Depends-on): Add fcntl-safer.
75748         * MODULES.html.sh (File descriptor based Input/Output):
75749         Add fcntl-safer.
75750
75751 2005-08-24  Bruno Haible  <bruno@clisp.org>
75752
75753         Support for unit test modules.
75754         * modules/README: Mention tests modules.
75755         * modules/TEMPLATE-TESTS: New file.
75756         * gnulib-tool: New options --extract-tests-module, --with-tests and
75757         --tests-base (unused for the moment).
75758         (testsbase, inctests): New variables.
75759         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
75760         (func_verify_module): Exclude TEMPLATE-TESTS.
75761         (func_verify_nontests_module, func_verify_tests_module): New functions.
75762         (func_get_dependencies): Add implicit dependency for tests modules.
75763         (func_get_tests_module): New function.
75764         (func_modules_transitive_closure): When --with-tests was specified,
75765         include the unit tests as well, unless explicitly avoided.
75766         (func_emit_lib_Makefile_am): Ignore the tests modules here.
75767         (func_emit_tests_Makefile_am): New function.
75768         (func_create_testdir): When --with-tests was specified, emit a
75769         tests/ directory.
75770         * MODULES.html.sh (Future developments): Update.
75771
75772 2005-08-24  Bruno Haible  <bruno@clisp.org>
75773
75774         * modules/tls-tests: New file.
75775         * tests/test-tls.c: New file, from GNU gettext.
75776
75777 2005-08-24  Bruno Haible  <bruno@clisp.org>
75778
75779         * modules/lock-tests: New file.
75780         * tests/test-lock.c: New file, from GNU gettext.
75781
75782 2005-08-24  Bruno Haible  <bruno@clisp.org>
75783
75784         * lib/lock.h: Add multiple inclusion guard.
75785         * lib/tls.h: Add multiple inclusion guard.
75786
75787 2005-08-24  Bruno Haible  <bruno@clisp.org>
75788
75789         * gnulib-tool: Add support for the --aux-dir option to
75790         --create-testdir, --create-megatestdir, --test, --megatest.
75791         (func_create_testdir, func_create_megatestdir): Optionally emit a
75792         AC_CONFIG_AUX_DIR directive.
75793         (create-testdir, create-megatestdir, test, megatest): Provide a
75794         default value for $auxdir.
75795
75796 2005-08-24  Bruno Haible  <bruno@clisp.org>
75797
75798         * gnulib-tool (import): Use compound statement instead of subshell
75799         where possible.
75800
75801 2005-08-24  Bruno Haible  <bruno@clisp.org>
75802
75803         * gnulib-tool (import): Change --aux-dir default to "build-aux".
75804
75805 2005-08-24  Bruno Haible  <bruno@clisp.org>
75806
75807         * gnulib-tool (func_version): Update.
75808
75809 2005-08-24  Bruno Haible  <bruno@clisp.org>
75810
75811         * gnulib-tool (func_import, func_create_testdir,
75812         func_create_megatestdir): Quote all autoconf macro arguments.
75813
75814 2005-08-24  Bruno Haible  <bruno@clisp.org>
75815
75816         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
75817         option --force, because --force causes the aclocal.m4 of each
75818         subdirectory to be newer than the corresponding config.h.in.
75819
75820 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
75821
75822         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
75823         All contents moved to gl_REGEX.
75824         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
75825         assume that it does.
75826
75827 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
75828
75829         * lib/regex.h (REG_NOSYS)
75830         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
75831         Define, since POSIX requires it as of 2001.
75832         (_REG_ENOSYS)
75833         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
75834         New private symbol, used to keep the enum signed in all cases.
75835         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
75836         Youngman in
75837         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
75838
75839         * lib/regex_internal.c (re_string_skip_chars, register_state):
75840         (calc_state_hash):
75841         Remove forward decls; no longer needed now that we use prototypes.
75842         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
75843         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
75844         (clean_state_log_if_needed): Likewise.
75845
75846 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
75847
75848         * config/srclist.txt: Add glibc bugs 1231-1233.
75849
75850 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75851
75852         Fix problems reported by Sam Steingold in
75853         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
75854         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
75855         assumed that reg_errcode_t is a signed type, which is not
75856         necessarily true if _XOPEN_SOURCE is not defined.
75857         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
75858         since some compilers warn about it otherwise.
75859
75860 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75861
75862         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
75863         (init_word_char, create_initial_state, duplicate_node_closure):
75864         (fetch_token, peek_token_bracket, build_range_exp):
75865         (build_collating_symbol): Remove forward decls; no longer needed
75866         now that we use prototypes.
75867
75868         * lib/regcomp.c:
75869         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
75870         (re_compile_fastmap_iter, regcomp, regerror, regfree):
75871         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
75872         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
75873         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
75874         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
75875         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
75876         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
75877         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
75878         (build_range_exp, build_collating_symbol, parse_bracket_exp):
75879         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
75880         (build_charclass, build_charclass_op, fetch_number, create_tree):
75881         (create_token_tree, mark_opt_subexp, duplicate_tree):
75882         Use prototypes rather than old-style definitions.
75883
75884         * lib/regex_internal.c:
75885         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
75886         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
75887         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
75888         (re_string_reconstruct, re_string_peek_byte_case):
75889         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
75890         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
75891         (re_node_set_init_copy, re_node_set_add_intersect):
75892         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
75893         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
75894         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
75895         (re_acquire_state, re_acquire_state_context, register_state):
75896         (create_ci_newstate, create_cd_newstate, free_state):
75897         Likewise.
75898         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
75899         re_search_2):
75900         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
75901         (re_search_internal, prune_impossible_nodes):
75902         (acquire_init_state_context, check_matching, static):
75903         (check_halt_node_context, check_halt_state_context, proceed_next_node):
75904         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
75905         (update_regs, sift_states_backward, build_sifted_states):
75906         (clean_state_log_if_needed, merge_state_array):
75907         (update_cur_sifted_state, add_epsilon_src_nodes):
75908         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
75909         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
75910         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
75911         (find_recover_state, check_subexp_matching_top, transit_state_mb):
75912         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
75913         (check_arrival, check_arrival_add_next_nodes):
75914         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
75915         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
75916         (check_node_accept_bytes, check_node_accept, extend_buffers):
75917         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
75918         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
75919         (sift_ctx_init):
75920         Likewise.
75921
75922         * lib/regex_internal.h:
75923         (re_string_allocate, re_string_construct, re_string_reconstruct):
75924         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
75925         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
75926         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
75927         (re_string_context_at, re_string_peek_byte_case):
75928         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
75929         is defined, since we now use prototypes always.
75930
75931         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
75932         C89 or better.  All uses removed.
75933
75934 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75935
75936         * config/srclist.txt: Add glibc bugs 1220-1227.
75937
75938 2005-08-20  Jim Meyering  <jim@meyering.net>
75939
75940         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
75941         of unused local, dfa.
75942
75943 2005-08-20  Bruno Haible  <bruno@clisp.org>
75944
75945         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
75946
75947 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75948
75949         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
75950         (re_node_set_insert_last, re_dfa_add_node):
75951         Rename local variables to avoid GCC shadowing warnings.
75952
75953 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75954
75955         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
75956         [defined lint]: Suppress bogus uninitialized-variable warnings.
75957
75958         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
75959         and let the caller return REG_ESPACE if out of space.  This
75960         removes an uninitialied-variable warning with GCC 4.0.1, and also
75961         avoids taking the address of a local variable.  All callers
75962         changed.
75963
75964 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75965
75966         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
75967         $LIBCSRC/posix/regexec.c.
75968         Add glibc bug 1217 for regcomp.c.
75969
75970 2005-08-19  Jim Meyering  <jim@meyering.net>
75971
75972         * lib/regexec.c (proceed_next_node): Redo local variables to
75973         avoid GCC shadowing warnings.
75974
75975 2005-08-18  Bruno Haible  <bruno@clisp.org>
75976
75977         * lib/strstr.c (strstr): Fix return value in multibyte case.
75978         * lib/strcasestr.c (strcasestr): Likewise.
75979
75980 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
75981
75982         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
75983
75984 2005-08-17  Jim Meyering  <jim@meyering.net>
75985
75986         Make the %s format (seconds since the epoch) work for a negative
75987         number and when used with a zero-padded field width, e.g. %015s.
75988
75989         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
75990         label so that it precedes the code to set `digits'.  Otherwise,
75991         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
75992         print `00-22'.  Now, it prints `-0022', as it should.
75993
75994 2005-08-17  Bruno Haible  <bruno@clisp.org>
75995
75996         * modules/strstr (Files): Add m4/mbrtowc.m4.
75997         (Depends-on): Add mbuiter.
75998
75999 2005-08-17  Bruno Haible  <bruno@clisp.org>
76000
76001         * modules/strcasestr: New file.
76002         * MODULES.html.sh (String handling, based on ANSI C 89): Add
76003         strcasestr.
76004
76005 2005-08-17  Bruno Haible  <bruno@clisp.org>
76006
76007         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
76008
76009 2005-08-17  Bruno Haible  <bruno@clisp.org>
76010
76011         * modules/mbuiter: New file.
76012         * MODULES.html.sh (Extended multibyte and wide character utilities):
76013         Add mbuiter.
76014
76015 2005-08-17  Bruno Haible  <bruno@clisp.org>
76016
76017         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
76018         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
76019
76020 2005-08-17  Bruno Haible  <bruno@clisp.org>
76021
76022         * m4/strcasestr.m4: New file.
76023
76024 2005-08-17  Bruno Haible  <bruno@clisp.org>
76025
76026         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
76027         * lib/strstr.c: Completely rewritten, with multibyte locale support.
76028
76029 2005-08-17  Bruno Haible  <bruno@clisp.org>
76030
76031         * lib/strcasestr.h: New file.
76032         * lib/strcasestr.c: New file.
76033
76034 2005-08-17  Bruno Haible  <bruno@clisp.org>
76035
76036         * lib/strcasecmp.c: Use mbuiter.h.
76037
76038 2005-08-17  Bruno Haible  <bruno@clisp.org>
76039
76040         * lib/mbuiter.h: New file.
76041
76042 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
76043
76044         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
76045         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
76046         and gl_GETOPT are both invoked via different paths (as happens
76047         with GNU tar CVS because it uses both argp and getopt), the former
76048         wins.
76049
76050 2005-08-16  Bruno Haible  <bruno@clisp.org>
76051
76052         * modules/tls: New file.
76053         * MODULES.html.sh (Multithreading): Add tls.
76054
76055 2005-08-16  Bruno Haible  <bruno@clisp.org>
76056
76057         * modules/strnlen1: New file.
76058         * MODULES.html.sh (String handling): Add strnlen1.
76059
76060 2005-08-16  Bruno Haible  <bruno@clisp.org>
76061
76062         * modules/strcase (Files): Add m4/mbrtowc.m4.
76063         (Depends-on): Add strnlen1, mbchar.
76064
76065 2005-08-16  Bruno Haible  <bruno@clisp.org>
76066
76067         * modules/mbiter: New file.
76068         * MODULES.html.sh (Extended multibyte and wide character utilities):
76069         Add mbiter.
76070
76071 2005-08-16  Bruno Haible  <bruno@clisp.org>
76072
76073         * modules/mbfile: New file.
76074         * MODULES.html.sh (Extended multibyte and wide character utilities):
76075         Add mbfile.
76076
76077 2005-08-16  Bruno Haible  <bruno@clisp.org>
76078
76079         * modules/mbchar: New file.
76080         * MODULES.html.sh (Extended multibyte and wide character utilities):
76081         New section.
76082
76083 2005-08-16  Bruno Haible  <bruno@clisp.org>
76084
76085         * m4/tls.m4: New file, from GNU gettext.
76086
76087 2005-08-16  Bruno Haible  <bruno@clisp.org>
76088
76089         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
76090         always.
76091         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
76092
76093 2005-08-16  Bruno Haible  <bruno@clisp.org>
76094
76095         * m4/mbiter.m4: New file.
76096
76097 2005-08-16  Bruno Haible  <bruno@clisp.org>
76098
76099         * m4/mbfile.m4: New file.
76100
76101 2005-08-16  Bruno Haible  <bruno@clisp.org>
76102
76103         * m4/mbchar.m4: New file.
76104
76105 2005-08-16  Bruno Haible  <bruno@clisp.org>
76106
76107         * lib/tls.h: New file, from GNU gettext.
76108         * lib/tls.c: New file, from GNU gettext.
76109
76110 2005-08-16  Bruno Haible  <bruno@clisp.org>
76111
76112         * lib/strnlen1.h: New file.
76113         * lib/strnlen1.c: New file.
76114
76115 2005-08-16  Bruno Haible  <bruno@clisp.org>
76116
76117         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
76118         (mbi_init): Update.
76119         (mbi_avail, mbi_advance): Let the iteration end before the terminating
76120         NUL byte, not after it.
76121
76122 2005-08-16  Bruno Haible  <bruno@clisp.org>
76123
76124         * lib/strcase.h (strcasecmp): Add note in comments.
76125         * lib/strncasecmp.c: Use code from strcasecmp.c.
76126         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
76127         (strcasecmp): Work correctly in multibyte locales.
76128
76129 2005-08-16  Bruno Haible  <bruno@clisp.org>
76130
76131         * lib/mbiter.h: New file.
76132
76133 2005-08-16  Bruno Haible  <bruno@clisp.org>
76134
76135         * lib/mbfile.h: New file.
76136
76137 2005-08-16  Bruno Haible  <bruno@clisp.org>
76138
76139         * lib/mbchar.h: New file.
76140         * lib/mbchar.c: New file.
76141
76142 2005-08-16  Bruno Haible  <bruno@clisp.org>
76143
76144         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
76145         the valid ones. Makes the comparison operations transitive:
76146         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
76147         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
76148
76149 2005-08-15  Simon Josefsson  <jas@extundo.com>
76150
76151         * modules/ssize_t (License): Change to 'unlimited'.
76152
76153         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
76154
76155 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
76156
76157         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
76158         Add comments for each pending glibc patch.
76159
76160 2005-08-15  Bruno Haible  <bruno@clisp.org>
76161
76162         * lib/regex.h (__restrict_arr): Don't define to __restrict if
76163         __cplusplus is defined.
76164
76165 2005-08-14  Jim Meyering  <jim@meyering.net>
76166
76167         Sync from coreutils.
76168
76169         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
76170         Use the hash-table-based cycle-detection code not just when
76171         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
76172         Reported by James Youngman in
76173         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
76174         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
76175         FTS_TIGHT_CYCLE_CHECK.
76176         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
76177         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
76178         once again.
76179         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
76180         * lib/fts.c (fd_safer): Remove decl.
76181         Include fcntl--.h rather than unistd-safer.h
76182         (fts_safe_changedir): Don't call fd_safer; no longer needed
76183         now that we include fcntl--.h.
76184
76185 2005-08-12  Simon Josefsson  <jas@extundo.com>
76186
76187         * modules/getndelim2: Use ssize_t module.
76188         * modules/getnline: Likewise.
76189         * modules/safe-read: Likewise.
76190         * modules/xreadlink: Likewise.
76191
76192         * modules/ssize_t: New file.
76193
76194 2005-08-12  Simon Josefsson  <jas@extundo.com>
76195
76196         * m4/readline.m4: Look for termcap, curses or ncurses if required.
76197
76198 2005-08-12  Simon Josefsson  <jas@extundo.com>
76199
76200         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
76201         ssize_t.
76202
76203 2005-08-12  Simon Josefsson  <jas@extundo.com>
76204
76205         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
76206         readline, getdelim and check_version.
76207         (Support for systems lacking ISO C 99: Sizes of integer types):
76208         Add size_max.
76209
76210 2005-08-12  Bruno Haible  <bruno@clisp.org>
76211
76212         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
76213
76214 2005-08-11  Simon Josefsson  <jas@extundo.com>
76215
76216         * modules/readline: New file.
76217
76218         * modules/strnlen (Files): Add strnlen.h.
76219
76220 2005-08-11  Simon Josefsson  <jas@extundo.com>
76221
76222         * m4/readline.m4: New file.
76223
76224 2005-08-11  Simon Josefsson  <jas@extundo.com>
76225
76226         * lib/readline.h, readline.c: New file.
76227
76228 2005-08-11  Simon Josefsson  <jas@extundo.com>
76229
76230         * doc/gnulib.texi (Initial import, Finishing touches): Mention
76231         gl_AVOID.
76232
76233 2005-08-11  Bruno Haible  <bruno@clisp.org>
76234
76235         * lib/strnlen.h (strnlen): Change parameter name to match comment.
76236
76237 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
76238
76239         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
76240
76241 2005-08-10  Simon Josefsson  <jas@extundo.com>
76242
76243         * tests/test-iconvme.c: New file.
76244
76245 2005-08-10  Simon Josefsson  <jas@extundo.com>
76246
76247         * m4/strnlen.m4: New file.
76248
76249         * m4/strndup.m4: Don't check for strnlen declaration, done in
76250         strnlen.m4.
76251
76252 2005-08-10  Simon Josefsson  <jas@extundo.com>
76253
76254         * lib/strndup.c: Use strnlen.h.
76255
76256         * lib/strnlen.h: New file.
76257
76258 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
76259
76260         * README: Typos.
76261
76262 2005-08-02  Simon Josefsson  <jas@extundo.com>
76263
76264         * modules/readline: New file.
76265
76266 2005-08-02  Simon Josefsson  <jas@extundo.com>
76267
76268         * modules/getdelim: New file.
76269
76270         * modules/getline: Rewrite, don't use getndelim2.
76271
76272 2005-08-02  Simon Josefsson  <jas@extundo.com>
76273
76274         * m4/getline.m4: Separate out getdelim stuff into separate module.
76275
76276         * m4/getdelim.m4: New file.
76277
76278 2005-08-02  Simon Josefsson  <jas@extundo.com>
76279
76280         * lib/getline.h, getline.c: Rewrite.
76281
76282         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
76283
76284 2005-07-31  Bruno Haible  <bruno@clisp.org>
76285
76286         * lib/lock.h (gl_lock_initializer): New macro.
76287         (gl_lock_define_initialized): Use it.
76288         (gl_rwlock_initializer): New macro.
76289         (gl_rwlock_define_initialized): Use it.
76290         (gl_recursive_lock_initializer): New macro.
76291         (gl_recursive_lock_define_initialized): Use it.
76292
76293 2005-07-30  Karl Berry  <karl@gnu.org>
76294
76295         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
76296         Report from Ben Pfaff, regarding getopt.
76297
76298 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
76299
76300         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
76301         normal way.
76302         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
76303         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
76304         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
76305         (gl_GETOPT): Use the new macros.  Most of the implementation
76306         is moved to the new macros.  This is for programs like Emacs
76307         that don't want all the functionality of gl_GETOPT.
76308
76309 2005-07-26  Bruno Haible  <bruno@clisp.org>
76310
76311         * m4/lock.m4: Update from GNU gettext.
76312
76313 2005-07-26  Bruno Haible  <bruno@clisp.org>
76314
76315         * lib/lock.h: Update from GNU gettext.
76316         * lib/lock.c: Update from GNU gettext.
76317
76318 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
76319
76320         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
76321         obsolescent AC_TRY_RUN.  Include the default includes files, for
76322         'exit'.
76323
76324 2005-07-24  Bruno Haible  <bruno@clisp.org>
76325
76326         * modules/visibility: New file.
76327         * MODULES.html.sh (Misc): Add visibility.
76328
76329 2005-07-24  Bruno Haible  <bruno@clisp.org>
76330
76331         * m4/visibility.m4: New file.
76332
76333 2005-07-24  Bruno Haible  <bruno@clisp.org>
76334
76335         * doc/visibility.texi: New file.
76336
76337 2005-07-22  Bruno Haible  <bruno@clisp.org>
76338
76339         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
76340         $(ALLOCA_H), redundant through BUILT_SOURCES.
76341         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
76342         redundant through BUILT_SOURCES.
76343         * modules/byteswap (Makefile.am): Remove explicit dependency on
76344         $(BYTESWAP_H), redundant through BUILT_SOURCES.
76345         * modules/fnmatch (Makefile.am): Remove explicit dependency on
76346         $(FNMATCH_H), redundant through BUILT_SOURCES.
76347         * modules/getopt (Makefile.am): Remove explicit dependency on
76348         $(GETOPT_H), redundant through BUILT_SOURCES.
76349         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
76350         redundant through BUILT_SOURCES.
76351         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
76352         redundant through BUILT_SOURCES.
76353         * modules/stdbool (Makefile.am): Remove explicit dependency on
76354         $(STDBOOL_H), redundant through BUILT_SOURCES.
76355         * modules/stdint (Makefile.am): Remove explicit dependency on
76356         $(STDINT_H), redundant through BUILT_SOURCES.
76357         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
76358         Remove explicit dependency on $(SYSEXITS_H).
76359         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
76360
76361 2005-07-18  Simon Josefsson  <jas@extundo.com>
76362
76363         * lib/check-version.c (check_version): Accept identical versions too.
76364
76365 2005-07-18  Bruno Haible  <bruno@clisp.org>
76366
76367         * modules/lock: New file.
76368         * MODULES.html.sh (Multithreading): New section.
76369
76370 2005-07-18  Bruno Haible  <bruno@clisp.org>
76371
76372         * m4/lock.m4: New file, from GNU gettext.
76373
76374 2005-07-18  Bruno Haible  <bruno@clisp.org>
76375
76376         * lib/lock.h: New file, from GNU gettext.
76377         * lib/lock.c: New file, from GNU gettext.
76378
76379 2005-07-18  Bruno Haible  <bruno@clisp.org>
76380
76381         * lib/lock.h (gl_once_t): New type.
76382         (gl_once_define, gl_once): New macros.
76383         * lib/lock.c (fresh_once): New variable.
76384         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
76385         functions.
76386
76387 2005-07-16  Simon Josefsson  <jas@extundo.com>
76388
76389         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
76390         workaround, suggested by Bruno.
76391
76392 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
76393
76394         * modules/xalloc (Depends-on): Add xalloc-die.
76395         * modules/xvasprintf (Depends-on): Add xalloc-die.
76396
76397 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
76398
76399         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
76400         with a minor change.
76401
76402 2005-07-15  Bruno Haible  <bruno@clisp.org>
76403
76404         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
76405         When using lib/poll.c, define poll as rpl_poll.
76406
76407 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
76408
76409         * modules/argp (Depends-on): Remove unlocked-io.
76410
76411 2005-07-14  Derek Price  <derek@ximbiot.com>
76412
76413         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
76414         for glob symlink bug.
76415
76416 2005-07-14  Bruno Haible  <bruno@clisp.org>
76417
76418         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
76419         Instead, test for *_unlocked function declarations directly.
76420
76421 2005-07-11  Simon Josefsson  <jas@extundo.com>
76422
76423         * modules/size_max: New file.
76424
76425         * modules/xsize: Depend on size_max module for size_max.m4.
76426
76427 2005-07-11  Simon Josefsson  <jas@extundo.com>
76428
76429         * lib/size_max.h: New file.
76430
76431 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
76432
76433         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
76434         copyright symbol and the year.
76435         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
76436         (version_etc_va): Use parameterized copyright notice.
76437         Reword to conform to the current GNU coding standards.
76438
76439 2005-07-11  Karl Berry  <karl@gnu.org>
76440
76441         * doc/gnulib.texi (Quoting): new node.
76442         (Initial import): more info, from Patrice.
76443
76444 2005-07-11  Bruno Haible  <bruno@clisp.org>
76445
76446         * gnulib-tool (func_usage): Document option --avoid.
76447         (Command line options): Handle --avoid.
76448         (func_acceptable): New function.
76449         (func_modules_transitive_closure): Use it.
76450
76451 2005-07-11  Bruno Haible  <bruno@clisp.org>
76452
76453         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
76454         Reported by Jim Meyering.
76455
76456 2005-07-10  Bruno Haible  <bruno@clisp.org>
76457
76458         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
76459         Needed when size_t is smaller than 'unsigned int'.
76460         Reported by Paul Eggert.
76461
76462 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
76463
76464         * modules/argp (Depends-on): Add unlocked-io
76465
76466 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
76467
76468         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
76469         block of defines.
76470
76471 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
76472
76473         * config/srclist.txt: Comment out regcomp.c, since we have a porting
76474         fix now.
76475
76476 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
76477         and Paul Eggert  <eggert@cs.ucla.edu>
76478
76479         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
76480         in wint_t, not wchar_t.  Remove now-unnecessary cast.
76481
76482 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
76483
76484         * modules/regex (Files): Add lib/regex_internal.c,
76485         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
76486         (Depends-on): Add extensions.
76487         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
76488
76489 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
76490
76491         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
76492         pathconf.
76493         * m4/same.m4 (gl_SAME): Likewise.
76494         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
76495
76496         * m4/regex.m4: Adjust to new libc regex implementation.
76497         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
76498         all the .c and .h parts of (the new) regex.
76499         Quote the m4 stuff better.
76500         Check for RE_ICASE bug of old gnulib.
76501         Check for REG_STARTEND of recent libc.
76502         Rename local variables from jm_* to gl_*.
76503         Quote operand of "test -f".
76504         Say "recent enough" version of libc, not "version 2".
76505         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
76506         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
76507         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
76508         Remove check for btowc, isascii.
76509         Require AM_LANGINFO_CODESET.
76510
76511 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
76512
76513         * lib/regex.c, regex.h: Sync from libc.
76514         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
76515         * lib/regexec.c:
76516         New files, synced from libc, except that regex_internal.h
76517         currently has a small porting fix.
76518
76519 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
76520
76521         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
76522         regex_internal.c, regexec.c.
76523         Add regex_internal.h too, but as a comment, since the libc version
76524         is currently broken in gnulib mode.
76525
76526 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
76527
76528         Support programs like Emacs that use gnulib but not gettext.
76529         * MODULES.html.sh (Internationalization functions): Add gettext-h.
76530         * modules/gettext-h: New file.
76531         * modules/gettext (Files): Remove lib/gettext.h.
76532         (Depends-on): Add gettext-h.
76533         (Makefile.am): Remove lib_SOURCES.
76534         * modules/argmatch, modules/c-stack, modules/closeout:
76535         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
76536         * modules/execute, modules/file-type, modules/getaddrinfo:
76537         * modules/getopt, modules/human, modules/javacomp:
76538         * modules/javaexec, modules/mkdir-p, modules/obstack:
76539         * modules/openat, modules/pagealign_alloc, modules/pipe:
76540         * modules/quotearg, modules/regex, modules/rpmatch:
76541         * modules/unicodeio, modules/userspec, modules/version-etc:
76542         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
76543         * modules/xsetenv:
76544         Depend on gettext-h, not gettext.
76545
76546 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
76547
76548         * gnulib-tool (func_import): Add support for 'public domain' license.
76549         * modules/alloca, modules/atexit, modules/memmove:
76550         Now public domain, not GPL.
76551         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
76552         * modules/realloc, modules/strerror, modules/strtod:
76553         Now LGPL, not GPL.
76554
76555 2005-07-05  Bruno Haible  <bruno@clisp.org>
76556
76557         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
76558         autoconf CVS. Needed for mingw.
76559
76560 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76561
76562         Remove the dependency of the strftime module on the tzset module.
76563         * modules/strftime (Depends-on): Remove dependency on tzset.
76564
76565 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76566
76567         Remove the dependency of the strftime module on the tzset module.
76568         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
76569         gl_FUNC_TZSET_CLOBBER.
76570
76571 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76572
76573         Remove the dependency of the strftime module on the tzset module.
76574         * lib/strftime.c (my_strftime)
76575         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
76576         Copy the input structure, to work around some of the bug with
76577         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
76578         Solaris releases, you should also use the tzset module, but we won't
76579         require it as a dependency any more since we don't want LGPLed code
76580         to depend on GPLed code.
76581
76582 2005-07-02  Jim Meyering  <jim@meyering.net>
76583
76584         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
76585         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
76586         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
76587         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
76588
76589 2005-07-02  Jim Meyering  <jim@meyering.net>
76590
76591         * lib/backupfile.c (backup_args): Change a `0' to NULL.
76592
76593 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
76594
76595         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
76596         declares only 'struct timespec;' (!).
76597
76598 2005-07-01  Jim Meyering  <jim@meyering.net>
76599
76600         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
76601         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
76602         * lib/save-cwd.c, tempname.c:
76603         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
76604         and don't include <sys/file.h>).
76605
76606 2005-06-29  Jim Meyering  <jim@meyering.net>
76607
76608         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
76609         type name.  Use the variable name instead.
76610         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
76611         Likewise.
76612
76613 2005-06-28  Simon Josefsson  <jas@extundo.com>
76614
76615         * modules/check-version (Files): Add check-version.m4.
76616
76617 2005-06-28  Simon Josefsson  <jas@extundo.com>
76618
76619         * m4/check-version.m4: New file, suggested by Jim Meyering
76620         <jim@meyering.net>.
76621
76622 2005-06-28  Simon Josefsson  <jas@extundo.com>
76623
76624         * lib/check-version.h, lib/check-version.c: New files.
76625
76626 2005-06-28  Simon Josefsson  <jas@extundo.com>
76627
76628         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
76629         collision with global variable.  Better indentation.  Don't
76630         increment buffer pointer beyond buffer end.  Based on comments
76631         from Paul Eggert <eggert@cs.ucla.edu>.
76632
76633         * lib/base64.h: Indent.
76634
76635 2005-06-28  Simon Josefsson  <jas@extundo.com>
76636
76637         * doc/gnulib.texi (Library version handling): New section.
76638
76639 2005-06-28  Jim Meyering  <jim@meyering.net>
76640
76641         * check-module (find_included_lib_files): Hard-code another
76642         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
76643         but modules/fts-lgpl (correctly) does not list those files.
76644
76645         * modules/canonicalize (Files): Add lib/pathmax.h.
76646
76647 2005-06-25  Simon Josefsson  <jas@extundo.com>
76648
76649         * modules/check-version: New file.
76650
76651 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
76652
76653         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
76654         initializer of struct addrinfo, as an indication that we don't
76655         care how many members the structure has.
76656
76657 2005-06-24  Derek Price  <derek@ximbiot.com>
76658         and Bruno Haible  <bruno@clisp.org>
76659
76660         Remove stat module & update lstat.
76661         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
76662         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
76663         * m4/stat.m4: Remove this file.
76664
76665 2005-06-24  Derek Price  <derek@ximbiot.com>
76666         and Bruno Haible  <bruno@clisp.org>
76667
76668         Remove stat module & update lstat.
76669         * lib/stat.c: Remove this file...
76670         (slash_aware_lstat): ...moving this content and its support...
76671         * lib/lstat.c (rpl_lstat): ...into here.
76672         * lib/lstat.h: New file.
76673
76674 2005-06-24  Derek Price  <derek@ximbiot.com>
76675         and Bruno Haible  <bruno@clisp.org>
76676
76677         Remove stat module & update lstat.
76678         * config/srclist.txt (libc sources): Remove stat.
76679
76680 2005-06-24  Derek Price  <derek@ximbiot.com>
76681         and Bruno Haible  <bruno@clisp.org>
76682
76683         Remove stat module & update lstat.
76684         * MODULES.html.sh (stat): Remove.
76685         * MODULES.html: Regenerated.
76686         * modules/lstat (Description): Correct function name.
76687         (Files): Add "lstat.h".
76688         (Depends-on): Remove stat, add xalloc, stat-macros.
76689         * modules/stat: Remove this file.
76690         (Include): Add "lstat.h", remove <sys/stat.h>.
76691
76692 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
76693
76694         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
76695         (ranged_convert): Don't save conversion in a temporary struct.
76696         This causes a warning with GCC 4.0.0, and anyway in the typical
76697         case it's not worth the extra 100 bytes or so of code.
76698         (ranged_convert, __mktime_internal): When calling a function via a
76699         pointer P, use P () rather than (*P) (), as we now assume C89 or
76700         better.
76701
76702 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
76703
76704         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
76705         "who -r" failed to give output.  Problem reported by Tim Waugh.
76706
76707         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
76708         (xcalloc): Use it to avoid needless tests.
76709         Problem reported by Jim Meyering.
76710
76711 2005-06-20  Derek Price  <derek@ximbiot.com>
76712
76713         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
76714         unnecessary for Autoconfs > 2.59c.
76715
76716 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
76717
76718         * lib/argp.h (__option_is_short): Check upper limit of
76719         __key. Isprint() requires its argument to have the value
76720         of an unsigned char or EOF.
76721
76722 2005-06-16  Jim Meyering  <jim@meyering.net>
76723
76724         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
76725         when either N or S is zero.
76726
76727 2005-06-16  Derek Price  <derek@ximbiot.com>
76728
76729         * m4/bison.m4: Declare YACC & YFLAGS precious.
76730
76731 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
76732
76733         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
76734         multibyte string or pattern, fall back on unibyte matching.
76735         Problem reported by James Youngman.
76736
76737 2005-06-08  Bruno Haible  <bruno@clisp.org>
76738
76739         * modules/csharpcomp: New file.
76740         * MODULES.html.sh (C#): Add csharpcomp.
76741
76742 2005-06-08  Bruno Haible  <bruno@clisp.org>
76743
76744         * m4/csharpcomp.m4: New file, from GNU gettext.
76745
76746 2005-06-08  Bruno Haible  <bruno@clisp.org>
76747
76748         * lib/csharpcomp.h: New file, from GNU gettext.
76749         * lib/csharpcomp.c: New file, from GNU gettext.
76750         * lib/csharpcomp.sh.in: New file, from GNU gettext.
76751
76752 2005-06-08  Bruno Haible  <bruno@clisp.org>
76753
76754         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
76755         warning on mingw.
76756
76757 2005-06-07  Derek Price  <derek@ximbiot.com>
76758
76759         Sync from CVS.
76760         * lib/glob_.h: Indent nested #ifdef.
76761
76762 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
76763
76764         Sync from coreutils.
76765         Use "file name" when talking about file names, instead of "filename"
76766         or "path", as per the GNU coding standards.
76767         * lib/mkdir-p.c: Renamed from makepath.c.
76768         (make_dir_parents): Renamed from make_path.  All callers changed.
76769         * lib/mkdir-p.h: Likewise.  All includers changed.
76770         * lib/filenamecat.c: Renamed from path-concat.c.
76771         (file_name_concat): Renamed from path_concat.  All callers changed.
76772         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
76773         * lib/filenamecat.h: Likewise.  All includers changed.
76774         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
76775         in comments or local variable names.
76776         * lib/basename.c: Likewise.
76777         * lib/canonicalize.c, canonicalize.h: Likewise.
76778         * lib/dirname.c, dirname.h: Likewise.
76779         * lib/euidaccess.c: Likewise.
76780         * lib/exclude.c: Likewise
76781         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
76782         * lib/fsusage.c, fsuage.h: Likewise.
76783         * lib/fts.c, fts_.h: Likewise.
76784         * lib/getcwd.c: Likewise.
76785         * lib/getloadavg.c: Likewise.
76786         * lib/mkstemp.c: Likewise.
76787         * lib/mountlist.c, mountlist.h: Likewise.
76788         * lib/openat.c, openat.h: Likewise.
76789         * lib/readlink-stub.c: Likewise.
76790         * lib/readutmp.c, readutmp.h: Likewise.
76791         * lib/rename.c: Likewise.
76792         * lib/rmdir.c: Likewise.
76793         * lib/same.c: Likewise.
76794         * lib/savedir.c: Likewise.
76795         * lib/stripslash.c: Likewise.
76796         * lib/tempname.c: Likewise.
76797         * lib/xreadlink.c: Likewise.
76798         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
76799         All uses changed.
76800         * lib/exclude.h: Likewise.
76801
76802         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
76803         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
76804         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
76805         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
76806         * lib/pathmax.h: Include <limits.h> unconditionally, since other
76807         files have been getting away with it for years (MORE/BSD 4.3
76808         is extinct now).
76809         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
76810         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
76811
76812         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
76813         Define to 256, not 255, as per modern POSIX.
76814
76815 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
76816
76817         Sync from coreutils.
76818         Use "file name" when talking about file names, instead of "filename"
76819         or "path", as per the GNU coding standards.
76820         * MODULES.html.sh: mkdir-p renamed from makepath.
76821         filenamecat renamed from path-concat.
76822         * modules/filenamecat: Renamed from modules/path-concat.
76823         (Files): filenamecat.h and filenamecat.c renamed from
76824         path-concat.h and path-concat.c.
76825         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
76826         (Include): filenamecat.h, not path-concat.h.
76827         * modules/mkdir-p: Renamed from modules/makepath.
76828         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
76829         makepath.c.
76830         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
76831         (Include): mkdir-p.h, not makepath.h.
76832
76833 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
76834
76835         Sync from coreutils.
76836         * m4/mkdir-p.m4: Renamed from makepath.m4.
76837         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
76838         Rename files from makepath.c to mkdir-p.c, and from
76839         makepath.h to mkdir-p.h.
76840         * m4/filenamecat.m4: Renamed from path-concat.m4.
76841         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
76842         Rename files from path-concat.c to filenamecat.c,
76843         and from path-concat.h to filenamecat.h.
76844         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
76845         "file name" in local variables or comments.
76846         * m4/rename.m4: Likewise.
76847
76848 2005-06-01  Bruno Haible  <bruno@clisp.org>
76849
76850         * modules/csharpexec: New file.
76851         * MODULES.html.sh (C#): New section.
76852
76853 2005-06-01  Bruno Haible  <bruno@clisp.org>
76854
76855         * m4/csharp.m4: New file, from GNU gettext.
76856         * m4/csharpexec.m4: New file, from GNU gettext.
76857
76858 2005-06-01  Bruno Haible  <bruno@clisp.org>
76859
76860         * lib/csharpexec.h: New file, from GNU gettext.
76861         * lib/csharpexec.c: New file, from GNU gettext.
76862         * lib/csharpexec.sh.in: New file, from GNU gettext.
76863
76864 2005-05-31  Derek Price  <derek@ximbiot.com>
76865             Paul Eggert  <eggert@cs.ucla.edu>
76866
76867         Sync from cvs.
76868         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
76869
76870 2005-05-31  Derek Price  <derek@ximbiot.com>
76871             Paul Eggert  <eggert@cs.ucla.edu>
76872
76873         Sync from cvs.
76874         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
76875
76876 2005-05-29  Derek Price  <derek@ximbiot.com>
76877
76878         * config/srclist.txt (glob_.h, glob.c): Add these files.
76879
76880 2005-05-29  Derek Price  <derek@ximbiot.com>
76881
76882         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
76883         * modules/glob: New file.
76884         * modules/getlogin_r: Add link to POSIX spec in description.
76885
76886 2005-05-29  Derek Price  <derek@ximbiot.com>
76887             Paul Eggert  <eggert@cs.ucla.edu>
76888
76889         * m4/glob.m4: New file.
76890
76891 2005-05-29  Derek Price  <derek@ximbiot.com>
76892             Paul Eggert  <eggert@cs.ucla.edu>
76893
76894         * lib/glob_.h, lib/glob.c: New files.
76895
76896 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
76897
76898         * modules/fts (Files): Remove m4/inttypes-pri.m4.
76899         * modules/fts-lgpl (Depends-on): Remove gettext.
76900
76901 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
76902
76903         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
76904         and don't require gt_INTTYPES_PRI.
76905
76906 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
76907
76908         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
76909
76910         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
76911         the configuration hassle isn't worth it.
76912         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
76913         (LONGEST_MODIFIER, PRIuMAX): Remove.
76914
76915 2005-05-27  Bruno Haible  <bruno@clisp.org>
76916
76917         * lib/getlogin_r.h: Remove second include of <stddef.h>.
76918
76919 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
76920
76921         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
76922         _POSIX_PTHREAD_SEMANTICS for Solaris.
76923
76924 2005-05-25  Derek Price  <derek@ximbiot.com>
76925
76926         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
76927
76928 2005-05-25  Derek Price  <derek@ximbiot.com>
76929             Paul Eggert  <eggert@cs.ucla.edu>
76930
76931         * modules/getlogin_r, m4/getlogin_r.m4: New files.
76932         * lib/getlogin_r.c, getlogin_r.h: New files.
76933
76934 2005-05-25  Bruno Haible  <bruno@clisp.org>
76935             Derek Price  <derek@ximbiot.com>
76936
76937         * lib/getlogin_r.h: Simplify API documentation.
76938
76939 2005-05-23  Derek Price  <derek@ximbiot.com>
76940
76941         * modules/minmax (Files): Add m4/minmax.m4.
76942         (configure.ac): Add gl_MINMAX.
76943
76944 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
76945
76946         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
76947         so that unistd-safer.h (GPL'ed code) need not be included.
76948
76949 2005-05-22  Bruno Haible  <bruno@clisp.org>
76950
76951         * m4/minmax.m4: New file.
76952         Based on a patch by Derek Price <derek@ximbiot.com>.
76953
76954 2005-05-22  Bruno Haible  <bruno@clisp.org>
76955
76956         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
76957         (INT64_MIN): Fix definition.
76958         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
76959
76960         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
76961         NEED_SIGNED_INT_TYPES.
76962
76963         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
76964         HAVE_SYSTEM_INTTYPES.
76965
76966 2005-05-22  Bruno Haible  <bruno@clisp.org>
76967
76968         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
76969         Also include <sys/param.h> if it defines MIN, MAX.
76970         Based on a patch by Derek Price <derek@ximbiot.com>.
76971
76972 2005-05-21  Jim Meyering  <jim@meyering.net>
76973
76974         * modules/fts (Files): Add m4/inttypes-pri.m4.
76975         (Depends-on): Add lstat and remove gettext.  Alphabetize.
76976
76977 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
76978
76979         New fts module.
76980         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
76981         (setup_dir, free_dir): New functions.
76982         (enter_dir, leave_dir): Define trivial
76983         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
76984         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
76985         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
76986         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
76987         Move to fts-cycle.c.
76988         (fts_open): Use setup_dir.
76989         (fts_close): Use free_dir.
76990         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
76991         This adds a label and some gotos, but the alternatives were messier.
76992         Check for memory allocation failure when entering a dir.
76993         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
76994         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
76995         (FTS): New member fts_cycle, that is a union that contains the
76996         old active_dir_ht and cycle_state.  All uses changed to mention
76997         fts_cycle.ht and fts_cycle.state.
76998         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
76999         fts.c, with the following changes:
77000         (setup_dir, free_dir): New functions.
77001         (enter_dir): Now returns bool.  Return true if successful, false
77002         if memory exhausted.  All callers changed.
77003         Do not bother partly cleaning up on
77004         memory allocation failure; that is free_dir's job.
77005         However, free ad if hash_insert fails, to avoid memory leak.
77006         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
77007         fts->fts_options to see which union member to use.
77008
77009 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
77010
77011         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
77012         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
77013
77014 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
77015
77016         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
77017
77018 2005-05-20  Jim Meyering  <jim@meyering.net>
77019
77020         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
77021         Now a macro, to pacify GCC.
77022
77023 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
77024
77025         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
77026         of -1.
77027
77028 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
77029
77030         * lib/chown.c (rpl_chown): Return -1 on failure.
77031
77032 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
77033
77034         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
77035         Don't check for stddef.h.
77036         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
77037         don't use its results.
77038         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
77039         since we include them unconditionally.  Don't require
77040         AM_STDBOOL_H, since stdbool is a prerequisite.
77041         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
77042         since we assume C89 or better.
77043         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
77044         as we don't use their results.
77045         Don't check for fchdir, memmove, memset, strrchr, as we use
77046         them unconditionally.
77047         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
77048         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
77049
77050 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
77051
77052         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
77053         Include <stddef.h> unconditionally, since we assume C89 now.
77054         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
77055         * lib/fts.c: Include fts_.h first, to check interface.
77056         Do not include intprops.h; no longer needed.
77057         Include cycle-check.h and hash.h, since fts_.h no longer does.
77058         Remove unnecessary casts of closedir to void.
77059         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
77060         decide whether to decrement nlinks.
77061         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
77062         (FTS): Use struct hash_table * instead of Hash_table, so that
77063         we no longer need to include hash.h here.
77064
77065 2005-05-18  Jim Meyering  <jim@meyering.net>
77066
77067         * modules/dirfd (License): Change to LGPL.  Most of the code
77068         is already in the public domain.
77069
77070 2005-05-18  Jim Meyering  <jim@meyering.net>
77071
77072         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
77073         Reported by Yoann Vandoorselaere.
77074
77075 2005-05-17  Jim Meyering  <jim@meyering.net>
77076
77077         * m4/fts.m4: New file, from coreutils.
77078
77079 2005-05-17  Jim Meyering  <jim@meyering.net>
77080
77081         * lib/fts.c, lib/fts_.h: New files, from coreutils.
77082
77083 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
77084
77085         Sync from coreutils.
77086         * m4/unlinkdir.m4: New file.
77087
77088 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
77089
77090         Sync from coreutils.
77091         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
77092         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
77093         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
77094         White space changes only.
77095         * lib/makepath.c (make_path): Port to hosts where leading "//" is
77096         special.
77097         * lib/yesno.c: Include getline.h, not ctype.h.
77098         (yesno): Don't remove leading white space; POSIX doesn't allow it.
77099         Use getline to remove arbitrary restriction on response length.
77100
77101 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
77102
77103         * config/srclist-update: Spell out "Street" in FSF postal
77104         mail address; this is the style the FSF seems to prefer.
77105
77106         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
77107         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
77108         this updates FSF postal mail address.
77109
77110         Sync from coreutils.
77111         * modules/unlinkdir: New file.
77112         * modules/yesno (Depends-on): Add getline.
77113         * MODULES.html.sh (File system functions): Add unlinkdir.
77114
77115 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
77116
77117         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
77118         lib/strsep.h:
77119         Change the initial comment to refer to GPL, not LGPL.
77120         gnulib-tool will change it to LGPL as needed.
77121
77122         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
77123         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
77124         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
77125         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
77126         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
77127         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
77128         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
77129         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
77130         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
77131         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
77132         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
77133         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
77134         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
77135         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
77136         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
77137         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
77138         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
77139         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
77140         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
77141         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
77142         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
77143         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
77144         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
77145         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
77146         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
77147         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
77148         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
77149         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
77150         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
77151         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
77152         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
77153         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
77154         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
77155         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
77156         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
77157         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
77158         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
77159         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
77160         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
77161         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
77162         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
77163         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
77164         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
77165         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
77166         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
77167         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
77168         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
77169         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
77170         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
77171         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
77172         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
77173         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
77174         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
77175         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
77176         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
77177         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
77178         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
77179         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
77180         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
77181         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
77182         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
77183         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
77184         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
77185         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
77186         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
77187         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
77188         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
77189         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
77190         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
77191         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
77192         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
77193         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
77194         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
77195         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
77196         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
77197         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
77198         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
77199         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
77200         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
77201         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
77202         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
77203         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
77204         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
77205         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
77206         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
77207         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
77208         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
77209         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
77210         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
77211         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
77212         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
77213         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
77214         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
77215         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
77216         lib/yesno.c, lib/yesno.h:
77217         Update FSF postal mail address.
77218
77219 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
77220
77221         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
77222         tests/test-memmem.c, tests/test-stpncpy.c:
77223         Update FSF postal mail address.
77224
77225 2005-05-13  Bruno Haible  <bruno@clisp.org>
77226
77227         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
77228         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
77229         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
77230         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
77231         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
77232         Add support for 64-bit integers in the MSVC compiler.
77233
77234 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77235
77236         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
77237
77238 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
77239
77240         * gnulib-tool (func_import): Sort and uniquify recommended includes.
77241
77242 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
77243
77244         * doc/getdate.texi (General date syntax): Don't say that date
77245         date --iso-8601=ns generates acceptable dates; it doesn't yet.
77246         Problem reported by Nic Ferrier.
77247
77248 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77249
77250         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
77251         specified in ai_socktype. Fix invalid ai_protocol
77252         check. ai_protocol is usually set to 0 or depending on
77253         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
77254         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
77255         ai_socktype / ai_protocol in the returned addrinfo structure.
77256
77257 2005-05-10  Simon Josefsson  <jas@extundo.com>
77258
77259         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
77260         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
77261
77262 2005-05-10  Karl Berry  <karl@gnu.org>
77263
77264         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
77265         (from http://www.gnu.org/licenses).
77266         * doc/COPYING.LIB: also rename to COPYING.LESSER.
77267         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
77268         fdl.texi suffices.
77269
77270 2005-05-10  Karl Berry  <karl@gnu.org>
77271
77272         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
77273         (COPYING.DOC): remove.
77274
77275         * config/srclist-update: new FSF address.
77276
77277 2005-05-10  Derek Price  <derek@ximbiot.com>
77278
77279         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
77280         possible.
77281
77282 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77283             Bruno Haible  <bruno@clisp.org>
77284
77285         * modules/inet_ntop: New file.
77286         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
77287         inet_ntop.
77288
77289 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77290             Bruno Haible  <bruno@clisp.org>
77291
77292         * m4/inet_ntop.m4: New file.
77293
77294 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77295             Bruno Haible  <bruno@clisp.org>
77296
77297         * lib/inet_ntop.h: New file.
77298         * lib/inet_ntop.c: New file, from glibc with modifications.
77299
77300 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
77301
77302         * modules/time_r (License): Change to LGPL.
77303         * modules/extensions (License): Change to LGPL.  Actually,
77304         the license is more permissive than that, but currently gnulib-tool
77305         doesn't know how to handle more-permissive licenses.
77306
77307         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
77308         Problem reported by Dave Love.
77309
77310 2005-05-08  Jim Meyering  <jim@meyering.net>
77311
77312         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
77313         blank.
77314
77315 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
77316
77317         * modules/argmatch (Depends-on): Add stdbool.
77318         * modules/backupfile (Depends-on): Likewise.
77319         * modules/chdir-long (Depends-on): Likewise.
77320         * modules/closeout (Depends-on): Likewise.
77321         * modules/cycle-check (Depends-on): Likewise.
77322         * modules/dirname (Depends-on): Likewise.
77323         * modules/fnmatch (Depends-on): Likewise.
77324         * modules/fsusage (Depends-on): Likewise.
77325         * modules/fwriteerror (Depends-on): Likewise.
77326         * modules/getcwd (Depends-on): Likewise.
77327         * modules/getloadavg (Depends-on): Likewise.
77328         * modules/hard-locale (Depends-on): Likewise.
77329         * modules/makepath (Depends-on): Likewise.
77330         * modules/mountlist (Depends-on): Likewise.
77331         * modules/nanosleep (Depends-on): Likewise.
77332         * modules/posixtm (Depends-on): Likewise.
77333         * modules/quotearg (Depends-on): Likewise.
77334         * modules/readtokens (Depends-on): Likewise.
77335         * modules/readtokens0 (Depends-on): Likewise.
77336         * modules/readutmp (Depends-on): Likewise.
77337         * modules/save-cwd (Depends-on): Likewise.
77338         * modules/strftime (Depends-on): Likewise.
77339         * modules/userspec (Depends-on): Likewise.
77340         * modules/utimecmp (Depends-on): Likewise.
77341         * modules/xgetcwd (Depends-on): Likewise.
77342         * modules/xnanosleep (Depends-on): Likewise.
77343         * modules/xstrtod (Depends-on): Likewise.
77344         * modules/yesno (Depends-on): Likewise.
77345
77346 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
77347
77348         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
77349         needless checks.
77350
77351 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
77352
77353         Merge from coreutils.  Among other things,
77354         add bulletproofing for cases where stdin, stdout, or stderr are closed.
77355         * lib/fd-safer.c: New file.
77356         * lib/fcntl-safer.h, open-safer.c: Remove.
77357         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
77358         * lib/dup-safer.c: Include unistd-safer.h first.
77359         Don't include errno.h.
77360         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
77361         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
77362         * lib/file-type.c: Rely on file-type.h change.
77363         * lib/getloadavg.c: Include unistd-safer.h.
77364         (getloadavg): Use safer open.
77365         * lib/getusershell.c: Include "stdio-safer.h".
77366         (getusershell): Use safer fopen.
77367         * lib/long-options.c (long_options): Use NULL rather than 0.
77368         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
77369         'free'.
77370         * lib/modechange.c: Likewise.
77371         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
77372         (MODE_DONE): New constant.
77373         (struct mode_change): Remove 'next' member.
77374         (make_node_op_equals): New function; like the old one of the
77375         same name, except it allocates an array.
77376         (mode_compile, mode_create_from_ref): Use it.
77377         (mode_compile): Allocate result as an array, not a linked list.
77378         Parse octal string ourself, so that we catch mistakes like "+0".
77379         (mode_adjust): Arg is an array, not a linked list.
77380         * lib/modechange.c: Include stat-macros.h, xalloc.h.
77381         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
77382         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
77383         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
77384         Remove.  This is now stat-macros.h's job.
77385         (talloc): Remove.  All callers replaced by xalloc, so that
77386         our invokers don't have to worry about reporting memory failures.
77387         (make_node_op_equals): Remove.
77388         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
77389         New constants.
77390         (struct mode_change): Moved here from modechange.h.
77391         (mode_append_entry): Remove.
77392         (mode_compile): Remove MASKED_OPS arg, since it encouraged
77393         apps to have incorrect behavior.  Use simpler algorithm for head
77394         and tail.  Don't futz with umask; that's now the job of mode_adjust.
77395         Detect more invalid usages rather than having somewhat-random behavior.
77396         Don't insert an "a=" action, as that leads to incorrect behavior.
77397         (mode_compile, mode_create_from_ref): Return NULL on error instead
77398         of an enum, since now there's only one way to have an error.  All
77399         callers changed.
77400         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
77401         at the correct time.  Simplify calculation of "+u" and its ilk.
77402         Don't mishandle "+X".
77403         (mode_free): Remove "register" and localize decls.
77404         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
77405         (struct mode_change): Move to modechange.c; callers don't
77406         need to see this stuff.
77407         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
77408         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
77409         (mode_change, mode_adjust): Reflect the new signatures noted above.
77410         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
77411         that might redefine system include files.
77412         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
77413         (my_usleep): Use NULL rather than (void *) 0.
77414         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
77415         Use siginterrupt to specify that system calls should be interrupted.
77416         (rpl_nanosleep): Move initialization of suspended closer to call of
77417         my_usleep.
77418         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
77419         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
77420         (desirable_utmp_entry): New function.
77421         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
77422         using x2nrealloc, to simplify logic.
77423         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
77424         size calculation.  Do not assume utmp file is a regular file.
77425         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
77426         (READ_UTMP_CHECK_PIDS): New constant.
77427         * lib/save-cwd.c: Include unistd-safer.h.
77428         (save_cwd): Use fd_safer.
77429         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
77430         [!_LIBC] Include "stat-macros.h" instead.
77431         * lib/unistd-safer.h (fd_safer): New decl.
77432
77433 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
77434
77435         * modules/getloadavg (Depends-on): Add unistd-safer.
77436         * modules/getusershell (Depends-on): Add stdio-safer.
77437         * modules/lstat (Depends-on): Remove xalloc.
77438         * modules/mkstemp (Depends-on): Add stat-macros.
77439         * modules/modechange (Depends-on): Remove xstrtol.
77440         Add stat-macros, xalloc.
77441         * modules/save-cwd (Depends-on): Add unistd-safer.
77442         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
77443         * modules/unistd-safer (Files): Add lib/fd-safer.c
77444         (Makefile.am): Remove lib_SOURCES.
77445
77446         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
77447         Remove fcntl-safer; unistd-safer supersedes it.
77448
77449 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
77450
77451         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
77452         AC_HEADER_STAT.
77453         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
77454         (gl_PREREQ_CHOWN): Remove.
77455         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
77456         it.  Don't require AC_HEADER_STAT.
77457         (gl_PREREQ_LSTAT): Remove.
77458         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
77459         Don't require AC_HEADER_STAT.
77460         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
77461         (gl_PREREQ_RMDIR): Remove.
77462         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
77463         mention stat-macros.h or AC_HEADER_STAT, since we'll make
77464         the stat-macros module a prerequisite.
77465         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
77466         * m4/filemode.m4 (gl_FILEMODE): Likewise.
77467         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
77468         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
77469         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
77470         variable names.
77471         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
77472         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
77473         variable prefixes.
77474         * m4/fcntl-safer.m4: Remove.
77475         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
77476         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
77477         Invoke gl_PREREQ_FD_SAFER.
77478         (gl_PREREQ_FD_SAFER): New macro.
77479         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
77480         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
77481         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
77482         Remove duplicate call to AC_LIBOBJ(readutmp).
77483         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
77484
77485         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
77486         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
77487
77488 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
77489
77490         * MODULES.html.sh (Misc): Add byteswap.
77491
77492 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
77493
77494         * modules/getcwd (Depends-on): Add extensions.
77495         * modules/openat (Depends-on): Likewise.
77496
77497 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
77498
77499         * modules/byteswap: New file.
77500
77501 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
77502
77503         * m4/byteswap.m4: New file.
77504
77505 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
77506
77507         * lib/byteswap_.h: New file.
77508
77509 2005-04-25  Karl Berry  <karl@gnu.org>
77510
77511         * m4/gettext.m4: Update from GNU gettext 0.14.4.
77512
77513 2005-04-25  Albert Chin  <china@thewrittenword.com>
77514
77515         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
77516         Toolkit C bug.
77517
77518 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
77519
77520         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
77521         (func_ln_if_changed): Remove forcibly for no error message
77522         in case file does not exist.
77523
77524 2005-04-19  Simon Josefsson  <jas@extundo.com>
77525
77526         * gnulib-tool (Options): Make --symlink mean --symbolic.
77527
77528 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
77529
77530         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
77531
77532 2005-04-16  Simon Josefsson  <jas@extundo.com>
77533
77534         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
77535
77536 2005-04-15  Simon Josefsson  <jas@extundo.com>
77537
77538         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
77539
77540 2005-04-15  Simon Josefsson  <jas@extundo.com>
77541
77542         * gnulib-tool: Rename --symlink to --symbolic.
77543
77544 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
77545
77546         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
77547         symbolic links to files instead of copying/moving.  Add --aux-dir,
77548         specifying directory relative --dir where auxiliary build tools
77549         are placed.
77550
77551 2005-04-14  Bruno Haible  <bruno@clisp.org>
77552
77553         * modules/allocsa (License): Change to LGPL.
77554         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
77555
77556 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
77557
77558         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
77559         that "UTC +1 second" continues to work.  Problem reported
77560         by Dmitry V. Levin.
77561         (relunit_snumber): New rule.
77562         (relunit): Use it.
77563
77564 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
77565
77566         * lib/getdate.y (universal_time_zone_table): New constant.
77567         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
77568         universal_time_zone_table.
77569         (lookup_zone): Prefer universal_time_zone_table to
77570         local_time_zone_table, so that "GMT" time stamps are allowed in
77571         London during the summer.  Problem reported by Ian Abbott.
77572
77573 2005-04-12  Jim Meyering  <jim@meyering.net>
77574
77575         * lib/human.c (humblock): Set *options even when returning due to
77576         xstrtoumax conversion failure.  Thanks to a used-uninitialized
77577         warning from gcc-4.
77578
77579 2005-04-09  Jim Meyering  <jim@meyering.net>
77580
77581         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
77582         -Wuninitialized: initialize tm0.tm_year.
77583
77584 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
77585
77586         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
77587         count, since there's no maximum.  All uses changed.
77588         Add member dsts_seen.
77589         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
77590         not being INT_MAX.
77591         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
77592         Use pc_rels_seen to decide whther a date is absolute.
77593
77594         * lib/getdate.y (number): Don't overwrite year.
77595         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
77596         check.
77597
77598 2005-04-02  Simon Josefsson  <jas@extundo.com>
77599
77600         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
77601         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
77602
77603 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
77604
77605         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
77606         where no absolute path name can be longer than PATH_MAX.
77607
77608 2005-03-27  Jim Meyering  <jim@meyering.net>
77609
77610         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
77611
77612 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
77613
77614         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
77615         "one's complement" -> "ones' complement" in comment, as per Knuth.
77616         "value of type" -> "type or expression" in comment.
77617         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
77618
77619 2005-03-26  Jim Meyering  <jim@meyering.net>
77620
77621         Comment nits.
77622         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
77623         Correct typos: s/or/of/.
77624
77625 2005-03-26  Jim Meyering  <jim@meyering.net>
77626
77627         * modules/check-include-files: Move to ../ and rename to...
77628         * check-module: ...this.
77629
77630 2005-03-25  Jim Meyering  <jim@meyering.net>
77631
77632         * modules/xvasprintf (Files): Add xalloc.h.
77633
77634 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
77635
77636         * modules/gettext (Files): config/config.rpath ->
77637         build-aux/config.rpath
77638         * modules/iconv (Files): Likewise.
77639         Problem reported by Oskar Liljeblad.
77640
77641 2005-03-23  Jim Meyering  <jim@meyering.net>
77642
77643         * modules/check-include-files: New script to check for
77644         missing dependencies, multiple includes, etc.
77645
77646         * modules/c-strtold (Depends-on): Add xalloc.
77647         * modules/c-strtod (Depends-on): Add xalloc.
77648         * modules/hash (Depends-on): Add xalloc.
77649         (Files): Remove lib/xalloc.h.
77650
77651         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
77652         * modules/userspec (Files): Add lib/inttostr.h.
77653
77654 2005-03-23  Jim Meyering  <jim@meyering.net>
77655
77656         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
77657
77658 2005-03-22  Jim Meyering  <jim@meyering.net>
77659
77660         * modules/stat-macros: New module.
77661         * modules/canonicalize, modules/euidaccess, modules/file-type,
77662         * modules/filemode, modules/lchown, modules/makepath,
77663         * modules/rmdir, modules/stat: Depend on new stat-macros module
77664         rather than listing lib/stat-macros.h manually.
77665         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
77666
77667 2005-03-22  Jim Meyering  <jim@meyering.net>
77668
77669         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
77670
77671 2005-03-22  Bruno Haible  <bruno@clisp.org>
77672
77673         * config/srclist.txt: Replace target directory 'config' with
77674         'build-aux'.
77675         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
77676         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
77677         ../build-aux/.
77678
77679 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
77680
77681         * modules/chdir-long (Depends-on): Add mempcpy.
77682
77683         * modules/acl, modules/backupfile, modules/c-strtod,
77684         modules/c-strtold, modules/canon-host, modules/canonicalize,
77685         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
77686         modules/exclude, modules/exitfail, modules/file-type,
77687         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
77688         modules/getdate, modules/getline, modules/getpagesize,
77689         modules/getpass, modules/getugroups, modules/group-member,
77690         modules/hard-locale, modules/hash, modules/human, modules/idcache,
77691         modules/inttostr, modules/long-options, modules/makepath,
77692         modules/md5, modules/memcasecmp, modules/memcoll,
77693         modules/modechange, modules/mountlist, modules/path-concat,
77694         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
77695         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
77696         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
77697         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
77698         modules/strftime, modules/strndup, modules/strverscmp,
77699         modules/timespec, modules/unlocked-io, modules/userspec,
77700         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
77701         modules/yesno:
77702         Remove lib_SOURCES line from Makefile.am section, as this is now
77703         done automatically by the corresponding Autoconf macro.
77704
77705 2005-03-21  Jim Meyering  <jim@meyering.net>
77706
77707         Changes imported from coreutils.
77708
77709         * lib/cycle-check.c: Don't include xalloc.h.
77710
77711         * lib/path-concat.c: Don't include assert.h.
77712         (path_concat): Remove assertion that would have triggered
77713         for ABASE starting with more than one slash.
77714         Reported by Andreas Schwab.
77715
77716         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
77717         properly when ABASE is an absolute file name.
77718         Correct the description of this function.
77719         Include <assert.h>.
77720         Add an assertion and a test driver.
77721         This fixes a bug introduced on 2004-07-02.
77722         Andreas Schwab reported the resulting failure of cp --parents:
77723         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
77724
77725 2005-03-21  Jim Meyering  <jim@meyering.net>
77726
77727         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
77728         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
77729
77730 2005-03-21  Jim Meyering  <jim@meyering.net>
77731         and  Paul Eggert  <eggert@cs.ucla.edu>
77732
77733         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
77734         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
77735         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
77736         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
77737         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
77738         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
77739         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
77740         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
77741         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
77742         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
77743         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
77744         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
77745         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
77746         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
77747         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
77748         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
77749         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
77750         for these modules.
77751
77752 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
77753
77754         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
77755         (which shouldn't happen), generate nothing instead of returning 0
77756         immediately, so that nstrftime (NULL, ...) doesn't return 0.
77757
77758 2005-03-16  Bruno Haible  <bruno@clisp.org>
77759
77760         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
77761         HAVE_LONGLONG_64BIT.
77762
77763 2005-03-16  Bruno Haible  <bruno@clisp.org>
77764
77765         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
77766         HAVE_LONGLONG_64BIT.
77767
77768 2005-03-16  Bruno Haible  <bruno@clisp.org>
77769
77770         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
77771         HAVE_LONGLONG_64BIT.
77772
77773 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
77774
77775         * lib/strftime.c (my_strftime): Prepend space to format so that we can
77776         reliably distinguish strftime failure from empty output on POSIX
77777         hosts.
77778
77779 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
77780
77781         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
77782         (iconv_string): Don't guess a size-zero buffer, as that might cause
77783         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
77784         result would be 'too large', where 'too large' is (heuristically)
77785         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
77786         overflow concerns.  This will prevent some unwanted malloc failures
77787         when the inputs are very large.
77788
77789 2005-03-15  Karl Berry  <karl@gnu.org>
77790
77791         * config/srclist.txt (config.rpath): from gettext.
77792         * config/config.rpath: update.
77793
77794 2005-03-15  Bruno Haible  <bruno@clisp.org>
77795
77796         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
77797         to 'negate'.
77798
77799         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
77800         variable.
77801
77802         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
77803         results.
77804
77805 2005-03-14  Simon Josefsson  <jas@extundo.com>
77806
77807         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
77808         <fx@gnu.org>.
77809
77810 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
77811
77812         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
77813         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
77814         intprops.h.
77815         * lib/strtol.c: Likewise.
77816
77817 2005-03-14  Jim Meyering  <jim@meyering.net>
77818
77819         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
77820         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
77821         to be nonzero so that we (and caller) can detect the difference
77822         between a valid zero-length expansion and an error return, even
77823         when the underlying strftime fails before writing anything into
77824         that location.
77825
77826 2005-03-14  Bruno Haible  <bruno@clisp.org>
77827
77828         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
77829         Update from GNU gettext 0.14.3.
77830
77831 2005-03-10  Jim Meyering  <jim@meyering.net>
77832
77833         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
77834
77835 2005-03-10  Jim Meyering  <jim@meyering.net>
77836
77837         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
77838         so that this module works on systems without fchdir.
77839
77840 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
77841
77842         Factor int-properties macros into a single file, except for
77843         glibc-related files.
77844         * lib/intprops.h: New file.
77845         * lib/getloadavg.c: Include it instead of limits.h.
77846         (INT_STRLEN_BOUND): Remove.
77847         * lib/human.c: Include intprops.h.
77848         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
77849         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
77850         302/1000.
77851         * lib/inttostr.h: Include intprops.h instead of limits.h.
77852         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
77853         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
77854         for consistency with intprops.h.
77855         (time_t_is_integer, twos_complement_arithmetic): Use them.
77856         * lib/sig2str.h: Include <signal.h>, intprops.h.
77857         (INT_STRLEN_BOUND): Remove.
77858         * lib/strftime.c (TYPE_SIGNED): Remove.
77859         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
77860         * lib/strtol.c: Adjust comments to match intprops.h.
77861         * lib/userspec.c: Include intprops.h.
77862         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
77863         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
77864         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
77865         instead of rolling our own expressions.
77866         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
77867
77868         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
77869         instead of int.
77870         (my_strftime): Do not mishandle years close to INT_MAX, by doing
77871         the right thing even if adding 1900 would overflow.  Similarly
77872         for tm_mon + 1 and tm_yday + 1.
77873         Make %Y always equivalent to %C%y, and similarly for %G and %g.
77874         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
77875         (DO_SIGNED_NUMBER): New macro.
77876         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
77877
77878 2005-03-07  Bruno Haible  <bruno@clisp.org>
77879
77880         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
77881
77882 2005-03-07  Bruno Haible  <bruno@clisp.org>
77883
77884         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
77885
77886 2005-03-04  Derek R. Price  <derek@ximbiot.com>
77887
77888         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
77889         (func_import): Only replace files via --import when they have actually
77890         changed.
77891
77892 2005-03-03  Derek R. Price  <derek@ximbiot.com>
77893
77894         * m4/mmap-anon.m4: New file.
77895         * m4/pagealign_alloc.m4: New file.
77896
77897 2005-03-03  Derek R. Price  <derek@ximbiot.com>
77898             Bruno Haible  <bruno@clisp.org>
77899
77900         * modules/pagealign_alloc: New file.
77901         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
77902
77903 2005-03-03  Derek R. Price  <derek@ximbiot.com>
77904             Bruno Haible  <bruno@clisp.org>
77905
77906         * lib/pagealign_alloc.h: New file.
77907         * lib/pagealign_alloc.c: New file.
77908
77909 2005-03-03  Bruno Haible  <bruno@clisp.org>
77910
77911         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
77912         Use an all-permissive copyright notice, recommended by RMS.
77913
77914 2005-03-02  Bruno Haible  <bruno@clisp.org>
77915
77916         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
77917         of AIX, the replacement has to be done only after <string.h> is
77918         included, therefore not in config.h. stpncpy.h does the replacement,
77919         and stpncpy.c uses it.
77920
77921 2005-03-02  Bruno Haible  <bruno@clisp.org>
77922
77923         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
77924         stpncpy.c uses it.
77925
77926 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
77927
77928         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
77929         The workaround isn't strictly needed for POSIX conformance, and
77930         it's too much of a pain to configure and maintain.  We'll ask
77931         people to fix their kernels instead.
77932         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
77933         (NANOSLEEP_BUG_WORKAROUND): Remove.
77934         (xnanosleep): Remove the workaround.
77935
77936 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
77937
77938         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
77939         Reported by Derek Price.
77940         (Include): Add "timespec.h".
77941
77942         * modules/xnanosleep (Depends-on): Remove gethrxtime.
77943
77944 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
77945
77946         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
77947         to detect nanosleep bug.
77948
77949 2005-03-01  Bruno Haible  <bruno@clisp.org>
77950
77951         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
77952
77953 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
77954
77955         * modules/gethrxtime: New file.
77956         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
77957         (Depends-on): Add gethrxtime.
77958         (configure.ac): Add gl_XNANOSLEEP.
77959         (Makefile.am): Remove lib_SOURCES line.
77960
77961 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
77962
77963         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
77964         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
77965
77966 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
77967
77968         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
77969         * lib/timespec.h (gettime): Return void, since it always
77970         succeeds now.  All uses changed.
77971         * lib/gettime.c (gettime): Likewise.
77972         [HAVE_NANOTIME]: Prefer nanotime.
77973         Assume gettimeofday succeeds, as POSIX requires.
77974         Assime time () succeeds, since other code already does.
77975         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
77976         (timespec_subtract): Remove.
77977         (NANOSLEEP_BUG_WORKAROUND): New constant.
77978         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
77979         things considerably.  Use it only on GNU/Linux hosts, since the
77980         workaround shouldn't be needed elsewhere.
77981
77982 2005-02-24  Bruno Haible  <bruno@clisp.org>
77983
77984         * modules/gettext (Files): Add m4/glibc2.m4.
77985
77986 2005-02-24  Bruno Haible  <bruno@clisp.org>
77987
77988         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
77989         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
77990         * m4/progtest.m4:
77991         Update from GNU gettext 0.14.2.
77992         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
77993
77994 2005-02-24  Bruno Haible  <bruno@clisp.org>
77995
77996         * lib/localcharset.c: Update from GNU gettext 0.14.2.
77997         * lib/config.charset: Update from GNU gettext 0.14.2.
77998
77999 2005-02-24  Bruno Haible  <bruno@clisp.org>
78000
78001         * lib/gettext.h: Update from GNU gettext 0.14.2.
78002
78003 2005-02-23  Simon Josefsson  <jas@extundo.com>
78004
78005         * m4/iconvme.m4: New file.
78006
78007 2005-02-23  Jim Meyering  <jim@meyering.net>
78008
78009         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
78010         change.
78011         Thanks to Bruno Haible for catching it.
78012
78013 2005-02-22  Simon Josefsson  <jas@extundo.com>
78014
78015         * modules/iconvme: New file.
78016
78017         * MODULES.html.sh: Add iconvme.
78018
78019 2005-02-22  Simon Josefsson  <jas@extundo.com>
78020
78021         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
78022
78023 2005-02-22  Simon Josefsson  <jas@extundo.com>
78024
78025         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
78026
78027 2005-02-22  Jim Meyering  <jim@meyering.net>
78028
78029         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
78030         s/ifndef/ifdef/.
78031
78032 2005-02-20  Neil Conway  <neilc@samurai.com>
78033
78034         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
78035         returned by OSX/Darwin if the specified buffer is not large
78036         enough for the hostname.
78037
78038 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78039
78040         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
78041         pass it to _help, otherwise the latter coredumps trying to
78042         dereference state.root_argp.
78043
78044 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
78045
78046         * modules/chdir-long (Depends-on): Add memrchr.
78047         * modules/memrchr (Files): Add lib/memrchr.h.
78048         (Include): "memrchr.h".
78049
78050 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
78051
78052         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
78053
78054 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
78055
78056         * lib/memrchr.h: New file.
78057         * lib/chdir-long.c: Include it.
78058         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
78059         Don't bother including stddef.h.
78060
78061 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
78062
78063         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
78064         inclusion.
78065         Include <sys/types.h>, for dev_t.
78066         (ME_DUMMY, ME_REMOTE): Move from here....
78067         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
78068         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
78069         Dmitry V. Levin.
78070         Include mountlist.h first, to test the interface.
78071
78072 2005-01-29  Bruno Haible  <bruno@clisp.org>
78073
78074         * lib/progname.c (program_name): Initialize.
78075         Needed when linking statically on MacOS X.
78076
78077 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
78078
78079         Sync from coreutils.
78080         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
78081         (Depends-on): Add c-strtod.
78082         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
78083
78084 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
78085
78086         Sync from coreutils.
78087         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
78088
78089         Remove files that are specific to coreutils.
78090         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
78091
78092 2005-01-28  Bruno Haible  <bruno@clisp.org>
78093
78094         * modules/javacomp: New file.
78095         * MODULES.html.sh (Java): Add javacomp.
78096
78097 2005-01-28  Bruno Haible  <bruno@clisp.org>
78098
78099         * m4/javacomp.m4: New file, from GNU gettext.
78100
78101 2005-01-28  Bruno Haible  <bruno@clisp.org>
78102
78103         * lib/javacomp.sh.in: New file, from GNU gettext.
78104         * lib/javacomp.h: New file, from GNU gettext.
78105         * lib/javacomp.c: New file, from GNU gettext.
78106
78107 2005-01-26  Simon Josefsson  <jas@extundo.com>
78108
78109         * lib/gai_strerror.c: Use GPL in header.
78110
78111 2005-01-26  Bruno Haible  <bruno@clisp.org>
78112
78113         * modules/javaexec: New file.
78114         * MODULES.html.sh (Java): Add javaexec.
78115
78116 2005-01-26  Bruno Haible  <bruno@clisp.org>
78117
78118         * m4/javaexec.m4: New file, from GNU gettext.
78119
78120 2005-01-26  Bruno Haible  <bruno@clisp.org>
78121
78122         * lib/javaexec.sh.in: New file, from GNU gettext.
78123         * lib/javaexec.h: New file, from GNU gettext.
78124         * lib/javaexec.c: New file, from GNU gettext.
78125
78126 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78127
78128         * modules/lchown (Depends-on): Remove lchown.h
78129
78130 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78131
78132         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
78133         must be defined if the header file was not found, in order
78134         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
78135
78136 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78137
78138         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
78139         initializers for struct pentry_state.
78140         (__argp_error): Check return value of __asprintf
78141         (__argp_failure): Translate error message
78142
78143         * lib/argp-parse.c: Removed braces around the expansion of N_()
78144
78145 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
78146
78147         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
78148         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
78149         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
78150         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
78151         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
78152         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
78153         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
78154         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
78155         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
78156         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
78157         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
78158         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
78159         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
78160         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
78161         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
78162         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
78163         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
78164         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
78165         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
78166         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
78167         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
78168         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
78169         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
78170         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
78171         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
78172         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
78173         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
78174         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
78175         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
78176         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
78177         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
78178         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
78179         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
78180         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
78181         xstrtol.m4, xstrtoumax.m4, yesno.m4:
78182         Use an all-permissive copyright notice, recommended by RMS.
78183
78184 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
78185
78186         * modules/chdir-long (Depends-on): Remove mempcpy.
78187
78188 2005-01-21  Jim Meyering  <jim@meyering.net>
78189
78190         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
78191         same value as for Solaris 9.
78192
78193         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
78194         component length.  This included changing the parameter to be
78195         of type `char *' rather than `char const *'.
78196         * lib/chdir-long.h (chdir_long): Update prototype.
78197
78198         * lib/openat.c (fdopendir, fstatat): New functions.
78199         * lib/openat.h: Include headers required for use of DIR and struct
78200         stat.
78201         [AT_SYMLINK_NOFOLLOW]: Define.
78202         (fdopendir, fstatat): Add prototypes.
78203
78204 2005-01-21  Bruno Haible  <bruno@clisp.org>
78205
78206         * modules/classpath: New file.
78207         * MODULES.html.sh (Java): Add classpath.
78208
78209 2005-01-21  Bruno Haible  <bruno@clisp.org>
78210
78211         * lib/classpath.h: New file, from GNU gettext.
78212         * lib/classpath.c: New file, from GNU gettext.
78213
78214 2005-01-20  Simon Josefsson  <jas@extundo.com>
78215
78216         * modules/version-etc-fsf: New file.
78217
78218 2005-01-20  Simon Josefsson  <jas@extundo.com>
78219
78220         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
78221         * lib/version-etc.c: Remove version_etc_copyright.
78222         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
78223         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
78224
78225 2005-01-20  Simon Josefsson  <jas@extundo.com>
78226
78227         * lib/base64.h (isbase64): Add.
78228
78229         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
78230         using a unsigned prototype, don't inline.
78231         (base64_decode): Use it.
78232
78233 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
78234
78235         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
78236         it.
78237
78238 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
78239
78240         * lib/save-cwd.c (save_cwd): Remove code to support the case
78241         where fchdir is missing or flaky.
78242
78243 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
78244
78245         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
78246
78247 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
78248
78249         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
78250         AC_LIBSOURCES now does this.
78251         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
78252         with new ullong_max module.
78253
78254 2005-01-19  Bruno Haible  <bruno@clisp.org>
78255
78256         * modules/sh-quote: New file.
78257         * MODULES.html.sh (Executing programs): Add sh-quote.
78258
78259 2005-01-19  Bruno Haible  <bruno@clisp.org>
78260
78261         * lib/sh-quote.h: New file, from GNU gettext.
78262         * lib/sh-quote.c: New file, from GNU gettext.
78263
78264 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
78265
78266         Merge from coreutils.
78267         * m4/ullong_max.m4: New file.
78268         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
78269         (gl_MACROS): Assume localeconv exists.
78270
78271 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
78272
78273         Merge changes from coreutils, as described below in several
78274         changelogs dated today.
78275
78276         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
78277         (O_DIRECTORY): Remove; not needed here, since "." must be
78278         a directory.  All uses removed.
78279         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
78280         universal on Suns, and we also need to test for IRIX.
78281         Revamp code to use 'if' rather than '#if'.
78282         Avoid unnecessary comparison of cwd->desc to 0.
78283
78284         * lib/utimens.c (futimens): Robustify the previous patch, by checking
78285         for known valid error numbers rather than observed invalid ones.
78286
78287 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
78288
78289         * modules/ullong_max: New file.
78290
78291         * modules/chdir-long, modules/openat: New files.
78292         * modules/save-cwd (Depends-on): Depend on chdir-long.
78293         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
78294
78295 2005-01-18  Jim Meyering  <jim@meyering.net>
78296
78297         Merge from coreutils.
78298         * m4/chdir-long.m4, m4/openat.m4: New files.
78299         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
78300         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
78301         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
78302         is sane and DOES follow symlinks.  Besides, testing 20 different
78303         systems found no broken chown implementations.
78304         Prompted by a change in rsync's copy of this macro.
78305         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
78306
78307         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
78308
78309         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
78310         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
78311         NULL-means-set-to-current-time semantics.
78312         Remove temporary file immediately, rather than waiting
78313         for configure's at-exit trap code to do it.
78314
78315 2005-01-18  Jim Meyering  <jim@meyering.net>
78316
78317         * lib/version-etc.c (version_etc_copyright): Update copyright date.
78318
78319         * lib/utimens.c (futimens): Account for the fact that futimes
78320         can also fail with errno == ENOSYS or errno == ENOENT.
78321         Patch from Dmitry V. Levin.
78322
78323         Change the name of the robust chdir function from chdir to chdir_long.
78324         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
78325         (restore_cwd): Use chdir_long, not chdir.
78326         * lib/chdir-long.c: Renamed from chdir.c.
78327         * lib/chdir-long.h: Renamed from chdir.h.
78328         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
78329         Hurd.
78330
78331 2005-01-18  Bruno Haible  <bruno@clisp.org>
78332
78333         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
78334         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
78335         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
78336         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
78337         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
78338         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
78339         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
78340         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
78341         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
78342         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
78343         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
78344         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
78345         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
78346         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
78347         Use an all-permissive copyright notice, recommended by RMS.
78348
78349 2005-01-18  Bob Proulx  <bob@proulx.com>
78350
78351         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
78352         simplify offsetof() macro construct to avoid compile failure with
78353         native HP-UX 11.0 ANSI C compiler.
78354
78355 2005-01-17  Bruno Haible  <bruno@clisp.org>
78356
78357         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
78358         redundant because stpncpy.m4 takes care of it.
78359
78360 2005-01-17  Bruno Haible  <bruno@clisp.org>
78361
78362         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
78363
78364 2005-01-17  Bruno Haible  <bruno@clisp.org>
78365
78366         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
78367         used.
78368
78369 2005-01-17  Bruno Haible  <bruno@clisp.org>
78370
78371         * lib/fwriteerror.h (fwriteerror): Change specification to include
78372         fclose.
78373         * lib/fwriteerror.c: Include <stdbool.h>.
78374         (fwriteerror): At the end, close the file stream. Record whether
78375         stdout was already closed.
78376
78377 2005-01-17  Bruno Haible  <bruno@clisp.org>
78378
78379         * lib/execute.c (environ): Declare if needed.
78380         * lib/pipe.c (environ): Likewise.
78381         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
78382
78383 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78384
78385         * modules/argp: Depend on vsnprintf
78386
78387 2005-01-10  Jim Meyering  <jim@meyering.net>
78388
78389         * modules/closeout (Depends-on): Add atexit.
78390
78391 2005-01-06  Bruno Haible  <bruno@clisp.org>
78392
78393         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
78394
78395 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
78396
78397         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
78398         definitions to be after all include files, to avoid collisions.
78399         Problem reported by Bob Proulx.
78400
78401 2005-01-04  Jim Meyering  <jim@meyering.net>
78402
78403         Changes imported from coreutils.
78404         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
78405         as the mkstemp template, use a temporary directory and an
78406         8.3-friendly template to avoid trouble on systems like DJGPP.
78407         Reported by Juan M. Guerrero via Stepan Kasal.
78408         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
78409         close. Remove the temporary directory right away, rather than waiting
78410         for configure's at-exit trap code to do it.
78411         Suggestion from Stepan Kasal.
78412
78413 2005-01-01  Simon Josefsson  <jas@extundo.com>
78414
78415         * gnulib-tool: Print #include directives when --import'ing.
78416
78417 2004-12-28  Simon Josefsson  <jas@extundo.com>
78418
78419         * tests/test-base64.c: Include required header files.  Remove
78420         unused variables.
78421
78422 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
78423
78424         * modules/error (Depends-on): Remove gettext.
78425
78426 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
78427
78428         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
78429         not needed.  This removes a dependency on the gettext module.
78430         [defined _LIBC]: Do not include <libintl.h>; not needed.
78431
78432 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
78433
78434         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
78435         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
78436
78437 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
78438
78439         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
78440         HAVE_DECL_STRTOLD.
78441
78442 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
78443
78444         * modules/getdate (Depends-on): Remove alloca-opt.
78445
78446 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
78447
78448         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
78449
78450 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
78451
78452         * lib/argp-parse.c: Include <stddef.h>.
78453         (alignof, alignto): New macros.
78454         (parser_init): Don't assume that void * is aligned sufficiently
78455         for struct option.
78456
78457         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
78458         need to extend the stack.
78459         (YYINITDEPTH): New macro, so that the initial stack isn't overly
78460         large.
78461
78462 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78463
78464         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
78465
78466 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
78467
78468         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
78469         (2004-10-24) change.  Apparently this was a false alarm.
78470
78471         * modules/getdate: Depend on alloca-opt, not alloca.
78472
78473 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
78474
78475         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
78476         Remove now-obsolete comment about AIX.
78477         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
78478         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
78479         (YYMAXDEPTH): New macro.
78480
78481 2004-12-18  Simon Josefsson  <jas@extundo.com>
78482
78483         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
78484
78485 2004-12-18  Bruno Haible  <bruno@clisp.org>
78486
78487         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
78488
78489 2004-12-18  Bruno Haible  <bruno@clisp.org>
78490
78491         * lib/fatal-signal.c (fatal_signals): Make non-const.
78492         (init_fatal_signals): New function.
78493         (uninstall_handlers, install_handlers): Ignore signals that were set to
78494         SIG_IGN.
78495         (at_fatal_signal): Call init_fatal_signals.
78496         (init_fatal_signal_set): Likewise. Ignore signals that were set to
78497         SIG_IGN.
78498         Reported by Paul Eggert.
78499
78500 2004-12-18  Bruno Haible  <bruno@clisp.org>
78501
78502         * doc/alloca.texi: New file.
78503         * doc/alloca-opt.texi: New file.
78504
78505 2004-12-17  Jim Meyering  <jim@meyering.net>
78506
78507         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
78508         Otherwise, install-sh could exit with improper exit status when
78509         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
78510
78511 2004-12-16  Simon Josefsson  <jas@extundo.com>
78512
78513         * tests/test-base64.c: Add license.
78514
78515 2004-12-15  Stepan Kasal  <address@hidden>
78516
78517         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
78518
78519 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
78520
78521         * modules/getcwd (Files): Add m4/d-ino.m4.
78522         Suggested by Mark D. Baushke.
78523
78524 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
78525
78526         * lib/getdate.y (textint): New member "negative".
78527         (time_zone_hhmm): New function.
78528         Expect 14 shift-reduce conflicts, not 13.
78529         (o_colon_minutes): New rule.
78530         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
78531         (yylex): Set the "negative" member of signed numbers.
78532
78533 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
78534
78535         * doc/getdate.texi (Time of day items, Time zone items):
78536         Describe new formats +00:00, UTC+00:00.
78537
78538 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
78539
78540         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
78541         spurious "-l"s.  Problem reported by Stepan Kasal.
78542
78543 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
78544
78545         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
78546         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
78547
78548 2004-12-04  Simon Josefsson  <jas@extundo.com>
78549
78550         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
78551         Vandoorselaere <yoann@prelude-ids.org>.
78552
78553 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
78554
78555         Changes imported from coreutils.
78556         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
78557         exist.
78558         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
78559
78560 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
78561
78562         Changes imported from coreutils.
78563         * lib/hard-locale.c: Assume <locale.h> exists.
78564         Include "strdup.h".
78565         (GLIBC_VERSION): New macro.
78566         (hard_locale): Assume setlocale exists.
78567         Rewrite to avoid #ifdef.
78568         Use strdup rather than malloc + strcpy.
78569         * lib/human.c: Assume <locale.h> exists.
78570         (human_readable): Assume localeconv exists.
78571
78572 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
78573
78574         * modules/hard-locale (Depends-on): Add strdup.
78575
78576 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
78577
78578         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
78579         convert T2, not T.  (Imported from libc.)
78580
78581 2004-11-30  Simon Josefsson  <jas@extundo.com>
78582
78583         * modules/restrict (License): Change to LGPL.
78584
78585 2004-11-30  Simon Josefsson  <jas@extundo.com>
78586
78587         * m4/restrict.m4: Add copyright and copying conditions.
78588
78589 2004-11-30  Simon Josefsson  <jas@extundo.com>
78590
78591         * m4/base64.m4: New file.
78592
78593 2004-11-30  Simon Josefsson  <jas@extundo.com>
78594
78595         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
78596         base64.
78597
78598         * tests/test-base64.c: New file.
78599
78600         * modules/base64: New file.
78601
78602 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
78603
78604         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
78605         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
78606
78607         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
78608
78609 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
78610
78611         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
78612         (__getcwd.c): Don't restore errno; glibc doesn't.
78613         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
78614         first, falling back to our code only if its results look suspicious.
78615         Ensure that the resulting buffer is only as large as necessary.
78616
78617         * lib/readutmp.c: Include readutmp.h first.
78618         Include <errno.h>, since readutmp.h no longer does that.
78619         * lib/readutmp.h: Don't include <errno.h>,
78620         <sys/param.h>, <time.h>; not needed to establish interface.
78621         (errno): Remove decl.
78622         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
78623         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
78624         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
78625
78626 2004-11-28  Simon Josefsson  <jas@extundo.com>
78627
78628         * lib/base64.h, base64.c: New file.
78629
78630 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
78631
78632         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
78633
78634 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
78635
78636         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
78637         (Depends-on): Remove pathmax, same.  Add mempcpy.
78638         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
78639         (Makefile.am): Append getcwd.h to lib_SOURCES.
78640         (Include): Add getcwd.h.
78641         (Maintainer): Change from Jim Meyering to "all, glibc",
78642         since getdate now uses intended-for-glibc code.
78643         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
78644         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
78645
78646 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
78647
78648         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
78649         HP's ANSI C compiler.
78650         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
78651         Declaring int functions causes warnings on some modern systems and
78652         shouldn't be needed to compile on ancient ones.
78653         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
78654         defined.
78655
78656         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
78657         with the following changes.
78658         (__set_errno): Parenthesize properly.
78659         Include <stdbool.h>.
78660         (MIN, MAX, MATCHING_INO): New macros.
78661         (__getcwd): Define with prototype, not K&R form.
78662         Use heuristics to allocate default buffer on stack if possible.
78663         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
78664         behavior, and to avoid the PATH_MAX limit when computing
78665         ../../../../...
78666         Use MATCHING_INO to compare inode number to file.
78667         Check for arithmetic overflow in size calculations.
78668         Fix bug in reallocation of dot array that caused getcwd to fail
78669         on directories nested deeper than 75.
78670         Be more careful about saving errno on error.
78671         Do not use realloc; use only free+malloc, as this is a bit
78672         more flexible and avoids a needless copy operation.
78673         Do not inspect st_dev and st_ino for symbolic links; POSIX
78674         doesn't specify the latter.
78675         Check for closedir errors.
78676         Avoid needless casts.
78677         Use "#ifdef weak_alias" around weak_alias, to be like other
78678         glibc code.
78679         The following changes to getcwd.c have effect only when used in
78680         gnulib; they have no effect inside glibc proper.
78681         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
78682         as alloca isn't used.
78683         (alloca, __alloca): Likewise.
78684         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
78685         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
78686         unconditionally, as gnulib assumes C89 or better.
78687         Do not include <sys/param.h>.
78688         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
78689         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
78690         better.
78691         (NULL) [!defined NULL]: Remove; we assume C89 or better.
78692         Include <dirent.h> in a way that is compatible with modern Autoconf.
78693         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
78694         New macros, if not already defined.
78695         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
78696         Use "_LIBC", not "defined _LIBC", for consistency.
78697         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
78698         a mempcpy module.
78699         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
78700         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
78701         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
78702         credit only to Jim Meyering and adjust the copyright dates.
78703         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
78704         <stdlib.h>, <unistd.h>, "pathmax.h".
78705         Instead, include "xgetcwd.h" (first) and "getcwd.h".
78706         (INITIAL_BUFFER_SIZE): Remove.
78707         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
78708
78709 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
78710
78711         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
78712         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
78713         Use the _ONCE methods, for efficiency.
78714         Check for fcntl.h.  In test program, include <errno.h>
78715         and <fcntl.h> if available.  Remove old K&R cruft from
78716         test program.  Check for common errors in GNU/Linux,
78717         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
78718         don't do AC_LIBOBJ, as that's getcwd.m4's job.
78719         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
78720         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
78721         name accordingly.
78722         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
78723         accommodate new getcwd.c.
78724         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
78725         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
78726         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
78727         that's all we need now.
78728
78729 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78730
78731         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
78732         argp-parse.c depends on getopt internals, that means we should
78733         always use our getopt, to be on the safe side.
78734         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
78735         order not to spoil the result of an eventual previous invocation
78736         of gl_GETOPT_SUBSTITUTE.
78737
78738 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78739
78740         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
78741         redefinition warnings. To avoid them, include the defines
78742         in `#if !defined __need_getopt ... #endif'. The only place
78743         where __getopt_argv_const is used is in definitions
78744         of getopt_long and getopt_long_only below, which are as well
78745         protected by `#ifndef __need_getopt'.
78746         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
78747         __need_getopt after including <stdio.h> and <unistd.h> These
78748         headers might have defined it.
78749
78750 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
78751
78752         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
78753
78754 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
78755
78756         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
78757         (futimens): New function, which uses futimes if available.
78758         (futimens, utimens): Support timespec==NULL, with same semantics
78759         as utime and utimens.
78760         * lib/utimens.h (futimens): New decl.
78761
78762 2004-11-23  Jim Meyering  <jim@meyering.net>
78763
78764         * lib/getopt_.h: Remove trailing blanks.
78765
78766 2004-11-23  Jim Meyering  <jim@meyering.net>
78767
78768         * lib/__fpending.c: Add comment.
78769
78770 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
78771
78772         * modules/canonicalize (Depends-on): Add xreadlink.
78773         Problem reported by James Youngman.
78774
78775 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
78776
78777         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
78778         New macros.
78779         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
78780         optopt): Use them instead of invoking ## directly; otherwise, the
78781         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
78782
78783 2004-11-19  Bruno Haible  <bruno@clisp.org>
78784
78785         * lib/strtok_r.c: Move comments from here...
78786         * lib/strtok_r.h: ... to here.
78787
78788 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
78789
78790         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
78791         implementations that mishandle size_t overflow.
78792
78793 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
78794
78795         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
78796         might fail.  Problem reported by Yoann Vandoorselaere.
78797         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
78798         implementations that mishandle size_t overflow.
78799
78800 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
78801
78802         * modules/canon-host (Depends-on): Add strdup.
78803
78804 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
78805
78806         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
78807
78808 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
78809
78810         * lib/canon-host.c: Include "strdup.h".
78811         (canon_host): Use getaddrinfo if available, so that IPv6 works.
78812         Use strdup instead of malloc/strcpy to duplicate strings.
78813
78814         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
78815         (human_space_before_unit): New constant.
78816         * lib/human.c (human_readable): Support it.
78817
78818         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
78819         (xgetcwd): Set errno correctly when failing.
78820         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
78821         the failure is actually due to a PATH_MAX problem.
78822
78823         Further getopt changes to make it more likely that glibc will
78824         buy the changes back.
78825         * lib/getopt.c (POSIXLY_CORRECT): New constant.
78826         (getopt): Use it, so to preserve glibc semantic
78827         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
78828         when compiling for libc.
78829         * lib/getopt_.h (__getopt_argv_const): Bring it back.
78830         (getopt_long, getopt_long_only): Use it.
78831
78832         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
78833         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
78834         (getopt): Argv is now char * const *, as per standard.
78835         (_getopt_internal_r, _getopt_internal): Argv is now char **,
78836         not char *__getopt_argv_const *.
78837         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
78838         _getopt_long_only_r): Likewise.
78839         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
78840         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
78841         _getopt_long_r, _getopt_long_only_r): Likewise.
78842         * lib/getopt_.h (__getopt_argv_const): Remove.
78843         (getopt): Argv is now char * const *, as per standard.
78844
78845         * lib/getdate.y (tORDINAL): New token.
78846         (day, relunit): Allow it for relative times.
78847         (relative_time_table): Use tORDINAL for ordinals.
78848
78849 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
78850
78851         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
78852         Document that "second" isn't allowed as an ordinal number.
78853
78854 2004-11-16  Jim Meyering  <jim@meyering.net>
78855
78856         * modules/closeout (Depends-on): Add fpending.
78857
78858 2004-11-15  Jim Meyering  <jim@meyering.net>
78859
78860         * lib/closeout.c: Include "__fpending.h" once again.
78861         Include <stdbool.h>.
78862         (close_stdout): Don't fail just because stdout was closed initially,
78863         since some programs don't write to stdout in the normal course of
78864         operation (other than --version and --help), and we don't want this
78865         function to make e.g. `touch file >&-' fail.
78866         But do fail if it was closed and someone has tried to write to it.
78867         E.g., `printf foo >&-' must fail.
78868
78869 2004-11-13  Jim Meyering  <jim@meyering.net>
78870
78871         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
78872
78873 2004-11-12  Simon Josefsson  <jas@extundo.com>
78874
78875         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
78876         small doc fix is still pending.
78877
78878 2004-11-11  Simon Josefsson  <jas@extundo.com>
78879
78880         * modules/strtok_r: New file.
78881
78882         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
78883         strtok_r.
78884
78885 2004-11-11  Simon Josefsson  <jas@extundo.com>
78886
78887         * m4/strtok_r.m4: New file.
78888
78889         * m4/getopt.m4: Replace opterr.
78890
78891 2004-11-11  Simon Josefsson  <jas@extundo.com>
78892
78893         * lib/strtok_r.h, strtok_r.c: New file.
78894
78895 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
78896
78897         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
78898         of replacing opterr, getopt, etc.  This should handle the
78899         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
78900
78901 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
78902
78903         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
78904         we can stop lying to compilers about the constness of argv when we
78905         are compiled outside glibc.
78906         (getopt, getopt_long, getopt_long_only): Use it.
78907         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
78908         _getopt_internal, getopt): Likewise.
78909         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
78910         _getopt_long_only_r): Likewise.
78911         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
78912         _getopt_long_r, _getopt_long_only_r): Likewise.
78913
78914         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
78915         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
78916         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
78917         the other external symbols.
78918         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
78919         declaration, since the above renaming now works around collisions.
78920
78921 2004-11-11  Jim Meyering  <jim@meyering.net>
78922
78923         * lib/linebreak.c: Remove trailing blanks.
78924         * lib/alloca_.h: Likewise.
78925         * lib/acosl.c: Likewise.
78926         * lib/euidaccess.c: Likewise.
78927         * lib/allocsa.h: Likewise.
78928
78929 2004-11-10  Simon Josefsson  <jas@extundo.com>
78930
78931         * m4/getaddrinfo.m4: New file.
78932
78933 2004-11-10  Simon Josefsson  <jas@extundo.com>
78934
78935         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
78936
78937 2004-11-10  Simon Josefsson  <jas@extundo.com>
78938
78939         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
78940         getaddrinfo.
78941
78942         * modules/getaddrinfo: New file.
78943
78944 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
78945
78946         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
78947
78948 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
78949
78950         * lib/mktime.c (SHR): New macro, which is a portable
78951         substitute for >> that should work even on Crays.
78952         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
78953         Problem reported by Mark D. Baushke in
78954         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
78955         * lib/getdate.y (SHR): Likewise.
78956         (tm_diff): Use it.
78957         * lib/strftime.c (SHR): Likewise.
78958         (tm_diff): Use it.
78959         * lib/quotearg.c (struct quoting_options): Use unsigned int for
78960         quote_these_too, so that right shifts are well defined.  All uses
78961         changed.
78962
78963 2004-11-10  Jim Meyering  <jim@meyering.net>
78964
78965         Ensure that no close failure goes unreported.
78966         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
78967         return early when it seems there's nothing to flush.
78968         Don't include __fpending.h.
78969
78970 2004-11-10  Jim Meyering  <jim@meyering.net>
78971
78972         * modules/closeout (Depends-on): Remove fpending.
78973
78974 2004-11-10  Jim Meyering  <jim@meyering.net>
78975
78976         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
78977
78978 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
78979
78980         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
78981         gl_FUNC_STRFTIME.
78982         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
78983         and AC_REQUIRE when possible, to avoid duplicate checks.
78984         Check for <wchar.h>.
78985
78986 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
78987
78988         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
78989
78990 2004-11-09  Bruno Haible  <bruno@clisp.org>
78991
78992         * m4/sockpfaf.m4: New file.
78993
78994 2004-11-05  Bruno Haible  <bruno@clisp.org>
78995
78996         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
78997         Reported by Mark D. Baushke <mdb@cvshome.org>.
78998
78999 2004-11-04  Bruno Haible  <bruno@clisp.org>
79000
79001         2004-09-11  Bruno Haible  <bruno@clisp.org>
79002                 * allocsa.valgrind: New file.
79003         2004-02-06  Bruno Haible  <bruno@clisp.org>
79004                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
79005                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
79006                 Reported by Christopher Seip <chris.seip@hp.com>.
79007
79008 2004-11-04  Bruno Haible  <bruno@clisp.org>
79009
79010         * modules/allocsa (Files): Add lib/allocsa.valgrind.
79011         (Makefile.am): Distribute it.
79012
79013 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
79014
79015         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
79016         with errno == ERANGE if the buffer is too small.
79017         Problem reported by Mark D. Baushke.
79018
79019 2004-11-03  Albert Chin  <china@thewrittenword.com>
79020             Paul Eggert  <eggert@cs.ucla.edu>
79021
79022         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
79023         equivalent, substitute $ac_type for equivalent type rather than
79024         blindly using uint32_t *always* which won't work if uint32_t is not
79025         available.  Define _UINT32_T to work around typedef of uint32_t if
79026         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
79027         2.5.1.
79028
79029 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
79030
79031         * m4/jm-macros.m4: Sync from coreutils.
79032         (gl_MACROS): Check for mbrlen, for pathchk.
79033         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
79034
79035 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
79036
79037         * lib/xreadlink.c (MAXSIZE): New macro.
79038         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
79039         size does not exceed MAXSIZE.  Avoid cast.
79040         As suggested by Mark D. Baushke in
79041         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
79042         if readlink fails with buffer size just under MAXSIZE, try again
79043         with MAXSIZE.
79044
79045 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
79046
79047         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
79048
79049 2004-11-02  Derek R. Price  <derek@ximbiot.com>
79050         and  Paul Eggert  <eggert@cs.ucla.edu>
79051
79052         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
79053         (get_date): Overparenthesize to avoid GCC warning.
79054
79055 2004-11-02  Bruno Haible  <bruno@clisp.org>
79056
79057         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
79058         returns void.
79059
79060 2004-11-02  Bruno Haible  <bruno@clisp.org>
79061
79062         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
79063         function returns void.
79064
79065 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
79066
79067         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
79068         fflush_unlocked, flockfile, funlockfile, funlockfile,
79069         fputs_unlocked, putc_unlocked.
79070
79071 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
79072
79073         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
79074         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
79075         already declared.
79076
79077 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
79078
79079         * modules/getdate (Files): Add doc/getdate.texi.
79080         (Depends-on): Add setenv, xalloc.
79081
79082 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
79083
79084         * lib/getdate.y: Add support for TZ="foo" within a date string.
79085         Fix some bugs near time_t boundaries.  Reject dates with
79086         out-of-range components, e.g., "Sept 31".
79087         Include <stdlib.h>, "setenv.h", "xalloc.h".
79088         (ISDIGIT_LOCALE): Remove; unused.
79089         Note that the TZ and time functions used here are not reentrant.
79090         (mktime_ok, get_tz): New functions.
79091         (TZBUFSIZE): New constant.
79092         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
79093         This requires that we sometimes generate our own TZ="XXX..." setting.
79094
79095 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
79096
79097         * doc/getdate.texi: New file, from coreutils with modifications for
79098         the new TZ parsing.
79099
79100 2004-10-27  Derek R. Price  <derek@ximbiot.com>
79101
79102         * lib/mktime.c (not_equal_tm): Remove redundant check.
79103
79104 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
79105
79106         * modules/regex (lib_SOURCES): Add regex.c.
79107         Reported by James Youngman in
79108         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
79109
79110 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
79111
79112         * lib/getdate.y: Use Bison 1.875 features, and some minor
79113         code cleanups.  This change does not affect semantics.
79114         Don't include <stdlib.h>; no longer needed.
79115         Don't include unlocked-io.h; only the "#if TEST" code uses
79116         stdio, and performance isn't crucial there.
79117         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
79118         Bison 1.875 features as described below.
79119         All uses of "PC." replaced by "pc->".
79120         (YYSTYPE): Add a forward declaration.
79121         (yylex, yyerror): Use full prototypes in forward decls.
79122         Use "%pure-parser" rather than obsolescent "%pure_parser".
79123         Use %parse-param and %lex-param instead of obsolescent
79124         YYPARSE_PARAM and YYLEX_PARAM.
79125         (meridian_table, month_and_day_table, time_units_table,
79126         relative_time_table, time_zone_table, military_table,
79127         lookup_zone, lookup_word, get_date):
79128         Use NULL instead of 0 where appropriate.
79129         (to_hour): Avoid abort (), to avoid a dependency on
79130         stdlib.h.
79131         (yyerror, yylex): Now accepts parser_control * arg.
79132         (main) [TEST]: Use '\0' rather than 0 for char.
79133
79134 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
79135
79136         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
79137
79138 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
79139
79140         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
79141         It's now the caller's responsibility to handle the case where
79142         !HAVE_GETPAGESIZE && !defined getpagesize.
79143
79144         * lib/mktime.c (leapyear): Arg is long int, not int.
79145
79146 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
79147
79148         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
79149
79150 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
79151
79152         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
79153         missing.  Problem reported by James Youngman.
79154
79155 2004-10-16  Simon Josefsson  <jas@extundo.com>
79156
79157         * gnulib-tool: Fix comments.  Fix parse problem.
79158         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
79159
79160 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
79161
79162         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
79163         implementation of getopt_long.  Problem reported by Alexander Taler in:
79164         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
79165
79166 2004-10-15  Bruno Haible  <bruno@clisp.org>
79167
79168         * gnulib-tool: Untabify. Initialize supplied_libname.
79169         (func_usage): More homogenous output.
79170         (func_modules_transitive_closure, func_modules_to_filelist,
79171         func_emit_lib_Makefile_am): New functions.
79172         (func_import): New function, extracted from big case statement. Use
79173         func_get_license, func_modules_transitive_closure,
79174         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
79175         opt_lgpl. Don't use test -a, as it's not portable.
79176         (func_create_testdir): Use func_modules_transitive_closure,
79177         func_modules_to_filelist, func_emit_lib_Makefile_am.
79178
79179 2004-10-15  Bruno Haible  <bruno@clisp.org>
79180
79181         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
79182
79183 2004-10-15  Bruno Haible  <bruno@clisp.org>
79184
79185         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
79186         the portions belonging to each module.
79187         Suggested by Derek Robert Price <derek@ximbiot.com>.
79188
79189 2004-10-12  Simon Josefsson  <jas@extundo.com>
79190
79191         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
79192         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
79193         to real functions.
79194
79195 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79196
79197         * modules/vsnprintf: New file.
79198
79199 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79200
79201         * m4/vsnprintf.m4: New file.
79202
79203 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79204
79205         * lib/vsnprintf.h: New file.
79206         * lib/vsnprintf.c: New file.
79207
79208 2004-10-11  Bruno Haible  <bruno@clisp.org>
79209
79210         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
79211         vsnprintf.
79212
79213 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
79214
79215         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
79216
79217 2004-10-07  Bruno Haible  <bruno@clisp.org>
79218
79219         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
79220         fits into the provided buffer.
79221
79222 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
79223
79224         * lib/diacrit.c, diacrit.h: Add GPL notice.
79225
79226         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
79227         notice.
79228         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
79229         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
79230         This avoids a potential constant-folding bug.
79231
79232 2004-10-05  Bruno Haible  <bruno@clisp.org>
79233
79234         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
79235         for the declaration of strsep.
79236
79237 2004-10-05  Bruno Haible  <bruno@clisp.org>
79238
79239         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
79240
79241 2004-10-04  Simon Josefsson  <jas@extundo.com>
79242
79243         * modules/memmem: New file.
79244         * tests/test-memmem.c: New file.
79245         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
79246
79247 2004-10-04  Simon Josefsson  <jas@extundo.com>
79248
79249         * m4/memmem.m4: New file.
79250
79251 2004-10-04  Simon Josefsson  <jas@extundo.com>
79252
79253         * lib/memmem.h: New file.
79254         * lib/memmem.c: New file, taken from glibc.
79255
79256 2004-10-04  Simon Josefsson  <jas@extundo.com>
79257
79258         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
79259         '#ifdef USE_UNLOCKED_IO'.
79260
79261 2004-10-04  Simon Josefsson  <jas@extundo.com>
79262
79263         * config/srclist.txt: Add memmem from glibc.
79264
79265 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
79266
79267         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
79268
79269         * modules/argmatch, modules/argp, modules/closeout, modules/error,
79270         modules/exclude, modules/getdate, modules/getline,
79271         modules/getndelim2, modules/getpass, modules/getpass-gnu,
79272         modules/getusershell, modules/linebuffer, modules/md5,
79273         modules/mountlist, modules/posixtm, modules/readtokens,
79274         modules/readutmp, modules/regex, modules/sha1,
79275         modules/version-etc, modules/yesno:
79276         Remove dependency on unlocked-io.
79277
79278 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
79279
79280         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
79281
79282         * m4/unlocked-io.m4: Add copyright notice.
79283         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
79284
79285 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
79286
79287         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
79288         * lib/xmalloc.c (xmemdup): Likewise.
79289         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
79290         XFREE): Remove these long-obsolescent macros.
79291         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
79292         * lib/xstrdup.c: Remove.
79293
79294         * lib/regex.c (re_comp): Cast gettext return value to char *,
79295         Problem reported by Martin Neitzel via Mark D. Baushke.
79296
79297 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
79298
79299         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
79300         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
79301         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
79302         regex.c, sha1.c, version-etc.c, yesno.c:
79303         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
79304         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
79305         the includer's responsibility.
79306
79307         Sync from coreutils.
79308
79309         * lib/modechange.c (mode_compile): Don't decrement a pointer that
79310         points to the start of a string, as the C Standard says the
79311         resulting behavior is undefined.
79312
79313         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
79314         simple -> simple_backups, numbered_existing ->
79315         numbered_existing_backups, numbered -> numbered_backups
79316         to avoid shadowing problems.  All uses changed.
79317         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
79318         * lib/backupfile.c (check_extension, numbered_backup):
79319         Rename locals to avoid shadowing 'basename'.
79320         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
79321         once.
79322
79323         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
79324         * lib/.cvsignore: Add getopt.h.
79325
79326 2004-10-04  Bruno Haible  <bruno@clisp.org>
79327
79328         * modules/README: New file.
79329         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
79330         not a module.
79331
79332 2004-10-02  Jim Meyering  <jim@meyering.net>
79333
79334         * lib/dirfd.h, getpagesize.h: Add copyright notice.
79335
79336 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79337
79338         * modules/strsep: New file.
79339
79340 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79341
79342         * m4/strsep.m4: New file.
79343
79344 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79345
79346         * lib/strsep.h: New file.
79347         * lib/strsep.c: New file.
79348
79349 2004-10-01  Simon Josefsson  <jas@extundo.com>
79350
79351         * lib/snprintf.c (snprintf): Handle size==0.
79352
79353 2004-10-01  Simon Josefsson  <jas@extundo.com>
79354             Bruno Haible  <bruno@clisp.org>
79355
79356         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
79357         (snprintf): Declare 'args'.
79358
79359 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
79360
79361         * lib/snprintf.c: Remove comments as to why each header is needed.
79362
79363 2004-10-01  Bruno Haible  <bruno@clisp.org>
79364
79365         * MODULES.html.sh: Add strsep.
79366
79367 2004-09-30  Simon Josefsson  <jas@extundo.com>
79368
79369         * modules/snprintf: New file.
79370
79371 2004-09-30  Simon Josefsson  <jas@extundo.com>
79372
79373         * m4/snprintf.m4: New file.
79374
79375 2004-09-30  Simon Josefsson  <jas@extundo.com>
79376
79377         * lib/snprintf.h, lib/snprintf.c: New files.
79378
79379 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79380
79381         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
79382         (hol_entry_help): Never translate an empty string.
79383         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
79384         * lib/argp.h (OPTION_NO_TRANS): New option.
79385
79386 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
79387
79388         * modules/argp (Maintainer): Replace Simon Josefsson
79389         by Sergey Poznyakoff.
79390
79391 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
79392
79393         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
79394         changes merged back into glibc.
79395
79396 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
79397
79398         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
79399
79400 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
79401
79402         * lib/xvasprintf.c: Include xalloc.h.
79403         (xvasprintf): Use xalloc_die, not xmalloc_die.
79404
79405 2004-09-29  Bruno Haible  <bruno@clisp.org>
79406
79407         * modules/alloca-opt: New file, derived from modules/alloca.
79408         * modules/allocsa: Depend on alloca-opt instead of alloca.
79409         * modules/setenv: Likewise.
79410         * modules/vasnprintf: Likewise.
79411         * MODULES.html.sh: Add alloca-opt.
79412
79413 2004-09-28  Simon Josefsson  <jas@extundo.com>
79414
79415         * gnulib-tool: New parameter --lgpl, to asseert that modules are
79416         LGPL, and to replace license template from GPL to LGPL.
79417
79418 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
79419
79420         * modules/dummy: Change license to LGPL.
79421
79422 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
79423
79424         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
79425
79426 2004-09-24  Simon Josefsson  <jas@extundo.com>
79427
79428         * modules/minmax (License): Change from GPL to LGPL.
79429
79430 2004-09-23  Simon Josefsson  <jas@extundo.com>
79431
79432         * gnulib-tool (--import): Typo.
79433
79434 2004-09-23  Simon Josefsson  <jas@extundo.com>
79435
79436         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
79437
79438 2004-09-22  Bruno Haible  <bruno@clisp.org>
79439
79440         * modules/*: Add 'License' field.
79441         * gnulib-tool: Accept --extract-license option.
79442         (func_get_license): New function.
79443
79444 2004-09-21  Bruno Haible  <bruno@clisp.org>
79445
79446         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
79447         Reported by Simon Josefsson.
79448
79449 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
79450
79451         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
79452         gl_AC_TYPE_LONG_LONG.
79453
79454 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
79455
79456         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
79457
79458 2004-09-18  Simon Josefsson  <jas@extundo.com>
79459         and  Paul Eggert  <eggert@cs.ucla.edu>
79460
79461         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
79462         calls with autoreconf.  Define GL_LIB.
79463
79464 2004-09-14  Karl Berry  <karl@gnu.org>
79465
79466         * config/srclist.txt: unsync setenv.c, sigh.
79467
79468 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
79469
79470         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
79471         Problem reported by Bruno Haible in:
79472         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
79473
79474 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
79475
79476         * config/srclist.txt: Comment out argp-pvh.c.
79477
79478 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
79479
79480         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
79481         in case some system header has #define'd it.  Problem reported by
79482         Soeren D. Schulze in
79483         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
79484
79485 2004-09-09  Karl Berry  <karl@gnu.org>
79486
79487         * regex.[ch]: delete from the root.  These were supposed to be
79488                 synced with emacs cvs, but this has not happened for about
79489                 a year, and anyway nothing else uses emacs regex.[ch].
79490                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
79491                 lib/regex[.ch] is untouched.
79492
79493 2004-09-09  Bruno Haible  <bruno@clisp.org>
79494
79495         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
79496
79497 2004-09-09  Bruno Haible  <bruno@clisp.org>
79498
79499         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
79500         modifications.
79501         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
79502
79503 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
79504
79505         * modules/xvasprintf: New file.
79506         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
79507
79508 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
79509
79510         * lib/xvasprintf.h: New file.
79511         * lib/xvasprintf.c: New file.
79512         * lib/xasprintf.c: New file.
79513
79514 2004-09-08  Bruno Haible  <bruno@clisp.org>
79515
79516         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
79517
79518 2004-09-08  Bruno Haible  <bruno@clisp.org>
79519
79520         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
79521         length is > INT_MAX.
79522         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
79523         more.
79524
79525 2004-09-08  Bruno Haible  <bruno@clisp.org>
79526
79527         * lib/stdint_.h: New file, taken from GNU clisp.
79528
79529 2004-09-08  Bruno Haible  <bruno@clisp.org>
79530             Oskar Liljeblad  <oskar@osk.mine.nu>
79531
79532         * modules/stdint: New file.
79533         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
79534
79535 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
79536
79537         Import from coreutils.
79538         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
79539         strings on unbounded length.  alloca's performance benefits aren't
79540         that important here.
79541         (V_STRDUP): Remove.
79542         (parse_with_separator): New function, with most of the internals
79543         of the old parse_user_spec.  Allow user to omit both user and group,
79544         for compatibility with FreeBSD.
79545         Clone only the user name, not the entire spec.
79546         Do not set *uid, *gid unless entirely successful.
79547         Avoid memory leak in some failing cases.
79548         Fix regression for USER.GROUP reported by Dmitry V. Levin in
79549         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
79550         (parse_user_spec): Rewrite to use parse_with_separator.
79551
79552 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
79553
79554         * modules/userspec: Don't depend on alloca.
79555
79556 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
79557
79558         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
79559
79560 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
79561
79562         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
79563         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
79564         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
79565
79566 2004-08-16  Simon Josefsson  <jas@extundo.com>
79567
79568         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
79569         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
79570         Add --dry-run for --import.
79571         Let user provided command line parameters override configure.ac
79572         settings.
79573
79574 2004-08-12  Simon Josefsson  <jas@extundo.com>
79575
79576         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
79577         as discussed with Paul Eggert in threads rooted at
79578         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
79579         and
79580         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
79581         Before, the test was empty, and relied on ELIDE_CODE in source
79582         code.)
79583         (gl_PREREQ_GETOPT): New macro.
79584         (gl_GETOPT): Use them.
79585
79586 2004-08-12  Simon Josefsson  <jas@extundo.com>
79587
79588         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
79589         * lib/getopt_.h: Renamed from getopt.h.
79590
79591 2004-08-12  Simon Josefsson  <jas@extundo.com>
79592
79593         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
79594         Change default library name from libfoo to libgnu.
79595         Now, if you have a configure.ac that says:
79596                 gl_SOURCE_BASE(gl)
79597                 gl_M4_BASE(gl/m4)
79598                 gl_MODULES(error getopt etcetera)
79599                 gl_INIT
79600         you can import all you need by running:
79601                 ../gnulib/gnulib-tool --import
79602
79603         * modules/getopt (Files): Rename getopt.h to getopt_.h.
79604         (Makefile.am): Rewrite, use logic from argz.
79605         (Include): Use <getopt.h> instead of "getopt.h".
79606
79607 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
79608
79609         * modules/argp (Files): Add m4/unlocked-io.m4.
79610         (Depends-on): Add extensions.
79611
79612 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
79613
79614         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
79615         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
79616         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
79617         Check for program_invocation_name, program_invocation_short_name,
79618         flockfile, funlockfile, features.h, _getopt_long_only_r.
79619
79620 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
79621
79622         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
79623         its complicated substitute.
79624         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
79625         and program_invocation_name.
79626         (__argp_basename) [!_LIBC]: Remove; the only use was
79627         replaced by its body.
79628         (__argp_short_program_name): Change condition from
79629         !defined __argp_short_program_name to
79630         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
79631         to match argp-namefrob.h.
79632         (__argp_failure): Don't assume strerror_r returns char *.
79633         * lib/argp-parse.c (N_): Define unconditionally.
79634         (argp_default_options): Fill out initializers with 0 to avoid
79635         gcc warnings.
79636
79637 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
79638
79639         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
79640         getopt1.c.
79641
79642 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
79643
79644         Merge from coreutils.
79645
79646         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
79647
79648         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
79649         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
79650
79651 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
79652
79653         Merge from coreutils.
79654
79655         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
79656         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
79657         for Reliant Unix 5.43.
79658
79659         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
79660         (union fooround): Use uintmax_t, not long int.
79661         The rest is a merge from libc:
79662         [defined _LIBC]: Include <shlib-compat.h>.
79663         (_obstack) [defined _LIBC]: Remove after 2.3.4.
79664
79665         * lib/settime.c (settime): Recode to avoid warning with
79666         Sun Forte C 6U2.
79667
79668         * lib/strverscmp.c: Convert to UTF-8.
79669
79670 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
79671
79672         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
79673         m4/uintmax_t.m4.
79674
79675 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
79676
79677         * modules/xalloc-die: New file.
79678         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
79679
79680         * modules/md5 (Files): Add m4/uint32_t.m4.
79681         * modules/sha1: Renamed from modules/sha.
79682         (Files):
79683         Rename lib/sha.h to lib/sha1.h.
79684         Rename lib/sha.c to lib/sha1.c.
79685         Rename m4/sha.m4 to m4/sha1.m4.
79686         (lib_SOURCES): Likewise.
79687         (configure.ac): Rename gl_SHA to gl_SHA1.
79688         (Include): sha.h -> sha1.h.
79689
79690 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
79691
79692         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
79693         * m4/sha1.m4: Renamed from sha.m4.
79694         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
79695
79696 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
79697
79698         * lib/obstack.h (obstack_empty_p):
79699         Don't assume that chunk->contents is suitably aligned.
79700         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
79701         Likewise. Problem reported by Benno in
79702         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
79703
79704         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
79705         readable.  This could be improved further but it'd take some work.
79706
79707 2004-08-08  Simon Josefsson  <jas@extundo.com>
79708
79709         * modules/xgethostname (Depends-on): Remove exit and error (not
79710         used).
79711
79712         * modules/getpass-gnu: Add getpass.h.
79713         (Depends-on): Add stdbool.
79714         * modules/getpass: Add getpass.h.
79715
79716 2004-08-08  Simon Josefsson  <jas@extundo.com>
79717
79718         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
79719         Check getpass declaration.
79720
79721 2004-08-08  Simon Josefsson  <jas@extundo.com>
79722
79723         * lib/xgethostname.c: Don't include error.h (not used).
79724
79725         * lib/getpass.h: Add.
79726         * lib/getpass.c: Include getpass.h first.
79727
79728 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
79729
79730         * lib/xalloc-die.c: New file.
79731         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
79732         All uses removed.
79733         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
79734         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
79735         xalloc-die.c.
79736         (_, N_, xalloc_die): Move to xalloc-die.c.
79737         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
79738         so that we needn't mess with xalloc_msg_memory_exhausted.
79739
79740         * lib/sha1.h: Renamed from sha.h.
79741         (SHA1_H): Renamed from _SHA_H.
79742         (sha1_ctx): Renamed from sha_ctx.
79743         (sha1_init_ctx): Renamed from sha_init_ctx.
79744         (sha1_process_block): Renamed from sha_process_block.
79745         (sha1_process_bytes): Renamed from sha_process_bytes.
79746         (sha1_finish_ctx): Renamed from sha_finish_ctx.
79747         (sha1_read_ctx): Renamed from sha_read_ctx.
79748         (sha1_stream): Renamed from sha_stream.
79749         (sha1_buffer): Renamed from sha_buffer.
79750         * lib/sha1.c: Likewise; renamed from sha.c.
79751         Do not include <sys/types.h>.
79752         Include <stddef.h> rather than <stdlib.h>.
79753
79754 2004-08-08  Bruno Haible  <bruno@clisp.org>
79755
79756         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
79757         FILESYSTEM_PREFIX_LEN.
79758         * lib/progreloc.c: Likewise.
79759         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
79760
79761 2004-08-06  Simon Josefsson  <jas@extundo.com>
79762
79763         * modules/progname (Depends-on): Don't depend on stdbool.
79764
79765 2004-08-06  Simon Josefsson  <jas@extundo.com>
79766
79767         * modules/getsubopt: New file.
79768         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
79769         getsubopt.
79770
79771 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
79772
79773         More merge from coreutils.
79774
79775         * m4/utimens.m4, m4/utimecmp.m4: New files.
79776         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
79777         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
79778         prereq.m4, sha.m4: Import changes from coreutils.
79779
79780 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
79781
79782         More merge from coreutils.
79783         * modules/raise, modules/readtokens0, modules/utimens:
79784         * modules/utimecmp, module/xnanosleep: New files.
79785         * modules/strftime: Add lib/strftime.h.
79786         Change include from <time.h> to "strftime.h".
79787         * modules/yesno: Add lib/yesno.h.
79788         * modules/backupfile: Remove lib/addext.c.
79789         * modules/euidaccess: Add stat-macros.h.
79790         * modules/canonicalize, modules/euidaccess,
79791         modules/filemode, modules/lchown, modules/makepath,
79792         modules/rmdir, modules/stat: Likewise.
79793
79794 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
79795
79796         Merge from tar.
79797         * lib/argp-help.c (make_hol, hol_append): Don't assume that
79798         SIZE_MAX is a valid preprocessor constant.
79799         (__argp_basename): Change from "#ifndef _LIBC"
79800         to "#ifndef __argp_short_program_name", so that
79801         we don't compile these functions for tar.
79802
79803         More merges from coreutils.
79804         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
79805         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
79806         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
79807         * lib/addext.c: Remove; no longer needed.
79808         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
79809         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
79810         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
79811         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
79812         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
79813         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
79814         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
79815         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
79816         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
79817         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
79818         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
79819         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
79820         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
79821         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
79822         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
79823         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
79824         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
79825         Import changes from coreutils.
79826
79827 2004-08-05  Simon Josefsson  <jas@extundo.com>
79828
79829         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
79830
79831 2004-08-05  Simon Josefsson  <jas@extundo.com>
79832
79833         * m4/getsubopt.m4: New file.
79834
79835 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
79836
79837         Merge from coreutils.
79838
79839         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
79840         * m4/getcwd-path-max.m4: New files.
79841
79842         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
79843         FILESYSTEM_PREFIX_LEN ->
79844         FILE_SYSTEM_PREFIX_LEN.
79845         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
79846         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
79847         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
79848         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
79849
79850         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
79851         prerequisite modules now handle the DOS stuff.
79852         Don't check for unistd.h.
79853
79854 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
79855
79856         Merge from coreutils.
79857
79858         * lib/.gdb-history: Remove; this doesn't belong here.
79859
79860         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
79861         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
79862         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
79863         * lib/getcwd.c: New files.
79864
79865         * lib/dirname.h: Include <stdbool.h>.
79866         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
79867         for consistency with POSIX terminology.  All uses changed.
79868         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
79869         (strip_trailing_slashes): Use bool for booleans.
79870         * lib/stripslash.c (strip_trailing_slashes): Likewise.
79871
79872         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
79873         sometimes returns a positive errno value even when it succeeds.
79874         (print_errno_message) [!LIBC]: Fall back on strerror if
79875         __strerror_r fails.
79876
79877         * lib/path-concat.c (mempcpy): Don't define if a system header defines
79878         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
79879         (longest_relative_suffix): New function.
79880         (path_concat): Use it.  Assume first argument is not NULL.
79881         Port to DOS.  Omit redundant separators.
79882         Report an error instead of returning NULL.
79883         Use mempcpy instead of memcpy.
79884         (xpath_concat): Remove: not declared or used.
79885
79886         * lib/same.h: Include <stdbool.h>
79887         (same_name): Return bool, not int.
79888         * lib/same.c (same_name): Likewise.
79889         (errno): Don't declare; we assume C89 or better now.
79890
79891         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
79892         if not already defined.
79893
79894         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
79895         * lib/dup-safer.c (errno): Likewise.
79896
79897 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
79898
79899         Merge from coreutils.
79900         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
79901         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
79902         * modules/path-concat: Don't depend on strdup.
79903
79904 2004-08-03  Simon Josefsson  <jas@extundo.com>
79905
79906         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
79907         * lib/progname.h: Don't include stdbool.h.
79908
79909 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
79910
79911         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
79912         * MODULES.html.sh (func_all_modules): Remove fatal.
79913
79914 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
79915
79916         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
79917
79918 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
79919
79920         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
79921         working.
79922
79923 2004-08-02  Simon Josefsson  <jas@extundo.com>
79924
79925         * lib/getsubopt.h: New file, with comments from Bruno Haible.
79926         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
79927         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
79928
79929 2004-08-01  Simon Josefsson  <jas@extundo.com>
79930
79931         * lib/xgetdomainname.c: Include stdlib.h, for free().
79932
79933 2004-07-19  Bruno Haible  <bruno@clisp.org>
79934
79935         * MODULES.html.sh (func_all_modules): Add dummy.
79936
79937 2004-07-16  Simon Josefsson  <jas@extundo.com>
79938
79939         * modules/dummy: New file.
79940
79941 2004-07-16  Simon Josefsson  <jas@extundo.com>
79942
79943         * lib/dummy.c: New file.
79944
79945 2004-07-16  Bruno Haible  <bruno@clisp.org>
79946
79947         * lib/backupfile.h: Add extern "C" for C++.
79948         * lib/closeout.h: Likewise.
79949         * lib/copy-file.h: Likewise.
79950         * lib/findprog.h: Likewise.
79951         * lib/full-write.h: Likewise.
79952         * lib/pathname.h: Likewise.
79953         * lib/progname.h: Likewise.
79954         * lib/stpcpy.h: Likewise.
79955         * lib/stpncpy.h: Likewise.
79956         * lib/strcase.h: Likewise.
79957         * lib/strstr.h: Likewise.
79958         * lib/xalloc.h: Likewise.
79959
79960         * lib/mbswidth.h: Add extern "C" for C++.
79961         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
79962
79963 2004-07-13  Robert Millan  <robertmh@gnu.org>
79964
79965         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
79966
79967 2004-07-09  Simon Josefsson  <jas@extundo.com>
79968
79969         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
79970         failed without this.)
79971
79972 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
79973
79974         * modules/chown (Files): Add lib/fchown-stub.c, since
79975         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
79976
79977 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
79978
79979         * lib/fchown-stub.c: New file.
79980
79981 2004-06-24  Jim Meyering  <jim@meyering.net>
79982
79983         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
79984
79985 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
79986
79987         * modules/argz: Omit "#include".
79988
79989         * MODULES.html.sh (func_all_modules): Add calloc, to match
79990         2004-06-01 addition of calloc module.
79991
79992 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
79993
79994         * m4/argz.m4: New file, which is autoupdated from libtool.
79995
79996 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
79997
79998         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
79999         libtool.
80000
80001 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
80002
80003         * config/srclist-update: Don't insist on "USA." before the
80004         close-comment, as libtool omits the period and puts the */ on a
80005         separate line.
80006         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
80007         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
80008
80009 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
80010
80011         * modules/argz: New file.
80012         * MODULES.html.sh (func_all_modules): Add argz.
80013
80014 2004-06-12  Jim Meyering  <jim@meyering.net>
80015         and  Paul Eggert  <eggert@cs.ucla.edu>
80016
80017         * modules/hash (Files): Add lib/xalloc.h.
80018         * modules/pipe (Depends-on): Add wait-process.
80019         * modules/stat (Depends-on): Add xalloc.
80020         * modules/userspec (Files): Add lib/userspec.h.
80021         * modules/xstrto
80022
80023         Upgrade from gettext-0.13.
80024         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
80025         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
80026         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
80027
80028 2004-06-10  Jim Meyering  <jim@meyering.net>
80029
80030         * lib/calloc.c: New file.
80031
80032 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
80033
80034         * lib/getdate.y (yylex): Allow space between sign and number.
80035         Problem reported by Dan Jacobson.
80036
80037 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
80038
80039         Merge from coreutils CVS.
80040
80041         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
80042         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
80043         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
80044         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
80045         xstrtol.m4: Fix copyright date and/or serial number.
80046
80047         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
80048         See if we need an fchown replacement.
80049         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
80050         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
80051         and use the replacement function if we detect either defect.
80052
80053         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
80054         gl_UTIMECMP.
80055
80056 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
80057         and  Jim Meyering  <jim@meyering.net>
80058
80059         Merge from coreutils CVS.
80060
80061         * lib/stat-macros.h: New file, with contents from file-type.h
80062         and coreutils' system.h.
80063         * lib/file-type.c: Include "stat-macros.h".
80064         * lib/file-type.h (file_type): Move all macro definitions to new file,
80065         stat-macros.h.
80066
80067         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
80068         Wrap old code with this conditional.
80069         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
80070         function that does not dereference symlinks.
80071         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
80072
80073         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
80074         dependency problems.
80075         (xreadlink): Accept new arg SIZE, for efficiency.
80076         All decls and uses changed.
80077         * lib/xreadlink.h: Include <stddef.h>, for size_t.
80078
80079         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
80080         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
80081
80082         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
80083         sysexits.h.
80084
80085 2004-06-01  Jim Meyering  <jim@meyering.net>
80086
80087         * m4/calloc.m4: New file.
80088
80089 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
80090
80091         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
80092         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
80093         Also, fix a typo in a diagnostic.
80094
80095 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
80096
80097         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
80098         or AC_FUNC_REALLOC.
80099
80100 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
80101
80102         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
80103         macros to be defined.
80104         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
80105         the allocator returns NULL because the requested size is zero.
80106
80107 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
80108
80109         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
80110         var.  Add comment explaining why libc still defines it.  This
80111         merges the following patch from glibc:
80112         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
80113
80114 2004-05-20  Andreas Schwab  <schwab@suse.de>
80115
80116         * m4/free.m4: Replace free if it not known to work, not the other
80117         way round.
80118
80119 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
80120
80121         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
80122         present in glibc since revision 1.1 of this file.
80123         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
80124         obstack_alignment_mask, obstack_alloc, obstack_base,
80125         obstack_blank, obstack_blank_fast, obstack_chunk_size,
80126         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
80127         obstack_grow0, obstack_init, obstack_int_grow,
80128         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
80129         obstack_next_free, obstack_object_size, obstack_ptr_grow,
80130         obstack_ptr_grow_fast, obstack_room): Remove declarations of
80131         nonexistent functions.
80132
80133 2004-05-18  Karl Berry  <karl@gnu.org>
80134
80135         * config/srclist.txt: break link for vasnprintf.c.
80136
80137 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
80138
80139         Port obstack to the AS/400, where pointers are 16 bytes wide and
80140         you cannot cast an integer to a valid pointer.  This patch is
80141         currently waiting to be integrated into glibc; see
80142         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
80143
80144         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
80145         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
80146         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
80147         (struct obstack): temp member is now a union of a pointer and
80148         an integer, instead of an integer.  All integer uses changed.
80149         This does not affect the physical layout of struct obstack,
80150         except on hosts (like the AS/400) where the size or alignment of
80151         void * is greater than that of ptrdiff_t.
80152         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
80153         __STDC__)]: Store temporary in pointer member of union, not
80154         integer member.
80155         * lib/obstack.c: Include <stddef.h>, for offsetof.
80156         (struct fooalign): Remove; it doesn't need a name.
80157         (union fooround): Change double to long double, and add void *.
80158         (DEFAULT_ALIGNMENT): Use offsetof to compute.
80159         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
80160         not a macro.  Hence the values are always int; so remove all
80161         casts-to-int in uses.
80162
80163 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
80164
80165         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
80166         we can get this patch merged into glibc.
80167
80168 2004-05-17  Derek R. Price  <derek@ximbiot.com>
80169             Paul Eggert  <eggert@cs.ucla.edu>
80170
80171         * m4/argp: Depend on alloca.
80172
80173 2004-05-17  Derek R. Price  <derek@ximbiot.com>
80174             Paul Eggert  <eggert@cs.ucla.edu>
80175
80176         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
80177         freecoding.
80178
80179 2004-05-17  Bruno Haible  <bruno@clisp.org>
80180
80181         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
80182         precision that consists of a '.' followed by an empty digit string.
80183         Patch by Tor Lillqvist <tml@iki.fi>.
80184
80185 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
80186
80187         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
80188         for backward compatibility with older code.  We need our own
80189         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
80190         it under some other name, and our alloca.h will define it.
80191
80192 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
80193             Derek Price  <derek@ximbiot.com>
80194
80195         * lib/alloca.c: Include <alloca.h>, to get our interface.
80196         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
80197         include <alloca.h> first.  Use C89 prototype for alloca; this
80198         requires including <stddef.h> for size_t.  Use extern "C" if C++.
80199         Use #elif for simplicity, since we can assume C89 now.
80200         Don't try to source the system alloca.h since it will not be found
80201         and to prevent recursively including its replacement.
80202         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
80203         * lib/regex.c: Likewise.
80204
80205 2004-05-16  Derek Price  <derek@ximbiot.com>
80206             Paul Eggert  <eggert@cs.ucla.edu>
80207
80208         getline cleanup.  This changes the getndelim2 API: both order of
80209         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
80210         no delimiter).
80211
80212         * lib/getline.c: Don't include stddef.h or stdio.h, since our
80213         interface does that.
80214         (getline): Always use getdelim, so that we don't have two
80215         copies of this code.
80216         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
80217         if available.
80218         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
80219         (GETNDELIM2_MAXIMUM): New macro.
80220         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
80221         instead of the old practice of delim2==0.  All callers changed.
80222         Return -1 on overflow, instead of returning junk.
80223         Do not set *linesize unless allocation succeeds.
80224         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
80225         that we include sys/types.h.
80226         * lib/getnline.h: Likewise.
80227         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
80228         (getndelim2): Reorder arguments.
80229         * lib/getnline.c (getnline, getndelim):
80230         Don't discard the NMAX argument.
80231         (getnline): Invoke getndelim, to avoid code duplication.
80232         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
80233         of (size_t) -1 by callers of the getnline family.
80234
80235 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
80236
80237         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
80238         Check for gettimeofday.
80239         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
80240         Check for settimeofday, stime.
80241
80242 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
80243
80244         * lib/nanosleep.c (suspended): Change its type from int to
80245         sig_atomic_t volatile.
80246         (first_call): Make it private to rpl_nanosleep, and have it
80247         be zero initially as that's a bit faster.
80248         (my_usleep): Round up fractional times instead of truncating them,
80249         as this is the usual meaning for 'sleep'.
80250
80251         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
80252         doesn't work.
80253         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
80254         (ENOSYS): Define if not defined.
80255         (settime): Fall back on stime if it exists and settimeofday fails.
80256         But don't bother with fallbacks if a method fails with errno == EPERM.
80257
80258 2004-05-11  Jim Meyering  <jim@meyering.net>
80259
80260         Prior to this change, the save_cwd caller required read access to the
80261         current directory on most systems (ones with the fchdir function).
80262
80263         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
80264         fails, try write-only, and finally, resort to using xgetcwd.
80265
80266 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
80267
80268         * lib/obstack.c, obstack.h: Import changes from libc.
80269
80270 2004-04-28  Bruno Haible  <bruno@clisp.org>
80271
80272         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
80273         also implicitly appends .exe to executables.
80274         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
80275         accepts Windows pathnames.
80276         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
80277         Treat Cygwin like Windows, since it now accepts Windows pathnames.
80278         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
80279         Treat Cygwin like Windows, since it now accepts Windows pathnames.
80280         Reported by Derek Robert Price <derek@ximbiot.com>.
80281
80282 2004-04-21  Karl Berry  <karl@gnu.org>
80283
80284         * config/srclist.txt (localcharset.c): break sync.
80285
80286 2004-04-20  Paul Eggert  <eggert@twinsun.com>
80287
80288         * m4/host-os.m4: Add a copyright notice.
80289
80290 2004-04-20  Jim Meyering  <jim@meyering.net>
80291
80292         Change UTILS_ to gl_ in AC_DEFINE'd names.
80293         Change utils_- and jm_-prefixed variables, too.
80294         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
80295         UTILS_FUNC_MKDIR_TRAILING_SLASH.
80296         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
80297
80298         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
80299         Don't emit trailing blanks.
80300         Also rename jm_-prefixed variables to have gl_ prefix.
80301
80302         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
80303         Also rename jm_-prefixed variables to have gl_ prefix.
80304
80305         * m4/jm-macros.m4: Reflect the renamings.
80306         * m4/prereq.m4: Likewise.
80307
80308 2004-04-20  Jim Meyering  <jim@meyering.net>
80309
80310         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
80311         memory.
80312
80313 2004-04-20  Jim Meyering  <jim@meyering.net>
80314             Bruno Haible  <bruno@clisp.org>
80315
80316         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
80317         memory when realloc fails.
80318
80319 2004-04-19  Jim Meyering  <jim@meyering.net>
80320
80321         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
80322         now that readutmp.c may call `free (0)'.
80323
80324 2004-04-19  Bruno Haible  <bruno@clisp.org>
80325
80326         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
80327         * m4/inttypes_h.m4: Likewise.
80328         * m4/stdint_h.m4: Likewise.
80329         * m4/intmax_t.m4: Likewise.
80330         * m4/uintmax_t.m4: Likewise.
80331
80332 2004-04-18  Jim Meyering  <jim@meyering.net>
80333
80334         * m4/prereq.m4: Don't forbid jm_ prefix.
80335
80336         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
80337         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
80338         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
80339         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
80340         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
80341         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
80342         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
80343         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
80344         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
80345         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
80346         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
80347         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
80348         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
80349         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
80350         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
80351         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
80352         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
80353         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
80354         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
80355
80356 2004-04-18  Jim Meyering  <jim@meyering.net>
80357
80358         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
80359         failure, don't leak memory and do call END_UTMP_ENT.
80360
80361 2004-04-16  Jim Meyering  <jim@meyering.net>
80362
80363         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
80364         coreutils' stat program.
80365         (gl_PREREQ): Don't require jm_PREREQ_STAT.
80366
80367 2004-04-11  Paul Eggert  <eggert@twinsun.com>
80368
80369         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
80370         C89.
80371         (CHAR_BIT): Remove, since we assume C89.
80372         Include <stdint.h> if available, as per current Autoconf CVS advice.
80373
80374 2004-03-31  Jim Meyering  <jim@meyering.net>
80375
80376         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
80377         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
80378         * m4/xalloc.m4: Likewise.
80379
80380 2004-03-30  Paul Eggert  <eggert@twinsun.com>
80381
80382         Merge from coreutils.
80383
80384         * m4/inttostr.m4: New file.
80385         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
80386         Require AM_STDBOOL_H and gl_TIMESPEC instead.
80387         Require gl_CLOCK_TIME.
80388         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
80389
80390 2004-03-30  Paul Eggert  <eggert@twinsun.com>
80391
80392         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
80393         not bool, to be more consistent with Unix conventions.
80394         Suggested by Bruno Haible.
80395
80396         Merge from coreutils.
80397
80398         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
80399         * lib/umaxtostr.c: New files.
80400
80401         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
80402         the usual <time.h> dance.
80403         (get_date): Change signature to support fractional time stamps.
80404         All callers changed.
80405         * lib/getdate.y: Include "getdate.h" first, as we can now
80406         assume C89 and don't need to worry about 'const'.
80407         Similarly, include "unlocked-io.h" near start, not in middle.
80408         Include <limits.h>.
80409         (textint.value): Use long int rather than int.
80410         (textint.digits): Use size_t rather than int.
80411         (BILLION, LOG10_BILLION): New constants.
80412         (parser_control): New member rel_ns.  Members day_ordinal,
80413         time_zone, month, day, hour, minutes, rel_year, rel_month,
80414         rel_day, rel_hour, rel_minutes, rel_seconds
80415         are now long int, not int.  Member seconds is now struct timespec,
80416         not int.  New member timespec_seen.  Members dates_seen, days_seen,
80417         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
80418         not int.
80419         (%union.intval): Now long int, not int.
80420         New member timespec.
80421         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
80422         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
80423         (spec): Now is a timespec or an item list.
80424         (timespec, items): New nonterminals.
80425         (time, rel, relunit, number, get_date):
80426         Add support for fractional seconds.
80427         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
80428         (gmtime, localtime, mktime): Remove decls; not needed with C89.
80429         (to_hour): First arg is now long int, not int.
80430         (to_year): Returns long int, not int.
80431         Don't treat year -70 like 70.
80432         (tm_diff): Returns long int, not int.
80433         (lookup_word): Use bool instead of int when appropriate.
80434         (yylex): Use size_t for count, not int.
80435         Detect overflow when parsing large integer constants.
80436         Add support for fractions.
80437         (get_date): Make pointers 'const' if possible.
80438         Use more-portable code to detect integer overflow.
80439         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
80440         Don't use ctime; it's not reliable if the year has >4 digits.
80441
80442         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
80443         This is for compatibility with BSD.
80444
80445         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
80446         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
80447         From coreutils' system.h.
80448
80449         * lib/userspec.c: Don't include "posixver.h".
80450         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
80451         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
80452         compatible extension.  Simplify code by removing a boolean int
80453         that was always nonzero if a string was nonnull.
80454
80455 2004-03-30  Jim Meyering  <jim@meyering.net>
80456
80457         Merge from coreutils.
80458
80459         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
80460         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
80461         on some systems one must include <grp.h> before it.
80462         Reported by Christian Krackowizer.
80463
80464 2004-03-30  Jim Meyering  <jim@meyering.net>
80465
80466         Merge from coreutils.
80467
80468         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
80469
80470         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
80471         an empty input stream.
80472
80473         * lib/readtokens.c: Include <stdbool.h>.
80474         (readtoken): Use `size_t' rather than int/long.
80475         All callers adjusted.
80476         Use `bool' rather than `int' where appropriate.
80477         Use memset rather than an explicit loop.
80478         Use x2nrealloc rather than xrealloc.
80479         Allow the use of `\0' as a delimiter.
80480         (readtokens): Likewise.
80481         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
80482
80483 2004-03-30  Jim Meyering  <jim@meyering.net>
80484
80485         * m4/realloc.m4: Remove file, since now it does no more than
80486         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
80487         the `configure.ac' section of module/realloc.
80488         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
80489
80490 2004-03-30  Bruno Haible  <bruno@clisp.org>
80491
80492         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
80493         nonnull.
80494
80495 2004-03-29  Paul Eggert  <eggert@twinsun.com>
80496
80497         Merge changes to getloadavg.c from coreutils and Emacs.
80498
80499         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
80500         Define to an expression, not to the empty string.
80501         Include cloexec.h and xalloc.h.
80502         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
80503         Use set_cloexec_flag rather than rolling our own.
80504         * lib/cloexec.c, lib/cloexec.h: New files.
80505
80506 2004-03-29  Paul Eggert  <eggert@twinsun.com>
80507
80508         * m4/cloexec.m4: New file.
80509
80510 2004-03-18  Paul Eggert  <eggert@twinsun.com>
80511
80512         * lib/getopt.h: Sync with libc CVS.
80513
80514 2004-03-18  Paul Eggert  <eggert@twinsun.com>
80515             Bruno Haible  <bruno@clisp.org>
80516
80517         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
80518         mbswidth.
80519
80520 2004-03-18  Paul Eggert  <eggert@twinsun.com>
80521             Bruno Haible  <bruno@clisp.org>
80522
80523         * lib/mbswidth.h: Include <wchar.h> only if
80524         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
80525         <wchar.h>.
80526         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
80527
80528 2004-03-09  Paul Eggert  <eggert@twinsun.com>
80529
80530         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
80531         Sync with libc CVS.
80532         * lib/getopt_int.h: New file, also synced from libc.
80533
80534 2004-03-09  Paul Eggert  <eggert@twinsun.com>
80535
80536         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
80537         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
80538         Bring back getopt.c, getopt.h, getopt1.c.
80539
80540 2004-03-07  Paul Eggert  <eggert@twinsun.com>
80541
80542         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
80543         All uses changed.  Check for sa_sigaction member; this fixes
80544         a bug first reported by Jason Andrade in
80545         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
80546
80547 2004-03-07  Paul Eggert  <eggert@twinsun.com>
80548
80549         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
80550         '#if' expressions.  Unlike the code it replaces, it does not
80551         depend on (defined _SC_PAGESIZE).  However, it does depend on
80552         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
80553         first reported by Jason Andrade in
80554         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
80555
80556 2004-02-25  Simon Josefsson  <jas@extundo.com>
80557
80558         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
80559
80560 2004-02-25  Simon Josefsson  <jas@extundo.com>
80561
80562         * lib/strdup.h: New file.
80563         * lib/strdup.c: Include it.
80564         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
80565         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
80566
80567 2004-02-23  Karl Berry  <karl@gnu.org>
80568
80569         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
80570         (from fencepost.gnu.org:/gd/gnuorg).
80571
80572 2004-02-23  Karl Berry  <karl@gnu.org>
80573
80574         * config/srclistvars.sh (GNUORG) [karl]: redefine.
80575         * config/srclist.txt: add maintain/standards documents.
80576
80577 2004-02-18  Bruno Haible  <bruno@clisp.org>
80578
80579         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
80580         Reported by Derek Robert Price <derek@ximbiot.com>.
80581
80582 2004-02-16  Karl Berry  <karl@gnu.org>
80583
80584         * config/mkinstalldirs, install-sh: update from automake.
80585
80586 2004-02-06  Karl Berry  <karl@gnu.org>
80587
80588         * m4/po.m4: update from gettext 0.14.1.
80589
80590 2004-02-06  Karl Berry  <karl@gnu.org>
80591
80592         * lib/config.charset: update from gettext 0.14.1.
80593
80594 2004-02-05  Paul Eggert  <eggert@twinsun.com>
80595
80596         Add comments and code, prompted by suggestions from Bruno Haible
80597         for sh-quote.
80598         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
80599         describing the enum quoting_style values.
80600         * lib/quotearg.c (quotearg_alloc): New function.
80601         (quotearg_buffer_restyled): Treat lone { and } as special.
80602         Treat = as special.  Work around bug with older shells
80603         that "see" a '\' that is really the 2nd byte of a multibyte char.
80604         Quote empty string with shell_quoting_style.
80605
80606 2004-02-03  Bruno Haible  <bruno@clisp.org>
80607
80608         * m4/pipe.m4: New file, from GNU gettext.
80609
80610 2004-02-03  Bruno Haible  <bruno@clisp.org>
80611
80612         * lib/pipe.h: New file, from GNU gettext.
80613         * lib/pipe.c: New file, from GNU gettext.
80614
80615 2004-01-27  Bruno Haible  <bruno@clisp.org>
80616
80617         * m4/execute.m4: New file, from GNU gettext.
80618
80619 2004-01-27  Bruno Haible  <bruno@clisp.org>
80620
80621         * lib/execute.h: New file, from GNU gettext.
80622         * lib/execute.c: New file, from GNU gettext.
80623         * lib/w32spawn.h: New file, from GNU gettext.
80624
80625 2004-01-24  Paul Eggert  <eggert@twinsun.com>
80626
80627         Merge from diffutils.
80628
80629         * lib/file-type.c (file_type): Add typed memory objects.
80630         * lib/file-type.h (S_TYPEISTMO): New macro.
80631
80632         * lib/c-stack.h (c_stack_action): Remove argv argument.
80633         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
80634         (die): Don't calculate message unless segv_action returns.
80635         (get_stack_location, min_address_from_argv, max_address_from_argv,
80636         volatile stack_base, volatile_stack_size): Remove.
80637         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
80638         that every segmentation violation is a stack overflow.  (Ouch!)
80639         See Debian bug 136249 (still outstanding) for more info about why
80640         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
80641
80642 2004-01-24  Paul Eggert  <eggert@twinsun.com>
80643
80644         Exit-status fix from coreutils.
80645
80646         Use exit_failure consistently in place of EXIT_FAILURE,
80647         so that program exit statuses are consistent on failure.
80648
80649         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
80650         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
80651         * lib/argmatch.h: Comment fix to match the above.
80652         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
80653         Now a macro referring to exit_failure, instead of a separate
80654         variable.  Include "exitfail.h" to get it.
80655         * lib/xstrtol.h: Include "exitfail.h".
80656         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
80657
80658         * lib/long-options.c (parse_long_options): Use prototype
80659         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
80660         for clarity.
80661
80662 2004-01-21  Jim Meyering  <jim@meyering.net>
80663
80664         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
80665         so as not to conflict with a different-sized __mktime_internal
80666         function in GNU libc.
80667         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
80668         Problem building statically-linked `ls' reported by Michael Brunnbauer.
80669
80670 2004-01-20  Karl Berry  <karl@gnu.org>
80671
80672         * config/config.guess: update from config.
80673
80674         * config/srclistvars.sh: GNUWWWLICENSES for karl.
80675
80676 2004-01-20  Bruno Haible  <bruno@clisp.org>
80677
80678         Safer stack allocation.
80679         * lib/setenv.c: Include allocsa.h.
80680         (alloca): Remove fallback definition.
80681         (freea): Remove macro.
80682         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
80683         instead of freea.
80684
80685 2004-01-20  Bruno Haible  <bruno@clisp.org>
80686
80687         * m4/eealloc.m4: New file, from GNU gettext.
80688
80689 2004-01-20  Bruno Haible  <bruno@clisp.org>
80690
80691         * m4/allocsa.m4: New file, from GNU gettext.
80692
80693 2004-01-20  Bruno Haible  <bruno@clisp.org>
80694
80695         * lib/xallocsa.h: New file, from GNU gettext.
80696         * lib/xallocsa.c: New file, from GNU gettext.
80697
80698 2004-01-20  Bruno Haible  <bruno@clisp.org>
80699
80700         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
80701
80702 2004-01-20  Bruno Haible  <bruno@clisp.org>
80703
80704         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
80705         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
80706         specially.
80707
80708 2004-01-20  Bruno Haible  <bruno@clisp.org>
80709
80710         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
80711         patch.
80712
80713 2004-01-20  Bruno Haible  <bruno@clisp.org>
80714
80715         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
80716
80717 2004-01-20  Bruno Haible  <bruno@clisp.org>
80718
80719         * lib/eealloc.h: New file.
80720
80721 2004-01-20  Bruno Haible  <bruno@clisp.org>
80722
80723         * lib/binary-io.h: Avoid warnings on Cygwin.
80724
80725 2004-01-20  Bruno Haible  <bruno@clisp.org>
80726
80727         * lib/allocsa.h: New file, from GNU gettext.
80728         * lib/allocsa.c: New file, from GNU gettext.
80729
80730 2004-01-18  Karl Berry  <karl@gnu.org>
80731
80732         * doc/gpl.texi, doc/lgpl.texi: new files.
80733
80734 2004-01-18  Karl Berry  <karl@gnu.org>
80735
80736         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
80737         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
80738
80739 2004-01-15  Paul Eggert  <eggert@twinsun.com>
80740
80741         Merge from coreutils.
80742
80743         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
80744         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
80745         (gl_DEFAULT_POSIX2_VERSION): Move
80746         the documentation from 'configure' into 'config.hin',
80747         so that 'configure --help' isn't burdened by it and
80748         we don't have to worry about its formatting there.
80749         Reword the documentation so that it's more succinct
80750         and can be run together into a single paragraph.
80751         * m4/same.m4 (gl_SAME): Check for pathconf.
80752
80753 2004-01-15  Paul Eggert  <eggert@twinsun.com>
80754
80755         Merge from coreutils.
80756
80757         * lib/posixver.c: Include posixver.h.
80758
80759         * lib/same.c: Include <stdbool.h>, <limits.h>.
80760         (_POSIX_NAME_MAX): Define if not defined.
80761         (MIN): New macro.
80762         (same_name): If file names are silently truncated, report
80763         that the file names are the same if they are the same after
80764         the silent truncation.
80765
80766         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
80767         conversion function.
80768         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
80769         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
80770         longer needed.
80771
80772 2004-01-15  Jim Meyering  <jim@meyering.net>
80773
80774         Merge from coreutils.
80775
80776         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
80777         if no library is required.
80778         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
80779         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
80780         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
80781         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
80782         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
80783         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
80784         value, $ac_cv_search_crypt, if it's "none required".
80785         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
80786         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
80787         not gl_FUNC_GETLOADAVG.
80788         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
80789         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
80790
80791 2004-01-15  Jim Meyering  <jim@meyering.net>
80792
80793         Merge from coreutils.
80794
80795         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
80796         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
80797         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
80798
80799         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
80800         optional configure-time default.
80801
80802         * lib/version-etc.c (version_etc_copyright): Update copyright date.
80803
80804         * lib/xreadlink.c (xreadlink): Correct outdated comment.
80805
80806 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
80807
80808         Merge from coreutils.
80809
80810         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
80811         value, $ac_cv_search_nanosleep, if it's "none required".
80812
80813 2004-01-14  Paul Eggert  <eggert@twinsun.com>
80814
80815         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
80816         with like-named macro in fnmatch.c.
80817         (EXT): Use an internal constant instead.
80818
80819         Merge fnmatch patches from glibc.
80820         * lib/fnmatch.c (mbsinit): Remove define.
80821         Add libc_hidden_ver (__fnmatch, fnmatch).
80822         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
80823         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
80824
80825 2004-01-14  Karl Berry  <karl@gnu.org>
80826
80827         * config/install-sh: update from automake.
80828
80829 2004-01-13  Karl Berry  <karl@gnu.org>
80830
80831         * config/install-sh: update from automake.
80832
80833 2004-01-09  Karl Berry  <karl@gnu.org>
80834
80835         * config/install-sh: update from automake.
80836
80837 2004-01-05  Karl Berry  <karl@gnu.org>
80838
80839         * config/config.{sub,guess}: update from config.
80840
80841 2003-12-31  Karl Berry  <karl@gnu.org>
80842
80843         * config/depcomp: update from automake.
80844
80845 2003-12-14  Karl Berry  <karl@gnu.org>
80846
80847         * lib/config.charset: update from gettext-runtime.
80848
80849 2003-12-03  Paul Eggert  <eggert@twinsun.com>
80850
80851         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
80852         Bug reported by Alfred M. Szmidt.
80853
80854 2003-12-03  Bruno Haible  <bruno@clisp.org>
80855
80856         * m4/gettext.m4: Upgrade from gettext-0.13.
80857         * m4/po.m4: Upgrade from gettext-0.13.
80858         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
80859         * m4/intmax.m4: New file, from gettext-0.13.
80860         * m4/printf-posix.m4: New file, from gettext-0.13.
80861
80862 2003-11-29  Karl Berry  <karl@gnu.org>
80863
80864         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
80865
80866 2003-11-25  Paul Eggert  <eggert@twinsun.com>
80867             Bruno Haible  <bruno@clisp.org>
80868
80869         * lib/printf-parse.h: Don't include sys/types.h.
80870         (ARG_NONE): New macro.
80871         (char_directive): Change type of *arg_index fields to size_t.
80872         * lib/printf-parse.c: Don't include sys/types.h.
80873         (SSIZE_MAX): Remove macro.
80874         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
80875         Remove unnecessary overflow check.
80876         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
80877         fields.
80878
80879 2003-11-25  Bruno Haible  <bruno@clisp.org>
80880
80881         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
80882
80883 2003-11-25  Bruno Haible  <bruno@clisp.org>
80884
80885         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
80886         gt_TYPE_SSIZE_T.
80887
80888 2003-11-24  Paul Eggert  <eggert@twinsun.com>
80889
80890         * modules/alloca: Remove dependency on xalloc.
80891
80892 2003-11-24  Paul Eggert  <eggert@twinsun.com>
80893
80894         * lib/alloca.c: Remove dependency on xalloc module.
80895         (xalloc_die): Remove.
80896         (memory_full) [!defined emacs]: New macro.
80897         [!defined emacs]: Don't include xalloc.h.
80898         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
80899         address arithmetic overflows.  Change datatypes a bit to avoid
80900         unnecessary casts.
80901
80902 2003-11-22  Jim Meyering  <jim@meyering.net>
80903
80904         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
80905         s/size/size_t/.
80906
80907 2003-11-21  Karl Berry  <karl@gnu.org>
80908
80909         * config/config.{sub,guess}: update from config.
80910
80911 2003-11-18  Karl Berry  <karl@gnu.org>
80912
80913         * config/config.{sub,guess}: update from config.
80914
80915         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
80916
80917 2003-11-17  Paul Eggert  <eggert@twinsun.com>
80918
80919         * README: Mention that S+T cannot overflow if S is the size of
80920         an existing object and T is sufficiently small.
80921
80922 2003-11-17  Jim Meyering  <jim@meyering.net>
80923
80924         On systems without utime and without a utimes function capable of
80925         dealing with a NULL struct utimbuf* argument, this utime replacement
80926         could -- in unusual circumstances -- leak a file descriptor.
80927         * lib/utime.c: Include <unistd.h> and <errno.h>.
80928         (utime_null): Be sure to close `fd' and to preserve errno.
80929         Reported by Geoff Collyer via Arnold Robbins.
80930
80931 2003-11-17  Bruno Haible  <bruno@clisp.org>
80932
80933         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
80934         (Depends-on): Add xsize.
80935
80936 2003-11-17  Bruno Haible  <bruno@clisp.org>
80937
80938         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
80939
80940 2003-11-17  Bruno Haible  <bruno@clisp.org>
80941
80942         * lib/vasnprintf.c (alloca): Remove fallback definition.
80943         (freea): Remove definition.
80944         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
80945         Reported by Paul Eggert.
80946
80947 2003-11-16  Paul Eggert  <eggert@twinsun.com>
80948             Bruno Haible  <bruno@clisp.org>
80949
80950         Protect against address arithmetic overflow.
80951         * lib/printf-args.h: Include stddef.h.
80952         (arguments): Change type of field 'count' to size_t.
80953         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
80954         'unsigned int' where appropriate.
80955         * lib/printf-parse.h: Include sys/types.h.
80956         (char_directive): Change type of *arg_index fields to ssize_t.
80957         (char_directives): Change type of fields 'count', max_*_length to
80958         size_t.
80959         * lib/printf-parse.c: Include sys/types.h and xsize.h.
80960         (SSIZE_MAX): Define fallback value.
80961         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
80962         instead of 'int' where appropriate. Check a_allocated, d_allocated
80963         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
80964         * lib/vasnprintf.c: Include xsize.h.
80965         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
80966         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
80967         overflow. Avoid wraparound when converting a width or precision from
80968         decimal to binary.
80969
80970 2003-11-16  Bruno Haible  <bruno@clisp.org>
80971
80972         Update from GNU gettext.
80973         * lib/printf-parse.c: Generalize to it can be compiled for wide
80974         strings.
80975         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
80976         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
80977         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
80978         SNPRINTF): New macros.
80979         Don't include <alloca.h> if the file is used inside libintl.
80980         (local_wcslen): New function, for Solaris 2.5.1.
80981         (VASNPRINTF): Use it instead of wcslen.
80982
80983 2003-11-16  Bruno Haible  <bruno@clisp.org>
80984
80985         * lib/xsize.h (xmax): New function.
80986         (xsum, xsum3, xsum4): Declare as "pure" functions.
80987
80988 2003-11-12  Paul Eggert  <eggert@twinsun.com>
80989
80990         * modules/xalloc (Files): Undo latest change, since xalloc.h
80991         no longer needs SIZE_MAX or PTRDIFF_MAX.
80992
80993 2003-11-12  Paul Eggert  <eggert@twinsun.com>
80994
80995         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
80996         gl_PTRDIFF_MAX.
80997
80998 2003-11-12  Paul Eggert  <eggert@twinsun.com>
80999
81000         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
81001         "return", to pacify some unknown compiler.  Problem reported
81002         by Joerg Schilling.
81003
81004 2003-11-12  Paul Eggert  <eggert@twinsun.com>
81005
81006         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
81007         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
81008         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
81009         heuristic is just as accurate as far as we know, and it removes a
81010         dependency on size_max.m4 and ptrdiff_max.m4.
81011
81012 2003-11-11  Bruno Haible  <bruno@clisp.org>
81013
81014         * modules/xsize (Files): Add m4/size_max.m4.
81015         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
81016
81017 2003-11-11  Bruno Haible  <bruno@clisp.org>
81018
81019         * m4/size_max.m4: New file.
81020         * m4/ptrdiff_max.m4: New file.
81021         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
81022         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
81023         (gl_XALLOC): Invoke it.
81024
81025 2003-11-11  Bruno Haible  <bruno@clisp.org>
81026
81027         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
81028         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
81029         defined.
81030
81031 2003-11-10  Paul Eggert  <eggert@twinsun.com>
81032
81033         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
81034         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
81035         rejected some allocations of exactly SIZE_MAX - 2 bytes.
81036         From Bruno Haible.
81037         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
81038         not (size_t) -1, since it's defined here.
81039
81040 2003-11-09  Karl Berry  <karl@gnu.org>
81041
81042         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
81043
81044 2003-11-06  Paul Eggert  <eggert@twinsun.com>
81045
81046         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
81047         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
81048         Reject sizes of exactly SIZE_MAX bytes.
81049         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
81050         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
81051
81052 2003-11-05  Bruno Haible  <bruno@clisp.org>
81053
81054         * lib/xsize.h: Include limits.h, to avoid a possible collision with
81055         SIZE_MAX defined in <limits.h> on Solaris.
81056
81057 2003-11-04  Jim Meyering  <jim@meyering.net>
81058
81059         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
81060         variable names, rather than @VAR@.
81061         * modules/poll: Likewise.
81062
81063 2003-11-04  Bruno Haible  <bruno@clisp.org>
81064
81065         * modules/xsize: New file.
81066         * modules/linebreak: Depend on xsize.
81067         * MODULES.html.sh (func_all_modules): Add xsize.
81068
81069 2003-11-04  Bruno Haible  <bruno@clisp.org>
81070
81071         * m4/xsize.m4: New file.
81072
81073 2003-11-04  Bruno Haible  <bruno@clisp.org>
81074
81075         * lib/xsize.h: New file.
81076         * lib/linebreak.c: Include xsize.h.
81077         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
81078         argument for overflow.
81079         Suggested by Paul Eggert.
81080
81081 2003-11-03  Karl Berry  <karl@gnu.org>
81082
81083         * config/config.{guess,sub}: update from config.
81084
81085 2003-11-03  Jim Meyering  <jim@meyering.net>
81086
81087         * modules/userspec (lib_SOURCES): Add userspec.h.
81088         (Include): Add "userspec.h".
81089         Improve description.
81090
81091 2003-11-03  Jim Meyering  <jim@meyering.net>
81092
81093         * lib/userspec.c: Include "userspec.h".
81094         * lib/userspec.h: New file.
81095
81096 2003-11-03  Bruno Haible  <bruno@clisp.org>
81097
81098         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
81099
81100 2003-11-03  Bruno Haible  <bruno@clisp.org>
81101
81102         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
81103         available, to avoid (extremely rare) race condition.
81104         Suggested by Paul Eggert.
81105
81106 2003-11-02  Karl Berry  <karl@gnu.org>
81107
81108         * config/srclist.txt (vasprintf.c): sync broken, sigh.
81109
81110 2003-10-31  Paul Eggert  <eggert@twinsun.com>
81111
81112         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
81113         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
81114         (read_filesystem_list): Set and use me_type_malloced.
81115         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
81116         whatever the type happens to be), for brevity and consistency.
81117         Check for size calculation overflow on Alphas running OSF/1.
81118
81119 2003-10-31  Jim Meyering  <jim@meyering.net>
81120
81121         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
81122
81123         * lib/linebuffer.c: Include <string.h> for declaration of memset.
81124
81125 2003-10-30  Paul Eggert  <eggert@twinsun.com>
81126             Bruno Haible  <bruno@clisp.org>
81127
81128         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
81129         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
81130
81131 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
81132
81133         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
81134         netbsd*-gnu*.  Suggested by Robert Millan.
81135
81136 2003-10-29  Paul Eggert  <eggert@twinsun.com>
81137
81138         * modules/group-member: Depend on stdbool.
81139
81140 2003-10-29  Paul Eggert  <eggert@twinsun.com>
81141
81142         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
81143
81144 2003-10-29  Paul Eggert  <eggert@twinsun.com>
81145
81146         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
81147         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
81148         after the 'gnu' in these cases.  This fixes some bugs in the
81149         previous change, and is based on suggestions by Robert Millan.
81150
81151 2003-10-29  Paul Eggert  <eggert@twinsun.com>
81152
81153         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
81154         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
81155         no longer needed.
81156         * lib/quotearg.c (quotearg_n_options): Use it.
81157         * lib/group-member.c: Include <stdbool.h>.
81158         (free_group_info): Arg is now const *; don't free arg.
81159         (get_group_info): Now returns bool and accepts struct group_info *,
81160         rather than returning a malloc'ed struct group_info *.
81161         All uses changed.  Check for overflow in internal size calculation.
81162
81163         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
81164         rather than xmalloc/xrealloc.
81165         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
81166         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
81167         conformance bug: the old code used a pointer after freeing the
81168         storage that it addressed.
81169         * lib/hash.c (hash_initialize): Simplify the code by using
81170         xalloc_oversized rather than doing it by hand.
81171         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
81172         the buffer preserved.  Use free and xmalloc instead.
81173         * lib/quotearg.c (quotearg_n_options): Likewise.
81174         Use a simpler test for size overflow.  Don't use xalloc_oversized
81175         because unsigned int might be wider than size_t (!); this suggests
81176         that we should switch from unsigned int to size_t for slot numbers.
81177
81178 2003-10-28  Paul Eggert  <eggert@twinsun.com>
81179
81180         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
81181         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
81182         NetBSD kernels.  Requested by Richard Stallman.
81183
81184 2003-10-27  Paul Eggert  <eggert@twinsun.com>
81185
81186         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
81187         to allocate the returned structure.  Do not allocate a subarray,
81188         as x2nrealloc will do that.
81189         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
81190         instead of xnrealloc.
81191         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
81192
81193 2003-10-27  Bruno Haible  <bruno@clisp.org>
81194
81195         * lib/stdbool_.h: Better support for BeOS.
81196
81197 2003-10-26  Paul Eggert  <eggert@twinsun.com>
81198
81199         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
81200         now uses inline.
81201
81202 2003-10-26  Paul Eggert  <eggert@twinsun.com>
81203
81204         * lib/xalloc.h (xalloc_oversized): New static inline function, for
81205         callers that want to do their own size-overflow checking.  Include
81206         <stdbool.h>, since xalloc_oversized returns bool.
81207         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
81208         to use xalloc_oversized.
81209
81210         Add two functions x2realloc, x2nrealloc, for programs that grow
81211         arrays dynamically by doubling their sizes.
81212         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
81213         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
81214         New functions.
81215
81216         Port to C99 semantics for 'inline' of external functions.
81217         Bug reported by Bruno Haible.
81218         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
81219         with the old contents of xnmalloc.
81220         (xnmalloc, xmalloc): Use it.
81221         (xnrealloc_inline): New static inline function,
81222         with the old contents of xnrealloc.
81223         (xnrealloc, xrealloc): Use it.
81224
81225         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
81226         that.
81227
81228 2003-10-26  Karl Berry  <karl@gnu.org>
81229
81230         * config/srclist.txt (COPYING.DOC): no longer available from
81231         /gd/gnuorg; don't know where the ultimate source is.
81232
81233 2003-10-25  Paul Eggert  <eggert@twinsun.com>
81234
81235         Fix several address-calculation bugs in the hash modules,
81236         plus some minor code cleanup.
81237
81238         * lib/hash.h: Include <stdbool.h>, for bool.
81239         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
81240         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
81241         hash_get_n_entries, hash_get_max_bucket_length,
81242         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
81243         hash_rehash): Use size_t rather than unsigned.
81244         * lib/hash.c (struct hash_table, hash_get_n_buckets,
81245         hash_get_n_buckets_used, hash_get_n_entries,
81246         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
81247         hash_get_entries, hash_do_for_each, hash_string, is_prime,
81248         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
81249         Likewise.
81250         (SIZE_MAX): Define if not defined.
81251         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
81252         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
81253         hash_print):
81254         Use const * when possible.
81255         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
81256         (check_tuning): Fix bug: if tuning parameters were very close to
81257         0 or 1, rounding errors could have caused subscript violations.
81258         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
81259         (hash_initialize): Add 'fail:' label
81260         to free table and return NULL, and use it to simplify code.
81261         Use calloc rather than clearing the storage ourself.
81262         (hash_initialize, hash_rehash): Check for arithmetic overflow in
81263         buffer size calculations.
81264         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
81265         Include <stddef.h>, for size_t.
81266         * lib/hash-pjw.c (hash_pjw): Likewise.
81267         Switch to method described by Bruno Haible.
81268         Include <limits.h>, for CHAR_BIT.
81269         (SIZE_BITS): New macro.
81270
81271 2003-10-23  Paul Eggert  <eggert@twinsun.com>
81272
81273         * m4/getline.m4 (AM_FUNC_GETLINE):
81274         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
81275         hosts.  Problem reported by Derek Robert Price in
81276         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
81277         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
81278         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
81279
81280 2003-10-21  Paul Eggert  <eggert@twinsun.com>
81281
81282         * lib/getndelim2.c (getndelim2): When size calculation overflows,
81283         ceiling the allocation at NMAX bytes rather than silently
81284         discarding input bytes before NMAX is reached.  This makes
81285         a difference only if NMAX exceeds SIZE_MAX / 2.
81286
81287         * lib/obstack.c: Merge from glibc.
81288         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
81289         Add libc_hidden_def (_obstack_newchunk).
81290         (_obstack_free) [! defined _LIBC]: Remove.
81291         [defined _LIBC]: Make a strong alias from obstack_free, rather than
81292         a clone of the function body.
81293         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
81294         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
81295
81296         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
81297         glibc.
81298         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
81299         arg to memcpy.
81300
81301         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
81302         (obstack_ptr_grow_fast, obstack_int_grow_fast):
81303         Don't use lvalue casts, as GCC plans to remove support for them
81304         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
81305         was also present in the non-GCC version, indicating that this
81306         code had always been buggy and had never been widely used.
81307         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
81308         Use the fast variant of each macro, rather than copying the
81309         definiens of the fast variant; that way, we'll be more likely to
81310         catch future bugs in the fast variants.
81311
81312 2003-10-20  Bruno Haible  <bruno@clisp.org>
81313
81314         * modules/wait-process: New file.
81315         * MODULES.html.sh (func_all_modules): Add wait-process.
81316
81317 2003-10-20  Bruno Haible  <bruno@clisp.org>
81318
81319         * m4/wait-process.m4: New file.
81320
81321 2003-10-20  Bruno Haible  <bruno@clisp.org>
81322
81323         * lib/wait-process.h: New file, from GNU gettext.
81324         * lib/wait-process.c: New file, from GNU gettext.
81325
81326 2003-10-19  Jim Meyering  <jim@meyering.net>
81327
81328         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
81329         HPUX 10.20.
81330
81331 2003-10-18  Karl Berry  <karl@gnu.org>
81332
81333         * config/config.guess: update from config.
81334
81335 2003-10-16  Paul Eggert  <eggert@twinsun.com>
81336
81337         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
81338         (getgroups): First arg is int, not size_t.
81339         Don't let 'free' mangle errno.
81340
81341 2003-10-16  Paul Eggert  <eggert@twinsun.com>
81342
81343         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
81344
81345 2003-10-16  Karl Berry  <karl@gnu.org>
81346
81347         * config/config.{guess,sub}: update from config.
81348
81349 2003-10-16  Jim Meyering  <jim@meyering.net>
81350
81351         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
81352         memcpy.
81353
81354 2003-10-15  Paul Eggert  <eggert@twinsun.com>
81355
81356         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
81357         (SIZE_MAX): Remove.
81358         (new_exclude, add_exclude_file): Initial size no longer needs to
81359         be a power of 2.
81360         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
81361         our own address arithmetic overflow checking.
81362
81363         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
81364         (fnmatch): Do not alloca more than 2000 wide characters;
81365         instead, use malloc for large buffers.
81366         Check for address arithmetic overflow, and return -1
81367         with errno set to ENOMEM in that case.
81368         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
81369         (NEW_PATTERN): Do not alloca more than 8000 bytes;
81370         instead, return -1.  Check for address arithmetic overflow.
81371
81372 2003-10-14  Paul Eggert  <eggert@twinsun.com>
81373
81374         Handle invalid suffixes and overflow independently, so that
81375         callers can treat them independently as needed.  Fix some bugs in
81376         suffix handling, e.g., "100k@" was not diagnosed as an invalid
81377         suffix for a human-readable blocksize.  The major caller-visible
81378         change is the addition of a new
81379         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
81380         that both overflow and suffix chars were found.
81381
81382         * lib/human.c (humblock): Don't check separately for invalid suffix
81383         char; that is xstrtoumax's job (now that its bug is fixed).
81384         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
81385         INTMAX_MAX]: New macros.
81386         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
81387         TYPE_MAXIMUM): New macros.
81388         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
81389         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
81390         if overflow occurs, as it's what __strtol does and it's more useful
81391         in practice.
81392         (__xstrtol): If __strtol reports some error other than ERANGE,
81393         reflect it to the caller as LONGINT_INVALID.  If it reports
81394         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
81395         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
81396         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
81397         value.
81398         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
81399         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
81400         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
81401         [defined UINTMAX_MAX]: New macros.
81402
81403 2003-10-14  Bruno Haible  <bruno@clisp.org>
81404
81405         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
81406
81407 2003-10-14  Bruno Haible  <bruno@clisp.org>
81408
81409         * m4/sig_atomic_t: New file, from GNU gettext.
81410         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
81411
81412 2003-10-14  Bruno Haible  <bruno@clisp.org>
81413
81414         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
81415         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
81416         Also use volatile where needed.
81417
81418 2003-10-12  Paul Eggert  <eggert@twinsun.com>
81419
81420         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
81421         Change maintainer from Bruno Haible to 'all'.
81422
81423 2003-10-12  Paul Eggert  <eggert@twinsun.com>
81424
81425         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
81426
81427 2003-10-12  Paul Eggert  <eggert@twinsun.com>
81428
81429         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
81430         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
81431         and define in terms of the other primitives.
81432         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
81433         (SIZE_MAX): Define if not already defined.
81434         (array_size_overflow): New function.
81435         (xalloc_die): Abort instead of exiting if 'error' returns.
81436         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
81437         (xmalloc, xrealloc): Use them.
81438         (xcalloc): Check for address arithmetic overflow.
81439         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
81440         a bit faster than strcpy.
81441
81442 2003-10-10  Simon Josefsson  <jas@extundo.com>
81443
81444         * modules/argp (Depends-on): Add restrict and strcase.
81445
81446 2003-10-10  Simon Josefsson  <jas@extundo.com>
81447
81448         * m4/argp.m4: Add AC_C_INLINE.
81449
81450 2003-10-08  Paul Eggert  <eggert@twinsun.com>
81451
81452         Merge getpass from libc, plus a few fixes.
81453
81454         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
81455         Include <stdbool.h>.
81456         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
81457         __fsetlocking to empty.
81458         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
81459         do include <bits/libc-lock.h>.
81460         Do not include <fcntl.h>; not needed.
81461         [_LIBC]: Include <wchar.h>.
81462         (NOTCANCEL_MODE): New macro.
81463         (flockfile, funlockfile) [_LIBC]: New macros.
81464         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
81465         [!_LIBC]: New macros.
81466         (call_fclose): New function.
81467         (getpass): Use it.  Save tty stream separately; this simplifies the
81468         code and makes it more reliable if stdin happens to equal stdout.
81469         Invoke __fsetlocking on tty.
81470         Handle thread cancellation if needed.
81471         Namespace cleanup (use __tcgetattr, __getline).
81472         Use bool for Booleans.
81473         [USE_IN_LIBIO]: Handle wide streams.
81474         [!_LIBC]: Unconditionally do the fseek, since we don't know what
81475         stream might go where.
81476
81477         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
81478         doesn't have to include <stdio.h> before us.
81479         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
81480         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
81481         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
81482         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
81483         if not declared, so that we can use getpass.c code from libc without
81484         rewriting it.
81485         (flockfile, ftrylockfile, funlockfile): New macros.
81486
81487 2003-10-08  Paul Eggert  <eggert@twinsun.com>
81488
81489         * modules/getpass: Depend on stdbool.
81490
81491 2003-10-08  Paul Eggert  <eggert@twinsun.com>
81492
81493         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
81494
81495 2003-10-07  Karl Berry  <karl@gnu.org>
81496
81497         * config/config.{guess,sub}: update from config.
81498
81499 2003-10-06  Jim Meyering  <jim@meyering.net>
81500             Bruno Haible  <bruno@clisp.org>
81501
81502         This lets translators provide better translations for the
81503         "Written by ..." part of --version output.
81504         * lib/version-etc.h: Include stdarg.h.
81505         (version_etc_copyright): Declare as readonly.
81506         (version_etc): Make this function variadic with a NULL-terminated list
81507         of author name strings.
81508         (version_etc_va): New declaration.
81509         * lib/version-etc.c: Include stdarg.h, stdlib.h.
81510         (version_etc_copyright): Declare as readonly.
81511         (version_etc_va): New function. Provide a different translatable string
81512         for each possible number of authors < 10. Abbreviate when there are 10
81513         authors or more.
81514         (version_etc): Make this function variadic. Call version_etc_va.
81515         Suggestion from Gary V. Vaughan.
81516
81517         * lib/long-options.h (parse_long_options): Change prototype: the
81518         authors string is moved to the end and becomes variadic.
81519         * lib/long-options.c: Include stdarg.h.
81520         (parse_long_options): Make this function variadic, too.
81521         Call version_etc_va, not version_etc.
81522
81523 2003-10-06  Bruno Haible  <bruno@clisp.org>
81524
81525         * modules/version-etc-2: Remove file.
81526         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
81527
81528 2003-10-06  Bruno Haible  <bruno@clisp.org>
81529
81530         * modules/fatal-signal: New file.
81531         * MODULES.html.sh (func_all_modules): Add fatal-signal.
81532
81533 2003-10-06  Bruno Haible  <bruno@clisp.org>
81534
81535         * m4/fatal-signal.m4: New file.
81536         * m4/signalblocking.m4: New file, from GNU gettext.
81537
81538 2003-10-06  Bruno Haible  <bruno@clisp.org>
81539
81540         * lib/version-etc-2.h: Remove file.
81541         * lib/version-etc-2.c: Remove file.
81542
81543 2003-10-06  Bruno Haible  <bruno@clisp.org>
81544
81545         * lib/fatal-signal.h: New file, from GNU gettext.
81546         * lib/fatal-signal.c: New file, from GNU gettext.
81547
81548 2003-10-05  Paul Eggert  <eggert@twinsun.com>
81549
81550         * README: Rework advice for preventing empty .o files.
81551         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
81552         not <sys/types.h>.
81553
81554 2003-10-04  Karl Berry  <karl@gnu.org>
81555
81556         * lib/argp*: update from libc.
81557
81558 2003-10-04  Karl Berry  <karl@gnu.org>
81559
81560         * config/config.{guess,sub}: update from config.
81561
81562 2003-10-02  Bruno Haible  <bruno@clisp.org>
81563
81564         * modules/lchown (Include): Add lchown.h.
81565         * modules/time_r (Include): Use "..." syntax.
81566         * modules/xgetdomainname (Include): Add xgetdomainname.h.
81567
81568 2003-10-01  Simon Josefsson  <jas@extundo.com>
81569
81570         * MODULES.html.sh (func_all_modules): Move gethostname from section
81571         'based on' to section 'lacking' POSIX:2001.
81572
81573 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
81574
81575         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
81576         to output mode on the same stream.
81577
81578 2003-09-29  Paul Eggert  <eggert@twinsun.com>
81579
81580         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
81581         Fix arg typo in previous patch.
81582
81583 2003-09-28  Jim Meyering  <jim@meyering.net>
81584
81585         * lib/error.c: Correct cpp indentation.
81586
81587 2003-09-27  Paul Eggert  <eggert@twinsun.com>
81588
81589         * modules/free: New file.
81590
81591 2003-09-27  Paul Eggert  <eggert@twinsun.com>
81592
81593         * m4/free.m4: New file.
81594
81595 2003-09-27  Paul Eggert  <eggert@twinsun.com>
81596
81597         * lib/minmax.h (MIN, MAX)
81598         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
81599         Omit the special code that used __typeof__, since we worry that
81600         it could be more trouble than it's worth.  See:
81601         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
81602         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
81603
81604         * lib/free.c: New file.
81605
81606 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
81607
81608         Trivial fixes to Makefile.am parts of module listings.
81609         * modules/strstr: Append strstr.h to lib_SOURCES.
81610         * modules/strcase: Likewise, for strcase.h.
81611
81612 2003-09-27  Karl Berry  <karl@gnu.org>
81613
81614         * config/mkinstalldirs: update from automake.
81615
81616 2003-09-26  Paul Eggert  <eggert@twinsun.com>
81617
81618         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
81619         (error_tail): Do not loop, reallocating temporary buffer, since
81620         the output cannot contain more wide characters than the input
81621         contains bytes, the size must be big enough already.  This avoids
81622         one potential size overflow calculation.  Check for size overflow
81623         when calculating temporary buffer size.  Free temporary buffer
81624         when done, if it was allocated with malloc; this plugs a memory
81625         leak.  Remove casts from void * to pointers, that are no longer
81626         needed now that we're assuming C89 or better.
81627
81628         Merge error changes from glibc.
81629
81630         * lib/error.c, error.h: Update copyright notice header to match glibc.
81631         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
81632         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
81633         Disable cancellation while printing error.
81634         * lib/error.h: Prepend __ to parameter names.
81635
81636 2003-09-26  Jim Meyering  <jim@meyering.net>
81637
81638         * lib/error.c (error_tail): Move some declarations
81639         into inner scope where the local variables are used.
81640
81641 2003-09-26  Bruno Haible  <bruno@clisp.org>
81642
81643         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
81644         stpncpy().
81645         Don't define stpncpy through config.h; it's now done through stpncpy.h.
81646
81647 2003-09-26  Bruno Haible  <bruno@clisp.org>
81648
81649         * lib/stpncpy.h (gnu_stpncpy): New declaration.
81650         (stpncpy): Define as alias for gnu_stpncpy.
81651         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
81652
81653 2003-09-25  Simon Josefsson  <jas@extundo.com>
81654
81655         * lib/xgetdomainname.h: New file.
81656         * lib/xgetdomainname.c: New file.
81657
81658 2003-09-25  Simon Josefsson  <jas@extundo.com>
81659             Bruno Haible  <bruno@clisp.org>
81660
81661         * modules/getdomainname: New file.
81662         * modules/xgetdomainname: New file.
81663         * MODULES.html.sh (func_all_modules): Add getdomainname,
81664         xgetdomainname.
81665
81666 2003-09-25  Simon Josefsson  <jas@extundo.com>
81667             Bruno Haible  <bruno@clisp.org>
81668
81669         * m4/getdomainname.m4: New file.
81670
81671 2003-09-25  Simon Josefsson  <jas@extundo.com>
81672             Bruno Haible  <bruno@clisp.org>
81673
81674         * lib/getdomainname.h: New file.
81675         * lib/getdomainname.c: New file.
81676
81677 2003-09-25  Karl Berry  <karl@gnu.org>
81678
81679         * lib/argp-fmtstream.c, argp-help.c: update from libc.
81680
81681 2003-09-25  Karl Berry  <karl@gnu.org>
81682
81683         * config/install-sh: update from automake.
81684
81685 2003-09-25  Bruno Haible  <bruno@clisp.org>
81686
81687         * modules/version-etc-2: New file, from modules/version-etc with
81688         modifications.
81689         * MODULES.html.sh (func_all_modules): Add version-etc-2.
81690
81691 2003-09-25  Bruno Haible  <bruno@clisp.org>
81692
81693         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
81694         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
81695
81696 2003-09-24  Simon Josefsson  <jas@extundo.com>
81697
81698         * modules/xgethostname: Add xgethostname.h.
81699
81700 2003-09-24  Paul Eggert  <eggert@twinsun.com>
81701
81702         * lib/linebuffer.c (freebuffer): Don't free the argument, just
81703         the buffer associated with the argument.  Bug reported by
81704         Simon Josefsson.
81705
81706 2003-09-24  Paul Eggert  <eggert@twinsun.com>
81707
81708         * README: Document assumptions that 'int' is at least 32 bits
81709         wide, that integer arithmetic is 2's complement without overflow,
81710         that there are no holes in integer values, that adding sizes of
81711         two nonoverlapping objects can't overflow, and that all-bits-zero
81712         yields scalar zero.  Fix spelling and capitalization typos.
81713
81714 2003-09-19  Karl Berry  <karl@gnu.org>
81715
81716         * lib/argp.h: update from libc.
81717
81718 2003-09-17  Paul Eggert  <eggert@twinsun.com>
81719
81720         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
81721         to avoid spurious warnings like "AC_RUN_IFELSE was called before
81722         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
81723
81724 2003-09-17  Paul Eggert  <eggert@twinsun.com>
81725
81726         * gnulib-tool: Use "test -h", not "test -L", for portability
81727         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
81728         (tags_regexp): Remove, since \| doesn't conform to POSIX.
81729         (sed_extract_prog): Issue s commands one-by-one, rather than
81730         using \| in one s command.
81731
81732 2003-09-16  Paul Eggert  <eggert@twinsun.com>
81733
81734         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
81735         input error, instead of returning NULL the next time we are called
81736         (and therefore losing track of errno).
81737
81738 2003-09-16  Bruno Haible  <bruno@clisp.org>
81739
81740         * gnulib-tool (func_create_testdir): Warn about duplicated
81741         dependencies.
81742
81743 2003-09-15  Paul Eggert  <eggert@twinsun.com>
81744
81745         * modules/argmatch, modules/fatal, modules/obstack,
81746         modules/xalloc, modules/xgethostname: Sort dependencies by
81747         importance, not alphabetically.
81748
81749 2003-09-15  Paul Eggert  <eggert@twinsun.com>
81750
81751         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
81752         fails, so that the caller gets the proper errno.
81753
81754         * lib/readutmp.c (read_utmp): Likewise.
81755         Check for fstat error.  Close stream and free storage
81756         when failing.
81757
81758 2003-09-14  Karl Berry  <karl@gnu.org>
81759
81760         * config/srclist.txt (strdup.c): disable for c89 changes.
81761
81762 2003-09-14  Jim Meyering  <jim@meyering.net>
81763
81764         * lib/getloadavg.c: Correct cpp indentation.
81765         * lib/strdup.c: Likewise.
81766         * lib/vasnprintf.c: Likewise.
81767
81768 2003-09-14  Bruno Haible  <bruno@clisp.org>
81769
81770         * modules/fwriteerror: New file.
81771         * MODULES.html.sh (func_all_modules): Add fwriteerror.
81772
81773 2003-09-14  Bruno Haible  <bruno@clisp.org>
81774
81775         * lib/fwriteerror.h: New file.
81776         * lib/fwriteerror.c: New file.
81777
81778 2003-09-12  Paul Eggert  <eggert@twinsun.com>
81779
81780         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
81781         modules/xgethostname, modules/xalloc: Depend on exit.
81782
81783 2003-09-12  Paul Eggert  <eggert@twinsun.com>
81784
81785         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
81786
81787         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
81788         and AC_MINIX, too, so that their extensions are available.
81789
81790         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
81791         This macro has been superseded by gl_BACKUPFILE.
81792
81793         More patches to assume C89 or better.
81794
81795         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
81796
81797         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
81798         unconditionally.
81799         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
81800         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
81801         Include <string.h>, <stdlib.h> unconditionally.
81802         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
81803         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
81804         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
81805         headers or for string.h.
81806         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
81807         or strtoul.
81808
81809         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
81810         headers.
81811         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
81812         * m4/userspec.m4 (gl_USERSPEC): Likewise.
81813         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
81814         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
81815         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
81816         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
81817         memcpy, memset.
81818         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
81819         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
81820         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
81821         strtol.
81822         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
81823         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
81824         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
81825         strtoul.
81826
81827 2003-09-12  Paul Eggert  <eggert@twinsun.com>
81828
81829         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
81830         * lib/obstack.c [!defined _LIBC]: Likewise.
81831         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
81832         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
81833         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
81834
81835         More changes to assume C89 or better.
81836
81837         * lib/error.c (error_tail): Assume vprintf.
81838
81839         * lib/argmatch.c (getenv): Remove decl.
81840         * lib/progreloc.c (get_full_program_name): Define via prototype.
81841         * lib/setenv.c (clearenv): Likewise.
81842         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
81843         needed.
81844         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
81845         (malloc, memcpy): Remove decls.
81846         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
81847         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
81848         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
81849         (memcpy): Remove macro.
81850         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
81851         (__P): Remove.  All uses removed.
81852         (PTR): Remove.  All uses changed to void *.
81853         (CHAR_BIT, NULL): Remove.
81854         (spaces, zeros, memset_space, memset_zero)
81855         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
81856         Remove.
81857         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
81858         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
81859         Define with prototype.
81860         Remove now-unnecessary prototype decl.
81861         (extra_args_spec): Assume ANSI C.  All uses changed.
81862         (extra_args_spec_iso): Remove.
81863         (my_strftime, emacs_strftimeu): Define via prototype.
81864         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
81865         unconditionally.
81866         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
81867         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
81868         (strtoul, strtol): Remove decls.
81869         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
81870         LONG_MAX): Remove.
81871         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
81872         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
81873         (LOCALE_PARAM_PROTO): New macro.
81874         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
81875         (INTERNAL (strtol), strtol): Define with a prototype.
81876         (PARAMS): Remove.  All uses removed.
81877         * lib/tempname.c: Include <string.h> unconditionally.
81878         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
81879         * lib/xgethostname.c (main): Define with a prototype.
81880         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
81881         Include <stdlib.h> unconditionally.
81882         (calloc, malloc, realloc, free): Remove decls.
81883         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
81884         Include <stdlib.h> unconditionally.  Sort include file names.
81885         (strtod): Remove.
81886         (xstrtod): Define with a prototype.
81887         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
81888         (strtol, strtoul): Remove decls.
81889
81890 2003-09-11  Paul Eggert  <eggert@twinsun.com>
81891
81892         More patches to assume C89 or better.
81893         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
81894         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
81895         string.h, memchr, STDC_HEADERS.
81896
81897 2003-09-11  Paul Eggert  <eggert@twinsun.com>
81898
81899         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
81900         Include <stdlib.h>, <string.h> unconditionally.
81901         Remove now-unnecessary cast to char *.
81902         * lib/strnlen.c: Include <string.h> unconditionally.
81903         * lib/yesno.c (yesno): Define with a prototype.
81904
81905 2003-09-11  Bruno Haible  <bruno@clisp.org>
81906
81907         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
81908
81909 2003-09-10  Jim Meyering  <jim@meyering.net>
81910
81911         * lib/error.c: Correct indentation of cpp directives.
81912
81913 2003-09-10  Bruno Haible  <bruno@clisp.org>
81914
81915         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
81916         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
81917         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
81918         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
81919         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
81920         <stdlib.h> and <string.h> checks.
81921         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
81922         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
81923
81924 2003-09-10  Bruno Haible  <bruno@clisp.org>
81925
81926         * lib/strcspn.c: Include <string.h> unconditionally.
81927         * lib/strpbrk.c: Include <string.h> unconditionally.
81928         * lib/strstr.c: Include <string.h> unconditionally.
81929         * lib/unicodeio.c: Include <string.h> unconditionally.
81930         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
81931         * lib/unsetenv.c: Likewise.
81932         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
81933         * lib/yesno.c: Include <stdlib.h> unconditionally.
81934         (rpmatch): Add prototype.
81935
81936 2003-09-09  Paul Eggert  <eggert@twinsun.com>
81937
81938         More patches to assume C89 or better.
81939         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
81940         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
81941         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
81942         or for string.h.
81943         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
81944         stdlib.h.
81945         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
81946         C headers.
81947         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
81948         string.h.
81949         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
81950         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
81951         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
81952         or for string.h.
81953         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
81954         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
81955         C headers.
81956         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
81957         memcpy.
81958         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
81959         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
81960         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
81961         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
81962         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
81963         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
81964         string.h, free.
81965         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
81966         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
81967         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
81968         C headers, or for string.h.
81969         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
81970         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
81971         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
81972         headers, memory.h, stdlib.h, string.h, strings.h.
81973         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
81974         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
81975         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
81976         strchr.
81977         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
81978         headers, memory.h, string.h.
81979         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
81980         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
81981         free.
81982         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
81983         headers.
81984         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
81985         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
81986         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
81987         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
81988         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
81989
81990 2003-09-09  Paul Eggert  <eggert@twinsun.com>
81991
81992         More K&R removal.
81993
81994         * lib/acosl.c (main): Use a prototype.
81995         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
81996         tanl.c: Likewise.
81997
81998         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
81999
82000         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
82001         (getopt, etopt_long, getopt_long_only, _getopt_internal)
82002         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
82003         with a prototype.
82004         * lib/getopt.c (const): Remove macro.
82005         Include <string.h> unconditionally.
82006         (my_index): Remove; all uses changed to strchr.
82007         (strlen): Remove decl.
82008         (exchange): Remove forward decl; no longer needed.
82009         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
82010         Define with prototype.
82011         * lib/getopt1.c (const): Remove macro.
82012         (getopt_long, getopt_long_only, main): Define with prototype.
82013
82014         * lib/getugroups.c: Include <string.h> unconditionally.
82015
82016         * lib/getusershell.c: Include <stdlib.h> unconditionally.
82017         (getusershell, setusershell, endusershell, readname, main):
82018         Define with prototypes.
82019
82020         * lib/group-member.c: Include group-member.h first.
82021         Include <stdlib.h> unconditionally.
82022
82023         * lib/hard-locale.c: Include hard-locale.h first.
82024         Include <stdlib.h>, <string.h> unconditionally.
82025
82026         * lib/hash.c (free, malloc): Remove decls.
82027         Include <stdlib.h> unconditionally.
82028
82029         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
82030         (getenv): Do not declare.
82031
82032         * lib/idcache.c: Include <string.h> unconditionally.
82033
82034         * lib/long-options.c: Include long-options.h first, to test interface.
82035         Include <stdlib.h> unconditionally.
82036
82037         * lib/makepath.c: Include makepath.h first, to test interface.
82038         Include <stdlib.h> and <string.h> unconditionally.
82039
82040         * lib/linebuffer.c: Include <stdlib.h>.
82041         (free): Remove decl.
82042
82043         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
82044         stddef.h. rpl_malloc returns void *, not char *.
82045         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
82046         prototype.
82047
82048         * lib/md5.h: Include <limits.h> unconditionally.
82049         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
82050         (__P): Remove; all uses removed.
82051         * lib/md5.c: Include "md5.h" first.
82052         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
82053         md5_buffer, md5_process_bytes, md5_process_block):
82054         Define with prototypes.
82055         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
82056         * lib/sha.c: Include "sha.h" first.
82057         Include <stdlib.h>, <string.h> unconditionally.
82058
82059         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
82060         * lib/memcmp.c (__ptr_t): Likewise.
82061         * lib/memrchr.c (__ptr_t): Likewise.
82062         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
82063         Include <string.h> unconditionally.
82064         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
82065         * lib/memchr.c: Include <stdlib.h> unconditionally.
82066         * lib/memchr.c (LONG_MAX): Remove.
82067         * lib/memrchr.c (LONG_MAX): Likewise.
82068         * lib/memchr.c (__memchr): Define via a prototype.
82069         * lib/memrchr.c (__memrchr): Likewise.
82070         * lib/memcmp.c (__P): Remove, and remove all uses.
82071         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
82072         Remove forward decls; no longer needed.
82073         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
82074         Use types required by C89 in prototype.
82075
82076         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
82077         * lib/savedir.c: Likewise.
82078         * lib/mkdir.c (free): Remove decl.
82079         * lib/rmdir.c (rmdir): Define with a prototype.
82080         * lib/savedir.c: Include savedir.h first, to test interface.
82081
82082         * lib/mktime.c (STDC_HEADERS): Remove.
82083         Include <stdlib.h>, <string.h> unconditionally.
82084
82085         * lib/modechange.c: Include <stdlib.h> unconditionally.
82086         (malloc): Remove decl.
82087
82088         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
82089         (free): Remove decl.
82090
82091         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
82092         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
82093         (This type really should be intptr_t, but that's a C99ism.)
82094         (_obstack_memcpy): Remove: all uses changed to memcpy.
82095         Include <string.h> unconditionally.
82096         (struct obstack): Assume __STDC__ for types of members
82097         chunkfun, freefun, extra_arg.
82098         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
82099         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
82100         obstack_begin, obstack_specify_allocation,
82101         obstack_specify_allocation_with_arg, obstack_chunkfun,
82102         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
82103         Remove unprototyped decls and the macros that use them.
82104         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
82105         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
82106         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
82107         (defined __STDC__ && __STDC__)]:
82108         Remove nonprototyped code.
82109         Include <stdlib.h> unconditionally.
82110         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
82111         _obstack_allocated_p, _obstack_free, obstack_free,
82112         _obstack_memory_used, print_and_abort):
82113         Define using prototypes.
82114         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
82115         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
82116         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
82117         obstack_next_free, obstack_object_size, obstack_room) [0]:
82118         Remove unused, unprototyped code.
82119
82120         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
82121
82122         * lib/physmem.c (physmem_total, physmem_available, main): Define
82123         with prototypes.
82124
82125         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
82126         (main): Define with a prototype.
82127
82128         * lib/posixver.c (getenv): Remove decl.
82129
82130         * lib/putenv.c (malloc): Returns void *, not char *.
82131         Include <string.h> unconditionally.
82132         (strchr, memcpy, NULL): Do not define.
82133
82134         * lib/readtokens.c: Include readtokens.h first, to test interface.
82135         Include <stdlib.h>, <string.h> unconditionally.
82136         (init_tokenbuffer): Define with a prototype.
82137
82138         * lib/regex.c (PARAMS): Remove.  All uses removed.
82139         All uses of _RE_ARGS removed, too.
82140         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
82141         unconditionally.
82142         (bzero): Assume memset exists.
82143         (memcmp, memcpy, NULL): Remove.
82144         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
82145         char, or assignments to local vars of type signed char.
82146         (init_syntax_once, PREFIX(extract_number_and_incr),
82147         PREFIX(print_partial_compiled_pattern),
82148         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
82149         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
82150         PREFIX(regex_grow_registers), PREFIX(regex_compile),
82151         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
82152         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
82153         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
82154         wcs_compile_range, byte_compile_range, truncate_wchar,
82155         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
82156         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
82157         count_mbs_length, wcs_re_match_2_internal,
82158         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
82159         PREFIX(alt_match_null_string_p),
82160         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
82161         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
82162         regfree, PREFIX(extract_number)): Define with prototype.  Remove
82163         now-unnecessary declaration, if any.
82164         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
82165         regcomp, regexec):
82166         Remove now-unnecessary casts among pointer types.
82167         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
82168
82169         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
82170         (free): Remove decl.
82171
82172         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
82173
82174         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
82175         (free): Remove decl.
82176
82177         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
82178         * lib/xgetcwd.c: Likewise.
82179
82180         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
82181         (free): Remove decl.
82182
82183         * lib/strchrnul.c (strchrnul): Define with a prototype.
82184         Fix bug: c_in was not converted to char before searching.
82185
82186         The following changes are not K&R related:
82187
82188         * lib/group-member.h: Include <sys/types.h>, so that this file is
82189         self-contained.
82190         * lib/makepath.h: Likewise.
82191
82192         * lib/getusershell.c (readname, default_index, line_size, readname):
82193         Use size_t, not int, for sizes.
82194         (readname): If the size overflows, report an error instead of
82195         looping forever.
82196
82197 2003-09-09  Paul Eggert  <eggert@twinsun.com>
82198
82199         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
82200         libc.
82201
82202 2003-09-09  Paul Eggert  <eggert@twinsun.com>
82203
82204         * README: New section: portability guidelines.
82205
82206 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
82207
82208         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
82209         C89 spec.
82210
82211 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
82212
82213         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
82214
82215 2003-09-08  Paul Eggert  <eggert@twinsun.com>
82216
82217         Assume C89 or better; remove K&R cruft.
82218         A few of these changes were first proposed by Derek Robert Price
82219         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
82220
82221         * lib/addext.c: Include <string.h> unconditionally.
82222         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
82223         Don't declare getenv or malloc.
82224
82225         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
82226         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
82227         (NULL): Remove.
82228         (find_stack_direction, alloca): Use prototypes.
82229
82230         * lib/atexit.c (atexit): Define using a prototype.
82231
82232         * lib/basename.c, dirname.c, stripslash.c:
82233         Include <string.h> unconditionally.
82234
82235         * lib/bcopy.c: Include <stddef.h>.
82236         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
82237
82238         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
82239
82240         * lib/error.h (error, error_at_line, error_print_progname)
82241         [! (defined (__STDC__) && __STDC__)]: Remove decls.
82242         * lib/error.c: Include error.h first, to check interface.
82243         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
82244         (VA_START): Remove; all uses changeed to va_start.
82245         (exit, strerror): Remove decls.
82246         (error_print_progname): Prototype uncondionally.
82247         Don't include <errno.h>; no longer needed.
82248         (private_strerror): Remove.
82249         (error_tail): Always define.
82250         (error, error_at_line): Assume C89 or better; always use prototypes.
82251         * lib/fatal.c: Include "fatal.h" first, to test interface.
82252         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
82253         (VA_START): Remove; all uses changed to va_start.
82254         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
82255         this case.
82256         (exit): Remove decl.
82257         (fatal): Prototype unconditionally.  Assume va_start works.
82258         Abort at end, to pacify gcc.
82259
82260         * lib/euidaccess.c (main): Define with a prototype.
82261
82262         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
82263
82264         * lib/exitfail.c: Include <stdlib.h> unconditionally.
82265
82266         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
82267         prototypes.
82268         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
82269         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
82270         (getenv): Remove decl.
82271         (fnmatch): Define using a prototype.
82272         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
82273         (FCT): Define using a prototype.
82274
82275         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
82276
82277         * lib/gethostname.c: Include <stddef.h>.
82278         (gethostname): Define with prototype.  Length is size_t, not int.
82279
82280 2003-09-08  Paul Eggert  <eggert@twinsun.com>
82281
82282         Assume C89 or better; remove K&R cruft.
82283         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
82284         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
82285         string.h, getenv, malloc.
82286         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
82287         headers.
82288         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
82289         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
82290         do not check for strerror.
82291         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
82292         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
82293         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
82294         do not check for doprnt or vprintf.
82295         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
82296         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
82297
82298 2003-09-08  Paul Eggert  <eggert@twinsun.com>
82299
82300         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
82301         getversion.c should have been removed then, but was accidentally
82302         preserved.
82303
82304         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
82305         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
82306
82307 2003-09-08  Karl Berry  <karl@gnu.org>
82308
82309         * config/config.sub, config.guess, srclistvars.sh: update from savannah
82310                 config, forget about prep.
82311
82312         * config/depcomp, missing: update from automake.
82313
82314 2003-09-07  Paul Eggert  <eggert@twinsun.com>
82315
82316         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
82317         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
82318
82319 2003-09-07  Paul Eggert  <eggert@twinsun.com>
82320
82321         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
82322         copy_tm_result.  Bug reported by Simon Josefsson in
82323         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
82324
82325 2003-09-06  Paul Eggert  <eggert@twinsun.com>
82326
82327         * m4/time_r.m4: New file.
82328         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
82329         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
82330         is. Check for timegm declaration.
82331         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
82332         Do not check for gmtime_r.
82333         Replace mktime if __mktime_internal does not exist and if mktime
82334         hasn't been replaced already.
82335
82336 2003-09-06  Paul Eggert  <eggert@twinsun.com>
82337
82338         * lib/time_r.c, lib/time_r.h: New files.
82339
82340         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
82341         __localtime_r.
82342         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
82343         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
82344
82345         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
82346         __gmtime_r.
82347         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
82348         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
82349         Include <time_r.h>.
82350
82351         * lib/timegm.c: Switch to glibc implementation, with the following
82352         changes:
82353         [defined HAVE_CONFIG_H]: Include <config.h>.
82354         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
82355         (__mktime_internal) [!defined _LIBC]: New decl.
82356         (__gmtime_r) [!defined _LIBC]: New macro and function.
82357         (timegm): Use a prototype, since gnulib assumes C89.
82358         Do not bother declaring tmp to be const, as it's not really usefu.
82359         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
82360         (timegm): Declare only if HAVE_DECL_TIMEGM.
82361
82362 2003-09-06  Paul Eggert  <eggert@twinsun.com>
82363
82364         * MODULES.html.sh (func_all_modules): Add time_r.
82365         * modules/time_r: New file.
82366         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
82367         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
82368
82369 2003-09-03  Paul Eggert  <eggert@twinsun.com>
82370
82371         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
82372         Bug reported by Lute Kamstra in
82373         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
82374
82375         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
82376         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
82377         course with correspondingly smaller numbers for tomorrow and
82378         yesterday.  From Tadayoshi Funaba.  Originally installed into
82379         sh-utils on 1999-08-07, but the patch got lost (I guess during the
82380         coreutils merge?).
82381
82382 2003-08-31  Simon Josefsson  <jas@extundo.com>
82383
82384         * modules/timegm: New file.
82385         * MODULES.html.sh (func_all_modules): Add timegm.
82386
82387 2003-08-31  Simon Josefsson  <jas@extundo.com>
82388
82389         * m4/timegm.m4: New file.
82390
82391 2003-08-31  Simon Josefsson  <jas@extundo.com>
82392
82393         * lib/timegm.h: New file.
82394         * lib/timegm.c: New file.  Based on
82395         wget-1.8.2/src/http.c:mktime_from_utc.
82396
82397 2003-08-31  Karl Berry  <karl@gnu.org>
82398
82399         * lib/argp.h: update from libc.
82400
82401 2003-08-28  Bruno Haible  <bruno@clisp.org>
82402
82403         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
82404         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
82405         followed by '#define fnmatch fnmatch_posix' gives an error.
82406
82407 2003-08-28  Bruno Haible  <bruno@clisp.org>
82408
82409         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
82410         warning on QNX, which defines O_BINARY to 000000.
82411
82412 2003-08-27  Jim Meyering  <jim@meyering.net>
82413
82414         * m4/mkstemp.m4: Require that the system mkstemp be able to create
82415         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
82416         would fail after 32.  Reported by Danny Levinson.  Details here:
82417         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
82418
82419 2003-08-24  Bruno Haible  <bruno@clisp.org>
82420
82421         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
82422         MSVC7 <stdio.h> is included later.
82423
82424 2003-08-22  Simon Josefsson  <jas@extundo.com>
82425
82426         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
82427
82428 2003-08-20  Karl Berry  <karl@gnu.org>
82429
82430         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
82431
82432 2003-08-20  Bruno Haible  <bruno@clisp.org>
82433
82434         * modules/progname: New file.
82435         * MODULES.html.sh (func_all_modules): Add progname.
82436
82437 2003-08-20  Bruno Haible  <bruno@clisp.org>
82438
82439         * lib/progname.h: New file, from GNU gettext.
82440         * lib/progname.c: New file, from GNU gettext.
82441         * lib/progreloc.c: New file, from GNU gettext.
82442
82443 2003-08-19  Jim Meyering  <jim@meyering.net>
82444
82445         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
82446         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
82447
82448 2003-08-19  Bruno Haible  <bruno@clisp.org>
82449
82450         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
82451         more.
82452
82453 2003-08-19  Bruno Haible  <bruno@clisp.org>
82454
82455         * lib/xstrdup.c: Assume <string.h> exists.
82456
82457 2003-08-18  Paul Eggert  <eggert@twinsun.com>
82458
82459         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
82460         in makefile rules.
82461
82462 2003-08-18  Jim Meyering  <jim@meyering.net>
82463
82464         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
82465         * m4/lib-ld.m4: Likewise.
82466
82467 2003-08-18  Jim Meyering  <jim@meyering.net>
82468
82469         * lib/setenv.h: Indent nested cpp directive.
82470         * lib/vasnprintf.c: Remove trailing blanks.
82471
82472 2003-08-17  Simon Josefsson  <jas@extundo.com>
82473
82474         * modules/xstrndup: New file.
82475         * MODULES.html.sh (func_all_modules): Add xstrndup.
82476
82477 2003-08-17  Simon Josefsson  <jas@extundo.com>
82478
82479         * modules/argp: Fix autoconf macro name. Add more dependencies.
82480
82481 2003-08-17  Simon Josefsson  <jas@extundo.com>
82482
82483         * m4/xstrndup.m4: New file.
82484
82485 2003-08-17  Simon Josefsson  <jas@extundo.com>
82486
82487         * m4/argp.m4: New file.
82488
82489 2003-08-17  Simon Josefsson  <jas@extundo.com>
82490             Bruno Haible  <bruno@clisp.org>
82491
82492         * lib/xstrndup.h: New file.
82493         * lib/xstrndup.c: New file.
82494
82495 2003-08-17  Bruno Haible  <bruno@clisp.org>
82496
82497         * modules/strndup (Files, Include): Add lib/strndup.h.
82498
82499 2003-08-17  Bruno Haible  <bruno@clisp.org>
82500
82501         * modules/euidaccess (Files): Add lib/euidaccess.h.
82502
82503 2003-08-17  Bruno Haible  <bruno@clisp.org>
82504
82505         * lib/strndup.h: New file.
82506
82507 2003-08-17  Bruno Haible  <bruno@clisp.org>
82508
82509         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
82510         like AC_GNU_SOURCE.
82511         * modules/extensions (configure.ac): Comment out the invocation of
82512         gl_USE_SYSTEM_EXTENSIONS.
82513
82514 2003-08-16  Paul Eggert  <eggert@twinsun.com>
82515
82516         Merges from coreutils, etc.
82517         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
82518         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
82519         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
82520         fixing a typo.
82521         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
82522         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
82523
82524 2003-08-16  Paul Eggert  <eggert@twinsun.com>
82525
82526         Document merge from coreutils.
82527         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
82528         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
82529         * modules/utime: Add m4/utimes-null.m4.
82530
82531 2003-08-16  Paul Eggert  <eggert@twinsun.com>
82532
82533         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
82534         space, undoing this 2003-08-12 change:
82535         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
82536
82537 2003-08-16  Paul Eggert  <eggert@twinsun.com>
82538
82539         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
82540         strtoul.c from libc, undoing this 2003-08-12 change:
82541         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
82542
82543 2003-08-16  Jim Meyering  <jim@meyering.net>
82544
82545         Merges from coreutils.
82546         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
82547         prefix.  Adjust cache variables similarly.  Create 500 rather than
82548         just 300 files, to exercise bug on Darwin6.5, too.
82549         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
82550         $missing_dir.
82551         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
82552         AM_SYS_POSIX_TERMIOS.
82553         Reported by mkc@mathdogs.com.
82554         Also change use of $am_cv_sys_posix_termios
82555         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
82556         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
82557         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
82558         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
82559         in /proc/mounts until it finds one with matching device number.  This
82560         is unnecessary when the FILE argument *is* a mount point.  No stat call
82561         is necessary in that case.  So, disable the statvfs-testing code on
82562         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
82563         as RedHat bug# 84846.
82564         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
82565         to 1MB, so as not to render systems with no stack size limit (e.g.,
82566         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
82567         Include <unistd.h>.  On some systems,
82568         it is required for the definition of _SC_PAGESIZE.
82569
82570 2003-08-16  Jim Meyering  <jim@meyering.net>
82571
82572         Merge from coreutils.
82573         * lib/xstrtoimax.c: #else #if -> #elif.
82574         * lib/xstrtoumax.c: Likewise.
82575
82576 2003-08-16  Jim Meyering  <jim@meyering.net>
82577
82578         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
82579         * m4/utimes.m4: Removed.
82580         * m4/utimes-null.m4: Renamed from utimes.m4.
82581
82582         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
82583         to 1MB, so as not to render systems with no stack size limit (e.g.,
82584         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
82585         Include <unistd.h>.  On some systems,
82586         it is required for the definition of _SC_PAGESIZE.
82587
82588 2003-08-16  Jim Meyering  <jim@meyering.net>
82589         and Paul Eggert  <eggert@cs.ucla.edu>
82590
82591         Merges from coreutils, etc.
82592
82593         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
82594         using the latest version from cvs.  This avoids problems with #line
82595         directives using a vendor (Sun) compiler.
82596         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
82597         Don't set GETGROUPS_LIB here; now it's
82598         done via getgroups.m4's wrapper function.
82599         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
82600         rather than just in sh-util/configure.in, so that the
82601         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
82602         same.
82603         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
82604         AC_FUNC_GETLOADAVG where to find getloadavg.c.
82605         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
82606         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
82607         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
82608         Remove code that is now done by the newly-required macros.
82609         Append $(EXEEXT) to DF_PROG.
82610         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
82611         Do not invoke or require the following here,
82612         since prereq.m4 or some gnulib .m4 now does this for us:
82613         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
82614         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
82615         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
82616         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
82617         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
82618         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
82619         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
82620         AC_FUNC_OBSTACK.
82621         Do not replace the following functions, as this is now the job
82622         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
82623         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
82624         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
82625         atexit getpass, strdup, getpagesize.
82626         Replace 'raise'.
82627         Do not check for the following functions, as this is now the job
82628         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
82629         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
82630         setregid.
82631         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
82632         Check for sys/sysctl.h.
82633         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
82634         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
82635         of checking for ssize_t ourselves.
82636
82637         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
82638         Require every macro that gnulib/modules/* suggests for us.
82639         (jm_PREREQ_ADDEXT): New macro.
82640         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
82641         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
82642
82643         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
82644         (gl_PHYSMEM): Use it.
82645         Also check for `table' function.
82646         Check for new headers and functions.
82647         Add check for sys/sysmp.h.
82648         With suggestions from Kaveh Ghazi.
82649         Ignore headers that are present but cannot be compiled.  This
82650         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
82651         C 5.4.
82652
82653 2003-08-15  Paul Eggert  <eggert@twinsun.com>
82654
82655         Document merge from coreutils.
82656         * modules/userspec: Depend on posixver.
82657         * modules/strftime: Depend on tzset.
82658
82659 2003-08-15  Paul Eggert  <eggert@twinsun.com>
82660
82661         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
82662         rather than tab, after '#' in shell-script copyright notices.
82663         Suggested by Bruno Haible.
82664
82665 2003-08-15  Paul Eggert  <eggert@twinsun.com>
82666
82667         * config/srclist-update: Use three spaces, rather than tab, after '#'
82668         in shell-script copyright notices.  Suggested by Bruno Haible.
82669         Remove unnecessary parenthesization in regular expression.
82670
82671 2003-08-15  Jim Meyering  <jim@meyering.net>
82672
82673         Merge from coreutils.
82674         * lib/xgethostname.c: Include <stdlib.h>.
82675         (xghostname): Don't exit for anything other than memory-related
82676         failure; just return NULL.
82677         * lib/userspec.c: Include "posixver.h".
82678         (parse_user_spec): Accept `.' as a separator only
82679         in pre-POSIX-200112 mode.
82680         * lib/strtoimax.c: Use #elif rather than #else #if.
82681         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
82682         Remove function, now that we can rely on a working tzset function.
82683         [!_LIBC]: Ensure that the required autoconf test has been run.
82684         [!defined _NL_CURRENT && HAVE_STRFTIME]:
82685         Use underlying_strftime for %r.
82686         * lib/sha.c: Merge in some clean-up and optimization changes from
82687         glibc.
82688         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
82689         Ensure that it is a multiple of 64.
82690         Rearrange loop exit tests so as to avoid performing an
82691         additional fread after encountering an error or EOF.
82692         * lib/realloc.c: Update copyright date.
82693
82694 2003-08-15  Jim Meyering  <jim@meyering.net>
82695         and Paul Eggert  <eggert@twinsun.com>
82696
82697         Merge from coreutils.
82698         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
82699         member but strut utmpx does not.  Needed for AIX 4.3.3.
82700         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
82701
82702 2003-08-15  Jim Meyering  <jim@meyering.net>
82703         and Paul Eggert  <eggert@cs.ucla.edu>
82704
82705         Merges from coreutils, etc.
82706         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
82707         Require gl_FUNC_TZSET_CLOBBER.
82708         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
82709         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
82710         members.
82711
82712 2003-08-14  Paul Eggert  <eggert@twinsun.com>
82713
82714         Help the merge from coreutils.
82715         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
82716         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
82717         * m4/tzset.m4: Use it too.
82718
82719 2003-08-14  Paul Eggert  <eggert@twinsun.com>
82720
82721         * modules/tzset: New file.
82722
82723 2003-08-14  Jim Meyering  <jim@meyering.net>
82724
82725         Merges from coreutils.
82726         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
82727         variable names, rather than @FNMATCH_H@.
82728         * modules/alloca: Likewise for $(ALLOCA_H).
82729
82730         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
82731         the three copies of the literal target, `fnmatch.h'.
82732         * modules/alloca (alloca.h): Likewise.
82733
82734 2003-08-14  Jim Meyering  <jim@meyering.net>
82735
82736         Merge from coreutils.
82737         * m4/tzset.m4: New file.
82738         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
82739         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
82740         otherwise, AIX 5.1 systems would end up using the latter.
82741         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
82742         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
82743         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
82744         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
82745
82746 2003-08-14  Jim Meyering  <jim@meyering.net>
82747
82748         Merge from coreutils.
82749         * lib/obstack.h: Whitespace changes.
82750         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
82751         and xcalloc return values.
82752         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
82753         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
82754         hang on OSF/1 5.1 for DIR on both local and remote file systems.
82755         Reported by (and fix confirmed by) Nelson H. F. Beebe.
82756         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
82757         error from mntctl.
82758         Use mntctl's return value to drive the entry-processing loop, since
82759         we can't rely on the value of the vmt_length member in the last
82760         entry.  On some systems doing so could result in exhausting
82761         virtual memory.  Based in part on a patch from Mike Jetzer.
82762
82763 2003-08-14  Jim Meyering  <jim@meyering.net>
82764         and Paul Eggert  <eggert@twinsun.com>
82765
82766         Merges from coreutils, plus other fixes.
82767         * lib/physmem.c: Merge in portability changes from gcc/libiberty
82768         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
82769         for credits and details.  Thanks to Kaveh Ghazi for helping
82770         to keep these files in sync.
82771         (ARRAY_SIZE): Define it.
82772         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
82773         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
82774         (memcasecmp): Don't assume size_t fits in unsigned int.
82775         Remove casts and duplicate code.
82776         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
82777         (memcpy): Remove definition.
82778         Merge in some clean-up and optimization changes from glibc.
82779         [BLOCKSIZE]: Move definition to top of file.
82780         Ensure that it is a multiple of 64.
82781         Rearrange loop exit tests so as to avoid performing an
82782         additional fread after encountering an error or EOF.
82783         * lib/md5.h (md5_uintptr): Define.
82784         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
82785         return to the initial working directory.  Preserve errno
82786         for caller.
82787         * lib/idcache.c: Include "xalloc.h".
82788         (xmalloc, xrealloc): Remove decls.
82789         (getuser): Remove casts no longer required in C89.
82790         * lib/human.c: Include stdio.h, for sprintf.
82791         * lib/group-member.c: Include "xalloc.h".
82792         (xmalloc, xrealloc): Remove decls.
82793         (get_group_info): Remove casts no longer required in C89.
82794         * lib/getusershell.c (readname): Remove casts no longer required in
82795         C89.
82796         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
82797         * lib/getline.c: Whitespace fix, from coreutils.
82798
82799 2003-08-13  Paul Eggert  <eggert@twinsun.com>
82800
82801         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
82802         Check for isascii.
82803
82804         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
82805         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
82806         Undo previous (whitespace-only) change.
82807
82808 2003-08-13  Paul Eggert  <eggert@twinsun.com>
82809
82810         * lib/exclude.c: Include <ctype.h>
82811         (IN_CTYPE_DOMAIN): New macro.
82812         (is_space): New fn.
82813         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
82814         and empty lines.
82815
82816         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
82817         Undo previous (whitespace-only) change.
82818
82819 2003-08-13  Paul Eggert  <eggert@twinsun.com>
82820
82821         * config/srclist-update: Change update back to the old behavior,
82822         leaving whitespace alone.  Use one 'sed' command rather than a
82823         pipeline.
82824         (fixlicense): Now a variable, not a function.
82825         (remove_trailing_blanks): Remove.
82826         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
82827         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
82828         Undo previous (whitespace-only) change.
82829
82830 2003-08-12  Paul Eggert  <eggert@twinsun.com>
82831
82832         Merge from coreutils.
82833         * modules/euidaccess: Add lib_SOURCES, include for new
82834         file euidaccess.h
82835
82836 2003-08-12  Paul Eggert  <eggert@twinsun.com>
82837
82838         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
82839         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
82840         Normalize leading white space and remove trailing white space.
82841
82842         Merge from coreutils
82843         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
82844
82845         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
82846         0.12.1.  These files are now being upgraded automatically by
82847         ../config/srclist-update.
82848
82849 2003-08-12  Paul Eggert  <eggert@twinsun.com>
82850
82851         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
82852         Normalize leading white space and remove trailing white space.
82853         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
82854         notice, as per ../config/srclist-update.
82855
82856         Merge from coreutils.
82857         * lib/euidaccess.h: New file.
82858         * lib/euidaccess.c: Include it.
82859         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
82860         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
82861         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
82862
82863 2003-08-12  Paul Eggert  <eggert@twinsun.com>
82864
82865         * config/srclist-update: Add copyright notice.
82866         (remove_id_lines, remove_trailing_blanks): New constants.
82867         (fixfile): Use them to normalize spacing a bit in copied files.
82868         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
82869         Normalize leading white space and remove trailing white space.
82870
82871         * config/texinfo.tex: Sync with texinfo.
82872
82873         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
82874         strtoul.c from libc, to merge coreutils whitespace changes.
82875
82876         * config/srclist.txt: Get the following m4 files from gettext:
82877         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
82878         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
82879         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
82880         wint_t.m4.
82881
82882 2003-08-12  Karl Berry  <karl@gnu.org>
82883
82884         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
82885         been made.
82886
82887 2003-08-11  Paul Eggert  <eggert@twinsun.com>
82888
82889         * modules/gnu-source, m4/gnu-source.m4:
82890         Remove; we're assuming Autoconf 2.54 or later now.
82891         Suggested by Bruno Haible.
82892         * MODULES.html.sh (func_all_modules): Remove gnu-source.
82893
82894 2003-08-11  Bruno Haible  <bruno@clisp.org>
82895
82896         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
82897
82898 2003-08-11  Bruno Haible  <bruno@clisp.org>
82899
82900         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
82901         (vasnprintf): Use it instead of wcslen.
82902
82903 2003-08-11  Bruno Haible  <bruno@clisp.org>
82904
82905         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
82906         value to ensure that _Bool promotes to int. Use #define for _Bool when
82907         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
82908
82909 2003-08-10  Karl Berry  <karl@gnu.org>
82910
82911         * lib/regex.h: update from libc (whitespace fix).
82912
82913 2003-08-09  Paul Eggert  <eggert@twinsun.com>
82914
82915         Merge some files from coreutils.  These changes were
82916         originally made by Jim Meyering.
82917         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
82918         many older Unixes require this.
82919         * lib/alloca.c (alloca): Remove cast to argument of free;
82920         no longer needed in C89.
82921         * lib/alloca_.h, regex.h: Fix white space to match
82922         what GNU indent does.
82923
82924 2003-08-09  Paul Eggert  <eggert@twinsun.com>
82925
82926         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
82927         apparently Emacs's Unicode mode got confused before my 2003-08-05
82928         checkin.
82929
82930 2003-08-08  Paul Eggert  <eggert@twinsun.com>
82931
82932         * m4/extensions.m4: New file.
82933         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
82934         Require gl_USE_SYSTEM_EXTENSIONS.
82935         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
82936         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
82937
82938 2003-08-08  Paul Eggert  <eggert@twinsun.com>
82939
82940         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
82941         * modules/extensions, modules/gnu-source: New files.
82942         * modules/timespec, modules/unlocked-io: Depend on extensions.
82943
82944 2003-08-07  Paul Eggert  <eggert@twinsun.com>
82945
82946         * modules/restrict: New file.
82947         * MODULES.html.sh (func_all_modules): Add restrict.
82948         * modules/regex: Depend on restrict.
82949
82950 2003-08-07  Paul Eggert  <eggert@twinsun.com>
82951
82952         * m4/restrict.m4: New file.
82953         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
82954
82955 2003-08-07  Bruno Haible  <bruno@clisp.org>
82956
82957         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
82958         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
82959
82960 2003-08-07  Bruno Haible  <bruno@clisp.org>
82961
82962         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
82963         makes the module 'getndelim2' compatible with the module 'getline'.
82964
82965 2003-08-05  Paul Eggert  <eggert@twinsun.com>
82966
82967         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
82968         byte with "\201" to avoid glitches when editing that source file
82969         with multi-gnome-terminal.
82970
82971 2003-08-05  Paul Eggert  <eggert@twinsun.com>
82972
82973         * lib/bumpalloc.h: Remove.
82974
82975 2003-08-05  Paul Eggert  <eggert@twinsun.com>
82976
82977         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
82978         * modules/bumpalloc: Remove.
82979
82980 2003-08-04  Paul Eggert  <eggert@twinsun.com>
82981
82982         * lib/getloadavg.c: Change copyright notice and spacing to conform to
82983         GNU coding style.
82984
82985         Merge from coreutils.
82986         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
82987         1. From glibc.
82988         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
82989         from Karl Berry, implemented by Jim Meyering.
82990         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
82991         from Dmitry V. Levin.
82992         Remove anachronistic cast of xrealloc.
82993         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
82994         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
82995         type. Otherwise, it wouldn't compile with at least /bin/cc on
82996         ymp-cray-unicos9.0.2.X.
82997         Combine two mostly-identical uses of alloca into one.
82998         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
82999
83000 2003-08-04  Dave Love  <d.love@dl.ac.uk>
83001
83002         [From Emacs.]
83003
83004         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
83005         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
83006         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
83007         obsolete NLIST_NAME_UNION.
83008         [__GNU__]: Undef BSD and FSCALE.
83009         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
83010
83011 2003-08-03  Paul Eggert  <eggert@twinsun.com>
83012
83013         * lib/stdbool_.h (_Bool): Make it signed char, instead of
83014         an enum type, so that it's guaranteed to promote to int.  See:
83015         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
83016
83017 2003-08-03  Karl Berry  <karl@gnu.org>
83018
83019         * config/depcomp: update from automake.
83020
83021 2003-07-31  Paul Eggert  <eggert@twinsun.com>
83022
83023         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
83024         (strerror): Don't assume that a printable int fits in 14 bytes.
83025
83026 2003-07-31  Bruno Haible  <bruno@clisp.org>
83027
83028         * modules/getpass-gnu: New file.
83029         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
83030
83031 2003-07-31  Bruno Haible  <bruno@clisp.org>
83032
83033         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
83034
83035 2003-07-24  Karl Berry  <karl@gnu.org>
83036
83037         * config/missing: update from automake.
83038
83039 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
83040             Bruno Haible  <bruno@clisp.org>
83041
83042         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
83043         * lib/getline.c (getline, getdelim): Likewise.
83044         Remove _GNU_SOURCE define; now it's defined in config.h through
83045         m4/getline.m4.
83046
83047 2003-07-23  Karl Berry  <karl@gnu.org>
83048
83049         * config/config.sub: update from prep.
83050
83051 2003-07-22  Paul Eggert  <eggert@twinsun.com>
83052
83053         * modules/xalloc (Depends-on): Add exitfail.
83054         * modules/xmemcoll: Likewise.
83055
83056 2003-07-22  Paul Eggert  <eggert@twinsun.com>
83057
83058         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
83059         over-parenthesization in macros.
83060
83061         Sync with coreutils.
83062
83063         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
83064         required by C99.
83065
83066         Use `exit_failure' for xalloc and xmemcoll instead of their own
83067         private exit-failure variables.
83068         * lib/xalloc.h (xalloc_exit_failure): Remove.
83069         * lib/xmalloc.c: Likewise.  Include exitfail.h.
83070         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
83071         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
83072         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
83073         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
83074
83075 2003-07-20  Jim Meyering  <jim@meyering.net>
83076
83077         * modules/closeout (Depends-on): Add exitfail.
83078         Suggestion from Bruno Haible.
83079
83080 2003-07-19  Karl Berry  <karl@gnu.org>
83081
83082         * config/config.sub: update from prep.
83083
83084 2003-07-18  Paul Eggert  <eggert@twinsun.com>
83085
83086         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
83087         Remove.
83088         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
83089         to test that it can stand by itself.  Include "exitfail.h".
83090         Clients should set exit_failure instead.
83091         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
83092
83093 2003-07-18  Bruno Haible  <bruno@clisp.org>
83094
83095         * modules/getndelim2: New file.
83096         * modules/getline: Share files with module getndelim2.
83097         * modules/getnline: Depend on getndelim2 instead of sharing files with
83098         it. Add getnline.c to lib_SOURCES.
83099         * MODULES.html.sh (func_all_modules): Add getndelim2.
83100
83101 2003-07-18  Bruno Haible  <bruno@clisp.org>
83102
83103         * m4/getndelim2.m4: New file.
83104         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
83105         invoke gl_PREREQ_GETNDELIM2.
83106         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
83107         gl_PREREQ_GETNDELIM2.
83108         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
83109         gl_GETNDELIM2.
83110
83111 2003-07-18  Bruno Haible  <bruno@clisp.org>
83112
83113         * lib/getndelim2.h: New file.
83114         * lib/getndelim2.c: Make into a module of its own. Include config.h,
83115         getndelim2.h.
83116         (getndelim2): Make non-static. Change return type to ssize_t.
83117         * lib/getline.h: Change argument names.
83118         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
83119         * lib/getnline.c: Include getndelim2.h.
83120
83121 2003-07-18  Andreas Schwab  <schwab@suse.de>
83122
83123         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
83124
83125 2003-07-17  Karl Berry  <karl@gnu.org>
83126
83127         * config/config.sub: update from prep.
83128
83129 2003-07-17  Bruno Haible  <bruno@clisp.org>
83130
83131         * modules/getnline: New file.
83132         * modules/getline: Add lib/getndelim2.c to source file list.
83133         * MODULES.html.sh (func_all_modules): Add getnline.
83134
83135 2003-07-17  Bruno Haible  <bruno@clisp.org>
83136
83137         * m4/getnline.m4: New file.
83138
83139 2003-07-17  Bruno Haible  <bruno@clisp.org>
83140
83141         * m4/Makefile.am.in: Remove file.
83142         * m4/Makefile.am: Remove file.
83143         * m4/Makefile.in: Remove file.
83144
83145 2003-07-17  Bruno Haible  <bruno@clisp.org>
83146
83147         * lib/getnline.h: New file.
83148         * lib/getnline.c: New file.
83149         * lib/getndelim2.c: New file, extracted from getline.c.
83150         (getndelim2): Renamed from getdelim2, with added nmax argument.
83151         * lib/getline.c: Include getndelim2.c.
83152         (getdelim2): Moved out to getndelim2.c.
83153         (getline, getdelim): Update.
83154
83155 2003-07-17  Bruno Haible  <bruno@clisp.org>
83156
83157         * lib/Makefile.am: Remove file.
83158         * lib/Makefile.in: Remove file.
83159
83160 2003-07-17  Bruno Haible  <bruno@clisp.org>
83161
83162         * configure.in: Remove file.
83163         * Makefile.in: Remove file.
83164
83165 2003-07-17  Bruno Haible  <bruno@clisp.org>
83166
83167         * MODULES.html.sh: Put the </BODY> right before </HTML>.
83168
83169 2003-07-16  Karl Berry  <karl@gnu.org>
83170
83171         * config/srclist-update: was running fixlicense twice, which caused
83172                 texinfo.tex to be nullified for some reason.  Simplify,
83173                 $gplsrc is no longer needed as far as I can see?
83174
83175 2003-07-16  Jim Meyering  <jim@meyering.net>
83176
83177         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
83178
83179 2003-07-15  Paul Eggert  <eggert@twinsun.com>
83180
83181         * config/srclist.txt: Get the following files from gettext-runtime/intl
83182         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
83183         ref-del.sin.  From Bruno Haible.
83184         * config/srclist-update (fixfile): Change grep pattern again, since the
83185         previous fix didn't work (there was another trailing $).  Use
83186         '[$]' to escape the $s.
83187
83188 2003-07-15  Karl Berry  <karl@gnu.org>
83189
83190         * lib/vasnprintf.c: update from gettext.
83191
83192 2003-07-15  Karl Berry  <karl@gnu.org>
83193
83194         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
83195         gets expanded when surrounded by '$'.
83196
83197 2003-07-15  Jim Meyering  <jim@meyering.net>
83198
83199         * modules/save-cwd: Don't depend on error.  From Derek Price.
83200
83201 2003-07-15  Jim Meyering  <jim@meyering.net>
83202
83203         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
83204
83205 2003-07-14  Simon Josefsson  <jas@extundo.com>
83206
83207         * modules/mempcpy: New file.
83208         * MODULES.html.sh (func_all_modules): Add mempcpy.
83209
83210 2003-07-14  Simon Josefsson  <jas@extundo.com>
83211
83212         * m4/mempcpy.m4: New file.
83213
83214 2003-07-14  Simon Josefsson  <jas@extundo.com>
83215
83216         * lib/mempcpy.h: New file.
83217         * lib/mempcpy.c: New file.
83218
83219 2003-07-14  Paul Eggert  <eggert@twinsun.com>
83220
83221         * modules/getdate, modules/posixtm: Depend on mktime.
83222
83223 2003-07-14  Paul Eggert  <eggert@twinsun.com>
83224
83225         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
83226         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
83227         unicodeio.c, unicodeio.h, unlocked-io.h:
83228         Switch from LGPL to GPL.
83229
83230 2003-07-14  Paul Eggert  <eggert@twinsun.com>
83231
83232         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
83233         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
83234         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
83235         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
83236         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
83237         updated automatically by ../config/srclist-update.  This changes
83238         their license from LPGL to GPL.
83239
83240 2003-07-14  Paul Eggert  <eggert@twinsun.com>
83241
83242         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
83243         assumed to refer to the root of the most recent stable gettext version.
83244         * config/srclistvars.sh: Add defaults for eggert.
83245         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
83246         Match "This program" as well as "The program".  This is needed
83247         for gettext.
83248
83249 2003-07-14  Jim Meyering  <jim@meyering.net>
83250
83251         Don't emit diagnostics.  Let callers do that.
83252         * lib/save-cwd.c: Don't include "error.h".
83253         (save_cwd): Don't call error.  Ensure that errno is valid
83254         when returning nonzero.
83255
83256         * lib/save-cwd.h (restore_cwd): Update prototype.
83257         * lib/save-cwd.c (restore_cwd): Remove two parameters.
83258         Simplify.  Don't call error upon failure.  Let callers do that.
83259         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
83260         when auditing is enabled.  But don't bother updating the #if.
83261
83262 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
83263
83264         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
83265         it breaks C++ compilation.
83266         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
83267
83268 2003-07-10  Simon Josefsson  <jas@extundo.com>
83269
83270         * modules/strchrnul (Makefile.am): Add strchrnul.h.
83271
83272 2003-07-10  Jim Meyering  <jim@meyering.net>
83273
83274         * m4/clock_time.m4: Remove trailing blank.
83275         * m4/intmax_t.m4: Likewise.
83276
83277 2003-07-10  Jim Meyering  <jim@meyering.net>
83278
83279         * lib/vasnprintf.c: Remove trailing blanks.
83280         Make cpp indentation consistent.
83281
83282 2003-07-09  Paul Eggert  <eggert@twinsun.com>
83283
83284         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
83285         posixver.c, strftime.c, strnlen.c, strverscmp.c:
83286         Switch from LGPL to GPL.
83287
83288 2003-07-09  Paul Eggert  <eggert@twinsun.com>
83289
83290         * config/srclist.txt: Sort sublists.  Add
83291         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
83292         that differ from gnulib for one reason or another; we'd like this list
83293         to be smaller but for now let's document what we have.
83294
83295 2003-07-08  Paul Eggert  <eggert@twinsun.com>
83296
83297         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
83298         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
83299         and sweeter "eval x=$x".
83300         * config/srclist.txt: Get lib/argp* from glibc.
83301
83302 2003-07-07  Paul Eggert  <eggert@twinsun.com>
83303
83304         * lib/mktime.c: Fix some boundary cases and remove need for floating
83305         point.
83306
83307         Issue a compile-time diagnostic if time_t is floating point, or if
83308         two's complement arithmetic is not in effect, or if arithmetic
83309         right shift does not propagate the sign.  These assumptions were
83310         all in the original code but they weren't checked.
83311
83312         (TIME_T_MIDPOINT, verify): New macros.
83313         (__isleap): Remove; it has integer overflow problems.
83314         (leapyear): New function, without those problems.
83315         (ydhms_tm_diff): Remove; splitting into two parts.
83316         (ydhms_diff): New function, containing the arithmetic part of
83317         the old ydhms_tm_diff function.  Issue a compile-time
83318         diagnostic if we are not using C99 integer division.
83319         Avoid casts when possible.
83320         (guess_time_tm): New function, containing the checking part of
83321         the old ydhms_tm_diff function.  Return the new value, rather than
83322         the difference between it and the old.  Accept a new argument T
83323         so that *T specifies the old value.  Check for overflow in the result.
83324
83325         (__mktime_internal): Use a time_t offset, not a long int offset.
83326         This undoes the 2003-06-04 change, which is no longer needed now
83327         that we have better overflow checking.
83328         (localtime_offset): Likewise.
83329
83330         (__mktime_internal): Avoid harmful overflow on hosts where time_t
83331         and long are 64-bit but int is only 32-bit.
83332         (ydhms_diff): Use long int to store year1 and yday1.
83333         Issue a compile-time diagnostic if long int is not wide enough.
83334
83335         (__mktime_internal): Use long int to store adjusted year and yday.
83336         Use plain C rather than preprocessor commands, if that doesn't
83337         affect efficiency.
83338         Check for overflow (and try to repair) after each probe
83339         rather than checking only at the very end.  This avoids some bugs
83340         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
83341         does not equal GMT offset at maximum time).
83342         Use integer to check for overflow rather than floating point; this
83343         is more portable to non-IEEE hosts, and is a tad faster.
83344         When we detect that we are oscillating between two values,
83345         don't check whether tm_isdst has the requested value, since
83346         we already know the answer.  When tm_isdst has the wrong value,
83347         use a different heuristic to find the right one, based on the
83348         extreme values actually observed in practice in tz2003a,
83349         rather than the (overly optimistic) "previous 3 calendar quarters".
83350
83351         (not_equal_tm, print_tm, check_result): Use "const T" rather than
83352         "T const" to accommodate glibc style.
83353         (check_result): Use less-confusing report format.  "long" -> "long int.
83354         (main): Likewise.
83355         Don't loop if the iteration overflows time_t.
83356         Allow a negative step in the iteration.
83357
83358 2003-07-06  Karl Berry  <karl@gnu.org>
83359
83360         * config/depcomp: update from automake.
83361         * config/config.sub: update from prep.
83362
83363 2003-07-03  Karl Berry  <karl@gnu.org>
83364
83365         * config/config.guess: update from prep.
83366
83367 2003-07-01  Paul Eggert  <eggert@twinsun.com>
83368
83369         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
83370         xreadlink.c now includes it unconditionally.
83371
83372 2003-07-01  Paul Eggert  <eggert@twinsun.com>
83373
83374         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
83375         having it depend on HAVE_SYS_TYPES_H.
83376
83377 2003-07-01  Bruno Haible  <bruno@clisp.org>
83378
83379         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
83380         <sys/types.h> should be sufficient.
83381         Reported by Paul Eggert.
83382
83383 2003-06-26  Karl Berry  <karl@gnu.org>
83384
83385         * config/depcomp: update from automake.
83386
83387 2003-06-26  Bruno Haible  <bruno@clisp.org>
83388
83389         * modules/human: Depend on module stdbool.
83390
83391 2003-06-25  Bruno Haible  <bruno@clisp.org>
83392
83393         * modules/readlink: New file.
83394         * modules/xreadlink: Depend on it.
83395         * MODULES.html.sh (func_all_modules): Add readlink.
83396
83397 2003-06-25  Bruno Haible  <bruno@clisp.org>
83398
83399         * m4/readlink.m4: New file.
83400
83401 2003-06-25  Bruno Haible  <bruno@clisp.org>
83402
83403         * lib/readlink.c: New file.
83404
83405 2003-06-22  Karl Berry  <karl@gnu.org>
83406
83407         * config/srclist.txt: update mkinstalldirs from automake.
83408         * config/mkinstalldirs: update.
83409
83410 2003-06-22  Bruno Haible  <bruno@clisp.org>
83411
83412         Portability to mingw32.
83413         * m4/ssize_t.m4: New file, from GNU gettext.
83414         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
83415         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
83416
83417 2003-06-22  Bruno Haible  <bruno@clisp.org>
83418
83419         * modules/safe-read: Add m4/ssize_t.m4.
83420         * modules/xreadlink: Add m4/ssize_t.m4.
83421
83422 2003-06-20  Bruno Haible  <bruno@clisp.org>
83423
83424         Assume C89, so PARAMS isn't needed.
83425         * lib/unicodeio.h (PARAMS): Remove.
83426         * lib/unicodeio.c: Don't use PARAMS.
83427
83428 2003-06-18  Karl Berry  <karl@gnu.org>
83429
83430         * config/config.{guess,sub}: update from prep.
83431
83432 2003-06-18  Jim Meyering  <jim@meyering.net>
83433
83434         Merge changes from coreutils.
83435         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
83436         Remove explicit declarations of xmalloc and realloc.
83437         Include xalloc.h.
83438         (read_utmp): Remove anachronistic cast of xmalloc.
83439
83440 2003-06-17  Paul Eggert  <eggert@twinsun.com>
83441
83442         Assume C89, so PARAMS isn't needed.
83443         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
83444         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
83445         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
83446         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
83447         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
83448         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
83449         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
83450         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
83451         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
83452         lib/xstrtod.h, lib/xstrtol.h: Likewise.
83453         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
83454         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
83455         no longer needed. Anyway, config.h should always be included before any
83456         other file.
83457
83458 2003-06-11  Simon Josefsson  <jas@extundo.com>
83459
83460         * modules/sysexits: New file.
83461         * MODULES.html.sh (func_all_modules): Add sysexits.
83462
83463 2003-06-11  Simon Josefsson  <jas@extundo.com>
83464
83465         * lib/sysexit_.h: New file.
83466
83467 2003-06-11  Derek Price  <derek@ximbiot.com>
83468
83469         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
83470         necessary.
83471
83472 2003-06-11  Bruno Haible  <bruno@clisp.org>
83473
83474         * m4/sysexits.m4: New file.
83475
83476 2003-06-10  Simon Josefsson  <jas@extundo.com>
83477
83478         * lib/argp.h: New file, from glibc.
83479         * lib/argp-ba.c: New file, from glibc.
83480         * lib/argp-eexst.c: New file, from glibc.
83481         * lib/argp-fmtstream.c: New file, from glibc.
83482         * lib/argp-fmtstream.h: New file, from glibc.
83483         * lib/argp-fs-xinl.c: New file, from glibc.
83484         * lib/argp-help.c: New file, from glibc.
83485         * lib/argp-namefrob.h: New file, from glibc.
83486         * lib/argp-parse.c: New file, from glibc.
83487         * lib/argp-pv.c: New file, from glibc.
83488         * lib/argp-pvh.c: New file, from glibc.
83489         * lib/argp-xinl.c: New file, from glibc.
83490
83491 2003-06-10  Simon Josefsson  <jas@extundo.com>
83492
83493         * modules/strchrnul: New file.
83494
83495 2003-06-10  Simon Josefsson  <jas@extundo.com>
83496
83497         * modules/argp: New file.
83498
83499 2003-06-10  Simon Josefsson  <jas@extundo.com>
83500
83501         * m4/strchrnul.m4: New file.
83502
83503 2003-06-10  Simon Josefsson  <jas@extundo.com>
83504
83505         * lib/strchrnul.h: New file.
83506         * lib/strchrnul.c: New file.
83507
83508 2003-06-10  Bruno Haible  <bruno@clisp.org>
83509
83510         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
83511
83512 2003-06-07  Karl Berry  <karl@gnu.org>
83513
83514         * config/config.{guess,sub}: update from prep.
83515
83516 2003-06-07  Jim Meyering  <jim@meyering.net>
83517
83518         * modules/strtod: Use $(...) notation, not @...@ for
83519         AC_REPLACE'd variables.
83520         * modules/localcharset: Likewise.
83521
83522 2003-06-07  Jim Meyering  <jim@meyering.net>
83523
83524         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
83525         in place of my name in the copyright comment.
83526         Remove definition and uses of __P.
83527
83528         From coreutils.
83529         * lib/stat.c: Don't declare xmalloc explicitly.
83530         Instead, include "xalloc.h".
83531         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
83532         xrealloc, and xcalloc return values.
83533         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
83534         Improve comment.
83535         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
83536
83537 2003-06-07  Bruno Haible  <bruno@clisp.org>
83538
83539         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
83540         avoid AC_CONFIG_LINKS.
83541         * modules/fnmatch (Makefile.am): Use explicit creation rule for
83542         fnmatch.h, to avoid AC_CONFIG_LINKS.
83543         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
83544
83545 2003-06-07  Bruno Haible  <bruno@clisp.org>
83546
83547         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
83548         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
83549         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
83550         directory.
83551         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
83552         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
83553         directory.
83554
83555 2003-06-06  Jim Meyering  <jim@meyering.net>
83556
83557         Merge from coreutils.
83558         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
83559         Consolidate declarations and initializations of *_base* locals.
83560
83561         Merge from coreutils.
83562         This avoids a core dump on systems without GNU putenv,
83563         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
83564         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
83565         (unsetenv): New static function, from GNU libc.
83566         (rpl_putenv): Use it.
83567
83568         * lib/modechange.c: Remove trailing blanks.
83569
83570         Merge from coreutils.
83571         * lib/fsusage.c: Remove declaration of statfs.
83572         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
83573
83574         * lib/posixtm.c: Include <stdbool.h> unconditionally.
83575
83576 2003-06-06  Jim Meyering  <jim@meyering.net>
83577
83578         * lib/stdbool_.h: Renamed from stdbool.h.in.
83579
83580 2003-06-06  Jim Meyering  <jim@meyering.net>
83581             Bruno Haible  <bruno@clisp.org>
83582
83583         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
83584         Adjust Makefile.am snippet not to redirect directly to target.
83585         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
83586
83587 2003-06-05  Paul Eggert  <eggert@twinsun.com>
83588
83589         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
83590         mismatch, look in future quarters as well as past.  This fixes a
83591         bug when processing fall-backwards gaps immediately after a long
83592         period of daylight-saving time.
83593
83594         * lib/mktime.c: Assume freestanding C89 or better.
83595         (HAVE_LIMITS_H): Remove.  Assume it's 1.
83596         (__P): Remove; not used.
83597         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
83598         (mktime, not_equal_tm, print_tm, check_result,
83599         main): Use prototypes.  Use const * where appropriate.
83600         (main): Fix typo in testing code that uncovered by above changes.
83601         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
83602
83603 2003-06-04  Paul Eggert  <eggert@twinsun.com>
83604
83605         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
83606         locale.h, localeconv.  This merges changes from coreutils.
83607
83608         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
83609         It can be removed after the next Autoconf is released.
83610         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
83611         needed.
83612
83613 2003-06-04  Paul Eggert  <eggert@twinsun.com>
83614
83615         * lib/mktime.c: Fix Debian bug 177940
83616         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
83617         (localtime_offset): Now long int, not time_t, because we want it
83618         to be guaranteed to be signed.  All uses changed.
83619         (__mktime_internal): If overflow would occur when adding offset,
83620         don't add it.
83621
83622         Merge 'human' changes from coreutils.  Rewrite to support
83623         locale-specific notations like thousands separators.
83624         * lib/human.c: Simplify authorship notice.
83625         Include human.h immediately after config.h.
83626         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
83627         <limits.h>: Do not include, since human.h does.
83628         (SIZE_MAX, UINTMAX_MAX): New macros.
83629         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
83630         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
83631         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
83632         (power_letter): Renamed from suffixes.
83633         (generate_suffix_backwards): Remove.
83634         (adjust_value): Now takes int style (because of human.h changes)
83635         and long double value (for greater precision on some platforms).
83636         (group_number): New function.
83637         (human_readable): Use it.  Use integer options, not enum.
83638         Put the options before the sizes in the arg list.
83639         Support all the new options.
83640         The old human_readable function has been removed;
83641         use inttostr.h instead.
83642         (human_readable, default_block_size, humblock):
83643         Use uintmax_t, not int, for block sizes.
83644         (human_readable_inexact, block_size_types): Remove.
83645         (block_size_opts): New constant.
83646         (human_options): Renamed from human_block_size, with new signature
83647         that allows block sizes up to UINTMAX_MAX.  All callers changed.
83648         * lib/human.h: Add copyright and authorship notice.
83649         Include <limits.h> and <stdbool.h> unconditionally.
83650         (PARAMS): Remove.  All uses removed.
83651         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
83652         (enum human_inexact_style): Remove tag; now a nameless enum.
83653         (human_floor, human_ceiling, human_round_to_even): Now have
83654         values 2, 0, 1 rather than -1, 1, 0.
83655         (human_group_digits, human_suppress_point_zero, human_autoscale,
83656         human_base_1024, human_SI, human_B): New constants.
83657         (human_readable_inexact, human_block_size): Remove.
83658         (human_readable): Size args are now uintmax_t, not int.
83659         (human_options): New decl.
83660
83661         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
83662         unnecessary now that we assume C89 or better.  This change
83663         imported from coreutils.
83664
83665         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
83666         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
83667         in the 2003-05-30 sync from glibc.
83668
83669         .h files should stand alone, but we shouldn't include <sys/types.h>
83670         if we can get away with just <stddef.h>.
83671
83672         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
83673         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
83674         rather than <sys/types.h>, as we merely need size_t.
83675         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
83676         to get size_t.
83677         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
83678         Include <stdio.h>, to get FILE.
83679         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
83680         memcasecmp.h has included <stddef.h> and all we need is size_t.
83681         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
83682         our interface, instead of including <sys/types.h>
83683
83684 2003-06-04  Paul Eggert  <eggert@twinsun.com>
83685
83686         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
83687         now, as glibc mktime is buggy on non-glibc systems.
83688
83689 2003-06-03  Karl Berry  <karl@gnu.org>
83690
83691         * config/config.sub: update from prep.
83692
83693 2003-06-02  Paul Eggert  <eggert@twinsun.com>
83694
83695         [from coreutils]
83696         Fix some minor time-related bugs with POSIX time arguments.
83697         Some valid time stamps were being rejected (notably -1, and
83698         time stamps before 1900 on 64-bit hosts).  And some invalid
83699         time stamps were being accepted, e.g. September 31.
83700
83701         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
83702         that we can return (time_t) -1 successfully.
83703         * lib/posixtm.c: Likewise.
83704         [HAVE_STDBOOL_H]: Include <stdbool.h>.
83705         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
83706         (t): Remove static var.
83707         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
83708         of static var.  All uses changed.
83709         (year): Do not reject years before 1900; they can occur with
83710         64-bit time_t.
83711         (posix_time_parse): Do not check for out-of-range components;
83712         that is now the caller's responsibility, since our checks were
83713         only approximations.
83714         (posixtime): Use mktime to check for out-of-range components,
83715         since it knows them exactly.
83716         If mktime returns (time_t) -1, check whether an error actually occurred
83717         by invoking localtime on -1.
83718         (main) [TEST_POSIXTIME]: Check for input data errors, and report
83719         posixtime failures better.
83720         Improve the test data (in comments only).
83721
83722 2003-06-02  Karl Berry  <karl@gnu.org>
83723
83724         * config/mkinstalldirs (version): new variable.
83725         (--version): new option.
83726         (usage): improve message.
83727
83728 2003-05-30  Karl Berry  <karl@gnu.org>
83729
83730         * lib/mktime.c: update from libc.
83731
83732 2003-05-30  Bruno Haible  <bruno@clisp.org>
83733
83734         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
83735         * config/config.rpath: Upgrade to gettext-0.12.1.
83736
83737 2003-05-30  Bruno Haible  <bruno@clisp.org>
83738
83739         * m4/gettext.m4: Upgrade to gettext-0.12.1.
83740         * m4/nls.m4: New file, from gettext-0.12.1.
83741         * m4/po.m4: New file, from gettext-0.12.1.
83742         * m4/progtest.m4: Upgrade to gettext-0.12.1.
83743
83744 2003-05-30  Bruno Haible  <bruno@clisp.org>
83745
83746         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
83747         * lib/localcharset.h: Likewise.
83748         * lib/localcharset.c: Likewise.
83749
83750 2003-05-29  Karl Berry  <karl@gnu.org>
83751
83752         * config/config.rpath: update from gettext.
83753
83754 2003-05-28  Paul Eggert  <eggert@twinsun.com>
83755
83756         Assume the headers required for C89 freestanding compilers.
83757         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
83758         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
83759         * m4/human.m4 (gl_HUMAN): Likewise.
83760         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
83761         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
83762         * m4/userspec.m4 (gl_USERSPEC): Likewise.
83763         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
83764         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
83765         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
83766
83767 2003-05-28  Paul Eggert  <eggert@twinsun.com>
83768
83769         Assume the headers required for C89 freestanding compilers.
83770         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
83771         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
83772         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
83773         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
83774         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
83775         define, since <limits.h> is guaranteed to do that.
83776         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
83777         * lib/exclude.c: Include <stdbool.h> unconditionally.
83778         * lib/tempname.c: Include <stddef.h> unconditionally.
83779         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
83780         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
83781         <stddef.h> does that.
83782         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
83783         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
83784         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
83785         needed.
83786         * lib/xstrtol.c: Likewise.
83787         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
83788         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
83789
83790         * lib/addext.c (addext): Use assignment rather than cast, to avoid
83791         warnings on some platforms.
83792
83793         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
83794         arbitrarily.
83795
83796 2003-05-26  Jim Meyering  <jim@meyering.net>
83797
83798         Merge in a change from coreutils:
83799         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
83800         that is guaranteed to be `no'.  Use `no_such_member' to indicate
83801         that condition, rather than `-1' which is slightly misleading.
83802         Change the name of the cache variable to have the gl_ prefix.
83803         Prompted by a patch from Richard Dawe for DJGPP.
83804
83805 2003-05-24  Karl Berry  <karl@gnu.org>
83806
83807         * config/config.guess: update from prep.
83808
83809 2003-05-22  Karl Berry  <karl@gnu.org>
83810
83811         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
83812
83813 2003-05-20  Karl Berry  <karl@gnu.org>
83814
83815         * config/config.guess: update from prep.
83816
83817 2003-05-18  Karl Berry  <karl@gnu.org>
83818
83819         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
83820         might actually be set by the user.
83821
83822         * config/depcomp, install-sh, mdate-sh: update from automake.
83823
83824 2003-05-17  Bruno Haible  <bruno@clisp.org>
83825
83826         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
83827         invalid expansion for AC_EGREP_CPP.
83828         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
83829         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
83830         Suggested by Akim Demaille <akim@epita.fr> in
83831         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
83832
83833 2003-05-12  Jim Meyering  <jim@meyering.net>
83834
83835         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
83836         the space-padded-by-default conversion specifiers, %e, %k, %l.
83837
83838 2003-05-12  Bruno Haible  <bruno@clisp.org>
83839
83840         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
83841         the string is longer than 4 KB.
83842
83843 2003-05-11  Karl Berry  <karl@gnu.org>
83844
83845         * config/config.{guess,sub}: update from prep.
83846
83847 2003-05-09  Bruno Haible  <bruno@clisp.org>
83848
83849         * modules/error: Add m4/strerror_r.m4 to file list.
83850
83851 2003-05-03  Bruno Haible  <bruno@clisp.org>
83852
83853         Upgrade to Unicode-4.0.
83854         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
83855         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
83856         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
83857         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
83858         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
83859         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
83860         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
83861         Change width of U+E0100..U+E01EF from 1 to 0.
83862
83863 2003-04-25  Jim Meyering  <jim@meyering.net>
83864
83865         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
83866         of type size_t, not int.
83867
83868 2003-04-25  Bruno Haible  <bruno@clisp.org>
83869
83870         * lib/copy-file.c: Include <stddef.h>, for size_t.
83871
83872 2003-04-21  Paul Eggert  <eggert@twinsun.com>
83873
83874         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
83875         code which expansion is under static control.  Patch imported from
83876         Akim Demaille's patch to Bison; see
83877         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
83878
83879 2003-04-14  Bruno Haible  <bruno@clisp.org>
83880
83881         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
83882
83883 2003-04-11  Jim Meyering  <jim@meyering.net>
83884
83885         Merge changes from Coreutils.
83886
83887         2003-03-22  Jim Meyering  <jim@meyering.net>
83888
83889         * lib/strftime.c (widen): Cast alloca return value to proper type.
83890
83891         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
83892
83893         From GNU libc.
83894         * lib/strftime.c (my_strftime): Handle very large width
83895         specifications for numeric values correctly.  Improve checks for
83896         overflow.
83897
83898         2003-01-19  Jim Meyering  <jim@meyering.net>
83899
83900         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
83901         definitions.
83902         (nl_get_alt_digit) [! defined my_strftime]: Define.
83903         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
83904         _nl_get_alt_digit and _nl_get_walt_digit.
83905
83906         * lib/strftime.c (my_strftime): Merge in locale-related changes from
83907         libc. These changes have no effect outside of _LIBC.
83908
83909 2003-04-10  Bruno Haible  <bruno@clisp.org>
83910
83911         * modules/findprog: New file.
83912         * MODULES.html.sh (func_all_modules): Add it.
83913
83914 2003-04-10  Bruno Haible  <bruno@clisp.org>
83915
83916         * m4/findprog.m4: New file.
83917         * m4/eaccess.m4: New file.
83918
83919 2003-04-10  Bruno Haible  <bruno@clisp.org>
83920
83921         * lib/findprog.h: New file, from GNU gettext.
83922         * lib/findprog.c: New file, from GNU gettext.
83923
83924 2003-04-05  Jim Meyering  <jim@meyering.net>
83925
83926         Merge changes from Coreutils.
83927
83928         * lib/exclude.h (PARAMS): Remove definition and uses.
83929         * lib/exclude.c: Remove uses of `PARAMS'.
83930
83931         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
83932         Add test-cases for DOS filenames. Declare program_name.
83933         (main): Set up program_name.  Patch by Rich Dawe.
83934
83935         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
83936         error from mntctl.
83937         Use mntctl's return value to drive the entry-processing loop, since
83938         we can't rely on the value of the vmt_length member in the last
83939         entry.  On some systems doing so could result in exhausting
83940         virtual memory.  Based in part on a patch from Mike Jetzer.
83941
83942 2003-04-04  Bruno Haible  <bruno@clisp.org>
83943
83944         * modules/linebreak: New file.
83945         * MODULES.html.sh (func_all_modules): Add it.
83946
83947 2003-04-04  Bruno Haible  <bruno@clisp.org>
83948
83949         * m4/linebreak.m4: New file.
83950
83951 2003-04-04  Bruno Haible  <bruno@clisp.org>
83952
83953         * lib/linebreak.h: New file, from GNU gettext.
83954         * lib/linebreak.c: New file, from GNU gettext with slight
83955         modifications.
83956         * lib/lbrkprop.h: New file, from GNU gettext.
83957
83958 2003-04-03  Bruno Haible  <bruno@clisp.org>
83959
83960         * modules/utf8-ucs4: New file.
83961         * modules/utf16-ucs4: New file.
83962         * modules/ucs4-utf8: New file.
83963         * modules/ucs4-utf16: New file.
83964         * MODULES.html.sh (func_all_modules): Add them.
83965
83966 2003-04-03  Bruno Haible  <bruno@clisp.org>
83967
83968         * m4/utf-ucs4.m4: New file.
83969         * m4/ucs4-utf.m4: New file.
83970
83971 2003-04-03  Bruno Haible  <bruno@clisp.org>
83972
83973         * lib/utf8-ucs4.h: New file, from GNU gettext.
83974         * lib/utf16-ucs4.h: New file, from GNU gettext.
83975         * lib/ucs4-utf8.h: New file, from GNU gettext.
83976         * lib/ucs4-utf16.h: New file, from GNU gettext.
83977
83978 2003-04-02  Bruno Haible  <bruno@clisp.org>
83979
83980         * modules/binary-io: New file.
83981         * MODULES.html.sh (func_all_modules): Add it.
83982
83983 2003-04-02  Bruno Haible  <bruno@clisp.org>
83984
83985         * lib/binary-io.h: New file, from GNU gettext.
83986
83987 2003-04-01  Bruno Haible  <bruno@clisp.org>
83988
83989         * modules/pathname: New file.
83990         * MODULES.html.sh (func_all_modules): Add it.
83991
83992 2003-04-01  Bruno Haible  <bruno@clisp.org>
83993
83994         * lib/pathname.h: New file, from GNU gettext.
83995         * lib/concatpath.c: New file, from GNU gettext.
83996
83997 2003-03-30  Bruno Haible  <bruno@clisp.org>
83998
83999         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
84000
84001 2003-03-30  Bruno Haible  <bruno@clisp.org>
84002
84003         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
84004         function chown() doesn't exist.
84005
84006 2003-03-28  Bruno Haible  <bruno@clisp.org>
84007
84008         * modules/copy-file: New file.
84009         * MODULES.html.sh (func_all_modules): Add it.
84010
84011 2003-03-28  Bruno Haible  <bruno@clisp.org>
84012
84013         * m4/copy-file.m4: New file.
84014
84015 2003-03-28  Bruno Haible  <bruno@clisp.org>
84016
84017         * lib/copy-file.h: New file, from GNU gettext.
84018         * lib/copy-file.c: New file, from GNU gettext.
84019
84020 2003-03-18  Jim Meyering  <jim@meyering.net>
84021
84022         * lib/quote.c (quote_n): Fix typo in comment.
84023
84024 2003-03-18  Bruno Haible  <bruno@clisp.org>
84025
84026         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
84027         checking.
84028         * m4/onceonly_2_57.m4: Likewise.
84029
84030 2003-03-17  Bruno Haible  <bruno@clisp.org>
84031
84032         * m4/onceonly.m4: Require autoconf 2.54 or newer.
84033         (m4_quote): Remove macro.
84034         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
84035
84036 2003-03-14  Jim Meyering  <jim@meyering.net>
84037
84038         Merge changes from Coreutils.
84039         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
84040         to be const, in order to avoid warnings.
84041         (obstack_room): Likewise.
84042         (obstack_empty_p): Likewise.
84043
84044 2003-03-14  Bruno Haible  <bruno@clisp.org>
84045
84046         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
84047         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
84048
84049 2003-03-13  Paul Eggert  <eggert@twinsun.com>
84050
84051         Merge changes from Bison.
84052         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
84053         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
84054         when compiling Bison 1.875's `bitset bset = obstack_alloc
84055         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
84056         * lib/hash.c: Include <stdbool.h> unconditionally.
84057
84058 2003-03-13  Paul Eggert  <eggert@twinsun.com>
84059
84060         * m4/onceonly.m4 (m4_quote): New macro.
84061         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
84062         Quote AC_FOREACH variable-expansions properly.
84063
84064 2003-03-13  Paul Eggert  <eggert@twinsun.com>
84065
84066         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
84067
84068 2003-03-09  Paul Eggert  <eggert@twinsun.com>
84069
84070         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
84071         Reported by Bruce Becker; see:
84072         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
84073
84074 2003-03-03  Paul Eggert  <eggert@twinsun.com>
84075             Bruno Haible  <bruno@clisp.org>
84076
84077         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
84078         Reported by John Hughes, see
84079         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
84080
84081 2003-02-20  Bruno Haible  <bruno@clisp.org>
84082
84083         * MODULES.html.sh (func_all_modules): Add poll.
84084
84085 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
84086
84087         * modules/poll: New file.
84088
84089 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
84090
84091         * lib/poll_.h: New file.
84092         * lib/poll.c: New file.
84093
84094 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
84095
84096         * m4/poll.m4: New file.
84097
84098 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
84099
84100         * modules/mathl: New file.
84101
84102 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
84103
84104         * lib/mathl.h: New file.
84105         * lib/acosl.c: New file.
84106         * lib/asinl.c: New file.
84107         * lib/atanl.c: New file.
84108         * lib/ceill.c: New file.
84109         * lib/cosl.c: New file.
84110         * lib/expl.c: New file.
84111         * lib/floorl.c: New file.
84112         * lib/frexpl.c: New file.
84113         * lib/ldexpl.c: New file.
84114         * lib/logl.c: New file.
84115         * lib/sincosl.c: New file.
84116         * lib/sinl.c: New file.
84117         * lib/sqrtl.c: New file.
84118         * lib/tanl.c: New file.
84119         * lib/trigl.c: New file.
84120         * lib/trigl.h: New file.
84121
84122 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
84123
84124         * m4/mathl.m4: New file.
84125
84126 2003-02-18  Bruno Haible  <bruno@clisp.org>
84127
84128         * MODULES.html.sh (func_all_modules): Add mathl.
84129
84130 2003-02-17  Bruno Haible  <bruno@clisp.org>
84131
84132         * modules/mkdtemp: New module.
84133         * MODULES.html.sh (func_all_modules): Add it.
84134
84135 2003-02-17  Bruno Haible  <bruno@clisp.org>
84136
84137         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
84138
84139 2003-02-17  Bruno Haible  <bruno@clisp.org>
84140
84141         * lib/mkdtemp.h: New file, from GNU gettext.
84142         * lib/mkdtemp.c: New file, from GNU gettext.
84143
84144 2003-02-02  Jim Meyering  <jim@meyering.net>
84145
84146         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
84147         e.g. glibc-2.2.93.
84148
84149 2003-01-31  Bruno Haible  <bruno@clisp.org>
84150
84151         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
84152         'rpl_rename'.
84153         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
84154         'rpl_strnlen'.
84155         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
84156         'rpl_strtod'.
84157         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
84158         'rpl_utime'.
84159
84160 2003-01-31  Bruno Haible  <bruno@clisp.org>
84161
84162         * lib/rename.c: #undef rename before defining rpl_rename.
84163         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
84164
84165 2003-01-30  Bruno Haible  <bruno@clisp.org>
84166
84167         * modules/vasnprintf, modules/vasprintf: New modules.
84168         * MODULES.html.sh (func_all_modules): Add them.
84169
84170 2003-01-30  Bruno Haible  <bruno@clisp.org>
84171
84172         * m4/signed.m4: New file, from GNU gettext.
84173         * m4/longdouble.m4: New file, from GNU gettext.
84174         * m4/wchar_t.m4: New file, from GNU gettext.
84175         * m4/wint_t.m4: New file, from GNU gettext.
84176         * m4/vasnprintf.m4: New file.
84177         * m4/vasprintf.m4: New file.
84178
84179 2003-01-30  Bruno Haible  <bruno@clisp.org>
84180
84181         * lib/printf-args.h: New file, from GNU gettext.
84182         * lib/printf-args.c: New file, from GNU gettext.
84183         * lib/printf-parse.h: New file, from GNU gettext.
84184         * lib/printf-parse.c: New file, from GNU gettext.
84185         * lib/vasnprintf.h: New file, from GNU gettext.
84186         * lib/vasnprintf.c: New file, from GNU gettext.
84187         * lib/asnprintf.c: New file, from GNU gettext.
84188         * lib/vasprintf.h: New file, from GNU gettext with modifications.
84189         * lib/vasprintf.c: New file, from GNU gettext.
84190         * lib/asprintf.c: New file, from GNU gettext.
84191
84192 2003-01-29  Bruno Haible  <bruno@clisp.org>
84193
84194         * modules/stpncpy: New module.
84195         * MODULES.html.sh (func_all_modules): Add it.
84196
84197 2003-01-29  Bruno Haible  <bruno@clisp.org>
84198
84199         * m4/stpncpy.m4: New file.
84200
84201 2003-01-29  Bruno Haible  <bruno@clisp.org>
84202
84203         * lib/stpncpy.h: New file, from GNU gettext with modifications.
84204         * lib/stpncpy.c: New file, from GNU gettext with modifications.
84205
84206 2003-01-28  Bruno Haible  <bruno@clisp.org>
84207
84208         * modules/c-ctype: New module.
84209         * MODULES.html.sh (func_all_modules): Add it.
84210
84211 2003-01-28  Bruno Haible  <bruno@clisp.org>
84212
84213         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
84214         Paul Eggert.
84215         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
84216         Paul Eggert.
84217
84218 2003-01-27  Bruno Haible  <bruno@clisp.org>
84219
84220         * modules/xsetenv: New module.
84221         * MODULES.html.sh (func_all_modules): Add it.
84222
84223 2003-01-27  Bruno Haible  <bruno@clisp.org>
84224
84225         * lib/xsetenv.h: New file, from GNU gettext.
84226         * lib/xsetenv.c: New file, from GNU gettext.
84227
84228 2003-01-23  Jim Meyering  <jim@meyering.net>
84229
84230         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
84231         from working on systems without dirfd (at least Irix and OSF1/Tru64).
84232
84233 2003-01-23  Bruno Haible  <bruno@clisp.org>
84234
84235         * modules/minmax: New module.
84236         * MODULES.html.sh (func_all_modules): Add it.
84237
84238 2003-01-23  Bruno Haible  <bruno@clisp.org>
84239
84240         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
84241         Eggert.
84242
84243 2003-01-22  Bruno Haible  <bruno@clisp.org>
84244
84245         * modules/exit: New module.
84246         * MODULES.html.sh (func_all_modules): Add it.
84247
84248 2003-01-22  Bruno Haible  <bruno@clisp.org>
84249
84250         * lib/exit.h: New file, from GNU gettext.
84251
84252 2003-01-19  Bruno Haible  <bruno@clisp.org>
84253
84254         * gnulib-tool: Recognize option --extract-maintainer.
84255         (func_get_maintainer): New function.
84256         * modules/*: Add Maintainer entry.
84257
84258 2003-01-16  Jim Meyering  <jim@meyering.net>
84259
84260         * m4/regex.m4: The `regex' struct is both input and output.
84261         Initialize it before each use.  Patch by Tim Waugh.
84262
84263 2003-01-16  Bruno Haible  <bruno@clisp.org>
84264
84265         * MODULES.html.sh: Add a table of contents. Add the module name as
84266         leftmost column. Add hyperlinks.
84267
84268 2003-01-15  Bruno Haible  <bruno@clisp.org>
84269
84270         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
84271
84272 2003-01-15  Bruno Haible  <bruno@clisp.org>
84273
84274         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
84275         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
84276         suffix.
84277
84278 2003-01-15  Bruno Haible  <bruno@clisp.org>
84279
84280         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
84281
84282 2003-01-15  Bruno Haible  <bruno@clisp.org>
84283
84284         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
84285         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
84286
84287 2003-01-14  Jim Meyering  <jim@meyering.net>
84288
84289         * lib/same.c (same_name): Tweak a comment.
84290
84291 2003-01-14  Bruno Haible  <bruno@clisp.org>
84292
84293         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
84294         when a string comparison is sufficient.
84295
84296 2003-01-14  Bruno Haible  <bruno@clisp.org>
84297
84298         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
84299         'unsigned int'.
84300
84301 2003-01-14  Bruno Haible  <bruno@clisp.org>
84302
84303         * lib/hash-pjw.c: Add comment about low quality of this function.
84304
84305 2003-01-13  Bruno Haible  <bruno@clisp.org>
84306
84307         * modules/stpcpy: Distribute lib/stpcpy.h.
84308         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
84309
84310 2003-01-13  Bruno Haible  <bruno@clisp.org>
84311
84312         * modules/*: Add a description.
84313         * modules/strpbrk: Fix Makefile.am snippet.
84314         * modules/strtoimax: Fix dependencies.
84315         * modules/strtoumax: Likewise.
84316
84317 2003-01-13  Bruno Haible  <bruno@clisp.org>
84318
84319         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
84320         * modules/alloca (Makefile.am): All object files depend on alloca.h.
84321         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
84322
84323 2003-01-13  Bruno Haible  <bruno@clisp.org>
84324
84325         * gnulib-tool (func_create_testdir): Store config/* files in the main
84326         directory.
84327         * config.rpath: Move to ...
84328         * config/config.rpath: ... here.
84329         * modules/gettext: Contains config/config.rpath, not config.rpath.
84330         * modules/iconv: Likewise.
84331
84332 2003-01-12  Paul Eggert  <eggert@twinsun.com>
84333
84334         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
84335         to avoid collisions with libcurses and libreadline.
84336
84337         * m4/getstr.m4: Remove.
84338         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
84339
84340 2003-01-12  Paul Eggert  <eggert@twinsun.com>
84341
84342         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
84343         to avoid collisions with libcurses and libreadline.
84344
84345         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
84346         * lib/getstr.h, getstr.c: Remove.
84347         * lib/getline.c: Include "getline.h", to check interface.
84348         Move body of old getstr.c here: this defines MIN_CHUNK and
84349         declares getdelim2, which is renamed from getstr.
84350         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
84351
84352         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
84353         All uses changed.
84354         * lib/linebuffer.h: Likewise.
84355         (readline): Remove backward-compatibility macro.
84356
84357 2003-01-12  Paul Eggert  <eggert@twinsun.com>
84358
84359         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
84360         to avoid collisions with libcurses and libreadline.
84361         * getstr: Remove.
84362         * MODULES.html.sh: Remove getstr.
84363         * modules/getline: Depend on unlocked-io, not getstr.
84364
84365 2003-01-12  Jim Meyering  <jim@meyering.net>
84366
84367         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
84368
84369 2003-01-10  Bruno Haible  <bruno@clisp.org>
84370
84371         * modules/alloca: Change Makefile.am requirements. Simplify Include
84372         requirements. Add lib/alloca_.h to file list.
84373
84374 2003-01-10  Bruno Haible  <bruno@clisp.org>
84375
84376         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
84377
84378 2003-01-10  Bruno Haible  <bruno@clisp.org>
84379
84380         * lib/alloca_.h: New file.
84381         * lib/getdate.y: Unconditionally include alloca.h.
84382         * lib/makepath.c: Likewise.
84383         * lib/setenv.c: Likewise.
84384         * lib/userspec.c: Likewise.
84385
84386 2003-01-09  Karl Berry  <karl@gnu.org>
84387
84388         * MODULES.html.sh: include `dirname $0` in PATH, to find
84389         gnulib-tool.
84390
84391 2003-01-09  Bruno Haible  <bruno@clisp.org>
84392
84393         * modules/stdbool: Change configure.ac, Makefile.am requirements.
84394         Simplify Include requirements. Add lib/stdbool.h.in to file list.
84395
84396 2003-01-09  Bruno Haible  <bruno@clisp.org>
84397
84398         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
84399
84400 2003-01-09  Bruno Haible  <bruno@clisp.org>
84401
84402         * lib/stdbool.h.in: New file.
84403
84404 2003-01-09  Bruno Haible  <bruno@clisp.org>
84405
84406         * gnulib-tool (func_all_modules): Ignore files ending in ~.
84407         * MODULES.html.sh: Likewise.
84408
84409 2003-01-08  Jim Meyering  <jim@meyering.net>
84410
84411         * lib/full-write.c: Undefine and define-away `const' after inclusion
84412         of errno.h, not before.  Suggestion from Bruno Haible.
84413
84414 2003-01-08  Bruno Haible  <bruno@clisp.org>
84415
84416         * modules/full-read: Depend on full-write.
84417
84418 2003-01-08  Bruno Haible  <bruno@clisp.org>
84419
84420         * lib/safe-read.c: Include specification header first, to ensure its
84421         selfcontainedness.
84422         * lib/full-write.c: Likewise.
84423
84424 2003-01-07  Jim Meyering  <jim@meyering.net>
84425
84426         * lib/full-write.c: Rework so that it may serve to define full_read,
84427         too.
84428         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
84429
84430 2003-01-07  Bruno Haible  <bruno@clisp.org>
84431
84432         * lib/strtoimax.c: Include <stdint.h> as an alternative to
84433         <inttypes.h>.
84434         * lib/xstrtol.h: Likewise.
84435         * lib/xstrtoimax.c: Likewise.
84436         * lib/xstrtoumax.c: Likewise.
84437         * lib/human.h: Likewise.
84438
84439         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
84440         on systems that have <inttypes.h> but not <stdint.h>.
84441
84442 2003-01-07  Bruno Haible  <bruno@clisp.org>
84443
84444         * MODULES.html.sh: Add copyright notice.
84445         (missed_files): Omit CVS directory entries.
84446         (func_module): Make it work with sed-3.02.
84447         * MODULES.txt: Remove file.
84448
84449 2003-01-06  Jim Meyering  <jim@meyering.net>
84450
84451         * lib/version-etc.c: Update year in translatable copyright string.
84452
84453 2003-01-03  Karl Berry  <karl@gnu.org>
84454
84455         * config/config.{guess,sub}: update from prep.
84456
84457 2003-01-02  Karl Berry  <karl@gnu.org>
84458
84459         * doc/COPYING.DOC: belatedly updated to 1.2.
84460
84461 2003-01-01  Karl Berry  <karl@gnu.org>
84462
84463         * gnulib-tool (func_verify_module): report module name $module in
84464         error message, not $1.
84465         * gnulib-tool (create-testdir): don't complain if destdir couldn't
84466         be created, only if it doesn't exist.
84467         * gnulib-tool (last_checkin_date): don't expand the $Date here.
84468
84469 2002-12-31  Paul Eggert  <eggert@twinsun.com>
84470
84471         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
84472
84473 2002-12-31  Paul Eggert  <eggert@twinsun.com>
84474
84475         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
84476         memcmp if strcoll doesn't work.
84477
84478 2002-12-31  Bruno Haible  <bruno@clisp.org>
84479
84480         * lib/utime.c (utime_null): No need to call ftruncate if the file was
84481         nonempty.
84482
84483 2002-12-31  Bruno Haible  <bruno@clisp.org>
84484
84485         * lib/memcoll.c (STRCOLL): New macro.
84486         (memcoll): Use it.
84487
84488 2002-12-31  Bruno Haible  <bruno@clisp.org>
84489
84490         * lib/localcharset.h: New file.
84491         * lib/localcharset.c: Include it.
84492         * lib/unicodeio.c: Likewise.
84493
84494 2002-12-31  Bruno Haible  <bruno@clisp.org>
84495
84496         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
84497         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
84498
84499 2002-12-31  Bruno Haible  <bruno@clisp.org>
84500
84501         * lib/getline.h: Include <stddef.h>, for size_t.
84502
84503         * lib/unicodeio.h: Include <stddef.h>, for size_t.
84504         * lib/unicodeio.c: Don't include <stddef.h>.
84505
84506 2002-12-31  Bruno Haible  <bruno@clisp.org>
84507
84508         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
84509         HAVE_TM_ZONE.
84510
84511 2002-12-24  Karl Berry  <karl@gnu.org>
84512
84513         * config/config.guess: update from prep.
84514
84515 2002-12-24  Bruno Haible  <bruno@clisp.org>
84516
84517         General infrasructure.
84518         * m4/README: Rewritten.
84519         * m4/onceonly.m4: New file.
84520         * m4/onceonly_2_57.m4: New file.
84521
84522         Module atexit.
84523         * m4/atexit.m4: New file.
84524
84525         Module strtod.
84526         * m4/strtod.m4: New file.
84527
84528         Module strtol.
84529         * m4/strtol.m4: New file.
84530
84531         Module strtoul.
84532         * m4/strtoul.m4: New file.
84533
84534         Module memchr.
84535         * m4/memchr.m4: New file.
84536
84537         Module memcmp.
84538         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
84539         (jm_FUNC_MEMCMP): Invoke it.
84540
84541         Module memcpy.
84542         * m4/memcpy.m4: New file.
84543
84544         Module memmove.
84545         * m4/memmove.m4: New file.
84546
84547         Module memset.
84548         * m4/memset.m4: New file.
84549
84550         Module strcspn.
84551         * m4/strcspn.m4: New file.
84552
84553         Module strpbrk.
84554         * m4/strpbrk.m4: New file.
84555
84556         Module strstr.
84557         * m4/strstr.m4: New file.
84558
84559         Module strerror.
84560         * m4/strerror.m4: New file.
84561
84562         Module mktime.
84563         * m4/mktime.m4: Renamed from jm-mktime.m4.
84564         (gl_PREREQ_MKTIME): New macro.
84565         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
84566
84567         Module malloc.
84568         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
84569         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
84570         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
84571
84572         Module realloc.
84573         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
84574         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
84575         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
84576
84577         Module strftime.
84578         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
84579         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
84580         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
84581         gl_TM_GMTOFF.
84582         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
84583
84584         Module xalloc.
84585         * m4/xalloc.m4: New file.
84586
84587         Module alloca.
84588         * m4/alloca.m4: New file.
84589
84590         Module putenv.
84591         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
84592         (jm_FUNC_PUTENV): Invoke it.
84593
84594         Module setenv.
84595         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
84596         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
84597         when invoked twice.
84598         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
84599         gt_FUNC_SETENV.
84600
84601         Module memrchr.
84602         * m4/memrchr.m4: New file.
84603
84604         Module stpcpy.
84605         * m4/stpcpy.m4: New file.
84606
84607         Module strcase.
84608         * m4/strcase.m4: New file.
84609
84610         Module strdup.
84611         * m4/strdup.m4: New file.
84612
84613         Module strnlen.
84614         * m4/strnlen.m4: New file.
84615
84616         Module strndup.
84617         * m4/strndup.m4: New file.
84618
84619         Module xstrtod.
84620         * m4/xstrtod.m4: New file.
84621
84622         Module xstrtol.
84623         * m4/xstrtol.m4: New file.
84624
84625         Module getdate.
84626         * m4/getdate.m4: New file.
84627
84628         Module unlocked-io.
84629         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
84630         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
84631         * m4/jm-glibc-io.m4n: Remove file.
84632
84633         Module long-options.
84634         * m4/long-options.m4: New file.
84635
84636         Module md5.
84637         * m4/md5.m4: New file.
84638
84639         Module sha.
84640         * m4/sha.m4: New file.
84641
84642         Module getstr.
84643         * m4/getstr.m4: New file.
84644
84645         Module getline.
84646         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
84647         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
84648         <sys/types.h>, for size_t. Use the function name gnu_getline, not
84649         simply getline. Infoke gl_PREREQ_GETLINE.
84650
84651         Module obstack.
84652         * m4/obstack.m4: New file.
84653
84654         Module hash.
84655         * m4/hash.m4: New file.
84656
84657         Module readtokens.
84658         * m4/readtokens.m4: New file.
84659
84660         Module strverscmp.
84661         * m4/strverscmp.m4: New file.
84662
84663         Module stdbool.
84664         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
84665         OSF/1.
84666
84667         Module strtoll.
84668         * m4/strtoll.m4: New file.
84669
84670         Module strtoull.
84671         * m4/strtoull.m4: New file.
84672
84673         Module strtoimax.
84674         * m4/strtoimax.m4: New file.
84675
84676         Module strtoumax.
84677         * m4/strtoumax.m4: New file.
84678
84679         Module xstrtoimax.
84680         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
84681         jm_AC_PREREQ_XSTRTOIMAX.
84682         Moved the strtol prerequisites to strtol.m4.
84683         Moved the strtoll prerequisites to strtoll.m4.
84684         Moved the strtoimax prerequisites to strtoimax.m4.
84685
84686         Module xstrtoumax.
84687         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
84688         jm_AC_PREREQ_XSTRTOUMAX.
84689         Moved the strtoul prerequisites to strtoul.m4.
84690         Moved the strtoull prerequisites to strtoull.m4.
84691         Moved the strtoumax prerequisites to strtoumax.m4.
84692
84693         Module chown.
84694         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
84695         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
84696
84697         Module dup2.
84698         * m4/dup2.m4: New file.
84699
84700         Module ftruncate.
84701         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
84702         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
84703
84704         Module getgroups.
84705         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
84706         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
84707
84708         Module gettimeofday.
84709         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
84710         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
84711         gl_PREREQ_GETTIMEOFDAY.
84712
84713         Module mkdir.
84714         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
84715         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
84716
84717         Module mkstemp.
84718         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
84719         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
84720         jm_AC_TYPE_UINTMAX_T.
84721         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
84722
84723         Module stat.
84724         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
84725         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
84726
84727         Module lstat.
84728         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
84729         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
84730
84731         Module timespec.
84732         * m4/timespec.m4 (gl_TIMESPEC): New macro.
84733         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
84734         * m4/st_mtim.m4: Indentation.
84735
84736         Module nanosleep.
84737         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
84738         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
84739         gl_PREREQ_NANOSLEEP.
84740
84741         Module regex.
84742         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
84743         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
84744         (gl_REGEX): New macro.
84745
84746         Module rename.
84747         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
84748         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
84749
84750         Module rmdir.
84751         * m4/rmdir.m4: New file.
84752
84753         Module utime.
84754         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
84755         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
84756         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
84757
84758         Module dirname.
84759         * m4/dirname.m4: New file.
84760
84761         Module getopt.
84762         * m4/getopt.m4: New file.
84763
84764         Module unistd-safer.
84765         * m4/unistd-safer.m4: New file.
84766
84767         Module fnmatch.
84768         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
84769         declaration.
84770         (gl_PREREQ_FNMATCH_EXTRA): New macro.
84771         (gl_FUNC_FNMATCH_POSIX): New macro.
84772         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
84773         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
84774         simply fnmatch.
84775
84776         Module exclude.
84777         * m4/exclude.m4: New file.
84778
84779         Module human.
84780         * m4/human.m4: New file.
84781
84782         Module acl.
84783         * m4/acl.m4: Nop.
84784
84785         Module backupfile.
84786         * m4/backupfile.m4: New file.
84787         * m4/d-ino.m4: Indentation.
84788
84789         Module fsusage.
84790         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
84791         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
84792         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
84793
84794         Module dirfd.
84795         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
84796         requirements.
84797
84798         Module euidaccess.
84799         * m4/euidaccess.m4: New file.
84800
84801         Module file-type.
84802         * m4/file-type.m4: New file.
84803
84804         Module fileblocks.
84805         * m4/fileblocks.m4: New file.
84806
84807         Module filemode.
84808         * m4/filemode.m4: New file.
84809
84810         Module isdir.
84811         * m4/isdir.m4: New file.
84812
84813         Module lchown.
84814         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
84815         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
84816
84817         Module makepath.
84818         * m4/makepath.m4: New file.
84819
84820         Module modechange.
84821         * m4/modechange.m4: New file.
84822
84823         Module mountlist.
84824         * m4/mountlist.m4: New file.
84825         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
84826         Indentation.
84827
84828         Module path-concat.
84829         * m4/path-concat.m4: New file.
84830
84831         Module pathmax.
84832         * m4/pathmax.m4: New file.
84833
84834         Module same.
84835         * m4/same.m4: New file.
84836
84837         Module save-cwd.
84838         * m4/save-cwd.m4: New file.
84839
84840         Module savedir.
84841         * m4/savedir.m4: New file.
84842
84843         Module xgetcwd.
84844         * m4/xgetcwd.m4: New file.
84845         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
84846
84847         Module xreadlink.
84848         * m4/xreadlink.m4: New file.
84849
84850         Module safe-read.
84851         * m4/safe-read.m4: New file.
84852
84853         Module safe-write.
84854         * m4/safe-write.m4: New file.
84855
84856         Module closeout.
84857         * m4/closeout.m4: New file.
84858
84859         Module stdio-safer.
84860         * m4/stdio-safer.m4: New file.
84861
84862         Module getpass.
84863         * m4/getpass.m4: New file.
84864
84865         Module getugroups.
84866         * m4/getugroups.m4: New file.
84867
84868         Module group-member.
84869         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
84870         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
84871
84872         Module idcache.
84873         * m4/idcache.m4: New file.
84874
84875         Module userspec.
84876         * m4/userspec.m4: New file.
84877
84878         Module gettime.
84879         * m4/clock_time.m4: New file.
84880         * m4/gettime.m4: New file.
84881
84882         Module settime.
84883         * m4/settime.m4: New file.
84884
84885         Module posixtm.
84886         * m4/posixtm.m4: New file.
84887
84888         Module gethostname.
84889         * m4/gethostname.m4: New file.
84890
84891         Module canon-host.
84892         * m4/canon-host.m4: New file.
84893
84894         Module gettext.
84895         * m4/codeset.m4: New file, from gettext-0.11.5.
84896         * m4/gettext.m4: New file, from gettext-0.11.5.
84897         * m4/glibc21.m4: New file, from gettext-0.11.5.
84898         * m4/iconv.m4: New file, from gettext-0.11.5.
84899         * m4/intdiv0.m4: New file, from gettext-0.11.5.
84900         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
84901         * m4/inttypes.m4: New file, from gettext-0.11.5.
84902         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
84903         * m4/isc-posix.m4: New file, from gettext-0.11.5.
84904         * m4/lcmessage.m4: New file, from gettext-0.11.5.
84905         * m4/lib-ld.m4: New file, from gettext-0.11.5.
84906         * m4/lib-link.m4: New file, from gettext-0.11.5.
84907         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
84908         * m4/progtest.m4: New file, from gettext-0.11.5.
84909         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
84910         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
84911         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
84912
84913         Module localcharset.
84914         * m4/localcharset.m4: New file.
84915
84916         Module hard-locale.
84917         * m4/hard-locale.m4: New file.
84918
84919         Module mbswidth.
84920         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
84921         onceonly macros.
84922         * m4/mbrtowc.m4: Add comment.
84923
84924         Module memcasecmp.
84925         * m4/memcasecmp.m4: New file.
84926
84927         Module memcoll.
84928         * m4/memcoll.m4: New file.
84929
84930         Module unicodeio.
84931         * m4/unicodeio.m4: New file.
84932
84933         Module rpmatch.
84934         * m4/rpmatch.m4: New file.
84935
84936         Module yesno.
84937         * m4/yesno.m4: New file.
84938
84939         Module exitfail.
84940         * m4/exitfail.m4: New file.
84941
84942         Module c-stack.
84943         * m4/c-stack.m4 (gl_C_STACK): New macro.
84944         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
84945
84946         Module error.
84947         * m4/error.m4 (gl_ERROR): New macro.
84948         (jm_PREREQ_ERROR): Use onceonly macros.
84949
84950         Module fatal.
84951         * m4/fatal.m4: New file.
84952
84953         Module getloadavg.
84954         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
84955         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
84956
84957         Module getpagesize.
84958         * m4/getpagesize.m4: New file.
84959
84960         Module getusershell.
84961         * m4/getusershell.m4: New file.
84962
84963         Module physmem.
84964         * m4/physmem.m4: New file.
84965
84966         Module posixver.
84967         * m4/posixver.m4: New file.
84968
84969         Module quotearg.
84970         * m4/quotearg.m4: New file.
84971
84972         Module quote.
84973         * m4/quote.m4: New file.
84974
84975         Module readutmp.
84976         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
84977
84978         Module sig2str.
84979         * m4/sig2str.m4: New file.
84980
84981         Other.
84982         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
84983         ulonglong.m4.
84984         * m4/intmax_t.m4: New file.
84985         * m4/d-type.m4: Indentation.
84986         * m4/jm-macros.m4: Update.
84987         * m4/prereq.m4 (jm_PREREQ): Update.
84988         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
84989         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
84990         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
84991         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
84992         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
84993         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
84994         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
84995         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
84996         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
84997         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
84998         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
84999         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
85000         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
85001         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
85002         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
85003         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
85004         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
85005         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
85006         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
85007
85008 2002-12-24  Bruno Haible  <bruno@clisp.org>
85009
85010         * MODULES.txt: Update according to m4/ changes.
85011
85012         Module gettext.
85013         * config.rpath: New file, from gettext-0.11.5.
85014
85015         * modules/*: New module descriptions.
85016         * gnulib-tool: New file.
85017         * MODULES.html.sh: New file.
85018
85019 2002-12-21  Karl Berry  <karl@gnu.org>
85020
85021         * doc/fdl.texi: update to version 1.2.
85022
85023 2002-12-19  Karl Berry  <karl@gnu.org>
85024
85025         * config/config.guess: update from prep.
85026
85027 2002-12-18  Bruno Haible  <bruno@clisp.org>
85028
85029         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
85030         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
85031
85032 2002-12-17  Bruno Haible  <bruno@clisp.org>
85033
85034         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
85035         stdlib.h, string.h.
85036
85037 2002-12-17  Bruno Haible  <bruno@clisp.org>
85038
85039         * lib/canon-host.c (strdup): Remove unused declaration.
85040
85041         * lib/fsusage.c: Include full_read.h.
85042         (get_fs_usage): Use full_read instead of safe_read.
85043
85044         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
85045
85046 2002-12-12  Karl Berry  <karl@gnu.org>
85047
85048         * config/config.guess: update from prep.
85049
85050 2002-12-11  Bruno Haible  <bruno@clisp.org>
85051
85052         * m4/setenv.m4: New file, from gettext-0.11.5.
85053
85054 2002-12-11  Bruno Haible  <bruno@clisp.org>
85055
85056         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
85057         not unsetenv().
85058         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
85059         modifications:
85060
85061         2002-12-11  Bruno Haible  <bruno@clisp.org>
85062
85063                 * setenv.c (alloca): Fall back to malloc.
85064                 (freea): New macro.
85065                 (setenv): Use freea() to free memory allocated with alloca().
85066
85067         2002-11-13  Bruno Haible  <bruno@clisp.org>
85068
85069                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
85070                 function declarations.
85071                 * unsetenv.c (unsetenv): Likewise.
85072
85073         2002-03-04  Bruno Haible  <bruno@clisp.org>
85074
85075                 Portability to AIX 4.3.3.
85076                 * unsetenv.c: New file, extracted from setenv.c.
85077                 * setenv.c: Move the unsetenv() function to unsetenv.c.
85078
85079         2001-12-20  Bruno Haible  <bruno@clisp.org>
85080
85081                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
85082                 use malloc instead. For SunOS 4.
85083
85084         2001-12-11  Bruno Haible  <bruno@clisp.org>
85085
85086                 * setenv.c: Declare alloca.
85087                 (compar_fn_t): New typedef.
85088                 (KNOWN_VALUE, STORE_VALUE): Use it.
85089
85090         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
85091         setenv.h.
85092
85093 2002-12-10  Paul Eggert  <eggert@twinsun.com>
85094
85095         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
85096         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
85097         Choose values that are less likely to collide with system fnmatch
85098         options.
85099         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
85100         defined (e.g., a pure POSIX system).
85101         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
85102         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
85103
85104 2002-12-06  Paul Eggert  <eggert@twinsun.com>
85105
85106         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
85107         a pain in practice to deal with generated m4 files.  This change
85108         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
85109
85110         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
85111         and jm-glibc-io.m4, as they are no longer a special case.
85112         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
85113         kludge and the auto-generation stuff.  Check only whether the
85114         functions are declared, not whether they exist, since older hosts
85115         that don't declare the functions can't use the optimization anyway.
85116
85117 2002-12-06  Jim Meyering  <jim@meyering.net>
85118
85119         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
85120
85121         Merge in changes from libc's misc/error.c, in preparation
85122         for the merge of gnulib's changes back into libc.
85123
85124         * lib/error.c (_): Define only if not already defined.
85125         Move definition to follow all #include directives.
85126         Include unlocked-io.h only if !_LIBC.
85127         [_LIBC]: Include <libio/libioP.h>.
85128         [USE_IN_LIBIO]: Include <libio/iolibio.h>
85129         (fflush): Tweak definition to use INTUSE.
85130         (putc): Define.
85131
85132 2002-12-05  Paul Eggert  <eggert@twinsun.com>
85133
85134         * lib/alloca.c [defined emacs]: Include "lisp.h".
85135         (xalloc_die) [defined emacs]: New macro.
85136         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
85137         [! defined emacs]: Include <xalloc.h>.
85138         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
85139         (pointer): Typedef to POINTER_TYPE *.
85140         (malloc): Remove decl; we now always use xmalloc.
85141         (alloca): Use old-style definition, since Emacs needs this.
85142         Check for arithmetic overflow when computing combined size.
85143
85144 2002-12-04  Paul Eggert  <eggert@twinsun.com>
85145
85146         Do not generate unlocked-io.h automatically, since it's easier to
85147         maintain it by hand.
85148
85149         * lib/unlocked-io.h: New file, from GNU diffutils,
85150         but with proper copyright notice and attribution.
85151         * lib/gen-uio: Remove.
85152         * lib/Makefile.am: Add copyright notice.
85153         (libfetish_a_SOURCES): Add unlocked-io.h.
85154         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
85155         (DISTCLEANFILES, io_functions): Remove macros.
85156         (EXTRA_DIST): Remove gen_uio.
85157         (unlocked-io.h): Remove rule.
85158
85159 2002-12-04  Jim Meyering  <jim@meyering.net>
85160
85161         Reflect the fact that stat.c and lstat.c are no longer generated.
85162         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
85163         (DISTCLEANFILES): Likewise.
85164         (EXTRA_DIST): Likewise.
85165         (all_local): Don't depend on stat.c or lstat.c.
85166         (stat.c, lstat.c): Remove rules.
85167         (EXTRA_DIST): Remove xstat.in.
85168
85169         * lib/xstat.in: Remove file.  Contents moved into stat.c.
85170         * lib/stat.c: New file.  Contents mostly from xstat.in.
85171         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
85172         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
85173
85174         * lib/safe-read.c: Rework so that it may serve to define safe_write,
85175         too.
85176         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
85177
85178 2002-12-03  Jim Meyering  <jim@meyering.net>
85179
85180         * lib/safe-read.c, safe-write.c: Change variable names and comments,
85181         but not semantics, to minimize the differences between these two files.
85182         (safe_read): Change comment to mention SAFE_READ_ERROR.
85183
85184         * lib/safe-read.c (IS_EINTR): Define.
85185         (safe_read): Use IS_EINTR in place of in-function cpp directives.
85186
85187 2002-12-02  Jim Meyering  <jim@meyering.net>
85188
85189         * lib/safe-read.c (EINTR): Define.
85190         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
85191         (INT_MAX): Provide fallback.
85192         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
85193
85194         * lib/safe-read.h (SAFE_READ_ERROR): Define.
85195
85196 2002-12-02  Bruno Haible  <bruno@clisp.org>
85197
85198         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
85199         Define, taken from safe-read.c.
85200         (INT_MAX): Provide fallback.
85201         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
85202         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
85203
85204         * lib/safe-read.c (EINTR): Remove definition.
85205         (safe_read): Don't use EINTR if it is absent.
85206
85207 2002-12-01  Jim Meyering  <jim@meyering.net>
85208
85209         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
85210         zero.
85211         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
85212
85213 2002-11-27  Paul Eggert  <eggert@twinsun.com>
85214
85215         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
85216         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
85217         with `if (! (value < limit)) abort ();', for readability.
85218
85219 2002-11-26  Karl Berry  <karl@gnu.org>
85220
85221         * lib/strdup.c: copy from libc again, with jim's ok.
85222         * lib/.cppi-disable: re-add strdup.c
85223
85224 2002-11-25  Karl Berry  <karl@gnu.org>
85225
85226         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
85227         instead of "strtol.c".
85228
85229 2002-11-25  Karl Berry  <karl@gnu.org>
85230
85231         * config/install-sh: update from automake for variable quoting, $0 in
85232         error msgs, etc.
85233
85234         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
85235         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
85236         entry.
85237
85238 2002-11-25  Jim Meyering  <jim@meyering.net>
85239
85240         * lib/mktime.c: Sync from libc, now that it has the latest fix.
85241
85242 2002-11-24  Karl Berry  <karl@gnu.org>
85243
85244         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
85245         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
85246
85247 2002-11-24  Jim Meyering  <jim@meyering.net>
85248
85249         Update from coreutils:
85250
85251         * lib/mktime.c: Merge in changes from libc.
85252
85253         Avoid a link-time failure on some Linux systems.
85254         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
85255         (otherwise).
85256         (__mon_yday): Declare with the STATIC attribute.
85257         (__mktime_internal): Likewise.
85258         Based on a report from Greg Schafer.
85259
85260 2002-11-23  Jim Meyering  <jim@meyering.net>
85261
85262         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
85263         Use `unsigned', not `int', as type of index.
85264
85265         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
85266
85267         * lib/fsusage.c: Remove unneeded parentheses around operands of
85268         `defined'.
85269
85270 2002-11-22  Paul Eggert  <eggert@twinsun.com>
85271
85272         * lib/quotearg.h: Allow multiple inclusion by surrounding with
85273         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
85274         so that we can be included first.
85275         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
85276         * lib/quotearg.c: Include quotearg.h immediately after config.h.
85277         No need to include stddef.h or sys/types.h any more.
85278         Surround local include files with "", not "<>".
85279         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
85280         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
85281         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
85282         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
85283         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
85284         (ISPRINT): Remove; no longer needed now that we assume C89.
85285
85286         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
85287         Preserve errno.
85288
85289         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
85290         quotearg_char): Use SIZE_MAX rather than
85291         (size_t) -1 when we are talking about "infinity".
85292
85293         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
85294
85295 2002-11-22  Paul Eggert  <eggert@twinsun.com>
85296
85297         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
85298         hint that one should use `if (! x) abort ();' rather than `assert
85299         (x);', and anyway it's one less thing to worry about configuring.
85300         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
85301         hash_rehash, hash_insert): Use abort rather than assert.
85302
85303 2002-11-22  Bruno Haible  <bruno@clisp.org>
85304
85305         * lib/safe-read.h: Assume C89. Add comments.
85306         (safe_read): Change return type to size_t.
85307         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
85308         byte counts > SSIZE_MAX correctly.
85309         * lib/safe-write.h: New file.
85310         * lib/safe-write.c: New file.
85311         * lib/full-read.h: New file.
85312         * lib/full-read.c: New file.
85313         * lib/full-write.h: Assume C89. Add comments.
85314         * lib/full-write.c: Include safe-write.h.
85315         (full_write): Rewritten to use safe_write.
85316         Suggested by Jim Meyering and Paul Eggert.
85317
85318 2002-11-21  Jim Meyering  <jim@meyering.net>
85319
85320         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
85321
85322         Merge in changes from the coreutils.
85323
85324         2002-09-25  Paul Eggert  <eggert@twinsun.com>
85325         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
85326         <stdint.h>.
85327         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
85328         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
85329         int.  Work more efficiently if X is the same width as uintmax_t.
85330         Do not compare X to -1, to avoid bogus compiler warning.
85331         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
85332         Don't assume that f_frsize and f_bsize are the same type.
85333
85334         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
85335         warning on FreeBSD.
85336
85337         * lib/makepath.c (make_path): Restore umask *before* creating the final
85338         component.
85339         (make_path): Minor reformatting.
85340
85341         * lib/xmalloc.c: Adjust to work with new autoconf macros,
85342         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
85343         HAVE_MALLOC/HAVE_REALLOC.
85344
85345         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
85346         dummy ones.  At least on GNU/Linux systems, `auto' means something
85347         else.
85348         From Michael Stone.
85349
85350 2002-11-21  Bruno Haible  <bruno@clisp.org>
85351
85352         Remove case insensitive option matching.
85353         * lib/argmatch.h (argcasematch): Remove declaration.
85354         (ARGCASEMATCH): Remove macro.
85355         (__xargmatch_internal): Remove case_sensitive argument.
85356         (XARGMATCH): Update.
85357         (XARGCASEMATCH): Remove macro.
85358         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
85359         case_sensitive argument.
85360         (argcasematch): Remove function.
85361         (__xargmatch_internal): Remove case_sensitive argument.
85362         (main): Use XARGMATCH instead of XARGCASEMATCH.
85363
85364         * lib/xmalloc.c: Change compile-time error message. Add comment about
85365         required autoconf version.
85366
85367 2002-11-20  Paul Eggert  <eggert@twinsun.com>
85368
85369         Merge argmatch cleanups from Bison.  Assume C89.
85370
85371         * lib/argmatch.c: Include config.h here, not in argmatch.h.
85372         Include stdlib.h, for EXIT_FAILURE.
85373         Always include <string.h>, since we assume C89.
85374         (EXIT_FAILURE): Remove pre-C89 bug workaround.
85375         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
85376         Include <stddef.h> instead, since it's all we need for size_t.
85377         (PARAMS): Remove.  All uses removed.
85378         (ARRAY_CARDINALITY): Do not bother to #undef.
85379         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
85380         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
85381         Remove unnecessary parentheses.
85382         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
85383         Insert necessary parentheses.
85384         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
85385         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
85386
85387 2002-11-19  Bruno Haible  <bruno@clisp.org>
85388
85389         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
85390         * lib/mbswidth.h: Include <stddef.h>, for size_t.
85391
85392         * lib/mbswidth.h (PARAMS): Remove macro.
85393         (mbswidth, mbsnwidth): Use ANSI C function declarations.
85394         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
85395
85396         * lib/gcd.h (PARAMS): Remove macro.
85397         (gcd): Use ANSI C function declarations.
85398         * lib/gcd.c (gcd): Likewise.
85399
85400 2002-11-15  Bruno Haible  <bruno@clisp.org>
85401
85402         * lib/strcspn.c: Include <stddef.h>.
85403         (strcspn): Use ANSI C function declaration. Change return type to
85404         size_t. Use NULL.
85405         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
85406         (strpbrk): Use NULL.
85407         * lib/strpbrk.h (PARAMS): Remove macro.
85408         (strpbrk): Use ANSI C function declaration.
85409         * lib/strstr.c: Don't include <sys/types.h>.
85410         * lib/strstr.h (PARAMS): Remove macro.
85411         (strstr): Use ANSI C function declarations.
85412
85413 2002-11-14  Karl Berry  <karl@gnu.org>
85414
85415         * config/mkinstalldirs: `do' on separate line, instead of
85416         `for var; do'.
85417
85418 2002-11-06  Bruno Haible  <bruno@clisp.org>
85419
85420         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
85421         * lib/gcd.c (gcd): Likewise.
85422
85423 2002-11-05  Bruno Haible  <bruno@clisp.org>
85424
85425         * lib/gcd.h: New file, from gettext-0.11.5.
85426         * lib/gcd.c: New file, from gettext-0.11.5.
85427
85428 2002-11-05  Bruno Haible  <bruno@clisp.org>
85429
85430         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
85431         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
85432         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
85433         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
85434
85435         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
85436         <libintl.h>.
85437         * lib/makepath.c: Include gettext.h instead of <locale.h> and
85438         <libintl.h>.
85439
85440         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
85441         * lib/human.c: Include gettext.h instead of <libintl.h>.
85442         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
85443         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
85444         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
85445         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
85446         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
85447         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
85448         (textdomain): Remove definition.
85449         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
85450
85451         * lib/long-options.c: Remove include of <libintl.h> and definition of
85452         _.
85453         * lib/same.c: Remove include of <libintl.h> and definition of _.
85454
85455 2002-11-04  Owen Taylor  <otaylor@redhat.com>
85456
85457         * lib/config.charset: A few additions for Solaris.
85458
85459 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
85460
85461         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
85462         * lib/localcharset.c (locale_charset): Declare as extern "C".
85463
85464 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
85465
85466         * lib/config.charset: msdos in uk_UA uses CP1125.
85467
85468 2002-11-04  Bruno Haible  <bruno@clisp.org>
85469
85470         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
85471         * lib/strcase.h: New file, from GNU gettext-0.11.5.
85472         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
85473         * lib/strstr.h: New file, from GNU gettext-0.11.5.
85474         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
85475
85476 2002-11-04  Bruno Haible  <bruno@clisp.org>
85477
85478         * lib/localcharset.c (locale_charset): Don't return an empty string.
85479
85480 2002-11-04  Bruno Haible  <bruno@clisp.org>
85481
85482         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
85483         aliases.
85484
85485 2002-11-04  Bruno Haible  <bruno@clisp.org>
85486
85487         * lib/config.charset: Update for newest glibc. Add canonical names
85488         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
85489
85490 2002-11-04  Bruno Haible  <bruno@clisp.org>
85491
85492         * lib/config.charset: Add support for NetBSD.
85493
85494 2002-11-04  Bruno Haible  <bruno@clisp.org>
85495
85496         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
85497
85498 2002-11-01  Bruno Haible  <bruno@clisp.org>
85499
85500         * configure.in: Add AC_CONFIG_AUX_DIR call.
85501         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
85502         test/Makefile.
85503         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
85504
85505 2002-09-28  Karl Berry  <karl@gnu.org>
85506
85507         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
85508         installed automake until the next release, since changes have been
85509         made.
85510
85511 2002-09-25  Karl Berry  <karl@gnu.org>
85512
85513         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
85514         * lib/getopt*: copy from libc/posix.
85515         * lib/gettext.h: copy from gettext.
85516         * lib/.cppi-disable: add strdup.c, gettext.h.
85517
85518 2002-09-25  Karl Berry  <karl@gnu.org>
85519
85520         * config/srclist.txt: enable gettext.h check.
85521         * config/config.{guess,sub}: update from prep.
85522         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
85523                 from automake 1.6.3.
85524         See srclist*.
85525
85526 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
85527
85528         * regex.c (PATFETCH): Remove the translating fetch.
85529         (PATFETCH_RAW): Rename to PATFETCH.
85530         (set_image_of_range): New fun.
85531         (SET_RANGE_TABLE_WORK_AREA): Use it.
85532         (regex_compile): Don't translate the pattern chars so eagerly.
85533         Only do it when inserting an `exactn' bytecode or when handling
85534         a char-range.
85535         (mutually_exclusive_p): Avoid empty statement.
85536
85537 2002-07-06  Jim Meyering  <meyering@lucent.com>
85538
85539         * m4/README: Don't mention Makefile.am.in.
85540         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
85541
85542 2002-07-01  Jim Meyering  <meyering@lucent.com>
85543
85544         * lib/c-stack.c: Include sys/time.h.
85545         From Volker Borchert.
85546
85547 2002-06-26  Paul Eggert  <eggert@twinsun.com>
85548
85549         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
85550
85551 2002-06-26  Paul Eggert  <eggert@twinsun.com>
85552
85553         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
85554         New macro.  Use it uniformly instead of
85555         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
85556         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
85557         reported by Vin Shelton.
85558
85559 2002-06-22  Paul Eggert  <eggert@twinsun.com>
85560
85561         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
85562         Do not assume SA_SIGINFO behavior.
85563         Bug reported by Jim Meyering on NetBSD 1.5.2.
85564
85565 2002-06-22  Jim Meyering  <meyering@lucent.com>
85566
85567         * m4/c-stack.m4: New file, from diffutils-2.8.2.
85568         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
85569
85570         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
85571         now that configure.ac uses AC_GNU_SOURCE.
85572         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
85573         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
85574
85575         Update to latest tools.  Suggestions from Paul Eggert.
85576         * m4/stdbool.m4: New file, from diffutils-2.8.2.
85577         * m4/gnu-source.m4: Update from diffutils-2.8.2.
85578         * m4/fnmatch.m4: Likewise.
85579         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
85580         to AC_HEADER_STDBOOL
85581
85582 2002-06-22  Jim Meyering  <meyering@lucent.com>
85583
85584         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
85585         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
85586
85587 2002-06-22  Jim Meyering  <meyering@lucent.com>
85588
85589         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
85590
85591         * lib/exitfail.c, exitfail.h: Likewise.
85592         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
85593
85594         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
85595         of fnmatch.h.
85596         (EXTRA_DIST): Add fnmatch_loop.c.
85597         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
85598
85599         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
85600         * lib/fnmatch.c: Update from diffutils-2.8.2.
85601         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
85602         * lib/fnmatch.h: Remove file.
85603
85604 2002-06-21  Jim Meyering  <meyering@lucent.com>
85605
85606         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
85607         * m4/mbrtowc.m4: Likewise.
85608
85609         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
85610         * m4/mbswidth.m4: Reflect name change:
85611         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
85612         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
85613
85614         * m4/lib-link.m4: Update from gettext-0.11.2.
85615         * m4/gettext.m4: Likewise.
85616
85617         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
85618         From Alfred M. Szmidt.
85619
85620 2002-06-18  Paul Eggert  <eggert@twinsun.com>
85621
85622         * lib/file-type.h: Report an error if neither S_ISREG nor
85623         S_IFREG is defined, instead of using a test specific to glibc
85624         2.2.  This should be safe, since POSIX requires S_ISREG and
85625         Unix Version 7 had S_IFREG.  We don't need to check for
85626         <sys/types.h> since we don't use any symbols that it defines.
85627
85628 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
85629
85630         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
85631         $@-t, so that each temporary file name is unique and valid in the first
85632         8 characters, for operation under DOS.
85633
85634 2002-06-15  Paul Eggert  <eggert@twinsun.com>
85635
85636         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
85637
85638 2002-06-15  Jim Meyering  <meyering@lucent.com>
85639
85640         Work even with DJGPP 2.03, which lacks support for symlinks.
85641         From Richard Dawe.
85642         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
85643         is defined.
85644         * lib/lchown.c (S_ISLNK): Likewise.
85645
85646 2002-06-15  Jim Meyering  <meyering@lucent.com>
85647
85648         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
85649         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
85650         have been included before this file.
85651
85652 2002-06-14  Jim Meyering  <meyering@lucent.com>
85653
85654         * lib/file-type.h: Use the version from diffutils-2.8.2.
85655         * lib/file-type.c: Likewise.
85656
85657 2002-06-07  Jim Meyering  <meyering@lucent.com>
85658
85659         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
85660         They're needed at least for NetBSD 1.5.2.
85661         ($statxfs_includes): Include those same headers.
85662         ($statxfs_includes): Include sys/vfs.h if available.
85663         ($statxfs_includes): Likewise for sys/statvfs.h.
85664         Check for the following members in both structs statfs and statvfs:
85665         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
85666
85667 2002-06-01  Jim Meyering  <meyering@lucent.com>
85668
85669         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
85670         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
85671
85672 2002-05-28  Jim Meyering  <meyering@lucent.com>
85673
85674         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
85675         Reported by Volker Borchert.
85676
85677 2002-05-27  Jim Meyering  <meyering@lucent.com>
85678
85679         Fix a problem seen only on nonconforming systems whereby ls.c's
85680         use of localtime, and then of gettimeofday would cause trouble:
85681         the localtime call used to initialize rpl_gettimeofday's save
85682         mechanism would clobber ls's current local time information so
85683         that in any long listing the first file would always be listed
85684         with date 1970-01-01.  Analysis by Volker Borchert.
85685
85686         * lib/gettimeofday.c (localtime): Undefine.
85687         (rpl_localtime): New function.
85688
85689 2002-05-27  Jim Meyering  <meyering@lucent.com>
85690
85691         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
85692         localtime.
85693
85694         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
85695         use the replacement function; it wouldn't resolve at link time.
85696         Reported by Volker Borchert.
85697
85698 2002-05-22  Jim Meyering  <meyering@lucent.com>
85699
85700         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
85701         file-type.h.
85702         * lib/file-type.h: New file.
85703         * lib/file-type.c (file_type): New file/function.  Extracted from
85704         diffutils.
85705
85706 2002-04-30  Jim Meyering  <meyering@lucent.com>
85707
85708         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
85709
85710 2002-04-29  Paul Eggert  <eggert@twinsun.com>
85711
85712         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
85713
85714 2002-04-29  Paul Eggert  <eggert@twinsun.com>
85715
85716         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
85717         Do not check for alloca.h (no longer used) or stdbool.h (was never
85718         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
85719
85720 2002-04-29  Paul Eggert  <eggert@twinsun.com>
85721
85722         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
85723
85724 2002-04-29  Jim Meyering  <meyering@lucent.com>
85725
85726         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
85727         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
85728         Use AC_FUNC_STRNLEN here instead.
85729
85730         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
85731         With autoconf-2.53a, it's part of AC_PROG_CC.
85732
85733 2002-04-28  Paul Eggert  <eggert@twinsun.com>
85734
85735         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
85736         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
85737
85738 2002-04-28  Paul Eggert  <eggert@twinsun.com>
85739
85740         * lib/sig2str.h, lib/sig2str.c: New files.
85741         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
85742
85743 2002-04-28  Paul Eggert  <eggert@twinsun.com>
85744
85745         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
85746         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
85747         of 127, since 64 is the largest conceivable number for ancient
85748         nonstandard hosts.
85749         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
85750
85751 2002-04-28  Jim Meyering  <meyering@lucent.com>
85752
85753         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
85754
85755 2002-04-24  Jim Meyering  <meyering@lucent.com>
85756
85757         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
85758         (jm_PREREQ): Use it.
85759
85760         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
85761         mach/mach.h fcntl.h.
85762         Check for this function: setlocale.
85763
85764 2002-04-24  Jim Meyering  <meyering@lucent.com>
85765
85766         * lib/gettext.h: New file, from Gettext.
85767         * lib/Makefile.am (INCLUDES): Remove -I../intl.
85768         (libfetish_a_SOURCES): Add gettext.h.
85769
85770 2002-04-16  Jim Meyering  <meyering@lucent.com>
85771
85772         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
85773         ut_pid, ut_id, ut_exit.
85774
85775 2002-04-16  Jim Meyering  <meyering@lucent.com>
85776
85777         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
85778         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
85779         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
85780
85781 2002-04-12  Jim Meyering  <meyering@lucent.com>
85782
85783         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
85784         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
85785         existence of the getmntinfo function.  Needed for Darwin 5.3.
85786
85787         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
85788         This is necessary at least on Darwin 5.3.
85789
85790         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
85791         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
85792         strnlen.o in the library, and that makes some versions of ranlib
85793         object.
85794
85795 2002-04-12  Jim Meyering  <meyering@lucent.com>
85796
85797         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
85798
85799 2002-04-09  Jim Meyering  <meyering@lucent.com>
85800
85801         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
85802         to be more precise.  Rather than saying we're checking whether the
85803         function `works', say what we're testing.
85804         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
85805         Reported by Bruno Haible.
85806
85807 2002-03-10  Jim Meyering  <meyering@lucent.com>
85808
85809         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
85810         Suggestion from Santiago Vila.
85811
85812 2002-03-08  Jim Meyering  <meyering@lucent.com>
85813
85814         * lib/rename.c: Mention that this wrapper is needed also on
85815         mips-dec-ultrix4.4 systems.
85816
85817 2002-03-02  Jim Meyering  <meyering@lucent.com>
85818
85819         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
85820         not HAVE_CLOCK_SETTIME.
85821
85822 2002-02-27  Paul Eggert  <eggert@twinsun.com>
85823
85824         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
85825         Check for clock_settime.
85826
85827 2002-02-27  Paul Eggert  <eggert@twinsun.com>
85828
85829         * lib/nanosleep.h: Rename to....
85830         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
85831
85832         * lib/gettime.c: New file.
85833         * lib/settime.c: New file.
85834         * lib/stime.c: Remove.
85835
85836         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
85837         timespec.h.  Remove nanosleep.h.
85838
85839 2002-02-25  Paul Eggert  <eggert@twinsun.com>
85840
85841         * m4/acl.m4: New file.
85842         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
85843         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
85844
85845 2002-02-25  Paul Eggert  <eggert@twinsun.com>
85846
85847         * lib/acl.c, lib/acl.h: New files.
85848         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
85849
85850 2002-02-24  Jim Meyering  <meyering@lucent.com>
85851
85852         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
85853         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
85854         cause trouble.  Reported by Nelson Beebe.
85855
85856 2002-02-23  Paul Eggert  <eggert@twinsun.com>
85857
85858         * lib/path-concat.c (xpath_concat): Reorder code to pacify
85859         compilers that don't know that xalloc_die never returns.
85860
85861 2002-02-20  Jim Meyering  <meyering@lucent.com>
85862
85863         * lib/getdate.c: Regenerate using bison-1.33.
85864
85865 2002-02-17  Jim Meyering  <meyering@lucent.com>
85866
85867         * config/config.guess (main): Don't use `head -1'; it's no longer
85868         portable. Use `sed 1q' instead.
85869
85870 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
85871
85872         * m4/codeset.m4: Upgrade to gettext-0.11.
85873         * m4/gettext.m4: Upgrade to gettext-0.11.
85874         * m4/glibc21.m4: Upgrade to gettext-0.11.
85875         * m4/iconv.m4: Upgrade to gettext-0.11.
85876         * m4/isc-posix.m4: Upgrade to gettext-0.11.
85877         * m4/lcmessage.m4: Upgrade to gettext-0.11.
85878         * m4/lib-ld.m4: New file, from gettext-0.11.
85879         * m4/lib-link.m4: New file, from gettext-0.11.
85880         * m4/lib-prefix.m4: New file, from gettext-0.11.
85881         * m4/progtest.m4: Upgrade to gettext-0.11.
85882
85883 2002-02-15  Paul Eggert  <eggert@twinsun.com>
85884
85885         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
85886         (jm_PREREQ): Use it.
85887
85888 2002-02-15  Paul Eggert  <eggert@twinsun.com>
85889
85890         * lib/posixver.c, lib/posixver.h: New files.
85891         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
85892
85893 2002-02-02  Paul Eggert  <eggert@twinsun.com>
85894             Bruno Haible  <bruno@clisp.org>
85895
85896         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
85897         (fwrite_success_callback): New declaration.
85898         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
85899         print_unicode_char. Call failure callback instead of error.
85900         (fwrite_success_callback): New function.
85901         (exit_failure_callback): New function.
85902         (fallback_failure_callback): New function.
85903         (print_unicode_char): Call unicode_to_mb.
85904
85905 2002-01-26  Jim Meyering  <meyering@lucent.com>
85906
85907         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
85908         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
85909
85910 2002-01-26  Jim Meyering  <meyering@lucent.com>
85911
85912         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
85913
85914 2002-01-22  Paul Eggert  <eggert@twinsun.com>
85915
85916         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
85917
85918 2002-01-22  Jim Meyering  <meyering@lucent.com>
85919
85920         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
85921         Otherwise, some versions of automake would omit the rule that makes
85922         Makefile from Makefile.in.
85923
85924 2002-01-21  Paul Eggert  <eggert@twinsun.com>
85925
85926         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
85927         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
85928         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
85929         (memcoll): Set errno to zero if there is no error.
85930
85931         * lib/quotearg.c (quotearg_buffer_restyled):
85932         Fix bug with quoting buffers containing NUL when backslashing escapes.
85933         This bug was exposed by the other changes in this patch.
85934         (quotearg_n_options): New arg ARGSIZE.
85935         All callers changed.
85936         (quoting_options_from_style): New function.
85937         (quotearg_n_style): Use it.
85938         (quotearg_n_style_mem): New function.
85939
85940         * lib/quotearg.h (quotearg_n_style_mem): New function.
85941
85942 2002-01-19  Jim Meyering  <meyering@lucent.com>
85943
85944         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
85945         Remove useless quotes: DF_PROG="df".
85946         * m4/strnlen.m4: New file.
85947
85948 2002-01-16  Paul Eggert  <eggert@twinsun.com>
85949
85950         * lib/backupfile.c (ISDIGIT): Comment fix.
85951         * lib/getdate.y (ISDIGIT): Likewise.
85952         * lib/posixtm.c (ISDIGIT, year): Likewise.
85953         * lib/strverscmp.c (ISDIGIT): Likewise.
85954         * lib/userspec.c (ISDIGIT): Likewise.
85955
85956 2002-01-16  Jim Meyering  <meyering@lucent.com>
85957
85958         * lib/getdate.y: Add three semicolons, each just before a closing
85959         brace. Bison (as of version 1.31) no longer papers over that mistake.
85960
85961 2002-01-05  Jim Meyering  <meyering@lucent.com>
85962
85963         * lib/version-etc.c (version_etc_copyright): Update copyright year.
85964
85965 2001-12-19  Paul Eggert  <eggert@twinsun.com>
85966
85967         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
85968         not silently exit merely because the output buffer happens to
85969         have nothing pending.
85970
85971 2001-12-18  Paul Eggert  <eggert@twinsun.com>
85972
85973         See the big note in ../ChangeLog.
85974         * lib/human.c (suffixes): Prefer K to k for 1024.
85975         (generate_suffix_backwards): New function.
85976         (human_readable_inexact): Use it.
85977         * lib/xstrtol.c (__xstrtol): If there is no number but there
85978         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
85979         Accept 'K' as well as 'k'.
85980
85981 2001-12-15  Jim Meyering  <meyering@lucent.com>
85982
85983         * lib/regex.h (__restrict_arr): Update from libc.
85984
85985         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
85986         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
85987         (STREQ): Define.
85988
85989 2001-12-14  Jim Meyering  <meyering@lucent.com>
85990
85991         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
85992         Suggestion from Bruno Haible.
85993
85994 2001-12-10  Jim Meyering  <meyering@lucent.com>
85995
85996         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
85997         xrealloc, Instead, include "xalloc.h".
85998         (initbuffer): Don't cast xmalloc return value to char*.
85999         (readline): Reword comment.
86000         Don't cast xrealloc return value to char*
86001         Return NULL, not 0.
86002
86003 2001-12-09  Jim Meyering  <meyering@lucent.com>
86004
86005         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
86006         about `signed and unsigned type in conditional expression'.
86007         * lib/posixtm.c (posix_time_parse): Likewise.
86008
86009         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
86010
86011         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
86012         to avoid a pedantic warning.
86013
86014         * lib/getstr.c: Don't include assert.h.
86015         (getstr): Remove warning-evoking assertions.
86016         Return -1 if offset parameter is out of bounds.
86017         Change the type of a local from int to size_t.
86018
86019         * lib/strftime.c (my_strftime_localtime_r): Include this function
86020         definition in the `#if ! HAVE_TM_GMTOFF' block.
86021
86022         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
86023         Include xalloc.h instead.
86024
86025 2001-12-02  Jim Meyering  <meyering@lucent.com>
86026
86027         * lib/tempname.c: Don't declare getenv, thus reverting the change of
86028         2001-11-18.  It's no longer necessary, now that stdlib.h is always
86029         included.
86030
86031         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
86032         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
86033
86034 2001-11-30  Akim Demaille  <akim@epita.fr>
86035
86036         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
86037         before being defined.
86038
86039 2001-11-27  Paul Eggert  <eggert@twinsun.com>
86040
86041         * lib/quotearg.h (quotearg_n, quotearg_n_style):
86042         First arg is int, not unsigned.
86043         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
86044         (SIZE_MAX, UINT_MAX): New macros.
86045         (quotearg_n_options): Abort if N is negative.
86046         Avoid overflow check on hosts where size_t is 64 bits and int
86047         is 32 bits, as overflow is impossible there.
86048         Fix off-by-one typo that caused unnecessary reallocation.
86049
86050 2001-11-27  Jim Meyering  <meyering@lucent.com>
86051
86052         * lib/tempname.c: Merge with version from libc.
86053         * lib/regex.c: Likewise.
86054
86055         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
86056         systems for which STDC_HEADERS is 0, it was not included, resulting in
86057         a warning about an integer-to-pointer conversion problem with getenv.
86058         Reported by Volker Borchert.
86059
86060 2001-11-26  Jim Meyering  <meyering@lucent.com>
86061
86062         * lib/gtod.h: Remove file.
86063         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
86064         * lib/gettimeofday.c: Don't include gtod.h.
86065         (GTOD_init): Remove function.
86066         (rpl_gettimeofday): Do its job here instead, rather than aborting.
86067         Suggestion from Volker Borchert.
86068
86069 2001-11-23  Jim Meyering  <meyering@lucent.com>
86070
86071         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
86072         it.
86073         * lib/hash.c (struct hash_table): Define it here instead.
86074
86075 2001-11-22  Jim Meyering  <meyering@lucent.com>
86076
86077         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
86078
86079 2001-11-20  Jim Meyering  <meyering@lucent.com>
86080
86081         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
86082         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
86083
86084 2001-11-19  Jim Meyering  <meyering@lucent.com>
86085
86086         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
86087         directory.  Use "conftestXXXXXX" as the template.
86088         Suggestion from Paul Eggert.
86089
86090         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
86091         immediately, so the test doesn't mistakenly hit the max-open-files
86092         limit.
86093
86094 2001-11-18  Paul Eggert  <eggert@twinsun.com>
86095
86096         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
86097         (TEMPORARIES): New macro.
86098         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
86099         removes an artificial limitation (e.g. HP-UX 10.20, where
86100         TMP_MAX is 17576).
86101
86102 2001-11-18  Jim Meyering  <meyering@lucent.com>
86103
86104         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
86105
86106 2001-11-18  Jim Meyering  <meyering@lucent.com>
86107
86108         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
86109         on SunOS 4.
86110
86111         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
86112         files will be created before anything else.
86113
86114 2001-11-17  Paul Eggert  <eggert@twinsun.com>
86115
86116         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
86117         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
86118
86119 2001-11-17  Jim Meyering  <meyering@lucent.com>
86120
86121         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
86122         Prompted by a report from Bob Proulx.
86123
86124         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
86125         Instead, require UTILS_FUNC_MKSTEMP.
86126
86127 2001-11-17  Jim Meyering  <meyering@lucent.com>
86128
86129         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
86130         Now, that's done as part of AC_FUNC_STRTOD.
86131
86132 2001-11-17  Jim Meyering  <meyering@lucent.com>
86133
86134         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
86135         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
86136         rather than group writable.  Patch by Juan F. Codagnone.
86137
86138         * lib/readtokens.c: Remove explicit declarations of xmalloc and
86139         xrealloc, Instead, include "xalloc.h".
86140
86141         * lib/mountlist.c: Include unlocked-io.h after all system headers.
86142         Remove explicit declarations of xmalloc, xrealloc,
86143         and xstrdup.  Instead, include "xalloc.h".
86144
86145         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
86146         unlocked-io.h.
86147         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
86148         Likewise.
86149         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
86150
86151         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
86152         Reported by Padraig Brady.
86153
86154         * lib/mkstemp.c: #undef mkstemp.
86155         Include config.h.
86156         (rpl_mkstemp): Rename from mkstemp.
86157         Protoize.
86158
86159 2001-11-16  Jim Meyering  <meyering@lucent.com>
86160
86161         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
86162         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
86163         determine the amount of total physical memory, use pstat_getstatic.
86164         HPUX-11 doesn't define _SC_PHYS_PAGES.
86165         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
86166         If sysconf couldn't be used to determine the amount of available
86167         physical memory, use both pstat_getstatic and pstat_getdynamic.
86168         Based on a patch from Bob Proulx.
86169
86170 2001-11-10  Jim Meyering  <meyering@lucent.com>
86171
86172         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
86173         (jm_PREREQ): Use it.
86174
86175 2001-11-09  Jim Meyering  <meyering@lucent.com>
86176
86177         * m4/jm-macros.m4: Require autoconf-2.52f.
86178         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
86179         Use these AC_-prefixed names, not the AM_-prefixed ones.
86180
86181         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
86182
86183 2001-11-05  Jim Meyering  <meyering@lucent.com>
86184
86185         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
86186
86187 2001-11-04  Jim Meyering  <meyering@lucent.com>
86188
86189         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
86190         $DEFS.
86191
86192 2001-11-03  Jim Meyering  <meyering@lucent.com>
86193
86194         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
86195         of AC_DEFUN.
86196
86197         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
86198         know the name of the variable in the macro definition.
86199
86200 2001-11-03  Jim Meyering  <meyering@lucent.com>
86201
86202         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
86203         in argmatch_to_argument call.
86204
86205         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
86206         argument.
86207
86208         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
86209         e.g., a fault due to an attempt to free a NULL pointer.
86210
86211 2001-11-01  Jim Meyering  <meyering@lucent.com>
86212
86213         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
86214         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
86215
86216 2001-11-01  Jim Meyering  <meyering@lucent.com>
86217
86218         * lib/dirfd.c, lib/dirfd.h: New files.
86219         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
86220
86221         * lib/hash.c (hash_print) [TESTING]: Clean up.
86222
86223 2001-10-22  Paul Eggert  <eggert@twinsun.com>
86224
86225         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
86226         to avoid a warning if -Wall.
86227
86228 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
86229
86230         * README: New file
86231         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
86232         (per RMS's instructions, this is now the canonical source)
86233         * lgpl/, gpl/: New directories.
86234
86235 2001-10-21  Paul Eggert  <eggert@twinsun.com>
86236
86237         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
86238
86239 2001-10-21  Jim Meyering  <meyering@lucent.com>
86240
86241         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
86242         this code would end up calling gettext even in packages built
86243         with --disable-nls.
86244         * lib/getopt.c (_): Likewise.
86245         * lib/regex.c (_): Likewise.
86246
86247 2001-10-20  Paul Eggert  <eggert@twinsun.com>
86248
86249         * m4/error.m4 (jm_PREREQ_ERROR):
86250         Do not invoke AC_CHECK_FUNCS with strerror_r, as
86251         AC_FUNC_STRERROR_R does that.
86252         Check for strerror declaration.
86253
86254         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
86255         are supposed to have them these days.
86256         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
86257         Merge changes from latest Autoconf CVS.
86258         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
86259         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
86260         POSIX decided to standardize on the int flavor of strerror_r.
86261
86262 2001-10-20  Paul Eggert  <eggert@twinsun.com>
86263
86264         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
86265         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
86266         Use strerror_r that is only a macro, even if it is not a function.
86267         (strerror): Check for HAVE_DECL_STRERROR before declaring.
86268         (private_strerror): Use prototypes, not old-style function definition.
86269         (print_errno_message): New function.
86270         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
86271         char*-flavored one.
86272         (error_tail, error, error_at_line): Use it.
86273
86274 2001-10-11  Jim Meyering  <meyering@lucent.com>
86275
86276         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
86277         and quote_n (1, ... to avoid clobbering a buffer.
86278
86279 2001-10-05  Jim Meyering  <meyering@lucent.com>
86280
86281         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
86282         hash-pjw.h.
86283         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
86284         * lib/hash-pjw.h: New file.
86285
86286 2001-09-30  Jim Meyering  <meyering@lucent.com>
86287
86288         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
86289         `struct fsstat' has the `f_fstypename' member.
86290         Use that to define FS_TYPE, which is now used to make
86291         the getfsstat link test tighter.
86292
86293 2001-09-30  Jim Meyering  <meyering@lucent.com>
86294
86295         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
86296         Include <sys/ucred.h>, for Apple Darwin.
86297         Include sys/mount.h and sys/fs_types.h only if available.
86298         (FS_TYPE): Define.
86299         (read_filesystem_list): Use FS_TYPE.
86300
86301 2001-09-29  Paul Eggert  <eggert@twinsun.com>
86302
86303         * lib/exclude.c (excluded_filename): 0 -> false, since it's
86304         a boolean context.
86305
86306 2001-09-29  Jim Meyering  <meyering@lucent.com>
86307
86308         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
86309         [one-argument getmntent function]): Include stdio.h before mntent.h.
86310         SunOS 4.1.x needs it for the declaration of `FILE'.
86311         Patch by Volker Borchert.
86312
86313         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
86314         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
86315         sys/fs_types.h, and make the link-test for getfsstat guard #include
86316         directives with appropriate #if HAVE_*_H tests so that we can
86317         detect getfsstat on Apple Darwin1.3.7 systems.
86318         Reported by Nelson Beebe.
86319         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
86320
86321 2001-09-28  Paul Eggert  <eggert@twinsun.com>
86322
86323         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
86324         #defines strtoimax.  Also treat the other strto* functions
86325         like strtoimax.
86326
86327         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
86328         Check for strtoul and strtoumax,
86329         as those declarations are made even in the signed case.
86330         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
86331         Likewise, for strtol and strtoimax.
86332
86333 2001-09-28  Paul Eggert  <eggert@twinsun.com>
86334
86335         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
86336         #defines strtoimax.  Also treat the other strto* functions
86337         like strtoimax.
86338
86339         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
86340         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
86341         (strtoimax, strtoumax): Do not declare if already defined as a macro.
86342
86343 2001-09-26  Jim Meyering  <meyering@lucent.com>
86344
86345         Most macros in unlocked-io.h had the wrong number of arguments.
86346         * lib/gen-uio: New script.
86347         (USE_UNLOCKED_IO): Define to 1 if not already defined.
86348         * lib/unlocked-io.hin: Remove file.
86349         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
86350         rather than trying to embed it here.
86351         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
86352         Reported by Padraig Brady.
86353
86354 2001-09-25  Volker Borchert  <bt@teknon.de>
86355
86356         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
86357         `result'.
86358
86359 2001-09-24  Jim Meyering  <meyering@lucent.com>
86360
86361         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
86362
86363 2001-09-23  Jim Meyering  <meyering@lucent.com>
86364
86365         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
86366         instead of the mere test for existence of mntent.h.  The latter
86367         would get a false-positive on AIX 3.4 systems.
86368         In the outer getmntent if-block, don't die if neither of the getmntent
86369         tests succeeds.  Instead, just fall through and continue with the
86370         remaining tests.
86371
86372 2001-09-23  Jim Meyering  <meyering@lucent.com>
86373
86374         * lib/mountlist.c: Remove useless parentheses in #if directives.
86375         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
86376         the deprecated MOUNTED symbol is no longer defined in mntent.h.
86377
86378 2001-09-22  Jim Meyering  <meyering@lucent.com>
86379
86380         * m4/gettext.m4: New file.  From gettext.
86381         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
86382         * m4/progtest.m4: Likewise
86383         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
86384         * m4/glibc21.m4: Likewise.
86385
86386         * m4/libintl.m4: Remove.  No longer used.
86387
86388 2001-09-22  Jim Meyering  <meyering@lucent.com>
86389
86390         * lib/localcharset.c: Update from latest gettext.
86391         * lib/config.charset: Likewise.
86392
86393 2001-09-20  Jim Meyering  <meyering@lucent.com>
86394
86395         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
86396         strtoimax.
86397         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
86398         strtoumax.
86399
86400 2001-09-20  Jim Meyering  <meyering@lucent.com>
86401
86402         * lib/xstrtol.c (strtoimax): Guard declaration with
86403         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
86404         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
86405         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
86406         (strtoumax): Likewise, for completeness (it wasn't necessary).
86407
86408 2001-09-17  Paul Eggert  <eggert@twinsun.com>
86409
86410         * lib/strtoimax.c (HAVE_LONG_LONG):
86411         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
86412         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
86413         to work around bug in IBM C compiler.
86414
86415 2001-09-17  Jim Meyering  <meyering@lucent.com>
86416
86417         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
86418         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
86419         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
86420         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
86421         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
86422         whenever the right hand side need not be expanded by the shell.
86423
86424 2001-09-16  Paul Eggert  <eggert@twinsun.com>
86425
86426         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
86427         library.  It's not correct, as some older glibcs are buggy.
86428         fnmatch wasn't fixed until glibc 2.2.
86429
86430         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
86431         special shell magic here.
86432
86433 2001-09-16  Jim Meyering  <meyering@lucent.com>
86434
86435         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
86436         * m4/jm-macros.m4: Require it.
86437
86438 2001-09-16  Jim Meyering  <meyering@lucent.com>
86439
86440         * lib/mkdir.c: New file.
86441
86442 2001-09-15  Jim Meyering  <meyering@lucent.com>
86443
86444         * m4/jm-macros.m4: Check for help2man.
86445
86446 2001-09-11  Jim Meyering  <meyering@lucent.com>
86447
86448         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
86449         The body, by Paul Eggert, was moved here from configure.in.
86450         * m4/jm-macros.m4: Require UTILS_HOST_OS.
86451
86452 2001-09-04  Paul Eggert  <eggert@twinsun.com>
86453
86454         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
86455         (jm_PREREQ): Use it.
86456
86457 2001-09-04  Paul Eggert  <eggert@twinsun.com>
86458
86459         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
86460         Use ssize_t, not int, to store result of readlink.
86461         Check for ssize_t overflow as well as size_t overflow,
86462         as POSIX says the result of readlink is implementation-defined
86463         when ssize_t overflows.
86464         Remove unnecessary cast to char*.
86465         Use free+malloc instead of realloc, as the storage doesn't need
86466         to be preserved and it's clearer and can be more efficient that way.
86467         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
86468         * lib/xreadlink.h (xreadlink): Update prototype.
86469
86470 2001-09-04  Paul Eggert  <eggert@twinsun.com>
86471
86472         * lib/xgetcwd.c: Revert some of the previous change; intead,
86473         fix the HAVE_GETCWD_NULL code to behave more like the
86474         !HAVE_GETCWD_NULL code used to.
86475
86476         Include "xalloc.h".
86477         (xgetcwd): Do not return NULL when memory is exhausted; instead,
86478         invoke xalloc_die.
86479
86480 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86481
86482         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
86483         sys/param.h, as pathmax.h includes them.
86484
86485 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86486
86487         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
86488         (jm_PREREQ_XGETCWD): New macro.
86489
86490         * m4/getcwd.m4: New file.
86491
86492 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86493
86494         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
86495         like the HAVE_GETCWD_NULL code.
86496         Include pathmax.h if not HAVE_GETCWD.
86497         Do not include xalloc.h.
86498         (INITIAL_BUFFER_SIZE): New symbol.
86499         Do not use xmalloc / xrealloc, since the caller is responsible for
86500         handling errors.  Preserve errno around `free' during failure.
86501         Do not overrun buffer when using getwd.
86502
86503 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86504
86505         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
86506         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
86507         getcwd (NULL, 0).
86508
86509 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86510
86511         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
86512         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
86513         spotted by Jim Meyering.
86514
86515 2001-09-03  Jim Meyering  <meyering@lucent.com>
86516
86517         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
86518         failure.
86519
86520 2001-09-02  Jim Meyering  <meyering@lucent.com>
86521
86522         * lib/error.c: Update from GNU libc.
86523
86524 2001-09-01  Jim Meyering  <meyering@lucent.com>
86525
86526         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
86527         Used by df.
86528
86529 2001-09-01  Jim Meyering  <meyering@lucent.com>
86530
86531         * lib/xreadlink.c: New file.
86532         * lib/xreadlink.h: New file.
86533         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
86534         xreadlink.h.
86535
86536         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
86537         doesn't conflict with sparc Solaris 7's definition in
86538         /usr/include/sys/int_types.h.
86539
86540         * lib/exclude.c: Use `""', not `<>' to #include non-system header
86541         files.
86542         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
86543         and strncasecmp as r-values.  Unixware didn't have declarations.
86544
86545 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86546
86547         * lib/xstrtol.h: Add copyright notice.
86548         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
86549         LONGINT_INVALID_SUFFIX_CHAR.
86550
86551 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86552
86553         * lib/xstrtol.c (strtoimax): New decl.
86554
86555 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86556
86557         * lib/xgetcwd.c: Don't include pathmax.h.
86558         Include stdlib.h and unistd.h if available.
86559         Include xalloc.h.
86560         (xmalloc, xstrdup, free): Remove decls.
86561         (xgetcwd): Don't assume sizes fit in unsigned.
86562         Check for overflow when computing sizes.
86563         Simplify reallocation code.
86564
86565 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86566
86567         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
86568         a directory's st_size can have an arbitrary value, so the old
86569         usage could waste an arbitrary amount of memory.  All uses
86570         changed.
86571         * lib/savedir.h: Update prototype.
86572
86573 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86574
86575         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
86576
86577         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
86578         old strtoimax.c.
86579
86580         Also, make the following further changes to make this file's
86581         configuration more similar to that of strtol.c:
86582         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
86583         (strtoumax, uintmax_t, strtoull, strtol): Remove.
86584         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
86585         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
86586         changed to signed values.
86587
86588         And make the following changes as well:
86589         Fix copyright notice, as 1999 was missing.
86590         (verify): New macro.
86591         (strtoimax): Check sizes at compile-time, not run-time.
86592         Prefer strtol to strtoll if both work.
86593         (main): Remove; it was not that useful and was a pain to maintain.
86594
86595         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
86596
86597 2001-08-31  Jim Meyering  <meyering@lucent.com>
86598
86599         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
86600         Use an initial, malloc'd, buffer of length 128 rather than
86601         a statically allocated one of length 1024.
86602
86603 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86604
86605         Simplify code, partly by assuming autoconf 2.52 semantics.
86606
86607         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
86608
86609         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
86610         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
86611         All uses removed.
86612         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
86613         Move AC_REQUIRE to next-to-top level, to avoid confusion.
86614         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
86615         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
86616         jm_AC_HEADER_INTTYPES_H.
86617         * m4/jm-macros.m4 (jm_MACROS): Likewise.
86618
86619         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
86620
86621         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
86622         Quote first arg of AC_DEFUN.
86623         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
86624         since they are needed to parse the include file even if we need
86625         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
86626         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
86627         but with opposite signedness.
86628
86629 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86630
86631         Merge 'exclude' changes from tar 1.13.22.
86632         This fixes one or two unlikely storage allocation overflow bugs,
86633         but doesn't change user-visible behavior otherwise.
86634
86635 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86636
86637         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
86638         (jm_PREREQ_EXCLUDE): New macro.
86639
86640 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86641
86642         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
86643         tm to be declared.
86644
86645 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86646
86647         * lib/hash.c: Remove '2001' from copyright notice.
86648
86649 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86650
86651         * lib/full-write.h: New file.
86652         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
86653         * lib/full-write.c: Correct credits, as cccp.c no longer
86654         exists and anyway it was so heavily changed from the old cccp
86655         code as to be unrecognizable.  Include full-write.h.
86656         (full_write): Return size_t, with short writes meaning failure.
86657         All callers changed.  This fixes a bug with large buffers
86658         on 64-bit hosts.
86659         * lib/utime.c: Include full-write.h.
86660
86661 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86662
86663         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
86664         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
86665         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
86666         Include if available.
86667         (<xalloc.h>): Include
86668         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
86669         (verify): New macro.  Use it to verify that EXCLUDE macros do not
86670         collide with FNM macros.
86671         (struct patopts): New struct.
86672         (struct exclude): Use it, as exclude patterns now come with options.
86673         (new_exclude): Support above changes.
86674         (new_exclude, add_exclude_file):
86675         Initial size must now be a power of two to simplify overflow checking.
86676         (free_exclude, fnmatch_no_wildcards): New function.
86677         (excluded_filename): No longer requires options arg, as the options
86678         are determined by add_exclude.  Now returns bool, not int.
86679         (excluded_filename, add_exclude):
86680         Add support for the fancy new exclusion options.
86681         (add_exclude, add_exclude_file): Now takes int options arg.
86682         Check for arithmetic overflow when computing sizes.
86683         (add_exclude_file): xrealloc might modify errno, so don't
86684         realloc until after errno might be used.
86685
86686         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
86687         New macros.
86688         (free_exclude): New decl.
86689         (add_exclude, add_exclude_file): Now takes int options arg.
86690         (excluded_filename): No longer requires options arg, as the options
86691         are determined by add_exclude.  Now returns bool, not int.
86692
86693 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86694
86695         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
86696
86697 2001-08-27  Jim Meyering  <meyering@lucent.com>
86698
86699         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
86700
86701         * lib/version-etc.c (N_): Remove definition.
86702         Revert most of last change.
86703         Instead, simply don't mark the `Copyright...' string for translation.
86704         Based on advice from Paul Eggert.
86705
86706         * lib/strtoxmax.c: Tweak comment.
86707
86708 2001-08-26  Jim Meyering  <meyering@lucent.com>
86709
86710         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
86711
86712         * m4/xstrtoimax.m4: New file.
86713         * m4/xstrtoumax.m4: Add comments explaining why we
86714         AC_REPLACE_FUNCS(strtol).
86715
86716 2001-08-26  Jim Meyering  <meyering@lucent.com>
86717
86718         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
86719         of copyright with `%s' so translators don't get an untranslated
86720         message in 2002.
86721         (COPYRIGHT_YEAR): Define.
86722         (version_etc): Use fprintf rather than fputs.
86723         Suggestion from Ulrich Drepper.
86724
86725         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
86726
86727         * lib/strtoll.c: New file, from GNU libc.
86728         * lib/xstrtoimax.c: New file.
86729
86730         * lib/xstrtol.h: Add xstrtoimax.
86731         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
86732         * lib/strtoimax.c: New file.  Likewise, but first define
86733         STRTOUXMAX_SIGNED.
86734
86735         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
86736         ...
86737         * lib/strtoxmax.c: ... then renamed to this.
86738
86739 2001-08-18  Paul Eggert  <eggert@twinsun.com>
86740
86741         * m4/inttypes.m4: Add AC_PREREQ(2.13).
86742         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
86743         (jm_AC_TYPE_INTMAX_T): New macro.
86744         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
86745
86746         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
86747
86748         * m4/longlong.m4: Renamed from ulonglong.m4.
86749         * m4/inttypes.m4: Renamed from inttypes_h.m4.
86750         * m4/uintmax_t.m4: Removed.
86751
86752 2001-08-13  Paul Eggert  <eggert@twinsun.com>
86753
86754         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
86755         Port to Solaris 8, where 'sed' requires a space after the 'r'
86756         command, and where sh dislikes "$/".  Clean up the spacing a bit.
86757         Redirect output to $tmp just once.
86758
86759 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
86760
86761         * lib/addext.c (<errno.h>): Include.
86762         (errno): Declare if not defined.
86763         (addext): Work correctly when pathconf returns -1 and leaves
86764         errno alone because there is no limit.  Also, work even if
86765         pathconf returns a value greater than SIZE_MAX.
86766
86767 2001-08-12  Jim Meyering  <meyering@lucent.com>
86768
86769         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
86770         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
86771         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
86772         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
86773         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
86774         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
86775         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
86776         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
86777         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
86778         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
86779         utime.m4, utimes.m4, xstrtoumax.m4:
86780         Quote the first argument in each use of AC_DEFUN.
86781
86782 2001-08-12  Jim Meyering  <meyering@lucent.com>
86783
86784         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
86785         Simply `return getcwd (NULL, 0);'.
86786         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
86787         Use 1300 as initial value for length, not PATH_MAX.
86788
86789         * lib/pathmax.h: Clean up cpp syntax.
86790
86791 2001-08-12  Jim Meyering  <meyering@lucent.com>
86792
86793         * lib/gettimeofday.c: New file.
86794         * lib/gtod.h: New file.
86795         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
86796
86797 2001-08-05  Jim Meyering  <meyering@lucent.com>
86798
86799         * m4/jm-macros.m4: Require autoconf-2.52.
86800
86801 2001-08-04  Jim Meyering  <meyering@lucent.com>
86802
86803         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
86804         stmt, to get in sync with glibc.
86805
86806 2001-08-03  Paul Eggert  <eggert@twinsun.com>
86807
86808         The following changes are from gettext 0.10.39 as maintained by
86809         Bruno Haible.
86810
86811         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
86812         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
86813         with inverted sense.  All uses changed.
86814
86815         * lib/mbswidth.c: Don't include <limits.h>.
86816         Include <stdlib.h> and <string.h> unconditionally.
86817         (iswcntrl, mbsinit, ISCNTRL): New macros.
86818         (mbsnwidth): Use K&R style function declarations.
86819         Don't bother checking for MB_LEN_MAX == 1, since the compiler
86820         can optimize it when MB_CUR_MAX == 1.
86821         The width of control characters is zero, not 1.
86822
86823 2001-08-03  Paul Eggert  <eggert@twinsun.com>
86824
86825         The following changes are from gettext 0.10.39 as maintained by
86826         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
86827
86828         * m4/codeset.m4: Upgrade to serial AM1.
86829         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
86830         all uses changed.  Quote first arg of AC_DEFUN.
86831         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
86832
86833         * m4/iconv.m4: Upgrade to serial AM2.
86834         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
86835         Add --with-libconv-prefix.
86836         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
86837         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
86838         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
86839         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
86840         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
86841
86842         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
86843         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
86844         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
86845         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
86846         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
86847         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
86848         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
86849         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
86850         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
86851
86852         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
86853         string.h any more.
86854
86855         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
86856         not the default value.
86857
86858         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
86859         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
86860         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
86861         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
86862         Also check for iswcntrl, used for wcwidth fallback.
86863         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
86864         to Autoconf 2.13.
86865
86866 2001-08-03  Jim Meyering  <meyering@lucent.com>
86867
86868         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
86869         as it was in the original.  Reported by Paul Eggert.
86870
86871 2001-07-16  Jim Meyering  <meyering@lucent.com>
86872
86873         * m4/gettimeofday.m4: New file.
86874         Prompted by a report from Bernhard Baehr.
86875
86876 2001-07-15  Jim Meyering  <meyering@lucent.com>
86877
86878         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
86879         stuff. Now it's in ../Makefile.cfg.
86880
86881 2001-07-15  Jim Meyering  <meyering@lucent.com>
86882
86883         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
86884         (BUILT_SOURCES): Add unlocked-io.h.
86885         (io_functions): Define.
86886         (unlocked-io.h): New rule.
86887         (DISTCLEANFILES): Add unlocked-io.h.
86888         (all-local): Depend on unlocked-io.h, to ensure it is created.
86889
86890         * lib/unlocked-io.hin: New file
86891
86892         * lib/regex.c: Update from glibc.
86893
86894 2001-07-05  Jim Meyering  <meyering@lucent.com>
86895
86896         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
86897         recommendation.
86898         (libfetish_a_SOURCES): Put all .h files here instead.
86899         Remove a thus-exposed (better checks in automake) duplicate and
86900         two unnecessary .h files.
86901
86902 2001-07-04  Jim Meyering  <meyering@lucent.com>
86903
86904         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
86905         that generates jm-glibc-io.m4 so that it doesn't trigger any make
86906         distcheck failure.
86907
86908 2001-07-02  Jim Meyering  <meyering@lucent.com>
86909
86910         The following changes were prompted by suggestions from Bruno Haible.
86911
86912         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
86913         is now generated.
86914         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
86915         definition of EXTRA_DIST.
86916         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
86917         ensure that the generated file is created/updated whenever the list
86918         of $(unlocked_functions) is changed.
86919         (jm-glibc-io.m4): New rule.
86920         (unlocked-io.h): New rule -- currently unused.
86921
86922 2001-06-24  Jim Meyering  <meyering@lucent.com>
86923
86924         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
86925         unmatched right bracket, rather than kludging it with an extra,
86926         falsely-matching quote in a comment.  Patch by Akim Demaille.
86927
86928 2001-06-11  Jim Meyering  <meyering@lucent.com>
86929
86930         * lib/regex.c: Update from GNU libc.
86931
86932 2001-05-27  Jim Meyering  <meyering@lucent.com>
86933
86934         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
86935         Check for ut_type in struct utmp.
86936
86937 2001-05-27  Jim Meyering  <meyering@lucent.com>
86938
86939         * lib/readutmp.h (UT_TYPE): Define.
86940
86941 2001-05-24  Jim Meyering  <meyering@lucent.com>
86942
86943         * lib/argmatch.c: Include "quote.h".
86944         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
86945         quote function.  Reported by Göran Uddeborg.
86946
86947 2001-05-22  Jim Meyering  <meyering@lucent.com>
86948
86949         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
86950         now that we use the package-supplied version unconditionally.
86951         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
86952
86953 2001-05-21  Jim Meyering  <meyering@lucent.com>
86954
86955         * m4/regex.m4: Change a couple backticks to single quotes to avoid
86956         shell syntax errors.
86957
86958 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
86959
86960         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
86961
86962 2001-05-20  Paul Eggert  <eggert@twinsun.com>
86963
86964         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
86965         Don't bother to check library strftime, since
86966         we'll be using our own my_strftime function anyway.
86967         Define my_strftime instead of strftime.
86968
86969 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
86970
86971         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
86972         which is not yet declared.
86973
86974 2001-05-15  Jim Meyering  <meyering@lucent.com>
86975
86976         * m4/regex.m4: Use proper quoting so brackets appear in the test
86977         program.
86978         Reported by, and with help from, Bruno Haible.
86979
86980 2001-05-13  Jim Meyering  <meyering@lucent.com>
86981
86982         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
86983         undefined.
86984
86985 2001-05-11  Paul Eggert  <eggert@twinsun.com>
86986
86987         dirname code cleanup.  base_name now behaves more compatibly
86988         with POSIX basename when given file names that have trailing
86989         slashes, and similarly for dir_name.  Add new primitives
86990         base_len and dir_len.  Put the directory-name-related decls
86991         into dirname.h.
86992
86993         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
86994         * lib/backupfile.c (base_name): Likewise.
86995         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
86996         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
86997         * lib/makepath.c (strip_trailing_slashes): Likewise.
86998         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
86999         ISSLASH): Likewise.
87000         * lib/rename.c (strip_trailing_slashes): Likewise.
87001         * lib/same.c (base_name): Likewise.
87002         * lib/stripslash.c (ISSLASH): Likewise.
87003
87004         * lib/addext.c: Include <dirname.h> after size_t is defined.
87005         * lib/backupfile.c: Likewise.
87006
87007         * lib/addext.c (addext): Use base_len to trim redundant
87008         trailing slashes instead of doing it ourselves.
87009         But do not trim the last slash if it is not redundant.
87010
87011         * lib/backupfile.c (find_backup_file_name,
87012         max_backup_version): Use base_len instead of rolling it ourselves.
87013         Handle the case of "" and (on DOS) "C:" correctly.
87014
87015         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
87016         needed. Include <string.h>, <dirname.h>.
87017         (base_name): Allow file names ending in slashes, other than names
87018         that are all slashes.  In this case, return the basename followed
87019         by the slashes.  This is more general, and can be used in places
87020         where the original base_name purposely had an assertion failure.
87021         (base_len): New function.
87022
87023         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
87024         Do not include <assert.h>; no longer needed.
87025         Include xalloc.h.
87026         (memrchr): Remove decl.
87027         (dir_name_r): Remove.
87028         (dir_len): Renamed from dirlen.  All callers changed.
87029         Rewrite in terms of base_name, for simplicity and consistency.
87030         (dir_name): Never return NULL.  All callers changed.
87031         Do not include <stdlib.h> in test program; no longer needed.
87032         return 0; is fine for test program.
87033
87034         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
87035         New macros.
87036         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
87037
87038         * lib/path-concat.c (path_concat): Use base_len to compute
87039         base length, not strlen; this means we cannot rely on memcpy
87040         to null-terminate.
87041
87042         * lib/same.c (STREQ): Remove.
87043         (same_name): Handle the case where the basename ends in trailing '/'.
87044
87045         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
87046         a slash was stripped.  Do not strip the last slash after a
87047         file system prefix.
87048
87049 2001-05-11  Paul Eggert  <eggert@twinsun.com>
87050
87051         * lib/Makefile.am (libfetish_a_SOURCES):
87052         Add strftime.c, since we now compile it on all hosts.
87053
87054         * lib/strftime.c (my_strftime):
87055         Define to nstrftime if emacs, but only if my_strftime is not defined.
87056         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
87057         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
87058         Add one more extra argument: a nanoseconds value.
87059         All uses changed.
87060         (ns): New macro.
87061         (my_strftime function): Add %N format.
87062         (emacs_strftimeu): Renamed from emacs_strftime,
87063         with extra ut argument.
87064
87065 2001-05-09  Paul Eggert  <eggert@twinsun.com>
87066
87067         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
87068
87069 2001-04-21  Jim Meyering  <meyering@lucent.com>
87070
87071         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
87072         doesn't interfere.
87073
87074 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
87075
87076         * m4/ftruncate.m4: Check for chsize.
87077         Link with ftruncate.o unconditionally if ftruncate is missing.
87078         This was required when cross-compiling to i586-mingw32msvc.
87079
87080 2001-04-08  Jim Meyering  <meyering@lucent.com>
87081
87082         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
87083         recomputed; that's necessary when the offset spans a DST transition.
87084         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
87085
87086 2001-04-02  Jim Meyering  <meyering@lucent.com>
87087
87088         * lib/regex.h, regex.c: Update from GNU libc.
87089
87090 2001-03-24  Jim Meyering  <meyering@lucent.com>
87091
87092         * m4/jm-macros.m4: Require autoconf-2.49d.
87093
87094 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
87095
87096         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
87097
87098 2001-03-19  Paul Eggert  <eggert@twinsun.com>
87099
87100         * lib/version-etc.c (version_etc_copyright): Update to 2001.
87101
87102 2001-03-17  Jim Meyering  <meyering@lucent.com>
87103
87104         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
87105         now that the version in autoconf is equivalent.
87106         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
87107
87108         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
87109         Suggestion from Akim Demaille.
87110
87111         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
87112         (jm_PREREQ_TEMPNAME): New function.
87113
87114 2001-03-16  Paul Eggert  <eggert@twinsun.com>
87115
87116         * lib/tempname.c (uint64_t): Define to uintmax_t if
87117         not defined, and if UINT64_MAX is not defined.
87118         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
87119         Reported by John David Anglin.
87120
87121 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
87122
87123         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
87124         resolve alias if codeset is empty.
87125         * lib/config.charset (BeOS): Use wildcard syntax.
87126
87127 2001-03-13  Jim Meyering  <meyering@lucent.com>
87128
87129         * lib/path-concat.c (path_concat)
87130         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
87131         concatenating e.g., `C:' and `foo'.
87132         From Bruno Haible.
87133
87134 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
87135
87136         * lib/localcharset.c (locale_charset): Don't use
87137         setlocale(LC_CTYPE,NULL). Don't return NULL.
87138         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
87139
87140 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
87141
87142         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
87143         support for DOS/DJGPP.
87144
87145 2001-03-01  Paul Eggert  <eggert@twinsun.com>
87146
87147         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
87148         lacks mkstemp.  Compile our own tempname.c if we compile our own
87149         mkstemp.c, as mkstemp relies on tempname.
87150
87151 2001-03-01  Jim Meyering  <meyering@lucent.com>
87152
87153         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
87154         AH_VERBATIM really does output its argument verbatim.
87155
87156 2001-02-28  Paul Eggert  <eggert@twinsun.com>
87157
87158         * lib/Makefile.am (libfetish_a_SOURCES):
87159         Add dup-safer.c, fopen-safer.c.
87160         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
87161
87162         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
87163         * lib/unistd-safer.h: New files.
87164
87165 2001-02-25  Paul Eggert  <eggert@twinsun.com>
87166
87167         The mkstemp replacement is taken from glibc 2.2.2, with some
87168         portability fixes for use outside glibc, as follows:
87169
87170         * lib/tempname.c (struct_stat64): New macro.
87171         (direxists, __gen_tempname): Use it.
87172         This avoids a portability problem with Solaris 8.
87173
87174         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
87175         (<stddef.h>, <stdint.h>, <string.h>):
87176         Include only if STDC_HEADERS || _LIBC.
87177         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
87178         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
87179         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
87180         (__set_errno): Define this macro if <errno.h> doesn't.
87181         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
87182         Define these macros if <stdio.h> doesn't.
87183         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
87184         Define these macros if <sys/stat.h>
87185         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
87186         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
87187         __xstat64): Define if not _LIBC.
87188         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
87189         (__gen_tempname): Invoke gettimeofday only if
87190         HAVE_GETTIMEOFDAY || _LIBC;
87191         otherwise, fall back on plain "time".
87192         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
87193
87194         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
87195
87196         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
87197
87198 2001-02-18  Paul Eggert  <eggert@twinsun.com>
87199
87200         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
87201
87202 2001-02-17  Paul Eggert  <eggert@twinsun.com>
87203
87204         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
87205         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
87206         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
87207         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
87208
87209 2001-02-17  Paul Eggert  <eggert@twinsun.com>
87210
87211         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
87212         Remove workaround macros for hosts that have mbrtowc but not
87213         mbstate_t, as we now insist on proper declarations for both
87214         before using mbrtowc.
87215
87216 2001-02-17  Jim Meyering  <meyering@lucent.com>
87217
87218         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
87219         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
87220         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
87221         UnixWare 7.1.1.
87222
87223         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
87224         rather than AC_CACHE_VAL.
87225
87226 2001-02-17  Jim Meyering  <meyering@lucent.com>
87227
87228         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
87229         around included file name.
87230
87231         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
87232
87233         * lib/strftime.c: Update from GNU libc (the only changes were to
87234         comments).
87235
87236 2001-02-17  Jim Meyering  <meyering@lucent.com>
87237
87238         * lib/regex.c: Update from libc.
87239
87240 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
87241
87242         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
87243         clash.
87244
87245 2001-02-16  Paul Eggert  <eggert@twinsun.com>
87246
87247         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
87248         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
87249         Reported by Mark Hounschell via Paul Eggert.
87250
87251 2001-02-07  Jim Meyering  <meyering@lucent.com>
87252
87253         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
87254
87255 2001-02-05  Jim Meyering  <meyering@lucent.com>
87256
87257         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
87258         it includes the patch required for `large file' support with at least
87259         HP-UX's 10.20 /bin/cc.
87260
87261 2001-02-03  Jim Meyering  <meyering@lucent.com>
87262
87263         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
87264         AS_IF, now that it works once again (mysteriously).
87265         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
87266
87267 2001-01-30  Jim Meyering  <meyering@lucent.com>
87268
87269         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
87270         * m4/chown.m4: Rename conftestchown to conftest.chown.
87271         * m4/rename.m4: s/conftestdir/conftest.d1/ and
87272         s/conftestdir2/conftest.d2/.
87273         * m4/utimes.m4: s/conftestdata/conftest.data/
87274         Inspired by Pavel Roskin's change in autoconf.
87275
87276 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
87277
87278         * lib/config.charset: Update for FreeBSD 4.2.
87279
87280 2001-01-27  Jim Meyering  <meyering@lucent.com>
87281
87282         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
87283         a use of AS_IF.
87284         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
87285
87286 2001-01-26  Jim Meyering  <meyering@lucent.com>
87287
87288         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
87289         quotearg.c includes it.
87290
87291 2001-01-26  Jim Meyering  <meyering@lucent.com>
87292
87293         * lib/quotearg.c: Include stddef.h.
87294         * lib/quote.c: Include stddef.h.
87295         Reported by Axel Kittenberger.
87296
87297         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
87298         line in double quotes so that it evokes a better diagnostic.
87299         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
87300         Reported by Axel Kittenberger.
87301
87302 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
87303
87304         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
87305         as if it was a `charset'.
87306
87307 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
87308
87309         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
87310         has const.
87311
87312 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
87313
87314         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
87315         to avoid a warning.  Add back 'const' to inptr.
87316
87317 2001-01-20  Jim Meyering  <meyering@lucent.com>
87318
87319         Be sure that headers are checked before used in code compiled
87320         for the type checks.
87321         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
87322         In place of that, invoke jm_CHECK_ALL_TYPES.
87323         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
87324         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
87325         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
87326         The check for ssize_t was mistakenly run before the test for unistd.h.
87327
87328         The configure-time check for stdbool.h was missing.
87329         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
87330         (jm_PREREQ_HASH): New function.
87331
87332 2001-01-17  Jim Meyering  <meyering@lucent.com>
87333
87334         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
87335         for autoconf-2.49c.
87336         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
87337
87338 2001-01-16  Jim Meyering  <meyering@lucent.com>
87339
87340         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
87341         From Bruno Haible.
87342
87343 2001-01-14  Jim Meyering  <meyering@lucent.com>
87344
87345         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
87346         foo and bar.  Create conftestdir/ in the script, not in the C code.
87347         Remove directories in the script, not in the C code.
87348         Remove conftestdir{,2} before trying to create the directory.
87349         Make the entire configure script fail if the mkdir fails.
87350
87351 2001-01-14  Jim Meyering  <meyering@lucent.com>
87352
87353         * lib/rename.c: New file.  From Volker Borchert.
87354         Include stdlib.h, string.h or strings.h, and xalloc.h.
87355         Use strip_trailing_slashes rather than open-coding it.
87356
87357 2001-01-03  Paul Eggert  <eggert@twinsun.com>
87358
87359         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
87360
87361 2001-01-03  Jim Meyering  <meyering@lucent.com>
87362
87363         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
87364         of local `inptr' to avoid warning with some system declarations of
87365         iconv.
87366
87367 2001-01-02  Volker Borchert  <bt@teknon.de>
87368
87369         * m4/rename.m4: New file.
87370         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
87371
87372 2001-01-01  Jim Meyering  <meyering@lucent.com>
87373
87374         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
87375         even on systems with utmpx.h.  It's necessary for the declaration of
87376         utmp's ut_user member.  Reported by Andreas Jaeger.
87377
87378         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
87379         available. They are required for the declarations of getgrgid and
87380         getpwuid resp.
87381         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
87382         Reported by Andreas Jaeger.
87383
87384 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
87385
87386         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
87387         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
87388         so `make install' also works in VPATH builds.
87389
87390 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
87391
87392         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
87393         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
87394         can be used in subdirectories.
87395
87396 2000-12-29  Paul Eggert  <eggert@twinsun.com>
87397
87398         * lib/modechange.c: Do not assume that mode_t uses the
87399         traditional octal encoding.  E.g. "chmod 1 FOO" should set
87400         the other-execute bit of FOO even if S_IXOTH != 1.
87401
87402         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
87403         WOTH, XOTH, ALLM): New macros.
87404         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
87405          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
87406         Use them.
87407         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
87408         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
87409         (mode_compile):
87410         No need to use uintmax_t; unsigned long is long enough.
87411         Don't bother to get suffix since we don't use it.
87412
87413 2000-12-26  Jim Meyering  <meyering@lucent.com>
87414
87415         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
87416         better with autoheader.
87417
87418 2000-12-24  Jim Meyering  <meyering@lucent.com>
87419
87420         * lib/hash.c (is_prime): Return explicit boolean values.
87421         (hash_get_first): Return NULL to appease Irix5.6's 89.
87422         Reported by Nelson Beebe.
87423
87424 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
87425
87426         * lib/localcharset.c (locale_charset): Add support for Win32.
87427
87428 2000-12-18  Paul Eggert  <eggert@twinsun.com>
87429
87430         * lib/physmem.h, lib/physmem.c: New files.
87431
87432         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
87433         (noinst_HEADERS): Add physmem.h.
87434
87435         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
87436         't' for compatibility with Solaris 8 sort.
87437
87438 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
87439
87440         * lib/config.charset: Add support for BeOS.
87441
87442 2000-12-17  Jim Meyering  <meyering@lucent.com>
87443
87444         * m4/dos.m4 (jm_AC_DOS): New file and macro.
87445         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
87446
87447 2000-12-16  Jim Meyering  <meyering@lucent.com>
87448
87449         This bug had a serious impact on chown: `chown N:M FILE' (for integer
87450         N and M) would have treated it like `chown N:N FILE'.
87451
87452         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
87453
87454 2000-12-16  Jim Meyering  <meyering@lucent.com>
87455
87456         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
87457         SHELLS_FILE to a file name that's useful on djgpp systems.
87458         Include stdlib.h.
87459         (ADDITIONAL_DEFAULT_SHELLS): Define.
87460         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
87461         Based mostly on a patch from Prashant TR.
87462
87463 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
87464
87465         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
87466         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
87467         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
87468
87469 2000-12-08  Andreas Schwab  <schwab@suse.de>
87470
87471         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
87472         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
87473
87474 2000-12-07  Jim Meyering  <meyering@lucent.com>
87475
87476         * lib/stripslash.c (ISSLASH): Define.
87477         (strip_trailing_slashes): Use ISSLASH rather than comparing against
87478         `/'.
87479         From Prashant TR.
87480
87481         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
87482         (dir_name_r): Declare this function as static.
87483         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
87484         manifest itself on a name containing a mix of slashes and
87485         backslashes.
87486         Make this function work with names starting with a DOS-style
87487         drive letter and colon prefix.
87488         (dir_name): Append `.' if necessary.
87489         Based mostly on patches from Prashant TR and Eli Zaretskii.
87490
87491         * lib/dirname.h (dir_name_r): Remove prototype.
87492
87493 2000-12-06  Paul Eggert  <eggert@twinsun.com>
87494
87495         * m4/off_t-format.m4: Remove this file.
87496         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
87497
87498 2000-12-06  Jim Meyering  <meyering@lucent.com>
87499
87500         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
87501         replacement strtoull, we may well need the replacement strtoul, too.
87502         Check for declarations of strtoul and strtoull.
87503         Check for strtol.  Mainly as a cue to cause automake to include
87504         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
87505         Check for limits.h -- strtol.c needs it.
87506
87507 2000-12-05  Jim Meyering  <meyering@lucent.com>
87508
87509         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
87510
87511 2000-12-04  Jim Meyering  <meyering@lucent.com>
87512
87513         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
87514         Also include memory.h, stdlib.h, unistd.h if appropriate.
87515         Reported by Andreas Jaeger (conflicting declaration of malloc).
87516
87517 2000-12-02  Jim Meyering  <meyering@lucent.com>
87518
87519         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
87520         * m4/jm-macros.m4 (jm_MACROS): require it.
87521
87522 2000-12-02  Jim Meyering  <meyering@lucent.com>
87523
87524         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
87525
87526 2000-12-01  Paul Eggert  <eggert@twinsun.com>
87527
87528         * lib/memrchr.c: Include <config.h> before any system include file.
87529
87530 2000-11-30  Jim Meyering  <meyering@lucent.com>
87531
87532         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
87533
87534 2000-11-30  Jim Meyering  <meyering@lucent.com>
87535
87536         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
87537
87538 2000-11-29  Paul Eggert  <eggert@twinsun.com>
87539
87540         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
87541
87542 2000-11-26  Jim Meyering  <meyering@lucent.com>
87543
87544         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
87545
87546 2000-11-22  Paul Eggert  <eggert@twinsun.com>
87547
87548         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
87549         size of (size_t) -1; it's not portable.
87550
87551 2000-11-17  Jim Meyering  <meyering@lucent.com>
87552
87553         * lib/strstr.c: Update from GNU libc.
87554
87555 2000-11-17  Akim Demaille  <akim@epita.fr>
87556
87557         * lib/obstack.h: Formatting changes.
87558         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
87559         prevent type checking.
87560         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
87561         cast the value to (void *): assigning a `foo *' to a `void *'
87562         variable is valid.
87563         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
87564
87565 2000-11-16  Jim Meyering  <meyering@lucent.com>
87566
87567         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
87568
87569 2000-11-11  Jim Meyering  <meyering@lucent.com>
87570
87571         * lib/error.c: Add a couple #includes, merging from GNU libc version.
87572
87573 2000-11-10  Jim Meyering  <meyering@lucent.com>
87574
87575         * lib/obstack.h: Update from GNU libc.
87576         * lib/obstack.c: Likewise.
87577
87578 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
87579
87580         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
87581
87582 2000-11-06  Paul Eggert  <eggert@twinsun.com>
87583
87584         * lib/getusershell.c (setusershell): Use rewind rather than
87585         fseek/fseeko, to avoid configuration hassles with fseeko.
87586         Don't bother opening SHELLS_FILE if shellstream is NULL;
87587         it's not necessary.
87588
87589 2000-11-05  Jim Meyering  <meyering@lucent.com>
87590
87591         * lib/makepath.h (make_dir): Declare.
87592         * lib/makepath.c (make_dir): Remove `static' attribute.
87593         Tweak a comment.
87594
87595 2000-11-04  Jim Meyering  <meyering@lucent.com>
87596
87597         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
87598
87599 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
87600
87601         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
87602         last one in a bucket, advance to the next bucket.
87603
87604 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
87605
87606         * lib/fnmatch.c: Do not comment out all the code if we are using
87607         the GNU C library, because in some cases we are replacing buggy
87608         code in the GNU C library itself.
87609
87610 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
87611
87612         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
87613         (regex_compile): Catch bogus \(\1\).
87614
87615 2000-10-30  Paul Eggert  <eggert@twinsun.com>
87616
87617         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
87618         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
87619         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
87620
87621 2000-10-30  Paul Eggert  <eggert@twinsun.com>
87622
87623         * lib/error.h, getline.h, modechange.h:
87624         Remove "2000" from Copyright line, as the file hasn't been
87625         changed this year other than in the copyright notice.
87626
87627         * lib/xalloc.h: Add "2000" to Copyright line, as this file
87628         was changed this year.
87629
87630 2000-10-29  Jim Meyering  <meyering@lucent.com>
87631
87632         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
87633         renaming.
87634         * m4/ls-mntd-fs.m4: Likewise
87635
87636 2000-10-29  Jim Meyering  <meyering@lucent.com>
87637
87638         * lib/xstat.in: Fix grammar in comment.
87639
87640 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
87641
87642         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
87643         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
87644         doesn't define __restrict_arr.
87645
87646 2000-10-28  Jim Meyering  <meyering@lucent.com>
87647
87648         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
87649         (jm_PREREQ_MEMCHR): New function.
87650
87651 2000-10-28  Jim Meyering  <meyering@lucent.com>
87652
87653         * lib/memchr.c: Update from libc.
87654         Adjust for portability:
87655         [HAVE_STDLIB_H]: Include stdlib.h.
87656         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
87657         Undef __memchr, too.
87658         [!weak_alias]: Define __memchr to memchr.
87659
87660         * lib/regex.c: Update from libc.
87661         * lib/regex.h: Likewise.
87662         * lib/getopt1.c: Likewise.
87663         * lib/memcmp.c: Likewise.
87664
87665         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
87666         Avoid using fseek, when possible -- it's broken by design.
87667         Patch by Ulrich Drepper.
87668
87669 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
87670
87671         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
87672         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
87673         Giving in to popular pressure to shut up the compiler with casts.
87674
87675 2000-10-26  Jim Meyering  <meyering@lucent.com>
87676
87677         * lib/strftime.c: Update from libc.
87678
87679 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
87680
87681         * regex.c: More `unsigned char' -> `re_char' changes.
87682         Also change several `int' into `re_wchar_t'.
87683         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
87684         (PUSH_FAILURE_POINTER): Don't cast any more.
87685         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
87686         We want GCC to complain, since this piece of code makes
87687         re_match non-reentrant, which *should* be fixed.
87688         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
87689         (EXTEND_BUFFER): Use RETALLOC.
87690         (SET_LIST_BIT): Don't cast.
87691         (re_wchar_t): New type.
87692         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
87693         that those two functions will always properly return.
87694         (IMMEDIATE_QUIT_CHECK): Cast to void.
87695         (analyse_first): Use recursion rather than an explicit stack.
87696         (re_compile_fastmap): Can't fail anymore.
87697         (re_search_2): Don't check re_compile_fastmap for failure.
87698         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
87699         Now also sets the new value (passed in a new argument).
87700         (re_match_2_internal): Use it.
87701         Also, use a new var `reg' of type size_t when looping through regs
87702         rather than reuse the inappropriate `mcnt'.
87703
87704 2000-10-25  Jim Meyering  <meyering@lucent.com>
87705
87706         * lib/obstack.c: Update from libc.
87707
87708 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
87709
87710         * regex.c (regex_compile): Change the way of handling a range from
87711         a char less than 256 to a char not less than 256.
87712
87713 2000-10-24  Andrew Innes  <andrewi@gnu.org>
87714
87715         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
87716         NT-Emacs only.
87717         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
87718         so that re_search functions only quit when callers expect them to.
87719
87720 2000-10-23  Jim Meyering  <meyering@lucent.com>
87721
87722         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
87723         wrong.  That set_locale call must not have any side effects.
87724         From Paul Eggert.
87725
87726 2000-10-22  Jim Meyering  <meyering@lucent.com>
87727
87728         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
87729         [CYCLIC]: Remove now-unused definition.
87730
87731         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
87732         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
87733         Suggestion from Ulrich Drepper.
87734
87735 2000-10-21  Jim Meyering  <meyering@lucent.com>
87736
87737         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
87738         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
87739         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
87740
87741 2000-10-21  Jim Meyering  <meyering@lucent.com>
87742
87743         * lib/dirname.c (memrchr): Declare if necessary.
87744         (dir_name): Remove the restriction that there be no
87745         trailing slashes.  Now, this code skips past them, effectively
87746         ignoring them.
87747         [TEST_DIRNAME] (main): New unit tests.
87748
87749         * lib/memrchr.c: New file from GNU libc.
87750         Undef __memrchr, too.
87751         [!weak_alias]: Define __memrchr to memrchr.
87752         Guard weak_alias use with `#ifdef weak_alias'.
87753
87754 2000-10-21  Jim Meyering  <meyering@lucent.com>
87755
87756         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
87757         (dir_name): Use dir_name_r.
87758         * lib/dirname.h (dir_name_r): Declare it.
87759
87760 2000-10-17  Jim Meyering  <meyering@lucent.com>
87761
87762         * lib/quote.h (PARAMS): Define and use.
87763         Reported by Akim Demaille.
87764
87765         * lib/getopt.c: Update from libc.
87766
87767 2000-10-16  Jim Meyering  <meyering@lucent.com>
87768
87769         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
87770         setlocale.
87771         From Jan Fedak.
87772
87773 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
87774
87775         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
87776
87777 2000-09-25  Jim Meyering  <meyering@lucent.com>
87778
87779         * lib/md5.h (rol): Define (from GnuPG).
87780
87781         * lib/sha.c: Give credit (GnuPG) where due.
87782         (M): Use rol rather than open-coding it.
87783         Add a FIXME comment.
87784
87785 2000-09-21  Jim Meyering  <meyering@lucent.com>
87786
87787         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
87788         Reported by Michael Stone.
87789
87790 2000-09-20  Jim Meyering  <meyering@lucent.com>
87791
87792         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
87793         (noinst_HEADERS): Add sha.h.
87794         Based on code from Scott G. Miller and from GnuPG.
87795
87796 2000-09-18  Jim Meyering  <meyering@lucent.com>
87797
87798         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
87799         LIBS. Otherwise, everyone ends up linking with -lelf for some
87800         configurations.
87801         Reported by Mike Stone.
87802
87803 2000-09-15  Jim Meyering  <meyering@lucent.com>
87804
87805         * lib/regex.c: Update from libc.
87806
87807 2000-09-10  Jim Meyering  <meyering@lucent.com>
87808
87809         * lib/getopt.c (_getopt_internal): Update from glibc.
87810
87811 2000-09-09  Jim Meyering  <meyering@lucent.com>
87812
87813         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
87814         think it should be used as a general replacement for isascii.
87815         * lib/fnmatch.c: Likewise.
87816         * lib/mbswidth.c: Likewise
87817         * lib/regex.c: Likewise.
87818
87819         Don't use atoi.
87820         * lib/userspec.c: Include sys/param.h and limits.h.
87821         Include xstrtol.h.
87822         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
87823         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
87824         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
87825         UID, GID.  Check range.
87826
87827 2000-09-06  Jim Meyering  <meyering@lucent.com>
87828
87829         * lib/getopt.c (_getopt_internal): Update from glibc.
87830
87831 2000-08-30  Jim Meyering  <meyering@lucent.com>
87832
87833         * lib/strftime.c: Merge in changes from GNU libc.
87834
87835 2000-08-26  Jim Meyering  <meyering@lucent.com>
87836
87837         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
87838         * m4/fpending.m4: New file.
87839
87840 2000-08-26  Jim Meyering  <meyering@lucent.com>
87841
87842         * lib/closeout.c: Include "__fpending.h".
87843         (close_stdout_status): Return right away if there's nothing to flush.
87844
87845         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
87846         * lib/__fpending.c: New file.
87847         * lib/__fpending.h: New file.
87848
87849 2000-08-20  Jim Meyering  <meyering@lucent.com>
87850
87851         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
87852         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
87853         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
87854
87855 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
87856
87857         Improve fileutils installation on systems where running
87858         programs (like install) can't be unlinked.
87859         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
87860         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
87861
87862 2000-08-07  Paul Eggert  <eggert@twinsun.com>
87863
87864         Standardize on "memory exhausted" instead of "Memory exhausted"
87865         or "virtual memory exhausted".
87866         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
87867         "virtual memory exhausted".
87868         * lib/same.c (same_name): Invoke xalloc_die instead of printing
87869         our own message.
87870         * lib/userspec.c (parse_user_spec): Likewise.
87871         * lib/bumpalloc.h: comment fix
87872         * lib/same.c, userspec.c: Include xalloc.h.
87873
87874         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
87875         not char *const and pointing to a constant array.
87876         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
87877         (xrealloc): Comment fix.
87878
87879         * lib/userspec.c (parse_user_spec):
87880         Don't translate a message until just before returning,
87881         to avoid unnecessary translation.
87882
87883 2000-08-07  Jim Meyering  <meyering@lucent.com>
87884
87885         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
87886         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
87887         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
87888         getgroups.c, gethostname.c, getopt.h, group-member.c,
87889         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
87890         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
87891         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
87892         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
87893         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
87894         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
87895         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
87896         yesno.c: Back out Copyright date changes for each file with no change
87897         this year.  This eases coordination with other programs using the same
87898         source code modules.  From Paul Eggert.
87899
87900 2000-08-06  Paul Eggert  <eggert@twinsun.com>
87901
87902         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
87903         not char, for compatibility with glibc 2.1.3 strftime.c.
87904
87905 2000-08-03  Greg McGary  <greg@mcgary.org>
87906
87907         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
87908         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
87909         (EXTEND_BUFFER): Use them.
87910
87911 2000-08-01  Jim Meyering  <meyering@lucent.com>
87912
87913         * lib/dirname.c (ISSLASH): Define.
87914         (BACKSLASH_IS_PATH_SEPARATOR): Define.
87915         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
87916         both `\' and `/' may be use as path separators.
87917         Based on a patch from Prashant TR.
87918
87919 2000-07-31  Paul Eggert  <eggert@twinsun.com>
87920
87921         * lib/quotearg.c (quotearg_n_options): Don't make the initial
87922         slot vector a constant, since it might get modified.
87923
87924 2000-07-31  Jim Meyering  <meyering@lucent.com>
87925
87926         * lib/xmalloc.c: Use `virtual memory exhausted', not
87927         `Memory exhausted'.
87928         * lib/obstack.c (print_and_abort): Likewise.
87929
87930 2000-07-30  Paul Eggert  <eggert@twinsun.com>
87931
87932         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
87933         buffer, so that the caller can always quote one small
87934         component of a "memory exhausted" message in slot 0.
87935         From a suggestion by Jim Meyering.
87936
87937 2000-07-30  Jim Meyering  <meyering@lucent.com>
87938
87939         * lib/makepath.c (make_path): Quote the other instance, too.
87940
87941         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
87942         (STATIC_BUF_SIZE): Define.
87943         (quotearg_n_options): Use only statically allocated storage when
87944         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
87945         than STATIC_BUF_SIZE.
87946
87947 2000-07-29  Jim Meyering  <meyering@lucent.com>
87948
87949         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
87950         * lib/dirname.c (dir_name): Likewise.
87951
87952         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
87953         `/'.
87954
87955         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
87956         (dir_name): Assert that there are no trailing slashes.
87957
87958 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
87959
87960         * lib/mbswidth.h (mbswidth): Add a flags argument.
87961         (mbswidth): New declaration.
87962         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
87963         * lib/mbswidth.c (mbswidth): Add a flags argument.
87964         (mbsnwidth): New function.
87965
87966 2000-07-24  Jim Meyering  <meyering@lucent.com>
87967
87968         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
87969
87970 2000-07-23  Paul Eggert  <eggert@twinsun.com>
87971
87972         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
87973
87974 2000-07-23  Paul Eggert  <eggert@twinsun.com>
87975
87976         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
87977         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
87978         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
87979         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
87980         invoke multibyte primitives.
87981
87982 2000-07-23  Paul Eggert  <eggert@twinsun.com>
87983
87984         * lib/quotearg.c:
87985         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
87986         so that mbstate_t is always defined.
87987
87988         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
87989         be 1 in at least one GCC installation, and this configuration
87990         error is likely to be common.  Ignoring MB_LEN_MAX hurts
87991         performance on hosts that have mbrtowc but have only unibyte
87992         locales, but I assume these hosts are rare.
87993
87994 2000-07-23  Paul Eggert  <eggert@twinsun.com>
87995
87996         * lib/mbswidth.c (_XOPEN_SOURCE):
87997         Don't define; this causes problems on Solaris 7.
87998         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
87999
88000 2000-07-23  Jim Meyering  <meyering@lucent.com>
88001
88002         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
88003         too: getgrgid, getpwuid, getuid.
88004
88005 2000-07-23  Jim Meyering  <meyering@lucent.com>
88006
88007         * lib/basename.c (base_name): Add an assertion.
88008
88009 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
88010
88011         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
88012         shadow its mbsinit function.
88013
88014 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
88015
88016         * lib/mbswidth.h: New file.
88017         * lib/mbswidth.c: New file.
88018         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
88019         (noinst_HEADERS): Add mbswidth.h.
88020
88021 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
88022
88023         * lib/config.charset: Add support for FreeBSD. Improve support for
88024         HP-UX and IRIX 6.
88025
88026 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
88027
88028         * m4/mbswidth.m4: New file.
88029         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
88030
88031 2000-07-15  Jim Meyering  <meyering@lucent.com>
88032
88033         * lib/makepath.c: Include quote.h.
88034         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
88035         corresponding argument in a `quote (...)' call.
88036         Give better diagnostics.
88037
88038         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
88039         (noinst_HEADERS): Add quote.h.
88040
88041         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
88042         from tar's src/misc.c.
88043         * lib/quote.h: New file.  Prototypes for same.
88044
88045 2000-07-14  Paul Eggert  <eggert@twinsun.com>
88046
88047         From a suggestion by Bruno Haible.
88048         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
88049         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
88050         to decide whether to define the BeOS workaround macro;
88051         this adjusts to the change to AC_MBSTATE_T.
88052
88053 2000-07-14  Jim Meyering  <meyering@lucent.com>
88054
88055         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
88056         jm_AC_TYPE_UINTMAX_T.
88057
88058 2000-07-13  Paul Eggert  <eggert@twinsun.com>
88059
88060         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
88061
88062         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
88063         quotearg_buffer_restyled): Add support for
88064         clocale_quoting_style.  Undo previous change to
88065         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
88066         and "{RIGHT QUOTATION MARK}" msgids.
88067
88068 2000-07-10  Paul Eggert  <eggert@twinsun.com>
88069
88070         From a suggestion by Bruno Haible.
88071         * m4/mbstate_t.m4 (AC_MBSTATE_T):
88072         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
88073         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
88074         and mbstate_t, to a single-part test that simply defines mbstate_t.
88075         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
88076         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
88077
88078 2000-07-10  Jim Meyering  <meyering@lucent.com>
88079
88080         * m4/strerror_r.m4: Mirror the correction made in autoconf.
88081
88082         * m4/gnu-source.m4: Output to confdefs.h directly.
88083         Suggestion from Akim Demaille.
88084
88085 2000-07-09  Paul Eggert  <eggert@twinsun.com>
88086
88087         The old behavior of quoting `like this' doesn't look good with
88088         newer, ISO-style fonts.  See:
88089         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
88090
88091         Instead, quote "like this" by default.  Let the translator
88092         tailor the locale-specific quoting behavior by providing
88093         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
88094
88095         * lib/quotearg.c (N_): New macro.
88096         (gettext_default): New function.
88097         (quotearg_buffer_restyled): Use
88098         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
88099         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
88100
88101 2000-07-09  Jim Meyering  <meyering@lucent.com>
88102
88103         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
88104         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
88105
88106         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
88107         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
88108
88109 2000-07-09  Jim Meyering  <meyering@lucent.com>
88110
88111         * lib/Most files: Update copyright dates to include 2000.
88112
88113 2000-07-08  Jim Meyering  <meyering@lucent.com>
88114
88115         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
88116         if not defined.
88117         (xgethostname): Remove now-unnecessary #ifdef.
88118         Move declaration of `err' into loop where it's used.
88119
88120 2000-07-05  Paul Eggert  <eggert@twinsun.com>
88121         and Bruno Haible  <haible@clisp.cons.org>
88122
88123         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
88124         only if the test for an object-type mbstate_t fails.  This
88125         prevents us from mistakenly reporting that mbstate_t is a
88126         system object type after we "#define mbstate_t int" to work
88127         around its lack.
88128
88129 2000-07-05  Paul Eggert  <eggert@twinsun.com>
88130         and Bruno Haible  <haible@clisp.cons.org>
88131
88132         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
88133
88134 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
88135
88136         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
88137         to strerror_r.
88138         Include <ctype.h> for use of isalpha.
88139
88140 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
88141
88142         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
88143         by allocating a larger buffer. Test the gethostname return value for
88144         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
88145         returns an error and ENAMETOOLONG isn't defined.
88146
88147 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
88148
88149         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
88150         dimension.
88151
88152 2000-07-04  Jim Meyering  <meyering@lucent.com>
88153
88154         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
88155         of the deprecated AC_CHECKING.
88156
88157 2000-07-04  Jim Meyering  <meyering@lucent.com>
88158
88159         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
88160         Reported by Bruno Haible.
88161
88162 2000-07-04  Jim Meyering  <meyering@lucent.com>
88163
88164         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
88165         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
88166         lacks mbrtowc.
88167
88168 2000-07-03  Paul Eggert  <eggert@twinsun.com>
88169
88170         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
88171         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
88172
88173 2000-07-03  Paul Eggert  <eggert@twinsun.com>
88174         and Bruno Haible  <haible@clisp.cons.org>
88175
88176         * lib/quotearg.c (mbrtowc):
88177         Assign to *pwc, and return 1 only if result is nonzero.
88178         (iswprint): Use ISPRINT when substituting our own mbrtowc.
88179
88180 2000-07-03  Jim Meyering  <meyering@lucent.com>
88181
88182         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
88183
88184 2000-07-03  Jim Meyering  <meyering@lucent.com>
88185
88186         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
88187         This is necessary to get a definition of e.g., UTMP_FILE on
88188         HP-UX 10.20.
88189         From Bob Proulx.
88190
88191 2000-07-02  Jim Meyering  <meyering@lucent.com>
88192
88193         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
88194
88195         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
88196         AC_LIBOBJ(function_name).
88197         * m4/chown.m4: Likewise.
88198         * m4/fnmatch.m4: Likewise.
88199         * m4/ftruncate.m4: Likewise.
88200         * m4/getgroups.m4: Likewise.
88201         * m4/getline.m4: Likewise.
88202         * m4/group-member.m4: Likewise.
88203         * m4/jm-macros.m4: Likewise.
88204         * m4/lstat.m4: Likewise.
88205         * m4/malloc.m4: Likewise.
88206         * m4/memcmp.m4: Likewise.
88207         * m4/nanosleep.m4: Likewise.
88208         * m4/putenv.m4: Likewise.
88209         * m4/realloc.m4: Likewise.
88210         * m4/regex.m4: Likewise.
88211         * m4/stat.m4: Likewise.
88212         * m4/strftime.m4: Likewise.
88213
88214 2000-07-02  Jim Meyering  <meyering@lucent.com>
88215
88216         * lib/quotearg.c (mbstate_t): Don't define here.
88217
88218 2000-07-02  Jim Meyering  <meyering@lucent.com>
88219
88220         * lib/nanosleep.c (SIGCONT): Define if not already defined.
88221
88222 2000-07-01  Jim Meyering  <meyering@lucent.com>
88223
88224         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
88225
88226 2000-07-01  Jim Meyering  <meyering@lucent.com>
88227
88228         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
88229         problem.
88230
88231 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
88232
88233         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
88234         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
88235
88236 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
88237
88238         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
88239         per change in ../m4/ls-mntd-fs.m4.
88240         (read_filesystem_list): Ignore symbolic links.
88241
88242 2000-06-29  Jim Meyering  <meyering@lucent.com>
88243
88244         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
88245         for declaration of strcmp.
88246
88247         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
88248
88249         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
88250         Avoid warning by casting result to `char *' to remove `const'.
88251
88252 2000-06-28  Jim Meyering  <meyering@lucent.com>
88253
88254         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
88255         included by quotearg.c, for which we perform this test.  From
88256         Bruno Haible.
88257
88258 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
88259
88260         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
88261         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
88262         <utmpx.h> exists, put readutmp.o into LIBOBJS.
88263
88264 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
88265
88266         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
88267
88268 2000-06-26  Paul Eggert  <eggert@twinsun.com>
88269
88270         savedir now sets errno on failure and invokes xmalloc to get memory.
88271         Fix a couple of other minor bugs while we're at it.
88272
88273         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
88274         (NAMLEN): Remove macro.
88275         (malloc, realloc): Remove decls.
88276         (stpcpy): Likewise.
88277         ("xalloc.h"): Include.
88278         (NAME_SIZE_DEFAULT): New macro.
88279         (savedir): Use xmalloc / xrealloc to allocate memory.
88280         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
88281         Skip "" directory entries.
88282         Use strlen to calculate directory entry length, since the old method
88283         is rarely used these days and isn't worth supporting.
88284         Don't use a pointer after freeing it.
88285         Check for integer overflow when calculating allocation size.
88286         Use memcpy to copy entries, instead of stpcpy.
88287         Set errno properly when returning NULL.
88288         Check for readdir error.
88289
88290 2000-06-26  Jim Meyering  <meyering@lucent.com>
88291
88292         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
88293
88294 2000-06-25  Jim Meyering  <meyering@lucent.com>
88295
88296         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
88297         Linux header bug when _XOPEN_SOURCE is defined to 500.
88298
88299 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
88300
88301         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
88302         deficiency.
88303
88304 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
88305
88306         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
88307         Include xalloc.h.
88308         Don't include <stdlib.h>.  Don't declare malloc, realloc.
88309
88310 2000-06-24  Jim Meyering  <meyering@lucent.com>
88311
88312         * m4/strerror_r.m4: Revive this file -- to try out an experimental
88313         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
88314         for which strerror does return char*, but which lacks a conveniently
88315         accessible declaration of the function.  If the compile-test says
88316         strerror_r doesn't work, then resort to a `run'-test that works on
88317         BeOS and segfaults on DEC Unix.
88318
88319 2000-06-24  Jim Meyering  <meyering@lucent.com>
88320
88321         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
88322
88323 2000-06-23  Paul Eggert  <eggert@twinsun.com>
88324
88325         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
88326         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
88327
88328 2000-06-23  Paul Eggert  <eggert@twinsun.com>
88329
88330         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
88331         (mbrtowc, mbstate_t): Define substitutes if
88332         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
88333         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
88334         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
88335
88336 2000-06-23  Jim Meyering  <meyering@lucent.com>
88337
88338         * m4/afs.m4: Add missing AC_MSG_RESULT.
88339         Reported by Bruno Haible.
88340
88341         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
88342         Suggestion from Bruno Haible.
88343
88344 2000-06-23  Jim Meyering  <meyering@lucent.com>
88345
88346         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
88347
88348 2000-06-21  Jim Meyering  <meyering@lucent.com>
88349
88350         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
88351
88352 2000-06-21  Jim Meyering  <meyering@lucent.com>
88353
88354         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
88355         (noinst_HEADERS): Add getstr.h.
88356
88357         * lib/getline.c (getstr): Move into a separate file.
88358         * lib/getstr.c (getstr): New file, extracted from getline.c, with
88359         the following changes: new parameter, delim2; both delim[12]
88360         parameters have type `int', not `char'.  The latter would lose
88361         with 8-bit delimiters.
88362         * lib/getstr.h: New file.
88363
88364 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
88365
88366         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
88367         than 1024, return a memory chunk of least possible size, instead
88368         of size PATH_MAX + 2. In the loop, increment the size proportionally.
88369         Use free/xmalloc instead of xrealloc to avoid copying for very long
88370         paths.
88371
88372 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
88373
88374         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
88375         the empty string.
88376
88377 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
88378
88379         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
88380         address, not strdup.  Include <stdlib.h> and don't declare free().
88381
88382 2000-06-19  Jim Meyering  <meyering@lucent.com>
88383
88384         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
88385
88386 2000-06-18  Jim Meyering  <meyering@lucent.com>
88387
88388         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
88389
88390         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
88391         `checking whether...' message to be consistent with that of the
88392         lstat test.
88393
88394 2000-06-18  Jim Meyering  <meyering@lucent.com>
88395
88396         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
88397         Besides, these days every porting target provides a mkdir function.
88398
88399         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
88400         needed. (this snippet comes from src/system.h).
88401
88402 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
88403
88404         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
88405
88406 2000-06-15  Paul Eggert  <eggert@twinsun.com>
88407
88408         * lib/human.c (adjust_value): New function.
88409         (human_readable_inexact): Apply rounding style even when
88410         printing approximate values.
88411
88412 2000-06-14  Paul Eggert  <eggert@twinsun.com>
88413
88414         * lib/human.c (human_readable_inexact): Allow an input block
88415         size that is not a multiple of the output block size, and vice versa.
88416         Reported by Piergiorgio Sartor.
88417
88418 2000-06-14  Paul Eggert  <eggert@twinsun.com>
88419
88420         * lib/getdate.y (get_date): Apply relative times after time
88421         zone indicator, not before.  Reported by Todd A. Jacobs.
88422
88423 2000-06-13  Jim Meyering  <meyering@lucent.com>
88424
88425         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
88426
88427         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
88428
88429 2000-06-12  Paul Eggert  <eggert@twinsun.com>
88430
88431         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
88432
88433 2000-06-12  Jim Meyering  <meyering@lucent.com>
88434
88435         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
88436         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
88437         optional argument.
88438         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
88439         the optional argument, `lib'.
88440
88441 2000-06-08  Jim Meyering  <meyering@lucent.com>
88442
88443         * m4/largefile.m4: Remove file (now that it's part of autoconf).
88444
88445 2000-06-04  Paul Eggert  <eggert@twinsun.com>
88446
88447         Rewrite largefile configuration so that we don't need to run
88448         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
88449         AC_CANONICAL_HOST in configure.in -- jmm]
88450
88451         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
88452         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
88453         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
88454         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
88455         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
88456         All uses changed.
88457         Instead of inspecting the output of getconf, try to compile the
88458         test program without and with the macro definition.
88459         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
88460         for getconf.  Instead, check for the needed flags by compiling
88461         test programs.
88462
88463 2000-06-04  Paul Eggert  <eggert@twinsun.com>
88464
88465         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
88466
88467 2000-06-04  Jim Meyering  <meyering@lucent.com>
88468
88469         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
88470         SunOS 4.1.4 for which gid_t is an unsigned type.
88471
88472 2000-06-03  Jim Meyering  <meyering@lucent.com>
88473
88474         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
88475         now that autoconf requires that.
88476
88477         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
88478         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
88479         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
88480
88481 2000-06-03  Jim Meyering  <meyering@lucent.com>
88482
88483         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
88484
88485 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
88486
88487         * m4/glibc21.m4: New file.
88488         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
88489
88490 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
88491
88492         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
88493         newer, don't install charset.alias.
88494         * lib/config.charset: Change the Linux/glibc rules so they become empty
88495         on glibc-2.1 or newer.
88496
88497 2000-06-02  Jim Meyering  <meyering@lucent.com>
88498
88499         * lib/mountlist.c: Back out last change.  Instead, do this...
88500         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
88501         me_dummy member using the same `ignore'-testing code.
88502         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
88503         fs_type strings.
88504         From Mark D. Roth.
88505
88506 2000-05-29  Jim Meyering  <meyering@lucent.com>
88507
88508         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
88509         mounts with the `ignore' attribute.  Based on a patch from
88510         Mark D. Roth.
88511
88512 2000-05-28  Jim Meyering  <meyering@lucent.com>
88513
88514         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
88515         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
88516         * m4/stat.m4: Likewise.
88517         * m4/lstat.m4: Likewise.
88518         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
88519
88520         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
88521         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
88522
88523 2000-05-26  Jim Meyering  <meyering@lucent.com>
88524
88525         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
88526
88527 2000-05-24  Jim Meyering  <meyering@lucent.com>
88528
88529         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
88530         autoconf requires that.
88531         * m4/lib-check.m4: Likewise.
88532         * m4/jm-macros.m4: Likewise.
88533         * m4/strftime.m4: Likewise.
88534
88535         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
88536         AC_CHECK_DECLS, now that autoconf requires that.
88537
88538 2000-05-22  Jim Meyering  <meyering@lucent.com>
88539
88540         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
88541         * m4/lstat.m4: Likewise.
88542
88543 2000-05-22  Jim Meyering  <meyering@lucent.com>
88544
88545         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
88546
88547 2000-05-20  Jim Meyering  <meyering@lucent.com>
88548
88549         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
88550         (jm_PREREQ): Use it.
88551
88552 2000-05-18  Jim Meyering  <meyering@lucent.com>
88553
88554         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
88555         back, too, since it may have been modified by allocate_entry.
88556         (hash_delete): Rewrite to use neither the assignment operator
88557         nor the comma operator in an if-expression.
88558
88559 2000-05-15  Paul Eggert  <eggert@twinsun.com>
88560
88561         * lib/closeout.c:
88562         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
88563         Remove; no longer needed.
88564         "quotearg.h": Add include.
88565         (file_name): Do not bother to explicitly initialize to NULL; it's less
88566         efficient on some hosts.
88567         (close_stdout_status): Remove test as to whether stdout was already
88568         closed; it breaks for the case "echo x | sort >&-".
88569         Quote file name colons.
88570         Do not assume that _("write error") lacks format strings.
88571
88572 2000-05-15  Jim Meyering  <meyering@lucent.com>
88573
88574         * lib/version-etc.c (version_etc_copyright): Update the copyright
88575         string used in all --version output.
88576
88577 2000-05-14  Jim Meyering  <meyering@lucent.com>
88578
88579         * lib/closeout.c (close_stdout_set_file_name): New function.
88580         (close_stdout_status): Use new file-scoped global.
88581         Return right away if fstat says the stdout file descriptor is invalid.
88582         * lib/closeout.h (close_stdout_set_file_name): Declare.
88583
88584 2000-05-10  Jim Meyering  <meyering@lucent.com>
88585
88586         * lib/closeout.c [default_exit_status]: New file-scoped variable.
88587         (close_stdout_set_status): New function.
88588         * lib/closeout.h (close_stdout_set_status): Declare.
88589
88590 2000-05-09  Jim Meyering  <meyering@lucent.com>
88591
88592         * m4/gettext.m4: Rename this...
88593         * m4/libintl.m4: ...to this.
88594
88595 2000-05-08  Jim Meyering  <meyering@lucent.com>
88596
88597         * lib/long-options.c: Don't include closeout.h.
88598         (parse_long_options): Don't call close_stdout for --version.
88599
88600 2000-05-06  Paul Eggert  <eggert@twinsun.com>
88601
88602         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
88603         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
88604         2.1.3 bug.  This avoids a clash when files like regex.c define
88605         _GNU_SOURCE.
88606
88607 2000-05-06  Jim Meyering  <meyering@lucent.com>
88608
88609         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
88610         (AC_REPLACE_FUNCS): Add strnlen.
88611
88612         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
88613         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
88614
88615         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
88616         AC_SEARCH_LIBS call for nanosleep.
88617         (LIB_NANOSLEEP): Set and AC_SUBST.
88618
88619 2000-05-06  Jim Meyering  <meyering@lucent.com>
88620
88621         * lib/strnlen.c: Undefine __strnlen and strnlen.
88622         [!weak_alias]: Define __strnlen to strnlen.
88623
88624         * lib/atexit.c: New file, from libiberty.
88625
88626 2000-05-06  Jim Meyering  <meyering@lucent.com>
88627
88628         * lib/closeout.c (close_stdout_status): Also check for errors on the
88629         stderr stream.
88630
88631 2000-05-05  Jim Meyering  <meyering@lucent.com>
88632
88633         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
88634         AC_SEARCH_LIBS call for clock_gettime.
88635         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
88636
88637         * m4/search-libs.m4: Update from autoconf.
88638
88639         su doesn't work on Solaris 2.6.
88640         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
88641         <shadow.h>.  Reported by Dragos Harabor.
88642
88643 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
88644
88645         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
88646         memcpy instead of xmalloc, xrealloc, path_concat.
88647         (locale_charset): Treat empty environment variables as absent.
88648         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
88649
88650 2000-05-04  Jim Meyering  <meyering@lucent.com>
88651
88652         * lib/getopt.c: Update from glibc.
88653         * lib/obstack.c: Likewise.
88654         * lib/obstack.h: Likewise.
88655         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
88656         file
88657
88658         * lib/regex.h: Likewise.
88659         * lib/strndup.c: Likewise.
88660         * lib/strnlen.c: New file, from glibc.
88661
88662 2000-05-03  Jim Meyering  <meyering@lucent.com>
88663
88664         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
88665
88666 2000-05-02  Paul Eggert  <eggert@twinsun.com>
88667
88668         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
88669         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
88670         compile-time test, rather than inspecting host and OS, to
88671         decide whether to define _LARGEFILE_SOURCE.
88672
88673 2000-05-01  Jim Meyering  <meyering@lucent.com>
88674
88675         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
88676
88677         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
88678         Based on a patch from Bruno Haible.
88679
88680 2000-05-01  Jim Meyering  <meyering@lucent.com>
88681
88682         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
88683
88684 2000-04-29  Jim Meyering  <meyering@lucent.com>
88685
88686         * lib/path-concat.c: Declare strdup only if it's not defined.
88687         * lib/canon-host.c: Likewise.
88688
88689 2000-04-28  Jim Meyering  <meyering@lucent.com>
88690
88691         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
88692         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
88693         is included first, then limits.h is included by locale.h by libintl.h.
88694         From John David Anglin.
88695
88696 2000-04-25  Jim Meyering  <meyering@lucent.com>
88697
88698         * lib/makepath.c (S_IRWXUGO): Define.
88699         (make_path): Always perform explicit chmod if MODE specifies any
88700         of the `special' permission bits.  Prompted by a bug report against
88701         install from Mate Wierdl and Joost van Baal.
88702
88703 2000-04-18  Jim Meyering  <meyering@lucent.com>
88704
88705         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
88706         (jm_PREREQ): Use it.
88707
88708 2000-04-18  Jim Meyering  <meyering@lucent.com>
88709
88710         * lib/README: New file.
88711
88712         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
88713         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
88714
88715 2000-04-17  Jim Meyering  <meyering@lucent.com>
88716
88717         Get it right :-)
88718         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
88719         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
88720         Suggestion from Akim Demaille.
88721
88722 2000-04-17  Jim Meyering  <meyering@lucent.com>
88723
88724         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
88725         the definition of it to rpl_strftime also defined-away the system's
88726         declaration.
88727
88728 2000-04-15  Jim Meyering  <meyering@lucent.com>
88729
88730         Use `C' to denote so-called `contiguous' files, the same way
88731         that tar does.
88732         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
88733         (ftypelet): Use S_ISCTG.
88734         From Michael Deutschmann.
88735
88736 2000-04-14  Jim Meyering  <meyering@lucent.com>
88737
88738         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
88739         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
88740         clobbered.
88741
88742 2000-04-14  Jim Meyering  <meyering@lucent.com>
88743
88744         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
88745
88746 2000-04-13  Jim Meyering  <meyering@lucent.com>
88747
88748         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
88749         AH_VERBATIM to insert required #ifndef into config.h.in.
88750         Suggestion from Akim Demaille.
88751
88752 2000-04-12  Jim Meyering  <meyering@lucent.com>
88753
88754         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
88755         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
88756         Christian Krackowizer.
88757
88758         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
88759         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
88760         (AC_SYS_LARGEFILE): Require.
88761         (AM_C_PROTOTYPES): Require.
88762
88763 2000-04-08  Jim Meyering  <meyering@lucent.com>
88764
88765         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
88766         names don't conflict.  Reported by Eli Zaretskii.
88767
88768 2000-04-07  Jim Meyering  <meyering@lucent.com>
88769
88770         * lib/putenv.c: Move inclusion of errno.h so it follows that of
88771         sys/types.h, to work around system header problems on AIX 3.2.5.
88772         From Bruno Haible.
88773
88774 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
88775
88776         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
88777         bug.  Deal with the different error behavior of Irix iconv.
88778
88779 2000-04-05  Paul Eggert  <eggert@twinsun.com>
88780
88781         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
88782         IRIX if the installer said otherwise.
88783
88784 2000-04-05  Jim Meyering  <meyering@lucent.com>
88785
88786         Portability tweaks required for ultrix4.3.
88787         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
88788         (jm_CHECK_DECLS): Add getutent to the list of functions.
88789         (_jm_DECL_HEADERS): Add utmpx.h.
88790         From John David Anglin.
88791
88792         * m4/strftime.m4: Back out the 2000-04-02 change.
88793         Instead of that change, simply undefine putenv in the test program.
88794
88795 2000-04-05  Jim Meyering  <meyering@lucent.com>
88796
88797         Portability tweaks required for ultrix4.3.
88798         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
88799         getutent.
88800         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
88801         * lib/canon-host.c: Declare strdup.
88802         * lib/path-concat.c: Likewise.
88803         From John David Anglin.
88804
88805 2000-04-04  Jim Meyering  <meyering@lucent.com>
88806
88807         Be more DOS 8.3-friendly.
88808         * lib/ref-add.sin: Renamed from ref-add.sed.in.
88809         * lib/ref-del.sin: Renamed from ref-del.sed.in.
88810         * lib/Makefile.am: Reflect renaming.
88811         Reported by Eli Zaretskii.
88812
88813         Use a temporary file name that won't clash with `charset.alias'
88814         in the DOS 8.3 name space.
88815         * lib/Makefile.am (charset_tmp): Define.
88816         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
88817         (uninstall-local): Likewise.
88818         Reported by Eli Zaretskii.
88819
88820 2000-04-03  Jim Meyering  <meyering@lucent.com>
88821
88822         * m4/gettext.m4: Fix typo in comment.
88823
88824         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
88825         textutils/configure.in).  Suggestion from Paul Eggert.
88826         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
88827
88828 2000-04-02  Paul Eggert  <eggert@twinsun.com>
88829
88830         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
88831         variable in the shell rather than using putenv, which isn't
88832         portable.  This avoids the configure-time inter-test dependency
88833         on the potentially-renamed putenv function.
88834
88835 2000-03-30  Paul Eggert  <eggert@twinsun.com>
88836
88837         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
88838         before checking struct stat.st_blksize, so that
88839         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
88840
88841 2000-03-29  Paul Eggert  <eggert@twinsun.com>
88842
88843         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
88844         since strftime.c uses HAVE_STRFTIME to decide whether to use
88845         the underlying strftime.
88846
88847 2000-03-29  Paul Eggert  <eggert@twinsun.com>
88848
88849         * lib/time/strftime.c (my_strftime): Make sure we call the system
88850         strftime, not ourselves, when invoking the underlying strftime.
88851
88852 2000-03-24  Jim Meyering  <meyering@lucent.com>
88853
88854         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
88855         (charset_alias): Define.
88856         (install-exec-local): Factor out common code.
88857         (uninstall-local): Split lines longer than 80.
88858         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
88859         (SUFFIXES): Define.
88860         (.sed.in.sed): New rule.  Don't redirect directly to $@.
88861         (CLEANFILES): Add ref-add.sed and ref-del.sed.
88862
88863 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
88864
88865         * lib/config.charset: Output a line containing "Packages using this
88866         file".
88867         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
88868         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
88869         ref-del.sed): New rules.
88870
88871 2000-03-17  Jim Meyering  <meyering@lucent.com>
88872
88873         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
88874         Otherwise, include <strings.h>
88875
88876 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
88877
88878         * lib/unicodeio.c (utf8_wctomb): New function.
88879         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
88880         format instead of in UCS-4 with platform dependent endianness.
88881
88882 2000-03-10  Jim Meyering  <meyering@lucent.com>
88883
88884         * m4/lib-check.m4: Look for getspnam in -lgen, too.
88885         From Marco Franzen.
88886
88887 2000-03-07  Paul Eggert  <eggert@twinsun.com>
88888
88889         * lib/savedir.c (savedir): Work even if directory size is
88890         negative; this can happen with some screwy NFS configurations.
88891
88892 2000-03-06  Jim Meyering  <meyering@lucent.com>
88893
88894         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
88895         if it's NULL (because we ran out of memory).  From Bruno Haible.
88896
88897 2000-03-05  Jim Meyering  <meyering@lucent.com>
88898
88899         * lib/localcharset.c ("path-concat.h"): Include.
88900         (get_charset_aliases): Use path_concat instead of ANSI string
88901         concatenation.
88902
88903         * lib/unicodeio.h (PARAMS): Define.
88904         Use it to guard prototype.
88905
88906 2000-03-04  Jim Meyering  <meyering@lucent.com>
88907
88908         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
88909         for lib/localcharset.c.
88910
88911 2000-03-04  Jim Meyering  <meyering@lucent.com>
88912
88913         * lib/Makefile.am (install-exec-local): Create $(libdir) before
88914         installing into it.
88915         (uninstall-local): Uncomment this rule so `make distcheck' works
88916         once again.
88917
88918         * lib/unicodeio.c (<errno.h>): Include it.
88919         (errno): Declare if not defined.
88920
88921         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
88922
88923         * lib/config.charset: New version, incorporating remarks from a linux
88924         i18n mailing list.  From Bruno Haible.
88925
88926 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
88927
88928         * m4/codeset.m4: New file.
88929         * m4/iconv.m4: New file.
88930         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
88931
88932 2000-03-03  Jim Meyering  <meyering@lucent.com>
88933
88934         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
88935
88936 2000-03-02  Jim Meyering  <meyering@lucent.com>
88937
88938         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
88939         the messages come out on separate lines.
88940
88941         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
88942         rather than jm_CHECK_DECLARATIONS.
88943         * m4/decl.m4: Remove now-unused file.
88944
88945         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
88946         geteuid.
88947
88948 2000-03-02  Jim Meyering  <meyering@lucent.com>
88949
88950         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
88951
88952 2000-03-01  Jim Meyering  <meyering@lucent.com>
88953
88954         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
88955         * lib/unicodeio.c: Likewise.
88956
88957 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
88958
88959         * lib/config.charset: New file.
88960         * lib/localcharset.c: New file.
88961         * lib/unicodeio.h, lib/unicodeio.c: New files.
88962         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
88963         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
88964         (noinst_HEADERS): Add unicodeio.h.
88965         (all-local, install-exec-local, charset.alias): New targets.
88966
88967 2000-02-28  Paul Eggert  <eggert@twinsun.com>
88968
88969         * lib/quotearg.c (ALERT_CHAR): New macro.
88970         (quotearg_buffer_restyled): Use it.
88971
88972 2000-02-27  Jim Meyering  <meyering@lucent.com>
88973
88974         * m4/check-decl.m4: Add getenv to the list.
88975
88976 2000-02-27  Jim Meyering  <meyering@lucent.com>
88977
88978         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
88979         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
88980
88981         * lib/backupfile.c: Guard inclusion of stdlib.h with
88982         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
88983         Declare malloc if needed.
88984
88985         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
88986         `#ifndef HAVE_DECL..'
88987         now that autoconf always defines the HAVE_DECL_ symbols.
88988         * lib/human.c: Likewise.
88989         * lib/same.c: Likewise.
88990         * lib/strtoumax.c: Likewise.
88991
88992         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
88993         declaration check was not run.
88994         * lib/hash.c: Likewise.
88995         * lib/human.c: Likewise.
88996         * lib/same.c: Likewise.
88997         * lib/strtoumax.c: Likewise.
88998
88999         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
89000         `.', then first look up the entire `.'-containing string as a login
89001         name.
89002
89003 2000-02-23  Jim Meyering  <meyering@lucent.com>
89004
89005         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
89006         in place of my hack.
89007
89008 2000-02-18  Paul Eggert  <eggert@twinsun.com>
89009
89010         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
89011         (textint): New typedef.
89012         (parser_control): Member year changed from int to textint.
89013         All uses changed.
89014         (YYSTYPE): Removed; replaced by %union with int and textint members.
89015         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
89016         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
89017         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
89018         (tSNUMBER, tUNUMBER): Now of type <textintval>.
89019         (date, number, to_year): Use width of number in digits, not its value,
89020         to determine whether it's a 2-digit year, or a 2-digit time.
89021         (yylex): Store number of digits of numeric tokens.
89022         Reported by John Kendall.
89023
89024         (parser_control): Changed from struct parser_control to typedef (for
89025         consistency).  All uses changed.
89026
89027         (tID): Removed; not used.
89028         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
89029
89030 2000-02-14  Paul Eggert  <eggert@twinsun.com>
89031
89032         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
89033         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
89034
89035 2000-02-12  Jim Meyering  <meyering@lucent.com>
89036
89037         * lib/userspec.c (ISDIGIT): Define it.
89038         (isdigit): Remove definition.
89039         (is_number): Use ISDIGIT, not isdigit.
89040         <libintl.h>: Include.
89041         (_ and N_): Define.
89042         (parse_user_spec): Mark translatable strings.
89043
89044 2000-02-10  Jim Meyering  <meyering@lucent.com>
89045
89046         With these changes, nanosleep.[ch] are finally enough like the other
89047         lib/* replacement files to compile on a few more losing systems.
89048
89049         * lib/nanosleep.h: Don't include config.h.
89050         Remove prototype from declaration of nanosleep.
89051         (PARAMS): Remove now-unneeded definition.
89052         * lib/nanosleep.c: #undef nanosleep.
89053         (rpl_nanosleep): Rename from nanosleep.
89054
89055 2000-02-10  Jim Meyering  <meyering@lucent.com>
89056
89057         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
89058         gnu_nanosleep to rpl_nanosleep.
89059
89060 2000-02-09  Jim Meyering  <meyering@lucent.com>
89061
89062         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
89063         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
89064
89065 2000-02-08  Akim Demaille  <akim@epita.fr>
89066
89067         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
89068         `[' and `]' and remove uses of `changequote'.
89069         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
89070         (AC_SYS_LARGEFILE): Likewise.
89071         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
89072         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
89073         of changequote.
89074         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
89075         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
89076         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
89077         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
89078
89079 2000-02-05  Jim Meyering  <meyering@lucent.com>
89080
89081         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
89082         Remove explicit use of AC_HEADER_TIME.  It is required by
89083         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
89084         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
89085         in autoconf whereby the expansion of the latter ended up preceding
89086         the expansion of its prerequisite, AC_HEADER_TIME.
89087         Reported by Volker Borchert.
89088
89089 2000-02-03  Jim Meyering  <meyering@lucent.com>
89090
89091         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
89092
89093 2000-02-03  Jim Meyering  <meyering@lucent.com>
89094
89095         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
89096         rather than with `#if HAVE_UTMPNAME'.
89097
89098 2000-02-02  Jim Meyering  <meyering@lucent.com>
89099
89100         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
89101         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
89102         Reported by Eli Zaretskii.
89103
89104 2000-02-01  Jim Meyering  <meyering@lucent.com>
89105
89106         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
89107
89108 2000-01-31  Jim Meyering  <meyering@lucent.com>
89109
89110         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
89111         functions.  Add the time.h and sys/time.h headers along with the
89112         AC_REQUIRE'ment of AC_HEADER_TIME.
89113
89114 2000-01-31  Jim Meyering  <meyering@lucent.com>
89115
89116         * lib/nanosleep.h (nanosleep): Guard declaration with
89117         `#if ! HAVE_DECL_NANOSLEEP'.
89118         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
89119         the declaration in that vendor's sys/timers.h.
89120         Reported by Christian Krackowizer.
89121
89122         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
89123         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
89124         (ISPRINT): Likewise.
89125         Reported by Tom Tromey.
89126
89127 2000-01-30  Jim Meyering  <meyering@lucent.com>
89128
89129         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
89130
89131         * m4/prereq.m4 (utmp_includes): Define.
89132         Check for ut_user and ut_name members in both struct utmpx
89133         and struct utmp.
89134
89135 2000-01-30  Jim Meyering  <meyering@lucent.com>
89136
89137         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
89138         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
89139         header files where only utmpx.ut_user is declared.
89140
89141         * lib/readutmp.h (UT_USER): Define.
89142
89143 2000-01-29  Jim Meyering  <meyering@lucent.com>
89144
89145         * m4/lib-check.m4: New file containing library-related checks from
89146         fileutils and sh-utils (textutils had none).
89147
89148 2000-01-28  Jim Meyering  <meyering@lucent.com>
89149
89150         * m4/perl.m4: Change format of warning message to look more like that
89151         from the missing script.  Suggestion from François Pinard.
89152
89153 2000-01-25  Jim Meyering  <meyering@lucent.com>
89154
89155         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
89156         well as time.h in the compile check.
89157         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
89158         Fix typo in cross-compiling case: s/yes/no/.
89159
89160 2000-01-23  Jim Meyering  <meyering@lucent.com>
89161
89162         * m4/jm-macros.m4: Move df-related tests here from
89163         fileutils/configure.in
89164
89165         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
89166         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
89167
89168         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
89169         s/space/ac_fsusage_space/.
89170         (jm_FILE_SYSTEM_USAGE): Take two parameters.
89171
89172         * m4/ftruncate.m4: New file (derived from part of
89173         fileutils/configure.in).
89174         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
89175         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
89176
89177         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
89178         AC_SUBST these here, rather than just in sh-util/configure.in, so
89179         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
89180         all the same.
89181         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
89182         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
89183         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
89184         (AC_SUBST(POW_LIBM)): Likewise.
89185         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
89186
89187 2000-01-23  Jim Meyering  <meyering@lucent.com>
89188
89189         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
89190         obstack.c.
89191
89192 2000-01-22  Jim Meyering  <meyering@lucent.com>
89193
89194         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
89195
89196         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
89197
89198         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
89199         configure.in
89200         (AC_CHECK_HEADERS): Likewise for sh-utils.
89201         (AC_CHECK_HEADERS): Likewise for textutils.
89202         Merge the three lists of headers.
89203
89204         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
89205         from fileutils' configure.in.
89206
89207         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
89208         code. Moved tests into their own function (_jm_DECL_HEADERS) in
89209         check-decl.m4.
89210
89211         * m4/check-decl.m4: Use #if rather than #ifdef.
89212         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
89213         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
89214         (_jm_DECL_HEADERS): Define new function.
89215         (jm_CHECK_DECLARATIONS): Require it.
89216
89217 2000-01-22  Jim Meyering  <meyering@lucent.com>
89218
89219         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
89220         [! HAVE_DECL_STRTOULL]: Declare strtoull.
89221         Required for some AIX systems.  Reported by Christian Krackowizer.
89222         [TESTING] (main): New function.
89223
89224         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
89225         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
89226         letters.
89227
89228         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
89229         iswprint.
89230
89231         * lib/strverscmp.c (ISDIGIT): Define.
89232         (strverscmp): Use ISDIGIT, not isdigit.
89233
89234 2000-01-19  Jim Meyering  <meyering@lucent.com>
89235
89236         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
89237         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
89238         defines `struct timespec' in <sys/time.h>
89239
89240         * m4/c-bs-a.m4: Remove uses of changequote altogether.
89241         Thanks to Akim for explaining.
89242
89243 2000-01-17  Paul Eggert  <eggert@twinsun.com>
89244
89245         * lib/nanosleep.c (nanosleep):
89246         Don't use SA_INTERRUPT to decide whether to call sigaction, as
89247         POSIX.1 doesn't require SA_INTERRUPT and some systems
89248         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
89249         it's been part of POSIX.1 since day 1 (in 1988).
89250
89251 2000-01-17  Jim Meyering  <meyering@lucent.com>
89252
89253         * lib/interlock: Remove unused file.  Reported by François Pinard.
89254
89255 2000-01-16  Paul Eggert  <eggert@twinsun.com>
89256
89257         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
89258         alert, backslash, formfeed, and vertical tab unnecessarily in
89259         shell quoting style.
89260
89261 2000-01-16  Jim Meyering  <meyering@lucent.com>
89262
89263         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
89264         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
89265         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
89266         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
89267
89268 2000-01-16  Jim Meyering  <meyering@lucent.com>
89269
89270         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
89271         because the latter didn't work.
89272
89273 2000-01-15  Jim Meyering  <meyering@lucent.com>
89274
89275         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
89276         (AC_REPLACE_FUNCS): Add memcpy and memset.
89277         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
89278         Add strpbrk.
89279         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
89280
89281 2000-01-12  Jim Meyering  <meyering@lucent.com>
89282
89283         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
89284         (jm_PREREQ): Use it.
89285         (jm_PREREQ_READUTMP): New macro.
89286         (jm_PREREQ): Use it.
89287
89288 2000-01-11  Paul Eggert  <eggert@twinsun.com>
89289
89290         Quote multibyte characters correctly.
89291         * m4/c-bs-a.m4: New file.
89292         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
89293         (jm_PREREQ): Use it.
89294
89295 2000-01-11  Paul Eggert  <eggert@twinsun.com>
89296
89297         * m4/uintmax_t.m4: Port to autoconf 2.13.
89298
89299 2000-01-08  Jim Meyering  <meyering@ascend.com>
89300
89301         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
89302         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
89303
89304 2000-01-04  Jim Meyering  <meyering@ascend.com>
89305
89306         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
89307         jm_STRUCT_DIRENT_D_TYPE.
89308         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
89309         jm_STRUCT_DIRENT_D_INO.
89310         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
89311         jm_STRUCT_UTIMBUF.
89312         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
89313         renamings.
89314         * m4/utime.m4: Likewise.
89315
89316         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
89317         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
89318
89319 2000-01-03  Paul Eggert  <eggert@twinsun.com>
89320
89321         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
89322         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
89323
89324 2000-01-02  Jim Meyering  <meyering@ascend.com>
89325
89326         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
89327         remember if this is necessary.
89328
89329 1999-12-26  Jim Meyering  <meyering@ascend.com>
89330
89331         * m4/jm-macros.m4: Use it here.
89332         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
89333
89334 1999-12-23  Jim Meyering  <meyering@ascend.com>
89335
89336         * m4/jm-macros.m4: Check for clock_gettime (moved from
89337         fileutils/configure.in)
89338         Check for gettimeofday.
89339
89340 1999-12-20  Jim Meyering  <meyering@ascend.com>
89341
89342         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
89343         autoconf-2.14a-1999-12-20.
89344
89345 1999-12-19  Jim Meyering  <meyering@ascend.com>
89346
89347         * m4/lstat-slash.m4: New file.
89348         * m4/jm-macros.m4: Use the new macro:
89349         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
89350
89351 1999-12-07  Jim Meyering  <meyering@ascend.com>
89352
89353         * m4/perl.m4: Require that File::Compare be available, too.
89354         Too many systems seem to lack it.
89355
89356         * m4/strftime.m4: Add checks for most of the cpp macros tested in
89357         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
89358
89359 1999-11-18  Paul Eggert  <eggert@twinsun.com>
89360
89361         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
89362         problem with the QNX 4.25 shell, which doesn't propagate exit
89363         status of failed commands inside shell assignments.
89364
89365 1999-11-17  Jim Meyering  <meyering@ascend.com>
89366
89367         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
89368
89369 1999-11-07  Jim Meyering  <meyering@ascend.com>
89370
89371         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
89372
89373 1999-11-06  Jim Meyering  <meyering@ascend.com>
89374
89375         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
89376         * m4/jm-macros.m4 (jm_MACROS): Use it here.
89377
89378 1999-11-05  Jim Meyering  <meyering@ascend.com>
89379
89380         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
89381         configure.in of textutils, fileutils, and sh-utils into this one
89382         (shared between those packages) file.
89383         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
89384         AC_STRUCT_ST_BLKSIZE.
89385
89386 1999-11-03  Jim Meyering  <meyering@ascend.com>
89387
89388         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
89389         of AC_CHECK_TYPE checks includes unistd.h.
89390         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
89391         Suggestion from Akim Demaille.
89392
89393 1999-10-30  Jim Meyering  <meyering@ascend.com>
89394
89395         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
89396         m4-quoted string.
89397         * m4/ls-mntd-fs.m4: Likewise.
89398         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
89399         * m4/jm-winsz1.m4: Likewise.
89400
89401         * m4/const.m4: Remove file, since the fix made it into the experimental
89402         version of autoconf.
89403         * m4/mktime.m4: Likewise.
89404
89405         * m4/check-type.m4: Remove file, now that the latest version of
89406         AC_CHECK_TYPE takes a third arg to specify additional #includes.
89407
89408         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
89409         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
89410         AC_CHECK_TYPE.
89411
89412 1999-10-04  Jim Meyering  <meyering@ascend.com>
89413
89414         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
89415
89416 1999-09-22  Paul Eggert  <eggert@twinsun.com>
89417
89418         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
89419         2.95.1 bug with HP-UX 10.20.
89420
89421 1999-09-17  Jim Meyering  <meyering@ascend.com>
89422
89423         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
89424         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
89425         due to missing strdup (against sh-utils-2.0).
89426
89427 1999-08-29  Jim Meyering  <meyering@ascend.com>
89428
89429         * m4/jm-macros.m4: Require jm_BISON.
89430         * m4/bison.m4: New file.
89431
89432 1999-08-17  Paul Eggert  <eggert@twinsun.com>
89433
89434         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
89435         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
89436
89437 1999-08-05  Jim Meyering  <meyering@ascend.com>
89438
89439         * m4/getline.m4: Rename test file from conftestdata to conftest.data
89440         to avoid conflicts with `conftest' on 8+3 filesystems.
89441         Suggestion from Eli Zaretskii.
89442
89443 1999-08-04  Jim Meyering  <meyering@ascend.com>
89444
89445         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
89446         fileutils and sh-utils (textutils's getline test was inadequate).
89447         (AM_FUNC_GETLINE): Run this test.
89448         (AC_CHECK_FUNCS): Check for getdelim.
89449         Reported by Bob Proulx.
89450
89451 1999-08-02  Jim Meyering  <meyering@ascend.com>
89452
89453         * m4/jm-macros.m4: Add a comment.
89454
89455 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89456
89457         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
89458         <inttypes.h> defines strtoumax as a macro (and not as a
89459         function).
89460
89461 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89462
89463         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
89464         that we can shift, multiply and divide unsigned long long
89465         values; Ultrix cc can't do it.
89466
89467 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89468
89469         * m4/mktime.m4: New file, which is a preview of what should appear
89470         in the next public autoconf release.
89471
89472 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89473
89474         * m4/lfs.m4: Remove this file.
89475         * m4/largefile.m4: New file.  It contains the old contents of
89476         lfs.m4, except that all names with prefix AC_LFS have been
89477         changed to use the prefix AC_SYS_LARGEFILE instead, to be
89478         compatible with future autoconf versions.  Also, some minor m4
89479         quoting problems have been fixed.
89480
89481 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89482
89483         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
89484         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
89485         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
89486         and simplify the shell code.
89487
89488 1999-08-01  Jim Meyering  <meyering@ascend.com>
89489
89490         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
89491         m4.
89492
89493 1999-07-20  Jim Meyering  <meyering@ascend.com>
89494
89495         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
89496
89497 1999-07-15  Jim Meyering  <meyering@ascend.com>
89498
89499         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
89500
89501 1999-05-22  Jim Meyering  <meyering@ascend.com>
89502
89503         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
89504
89505 1999-05-20  Jim Meyering  <meyering@ascend.com>
89506
89507         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
89508         Add a colon after each `then' in case $4 is empty.
89509
89510 1999-05-16  Jim Meyering  <meyering@ascend.com>
89511
89512         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
89513
89514 1999-05-10  Jim Meyering  <meyering@ascend.com>
89515
89516         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
89517
89518         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
89519         AC_FUNC_MKTIME.
89520
89521 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
89522
89523         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
89524
89525 1999-05-04  Paul Eggert  <eggert@twinsun.com>
89526
89527         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
89528         not CPPFLAGS, so that linking works correctly in IRIX.
89529
89530 1999-04-30  Paul Eggert  <eggert@twinsun.com>
89531
89532         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
89533
89534 1999-04-20  Paul Eggert  <eggert@twinsun.com>
89535
89536         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
89537         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
89538         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
89539         jm_AC_TYPE_UNSIGNED_LONG_LONG.
89540         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
89541
89542         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
89543
89544 1999-04-20  Jim Meyering  <meyering@ascend.com>
89545
89546         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
89547         AC_REPLACE xstroull if necessary.  From Paul Eggert.
89548         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
89549
89550 1999-04-18  Jim Meyering  <meyering@ascend.com>
89551
89552         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
89553         * m4/jm-macros.m4: Use it.
89554
89555 1999-04-06  Jim Meyering  <meyering@ascend.com>
89556
89557         * m4/strftime.m4: Remove test for %f.
89558
89559 1999-03-29  Jim Meyering  <meyering@ascend.com>
89560
89561         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
89562         superset of the AC_TYPE_* checks in the textutils, fileutils,
89563         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
89564         AC_TYPE_PID_T.
89565
89566 1999-03-28  Jim Meyering  <meyering@ascend.com>
89567
89568         * m4/jm-macros.m4: Define GNU_PACKAGE here.
89569         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
89570         replaced e.g., in the *.sh files of the sh-utils.
89571
89572 1999-03-20  Jim Meyering  <meyering@ascend.com>
89573
89574         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
89575         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
89576         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
89577
89578 1999-03-19  Jim Meyering  <meyering@ascend.com>
89579
89580         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
89581
89582 1999-03-12  Jim Meyering  <meyering@ascend.com>
89583
89584         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
89585
89586 1999-03-07  Jim Meyering  <meyering@ascend.com>
89587
89588         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
89589         declared.
89590
89591 1999-02-17  Jim Meyering  <meyering@ascend.com>
89592
89593         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
89594         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
89595
89596 1999-02-07  Jim Meyering  <meyering@ascend.com>
89597
89598         * m4/group-member.m4: New file -- extracted from sh-utils'
89599         configure.in.
89600
89601         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
89602         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
89603
89604 1999-02-06  Jim Meyering  <meyering@ascend.com>
89605
89606         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
89607         * m4/fnmatch.m4: Likewise.
89608         * m4/getgroups.m4: Likewise.
89609         * m4/lstat.m4: Likewise.
89610         * m4/malloc.m4: Likewise.
89611         * m4/putenv.m4: Likewise.
89612         * m4/realloc.m4: Likewise.
89613         * m4/regex.m4: Likewise.
89614         * m4/stat.m4: Likewise.
89615         * m4/strftime.m4: Likewise.
89616         Suggestion from Alain Magloire.
89617
89618         * m4/chown.m4: Use `.$ac_objext', not `.o'.
89619         * m4/fnmatch.m4: Likewise.
89620         * m4/getgroups.m4: Likewise.
89621         * m4/getline.m4: Likewise.
89622         * m4/lstat.m4: Likewise.
89623         * m4/malloc.m4: Likewise.
89624         * m4/memcmp.m4: Likewise.
89625         * m4/putenv.m4: Likewise.
89626         * m4/realloc.m4: Likewise.
89627         * m4/regex.m4: Likewise.
89628         * m4/stat.m4: Likewise.
89629         * m4/strftime.m4: Likewise.
89630         Suggestion from Alain Magloire.
89631
89632         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
89633         an argument.
89634
89635         * m4/regex.m4: Add a run-time Test for proper operation of
89636         re_compile_pattern.
89637
89638 1999-01-31  Jim Meyering  <meyering@ascend.com>
89639
89640         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
89641
89642 1999-01-30  Jim Meyering  <meyering@ascend.com>
89643
89644         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
89645
89646         * m4/jm-mktime.m4: Make this a wrapper around the official
89647         AM_FUNC_MKTIME rather than my private copy, now that the official one
89648         is up to date.
89649         * m4/mktime.m4: Remove file.
89650
89651         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
89652         * m4/uptime.m4: Likewise.
89653         * m4/uintmax_t.m4: Likewise.
89654
89655 1999-01-28  Jim Meyering  <meyering@ascend.com>
89656
89657         * m4/jm-macros.m4: Use jm_AFS.
89658         * m4/afs.m4: New file (from fileutils' configure.in).
89659
89660         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
89661         * m4/chown.m4: Likewise.
89662         * m4/d-ino.m4: Likewise.
89663         * m4/d-type.m4: Likewise.
89664         * m4/fnmatch.m4: Likewise.
89665         * m4/getgroups.m4: Likewise.
89666         * m4/gettext.m4: Likewise.
89667         * m4/jm-mktime.m4: Likewise.
89668         * m4/jm-winsz2.m4: Likewise.
89669         * m4/lcmessage.m4: Likewise.
89670         * m4/ls-mntd-fs.m4: Likewise.
89671         * m4/malloc.m4: Likewise.
89672         * m4/memcmp.m4: Likewise.
89673         * m4/putenv.m4: Likewise.
89674         * m4/realloc.m4: Likewise.
89675         * m4/st_mtim.m4: Likewise.
89676         * m4/strftime.m4: Likewise.
89677
89678 1999-01-16  Jim Meyering  <meyering@ascend.com>
89679
89680         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
89681         (ARGMATCH_DIE_DECL): Define.
89682
89683 1999-01-12  Jim Meyering  <meyering@ascend.com>
89684
89685         * m4/Makefile.am.in: Rewrite to avoid using fmt.
89686         Reported by Lars Hecking.
89687
89688 1999-01-10  Jim Meyering  <meyering@ascend.com>
89689
89690         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
89691         gross kludge.
89692         * m4/inttypes_h.m4: Likewise.
89693         * m4/lstat.m4: Likewise.
89694         * m4/malloc.m4: Likewise.
89695         * m4/readdir.m4: Likewise.
89696         * m4/realloc.m4: Likewise.
89697         * m4/st_dm_mode.m4: Likewise.
89698         * m4/stat.m4: Likewise.
89699         * m4/utimbuf.m4: Likewise.
89700         * m4/utimes.m4: Likewise.
89701
89702         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
89703         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
89704         comments in config.h.in are meaningful.
89705
89706         * m4/jm-macros.m4: Require autoconf-2.13 here.
89707
89708         * m4/regex.m4: By default, don't use the included regex.c on systems
89709         with glibc 2.  Suggestion from Uli Drepper.
89710
89711 1999-01-02  Jim Meyering  <meyering@ascend.com>
89712
89713         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
89714
89715 1998-12-18  Jim Meyering  <meyering@ascend.com>
89716
89717         * m4/Makefile.am.in (Makefile.am): Simplify rule.
89718         Based on a suggestion from Lars Hecking.
89719
89720 1998-11-16  Paul Eggert  <eggert@twinsun.com>
89721
89722         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
89723
89724 1998-11-16  Jim Meyering  <meyering@ascend.com>
89725
89726         * m4/lfs.m4: Double-quote the `uname...` expression.
89727
89728 1998-11-14  Jim Meyering  <meyering@ascend.com>
89729
89730         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
89731         * m4/stat.m4: Likewise.
89732
89733 1998-11-03  Jim Meyering  <meyering@ascend.com>
89734
89735         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
89736         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
89737
89738 1998-10-18  Jim Meyering  <meyering@ascend.com>
89739
89740         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
89741
89742 1998-10-17  Jim Meyering  <meyering@ascend.com>
89743
89744         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
89745         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
89746         calls for those previously hard-coded headers.  Instead, take a new
89747         parameter.
89748         (jm_CHECK_DECLARATIONS): Reflect interface change.
89749         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
89750         (jm_CHECK_DECL_LOCALTIME_R): New macro.
89751
89752         * m4/mktime.m4: Test for spring-forward gap before long-running test.
89753
89754 1998-10-14  Jim Meyering  <meyering@ascend.com>
89755
89756         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
89757         instead of "TZ=America/Vancouver".  From Paul Eggert.
89758
89759 1998-10-11  Jim Meyering  <meyering@ascend.com>
89760
89761         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
89762         This adds a test for a recently added compatibility fix for mktime.c.
89763         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
89764
89765 1998-09-27  Jim Meyering  <meyering@ascend.com>
89766
89767         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
89768
89769         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
89770         ../configure.in, including a change from Gordon Matzigkeit to allow
89771         cross-compiling for the Hurd.
89772
89773         * m4/glibc.m4: New file/macro to test for the GNU C Library
89774         versions 1 and 2.  From Gordon Matzigkeit.
89775         Indent.
89776
89777 1998-09-21  Jim Meyering  <meyering@ascend.com>
89778
89779         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
89780
89781 1998-08-18  Paul Eggert  <eggert@twinsun.com>
89782
89783         Port nanosecond-resolution times to UnixWare 2.1.2 and
89784         pedantic Solaris 2.6.
89785
89786         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
89787         AC_STRUCT_ST_MTIM.
89788         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
89789         Generate name of ns member, instead of just 1 or undef.
89790         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
89791
89792 1998-08-15  Jim Meyering  <meyering@ascend.com>
89793
89794         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
89795         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
89796         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
89797         instead of jm_TYPE_SSIZE_T.
89798
89799 1998-08-12  Jim Meyering  <meyering@ascend.com>
89800
89801         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
89802
89803 1998-08-02  Jim Meyering  <meyering@ascend.com>
89804
89805         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
89806         in acconfig.h manually.
89807
89808 1998-07-31  Paul Eggert  <eggert@twinsun.com>
89809
89810         * m4/st_mtim.m4: New file.
89811
89812 1998-07-28  Jim Meyering  <meyering@ascend.com>
89813
89814         * m4/utimes.m4: Undef stat.
89815
89816 1998-07-25  Jim Meyering  <meyering@ascend.com>
89817
89818         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
89819         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
89820
89821 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
89822
89823         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
89824         uid and gid actually remain unchanged.
89825
89826 1998-07-07  Jim Meyering  <meyering@ascend.com>
89827
89828         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
89829
89830 1998-07-04  Jim Meyering  <meyering@ascend.com>
89831
89832         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
89833         to prove that this macro can be used in packages without regex.c.
89834
89835 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
89836
89837         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
89838         is to be used.
89839
89840 1998-07-03  Jim Meyering  <meyering@ascend.com>
89841
89842         * m4/gettext.m4: Add -lintl if it's found to be necessary.
89843
89844         * m4/gettext.m4: New file -- from gettext-0.10.35.
89845         * m4/lcmessage.m4: Likewise.
89846         * m4/progtest.m4: Likewise.
89847
89848         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
89849         * m4/jm-macros.m4: Require the new macro.
89850
89851 1998-06-29  Jim Meyering  <meyering@ascend.com>
89852
89853         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
89854         for the definition of NGROUPS (used in a system header included
89855         by sys/mount.h).
89856
89857 1998-06-28  Jim Meyering  <meyering@ascend.com>
89858
89859         * m4/ls-mntd-fs.m4: New file.
89860         * m4/fstypename.m4: New file.
89861
89862         * m4/jm-macros.m4: Require the new macro.
89863         * m4/jm-glibc-io.m4: New file.
89864
89865 1998-05-19  Jim Meyering  <meyering@ascend.com>
89866
89867         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
89868         * m4/lchown.m4: New file.
89869
89870         * m4/Makefile.am.in: New file.
89871         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
89872
89873 1998-05-14  Jim Meyering  <meyering@ascend.com>
89874
89875         * m4/Makefile.am (EXTRA_DIST): Add them.
89876         * m4/jm-macros.m4: New file.
89877         * m4/utimbuf.m4: New file.
89878
89879 1998-05-12  Jim Meyering  <meyering@ascend.com>
89880
89881         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
89882
89883 1998-05-11  Jim Meyering  <meyering@ascend.com>
89884
89885         * m4/isc-posix.m4: New file.
89886
89887 1998-05-10  Jim Meyering  <meyering@ascend.com>
89888
89889         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
89890
89891 1998-05-09  Jim Meyering  <meyering@ascend.com>
89892
89893         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
89894         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
89895         with automake.
89896
89897         * m4/ssize_t.m4: New file.
89898         * m4/mktime.m4: Remove file -- the new automake has this now.
89899
89900 1998-04-26  Jim Meyering  <meyering@ascend.com>
89901
89902         * m4/assert.m4: New file.
89903         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
89904
89905 1998-04-05  Jim Meyering  <meyering@ascend.com>
89906
89907         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
89908         (jm_PREREQ): Use it here.
89909
89910 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
89911
89912         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
89913         in acconfig.h.
89914
89915 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
89916
89917         * m4/prereq.m4: New file.
89918         * m4/error.m4: New file.
89919         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
89920
89921 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
89922
89923         * m4/getline.m4: Don't set am_cv_func_working_getline before the
89924         cache-check for the same variable -- that defeated the purpose of
89925         the test; the test program was never run.  This was a problem only
89926         on systems with losing getline functions -- HP-UX 10.20 is one.
89927         Reported by Bjorn Helgaas.
89928
89929 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
89930
89931         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
89932
89933 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
89934
89935         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
89936
89937         * m4/const.m4: New file.  Use an initializer in this declaration
89938         typedef int charset[2]; const charset x;
89939         Reported by Bob Glickstein.
89940
89941 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
89942
89943         * m4/chown.m4: Fix reversed types on -1 args to chown.
89944         From Kaveh Ghazi.
89945
89946 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
89947
89948         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
89949         Add lseek and memchr.
89950
89951         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
89952         T.E.Dickey <dickey@clark.net> said that some older preprocessors
89953         have a 20-character limit on names.
89954
89955 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
89956
89957         * m4/inttypes_h.m4: New file.
89958         * m4/uintmax_t.m4: New file.
89959         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
89960
89961
89962         -----
89963
89964         Local Variables:
89965         coding: utf-8
89966         End:
89967
89968         Copyright (C) 1997-2011 Free Software Foundation, Inc.
89969
89970         Copying and distribution of this file, with or without
89971         modification, are permitted provided the copyright notice
89972         and this notice are preserved.